/* ===== CSS Variables ===== */
:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-tertiary: #1a1a1a;
    --bg-card: #151515;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    --accent: #ffffff;
    --accent-hover: #e0e0e0;
    --border: rgba(255, 255, 255, 0.1);
    --gradient-dark: linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.7) 100%);

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    --container-max: 1200px;
    --header-height: 80px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ===== Header ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
    overflow: hidden;
}

.header-left {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    flex-shrink: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    text-decoration: none;
    color: var(--text-primary);
}

.logo-img {
    height: 40px;
    width: auto;
    /* Logo should be visible on dark bg, no filter needed */
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--text-primary);
}

.header-right {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.countdowns {
    display: flex;
    gap: var(--spacing-md);
    flex-shrink: 1;
    min-width: 0;
}

.countdown-item {
    text-align: right;
}

.countdown-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.countdown-timer {
    display: flex;
    gap: var(--spacing-sm);
}

.countdown-unit {
    text-align: center;
}

.countdown-value {
    font-size: 1.25rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.countdown-label {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-top: 2px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slides {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-image {
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(0, 0, 0, 0.6) 0%,
            rgba(0, 0, 0, 0.3) 30%,
            rgba(0, 0, 0, 0.3) 70%,
            rgba(0, 0, 0, 0.8) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: var(--spacing-md);
}

.hero-logo {
    max-width: 180px;
    height: auto;
    margin-bottom: var(--spacing-md);
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.5));
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 300;
    letter-spacing: -1px;
    margin-bottom: var(--spacing-sm);
    line-height: 1.1;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    font-weight: 300;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}

.hero-ctas {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 16px 48px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    border: 1px solid var(--text-primary);
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background: transparent;
    color: var(--text-primary);
}

.btn-primary:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--text-primary);
}

.btn-outline:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
}

.btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    border-color: var(--text-secondary);
    padding: 10px 24px;
    font-size: 0.75rem;
}

.btn-secondary:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

/* ===== Sections ===== */
.section {
    padding: var(--spacing-lg) 0;
}

.section-dark {
    background: var(--bg-secondary);
}

.section-accent {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.section-header h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 600;
    letter-spacing: -0.5px;
    margin-bottom: var(--spacing-sm);
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 400;
}

.section-subtitle span {
    font-weight: 500;
    color: var(--text-primary);
}

/* ===== About Section ===== */
.section-about {
    padding: var(--spacing-xl) 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.about-text h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 300;
    font-style: italic;
    margin-bottom: var(--spacing-md);
}

.accent-line {
    width: 60px;
    height: 3px;
    background: #3b82f6;
    margin-bottom: var(--spacing-md);
}

.about-text h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    line-height: 1.5;
}

.about-text .differentiator {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
}

.about-text p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.about-text h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent);
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
}

.about-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.about-column h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: var(--spacing-sm);
}

.about-column p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .about-text {
        text-align: center;
    }

    .accent-line {
        margin: 0 auto var(--spacing-md);
    }
}

/* ===== Project Highlights (Teaser) Section ===== */
.project-flagship {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.flagship-image {
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 4 / 3;
    background: var(--bg-tertiary);
}

.flagship-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.flagship-carousel img {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.flagship-carousel img.active {
    opacity: 1;
}

.flagship-content h3 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.flagship-tagline {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: var(--spacing-sm);
}

.flagship-content p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.flagship-content .flagship-next {
    margin-top: var(--spacing-sm);
    padding-top: var(--spacing-sm);
    border-top: 1px solid var(--border);
    font-size: 0.95rem;
}

.divisions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.division-item {
    padding: var(--spacing-md) 0;
    border-top: 1px solid var(--border);
}

.division-item h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.division-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.projects-cta {
    text-align: center;
}

@media (max-width: 900px) {
    .project-flagship {
        grid-template-columns: 1fr;
    }
    
    .divisions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .divisions-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Full Projects Section ===== */
.projects-intro {
    text-align: center;
    max-width: 900px;
    margin: 0 auto var(--spacing-lg);
    color: var(--text-secondary);
    line-height: 1.8;
}

.projects-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-md);
}

.project-card {
    flex: 0 1 340px;
    max-width: 400px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: var(--transition);
}

.project-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
}

.project-image {
    width: 100%;
    height: 200px;
    background: var(--bg-tertiary);
    overflow: hidden;
    position: relative;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

/* Carousel styles */
.project-carousel img.carousel-img {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.project-carousel img.carousel-img.active {
    opacity: 1;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-content {
    padding: var(--spacing-md);
}

.project-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.project-content p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
}

/* ===== Leadership Section ===== */
.leadership-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-md);
}

