/* 
    Azhar Amanaa Yogyakarta (amaayo.org)
    Design System & Styles
*/

:root {
    --primary: #556B2F;
    /* Olive Green */
    --secondary: #4db6ac;
    /* Bright Light Teal (Changed from Gold) */
    --bg-cream: #FDFBF7;
    --text-dark: #2C3322;
    --text-light: #FDFBF7;
    --white: #FFFFFF;
    --gray-light: #F4F4F4;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Preloader Styles */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #00251a;
    /* Dark Teal matched to theme */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.logo-loader-wrapper {
    position: relative;
    width: 120px;
    /* Reduced from 150px */
    height: 120px;
    /* Reduced from 150px */
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid transparent;
    /* Slightly thinner border */
    border-top-color: var(--secondary);
    border-radius: 50%;
    animation: ringRotate 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.loader-ring::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    bottom: 4px;
    border: 2px solid transparent;
    /* Slightly thinner border */
    border-top-color: var(--white);
    border-radius: 50%;
    opacity: 0.5;
    animation: ringRotate 2s linear infinite reverse;
}

.loader-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    /* Reduced from 1.8rem */
    font-weight: 900;
    color: var(--white);
    letter-spacing: 1px;
    /* Slightly tighter */
    animation: logoPulse 1.5s ease-in-out infinite;
    z-index: 2;
}

@keyframes ringRotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes logoPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-cream);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    scroll-behavior: smooth;
}

html {
    overflow-x: hidden;
    width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

/* Subtle Geometric Pattern Background */
.geometric-bg {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0l30 30-30 30L0 30z' fill='%23556b2f' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
}

/* Header & Navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 10px 10%;
    background: transparent;
}

nav.scrolled {
    background: linear-gradient(135deg, #004d40 0%, #00251a 100%);
    /* Same as founder card */
    padding: 6px 10%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.nav-main-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-left {
    flex: 0 0 auto;
}

.nav-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-right {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

nav.scrolled .logo {
    color: var(--secondary);
    /* Changed to gold */
    font-size: 1.5rem;
}

.nav-info-group {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.85);
    padding-bottom: 2px;
}

nav.scrolled .nav-info-group {
    color: rgba(255, 255, 255, 0.85);
    border-color: rgba(255, 255, 255, 0.1);
}

.contact-mini {
    display: flex;
    gap: 12px;
}

.contact-mini span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.contact-mini i {
    color: var(--secondary);
}

.social-mini-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-mini-wrap a {
    color: var(--white);
    opacity: 0.8;
    font-size: 0.75rem;
}

nav.scrolled .social-mini-wrap a {
    color: var(--white);
}

.nav-label {
    font-size: 0.58rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--secondary);
}

.legal-mini-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sk-badge-mini {
    background: rgba(255, 255, 255, 0.1);
    /* Light Teal tint */
    color: white;
    padding: 3px 10px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(77, 182, 172, 0.3);
    transition: var(--transition);
}

.sk-label-inner {
    font-size: 0.6rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.sk-val-inner {
    font-size: 0.7rem;
    font-weight: 600;
    font-family: monospace;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 18px;
}

.team-overlay h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
    /* Slightly smaller */
}

.team-overlay span {
    font-size: 0.8rem;
    /* Slightly smaller */
    color: var(--secondary);
    font-weight: 600;
}

.nav-links a {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    font-size: 0.8rem;
    transition: var(--transition);
    position: relative;
    padding: 2px 0;
}

nav.scrolled .nav-links a {
    color: var(--white);
}

.nav-sk-card {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--secondary);
    padding: 8px 15px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    text-align: right;
    transition: var(--transition);
}

nav.scrolled .nav-sk-card {
    background: var(--gray-light);
}

.sk-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--secondary);
    letter-spacing: 1px;
}

.sk-val {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--white);
    font-family: monospace;
}

nav.scrolled .sk-val {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 120vh;
    /* Changed from height: 100vh to accommodate integrated content */
    background-color: var(--primary);
    /* Fallback color */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 170px 10% 150px 10%;
    /* Increased top and bottom padding */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient from Black top to Thicker Light Teal bottom */
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.795) 0%, rgba(38, 166, 153, 0.82) 100%);
    z-index: 1;
}

.fireflies-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
    pointer-events: none;
}

