/* ============================================
   ROOT VARIABLES
   ============================================ */
:root {
    --color-bg: #09090B;
    --color-grid: #27272A;
    --color-text: #FAFAFA;
    --color-accent: #EC762E;
    --color-accent-lighter: #fa9c62;
    --color-accent-darker: #20140F;
    --color-muted: #A1A1AA;
    --font-primary: 'Roboto Mono', monospace;
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-xmd: 24px;
    --spacing-lg: 32px;
    --spacing-xlg: 40px;
    --spacing-xxlg: 60px;
    --radius: 4px;
    --easing-cinematic: cubic-bezier(0.25, 1, 0.5, 1);
    --transition-duration: 600ms;

    --text-xxs: 12px;
    --text-xs: 13px;
    --text-sm: 14px;

    --font-medium: 600;
    --font-regular: 400;

    --letter-spacing-sm: 0.25rem;
    --letter-spacing-xs: 0.10rem;

    --line-height-title: 150%;
    --line-height-body: 200%;

    --text-shadow: var(--color-accent) 1px 0 16px;
    --box-shadow: 0 0 16px var(--color-accent-darker);

    --border-accent: 1px solid var(--color-accent);

}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: auto;
    scroll-padding-top: 0;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg);
    color: var(--color-text);
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    height: 100vh;
    height: 100dvh; /* Use dynamic viewport height for mobile */
    width: 100vw;
    margin: 0;
    padding: 0;
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><line x1="16" y1="6" x2="16" y2="12" stroke="%23EC762E" stroke-width="2"/><line x1="16" y1="20" x2="16" y2="26" stroke="%23EC762E" stroke-width="2"/><line x1="6" y1="16" x2="12" y2="16" stroke="%23EC762E" stroke-width="2"/><line x1="20" y1="16" x2="26" y2="16" stroke="%23EC762E" stroke-width="2"/><circle cx="16" cy="16" r="2" fill="%23EC762E"/></svg>') 16 16, crosshair;
}

.body-wrapper {
    max-width: 1440px;
    width: 100%;
    height: 100%;
    position: relative;
    display: grid;
    grid-template-columns: 44px 1fr;
    grid-template-rows: 0px 1fr;
    grid-template-areas:
        "sidebar nav"
        "sidebar content";
    border-left: 1px solid var(--color-grid);
    border-right: 1px solid var(--color-grid);
}

/* Keep crosshair cursor on all interactive elements */
a, button, input, textarea, select, [role="button"], .nav-link, .counter-item, .risk-card {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><line x1="16" y1="6" x2="16" y2="12" stroke="%23EC762E" stroke-width="2"/><line x1="16" y1="20" x2="16" y2="26" stroke="%23EC762E" stroke-width="2"/><line x1="6" y1="16" x2="12" y2="16" stroke="%23EC762E" stroke-width="2"/><line x1="20" y1="16" x2="26" y2="16" stroke="%23EC762E" stroke-width="2"/><circle cx="16" cy="16" r="2" fill="%23EC762E"/></svg>') 16 16, crosshair !important;
    /* Enable touch interactions on mobile */
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
}


::selection {
    background: var(--color-accent);
    color: var(--color-bg);
    text-shadow: none;
}

/* ============================================
   TOP NAVIGATION
   ============================================ */
.top-nav {
    position: absolute;
    top: 0;
    left: 44px;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 68px;
    padding: 0 var(--spacing-lg);
    z-index: 1000;
    background: rgba(9, 9, 11, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-grid);
}

.top-nav .wrapper {
    max-width: 1400px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 36px;
    width: auto;
    transition: 0.3s;

}

.logo img:hover {
    opacity: 50%;
}

.nav-links {
    display: flex;
    gap: var(--spacing-sm);
}

.nav-link {
    color: var(--color-text);
    text-decoration: none;
    font-size: var(--text-xs);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: var(--spacing-sm) var(--spacing-sm);
    border: 1px solid transparent;
    border-radius: var(--radius);
    transition: color 0.3s ease;
    position: relative;
}

/* Corner bracket indicators */
.nav-link::before,
.nav-link::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-link::before {
    top: 0;
    left: 0;
    border-top: 1px solid var(--color-accent);
    border-left: 1px solid var(--color-accent);
}

.nav-link::after {
    bottom: 0;
    right: 0;
    border-bottom: 1px solid var(--color-accent);
    border-right: 1px solid var(--color-accent);
}

.nav-link:hover::before,
.nav-link:hover::after {
    opacity: 1;
}

.nav-link:hover {
    color: var(--color-accent);
}

