/* ===========================
   VARIABLES
=========================== */
:root {
    --dark: #12141a;
    --cream: #f4f1ea;
    --muted: #a0a0a0;
    --aura-teal: #00b4d8;
    --serif: 'Cormorant Garamond', serif;
}

/* ===========================
   GLOBAL RESET
=========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--dark);
    color: var(--cream);
    font-family: 'Inter', sans-serif;
    line-height: 1.8;
}

/* ===========================
   HEADER
=========================== */
header {
    position: fixed;
    width: 100%;
    height: 90px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    background: rgba(18,20,26,0.9);
    backdrop-filter: blur(10px);
    z-index: 100;
}

.logo img {
    margin-top:20px;
    height: 60px;
}

/* Desktop nav */
nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav a {
    text-decoration: none;
    color: var(--muted);
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: 0.3s;
}

nav a:hover,
nav a.active {
    color: var(--aura-teal);
    border-bottom: 2px solid var(--aura-teal);
}

/* ===========================
   FINAL CORRECTED HAMBURGER
=========================== */
.menu-toggle {
    display: none;             /* 1. Hides it by default on desktop */
    width: 44px !important;               /* 2. Fixed square width */
    height: 44px !important;              /* 3. Fixed square height */
    background: var(--aura-teal);
    color: var(--cream);
    cursor: pointer;
    z-index: 100;
    margin-top: 20px;          /* 4. Moves it away from top edge */
    border-radius: 8px !important;
    border: none;

    /* These 3 lines ensure the icon doesn't slide or squash */
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    line-height: 1;
    padding: 0;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;         /* 5. ONLY shows and uses flex centering on mobile */
    }
}

/* ===========================
   HERO (MOBILE-FIRST)
=========================== */
.hero {
    position: relative;
    padding: 120px 6% 60px;
    text-align: center;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 5;
    max-width: 600px;
    margin: 0 auto;
}

.hero-content h1 {
    font-family: var(--serif);
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-content .motto {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--cream);
    text-shadow: 0 0 1px rgba(0, 180, 216, 0.35);
}

.hero-content .human-text {
    font-size: 1rem;
    color: var(--muted);
    max-width: 500px;
    margin: 0 auto;
}

/* Hero image behind text */
.hero-img {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.32;
}

.hero-img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, var(--dark) 35%, transparent 100%);
}

/* Desktop hero layout */
@media (min-width: 1024px) {
    .hero {
        padding: 150px 10% 60px;
        display: flex;
        justify-content: flex-start;
        align-items: flex-start;
        text-align: left;
        /* padding: 0 10%; */
        min-height: calc(100vh - 90px);
    }

    .hero-content {
        margin: 0; /* remove auto-centering */
        text-align: left;
        max-width: 600px;
    }

    .hero-img {
        opacity: 1;
    }

    .hero-img::after {
        background: linear-gradient(to right, var(--dark) 40%, transparent 100%);
    }
}

/* ===========================
   SECTION LAYOUTS
=========================== */
section {
    padding: 10px 6%;
    scroll-margin-top: 100px;
}

.serif-title {
    font-family: var(--serif);
    font-size: 3rem;
    margin-bottom: 3rem;
}

/* ===========================
   PROGRAMS GRID
=========================== */
.programs-grid {
    display: grid;
    gap: 25px;
}

@media (min-width: 600px) {
    .programs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .programs-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }
}

.program-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 10px;
    overflow: hidden;

}

.program-card:hover {
    transform: translateY(-5px);
}

.card-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    opacity: 0.7;
}

.card-body {
    padding: 25px;
}

.card-body .btn {
    color: #f8f9fa;         /* Makes the text white */
    display: inline-block;  /* Allows for padding if you want to style the box later */
    font-weight: italic;      /* Optional: makes it pop more */
}

/* Optional: Keep it white even when someone has clicked it before */
.card-body .btn:visited {
    color: #ffffff;
}

/* ===========================
   ABOUT SECTION
=========================== */

.about-section {
    padding: 60px 5%;
    text-align: center;
}

.about-cards {
    align-items: start;
    display: grid;
    gap: 20px;
}

