@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;900&display=swap');

:root {
    --bg-color: #FAFAFA;
    --text-main: #222222;
    --accent: #1A237E; 
    --accent-vibrant: #2979FF; 
}

html, body {
    width: 100%;
    overflow-x: hidden;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

html::-webkit-scrollbar, body::-webkit-scrollbar {
    display: none;
    width: 0px;
    background: transparent;
}

html { scroll-behavior: smooth; }

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

a:focus-visible, button:focus-visible {
    outline: 3px solid var(--accent-vibrant);
    outline-offset: 2px;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

section { padding: 5rem 1rem; }

.section-header { text-align: center; margin-bottom: 3rem; }

.section-header h2 { font-size: 2rem; color: var(--text-main); }

.section-header .underline { 
    width: 4rem; 
    height: 4px; 
    background-color: var(--accent); 
    margin: 0.5rem auto 0 auto; 
}

header {
    position: fixed;
    top: -150px; 
    left: 0;
    width: 100%;
    z-index: 9999;
    transition: top 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: top 0.4s cubic-bezier(0.25, 1, 0.5, 1), padding 0.3s ease, background 0.3s ease;
}

header.header-scrolled {
    top: 0; 
    padding: 0.5rem 2rem;
    background: rgba(0, 0, 0, 0.9);
}

.g1 {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.2rem;
    transition: height 0.3s ease;
}

.g1 a {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    text-decoration: none;
}

.g1 img {
    height: 5rem;
    width: auto;
    border-radius: 0.5rem;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.6);
}

header.header-scrolled .g1 img {
    height: 3.5rem;
}

.g1 div {
    display: flex;
    flex-direction: column;
}

.g1 h1, .g1 h2 {
    margin: 0;
    line-height: 1.2;
}

.g1 h1 {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 800;
}

.g1 h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.05em;
    margin-top: 0.2rem;
}

.hero-fullscreen {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #000;
}

.hero-parallax-wrapper { position: absolute; top: -5%; left: -5%; width: 110%; height: 110%; z-index: 1; will-change: transform; }

.hero-bg { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.5); transform: scale(1.05); animation: slowZoom 15s linear infinite alternate; transition: object-position 0.6s ease; }

.hero-content-main { text-align: center; color: white; z-index: 2; animation: fadeUp 1s cubic-bezier(0.165, 0.84, 0.44, 1) forwards; padding: 0 2rem; }

.hero-content-main h1 { font-size: clamp(3.5rem, 8vw, 7.5rem); font-weight: 900; letter-spacing: -0.04em; margin-bottom: 0.5rem; line-height: 1.1; text-shadow: 0 10px 30px rgba(0,0,0,0.5); }

.hero-content-main p { font-size: clamp(1rem, 2vw, 1.4rem); font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase; opacity: 0.9; }

.hero-text-fullscreen {
    height: 100vh; 
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    text-align: center;
    padding: 0 2rem;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid #f3f4f6; 
}

.dynamic-text-container { will-change: transform, opacity; }