/* Mobile menu toggle button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    padding: 0;
    z-index: 1001;
    position: relative;
}

.hamburger-line {
    width: 100%;
    height: 2px;
    background-color: var(--color-accent);
    transition: all 0.3s ease;
}

/* Hamburger animation when menu is open */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
    background-color: var(--color-accent);
}

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

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
    background-color: var(--color-accent);
}

.link {
    text-decoration: none;
    color: var(--color-accent);
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-xs);
    font-weight: var(--font-medium);
    font-size: var(--text-sm);
}

.link:hover {
    text-shadow: var(--text-shadow)
 }

/* ============================================
   SECTION COUNTER SIDEBAR
   ============================================ */
.section-counter {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    align-items: center;
    justify-content: center;
    z-index: 1000;
    background-color: var(--color-bg);
    border-right: 1px solid var(--color-grid);
    width: 44px;
}

.counter-item {
    width: 20px;
    height: 2px;
    background: var(--color-muted);
    position: relative;
    transition: all 0.4s var(--easing-cinematic);
    cursor: pointer;
}

.counter-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0%;
    height: 100%;
    background: var(--color-accent);
    transition: width 0.4s var(--easing-cinematic);
}

.counter-item.active::before {
    width: 100%;
}

.counter-item:hover {
    background: rgba(255, 107, 26, 0.3);
}

/* ============================================
   SCROLL CONTAINER & SECTIONS
   ============================================ */
.scroll-container {
    position: absolute;
    left: 44px;
    top: 0;
    right: 0;
    bottom: 0;
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
    overflow-x: hidden;
    scroll-behavior: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.scroll-container::-webkit-scrollbar {
    display: none;
}

.section {
    height: calc(100dvh - 68px);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--spacing-xlg);
    position: relative;
    border-bottom: 1px dashed var(--color-grid);
    box-sizing: border-box;
    overflow: hidden;
    scroll-snap-align: end;
    scroll-snap-stop: always;
}

.section-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    width: 100%;
}


.content-split {
    width: 100%;
    max-width: 1400px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: calc(var(--spacing-lg) * 2);
    align-items: end;
}


.content-left {
    opacity: 1;
}

