/* =========================================
   GSCAIR | MASTER STYLESHEET
   ========================================= */

:root {
    --teal: #008080;
    --light-blue: #E3F2FD;
    --dark: #0A1414;
    --grey-light: #F5F7F8;
    --transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    --container-width: 1100px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: #fdfdfd; font-family: 'Plus Jakarta Sans', sans-serif; color: var(--dark); overflow-x: hidden; scroll-behavior: smooth; }

/* Base Containers */
.visualizer-container, .container-constrained { max-width: var(--container-width); margin: 0 auto; padding: 0 20px; }

/* --- 1. NAVIGATION & HEADER --- */
.header { position: fixed; top: 0; width: 100%; z-index: 9000; padding: 25px 0; transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1); }
.nav { display: flex; justify-content: space-between; align-items: center; padding: 0 5%; }

/* Image Logo */
.logo-link { position: relative; z-index: 9500; display: flex; align-items: center; }
/* Desktop logo size increased to 125px */
.nav-logo-img { height: 125px; width: auto; transition: transform 0.3s ease; }
/* Added drop-shadow to make the white logo pop against the background */
.logo-white { filter: drop-shadow(0px 4px 10px rgba(0,0,0,0.4)); }
.logo-link:hover .nav-logo-img { transform: scale(1.15); }

/* Force the dark logo to hide by default */
.logo-dark { display: none !important; }

.nav-links { display: flex; list-style: none; gap: 40px; align-items: center; }
.nav-links a { text-decoration: none; color: #fff; font-weight: 600; font-size: 0.9rem; transition: opacity 0.3s ease, color 0.3s ease; }
.nav-links a:hover { opacity: 0.7; }
.nav-cta { background: var(--teal); padding: 10px 20px; border-radius: 5px; color: #fff !important; transition: var(--transition); }
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,128,128,0.3); }

/* DROPDOWN MENU STYLES */
.dropdown { position: relative; }
.dropdown-content {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    background-color: #ffffff;
    min-width: 180px;
    box-shadow: 0px 10px 30px rgba(0, 128, 128, 0.1);
    border-radius: 12px;
    z-index: 9600;
    top: 150%; 
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    transition: all 0.3s ease;
    overflow: hidden;
    border: 1px solid #eee;
}
.dropdown:hover .dropdown-content {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.dropdown-content a {
    color: var(--dark) !important;
    padding: 15px 20px;
    text-decoration: none;
    display: block;
    text-align: center;
    font-size: 0.9rem;
    border-bottom: 1px solid #f5f7f8;
    transition: background 0.3s;
}
.dropdown-content a:last-child { border-bottom: none; }
.dropdown-content a:hover { background-color: var(--light-blue); color: var(--teal) !important; opacity: 1; }

/* Hamburger Menu */
.hamburger { display: none; cursor: pointer; flex-direction: column; gap: 6px; z-index: 9500; }
.hamburger .bar { width: 30px; height: 3px; background-color: #fff; transition: background-color 0.3s ease, transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.4s ease; border-radius: 3px; }

/* Scrolled Header State (White Background & Dark Text) */
.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 15px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Force the swap on scroll */
.header.scrolled .logo-white { display: none !important; }
.header.scrolled .logo-dark { display: block !important; }

.header.scrolled .nav-links a { color: var(--dark); }
.header.scrolled .hamburger .bar { background-color: var(--dark); }


/* --- 2. HERO SECTION --- */
.hero-split { height: 90vh; position: relative; overflow: hidden; display: flex; align-items: center; }
.hero-bg-media { position: absolute; inset: 0; z-index: -1; }
.hero-bg-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); transition: transform 0.1s ease-out; }
.overlay-narrative { position: absolute; inset: 0; background: linear-gradient(to right, rgba(5,20,20,0.75) 10%, rgba(5,20,20,0.4) 45%, transparent 100%); }

/* Pushed text down with margin-top: 120px */
.hero-text-block { max-width: 780px; margin-left: 6%; position: relative; z-index: 10; padding-bottom: 50px; margin-top: 120px; }

