:root {
    --bg-color: #000000;
    --bg-secondary: #000000;
    --bg-modal: #000000;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-color: #0F394A;
    /* Deep Navy Blue */
    --accent-glow: rgba(15, 57, 74, 0.4);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --border-modal: #2A2A33;
    --font-heading: 'League Spartan', sans-serif;
    --font-body: 'Montserrat', sans-serif;
    --transition-speed: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Canvas */
#data-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 1; /* More visible nodes */
    will-change: transform;
}


/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: background-color 0.3s ease, padding 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    will-change: background-color, padding, backdrop-filter;
}


.navbar.scrolled {
    background-color: rgba(0, 0, 0, 0.9);
    padding: 15px 40px;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 2px;
    color: var(--text-primary);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links li a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--text-primary);
}

.contact-link {
    border: 1px solid var(--glass-border);
    padding: 8px 16px;
    border-radius: 4px;
}

.contact-link:hover {
    background: var(--glass-bg);
    border-color: var(--text-primary);
}

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

.nav-logo-svg {
    height: 32px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.logo:hover .nav-logo-svg {
    transform: scale(1.05);
    filter: drop-shadow(0 0 12px rgba(15, 57, 74, 0.5));
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
}


/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    position: relative;
    overflow: hidden;
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.4;
    pointer-events: none;
}

.hero-content {
    width: 100%;
    max-width: 800px;
    z-index: 10;
    position: relative;
}

.hero-logo-container {
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0) scale(0.5);
    animation:
        containerExpand 1.6s cubic-bezier(0.4, 0.0, 0.2, 1) 1.2s forwards,
        subtleFloat 6s ease-in-out infinite alternate 2.8s;
}

.hero-logo-svg {
    width: 80%;
    max-width: 800px;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.1));
    will-change: filter, transform;
}

@keyframes containerExpand {
    0% {
        transform: translateZ(0) scale(0.5);
        /* Start with zero glow */
        filter: drop-shadow(0 0 0px rgba(255, 255, 255, 0));
    }

    70% {
        transform: translateZ(0) scale(1.65);
        /* Glow reaches almost full opacity at the peak of the bounce */
        filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.12));
    }

    /* Soft overshoot bounce and settle into final glow */
    100% {
        transform: translateZ(0) scale(1.6);
        filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.15));
    }
}

/* Base class for jumping SVG paths */
.anim-path {
    opacity: 0;
    transform: translateY(100px) scale(0.6);
    /* Transform origin center of the SVG so they jump in place relatively */
    transform-origin: center;
    /* Faster animation (0.5s) using inline delays for reliable parsing */
    animation: pathJump 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes pathJump {
    0% {
        opacity: 0;
        transform: translateZ(0) translateY(80px) scale(0.7);
        filter: blur(4px);
    }

    50% {
        opacity: 1;
        transform: translateZ(0) translateY(-15px) scale(1.05);
        filter: blur(0);
    }

    100% {
        opacity: 1;
        transform: translateZ(0) translateY(0) scale(1);
    }
}

@keyframes subtleFloat {
    0% {
        transform: translateZ(0) scale(1.6) translateY(0);
        filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.15));
    }

    100% {
        transform: translateZ(0) scale(1.62) translateY(-8px);
        filter: drop-shadow(0 0 40px rgba(255, 255, 255, 0.3));
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    opacity: 0;
    cursor: pointer;
    text-decoration: none;
    animation: fadeInScroll 1.5s ease-out 3s forwards, floatUpDown 3s ease-in-out infinite 3.5s;
    transition: opacity 0.3s;
}

.scroll-indicator:hover {
    opacity: 0.8 !important;
}

@keyframes fadeInScroll {
    0% { opacity: 0; margin-bottom: -10px; }
    100% { opacity: 1; margin-bottom: 0px; }
}

@keyframes floatUpDown {
    0%, 100% { bottom: 20px; }
    50% { bottom: 14px; }
}

@media (min-width: 1200px) {
    .hero-logo-svg {
        width: 70%;
    }
}

@media (max-width: 768px) {
    .hero-logo-svg {
        width: 60%;
    }
}

@media (max-width: 480px) {
    .hero-logo-svg {
        width: 55%;
    }
}

.headline {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1px;
    line-height: 1.1;
    text-transform: uppercase;
}

.headline .highlight {
    color: var(--accent-color);
    text-shadow: 0 0 20px var(--accent-glow);
}

.subheadline {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.4;
}

.support-text {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.8;
}

/* Buttons */
.cta-group {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn {
    padding: 15px 35px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #fff;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
    background-color: #0F394A;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: #fff;
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    border-color: var(--text-primary);
    background-color: var(--glass-bg);
}

/* System Core Section (Central Element) */
.system-core-section {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 50px 0;
    overflow: hidden;
    backface-visibility: hidden;
}


.core-container {
    position: relative;
    width: 600px;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.central-character {
    width: 420px;
    /* Restored dimension */
    z-index: 5;
    position: relative;
}

.central-character img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.5));
    mask-image: linear-gradient(to bottom, black 75%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 75%, transparent 100%);
}

.glow-effect {
    display: none;
    /* Removed as requested */
}