.content-right {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
.section-tag {
    font-size: var(--text-sm);
    font-weight: var(--font-regular);
    letter-spacing: var(--letter-spacing-xs);
    color: var(--color-accent);
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
    text-shadow: var(--text-shadow);
}

.section-identifier {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    z-index: 100;
}


.main-title {
    font-size: 48px;
    font-weight: var(--font-medium);
    letter-spacing: var(--letter-spacing-xs);
    line-height: var(--line-height-title);
    margin-bottom: var(--spacing-lg);
    text-transform: uppercase;
    color: var(--color-text);
}

.justify-between.content-left{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: calc(100dvh - 68px);
    padding: var(--spacing-md) 0;
}

.section-title {
    font-size: 26px;
    font-weight: var(--font-medium);
    letter-spacing: var(--letter-spacing-sm);
    line-height: var(--line-height-title);
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
    color: var(--color-text);
}

.cursor-blink {
    animation: blink 1s step-end infinite;
    color: var(--color-accent);
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* ============================================
   00. MISSION SECTION
   ============================================ */
.mission-section {
    height: calc(100dvh - 68px);
    margin-top: 68px;
    background-image: url("images/Background.svg");
    background-position-x: right;
    background-repeat: no-repeat;
    background-size: cover;
}

.mission-section .justify-between.content-left {
    padding: 0px;
    height: 100%;
}

.mission-section .content-split {
    align-items: center;
    height: 100%;
}

.mission-desc {
    font-size: var(--text-xs);
    line-height: 200%;
    letter-spacing: var(--letter-spacing-xs);
    color: var(--color-muted);
    text-transform: uppercase;
}


/* ============================================
   RADAR ANIMATION
   ============================================ */
.radar-container {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1;
    filter: drop-shadow(0 0 20px var(--color-accent));
}

.radar-svg {
    width: 100%;
    height: 100%;
     filter: drop-shadow(0 0 5px var(--color-accent));
}

.radar-ring {
    fill: none;
    stroke: var(--color-accent);
    stroke-width: 2;
    opacity: 0.5;
}

.radar-line {
    stroke: var(--color-accent);
    stroke-width: 2;
    opacity: 0.5;
}

.radar-sweep {
    stroke: var(--color-accent);
    stroke-width: 2;
    opacity: 100;
    transform-origin: 200px 200px;
    animation: sweep 4s linear infinite;
    filter: drop-shadow(0 0 20px var(--color-accent));
}

@keyframes sweep {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.radar-dot {
    fill: var(--color-accent);
    opacity: 0;
    animation: dotPulse 3s ease-in-out infinite;
}

.radar-dot-1 { animation-delay: 0s; }
.radar-dot-2 { animation-delay: 0.6s; }
.radar-dot-3 { animation-delay: 1.2s; }
.radar-dot-4 { animation-delay: 1.8s; }
.radar-dot-5 { animation-delay: 2.4s; }

@keyframes dotPulse {
    0%, 100% {
        opacity: 0;
        r: 5;
    }
    10%, 90% {
        opacity: 0.5;
        r: 5;
    }
    50% {
        opacity: 1;
        r: 7;
    }
}

/* ============================================
   SCHEMATIC VISUALIZATION
   ============================================ */
/* Performance optimization: Reduce repaints */
.radar-svg {
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* ============================================
   0.1 THE HIDDEN LAYER OF RISK
   ============================================ */
.risk-cards-wrapper {
    margin-top: var(--spacing-lg);
    display: flex;
    flex-direction: row;
    gap: var(--spacing-sm);
    align-items: end;
}

.risk-card {
    padding: var(--spacing-md);
    border: 1px solid var(--color-grid);
    height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    opacity: 0.3;
    filter: blur(10px);
    transition: opacity 0.8s ease-out, filter 0.8s ease-out, transform 0.3s ease;
}

.risk-card.show {
    opacity: 1;
    filter: blur(0px);
}

.card-number,
.risk-card h3 {
    color: var(--color-text);
    font-weight: var(--font-medium);
}

.risk-card:nth-child(2n) {
    height: 260px;
}

.risk-card:nth-child(3n) {
    height: 280px;
}

.risk-card:nth-child(4n) {
    height: 300px;
}

.risk-card:nth-child(5n) {
    height: 320px;
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
    background-color: var(--color-accent-darker);
    box-shadow: 0 0 12px var(--color-accent);
}


/* ============================================
   02. TURNING GOVERNANCE INTO DATA SECTION
   ============================================ */
.data-desc {
    font-size: var(--text-xs);
    line-height: 200%;
    letter-spacing: var(--letter-spacing-xs);
    color: var(--color-muted);
    text-transform: uppercase;
}

.align-top {
    display: flex;
    flex-direction: column;
}


/* ============================================
   02. SCANNER TRANSFORMATION ANIMATION
   ============================================ */
.scanner-card {
    width: 100%;
    height: 400px;
    position: relative;
    overflow: visible;
    box-shadow: var(--box-shadow);
}

/* Code layer - gets revealed by scanner */
.code-layer {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0F0F14 0%, #1a1a20 100%);
    border: var(--border-accent);
    padding: var(--spacing-md);
    z-index: 2;
    clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
}

.code-text {
    margin: 0;
    padding: 0;
    font-size: 11px;
    line-height: 1.6;
    color: #A1A1AA;
    font-family: 'Roboto Mono', monospace;
    white-space: pre-wrap;
    word-wrap: break-word;
    text-shadow: 0 0 10px rgba(236, 118, 46, 0.15);
}

/* Card layer - base content */
.card-layer {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1a1a1f 0%, #252530 50%, #1f1f28 100%);
    border: var(--border-accent);
    display: flex;
    flex-direction: column;
    z-index: 1;
    background-image:
        linear-gradient(135deg, rgba(236, 118, 46, 0.05) 0%, transparent 50%),
        linear-gradient(-135deg, rgba(51, 204, 255, 0.05) 0%, transparent 50%);
    background-blend-mode: overlay;
}

.card-header {
    display: flex;
    align-items: center;
    padding: var(--spacing-md);
    border-bottom: var(--border-accent);
    background-color: var(--color-accent-darker);
}

.card-icon {
    font-size: 18px;
    color: var(--color-accent);
    text-shadow: 0 0 10px var(--color-accent);
}

.card-title {
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
    letter-spacing: var(--letter-spacing-xs);
    color: var(--color-accent);
    text-transform: uppercase;
    text-shadow: var(--text-shadow);
}

.metrics-grid {
    display: flex;
    flex-direction: column;
    padding: var(--spacing-md);
    gap: var(--spacing-lg);
    height: 100%;
}

.metrics-grid .data-desc {
    display: flex;
    flex-direction: row;
    align-items: start;
    gap: var(--spacing-md);
    font-size: 12px;
}

.metrics-grid .data-desc svg {
    width: 24px;
    color: var(--color-accent);
}

.icon {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    height: 24px;
}

.card-footer {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    border-top: var(--border-accent);
}

.monitoring {
    font-size: var(--text-xs);
    letter-spacing: var(--letter-spacing-xs);
    color: var(--color-muted);
    text-transform: uppercase;
}

.dot {
    color: var(--color-accent);
    text-shadow: var(--text-shadow);
    margin-bottom: 4px;
}


/* Scanner Beam */
.scanner-beam {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 40px;
    background: transparent;
    z-index: 10;
    cursor: grab;
    transform: translateX(-50%);
    transition: 0.3s;
    overflow: visible;
}

.scanner-beam::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--color-accent);
    box-shadow:
        0 0 15px #EC762E,
        0 0 30px rgba(236, 118, 46, 0.5);
    transform: translateX(-50%);
}

.scanner-beam:hover::before {
    background-color: var(--color-accent-lighter);
    transition: 0.3s;
}

.scanner-beam.dragging {
    cursor: grabbing;
    transition: none;
}

/* Beam Tooltip */
.beam-tooltip {
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    background: var(--color-accent);
    color: var(--color-bg);
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
    letter-spacing: var(--letter-spacing-xs);
    text-transform: uppercase;
    pointer-events: none;
    z-index: 11;
    animation: tooltipFadeIn 0.4s ease-out forwards;
    opacity: 1;
    transition: opacity 0.3s ease-out;
    box-shadow: var(--box-shadow);
}

.beam-tooltip.hidden {
    opacity: 0;
    pointer-events: none;
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Particles */
.particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 5;
    border-radius: 12px;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--color-accent);
    border-radius: 50%;
    box-shadow: 0 0 4px var(--color-accent);
    animation: particleDissolve 1.2s ease-out forwards;
}

@keyframes particleDissolve {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(var(--tx), var(--ty)) scale(0.3);
    }
}

