/* --- RAAD DYNAMICS: "Shockwave of Innovation" CSS --- */

/* 1. ROOT VARIABLES & GLOBAL STYLES */
:root {
    --dark-primary: #0A0F1E;
    /* Matches logo background */
    --dark-secondary: #1a233a;
    --gunmetal: #4A5568;
    /* Matches logo's gray text */
    --accent-orange: #FF7A00;
    /* <-- NEW: Your Logo's Orange! */
    --text-white: #FFFFFF;
    --text-light-gray: #E2E8F0;
    --font-heading: 'Exo 2', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--dark-primary);
    color: var(--text-light-gray);
    font-family: var(--font-body);
    overflow-x: hidden;
    /* Prevents horizontal scroll */
}

section {
    padding: 100px 10%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    /* Subtle shockwave "ping" animation on the section title */
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--accent-orange);
    border-radius: 2px;
}

p {
    line-height: 1.7;
    margin-bottom: 1rem;
}

a {
    color: var(--accent-orange);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--text-white);
}

/* 2. HEADER & NAVIGATION */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px 10%;
    z-index: 1000;
    background: rgba(10, 15, 30, 0.7);
    /* Semi-transparent */
    backdrop-filter: blur(10px);
    /* Frosted glass effect */
    border-bottom: 1px solid var(--gunmetal);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: block;
    padding: 5px 0;
    /* Adds a little vertical space if needed */
    transition: transform 0.3s ease;
}

.logo img {
    height: 100px;
    /* Set the height of your logo in the navbar */
    width: auto;
    /* Maintain aspect ratio */
    display: block;
}

.logo:hover {
    transform: scale(1.03);
    /* Adds a subtle zoom effect on hover */
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-white);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-orange);
    transform: scaleX(0);
    /* Hidden by default */
    transform-origin: left;
    transition: transform 0.3s ease-out;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
    /* Show on hover/active */
}

.nav-cta {
    background-color: var(--accent-orange);
    color: var(--dark-primary);
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    background-color: var(--text-white);
    color: var(--dark-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.2);
}

.nav-cta::after {
    display: none;
    /* No underline for button */
}

/* 3. HERO SECTION */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 5%;
    position: relative;
    /* Placeholder background. Replace with your video */
    background: radial-gradient(circle, var(--dark-secondary) 0%, var(--dark-primary) 70%);
}

.hero-content {
    max-width: 800px;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: var(--text-white);
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-light-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Animated scroll-down arrow */
.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-down span {
    display: block;
    width: 20px;
    height: 20px;
    border-bottom: 3px solid var(--accent-orange);
    border-right: 3px solid var(--accent-orange);
    transform: rotate(45deg);
    animation: pulse-arrow 2s infinite;
}

@keyframes pulse-arrow {
    0% {
        opacity: 0;
        transform: rotate(45deg) translate(-10px, -10px);
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: rotate(45deg) translate(10px, 10px);
    }
}


/* 4. DOMAINS (Timeline) SECTION */
.domains {
    background-color: var(--dark-primary);
}

.timeline-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 0;
}

/* The static gray background line */
.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: var(--gunmetal);
    transform: translateX(-50%);
    z-index: 1;
}

/* The animated cyan fill line */
.timeline-line-animated {
    width: 100%;
    height: 0;
    /* JS will change this */
    background-color: var(--accent-orange);
    transition: height 0.1s linear;
}

.domain-card {
    position: relative;
    width: 45%;
    margin-bottom: 40px;
    z-index: 2;

    /* Animation: Fade in */
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* "Show" class added by JS */
.domain-card.show {
    opacity: 1;
    transform: translateY(0);
}

.domain-card.left {
    margin-right: 55%;
}

.domain-card.right {
    margin-left: 55%;
}

/* The "Shockwave" circle on the timeline */
.domain-card::after {
    content: '';
    position: absolute;
    top: 20px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--text-white);
    border: 3px solid var(--accent-orange);
    z-index: 3;
}