/* Orbiting Blocks */
.system-block {
    position: absolute;
    width: 180px;
    padding: 15px;
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    cursor: pointer;
    transition: transform var(--transition-speed), opacity var(--transition-speed), border-color var(--transition-speed), background var(--transition-speed);

    z-index: 2000;
    /* Ensure clickable above EVERYTHING in orbit */
    pointer-events: auto;
    /* Explicitly enable clicks */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.system-block:hover {
    border-color: var(--accent-color);
    box-shadow: 0 0 15px var(--accent-glow);
    transform: scale(1.05);
    background: rgba(20, 20, 20, 0.95);
    z-index: 20;
}

.block-icon {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    transition: color 0.3s;
}

.system-block:hover .block-icon {
    color: var(--accent-color);
}

.block-label {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.block-content {
    display: none;
    margin-top: 10px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Specific Positions for Orbit (Tightened) */
.block-top-left {
    top: 25%;
    left: 25%;
}

.block-top-right {
    top: 25%;
    right: 25%;
}

.block-bottom-left {
    bottom: 25%;
    left: 25%;
}

.block-bottom-right {
    bottom: 25%;
    right: 25%;
}

/* Expanded State for Blocks */
.system-block.active {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.5);
    width: 300px;
    z-index: 100;
    background: rgba(5, 5, 5, 0.98);
    border-color: var(--accent-color);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
    padding: 30px;
}

.system-block.active .block-content {
    display: block;
    opacity: 1;
}

/* Overlay for focus mode */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 50;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* --- PANORAMIC LAYOUT RESCUE (V6 + V7 Repair) --- */

/* 1. Decoupled Character Layer (Absolute Center of Section) */
.core-container {
    position: absolute;
    /* Absolute within the relative section */
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.central-character {
    position: absolute;
    /* Scoped to section, NOT fixed to screen */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vh;
    max-width: 600px;
    z-index: 10;
    transition: all 0.5s ease;
}

/* 2. Sidebar Rail (Fixed Right Column - Only when Active) */
.system-core-section.active-3d .system-block {
    position: fixed !important;
    right: 0 !important;
    left: auto !important;
    top: 0 !important;
    bottom: auto !important;
    transform: none !important;
    width: 280px !important;
    height: auto !important;
    padding: 20px 30px !important;
    margin: 0 !important;
    border-radius: 0 !important;
    border: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    background: rgba(0, 0, 0, 0.95) !important;
    z-index: 5000 !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: left !important;
    gap: 20px !important;
    pointer-events: auto !important;
}

.system-core-section.active-3d .system-block:hover,
.system-core-section.active-3d .system-block.active-in-3d {
    background: var(--accent-color) !important;
    padding-left: 40px !important;
}

/* Sidebar Vertical Stacking */
.system-core-section.active-3d .block-top-left {
    top: 20vh !important;
}

.system-core-section.active-3d .block-top-right {
    top: 35vh !important;
}

.system-core-section.active-3d .block-bottom-left {
    top: 50vh !important;
}

.system-core-section.active-3d .block-bottom-right {
    top: 65vh !important;
}

/* 3. Screen Zoning */
.floating-screens-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    /* KEY: Pass through clicks when screens are hidden */
    z-index: 100;
    will-change: transform;
}


/* LEFT SCREEN (Far Left) */
.screen-1 {
    width: 28vw;
    height: 60vh;
    left: 3vw;
    top: 20vh;
    --base-transform: rotateY(25deg);
    border-left: 4px solid var(--accent-color);
}

/* RIGHT SCREEN (Inner Right - Next to Sidebar) */
.screen-3 {
    width: 28vw;
    height: 60vh;
    right: 300px;
    /* 280px Sidebar + 20px Gap */
    top: 20vh;
    --base-transform: rotateY(-25deg);
    border-right: 4px solid var(--accent-color);
}

/* CENTER HUD (Top Wide) */
.screen-2 {
    width: 50vw;
    height: 15vh;
    left: 50%;
    top: 5vh;
    transform: translateX(-50%);
    --base-transform: translateX(-50%) rotateX(10deg);
}

/* Close Button (Fixed Bottom Left of Rail) */
.close-3d-btn {
    position: fixed;
    bottom: 30px;
    right: 20px;
    /* Inside the sidebar alignment visually */
    left: auto;
    transform: none;
    z-index: 6000;
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    border: 1px solid white;
}

/* Screen Content Styles */
.screen-header {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--accent-color);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 10px;
}

.screen-main-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.screen-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Close Button for 3D View */
.close-3d-btn {
    position: fixed;
    /* Fixed to viewport */
    bottom: 40px;
    right: 100px;
    /* Left of the sidebar */
    left: auto;
    transform: none;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--glass-border);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 6000;
    opacity: 0;
    transition: all 0.5s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.system-core-section.active-3d .close-3d-btn {
    opacity: 1;
}

.close-3d-btn:hover {
    background: var(--glass-bg);
    border-color: var(--text-primary);
}

/* Floating Animation */
@keyframes floatScreen {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}
.virtual-screen {
    backface-visibility: hidden;
    perspective: 1000px;
}


.system-core-section.active-3d .virtual-screen .screen-content {
    animation: floatScreen 6s ease-in-out infinite;
}

/* Stagger floating for inner content, not the container */
.system-core-section.active-3d .screen-1 .screen-content {
    animation-delay: 0s;
}

.system-core-section.active-3d .screen-2 .screen-content {
    animation-delay: 1s;
}

.system-core-section.active-3d .screen-3 .screen-content {
    animation-delay: 2s;
}

/* Info Sections (Webs, Pauta, Services) */
.info-section {
    padding: 100px 20px;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.dark-bg {
    background-color: transparent;
}

.darker-bg {
    background-color: transparent;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
    display: flex;
}

.container.reverse {
    justify-content: flex-end;
    text-align: right;
}

.centered-text .container {
    justify-content: center;
    text-align: center;
}

.content-box h3 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.content-box p {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* Contact Section */
.contact-section {
    padding: 120px 20px;
    text-align: center;
    background: transparent;
}

.btn.large {
    font-size: 1.2rem;
    padding: 20px 50px;
    margin-top: 30px;
}

/* Footer */
footer {
    padding: 40px 50px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
    background-color: transparent;
}

.footer-center {
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--text-primary);
}

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

.footer-right a {
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: color 0.3s;
}

.footer-right a:hover {
    color: var(--text-primary);
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .headline {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
    }

    /* Add toggle logic later */
    .menu-toggle {
        display: block;
    }

    .core-container {
        width: 100%;
        height: auto;
        flex-direction: column;
        gap: 20px;
    }

    .central-character {
        width: 80%;
        order: 1;
        margin-bottom: 40px;
    }

    .orbit-container {
        display: contents;
    }

    .system-block {
        position: relative;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        width: 100%;
        max-width: 300px;
        order: 2;
        margin: 10px 0;
    }

    .container {
        flex-direction: column;
        text-align: center;
    }

    .container.reverse {
        justify-content: center;
        text-align: center;
    }

    footer {
        flex-direction: column;
        gap: 20px;
    }
}

/* Refactored Contact Section */
.contact-section {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px;
    background: transparent;
}

.contact-selection-wrapper {
    text-align: center;
    max-width: 800px;
}

.contact-title {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.contact-subtitle {
    font-family: var(--font-body);
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.contact-options {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.contact-options .btn {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    padding: 18px 45px;
    min-width: 250px;
}

@media (max-width: 768px) {
    .contact-title {
        font-size: clamp(2rem, 8vw, 3rem);
        letter-spacing: 1px;
    }
    .contact-options {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    .contact-options .btn {
        min-width: 100%;
        width: 100%;
    }
}

/* Modal System */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* 2. Base Screen Configuration */
.virtual-screen {
    position: absolute;
    background: rgba(5, 5, 10, 0.9);
    /* Darker, more solid */
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 40px;
    opacity: 0;
    visibility: hidden;
    /* CRITICAL: Ensure it's incorrectly ignored by mouse and eye */
    pointer-events: none;
    will-change: transform, opacity;
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.9),
        0 0 40px var(--accent-glow);
}

/* 3. Animation Classes */
.system-core-section.active-3d .virtual-screen.anim-enter {
    visibility: visible;
    opacity: 1;
    /* Force opacity update */
    animation: emergeFromDeep 1s cubic-bezier(0.1, 0.9, 0.2, 1) forwards;
    pointer-events: all;
}

.virtual-screen.anim-exit {
    visibility: visible;
    animation: flyPastCamera 0.5s ease-in forwards;
    pointer-events: none;
}

.modal-content {
    background-color: var(--bg-modal);
    width: 85%;
    height: 85%;
    max-width: 1000px;
    max-height: 800px;
    border: 1px solid var(--border-modal);
    border-radius: 20px;
    position: relative;
    padding: 40px;
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 25px;
    right: 25px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-primary);
}

/* Form Styling */
.form-header {
    margin-bottom: 40px;
    text-align: left;
}

.form-header h3 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.form-header p {
    font-family: var(--font-body);
    color: var(--text-secondary);
    font-size: 1rem;
}

.motor-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field label {
    font-family: var(--font-body);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

.form-field input,
.form-field select,
.form-field textarea {
    background-color: #111118;
    border: 1px solid var(--border-modal);
    border-radius: 4px;
    padding: 16px;
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(15, 57, 74, 0.4);
}

.full-row {
    grid-column: 1 / span 2;
}

.btn-submit {
    margin-top: 20px;
    padding: 18px;
    font-size: 1.1rem;
}

/* Success State */
.success-content {
    text-align: center;
    padding: 60px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.success-icon {
    font-size: 5rem;
    color: #00c04b;
    margin-bottom: 10px;
}

.success-content h3 {
    font-family: var(--font-heading);
    font-size: 3rem;
    text-transform: uppercase;
}

/* Helper Classes */
.hidden {
    display: none !important;
}

.no-scroll {
    overflow: hidden;
}

/* Responsive */
/* --- NEW PORTFOLIO SHOWCASE STYLES --- */
.portfolio-section {
    padding: 80px 0;
    background-color: transparent;
}

.portfolio-header-compact {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px 40px;
}


.portfolio-main-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 900;
    color: #fff;
    margin-bottom: 15px;
    letter-spacing: -2px;
}

.portfolio-main-subtitle {
    color: #6b7280;
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Sticky Filters */
.portfolio-filters-nav {
    position: sticky;
    top: 80px;
    z-index: 100;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 40px;
}

.filters-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
}

.filters-list {
    display: flex;
    justify-content: center;
    gap: 10px;
    list-style: none;
    overflow-x: auto;
    padding-bottom: 5px;
}

.filter-btn-new {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: #9ca3af;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.filter-btn-new:hover {
    color: #fff;
}

.filter-btn-new.active {
    background: #0F394A;
    color: #fff;
    box-shadow: 0 10px 20px rgba(15, 57, 74, 0.2);
}

@media (max-width: 768px) {
    .filters-list {
        justify-content: flex-start;
        padding-left: 0px;
        padding-right: 20px;
    }
}

/* Main Grid */
.portfolio-main-grid {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 32px;
    align-items: start;
}

.showcase-left {
    grid-column: span 8;
}

@media (max-width: 1024px) {
    .portfolio-main-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 0 16px;
    }
    .showcase-left {
        grid-column: span 1;
    }
}

.showcase-card {
    background: #111111;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.showcase-image-wrapper {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}


.showcase-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.showcase-card:hover .showcase-image-wrapper img {
    transform: scale(1.05);
}

.showcase-category-tag {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #0F394A;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
}

.showcase-info {
    padding: 30px;
}

.showcase-info-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
}

.showcase-title {
    font-size: 1.8rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 10px;
}

.showcase-desc {
    color: #9ca3af;
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 500px;
}

.tag-badge {
    background: rgba(15, 57, 74, 0.1);
    border: 1px solid rgba(15, 57, 74, 0.2);
    color: #0F394A;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
}

.showcase-specs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    margin-bottom: 25px;
}

.spec-label {
    font-size: 10px;
    font-weight: 800;
    color: #4b5563;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.spec-value {
    font-size: 13px;
    font-weight: 600;
    color: #e5e7eb;
    display: flex;
    align-items: center;
    gap: 8px;
}

.spec-value i {
    color: #0F394A;
    font-size: 12px;
}

.showcase-cta {
    background: #0F394A;
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: fit-content;
}

.showcase-cta:hover {
    background: #0F394A;
    transform: translateY(-2px);
}

/* Right Side Styles */
.showcase-right {
    grid-column: span 4;
}

@media (max-width: 1024px) {
    .showcase-right {
        grid-column: span 1;
        margin-top: 20px;
    }
}

.selector-title {
    font-size: 11px;
    font-weight: 800;
    color: #6b7280;
    letter-spacing: 2px;
    margin-bottom: 20px;
    padding-left: 5px;
}

.project-selector-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.selector-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    width: 100%;
}

.selector-item:hover {
    background: #1a1a1a;
    border-color: rgba(255, 255, 255, 0.1);
}

.selector-item.active {
    background: rgba(15, 57, 74, 0.1);
    border-color: rgba(15, 57, 74, 0.5);
    box-shadow: 0 0 0 1px rgba(15, 57, 74, 0.2);
}

.selector-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: #6b7280;
    transition: all 0.3s ease;
}

.selector-item.active .selector-icon {
    background: #0F394A;
    color: #fff;
}

.selector-content h4 {
    font-size: 14px;
    font-weight: 700;
    color: #9ca3af;
    margin-bottom: 2px;
}

.selector-item.active .selector-content h4 {
    color: #fff;
}

.selector-content p {
    font-size: 10px;
    color: #4b5563;
    font-weight: 800;
    text-transform: uppercase;
}

.selector-arrow {
    margin-left: auto;
    color: #374151;
    transition: all 0.3s ease;
}

.selector-item.active .selector-arrow {
    color: #0F394A;
    transform: translateX(4px);
}

/* Secondary CTA Card */
.secondary-cta-card {
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(135deg, rgba(15, 57, 74, 0.15), transparent);
    border: 1px solid rgba(15, 57, 74, 0.2);
    border-radius: 20px;
}

.cta-card-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    font-style: italic;
}