@keyframes cardFadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* ============================================
   03. SECURITY IN ACTION
   ============================================ */
   .security-cards-wrapper {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
   }
   
   .security-card {
        padding: var(--spacing-md);
        border: 1px solid var(--color-grid);
        display: flex;
        flex-direction: row;
        align-items: start;
        gap: var(--spacing-md);
        background-color: var(--color-bg);
    }

    .security-card-links {
        margin-top: var(--spacing-sm);
    }

    .card-icon {
        filter: drop-shadow(0px 0px 4px var(--color-accent));
    }


/* ============================================
   3D GEODESIC SPHERE VISUALIZATION
   ============================================ */
.sphere-visualization {
    width: 100%;
    max-width: 450px;
    height: 450px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.sphere-visualization canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* ============================================
   HORIZONTAL EXPANDING SLIDER
   ============================================ */
.feature-slider-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    width: 100%;
}

.feature-slider {
    display: flex;
    gap: 8px;
    width: 100%;
    height: 320px;
    overflow: hidden;
}

.slider-card {
    min-width: 60px;
    height: 100%;
    background: var(--color-bg);
    border: 1px solid var(--color-grid);
    overflow: hidden;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    display: flex;
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.slider-card:hover {
    border-color: rgba(236, 118, 46, 0.6);
    box-shadow: 0 0 20px rgba(236, 118, 46, 0.25);
}

.slider-card.expanded {
    flex: 1;
    min-width: 320px;
    border: var(--border-accent);
}

.slider-card.expanded:hover {
    background-color: var(--color-accent-darker);
}

.card-inner {
    display: flex;
    width: 100%;
    height: 100%;
    position: relative;
}

.card-label {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    position: absolute;
    left: 20px;
    bottom: 20px;
    font-size: var(--text-xxs);
    font-weight: var(--font-medium);
    letter-spacing: var(--letter-spacing-xs);
    color: var(--color-accent);
    text-transform: uppercase;
    white-space: nowrap;
    z-index: 2;
    transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    pointer-events: none;
}

.card-label svg {
    width: 16px;
    transform: rotate(90deg);
}

.slider-card.expanded .card-label {
    opacity: 0;
}

.card-content {
    text-decoration: none;
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--spacing-xmd);
    z-index: 1;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1) 0.15s;
}

.slider-card.expanded .card-content {
    opacity: 1;
    pointer-events: auto;
}

.content-inner {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    height: 100%;
    justify-content: space-between;
    align-items: start;
}

.content-inner img { 
    height: 148px;
}

.content-inner svg {
    position: absolute;
    right: 20px;
    top: 20px;
    width: 24px;
    color: #EC762E;
    transform: rotate(-45deg);
    transition: 0.3s;
}

.slider-card.expanded:hover svg {
    transform: rotate(0deg);
    transition: 0.3s;
}


.feature-description {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.card-content h3 {
    font-size: 18px;
    font-weight: var(--font-medium);
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-sm);
    line-height: 1.2;
}

.card-content p {
    font-size: 13px;
    line-height: 1.6;
    color: var(--color-muted);
    letter-spacing: 0.02em;
}

/* Navigation */
.slider-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-lg);
    width: 100%;
    flex-wrap: wrap;
}