/* Made text slightly smaller to prevent overlap */
h1 { font-family: 'Syne', sans-serif; font-weight: 800; font-size: clamp(2.2rem, 3.8vw, 3.8rem); line-height: 1.1; color: #fff; letter-spacing: -1.5px; }

@keyframes heroFadeUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
.animate-narrative span:nth-child(1) { display: block; opacity: 0; animation: heroFadeUp 1s cubic-bezier(0.23, 1, 0.32, 1) forwards; }
.animate-narrative span:nth-child(2) { display: block; opacity: 0; animation: heroFadeUp 1s cubic-bezier(0.23, 1, 0.32, 1) 0.2s forwards; }
.teal-gradient { color: var(--teal); text-shadow: 0 0 30px rgba(0, 128, 128, 0.3); }

.animate-narrative-sub { font-size: 1.3rem; font-weight: 400; color: #ffffff; margin: 25px 0 40px; line-height: 1.6; max-width: 720px; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.5); opacity: 0; animation: heroFadeUp 1s cubic-bezier(0.23, 1, 0.32, 1) 0.4s forwards; }
.animate-narrative-cta { opacity: 0; animation: heroFadeUp 1s cubic-bezier(0.23, 1, 0.32, 1) 0.6s forwards; }

.button-group { display: flex; gap: 20px; align-items: center; margin-top: 10px; }
.btn-premium { padding: 16px 36px; border-radius: 50px; font-family: inherit; font-weight: 600; font-size: 1rem; text-decoration: none; transition: var(--transition); display: inline-flex; justify-content: center; align-items: center; }
.btn-teal { background: #005bb5; color: #ffffff; border: 2px solid #005bb5; box-shadow: 0 10px 25px rgba(0, 91, 181, 0.3); }
.btn-teal:hover { transform: translateY(-4px); background: #004494; border-color: #004494; box-shadow: 0 15px 35px rgba(0, 91, 181, 0.4); }
.btn-outline { background: transparent; color: #ffffff; border: 2px solid #ffffff; backdrop-filter: blur(5px); }
.btn-outline:hover { background: #ffffff; color: var(--dark); transform: translateY(-4px); box-shadow: 0 15px 35px rgba(255, 255, 255, 0.2); }


/* --- 3. DISCOVERY & MISSION SECTION --- */
.mission-section { padding-top: 60px; }
.mission-card { background: var(--light-blue); padding: 50px; border-radius: 40px; border: 1px solid #d0e8f2; text-align: center; font-size: 1.3rem; font-weight: 300; }

.discovery-section { padding: 80px 0; background: #ffffff; }
.eyebrow-line { display: block; font-weight: 800; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2.5px; color: var(--teal); margin-bottom: 15px; }
.discovery-header { text-align: center; max-width: 900px; margin: 0 auto 60px; }
.discovery-header h2 { font-family: 'Syne', sans-serif; font-size: clamp(2.5rem, 4vw, 3.5rem); line-height: 1.1; margin-bottom: 30px; color: var(--dark); letter-spacing: -1px; }
.lead-text { font-size: 1.3rem; line-height: 1.6; color: #4a5568; font-weight: 300; }

.discovery-text-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-bottom: 80px; }
.text-col p { font-size: 1.05rem; line-height: 1.7; margin-bottom: 25px; color: #2d3748; }
.highlight-quote-box { background: var(--light-blue); padding: 35px; border-radius: 20px; border-left: 4px solid var(--teal); margin-top: 30px; }
.highlight-quote-box p { margin: 0; font-size: 1.15rem; font-weight: 600; color: var(--teal); line-height: 1.5; }

.domains-wrapper { margin-bottom: 60px; }
.domains-title { text-align: center; font-size: 1.5rem; font-family: 'Syne', sans-serif; margin-bottom: 40px; color: var(--dark); }
.domains-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.domain-card { background: #f8fafc; border: 1px solid #edf2f7; padding: 40px 30px; border-radius: 24px; transition: var(--transition); position: relative; overflow: hidden; }
.domain-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0, 128, 128, 0.08); border-color: #d0e8f2; }
.domain-number { font-family: 'Syne', sans-serif; font-size: 3rem; font-weight: 800; color: var(--teal); opacity: 0.15; position: absolute; top: 20px; right: 30px; transition: opacity 0.3s; }
.domain-card:hover .domain-number { opacity: 0.3; }
.domain-card h4 { font-family: 'Syne', sans-serif; font-size: 1.3rem; margin-bottom: 15px; color: var(--dark); position: relative; z-index: 2; }
.domain-card p { font-size: 0.95rem; line-height: 1.6; color: #4a5568; position: relative; z-index: 2; }
.discovery-cta-wrap { text-align: center; margin-top: 50px; }


/* --- 4. ABOUT PREMIUM CARD --- */
.about-premium { padding: 80px 0; position: relative; background: #fdfdfd; overflow: hidden; }
.about-wrapper { display: flex; align-items: center; position: relative; }
.about-image-side { width: 45%; z-index: 1; }
.image-reveal-frame { border-radius: 40px; overflow: hidden; box-shadow: 0 40px 100px rgba(0, 128, 128, 0.15); transform: rotate(-2deg); }
.image-reveal-frame img { width: 100%; display: block; transition: transform 0.5s ease; }
.about-text-card { width: 65%; margin-left: -10%; background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(20px); padding: 60px; border-radius: 30px; z-index: 10; border: 1px solid rgba(255, 255, 255, 0.4); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05); position: relative; }
.about-text-card h2 { font-family: 'Syne', sans-serif; font-size: 3rem; line-height: 1.1; margin-bottom: 25px; }
.teal-accent-bar { position: absolute; bottom: 0; right: 60px; width: 100px; height: 8px; background: var(--teal); border-radius: 10px 10px 0 0; }
.abstract-grid-decor { position: absolute; top: 10%; right: -5%; width: 400px; height: 400px; background: radial-gradient(circle, rgba(0,128,128,0.05) 0%, transparent 70%); z-index: 0; }


/* --- 5. RESEARCH BENTO GRID --- */
.research-showcase { padding: 80px 0; background: #ffffff; }
.section-intro { margin-bottom: 50px; text-align: left; }
.section-intro h2 { font-family: 'Syne', sans-serif; font-size: 3rem; color: var(--dark); }
.research-bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 320px; gap: 20px; }
.bento-card { position: relative; grid-column: span 2; border-radius: 30px; overflow: hidden; background-size: cover; background-position: center; transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1); }
.bento-card.featured { grid-column: span 4; grid-row: span 1; }
.bento-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 20, 20, 0.9) 10%, rgba(10, 20, 20, 0.2) 100%); transition: background 0.3s ease; }
.bento-content { position: absolute; bottom: 0; padding: 40px; color: white; z-index: 10; width: 100%; }
.card-num { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 0.8rem; color: var(--teal); letter-spacing: 2px; display: block; margin-bottom: 10px; }
.bento-content h3 { font-family: 'Syne', sans-serif; font-size: 1.8rem; margin-bottom: 5px; line-height: 1.2; }
.bento-content p { font-size: 0.95rem; line-height: 1.5; opacity: 0.85; max-width: 90%; margin-bottom: 15px; transition: opacity 0.3s; }
.bento-card:hover { transform: translateY(-10px); box-shadow: 0 30px 60px rgba(0, 128, 128, 0.2); z-index: 20; }
.bento-card:hover .bento-overlay { background: linear-gradient(to top, rgba(0, 128, 128, 0.95) 10%, rgba(0, 128, 128, 0.4) 100%); }
.bento-card:hover p { opacity: 1; }

.bento-link { display: inline-block; color: #ffffff; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; text-decoration: none; border-bottom: 2px solid var(--teal); padding-bottom: 4px; transition: all 0.3s ease; opacity: 0.8; }
.bento-link::after { content: '→'; margin-left: 8px; transition: transform 0.3s ease; }
.bento-link:hover { color: #ffffff; border-color: #ffffff; opacity: 1; }
.bento-link:hover::after { transform: translateX(5px); }
.bento-card:hover .bento-link { opacity: 1; }


/* --- 6. INITIATIVES (PILLARS) --- */
.initiatives-pillar { padding: 80px 0; background: #ffffff; }
.pillar-wrapper { display: grid; grid-template-columns: 1fr 1fr; border-radius: 40px; overflow: hidden; box-shadow: 0 40px 100px rgba(0, 0, 0, 0.05); }
.pillar-item { padding: 80px 60px; position: relative; display: flex; flex-direction: column; justify-content: center; transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1); }
.gscar-pillar { background: var(--dark); color: #ffffff; }
.gscar-pillar .pillar-bg { position: absolute; inset: 0; background: radial-gradient(circle at 20% 20%, rgba(0, 128, 128, 0.15) 0%, transparent 50%); opacity: 0.5; }
.collab-pillar { background: var(--light-blue); color: var(--dark); border-left: 1px solid rgba(0, 128, 128, 0.1); }
.pillar-content h3 { font-family: 'Syne', sans-serif; font-size: 2.5rem; line-height: 1.1; margin-bottom: 25px; position: relative; z-index: 2; }
.pillar-content p { font-size: 1.1rem; line-height: 1.7; opacity: 0.9; max-width: 450px; position: relative; z-index: 2; }
.quantum-indicator { display: flex; gap: 10px; margin-top: 30px; position: relative; z-index: 2; }
.quantum-indicator span { width: 40px; height: 2px; background: var(--teal); animation: pulseGlow 2s infinite alternate; }
.quantum-indicator span:nth-child(2) { animation-delay: 0.4s; }
.quantum-indicator span:nth-child(3) { animation-delay: 0.8s; }
@keyframes pulseGlow { from { opacity: 0.2; transform: scaleX(0.8); } to { opacity: 1; transform: scaleX(1.2); } }
.btn-outline-teal { display: inline-block; margin-top: 35px; padding: 15px 35px; border: 2px solid var(--teal); color: var(--teal); text-decoration: none; border-radius: 50px; font-weight: 700; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; transition: all 0.3s ease; position: relative; z-index: 2; }
.btn-outline-teal:hover { background: var(--teal); color: white; }


/* --- 7. CONTACT FORM --- */
.contact-module { padding-bottom: 80px; }
.contact-container { background: white; padding: 80px; border-radius: 40px; border: 1px solid #eee; box-shadow: 0 20px 50px rgba(0,0,0,0.02); }
.contact-header { margin-bottom: 40px; }
.contact-header h2 { font-family: 'Syne', sans-serif; font-size: 2.5rem; margin-bottom: 10px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.input-wrap { display: flex; flex-direction: column; gap: 10px; }
.input-wrap:last-child { grid-column: span 2; }
.input-wrap label { font-weight: 700; font-size: 0.9rem; color: var(--teal); }
input, textarea { padding: 18px; border-radius: 12px; border: 1px solid #e2e8f0; background: #f8fafc; font-family: inherit; font-size: 1rem; transition: border 0.3s; }
input:focus, textarea:focus { outline: none; border-color: var(--teal); }
.submit-btn { margin-top: 30px; background: var(--dark); color: white; padding: 20px 50px; border: none; border-radius: 50px; font-weight: 800; cursor: pointer; transition: 0.3s; font-size: 1rem; }
.submit-btn:hover { background: var(--teal); transform: translateY(-3px); }


/* --- 8. FOOTER --- */
.footer-global { padding: 60px 0 30px; background: #ffffff; text-align: center; border-top: 1px solid #eee; }
.footer-copyright { color: #889; font-size: 0.85rem; }
.foundation-tag { margin-top: 5px; font-style: italic; opacity: 0.7; color: var(--dark); }


/* --- 9. BACK TO TOP BUTTON --- */
.back-to-top {
    position: fixed; bottom: 40px; right: 40px; width: 50px; height: 50px;
    background-color: var(--teal); color: #ffffff; border: none; border-radius: 50%;
    font-size: 1.5rem; font-weight: bold; cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 128, 128, 0.3);
    opacity: 0; visibility: hidden; transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 9900; display: flex; align-items: center; justify-content: center;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background-color: var(--dark); transform: translateY(-5px); box-shadow: 0 15px 35px rgba(10, 20, 20, 0.4); }


/* --- 10. FULL MOBILE RESPONSIVENESS (Media Queries) --- */
@media (max-width: 900px) {

    /* Small Logo for Mobile to fit Hamburger Menu */
    .nav-logo-img { height: 85px !important; max-width: 65vw; object-fit: contain; }

    /* Nav Overlay */
    .hamburger { display: flex; }
    .nav-links { position: fixed; top: 0; right: -100%; width: 100vw; height: 100vh; background: rgba(10, 20, 20, 0.95); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); flex-direction: column; justify-content: center; align-items: center; transition: right 0.5s cubic-bezier(0.23, 1, 0.32, 1); z-index: 1500; gap: 30px; }
    .nav-links.active { right: 0; }
    .nav-links a { font-size: 1.5rem; color: #ffffff !important; }
    
    /* Dropdown Mobile Overrides */
    .dropdown-content { position: static; visibility: visible; opacity: 1; transform: none; top: 0; left: 0; box-shadow: none; background: transparent; border: none; margin-top: 15px; min-width: 100%; }
    .dropdown-content a { font-size: 1.1rem; padding: 10px 0; border: none; color: rgba(255, 255, 255, 0.7) !important; background: transparent !important; }
    
    .hamburger.active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
    .header.scrolled .hamburger.active .bar { background-color: #ffffff !important; }

    /* Hero Fixes - Center Text & Add Margin */
    .hero-split { height: 100vh; }
    
    .overlay-narrative { 
        background: linear-gradient(to bottom, rgba(5,20,20,0.4) 0%, rgba(5,20,20,0.95) 45%, rgba(5,20,20,0.98) 100%); 
    }
    
    .teal-gradient { 
        text-shadow: 0 4px 15px rgba(0, 0, 0, 0.9), 0 0 30px rgba(0, 0, 0, 0.8);
        color: #00b3b3; 
    }
    
    .hero-text-block { text-align: center; margin: 80px auto 0; padding: 40px 20px 0 20px; width: 100%; box-sizing: border-box; }
    h1 { font-size: clamp(1.8rem, 8vw, 2.5rem); letter-spacing: -0.5px; } 
    .animate-narrative-sub { font-size: 1.05rem; margin: 20px auto 30px; width: 100%; padding: 0 10px; box-sizing: border-box; }
    .button-group { flex-direction: column; width: 100%; padding: 0 15px; box-sizing: border-box; }
    .btn-premium { width: 100%; }

    /* Discovery & About Fixes */
    .discovery-text-grid, .domains-grid { grid-template-columns: 1fr; gap: 30px; }
    .about-wrapper { flex-direction: column; }
    .about-image-side, .about-text-card { width: 100%; margin-left: 0; }
    .about-text-card { margin-top: -50px; padding: 40px 30px; }
    .image-reveal-frame { transform: rotate(0); }

    /* Bento & Others */
    .research-bento { grid-template-columns: 1fr; grid-auto-rows: 350px; }
    .bento-card, .bento-card.featured { grid-column: span 1; }
    .pillar-wrapper { grid-template-columns: 1fr; }
    .pillar-item { padding: 50px 30px; }
    .form-grid { grid-template-columns: 1fr; }
    .input-wrap:last-child { grid-column: span 1; }
    .contact-container { padding: 40px 20px; }

    /* Back to top Mobile Fix */
    .back-to-top { bottom: 20px; right: 20px; width: 45px; height: 45px; font-size: 1.2rem; }
}