.cta-card-text {
    font-size: 12px;
    color: #9ca3af;
    line-height: 1.5;
    margin-bottom: 15px;
}

.cta-card-btn {
    background: none;
    border: none;
    color: #0F394A;
    font-size: 11px;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}


/* Legacy Portfolio Cleanup - Removed */


/* Legacy Portfolio Cleanup - Removed */

@keyframes ctaPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(15, 57, 74, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(15, 57, 74, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(15, 57, 74, 0);
    }
}


/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

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

/* Responsive Styles for Portfolio */
@media (max-width: 1024px) {
    .portfolio-container {
        gap: 40px;
    }

    .section-title {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .portfolio-section {
        padding: 60px 20px;
    }

    .portfolio-container {
        flex-direction: column;
        gap: 30px;
    }

    .portfolio-preview-column {
        flex: none;
        width: 100%;
        position: relative;
        top: 0;
    }

    .portfolio-content-column {
        width: 100%;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .project-name {
        font-size: 1.3rem;
    }

    .project-item.active .project-name {
        font-size: 1.5rem;
    }
}

/* PAID MEDIA PERFORMANCE SECTION */
.paid-media-section {
    min-height: 90vh;
    background-color: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
}

.pm-header {
    text-align: center;
    margin-bottom: 60px;
    z-index: 2;
}

.pm-header .section-title {
    font-family: var(--font-heading, "League Spartan", sans-serif);
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 15px;
}

.pm-header .section-subtitle {
    font-family: var(--font-body, "Montserrat", sans-serif);
    color: #a0a0a0;
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

.pm-pipeline-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: center;
}

.pm-pipeline-line {
    position: absolute;
    top: 50%;
    left: 5%;
    right: 5%;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-50%);
    z-index: 1;
}

.pm-pipeline-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: var(--accent-color, #0F394A);
    box-shadow: 0 0 10px var(--accent-color, #0F394A);
    transition: width 2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.paid-media-section.in-view .pm-pipeline-line::after {
    width: 100%;
    transition-duration: 1.5s;
}

.pm-cards-wrapper {
    display: flex;
    justify-content: space-between;
    width: 100%;
    position: relative;
    z-index: 2;
    gap: 20px;
}

.pm-card {
    flex: 1;
    background: rgba(20, 20, 25, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Card Hover */
.pm-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7), 0 0 20px rgba(255, 255, 255, 0.05);
}

.pm-tooltip {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(255, 255, 255, 0.95);
    color: #000;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.pm-tooltip::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px 5px 0;
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.95) transparent transparent transparent;
}

.pm-card:hover .pm-tooltip,
.pm-card.active .pm-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.pm-card.active {
    border-color: rgba(15, 57, 74, 0.5);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7), 0 0 20px rgba(15, 57, 74, 0.2);
    transform: translateY(-5px);
}

.paid-media-section.in-view .pm-card {
    opacity: 1;
    transform: translateX(0);
}

.paid-media-section.in-view .pm-card[data-stage="1"] {
    transition-delay: 0.2s;
}

.paid-media-section.in-view .pm-card[data-stage="2"] {
    transition-delay: 0.4s;
}

.paid-media-section.in-view .pm-card[data-stage="3"] {
    transition-delay: 0.6s;
}

.paid-media-section.in-view .pm-card[data-stage="4"] {
    transition-delay: 0.8s;
}

.paid-media-section.in-view .pm-card[data-stage="5"] {
    transition-delay: 1.0s;
}

.pm-card-icon {
    font-size: 2.5rem;
    color: var(--accent-color, #fff);
    margin-bottom: 20px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.pm-card-title {
    font-family: var(--font-heading, "League Spartan", sans-serif);
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 20px;
}

.pm-card-list {
    list-style: none;
    padding: 0;
    margin: 0;
    color: #a0a0a0;
    font-size: 0.9rem;
    font-family: var(--font-body, "Montserrat", sans-serif);
}

.pm-card-list li {
    margin-bottom: 8px;
}

.pm-metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    width: 100%;
}

.pm-metric {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 10px 5px;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    flex-direction: column;
}

.pm-metric span:last-child {
    font-size: 0.7rem;
    color: #888;
    font-weight: 400;
    text-transform: uppercase;
    margin-top: 5px;
}

.pm-revenue-highlight {
    font-size: 2rem;
    font-weight: 800;
    color: #00e676;
    margin-top: 15px;
    text-shadow: 0 0 20px rgba(0, 230, 118, 0.4);
}

.pm-chart-bar {
    width: 6px;
    background: var(--accent-color, #fff);
    border-radius: 3px;
    margin: 0 2px;
    display: inline-block;
}

.paid-media-section.in-view .b1 {
    animation: growBar 1.5s ease-out forwards 2.8s;
    height: 10px;
}

.paid-media-section.in-view .b2 {
    animation: growBar 1.5s ease-out forwards 3.0s;
    height: 25px;
}

.paid-media-section.in-view .b3 {
    animation: growBar 1.5s ease-out forwards 3.2s;
    height: 40px;
}

@keyframes growBar {
    0% {
        transform: scaleY(0);
        transform-origin: bottom;
    }

    100% {
        transform: scaleY(1);
        transform-origin: bottom;
    }
}

@media (max-width: 1024px) {
    .pm-card {
        padding: 20px 10px;
    }

    .pm-card-title {
        font-size: 1.2rem;
    }

    .pm-card-list {
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .paid-media-section {
        padding: 60px 20px;
    }

    .pm-cards-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .pm-card {
        width: 100%;
        max-width: 350px;
        transform: translateY(30px);
    }

    .paid-media-section.in-view .pm-card {
        transform: translateY(0);
    }

    .pm-pipeline-line {
        left: 50%;
        top: 0;
        bottom: 0;
        width: 2px;
        height: 100%;
        transform: translateX(-50%);
    }

    .pm-pipeline-line::after {
        width: 100%;
        height: 0%;
        transition: height 1.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    }

    .paid-media-section.in-view .pm-pipeline-line::after {
        height: 100%;
    }
}

/* =========================================
   SERVICES NETWORK SECTION (React-Inspired)
   ========================================= */
.services-network-section {
    min-height: 100vh;
    background-color: transparent;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px 80px 20px;
    overflow: hidden;
    color: #fff;
    font-family: var(--font-body, "Montserrat", sans-serif);
}

/* Background Effects */
.services-bg {
    position: absolute;
    inset: 0;
    opacity: 0.2;
    pointer-events: none;
    z-index: 0;
}

.services-bg-gradient {
    position: absolute;
    inset: 0;
    background: transparent;
}

.services-bg-dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Header */
.services-header {
    position: relative;
    z-index: 20;
    text-align: center;
    padding-top: 24px;
    padding-left: 16px;
    padding-right: 16px;
    margin-bottom: 0;
}

.services-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: -0.05em;
    text-transform: uppercase;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
    margin-bottom: 4px;
}

@media (min-width: 768px) {
    .services-title {
        font-size: 3.5rem;
    }
}

.services-subtitle {
    max-width: 36rem;
    margin: 4px auto 0;
    color: #9ca3af;
    font-size: 0.75rem;
    line-height: 1.25;
    opacity: 0.8;
}

@media (min-width: 768px) {
    .services-subtitle {
        font-size: 0.875rem;
    }
}

/* Main Container */
.services-graph-container {
    position: relative;
    width: 100%;
    height: 75vh;
    margin-top: -16px;
    z-index: 10;
}

@media (min-width: 768px) {
    .services-graph-container {
        height: 85vh;
    }
}

/* SVG Veins */
.services-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Hub Core */
.services-nodes-layer {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.services-hub {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 30;
}

.hub-ping {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background-color: rgba(6, 182, 212, 0.2);
    opacity: 0.2;
    animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
    transition: all 0.5s ease;
}

@keyframes ping {

    75%,
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.hub-border {
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    border: 1px solid rgba(6, 182, 212, 0.5);
    display: none;
    /* Hidden to match the new organic React design */
}

.hub-core {
    position: relative;
    width: 224px;
    height: 224px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 40%, rgba(8, 145, 178, 0.25) 0%, rgba(6, 78, 96, 0.15) 40%, rgba(0, 0, 0, 0.9) 70%, #000 100%);
    border: 1px solid rgba(6, 182, 212, 0.4);
    box-shadow: 0 0 40px rgba(6, 182, 212, 0.15), inset 0 0 30px rgba(6, 182, 212, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
    transition: all 0.5s ease;
    overflow: hidden;
}

@media (min-width: 768px) {
    .hub-core {
        width: 320px;
        height: 320px;
    }
}

.hub-core>*:not(#three-container) {
    z-index: 10;
    position: relative;
}

/* Hub Content Base */
.hub-label {
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 4px;
    color: #6b7280;
    transition: all 0.3s;
}

.hub-label.active-label {
    color: #67e8f9;
    filter: brightness(1.5);
}

@media (min-width: 768px) {
    .hub-label {
        font-size: 11px;
    }
}

.hub-title {
    font-size: 0.875rem;
    font-weight: 900;
    line-height: 1.25;
    text-transform: uppercase;
    color: #ecfeff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    transition: all 0.3s;
}

.hub-title.active-title {
    color: #fff;
    transform: scale(1.05);
}

@media (min-width: 768px) {
    .hub-title {
        font-size: 1.125rem;
    }
}

.hub-desc {
    font-size: 9px;
    color: #d1d5db;
    margin-top: 8px;
    font-weight: 500;
    line-height: 1.625;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}

@media (min-width: 768px) {
    .hub-desc {
        font-size: 11px;
    }
}

.hub-icon-zap {
    margin-top: 12px;
    color: #fff;
    filter: drop-shadow(0 0 8px rgba(15, 57, 74, 0.8));
    animation: bounce 1s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(-25%);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }

    50% {
        transform: none;
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

/* Hub Core Hover States */
.hub-core.hovered-core {
    transform: scale(1.1);
    background: radial-gradient(circle at 40% 40%, rgba(15, 57, 74, 0.35) 0%, rgba(15, 57, 74, 0.2) 40%, rgba(0, 0, 0, 0.85) 70%, #000 100%);
    box-shadow: 0 0 80px rgba(15, 57, 74, 0.7), inset 0 0 40px rgba(15, 57, 74, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Service Nodes Base */
.service-node {
    position: absolute;
    transform: translate(-50%, -50%);
    z-index: 40;
    transition: all 0.3s;
}

.node-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s;
}

@media (min-width: 768px) {
    .node-left .node-content {
        flex-direction: row-reverse;
    }

    .node-right .node-content {
        flex-direction: row;
    }
}

/* Node Text */
.node-text {
    text-align: center;
    padding: 0 16px;
    transition: all 0.3s;
}

@media (min-width: 768px) {
    .node-left .node-text {
        text-align: right;
    }

    .node-right .node-text {
        text-align: left;
    }
}

.node-title {
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.05em;
    white-space: nowrap;
    margin-bottom: 4px;
    color: #d1d5db;
    text-shadow: 0 2px 3px rgba(0, 0, 0, 1);
    transition: colors 0.3s;
}

@media (min-width: 768px) {
    .node-title {
        font-size: 0.875rem;
    }
}

.node-underline {
    height: 4px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(15, 57, 74, 1);
    border-radius: 9999px;
    width: 0;
    transition: all 0.5s;
}

/* Node Icon */
.node-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #111;
    color: #0F394A;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.5s;
}

@media (min-width: 768px) {
    .node-icon-box {
        width: 64px;
        height: 64px;
        border-radius: 1rem;
    }
}

/* Node Hover States */
.service-node:hover .node-content,
.service-node.hovered .node-content {
    opacity: 1;
}

.service-node.hovered .node-content {
    transform: scale(1.1) translateX(4px);
}

.node-left.hovered .node-content {
    transform: scale(1.1) translateX(-4px);
}

.service-node.hovered .node-text {
    opacity: 1;
}

.service-node.hovered .node-title {
    color: #fff;
}

.service-node.hovered .node-underline {
    width: 100%;
}

.service-node.hovered .node-icon-box {
    background-color: #fff;
    color: #000;
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.8);
    transform: rotate(12deg) scale(1.1);
    border-color: transparent;
}

.service-node:hover .node-icon-box {
    border-color: rgba(15, 57, 74, 0.5);
}

/* Footer Branding */
.services-footer-branding {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    color: #374151;
    text-transform: uppercase;
    font-size: 9px;
    letter-spacing: 0.5em;
    font-weight: bold;
}

/* Vein Animation */
@keyframes veinFlow {
    from {
        stroke-dashoffset: 520;
    }

    to {
        stroke-dashoffset: 0;
    }
}

/* Responsive adjustments for Mobile */
@media (max-width: 768px) {
    .service-node .node-text {
        display: none;
    }

    .service-node {
        position: absolute;
        width: auto !important;
        margin-bottom: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        border: none !important;
    }

    .node-icon-box {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* =========================================
   LANGUAGE SWITCHER
   ========================================= */
.lang-switcher {
    position: fixed;
    bottom: 80px;
    right: 24px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    padding: 12px 24px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.6);
    transition: all 0.3s ease;
}

.lang-switcher:hover {
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.7);
}

.lang-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    color: rgba(255, 255, 255, 0.7);
}

.lang-btn.active {
    color: #fff;
    background: rgba(15, 57, 74, 0.15);
    text-shadow: 0 0 15px rgba(15, 57, 74, 0.6);
}

.lang-divider {
    color: rgba(255, 255, 255, 0.15);
    font-size: 1.2rem;
    user-select: none;
}

/* =========================================
   CASOS DE ÉXITO SECTION
   ========================================= */
.cases-section {
    padding: 100px 20px;
    background: transparent;
    position: relative;
}

.cases-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.cases-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.05em;
    color: #fff;
    margin-bottom: 20px;
}

.cases-subtitle {
    color: #737373;
    font-size: 1.15rem;
    font-family: var(--font-body);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.6;
}

.cases-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (min-width: 1024px) {
    .cases-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }
}

.case-card {
    position: relative;
    aspect-ratio: 9/16;
    border-radius: 2.5rem;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.5s ease;
}

.case-card:hover {
    transform: scale(1.03);
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.1);
}

.case-thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(40%);
    transition: all 0.7s ease-out;
}

.case-video-hover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
    pointer-events: none;
}

.case-card:hover .case-video-hover {
    opacity: 1;
}

.case-card:hover .case-thumb {
    filter: grayscale(0%);
}

.case-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 40%, transparent 100%);
    opacity: 0.9;
}