.leader-card {
    flex: 0 1 180px;
    max-width: 220px;
    text-align: center;
    padding: var(--spacing-md);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.leader-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.leader-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto var(--spacing-sm);
    background: var(--bg-tertiary);
    overflow: hidden;
    border: 2px solid var(--border);
}

.leader-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.leader-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.leader-card .role {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== What's Next Section ===== */
.whats-next-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.whats-next-content h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.whats-next-content p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

/* ===== Sponsors Section ===== */
.sponsors-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.sponsors-tier {
    width: 100%;
}

.sponsors-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    align-items: center;
}

/* Tier-specific sizing */
.sponsors-grid-platinum .sponsor-link {
    padding: var(--spacing-md) var(--spacing-lg);
}

.sponsors-grid-platinum .sponsor-logo {
    max-height: 80px;
    max-width: 200px;
}

.sponsors-grid-gold .sponsor-logo {
    max-height: 60px;
    max-width: 160px;
}

.sponsors-grid-silver .sponsor-logo {
    max-height: 50px;
    max-width: 140px;
}

.sponsors-grid-bronze .sponsor-logo {
    max-height: 40px;
    max-width: 120px;
}

.sponsor-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: var(--transition);
    text-decoration: none;
}

.sponsor-link:hover {
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    background: var(--bg-tertiary);
}

.sponsor-logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px;
    /* Use white background for visibility of dark logos */
    background: rgba(255, 255, 255, 0.95);
    border-radius: 6px;
}

/* For SVG logos that need transparent bg on dark cards */
.sponsor-logo-wrapper.transparent-bg {
    background: transparent;
}

/* For white/light colored logos that need dark background */
.sponsor-logo-wrapper.dark-bg {
    background: #1a1a1a;
}

.sponsor-logo {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    min-width: 80px;
    min-height: 30px;
    object-fit: contain;
}

/* SVG-specific sizing to prevent collapse */
.sponsor-logo[src$=".svg"] {
    width: 100%;
    height: 50px;
}

.sponsor-name {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-align: center;
    padding: 8px 16px;
}

/* ===== Alumni Outcomes Section ===== */
.section-outcomes {
    background: var(--bg-secondary);
    padding: var(--spacing-xl) 0;
}

.outcomes-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.outcomes-header h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 600;
    letter-spacing: -0.5px;
    margin-bottom: var(--spacing-sm);
}

.outcomes-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Company Logos Carousel */
.outcomes-companies {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: var(--spacing-lg) 0;
    margin-bottom: var(--spacing-lg);
    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);
}

.companies-track {
    display: flex;
    gap: var(--spacing-lg);
    animation: scroll-logos 25s linear infinite;
    width: max-content;
}

@keyframes scroll-logos {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.company-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.company-logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 70px;
    width: 200px;
}

.company-logo-wrapper img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

/* Outcomes Content */
.outcomes-content {
    max-width: 900px;
    margin: 0 auto var(--spacing-lg);
    text-align: center;
}

.outcomes-description {
    font-size: 1.125rem;
    line-height: 1.9;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
}

/* Values Grid */
.outcomes-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.value-card {
    padding: var(--spacing-md);
    text-align: left;
}