.firefly {
    position: absolute;
    width: 6px;
    /* Increased from 4px */
    height: 6px;
    background: #a7ffeb;
    /* Brighter teal/mint color */
    border-radius: 50%;
    box-shadow: 0 0 15px 4px #4db6ac, 0 0 25px 8px rgba(77, 182, 172, 0.4);
    /* Enhanced glow */
    opacity: 0;
    animation: moveFirefly linear infinite, flickerFirefly ease-in-out infinite;
}

@keyframes moveFirefly {
    0% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(150px, -80px);
    }

    50% {
        transform: translate(80px, -200px);
    }

    75% {
        transform: translate(-80px, -150px);
    }

    100% {
        transform: translate(0, 0);
    }
}

@keyframes flickerFirefly {

    0%,
    100% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    /* Increased from 0.8 */
}

.hero-content {
    position: relative;
    z-index: 5;
    /* Higher z-index */
    color: var(--white);
    max-width: 1400px;
    /* Kept wide for the founder card */
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    /* Added shadow for legibility */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-text-wrap {
    max-width: 750px;
    /* Constrained width for the main text */
    margin: 0 auto;
}

.hero-tagline {
    display: inline-block;
    color: var(--secondary);
    font-size: 0.75rem;
    /* Reduced from 0.9rem */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 8px;
    /* Reduced from 15px */
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards 0.3s;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 12px;
    opacity: 1;
    transform: translateY(0);
    line-height: 1.2;
    min-height: 1.2em;
    /* Prevents height collapse while typing */
    display: block;
    /* Changed from inline-block to ensure full row */
    width: 100%;
    text-align: center;
}

.hero h1.typing-active::after {
    content: '|';
    animation: blink 0.7s infinite;
    margin-left: 2px;
    color: var(--secondary);
    display: inline-block;
    vertical-align: middle;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.hero p {
    font-size: 1.05rem;
    /* Reduced from 1.2rem */
    margin-bottom: 25px;
    /* Reduced from 35px */
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 0.8s;
    line-height: 1.6;
    opacity: 0.9;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 1.1s;
}

.btn {
    padding: 12px 30px;
    /* Reduced padding from 15/35 */
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 0.9rem;
    /* Added slightly smaller font size */
}

.btn-primary {
    background: var(--secondary);
    color: var(--white);
}

.btn-primary:hover {
    background: #c19b2e;
    transform: translateY(-3px);
}

.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-3px);
}

/* About Founder */
.section {
    padding: 100px 10%;
}

.founder-card {
    display: flex;
    background: linear-gradient(135deg, #004d40 0%, #00251a 100%);
    /* Dark Teal Gradient */
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* Subtle white border */
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
}

.founder-img {
    width: 25%;
    /* Reduced from 40% to shrink image area */
    height: 100%;
    object-fit: cover;
    padding: 20px;
    /* Reduced padding */
}

.founder-img img {
    width: 100%;
    height: auto;
    border-radius: 50%;
    border: 6px solid rgba(77, 182, 172, 0.3);
    /* Soft teal border */
}

.founder-info {
    width: 75%;
    /* Increased from 60% */
    padding: 30px 40px;
    /* Reduced from 50px */
}

.founder-info h2 {
    color: var(--primary);
    margin-bottom: 2px;
    font-size: 1.5rem;
    /* Reduced font size */
}

.founder-info .title {
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 12px;
    display: block;
    font-size: 0.9rem;
    /* Reduced font size */
}

.founder-info p {
    font-size: 0.95rem;
    /* Reduced font size */
    line-height: 1.5;
}


/* Programs Section */
#programs {
    background: linear-gradient(to bottom, #ffffff 0%, #e0f2f1 100%);
    /* White to Light Teal Gradient */
    padding: 100px 10%;
    position: relative;
}

#programs h2 {
    color: #004d40;
    /* Dark Teal Green */
}

#programs p {
    color: #555;
}

.programs-grid.product-style {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Explicitly 3 columns side-by-side */
    max-width: 1200px;
    margin: 50px auto 0;
    gap: 25px;
}

.program-card {
    background: var(--white);
    padding: 35px 25px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid #edf2f7;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.program-card:hover {
    transform: translateY(-20px) scale(1.1);
    /* More pronounced lift and grow */
    border-color: var(--secondary);
    box-shadow: 0 40px 80px rgba(0, 77, 64, 0.2);
    /* Even deeper shadow */
    z-index: 10;
    /* Ensure it stays on top of neighbors */
}