.case-card-content {
    position: absolute;
    inset: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 10;
}

@media (min-width: 768px) {
    .case-card-content {
        padding: 28px;
    }
}

/* Badge colors */
.case-badge {
    align-self: flex-start;
    padding: 6px 14px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.65rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.case-color-cyan {
    background: #0F394A;
}

.case-color-slate {
    background: #0F394A;
}

.case-color-purple {
    background: #9333ea;
}

.case-color-rose {
    background: #f43f5e;
}

.case-color-emerald {
    background: #059669;
}

.case-color-pink {
    background: #f472b6;
}

.case-color-amber {
    background: #d97706;
}

.case-color-fuchsia {
    background: #d946ef;
}

.case-card-bottom {
    text-align: left;
}

.case-card-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 900;
    line-height: 0.95;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: -0.05em;
    color: #fff;
    transition: color 0.3s;
}

@media (min-width: 768px) {
    .case-card-title {
        font-size: 1.5rem;
    }
}

.case-card:hover .case-card-title {
    color: #0F394A;
}

.case-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.case-tags span {
    font-size: 0.55rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    padding: 4px 10px;
    border-radius: 8px;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-weight: 700;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.7);
}

.case-play {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.6rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    transition: color 0.3s;
}

.case-play i {
    font-size: 0.5rem;
}

