/* Founder Profile Page */
.founder-main {
    padding: 4rem 2rem;
    min-height: calc(100vh - 160px);
}

.founder-title {
    font-size: 3rem;
    color: #e0e7ff;
    text-align: center;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #00d4ff, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.founder-content {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3rem;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Accordion Styles */
.accordion {
    margin-bottom: 1rem;
}

.accordion-item {
    margin-bottom: 0.5rem;
}

.accordion-header {
    width: 100%;
    padding: 0.75rem 1.5rem;
    border-radius: 15px;
    border: none;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    cursor: pointer !important;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e0e7ff;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3),
        -5px -5px 10px rgba(255, 255, 255, 0.1);
    font-family: 'Rock Salt', 'Rock Salt Fallback', cursive;
}

.accordion-header:hover {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 8px 8px 15px rgba(0, 0, 0, 0.4),
        -8px -8px 15px rgba(255, 255, 255, 0.1);
}

.accordion-header.active::after {
    transform: rotate(45deg);
}

.accordion-content {
    display: none;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    line-height: 1.6;
}

.accordion-content.active {
    display: block;
}

/* Domain Pills */
.domain-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.pill {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 400;
    display: inline-block;
}

/* Education Cards */
.education-cards {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.education-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    width: 250px;
    height: 250px;
    padding: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.education-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.card-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: #e0e7ff;
    margin-bottom: 0.5rem;
}

.card-subtitle {
    color: #cbd5e1;
    margin-bottom: 1rem;
}

.card-hover {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 1rem;
    text-align: center;
}

.education-card:hover .card-hover {
    opacity: 1;
}

.card-hover .pill {
    margin-bottom: 1rem;
}

.card-hover p {
    color: #e0e7ff;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Certifications */
.certifications {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.certifications .cert-card {
    border: 1px solid #ccc;
    margin: 0 10px;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.certifications .cert-card img {
    width: 100px;
    height: auto;
}

.pending-label {
    color: orange;
    font-weight: bold;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.5; }
}

/* Definition List Styling */
dl {
    margin: 1rem 0;
}

dt {
    font-weight: bold;
    margin-bottom: 0.25rem;
}

dd {
    margin-left: 0;
    margin-bottom: 1rem;
    padding-left: 0;
}

/* Responsive Design for Founder Profile */
@media (max-width: 768px) {
    .founder-main {
        padding: 2rem 1rem;
    }

    .founder-title {
        font-size: 2rem;
    }

    .founder-content {
        padding: 2rem;
    }

    .education-cards {
        flex-direction: column;
    }

    .education-card {
        width: 100%;
        height: auto;
        min-height: 200px;
        padding: 0.5rem;
    }

    .card-title {
        font-size: 1rem;
    }

    .card-subtitle {
        font-size: 0.8rem;
    }

    .card-hover p {
        font-size: 0.8rem;
    }

    .certifications {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Galaxy S9+ and similar devices (320px width) */
@media (max-width: 320px) {
    .founder-main {
        padding: 1rem 0.25rem;
    }

    .founder-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .founder-content {
        padding: 1rem;
        margin: 0 0.25rem;
    }

    .accordion-header {
        font-size: 0.9rem;
        padding: 0.6rem 1rem;
    }

    .accordion-content {
        font-size: 0.8rem;
        padding: 0.75rem 1rem;
    }

    .domain-pills {
        gap: 0.25rem;
        justify-content: center;
    }

    .domain-pills .pill {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
        white-space: nowrap;
    }

    .education-cards {
        flex-direction: column;
        gap: 0.75rem;
    }

    .education-card {
        width: 100%;
        height: auto;
        min-height: 160px;
        padding: 0.75rem;
    }

    .card-title {
        font-size: 0.9rem;
        margin-bottom: 0.25rem;
    }

    .card-subtitle {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }

    .card-hover p {
        font-size: 0.75rem;
        line-height: 1.3;
    }

    .certifications {
        flex-direction: column;
        gap: 0.75rem;
        margin: 1.5rem 0;
    }

    .certifications .cert-card {
        margin: 0;
        padding: 0.75rem;
    }

    .certifications .cert-card img {
        width: 80px;
        height: auto;
    }

    .pending-label {
        font-size: 0.8rem;
    }

    /* Map styles for 320px */
    .map-container {
        height: 200px;
        margin: 1rem 0;
    }

    .map-split {
        flex-direction: column;
        gap: 1rem;
    }

    .map-card {
        height: 180px;
    }

    .map-overlay {
        top: 10px;
        left: 10px;
        padding: 8px 12px;
    }

    .map-text {
        font-size: 1rem;
    }

    .map-banner {
        padding: 0.75rem;
    }

    .address-text {
        font-size: 0.8rem;
    }

    .map {
        height: 180px;
    }
}

/* Q-Map Modal */
.map-container {
    margin: 2rem 0;
    height: 300px;
}

.map-split {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.map-card {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    position: relative;
}

.map-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 10px 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.map-text {
    font-size: 1.25rem;
    font-weight: 600;
}

.map-banner {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: #e0e7ff;
    padding: 1rem;
    z-index: 1000;
}

.address-text {
    font-size: 0.9rem;
}

.map {
    height: 300px;
    width: 100%;
}

/* Video Modal Height Fix */
#explainer-videoModal .modal-content,
#quantum-demoModal .modal-content {
    max-height: 90vh;
}