@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

body {
    font-family: 'Inter', sans-serif;
}

.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Navbar */
.site-header {
    background: #fff;
    padding: 8px 18px;
    position: relative;
    /* keep it on top so hero sits under it */
    left: 0;
    right: 0;
    top: 0;
    z-index: 500;
    /* allow header to grow rather than force fixed height */
    min-height: 64px;
    display: flex;
    align-items: center;
}

.navbar {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.navbar .logo {
    color: white;
    font-weight: bold;
}

.inter-adi {
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

.navbar .logo img {
    max-height: 50px;
    width: auto;
    display: block;
}

/* Desktop nav default */
.navbar ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 28px;
}

.navbar ul li a {
    color: #111;
    font-weight: 500;
    text-decoration: none;
    padding: 6px 4px;
    line-height: 1;
    font-family: "Inter", sans-serif;
}

.nav-cta {
    border: 1px solid #1E40AF;
    border-radius: 10px;
    color: #1E40AF;
}

.nav-cta-one {
    font-weight: bold;
    color: #1E40AF;
}

/* ---------- HAMBURGER (mobile only) ---------- */
/* default: hide hamburger on desktop; show only on mobile */
.hamburger {
    display: none;
    background: white;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-left: 12px;
    z-index: 1100;
}

/* bars */
.hamburger .bar {
    display: block;
    width: 24px;
    height: 2.5px;
    margin: 5px 0;
    background: black;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

/* transform to "X" when open */
.hamburger.open .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.open .bar:nth-child(2) {
    opacity: 0;
    pointer-events: none;
}

.hamburger.open .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

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

    /* show hamburger button on mobile */
    .hamburger {
        display: block;
    }

    /* Layout tweaks for navbar */
    .navbar {
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1040;
        width: 100%;
        list-style: none;
        margin: 8px 0 0 0;
        padding: 0;
        overflow: hidden;
        max-height: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        background-color: white;
        transition: max-height 320ms ease, padding 220ms ease;
        box-shadow: 0 8px 20px rgba(2, 8, 23, 0.08);
        border-radius: 8px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
    }

    /* expanded state */
    .nav-links.open {
        max-height: calc(100vh - 64px);
        padding: 12px 12px 18px 12px;
    }

    /* keep each item spaced comfortably */
    .nav-links li {
        width: auto;
        margin: 6px 0;
    }

    .nav-links li a {
        display: inline-block;
        padding: 8px 12px;
        font-size: 15px;
        color: #111;
        text-decoration: none;
        white-space: nowrap;
    }

    /* Make sure logo doesn't get too big on mobile */
    .navbar .logo img {
        max-height: 48px;
        width: auto;
        display: block;
    }

    /* adjust hero spacing to avoid overlap */
    .about-hero {
        padding-top: 60px;
        padding-left: 18px;
        padding-right: 18px;
        height: auto;
    }
}

/* extra tiny tweak */
@media (max-width: 380px) {
    .navbar .logo img {
        max-height: 45px;
    }

    .nav-links li a {
        font-size: 14px;
        padding: 7px 10px;
    }
}

/* Prevent horizontal scrollbars and white space on mobile */
html,
body {
    width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Ensure desktop nav behaves correctly across all browsers */
.nav-links {
    display: flex;
    gap: 20px;
}

/* Ensure no weird overflow from inner flex layouts */
.program,
.about,
.stats,
.news,
.research,
.publishers {
    width: 100%;
    max-width: 100vw;
    margin: 0 auto;
    overflow-x: hidden;
}

/* Footer */
footer {
    background-color: #f5f5f5;
    color: #000;
    font-size: 14px;
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 20px 40px;
}

.footer-section {
    flex: 1 1 200px;
    margin-bottom: 12px;
}

.footer-section h4 {
    margin-bottom: 15px;
    font-size: 16px;
}

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

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section a {
    color: inherit;
    text-decoration: none;
}

.footer-section a:hover {
    text-decoration: underline;
}

.social-icons {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
}

.social-icons a {
    font-size: 20px;
    color: #000;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #0073e6;
}

.bottom-links {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.footer-bottom {
    background-color: #1439b3;
    color: #fff;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
}

.footer-bottom .left p:first-child {
    font-weight: bold;
    margin-bottom: 5px;
}

.footer-bottom .right {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-bottom .right a {
    color: #fff;
    text-decoration: none;
}

.footer-bottom .right a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .footer-top {
        flex-direction: column;
        padding: 30px 20px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .footer-bottom .right {
        justify-content: center;
    }

    .bottom-links {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 15px;
        margin-top: 10px;
    }
}

/* --- ANIMATIONS & TRANSITIONS --- */

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

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

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.hero-content-reveal>* {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero-content-reveal>*:nth-child(1) {
    animation-delay: 0.1s;
}

.hero-content-reveal>*:nth-child(2) {
    animation-delay: 0.2s;
}

.hero-content-reveal>*:nth-child(3) {
    animation-delay: 0.3s;
}

.hero-content-reveal>*:nth-child(4) {
    animation-delay: 0.4s;
}

.hero-content-reveal>*:nth-child(5) {
    animation-delay: 0.5s;
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.stagger-reveal>*:nth-child(1) {
    transition-delay: 0.1s;
}

.stagger-reveal>*:nth-child(2) {
    transition-delay: 0.2s;
}

.stagger-reveal>*:nth-child(3) {
    transition-delay: 0.3s;
}

.stagger-reveal>*:nth-child(4) {
    transition-delay: 0.4s;
}

.pulse-glow {
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(240, 165, 0, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(240, 165, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(240, 165, 0, 0);
    }
}