.value-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.value-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Testimonials */
.outcomes-testimonials {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
    margin: var(--spacing-lg) 0;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.testimonial-card {
    padding: var(--spacing-md) 0;
    border-top: 1px solid var(--border);
}

.testimonial-quote {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: var(--spacing-sm);
}

.testimonial-author {
    display: flex;
    flex-direction: column;
}

.testimonial-author .name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.testimonial-author .role {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* CTA Section */
.outcomes-cta {
    text-align: center;
    padding: var(--spacing-lg) 0;
    max-width: 700px;
    margin: 0 auto;
}

.outcomes-cta h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.outcomes-cta p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

.outcomes-cta-buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 900px) {
    .outcomes-values {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
    
    .outcomes-testimonials {
        grid-template-columns: 1fr;
    }
    
    .value-card {
        padding: var(--spacing-sm) 0;
        border-top: 1px solid var(--border);
    }
}

@media (max-width: 768px) {
    .companies-track {
        gap: var(--spacing-md);
    }
    
    .company-logo-wrapper {
        height: 50px;
        width: 150px;
    }
}

/* ===== Contact Section ===== */
.social-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.social-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.social-link:hover {
    border-color: var(--text-primary);
    background: var(--bg-card);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

/* ===== Footer ===== */
footer {
    padding: var(--spacing-md) 0;
    border-top: 1px solid var(--border);
    text-align: center;
}

footer p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ===== Mobile Navigation ===== */
.mobile-nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    padding: var(--spacing-md);
    z-index: 999;
}

.mobile-nav.active {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.mobile-nav a {
    display: block;
    padding: var(--spacing-sm);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 500;
    border-bottom: 1px solid var(--border);
}

/* ===== Responsive ===== */
/* Progressively compress nav before hamburger */
@media (max-width: 1350px) {
    .nav-links {
        gap: var(--spacing-sm);
    }

    .nav-links a {
        font-size: 0.75rem;
        letter-spacing: 0.5px;
    }
}

@media (max-width: 1250px) {
    .nav-links {
        gap: 8px;
    }

    .nav-links a {
        font-size: 0.7rem;
        letter-spacing: 0;
    }

    .header-left {
        gap: var(--spacing-md);
    }
}

@media (max-width: 1200px) {
    .countdowns {
        gap: var(--spacing-md);
    }

    .countdown-title {
        font-size: 0.65rem;
    }

    .countdown-value {
        font-size: 1.1rem;
    }

    .countdown-timer {
        gap: var(--spacing-xs);
    }
}

/* Hide nav links and show hamburger after compression stages */
@media (max-width: 1100px) {
    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }
}

@media (max-width: 1024px) {
    .countdowns {
        gap: var(--spacing-sm);
    }

    .countdown-title {
        font-size: 0.6rem;
    }

    .countdown-value {
        font-size: 0.95rem;
    }

    .countdown-label {
        font-size: 0.55rem;
    }
}

@media (max-width: 900px) {

    /* Hide one countdown to save space */
    .countdown-item:last-child {
        display: none;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }

    /* Hide nav by default, show when active */
    .nav-links {
        display: none;
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--bg-primary);
        flex-direction: column;
        padding: var(--spacing-md);
        border-bottom: 1px solid var(--border);
        z-index: 999;
    }

    .nav-links.mobile-active {
        display: flex;
    }

    .nav-links a {
        padding: var(--spacing-sm);
        font-size: 1rem;
        border-bottom: 1px solid var(--border);
    }

    /* Show countdowns on mobile but more compact */
    .countdowns {
        display: flex;
        gap: var(--spacing-sm);
    }

    .countdown-item {
        text-align: center;
    }

    .countdown-title {
        font-size: 0.6rem;
        margin-bottom: 2px;
    }

    .countdown-timer {
        gap: var(--spacing-xs);
    }

    .countdown-value {
        font-size: 0.875rem;
    }

    .countdown-label {
        font-size: 0.5rem;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .leadership-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section {
        padding: var(--spacing-lg) 0;
    }

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

    .btn {
        padding: 14px 32px;
    }
}

@media (max-width: 480px) {
    .leadership-grid {
        grid-template-columns: 1fr;
    }

    .social-links {
        flex-direction: column;
        align-items: stretch;
    }

    .social-link {
        justify-content: center;
    }
}

/* ===== Placeholder for missing images ===== */
.placeholder-bg {
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-card) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ===== Modal Styles ===== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
}

.modal.active {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

.modal-close {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    z-index: 10;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-header {
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.modal-status {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 20px;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

.modal-body {
    padding: var(--spacing-md);
}

/* Modal Gallery */
.modal-gallery {
    position: relative;
    width: 100%;
    margin-bottom: var(--spacing-md);
}

.gallery-images {
    position: relative;
    width: 100%;
    height: 300px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    overflow: hidden;
}

.gallery-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-image.active {
    opacity: 1;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.gallery-nav:hover {
    background: rgba(0, 0, 0, 0.8);
}

.gallery-prev {
    left: 10px;
}

.gallery-next {
    right: 10px;
}

.gallery-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: var(--spacing-sm);
}

.gallery-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-muted);
    cursor: pointer;
    transition: background 0.2s;
}

.gallery-dot.active {
    background: var(--accent);
}

.modal-body p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

.modal-specs {
    background: var(--bg-tertiary);
    border-radius: 8px;
    padding: var(--spacing-md);
}

.modal-specs h4 {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: var(--spacing-sm);
}

.modal-specs ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-xs);
}

.modal-specs li {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.modal-specs li strong {
    color: var(--text-primary);
}

@media (max-width: 480px) {
    .modal-content {
        max-height: 90vh;
    }

    .modal-header h2 {
        font-size: 1.25rem;
    }

    .modal-specs ul {
        grid-template-columns: 1fr;
    }
}