.domain-card.left::after {
    right: -30px;
    /* (1000px * 5% gap) / 2 - (16px / 2) + ... simple math */
    transform: translateX(50%);
}

.domain-card.right::after {
    left: -30px;
    transform: translateX(-50%);
}

.card-content {
    background: var(--dark-secondary);
    padding: 30px;
    border-radius: 8px;
    border-left: 5px solid var(--accent-orange);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 255, 255, 0.1);
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--accent-orange);
}

.card-link {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* 5. TECHNOLOGY SPOTLIGHT */
.spotlight {
    background-color: var(--dark-secondary);
}

.spotlight-carousel {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.spotlight-card {
    width: 350px;
    background: var(--dark-primary);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);

    /* For the cyan outline effect */
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

/* The cyan glowing outline effect */
.spotlight-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid var(--accent-orange);
    border-radius: 8px;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1;
    pointer-events: none;
    /* Allows clicking through */
}

.spotlight-card:hover::before {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.spotlight-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.spotlight-card .card-body {
    padding: 20px;
}

.spotlight-card .card-body h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

/* The slide-up details panel */
.hover-details {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 255, 255, 0.1);
    /* Cyan glass */
    backdrop-filter: blur(8px);
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
    z-index: 2;
}

.spotlight-card:hover .hover-details {
    transform: translateY(0);
}

.hover-details ul {
    list-style: none;
}

.hover-details li {
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.hover-details li strong {
    color: var(--text-white);
}

/* 6. GLOBAL REACH */
.global-reach {
    background-color: var(--dark-primary);
}

.map-container {
    height: 450px;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--gunmetal);
    /* Faint map background using an SVG data URI (no external files) */
    /*background: var(--dark-secondary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25' viewBox='0 0 1600 800'%3E%3Cg stroke='%234A5568' stroke-width='0.4' stroke-opacity='0.4'%3E%3Cpath d='M-400 0L200 800M-200 0L400 800M0 0L600 800M200 0L800 800M400 0L1000 800M600 0L1200 800M800 0L1400 800M1000 0L1600 800M1200 0L1800 800M1400 0L2000 800M0 200L2000 600M0 400L2000 400M0 600L2000 200M-400 800L200 0M-200 800L400 0M0 800L600 0M200 800L800 0M400 800L1000 0M600 800L1200 0M800 800L1400 0M1000 800L1600 0M1200 800L1800 0M1400 800L2000 0'/%3E%3C/g%3E%3C/svg%3E");*/
    /*background-size: cover;*/

    background: url('img/world_map_outline.png') center center no-repeat;
    background-size: 100% auto; /* Ensure it covers the container width */
    background-color: var(--dark-secondary); /* Dark background color */
}

/* The "Shockwave" pulsing dot */
.pulsing-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--accent-orange);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--accent-orange);
    transform: translate(-50%, -50%);
    /* Center on coordinates */
}

.pulsing-dot::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--accent-orange);
    top: 0;
    left: 0;
    animation: pulse 2s infinite;
    animation-delay: var(--delay, 0s);
    /* Use CSS variable for delay */
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.7; }
    70% { transform: scale(4); opacity: 0; }
    100% { opacity: 0; }
}

/* --- 6. ABOUT US / BRIEFING ROOM STYLES --- */

.about {
    background-color: var(--dark-secondary);
    text-align: center;
}

.mission-statement {
    max-width: 800px;
    margin: 0 auto 60px;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--gunmetal);
    background-color: var(--dark-primary);
}

.mission-statement p {
    font-size: 1.1rem;
    color: var(--text-light-gray);
    line-height: 1.8;
}

/* Timeline Container */
.timeline-about {
    max-width: 800px;
    margin: 0 auto 80px;
    position: relative;
    padding: 20px 0;
}

/* The vertical line running through the center */
.timeline-about::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background: var(--gunmetal);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    width: 50%;
    padding: 10px 0;
}