.nav-arrow {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--color-grid);
    color: var(--color-accent);
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    pointer-events: auto;
    z-index: 100;
}

.nav-arrow:hover {
    border-color: var(--color-accent);
    background: rgba(236, 118, 46, 0.1);
    box-shadow: 0 0 15px rgba(236, 118, 46, 0.25);
}

.nav-arrow:active {
    transform: scale(0.95);
}

.nav-arrow svg {
    width: 24px;
}

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

.nav-dot {
    width: 6px;
    height: 6px;
    background: rgba(236, 118, 46, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-dot.active {
    background: var(--color-accent);
    box-shadow: 0 0 10px rgba(236, 118, 46, 0.6);
}


/* ============================================
   INFINITE CAROUSEL
   ============================================ */

.infinite-carousel-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    background-color: var(--color-accent-darker);
    border-bottom: var(--border-accent);
    border-top: var(--border-accent);
}

.tv-scanlines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    background-image:
        repeating-linear-gradient(
            90deg,
            var(--color-bg) 0px,
            var(--color-bg) 2px,
            transparent 2px,
            transparent 6px
        );
    opacity: 1;
}

.infinite-carousel {
    display: flex;
    gap: var(--spacing-lg);
    padding: var(--spacing-lg) 0;
    animation: scroll-left 12s linear infinite;
    white-space: nowrap;
}

.carousel-content {
    font-size: 48px;
    font-weight: var(--font-regular);
    letter-spacing: var(--letter-spacing-sm);
    color: var(--color-accent);
    text-transform: uppercase;
    flex-shrink: 0;
    text-shadow: 0 0 12px var(--color-accent);
}

.carousel-separator {
    font-size: 40px;
    color: var(--color-accent);
    flex-shrink: 0;
    text-shadow: 0 0 12px var(--color-accent);
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
    /* Loop back to start seamlessly */
}

/* ============================================
   05. Proof Through Data
   ============================================ */

.case-study .security-card {
    flex-direction: column;
    transition: 0.3s;
    text-decoration: none;
    gap: var(--spacing-xs);
}

.case-study .security-card h3 {
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-xs);
    color: var(--color-text);
    font-size: var(--text-sm);
}

.case-study .security-card:hover {
    background-color: var(--color-grid);
}


.card-header-content {
    display: flex;
    flex-direction: row;
    justify-content: center;
    width: 100%;
    justify-content: space-between;
}

.card-header-content svg {
    width: 28px;
    transform: rotate(-45deg);
    color: var(--color-accent);
    transition: 0.3s;
}

.case-study .security-card:hover svg {
    transform: rotate(0deg);
}

.neon-grid-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* Behind content */
    pointer-events: none; /* Let clicks pass through */
    opacity: 0.3;
}

.neon-grid-container canvas {
    position: absolute;
    display: block;
}

.grid-animation-relative {
    position: relative;
    z-index: 1; /* Content on top */
}

/* ============================================
   CTA PIXEL ANIMATION
   ============================================ */
.cta-pixel-wrapper {
    position: relative;
    width: 100%;
    padding: var(--spacing-xlg);
    overflow: hidden;
    min-height: 300px;
}

.cta-pixel-wrapper #stars,
.cta-pixel-wrapper #stars2,
.cta-pixel-wrapper #stars3 {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 1px;
    height: 1px;
    background: transparent;
}

.cta-pixel-wrapper #stars {
    animation: animStar 50s linear infinite;
    box-shadow: 779px 1331px #EC762E, 324px 42px #EC762E, 303px 586px #EC762E,
    1312px 276px #EC762E, 451px 625px #EC762E, 521px 1931px #EC762E, 1087px 1871px #EC762E,
    36px 1546px #EC762E, 132px 934px #EC762E, 1698px 901px #EC762E, 1418px 664px #EC762E,
    1448px 1157px #EC762E, 1084px 232px #EC762E, 347px 1776px #EC762E, 1722px 243px #EC762E,
    1629px 835px #EC762E, 479px 969px #EC762E, 1231px 960px #EC762E, 586px 384px #EC762E,
    164px 527px #EC762E, 8px 646px #EC762E, 1150px 1126px #EC762E, 665px 1357px #EC762E,
    1556px 1982px #EC762E, 1260px 1961px #EC762E, 1675px 1741px #EC762E, 892px 445px #EC762E,
    1523px 1098px #EC762E, 245px 1654px #EC762E, 1834px 567px #EC762E, 1156px 1445px #EC762E,
    634px 823px #EC762E, 1789px 1234px #EC762E, 412px 1567px #EC762E, 987px 678px #EC762E,
    1645px 345px #EC762E;
}