@media (min-width: 600px) {
    .about-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .about-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

.about-card {
    height: auto;
    background: rgba(255, 255, 255, 0.05);
    padding: 22px;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    cursor: pointer;
    transition: background 0.1s ease;
}

.about-card:hover {
    background: rgba(255,255,255,0.08);
}

.about-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0;
    color: var(--cream);
}

/* Only this controls the reveal */
.card-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
}

.about-card.active .card-content {
    max-height: 300px;
    opacity: 1;
    margin-top: 12px;
}

.card-content p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--cream);
}

/* ===========================
   TEAM SECTION
=========================== */

.team-section {
    text-align: center;
    padding: 60px 5%; /* Adjusted padding for better fit */
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    justify-items: center;
    align-items: start;
    max-width: 1200px; /* Limits width so it doesn't get too stretched */
    margin: 0 auto;    /* Centers the entire grid */
}

.team-card {
    position: relative;
    width: 100%;       /* Let the grid control the width */
    max-width: 300px;  /* But don't let it get too huge */
    height: 380px;     /* Keep height consistent */
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.card-front {
    padding: 30px 15px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card-front img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid var(--aura-teal);
}

/* Responsiveness: Only break into 1 column on small phones */
@media (max-width: 850px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 per row on tablets */
    }
}

@media (max-width: 550px) {
    .team-grid {
        grid-template-columns: 1fr; /* 1 per row on phones */
    }
}

/* --- Overlay Animation remains the same --- */
.team-overlay {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: #121212;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: top 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-card.active .team-overlay {
    top: 0;
}


/* CONTACT SECTION — CLEANED */
/*===========================*/
.split-layout {
    display: flex;
    flex-direction: column; /* Force stack to put text ABOVE form */
    gap: 10px;              /* Tight gap between text and form */
    justify-content: center;
    align-items: center;    /* Center the stack horizontally */
    padding: 40px 6%;
}

.split-content {
    flex: 0 1 auto;
    max-width: 600px;
    width: 100%;            /* Matches form width */
    text-align: left;       /* Keeps text aligned with form inputs */
}

.human-form {
    flex: 0 1 auto;
    max-width: 600px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 25px;
    background: rgba(255,255,255,0.03);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
}

/* Form fields */
input, textarea, select {
    background: transparent;
    border: none;
    border-bottom: 1px solid #333;
    padding: 15px 0;
    color: white;
    font-family: inherit;
    font-size: 1rem;
}

/* Button */
button {
    align-self: flex-start;
    background: var(--aura-teal);
    color: white;
    padding: 15px 45px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

button:hover {
    background: #00a3c4;
}

/* Responsive layout */
@media (max-width: 768px) {
    .split-layout {
        gap: 10px;         /* Keep it tight on mobile */
        padding: 40px 6%;
    }

    .split-content,
    .human-form {
        margin-top: 0;     /* Remove any inherited margins */
        max-width: 100%;
    }
}

/* Dropdown container */
select {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--cream);
    padding: 12px 16px;
    font-size: 1rem;
    appearance: none;
    width: 100%;
    cursor: pointer;
    transition: border 0.3s ease;
}

/* On focus */
select:focus {
    outline: none;
    border-color: var(--aura-teal);
}

/* Dropdown arrow (for WebKit browsers) */
select::-webkit-calendar-picker-indicator {
    filter: invert(1);
}

/* Option styling */
select option {
    background-color: var(--dark);
    color: var(--cream);
    font-size: 1rem;
    padding: 10px;
}

/* ===========================
   FOOTER
=========================== */
footer {
    padding: 20px 10%;
    border-top: 1px solid #222;
    color: var(--muted);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    color: var(--muted);
    font-size: 1rem;
    transition: 0.3s;
}

.footer-social a:hover {
    color: var(--aura-teal);
}

/* ===========================
   MOBILE NAVIGATION
=========================== */
@media (max-width: 768px) {

    .menu-toggle {
        display: block;
    }

    nav {
        position: absolute;
        top: 90px;
        right: 0;
        width: 100%;
        background: rgba(18,20,26,0.98);
        backdrop-filter: blur(10px);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
    }

    nav.open {
        max-height: 500px;
    }

    nav ul {
        flex-direction: column;
        gap: 20px;
        padding: 25px 0;
        text-align: center;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