.card-icon {
    width: 60px;
    height: 60px;
    background: rgba(77, 182, 172, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: #004d40;
    font-size: 1.8rem;
    transition: var(--transition);
    /* Ensure smooth icon transition */
}

.program-card:hover .card-icon {
    transform: scale(1.1) rotate(10deg);
    background: rgba(77, 182, 172, 0.2);
}

.program-card h3 {
    color: #004d40;
    /* Dark Teal Headings */
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.program-card p {
    color: #64748b;
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.btn-product {
    padding: 10px 25px;
    border: 1.5px solid #004d40;
    /* Dark Teal Border */
    color: #004d40;
    /* Dark Teal Text */
    text-decoration: none;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 30px;
    transition: var(--transition);
}

.btn-product:hover {
    background: #004d40;
    color: var(--white);
    transform: scale(1.05);
}

/* Team Section */
#team {
    background: #004d40;
    /* Dark Teal Theme */
    padding: 100px 10%;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.venom-clouds {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.cloud {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(77, 182, 172, 0.491) 0%, transparent 75%);
    filter: blur(60px);
    border-radius: 50%;
    animation: venomFloat 18s infinite alternate ease-in-out;
}

.cloud:nth-child(1) {
    top: -150px;
    left: -150px;
    animation-duration: 20s;
}

.cloud:nth-child(2) {
    bottom: -150px;
    right: -150px;
    animation-duration: 24s;
    animation-delay: -5s;
}

.cloud:nth-child(3) {
    top: 40%;
    left: 40%;
    width: 600px;
    height: 600px;
    animation-duration: 30s;
    animation-delay: -10s;
}

@keyframes venomFloat {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        opacity: 0.7;
    }

    50% {
        transform: translate(150px, 80px) scale(1.3) rotate(10deg);
        opacity: 1;
    }

    100% {
        transform: translate(-80px, 150px) scale(0.9) rotate(-10deg);
        opacity: 0.7;
    }
}

#team h2 {
    color: var(--white) !important;
}

#team p {
    color: rgba(255, 255, 255, 0.7);
}

.team-grid {
    display: flex;
    width: 100%;
    max-width: 900px;
    /* Reduced from 1200px */
    margin: 40px auto 0;
    gap: 0;
    overflow: hidden;
    border-radius: 12px;
    position: relative;
    z-index: 2;
}

.team-card {
    position: relative;
    flex: 1;
    height: 350px;
    /* Reduced from 450px */
    overflow: hidden;
    transition: all 0.5s ease;
    cursor: pointer;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.team-card:last-child {
    border-right: none;
}

.team-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
    filter: brightness(0.7) grayscale(20%);
    /* Slightly dimmed by default */
}

.team-card:hover {
    flex: 3;
    /* Expands on hover */
}

.team-card:hover img {
    filter: brightness(1) grayscale(0%);
    transform: scale(1.05);
}

.team-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    color: var(--white);
    transform: translateY(100%);
    /* Hidden by default */
    transition: all 0.4s ease 0.1s;
    z-index: 3;
    opacity: 0;
}

.team-card:hover .team-overlay {
    transform: translateY(0);
    opacity: 1;
}


/* CTA & Map */
.cta-map {
    background: linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.758)), url('assets/images/hero_bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect to match hero feel */
    color: var(--white);
    padding: 100px 10% 0 10%;
    text-align: center;
}

.cta-content {
    margin-bottom: 50px;
}

.cta-info-wrap {
    margin: 50px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    text-align: left;
}

.cta-info-item {
    min-width: 200px;
}

.map-container {
    height: 400px;
    width: 100%;
    border-radius: 15px 15px 0 0;
    overflow: hidden;
    background: #eee;
}

/* Partners Section */
.partners-section {
    background: var(--white);
    padding: 20px 10%;
    border-top: 1px solid #eee;
}

.partners-container {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.partners-left {
    flex: 1;
    min-width: 300px;
}

.partners-left h2 {
    color: #004d40;
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 15px;
}

.accent-line {
    width: 60px;
    height: 4px;
    background: var(--secondary);
    border-radius: 2px;
}

.partners-right {
    flex: 3;
    /* Increased from 2 to give more width to the slider */
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

/* Logo Slider Animation */
.logo-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.logo-track {
    display: flex;
    gap: 40px;
    /* Reduced gap */
    width: max-content;
    animation: logoScroll 8s linear infinite;
    /* Faster loop (8s) */
}

.logo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #94a3b8;
    transition: var(--transition);
    filter: grayscale(1);
    opacity: 0.6;
}

.logo-item:hover {
    filter: grayscale(0);
    opacity: 1;
    color: var(--secondary);
}

.logo-item img {
    width: 180px;
    /* Increased size */
    height: 100px;
    /* Increased size */
    object-fit: contain;
}

.logo-item span {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes logoScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

footer {
    background: #1a1e13;
    color: #cbd5e0;
    padding: 80px 10% 30px 10%;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 25px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #cbd5e0;
    text-decoration: none;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: var(--transition);
    animation: whatsappPulse 2s infinite;
    /* Added pulse animation */
}

@keyframes whatsappPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    background: var(--primary);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--secondary);
    transform: translateY(-5px);
}