.cta-pixel-wrapper #stars:after {
    content: '';
    position: absolute;
    top: 2000px;
    width: 1px;
    height: 1px;
    background: transparent;
    box-shadow: 779px 1331px #EC762E, 324px 42px #EC762E, 303px 586px #EC762E,
    1312px 276px #EC762E, 451px 625px #EC762E, 521px 1931px #EC762E, 1087px 1871px #EC762E,
    36px 1546px #EC762E, 132px 934px #EC762E, 1698px 901px #EC762E, 1418px 664px #EC762E,
    1448px 1157px #EC762E, 1084px 232px #EC762E, 347px 1776px #EC762E, 1722px 243px #EC762E,
    1629px 835px #EC762E, 479px 969px #EC762E, 1231px 960px #EC762E, 586px 384px #EC762E,
    164px 527px #EC762E, 8px 646px #EC762E, 1150px 1126px #EC762E, 665px 1357px #EC762E,
    1556px 1982px #EC762E, 1260px 1961px #EC762E, 1675px 1741px #EC762E, 892px 445px #EC762E,
    1523px 1098px #EC762E, 245px 1654px #EC762E, 1834px 567px #EC762E, 1156px 1445px #EC762E,
    634px 823px #EC762E, 1789px 1234px #EC762E, 412px 1567px #EC762E, 987px 678px #EC762E,
    1645px 345px #EC762E;
}

.cta-pixel-wrapper #stars2 {
    width: 2px;
    height: 2px;
    animation: animStar 100s linear infinite;
    box-shadow: 1448px 320px #EC762E, 1775px 1663px #EC762E, 332px 1364px #EC762E,
    878px 340px #EC762E, 569px 1832px #EC762E, 1422px 1684px #EC762E, 1946px 1907px #EC762E,
    121px 979px #EC762E, 1044px 1069px #EC762E, 463px 381px #EC762E, 423px 112px #EC762E,
    523px 1179px #EC762E, 779px 654px #EC762E, 1398px 694px #EC762E, 1085px 1464px #EC762E,
    1256px 789px #EC762E, 667px 1523px #EC762E, 1612px 456px #EC762E, 234px 1098px #EC762E,
    1345px 1756px #EC762E, 890px 1234px #EC762E;
}

.cta-pixel-wrapper #stars2:after {
    content: '';
    position: absolute;
    top: 2000px;
    width: 2px;
    height: 2px;
    background: transparent;
    box-shadow: 1448px 320px #EC762E, 1775px 1663px #EC762E, 332px 1364px #EC762E,
    878px 340px #EC762E, 569px 1832px #EC762E, 1422px 1684px #EC762E, 1946px 1907px #EC762E,
    121px 979px #EC762E, 1044px 1069px #EC762E, 463px 381px #EC762E, 423px 112px #EC762E,
    523px 1179px #EC762E, 779px 654px #EC762E, 1398px 694px #EC762E, 1085px 1464px #EC762E,
    1256px 789px #EC762E, 667px 1523px #EC762E, 1612px 456px #EC762E, 234px 1098px #EC762E,
    1345px 1756px #EC762E, 890px 1234px #EC762E;
}

.cta-pixel-wrapper #stars3 {
    width: 3px;
    height: 3px;
    animation: animStar 150s linear infinite;
    box-shadow: 387px 1878px #EC762E, 760px 1564px #EC762E, 1487px 999px #EC762E,
    948px 1828px #EC762E, 1977px 1001px #EC762E, 1284px 1963px #EC762E, 656px 284px #EC762E,
    1268px 1635px #EC762E, 1820px 598px #EC762E, 642px 1900px #EC762E, 1123px 734px #EC762E,
    445px 1267px #EC762E, 1534px 456px #EC762E, 823px 1567px #EC762E, 345px 912px #EC762E;
}

.cta-pixel-wrapper #stars3:after {
    content: '';
    position: absolute;
    top: 2000px;
    width: 3px;
    height: 3px;
    background: transparent;
    box-shadow: 387px 1878px #EC762E, 760px 1564px #EC762E, 1487px 999px #EC762E,
    948px 1828px #EC762E, 1977px 1001px #EC762E, 1284px 1963px #EC762E, 656px 284px #EC762E,
    1268px 1635px #EC762E, 1820px 598px #EC762E, 642px 1900px #EC762E, 1123px 734px #EC762E,
    445px 1267px #EC762E, 1534px 456px #EC762E, 823px 1567px #EC762E, 345px 912px #EC762E;
}

@keyframes animStar {
    from {
        transform: translateY(0px);
    }
    to {
        transform: translateY(-2000px);
    }
}