.dynamic-text-container h1 { font-size: clamp(4rem, 10vw, 8rem); color: #1a237e; font-weight: 900; line-height: 1.05; margin-bottom: 1.5rem; letter-spacing: -0.04em; }

.dynamic-text-container p { font-size: clamp(1.1rem, 2vw, 1.5rem); color: #4b5563; max-width: 700px; margin: 0 auto; font-weight: 500; }

.heritage-melt { background: linear-gradient(180deg, #ffffff 0%, #f9fafb 15%, #f9fafb 100%); }

@keyframes slowZoom { from { transform: scale(1.05); } to { transform: scale(1.15); } }

@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

#page-loader {
    position: fixed; inset: 0; z-index: 99999; 
    background: #000000;
    display: flex; align-items: center; justify-content: center;
    transition: transform 1s cubic-bezier(0.75, 0, 0.25, 1), opacity 1s ease;
}

#page-loader.loader-hidden { 
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none; 
}

.loader-inner { 
    display: flex; flex-direction: column; align-items: center; 
}

.loader-logo { 
    width: 5.5rem; height: 5.5rem; border-radius: 50%; object-fit: cover; 
    opacity: 0;
    margin-bottom: 2rem; 
    animation: 
        premiumReveal 1.8s cubic-bezier(0.2, 1, 0.3, 1) forwards,
        logoBreathe 3s ease-in-out infinite 1.8s; 
}

.loader-wordmark { 
    display: flex; flex-direction: column; align-items: center; gap: 1.5rem; 
}

.loader-title { 
    font-size: clamp(1rem, 2.5vw, 1.6rem); 
    font-weight: 500; 
    letter-spacing: 0.5em; 
    color: #ffffff; 
    text-transform: uppercase; 
    display: flex; 
    justify-content: center; 
    margin-right: -0.5em; 
}

.loader-title .letter {
    display: inline-block;
    opacity: 0;
    animation: cinematicLetterWave 4.5s ease-in-out infinite;
    will-change: transform, opacity, filter;
}

.loader-title .letter.space { 
    width: 0.4em; 
}

.loader-sub { 
    font-size: 0.9rem; 
    font-weight: 400; 
    letter-spacing: 0.4em; 
    color: rgba(255, 255, 255, 0.6); 
    text-transform: uppercase; 
    margin-top: 1rem; 
    opacity: 0; 
    animation: 
        textFadeIn 2s ease 1.5s forwards,
        textPulse 3s ease-in-out infinite 3.5s; 
}

@keyframes premiumReveal {
    0% { opacity: 0; transform: scale(0.8) translateY(20px); filter: blur(15px); box-shadow: 0 0 0 rgba(255,255,255,0); }
    100% { opacity: 1; transform: scale(1) translateY(0); filter: blur(0); box-shadow: 0 10px 40px rgba(255, 255, 255, 0.08); }
}

@keyframes logoBreathe {
    0%, 100% { box-shadow: 0 10px 40px rgba(255, 255, 255, 0.08); }
    50% { box-shadow: 0 10px 50px rgba(255, 255, 255, 0.25); }
}

@keyframes textFadeIn {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes textPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

@keyframes cinematicLetterWave {
    0% { opacity: 0; filter: blur(8px); transform: translateY(8px) scale(0.95); }
    15%, 65% { opacity: 1; filter: blur(0); transform: translateY(0) scale(1); }
    80%, 100% { opacity: 0; filter: blur(8px); transform: translateY(-8px) scale(0.95); }
}

footer { background-color: var(--text-main); color: #ffffff; text-align: center; padding: 3rem 1rem; }

footer p { font-size: 0.9rem; opacity: 0.8; color: #ffffff; margin-bottom: 0.5rem; }

footer a { color: #ffffff; text-decoration: underline; }

@media (max-width: 48rem) {
    header { padding: 0.8rem 1.2rem; }
    header .g1 img { height: 48px; border-radius: 6px; }
    header .g1 h1 { font-size: 1.3rem; }
    header .g1 h2 { font-size: 0.85rem; }
    .hero-bg { object-position: 75% center; } 
}

@media (prefers-reduced-motion: reduce) {
    .marquee-track { animation-play-state: paused !important; }
    .bento-card, .card, .marquee-track img { transition: none !important; transform: none !important; }
    .hero-bg { animation: none !important; }
}

.scroll-cascade {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 50;
    color: #ffffff;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    mix-blend-mode: difference;
    will-change: opacity;
    backface-visibility: hidden;
}

.scroll-cascade:hover { opacity: 1; }

.scroll-cascade .chevron { width: 2.5rem; height: 2.5rem; opacity: 0; animation: cascade-pulse 2s infinite cubic-bezier(0.4, 0, 0.2, 1); }

.scroll-cascade .chevron + .chevron { margin-top: -1.5rem; }

.scroll-cascade .c1 { animation-delay: 0s; }

.scroll-cascade .c2 { animation-delay: 0.15s; }

.scroll-cascade .c3 { animation-delay: 0.3s; }

@keyframes cascade-pulse {
    0% { opacity: 0; transform: translateY(-10px); }
    50% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(10px); }
}

#featured-content { scroll-margin-top: 4.5rem; }
/*global header*/
#main-nav {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    width: 100%;
    padding: 1rem 2rem;
    box-sizing: border-box;
}


.desktop-nav {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.desktop-nav a {
    color: rgba(255, 255, 255, 0.7); 
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    transition: color 0.3s ease;
}


.desktop-nav a:hover {
    color: #ffffff; 
}


.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.desktop-nav a:hover::after {
    width: 100%;
}

/* hamburger dropdown */

.mobile-menu-btn { display: none; }
.mobile-nav-overlay { display: none; }

@media (max-width: 768px) {
    #main-nav {
        flex-direction: row !important;
        justify-content: space-between !important;
        padding: 1rem 1.5rem !important;
    }

    .desktop-nav { 
        display: none !important; 
    }


    .mobile-menu-btn {
        display: block;
        background: none;
        border: none;
        color: #ffffff;
        cursor: pointer;
        padding: 0.5rem;
        z-index: 100; 
    }

    .mobile-menu-btn svg { width: 30px; height: 30px; }


    .mobile-nav-overlay {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(11, 16, 33, 0.98); 
        backdrop-filter: blur(10px);
        z-index: 90;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    }

    .mobile-nav-overlay.active {
        opacity: 1;
        pointer-events: all;
    }


    .mobile-nav-links {
        display: flex;
        flex-direction: column;
        gap: 2.5rem;
        text-align: center;
    }

    .mobile-nav-links a {
        color: #ffffff;
        font-size: 1.8rem;
        text-decoration: none;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.15em;
        transition: color 0.3s ease;
    }
    
    .mobile-nav-links a:active {
        color: var(--accent);
    }
}

/* footer */
.premium-footer {
    background-color: #0f172a; 
    color: #ffffff;
    padding: 4rem 2rem 2rem 2rem;
    position: relative;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: left; 
}

.footer-container {
    max-width: 85rem;
    margin: 0 auto;
}

.footer-grid {
    display: flex;
    justify-content: center;
    gap: 15rem;
    align-items: center;
    margin-bottom: 4rem;
}

.brand-header {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.footer-logo {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.brand-titles {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-titles h2 {
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    margin: 0 0 0.2rem 0;
    color: #ffffff;
    line-height: 1.1;
}

.brand-titles .institute-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: #93c5fd !important;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-socials {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-socials h3 {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 1rem 0;
    color: #ffffff;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-icons a:hover {
    background: var(--accent, #4f80ff);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.social-icons svg {
    width: 1.2rem;
    height: 1.2rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-bottom a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.divider {
    margin: 0 0.5rem;
    opacity: 0.3;
}



@media (max-width: 48rem) {
    .premium-footer {
        padding: 3rem 1.5rem 1.5rem 1.5rem;
    }
    .footer-grid {
        flex-direction: column;
        align-items: flex-start;
        gap: 2.5rem;
    }
    .footer-socials {
        align-items: flex-start; 
    }
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}
img {
    display: block;
    max-width: 100%;
    height: auto;
    background-color: #f0f0f0; 
}

.story-image img, 
.masonry-item {
    aspect-ratio: 16 / 9; 
    object-fit: cover;
}