/* Place items alternating left and right */
.timeline-about .timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 40px;
    text-align: right;
}

.timeline-about .timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 40px;
    text-align: left;
}

/* The "Shockwave" circle indicator */
.timeline-item::after {
    content: '';
    position: absolute;
    top: 20px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--dark-secondary);
    border: 3px solid var(--accent-orange);
    z-index: 10;
}

/* Position the indicator circles on the line */
.timeline-about .timeline-item:nth-child(odd)::after {
    right: -9px;
    transform: translateX(50%);
}

.timeline-about .timeline-item:nth-child(even)::after {
    left: -9px;
    transform: translateX(-50%);
}

.timeline-content {
    background: var(--dark-primary);
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.3s ease;
}

.timeline-content:hover {
    box-shadow: 0 5px 20px rgba(255, 122, 0, 0.15);
    /* Subtle orange hover glow */
}

.timeline-content h3 {
    color: var(--accent-orange);
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.timeline-content p {
    font-size: 0.9rem;
    color: var(--gunmetal);
    line-height: 1.6;
}

/* CTA Leadership */
.cta-leadership {
    padding-top: 20px;
}

.cta-leadership h3 {
    color: var(--text-white);
    margin-bottom: 10px;
}

/* 7. FOOTER */
footer {
    padding: 30px 10%;
    text-align: center;
    background-color: var(--dark-secondary);
    border-top: 1px solid var(--gunmetal);
    font-size: 0.9rem;
    color: var(--gunmetal);
}


/* --- Mobile Menu Button Styles (Hidden on Desktop) --- */
.menu-toggle {
    display: none;
    /* Hidden by default on large screens */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    /* Above everything */
}

.menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-white);
    transition: all 0.3s ease-in-out;
}

/* --- 8. CONTACT SECTION --- */
.contact {
    background-color: var(--dark-primary);
    padding-top: 80px;
    text-align: center; /* Center the entire section content */
}

.contact-container {
    /* No Flexbox needed anymore—just center a large block */
    display: block; 
    max-width: 800px; /* Use a fixed width for desktop */
    margin: 0 auto;
}

/* Contact Info Sidebar (Now the main block) */
.contact-info {
    /* Removed flex properties */
    padding: 40px; 
    background-color: var(--dark-secondary);
    border: 1px solid var(--gunmetal); /* Use a full border instead of just left */
    border-radius: 6px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
    text-align: left; /* Keep text readable */
}

.contact-info h3 {
    color: var(--accent-orange);
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.contact-details {
    margin: 20px 0 40px 0;
}

.contact-details li {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-light-gray);
}
.contact-details a {
    color: var(--text-light-gray); /* Links blend into text */
    text-decoration: underline;
}
.contact-details a:hover {
    color: var(--accent-orange);
}

.cta-note {
    font-size: 0.9rem;
    color: var(--gunmetal);
    font-style: italic;
    display: block; /* Make it a separate line */
    margin-bottom: 20px;
}

/* Style for the larger CTA button */
.cta-lg {
    font-size: 1.1rem;
    padding: 12px 25px;
}