.cta-content-layer {
    position: relative;
    z-index: 2;
}

/* ============================================
   FOOTER
   ============================================ */

.section.cta-footer {
    padding: 0px;
    justify-content: space-between;
}

.cta-footer .content-wrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.footer {
    background-image: url("images/footer-background.svg");
    min-height: 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-top: 1px solid var(--color-grid);
}

.footer .data-desc {
    font-size: var(--text-sm);
}

.footer-wrapper {
    display: flex;
    flex-direction: row;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background-color: var(--color-bg);
    border: 1px solid var(--color-grid);
    width: auto;
}

.footer-logo {
    width: 132px;
}

.cta-footer .content-split {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    text-align: center;
}

/* ============================================
   RESPONSIVE DESIGN - MEDIA QUERIES
   ============================================ */

/* ============================================
   Desktop / Tablet - max-width: 1024px
   ============================================ */
@media (max-width: 1024px) {
    /* Layout */
    .content-split {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .section-title {
        font-size: 32px;
    }

    /* Navigation */
    .nav-links {
        gap: var(--spacing-sm);
        /* Ensure nav-links are visible on larger screens */
        display: flex;
        flex-direction: row;
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        background: transparent;
        padding: 0;
        border: none;
        transform: none;
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        font-size: var(--text-xs);
        padding: var(--spacing-xs) var(--spacing-sm);
        gap: var(--spacing-xs);
        width: auto;
        text-align: left;
    }

    /* Typography */
    .main-title {
        font-size: 32px;
        margin-bottom: var(--spacing-md);
    }

    .justify-between.content-left {
        justify-content: start;
    }


    /* Components */
    .radar-container {
        width: 320px;
    }

    .scanner-card {
        height: 320px;
    }

    /* Feature Slider */
    .feature-slider {
        height: 360px;
        gap: var(--spacing-sm);
    }

    .slider-card {
        min-width: 40px;
    }

    .slider-card.expanded {
        min-width: 300px;
    }

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

    .card-content h3 {
        font-size: 15px;
    }

    .card-content p {
        font-size: 11px;
        line-height: 1.5;
    }

    .card-label {
        font-size: 11px;
        left: 10px;
        bottom: 12px;
    }

    .nav-arrow {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .nav-dot {
        width: 6px;
        height: 6px;
    }

    .slider-nav {
        gap: var(--spacing-md);
    }

       /* Translation Section */
    .risk-layer-section .content-split {
        gap: var(--spacing-xxlg);
    }

     /* Risk Cards*/
    .risk-cards-wrapper {
        gap: 0;

    }

    /* Carousel */
    .carousel-content {
        font-size: 32px;
    }

    .carousel-separator {
        font-size: 26px;
    }

    .infinite-carousel {
        gap: var(--spacing-lg);
    }
}

/* ============================================
   Tablet / Mobile - max-width: 960px
   ============================================ */
@media (max-width: 960px) {
    /* Layout */
    body {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr;
    }

     /* General Structure */
    .scroll-container {
        scroll-snap-type: none;
    }

    .section {
        height: auto;
        padding: var(--spacing-lg) var(--spacing-xmd);
    }

    /* Header */
    .mission-section {
        height: calc(100vh - 68px);
    }   

    .scroll-container {
        left: 0;
    }

    /* Navigation */
    .top-nav {
        left: 0;
        padding: 0 var(--spacing-md);
    }

    /* Show mobile menu toggle button */
    .mobile-menu-toggle {
        display: flex;
    }

    /* Mobile navigation links */
    .nav-links {
        position: fixed;
        top: 68px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--color-bg);
        padding: var(--spacing-md);
        gap: var(--spacing-md);
        border-bottom: 1px solid var(--color-grid);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s var(--easing-cinematic);
        z-index: 999;
    }

    /* Show menu when active */
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    /* Mobile menu links styling */
    .nav-link {
        width: 100%;
        text-align: center;
        padding: var(--spacing-md);
        font-size: var(--text-sm);
    }

    .nav-link:hover {
        border-color: var(--color-accent);
        background: var(--color-accent-darker);
    }

    /* Section Counter */
    .section-counter {
        top: auto;
        left: 50%;
        transform: translateX(-50%);
        flex-direction: row;
        width: 100%;
        height: 28px;
        border-right: none;
        border-top: 1px solid var(--color-grid);
    }

    .counter-item {
        width: 30px;
    }

    /* Typography */
    .main-title {
        font-size: 28px;
        margin-bottom: var(--spacing-md);
    }

    .section-title {
        font-size: 24px;
    }

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

    /* Feature Slider */
    .feature-slider {
        flex-direction: column;
        height: auto;
        gap: var(--spacing-sm);
        overflow: visible;
    }

    .slider-card {
        min-width: auto;
        width: 100%;
        height: 50px;
        min-height: 50px;
        flex-shrink: 0;
        display: none;
        flex-direction: column;
    }

    .slider-card.expanded {
        display: flex;
        height: auto;
        flex: none;
        animation: cardFadeIn 0.4s ease-in-out forwards;
    }

    .card-inner {
        flex-direction: column;
        position: relative;
    }

    .card-label {
        display: none;
    }

    .slider-card.expanded .card-label {
        display: none;
    }

    .card-content {
        position: static;
        opacity: 0;
        padding: var(--spacing-sm);
        pointer-events: none;
        transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1) 0.15s;
        height: 0;
        overflow: hidden;
    }

    .slider-card.expanded .card-content {
        position: static;
        opacity: 1;
        pointer-events: auto;
        height: auto;
        overflow: visible;
        animation: cardFadeIn 0.4s ease-in-out forwards 0.1s;
    }

    .content-inner {
        gap: var(--spacing-lg);
        padding: var(--spacing-md);
        height: 332px;
    }

    .card-content h3 {
        font-size: 16px;
        letter-spacing: var(--letter-spacing-xs);
        font-weight: var(--font-medium);
        line-height: var(--line-height-title);
    }

    .card-content p {
        font-size: var(--text-sm);
        line-height: var(--line-height-body);
        color: var(--color-muted);
    }

    .nav-arrow {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .nav-dot {
        width: 6px;
        height: 6px;
    }

    .slider-nav {
        gap: var(--spacing-md);
    }

    .nav-dots {
        gap: 4px;
    }

    /* Section 02 */
    .risk-cards-wrapper {
        margin-top: 0px;
    flex-direction: column;
    align-items: start;
    gap: var(--spacing-sm);
}   


    .risk-card,
    .risk-card:nth-child(2n),
    .risk-card:nth-child(3n),
    .risk-card:nth-child(4n),
    .risk-card:nth-child(5n) {
        height: auto;
    }

    .risk-card {
        width: 76%;
    }

    .risk-card:nth-child(2n) {
        width: 82%;
    }

    .risk-card:nth-child(3n) {
        width: 88%;
    }

    .risk-card:nth-child(4n) {
        width: 94%;
    }

       .risk-card:nth-child(5n){
        width: 100%;
    }

 
    .scanner-card {
        height: 420px;
    }

    /* Carousel */
    .carousel-content {
        font-size: 18px;
    }

    .carousel-separator {
        font-size: 14px;
    }

    .infinite-carousel {
        gap: var(--spacing-md);
        padding: var(--spacing-md) 0;
        animation: scroll-left 25s linear infinite;
    }
}

/* ============================================
   Mobile - max-width: 600px
   ============================================ */
@media (max-width: 600px) {

    /* Feature Slider */
    .feature-slider-container {
        padding: var(--spacing-md) 0;
        gap: var(--spacing-md);
    }

    .scanner-card {
        height: 500px;
    }

    .footer-wrapper {
        flex-direction: column;
        align-items: center;
        width: 92%;
        text-align: center;
        padding: var(--spacing-lg) var(--spacing-md);
    }

    .footer {
        height: 320px;
        padding-bottom: 28px;
    }

    .tv-scanlines {
    background-image:
        repeating-linear-gradient(
            90deg,
            var(--color-bg) 0px,
            var(--color-bg) 1px,
            transparent 1px,
            transparent 6px
        );
    }
}


@media (max-width: 480px) {

    .scanner-card {
        height: 500px;
    }

    .content-inner img {
        height: 128px;
    }


    /* Header */
    .mission-section {
        height: auto;
    }
    
    /* Sphere */
    .sphere-visualization {
    max-width: 320px;
    height: 320px;
}

}


/* ============================================
   Noise Effect
   ============================================ */

.noise-effect:after {
  animation: grain 8s steps(10) infinite;
  background-image: url(images/noise.gif);
  content: "";
  height: 300%;
  left: -50%;
  opacity: 0.06;
  position: fixed;
  top: -110%;
  width: 300%;
  pointer-events: none;
  z-index: 10000;
}

@keyframes grain {
  0%, 100% { transform:translate(0, 0) }
  10% { transform:translate(-5%, -10%) }
  20% { transform:translate(-15%, 5%) }
  30% { transform:translate(7%, -25%) }
  40% { transform:translate(-5%, 25%) }
  50% { transform:translate(-15%, 10%) }
  60% { transform:translate(15%, 0%) }
  70% { transform:translate(0%, 15%) }
  80% { transform:translate(3%, 35%) }
  90% { transform:translate(-10%, 10%) }
}