.case-card:hover .case-play {
    color: #fff;
}

/* =========================================
   STORY MODAL
   ========================================= */
.story-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(20px);
    padding: 16px;
}

.story-modal.active {
    display: flex;
}

.story-modal-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1100px;
    height: 100%;
    max-height: 85vh;
    background: #171717;
    border-radius: 2.5rem;
    overflow: hidden;
    box-shadow: 0 0 80px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

@media (min-width: 1024px) {
    .story-modal-inner {
        flex-direction: row;
        border-radius: 3rem;
    }
}

.story-close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 60;
    color: rgba(255, 255, 255, 0.4);
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 10px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.story-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

/* Story Left: Image side */
.story-left {
    position: relative;
    width: 100%;
    aspect-ratio: 9/16;
    max-height: 50vh;
    background: #000;
    flex-shrink: 0;
    overflow: hidden;
    touch-action: none;
}

@media (min-width: 1024px) {
    .story-left {
        width: 420px;
        max-height: none;
        height: 100%;
        aspect-ratio: auto;
    }
}

.story-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-image-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, transparent 30%, transparent 60%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 10;
    pointer-events: none;
}

/* Progress bar */
.story-progress-bar {
    position: absolute;
    top: 24px;
    left: 24px;
    right: 24px;
    display: flex;
    gap: 6px;
    z-index: 30;
}