.hero h1,
.hero p {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: 0.8s all ease-out;
}

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

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1200px) {
    .nav-info-group {
        display: none;
    }

    .nav-center {
        flex: 2;
    }

    .nav-right {
        flex: 1;
    }

    .legal-mini-wrap span {
        display: none;
    }
}

/* Mobile Toggle */
#navbar .nav-toggle {
    display: none;
    font-size: 1.8rem;
    color: var(--white);
    cursor: pointer;
    z-index: 1100;
    transition: var(--transition);
    padding: 5px;
}

#navbar.scrolled .nav-toggle {
    color: var(--secondary);
}

/* Mobile Menu Content */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 350px;
    height: 100vh;
    background: linear-gradient(135deg, #004d40 0%, #00251a 100%);
    z-index: 9999;
    padding: 40px;
    display: flex;
    flex-direction: column;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

.close-menu {
    font-size: 1.8rem;
    color: var(--white);
    cursor: pointer;
}

.mobile-nav-links {
    list-style: none;
    margin-bottom: 50px;
}

.mobile-nav-links li {
    margin-bottom: 25px;
}

.mobile-nav-links a {
    text-decoration: none;
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 600;
    font-family: 'Playfair Display', serif;
    transition: var(--transition);
}

.mobile-nav-links a:hover {
    color: var(--secondary);
    padding-left: 10px;
}

.mobile-menu-footer {
    margin-top: auto;
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-footer .contact-mini span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
}

/* Responsive Queries */
@media screen and (max-width: 992px) {
    #navbar {
        padding: 15px 5% !important;
    }

    #navbar .nav-center,
    #navbar .nav-right {
        display: none !important;
    }

    #navbar .nav-toggle {
        display: block !important;
    }

    .section {
        padding: 60px 5%;
    }

    h2 {
        font-size: 1.8rem !important;
    }

    .hero {
        padding: 120px 5% 80px 5%;
        min-height: auto;
    }

    .hero h1 {
        font-size: 2rem;
        word-wrap: break-word;
    }

    .programs-grid.product-style {
        grid-template-columns: 1fr;
        padding: 0;
    }

    .team-grid {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 20px;
        padding: 0;
        margin: 0;
        width: 100%;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .team-grid::-webkit-scrollbar {
        display: none;
    }

    .team-card {
        min-width: 100% !important;
        height: auto !important;
        aspect-ratio: 4 / 5;
        flex: 0 0 100%;
        scroll-snap-align: center;
        border: none;
        border-radius: 20px;
        margin: 0;
        position: relative;
        overflow: hidden;
        padding: 0;
        background: transparent;
    }

    .team-card img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        /* Cover looks better than contain for cards */
        border-radius: 20px;
    }

    .team-card.reveal {
        opacity: 1 !important;
        transform: none !important;
    }

    .team-card.reveal.active {
        opacity: 1 !important;
        transform: none !important;
    }

    .team-card:hover {
        flex: 0 0 auto;
    }

    .team-overlay {
        transform: translateY(0);
        opacity: 1;
        background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
        padding: 20px;
    }

    .founder-card {
        flex-direction: column;
        margin-top: 160px !important;
    }

    .founder-img {
        width: 180px;
        margin: 20px auto 0 auto;
        padding: 0;
    }

    .founder-info {
        width: 100%;
        padding: 20px;
        text-align: center !important;
    }

    .founder-info h2 {
        font-size: 1.3rem !important;
    }

    .partners-section {
        padding: 40px 5%;
    }

    .partners-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .accent-line {
        margin: 0 auto;
    }

    .cta-info-wrap {
        text-align: center;
        flex-direction: column;
        gap: 25px;
    }
}

@media screen and (max-width: 600px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
        padding: 0;
        gap: 15px;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .cta-map {
        padding: 60px 5% 0 5%;
    }

    .hero-text-wrap {
        margin: 50px 0 0 0;
    }
}