/* --- MOBILE RESPONSIVENESS (Max Width: 768px) --- */
@media (max-width: 768px) {

    /* Force the menu toggle (hamburger icon) to display */
    .menu-toggle {
        display: block !important; /* Forces visibility on mobile */
        /* Ensure it aligns vertically with the logo */
        align-self: center; 
        position: relative; 
    }

    .nav-links {
        /* Force the menu to be a full-screen overlay when active */
        display: flex !important; /* CRITICAL: Force it to be visible */
        flex-direction: column !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100vh !important; /* Use vh for guarantee */
        background-color: var(--dark-primary) !important;
        padding-top: 100px !important;
        align-items: center !important;
        z-index: 9998 !important; /* High Z-index */

        /* HIDDEN STATE: Uses transform, not display: none */
        transform: translateX(100%) !important;
        transition: transform 0.4s ease-in-out;
    }

    /* VISIBLE STATE */
    .nav-links.active {
        transform: translateX(0) !important;
    }

    .nav-links li {
        width: 80%;
        /* Make list items wider */
        text-align: center;
    }

    .nav-links a {
        font-size: 1.5rem;
        /* Larger links for tapping */
    }

    /* Adjust padding for all sections */
    section {
        padding: 50px 5%;
    }

    /* Smaller headline font size for better fit */
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }

    /* Refine Hero Section Spacing */
    .hero {
        /* Ensure the content is always vertically centered */
        justify-content: center; 
        align-items: center; 
        padding-top: 100px; /* Push content down slightly so it's not under the fixed header */
        text-align: center;
    }

    /* Refine hero text */
    .hero-content p {
        font-size: 1rem;
    }

    /* --- Navigation Bar Collapse --- */
    header {
        padding: 15px 5%;
        /* Smaller header padding */
    }

    .logo img {
        height: 45px;
        /* Smaller logo for mobile */
    }

    /* --- Spotlight Section Reflow --- */
    .spotlight-carousel {
        flex-direction: column;
        align-items: center;
    }

    .spotlight-card {
        width: 100%;
        /* Cards take full width on mobile */
        max-width: 400px;
    }

    /* --- Domains and About Us Timeline Reflow --- */
    .timeline-container,
    .timeline-about {
        max-width: 100%;
    }

    /* **1. Position the Vertical Line on the Left** */
    .timeline-about::before,
    .timeline-line {
        /* Use a fixed, small distance from the left edge */
        left: 20px;
        transform: translateX(0);
        /* Remove previous centering */
    }

    /* **2. Make all Content Cards Full Width & Shift Right** */
    .timeline-item,
    .domain-card {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        /* Give space for the line/dots on the left */
        padding-left: 50px;
        padding-right: 0;
        /* Remove right padding from two-column view */
        left: 0 !important;
        /* Force to left edge */
    }

    /* **3. Ensure All Text is Left-Aligned** */
    .timeline-about .timeline-item:nth-child(odd) {
        text-align: left;
        /* Override previous right-alignment */
        padding-right: 0;
    }

    /* **4. Position the Indicator Circles over the Line** */
    .timeline-item::after,
    .domain-card::after {
        /* Position the indicator dot exactly over the vertical line (20px) */
        left: 17px;
        right: auto !important;
        /* Clear right-side positioning */
        transform: translateX(0) !important;
        /* Clear previous offset */
    }

    /* Reset desktop positioning for the right-aligned cards */
    .domain-card.right {
        margin-left: 0 !important; 
    }
    
    /* Reset desktop positioning for the left-aligned cards (Good Practice) */
    .domain-card.left {
        margin-right: 0 !important; 
    }

    /* Note: The common .domain-card rule should already handle width/padding:
    .domain-card {
        width: 100%;
        padding-left: 50px;
    }
    */

    /* 6. Fix Timeline Marker for Right Cards */
    .domain-card.right::after {
        left: 17px !important; /* Force to the same position as left cards */
        right: auto !important; /* Clear the old 'right' positioning */
        transform: translateX(0) !important; /* Clear any residual transform */
    }

    /* 7. Fix About Us Timeline Marker for Right/Even Cards */
    .timeline-about .timeline-item:nth-child(even)::after {
        left: 17px !important; /* Force to the same position as odd cards */
        right: auto !important; /* Clear old 'right' positioning */
        transform: translateX(0) !important; /* Clear old transform offset */
    }
}

/* --- MICRO ADJUSTMENTS (Max Width: 480px) --- */
@media (max-width: 480px) {

    /* Focus on the Hero H1 */
    .hero-content h1 {
        font-size: 2rem; /* Reduces H1 from 2.5rem to 2rem */
        line-height: 1.2;
    }

    .hero-content p {
        font-size: 0.9rem; /* Ensures secondary text is small and readable */
    }

    .card-content h3 {
        font-size: 1.1rem;
    }
}