.story-progress-segment {
    flex: 1;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    overflow: hidden;
}

.story-progress-fill {
    height: 100%;
    background: #fff;
    border-radius: 999px;
    width: 0%;
    transition: width 60ms linear;
}

/* Header info */
.story-header-info {
    position: absolute;
    top: 48px;
    left: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 30;
}

.story-info-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1rem;
}

.story-info-text {
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.story-info-title {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: -0.05em;
    line-height: 1;
}

.story-info-trigger {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-top: 4px;
}

/* Pause overlay */
.story-pause-overlay {
    position: absolute;
    inset: 0;
    z-index: 40;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.story-pause-overlay.active {
    opacity: 1;
}

.story-pause-icon {
    background: rgba(255, 255, 255, 0.1);
    padding: 28px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.story-pause-icon i {
    font-size: 3rem;
    color: #fff;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.story-pause-overlay span {
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    font-size: 0.65rem;
    background: rgba(0, 0, 0, 0.4);
    padding: 6px 16px;
    border-radius: 999px;
    backdrop-filter: blur(12px);
}

/* Touch zones */
.story-touch-zones {
    position: absolute;
    inset: 0;
    display: flex;
    z-index: 20;
}

.story-touch-left {
    width: 25%;
    height: 100%;
    cursor: pointer;
}

.story-touch-center {
    width: 50%;
    height: 100%;
    cursor: pointer;
}

.story-touch-right {
    width: 25%;
    height: 100%;
    cursor: pointer;
}

/* Story Right: Content panel */
.story-right {
    flex: 1;
    padding: 32px;
    overflow-y: auto;
    background: #171717;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    text-align: left;
}

@media (min-width: 768px) {
    .story-right {
        padding: 48px;
    }
}

@media (min-width: 1024px) {
    .story-right {
        padding: 64px;
    }
}

.story-right::-webkit-scrollbar {
    display: none;
}

.story-right {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.story-label-line {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #0F394A;
    margin-bottom: 24px;
}

.story-label-line .line {
    height: 2px;
    width: 40px;
    background: #0F394A;
    border-radius: 999px;
}

.story-label-line span {
    font-size: 0.6rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.3em;
}

.story-detail-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.05em;
    line-height: 0.95;
    color: #fff;
    margin-bottom: 24px;
}

@media (min-width: 768px) {
    .story-detail-title {
        font-size: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .story-detail-title {
        font-size: 3rem;
    }
}

.story-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 40px;
}

.story-detail-tags span {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(38, 38, 38, 0.8);
    padding: 8px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.6rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #a3a3a3;
}

.story-detail-tags span i {
    color: #0F394A;
    font-size: 0.55rem;
}

.story-how-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.2);
    font-weight: 900;
    letter-spacing: 0.3em;
    margin-bottom: 16px;
}

.story-how-text {
    font-size: 1.1rem;
    color: #d4d4d4;
    line-height: 1.5;
    font-weight: 500;
    letter-spacing: -0.02em;
    margin-bottom: 40px;
}

/* Psychology card */
.story-psych-card {
    padding: 28px;
    border-radius: 2rem;
    background: rgba(38, 38, 38, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    margin-bottom: 48px;
}

.story-psych-glow {
    position: absolute;
    top: 0;
    right: 0;
    width: 128px;
    height: 128px;
    opacity: 0.1;
    filter: blur(60px);
    border-radius: 50%;
}

.story-psych-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    color: #0F394A;
    font-weight: 900;
    letter-spacing: 0.3em;
    margin-bottom: 24px;
    font-style: italic;
}

.story-psych-content {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.story-psych-icon {
    padding: 16px;
    border-radius: 12px;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    color: #fff;
    font-size: 1.1rem;
}

.story-psych-title {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: -0.05em;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 8px;
}

.story-psych-desc {
    font-size: 0.85rem;
    color: #737373;
    line-height: 1.5;
    font-weight: 500;
}

/* Story CTA buttons */
.story-cta-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (min-width: 640px) {
    .story-cta-group {
        flex-direction: row;
    }
}

.story-cta-primary {
    flex: 1;
    background: #fff;
    color: #000;
    font-family: var(--font-heading);
    font-weight: 900;
    padding: 18px 24px;
    border-radius: 16px;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: -0.05em;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.story-cta-primary:hover {
    background: #0F394A;
}

.story-cta-secondary {
    padding: 18px 32px;
    background: #262626;
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 900;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: -0.05em;
    font-size: 0.75rem;
    transition: all 0.3s;
}

.story-cta-secondary:hover {
    background: #404040;
}