* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: #f7f3ec;
    /* Fallback */
    min-height: 100vh;
    color: #121212;
    overflow-x: hidden;
}

/* Full Screen Hero Section */
.hero-section {
    width: 100vw;
    min-height: 100vh;
    /* Sparse Dot Grid with Soft Red/Blue Glow Background */
    background-color: #050810;
    background-image:
        radial-gradient(circle at 15% 50%, rgba(255, 75, 75, 0.07) 0%, transparent 40%),
        radial-gradient(circle at 85% 50%, rgba(75, 75, 255, 0.07) 0%, transparent 40%),
        radial-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 80px 80px;
    background-position: 0 0;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-top: 100px;
}



/* Hide glass wave overlay for this cleaner aesthetic */
.glass-wave-overlay {
    display: none;
}

@keyframes slowWave {
    0% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
        transform: rotate(0deg);
    }

    100% {
        border-radius: 50% 50% 30% 70% / 50% 60% 40% 40%;
        transform: rotate(2deg);
    }
}

/* Top Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    box-sizing: border-box;
    background: transparent;
    pointer-events: none;
    transition: all 0.3s ease;
}

.navbar .logo,
.navbar .dynamic-island-nav,
.navbar .btn-gradient {
    pointer-events: auto;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.dynamic-island-nav {
    display: flex;
    gap: 0.5rem;
    background: rgba(10, 10, 15, 0.5);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 8px 12px;
    box-shadow: inset 0 1px 4px rgba(255, 255, 255, 0.15), 0 15px 40px rgba(0, 0, 0, 0.5);
    position: relative;
    pointer-events: auto;
}

/* Perfect Symmetrical Side Panels */
.side-panel {
    position: fixed;
    top: 24px; /* Aligned with top nav 1.5rem padding */
    height: 72px; /* Fixed height so both panels are identically sized */
    background: rgba(10, 10, 15, 0.5);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    box-shadow: inset 0 1px 4px rgba(255, 255, 255, 0.15), 0 15px 40px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 24px; /* Flex handles vertical centering */
    pointer-events: auto;
}

.left-side-panel {
    left: 0;
    /* Perfect semi-pill shape on left edge */
    border-radius: 0 50px 50px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-left: none;
}

.right-side-panel {
    right: 0;
    /* Perfect semi-pill shape on right edge */
    border-radius: 50px 0 0 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-right: none;
}

/* Glassy Panel Button Styles */
.right-side-btn {
    text-decoration: none;
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.right-side-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.3), 0 4px 15px rgba(0, 0, 0, 0.2);
    border-top-color: rgba(255, 255, 255, 0.4);
    border-left-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.nav-highlight {
    position: absolute;
    top: 8px;
    /* Accounts for nav padding */
    left: 0;
    height: calc(100% - 16px);
    background: rgba(255, 255, 255, 0.15);
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 0;
    opacity: 0;
    pointer-events: none;
    box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.3), 0 4px 15px rgba(0, 0, 0, 0.2);
}

.dynamic-island-nav a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 10px 24px;
    border-radius: 40px;
    transition: color 0.3s;
    position: relative;
    z-index: 1;
}

.dynamic-island-nav a.active,
.dynamic-island-nav a:hover {
    color: #fff;
    opacity: 1;
}

.mobile-menu-btn,
.nav-mobile-header {
    display: none;
    background: transparent;
    border: none;
    outline: none;
}

.btn-gradient {
    background: linear-gradient(90deg, #ffc371 0%, #ff5f6d 100%);
    color: #fff;
    text-decoration: none;
    padding: 0.9rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 10px 20px rgba(255, 95, 109, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.btn-gradient:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(255, 95, 109, 0.4);
}

/* Main Area */
/* ======================================================== */
/* HERO SECTION: AI CORE SPLIT LAYOUT
/* ======================================================== */
.hero-split {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    min-height: 100vh;
    padding: 6rem 5% 4rem 5%;
    gap: 2rem;
}

/* --- Left Side: Typography & CTA --- */
.hero-left {
    flex: 1;
    max-width: 600px;
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: -12rem; /* Shifts the text up to reduce empty space at the top */
}

.hero-overline {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 3px;
    color: #a0a0a0;
    margin-bottom: 0.5rem;
}

.hero-heading {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1.5px;
    color: #fff;
}

.text-gradient-red-blue {
    background: linear-gradient(90deg, #ff4b4b 0%, #4b4bff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.1rem;
    color: #999;
    line-height: 1.6;
    max-width: 500px;
    margin-bottom: 1rem;
}

.hero-btn-group {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-primary-gradient {
    padding: 14px 28px;
    background: linear-gradient(90deg, #ff4b4b 0%, #4b4bff 100%);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(75, 75, 255, 0.4);
}

.btn-outline-glow {
    padding: 12px 28px;
    background: transparent;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-outline-glow:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Bottom Stats Strip */
.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat-icon {
    font-size: 1.5rem;
}

.stat-text h4 {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.stat-text p {
    color: #777;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Right Side: AI Core 3D Graphic --- */
.hero-right {
    flex: 1.2;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 100%;
    z-index: 10;
}

.hero-right::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Centered properly behind the chip */
    width: 110%;
    /* Reduced from 150% to make it smaller */
    height: 110%;
    /* Reduced from 150% to make it smaller */
    background-image: url('../assets/maind.jpg');
    background-size: cover; /* Cover ensures there are no empty borders inside the container */
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.9;
    /* Increased from 0.6 to make it much more visible */
    z-index: -1;
    pointer-events: none;
    -webkit-mask-image: radial-gradient(ellipse closest-side, rgba(0, 0, 0, 1) 20%, rgba(0, 0, 0, 0) 90%);
    mask-image: radial-gradient(ellipse closest-side, rgba(0, 0, 0, 1) 20%, rgba(0, 0, 0, 0) 90%);
    /* Same timing and easing as the core-float animation (4s) */
    animation: bg-float 4s ease-in-out infinite alternate;
}

@keyframes bg-float {
    0% {
        margin-top: 0px;
    }
    100% {
        /* Moving up by 15px to match the chip's translateZ change */
        margin-top: -15px;
    }
}

.ai-core-graphic {
    position: relative;
    width: 100%;
    height: 600px;
    perspective: 1500px;
    transform-style: preserve-3d;
}

/* CSS 3D AI Core */
.css-core-assembly {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 220px;
    height: 220px;
    /* Isometric perspective setup */
    transform: translate(-50%, -50%) rotateX(60deg) rotateZ(45deg);
    transform-style: preserve-3d;
    z-index: 5;
    animation: core-float 4s ease-in-out infinite alternate;
}

@keyframes core-float {
    0% {
        transform: translate(-50%, -50%) rotateX(60deg) rotateZ(45deg) translateZ(10px);
    }

    100% {
        transform: translate(-50%, -50%) rotateX(60deg) rotateZ(45deg) translateZ(25px);
    }
}

.core-shadow {
    position: absolute;
    top: 10%;
    left: 10%;
    width: 80%;
    height: 80%;
    background: rgba(255, 75, 75, 0.85);
    transform: translateZ(-20px);
    /* Base level */
    filter: blur(40px);
    border-radius: 20px;
    animation: pulse-underglow 2s ease-in-out infinite alternate;
}

@keyframes pulse-underglow {
    0% {
        opacity: 0.7;
        filter: blur(35px);
        transform: translateZ(-20px) scale(1);
    }

    100% {
        opacity: 1;
        filter: blur(60px);
        transform: translateZ(-20px) scale(1.3);
    }
}

/* Floor Traces */
.cpu-floor-traces {
    position: absolute;
    width: 1000px;
    height: 1000px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateZ(-5px);
    z-index: -2;
    opacity: 0.9;
    filter: drop-shadow(0 0 12px rgba(16, 185, 129, 0.9));
    /* Green glow */
}

.cpu-floor-traces path {
    stroke-dasharray: 20 30;
    animation: trace-energy 2s linear infinite;
}

@keyframes trace-energy {
    from {
        stroke-dashoffset: 50;
    }

    to {
        stroke-dashoffset: 0;
    }
}

/* Multi-Tiered CPU Design */
.cpu-base,
.cpu-die {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transform-style: preserve-3d;
}

.cpu-base {
    width: 260px;
    height: 260px;
}

.cpu-die {
    width: 140px;
    height: 140px;
}

/* 1. PCB Base Layer */
.base-face {
    position: absolute;
    background: #020617;
    /* Dark navy PCB */
    border: 1px solid #0f172a;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.9);
}

.base-top {
    width: 260px;
    height: 260px;
    transform: translateZ(10px);
    background-image:
        linear-gradient(rgba(0, 212, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.04) 1px, transparent 1px);
    background-size: 10px 10px;
    border-top: 1px solid #1e293b;
    border-left: 1px solid #1e293b;
}

.base-bottom {
    width: 260px;
    height: 260px;
    transform: translateZ(0px);
}

/* CPU Pin 1 Marker */
.cpu-marker {
    position: absolute;
    bottom: 25px;
    left: 25px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 15px solid #00d4ff; /* Changed from yellow to cyan to match background traces */
    transform: rotate(-45deg);
    filter: drop-shadow(0 0 5px rgba(0, 212, 255, 0.8));
}

/* Surface Mounted Capacitors (SMDs) */
.smd {
    position: absolute;
    width: 8px;
    height: 16px;
    background: linear-gradient(0deg, #9ca3af 20%, #3f3f46 50%, #9ca3af 80%);
    border: 1px solid #18181b;
    border-radius: 2px;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 1);
}

.smd-1 {
    top: 40px;
    left: 80px;
    transform: rotate(90deg);
}

.smd-2 {
    top: 40px;
    left: 140px;
    transform: rotate(90deg);
}

.smd-3 {
    top: 40px;
    left: 200px;
    transform: rotate(90deg);
}

.smd-4 {
    bottom: 40px;
    left: 100px;
    transform: rotate(90deg);
}

.smd-5 {
    bottom: 40px;
    left: 160px;
    transform: rotate(90deg);
}

.smd-6 {
    top: 100px;
    left: 40px;
}

.smd-7 {
    top: 160px;
    left: 40px;
}

.smd-8 {
    top: 130px;
    right: 40px;
}

/* Edge contacts (pins) */
.base-front {
    width: 260px;
    height: 10px;
    transform-origin: bottom;
    transform: rotateX(-90deg) translateY(10px);
    bottom: 0;
    background: repeating-linear-gradient(90deg, #ff4b4b 0px, #ff4b4b 3px, #020617 4px, #020617 6px);
}

.base-back {
    width: 260px;
    height: 10px;
    transform-origin: top;
    transform: rotateX(90deg) translateY(-10px);
    top: 0;
    background: repeating-linear-gradient(90deg, #ff4b4b 0px, #ff4b4b 3px, #020617 4px, #020617 6px);
}

.base-left {
    width: 10px;
    height: 260px;
    transform-origin: left;
    transform: rotateY(-90deg) translateX(-10px);
    left: 0;
    background: repeating-linear-gradient(0deg, #ff4b4b 0px, #ff4b4b 3px, #020617 4px, #020617 6px);
}

.base-right {
    width: 10px;
    height: 260px;
    transform-origin: right;
    transform: rotateY(90deg) translateX(10px);
    right: 0;
    background: repeating-linear-gradient(0deg, #ff4b4b 0px, #ff4b4b 3px, #020617 4px, #020617 6px);
}

/* 2. Raised Metallic Die Layer */
.die-face {
    position: absolute;
    background: linear-gradient(135deg, #1e293b, #020617);
    border: 1px solid #334155;
    box-shadow: inset 0 0 25px rgba(0, 0, 0, 1);
}

.die-top {
    width: 140px;
    height: 140px;
    transform: translateZ(25px);
    /* Raised (10px base + 15px die) */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-top: 1.5px solid #64748b;
    border-left: 1.5px solid #475569;
    border-right: 1.5px solid #000;
    border-bottom: 1.5px solid #000;
    overflow: hidden;
}

/* Metallic Sweeping Light Reflection */
.die-top::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: skewX(-20deg);
    animation: metallic-shine 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes metallic-shine {

    0%,
    40% {
        left: -100%;
    }

    60%,
    100% {
        left: 200%;
    }
}

.die-bottom {
    width: 140px;
    height: 140px;
    transform: translateZ(10px);
}

.die-front {
    width: 140px;
    height: 15px;
    transform-origin: bottom;
    transform: rotateX(-90deg) translateY(15px);
    bottom: 0;
    background: #020617;
}

.die-back {
    width: 140px;
    height: 15px;
    transform-origin: top;
    transform: rotateX(90deg) translateY(-15px);
    top: 0;
    background: #0f172a;
}

.die-left {
    width: 15px;
    height: 140px;
    transform-origin: left;
    transform: rotateY(-90deg) translateX(-15px);
    left: 0;
    background: #0f172a;
}

.die-right {
    width: 15px;
    height: 140px;
    transform-origin: right;
    transform: rotateY(90deg) translateX(15px);
    right: 0;
    background: #020617;
}

.core-logo {
    color: rgba(255, 255, 255, 0.4);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 4px;
    margin-bottom: 5px;
}

.core-logo-ai {
    color: #ff4b4b; /* Matches fiery center of background */
    font-size: 4.5rem;
    font-weight: 900;
    text-shadow: 0 0 15px #ff4b4b, 0 0 35px #ff0000, 0 0 50px #fff;
    line-height: 1;
}

/* =============== LASER HUD PANELS =============== */
.laser-panel {
    position: absolute;
    width: 250px;
    z-index: 20;
    animation: float-panel 6s ease-in-out infinite alternate;
}

@keyframes float-panel {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-10px);
    }
}

.laser-card {
    position: relative;
    width: 100%;
    border-radius: 12px;
    padding: 1.5px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    /* Glass effect moved here to the parent */
    background: rgba(10, 10, 15, 0.4);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    /* Top-right diagonal cut */
    -webkit-mask-image: linear-gradient(225deg, transparent 25px, black 26px);
    mask-image: linear-gradient(225deg, transparent 25px, black 26px);
}

.laser-border-mask {
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 1.5px; /* Creates the hollow edge */
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    overflow: hidden;
    z-index: 1;
}

.laser-border {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    /* Gradient surrounds the entire edge */
    background: conic-gradient(from 0deg, #ff4b4b 0%, #4b4bff 33%, #00d4ff 66%, #ff4b4b 100%);
    animation: spin-laser 4s linear infinite;
    z-index: 1;
}

@keyframes spin-laser {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.laser-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    /* Fully transparent so the glass parent shows through */
    background: transparent;
    border-radius: 10.5px;
    z-index: 2;
    padding: 18px 20px;
    color: #fff;
    /* Removed backdrop-filter to prevent the border gradient from blurring into the card */
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 4px rgba(255, 255, 255, 0.1), 0 15px 40px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
    /* Top-right diagonal cut matching parent */
    -webkit-mask-image: linear-gradient(225deg, transparent 23px, black 24px);
    mask-image: linear-gradient(225deg, transparent 23px, black 24px);
}

.lc-icon {
    font-size: 1.3rem;
    margin-right: 10px;
    display: inline-block;
    vertical-align: middle;
}

.laser-card-inner h5 {
    display: inline-block;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0;
    vertical-align: middle;
}

.laser-card-inner p {
    font-size: 0.85rem;
    color: #aaa;
    line-height: 1.5;
    margin-top: 10px;
    margin-bottom: 0;
}

/* Specific Positions */
.pos-tl { top: 5%; left: 0%; animation-delay: 0s; }

.pos-tr { top: -5%; right: 5%; animation-delay: 1s; }

.pos-bl { top: 75%; left: -5%; animation-delay: 2s; }

.pos-br { top: 60%; right: 0%; animation-delay: 3s; }

/* Reactor SVG Curves */
.reactor-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}

.reactor-track {
    fill: none;
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 2px;
}

.reactor-pulse {
    fill: none;
    stroke-width: 4px;
    stroke-linecap: round;
    /* Create the moving laser effect using dasharray */
    stroke-dasharray: 100 1500;
    stroke-dashoffset: 1500;
    animation: reactor-surge 3s cubic-bezier(0.25, 0.1, 0.25, 1) infinite;
}

@keyframes reactor-surge {
    0% {
        stroke-dashoffset: 1500;
    }

    100% {
        stroke-dashoffset: -100;
    }
}

/* Colors and Staggered Timings for each pulse */
.pulse-1 {
    stroke: #00d4ff;
    filter: drop-shadow(0 0 8px #00d4ff) drop-shadow(0 0 15px rgba(0, 212, 255, 0.6));
    animation-delay: 0s;
}

.pulse-2 {
    stroke: #ff4b4b;
    filter: drop-shadow(0 0 8px #ff4b4b) drop-shadow(0 0 15px rgba(255, 75, 75, 0.6));
    animation-delay: 0.7s;
}

.pulse-3 {
    stroke: #a855f7;
    filter: drop-shadow(0 0 8px #a855f7) drop-shadow(0 0 15px rgba(168, 85, 247, 0.6));
    animation-delay: 1.4s;
}

.pulse-4 {
    stroke: #4b4bff;
    filter: drop-shadow(0 0 8px #4b4bff) drop-shadow(0 0 15px rgba(75, 75, 255, 0.6));
    animation-delay: 2.1s;
}


/* Responsive adjustments */
@media (max-width: 1100px) {
    .hero-split {
        flex-direction: column;
        padding-top: 8rem;
    }

    .hero-left {
        max-width: 100%;
        text-align: center;
        align-items: center;
    }

    .hero-btn-group {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
    }

    .ai-core-graphic {
        height: 500px;
        transform: scale(0.8);
    }
}

/* =============== SECOND SECTION: ECOSYSTEM =============== */

.ecosystem-section {
    background-color: #fdfdfd;
    /* Brighter, whiter background */
    padding: 8rem 5%;
    display: flex;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.eco-container {
    display: flex;
    max-width: 1200px;
    width: 100%;
    align-items: center;
    gap: 5rem;
}

.eco-graphic {
    position: relative;
    flex: 1;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Orbits */
.orbit {
    position: absolute;
    border-radius: 50%;
    border: 1.5px dashed rgba(161, 140, 209, 0.8);
    /* Thicker and more visible */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.orbit-inner {
    width: 280px;
    height: 280px;
    animation: spin 40s linear infinite;
}

.orbit-outer {
    width: 480px;
    height: 480px;
    animation: spin 60s linear infinite reverse;
}

@keyframes spin {
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.eco-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: inset 2px 2px 5px rgba(255, 255, 255, 0.5), 5px 5px 15px rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
}

.eco-center .center-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 800;
    box-shadow: 0 10px 20px rgba(161, 140, 209, 0.3);
}

/* Nodes */
.eco-node {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 120px;
}

.orbit-inner .eco-node {
    animation: spin 40s linear infinite reverse;
}

.orbit-outer .eco-node {
    animation: spin 60s linear infinite;
}

.node-outer-1 {
    top: calc(50% - 240px);
    left: 50%;
    transform: translate(-50%, -50%);
}

.node-outer-2 {
    top: 50%;
    left: calc(50% + 240px);
    transform: translate(-50%, -50%);
}

.node-outer-3 {
    top: calc(50% + 170px);
    left: calc(50% + 170px);
    transform: translate(-50%, -50%);
}

.node-outer-4 {
    top: calc(50% + 170px);
    left: calc(50% - 170px);
    transform: translate(-50%, -50%);
}

.node-outer-5 {
    top: calc(50% - 170px);
    left: calc(50% - 170px);
    transform: translate(-50%, -50%);
}

.node-inner-1 {
    top: calc(50% - 99px);
    left: calc(50% - 99px);
    transform: translate(-50%, -50%);
}

.node-inner-2 {
    top: calc(50% + 99px);
    left: calc(50% + 99px);
    transform: translate(-50%, -50%);
}

.node-inner-3 {
    top: calc(50% + 99px);
    left: calc(50% - 99px);
    transform: translate(-50%, -50%);
}

.eco-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08), inset 2px 2px 5px rgba(255, 255, 255, 0.8);
    z-index: 10;
}

.bg-grad-1 { background: linear-gradient(135deg, #ff4b4b 0%, #ff9068 100%); }
.bg-grad-2 { background: linear-gradient(135deg, #4b4bff 0%, #8a2be2 100%); }
.bg-grad-3 { background: linear-gradient(135deg, #00d4ff 0%, #00f2fe 100%); }
.bg-grad-4 { background: linear-gradient(135deg, #f953c6 0%, #b91d73 100%); }

.eco-label {
    font-size: 0.75rem;
    color: #888;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.9);
    padding: 2px 6px;
    border-radius: 4px;
}

/* Content Side */
.eco-content {
    flex: 1;
    max-width: 500px;
}

.eco-top-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
}

.eco-content h2 {
    font-size: 2.8rem;
    font-weight: 800;
    color: #12122a;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.eco-content p {
    font-size: 1.05rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 3rem;
}

.eco-stats {
    display: flex;
    gap: 3rem;
    margin-bottom: 3rem;
}

.stat-item h4 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #12122a;
    margin-bottom: 0.25rem;
}

.stat-item p {
    font-size: 0.75rem;
    color: #888;
    font-weight: 700;
    letter-spacing: 1px;
}

@media (max-width: 1024px) {

    /* Hide the AI Chip and Laser Panels on mobile, keep only text section */
    .hero-right {
        display: none !important;
    }



    .hero-split {
        min-height: auto !important;
        padding-bottom: 20px !important;
    }
    .hero-section {
        min-height: auto !important;
    }

    /* AGGRESSIVE FIXES */
    .hero-section {
        background-image: none !important; /* completely removes the 4 dots background grid on mobile */
        padding-bottom: 0 !important;
    }
    
    .nf-meta {
        display: block !important;
        text-align: center;
        line-height: 1.6;
        font-size: 0.9rem !important;
    }
    
    .nf-meta span.dim {
        display: inline-block;
        margin: 0 4px;
    }


    .ecosystem-section {
        padding: 8rem 5% 4rem 5%;
    }

    .eco-container {
        flex-direction: column;
        gap: 3rem;
    }

    .eco-content {
        padding-left: 0;
        text-align: center;
    }

    .eco-stats {
        justify-content: center;
        gap: 1.5rem;
        flex-wrap: wrap;
    }

    .eco-stats .stat-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 5px;
    }

    .eco-graphic {
        width: 100%;
        transform: scale(0.8);
    }
}

/* =============== THIRD SECTION: VFX SHOWCASE =============== */

.vfx-section {
    position: relative;
    width: 100vw;
    height: 100vh;
    min-height: 800px;
    background-image: url('../bg1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 10%;
    overflow: hidden;
}

.vfx-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(to left, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.8) 40%, rgba(0, 0, 0, 0.4) 70%, transparent 100%),
        linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 40%);
    z-index: 1;
    pointer-events: none;
}



.vfx-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin-left: auto;
}

.nf-tags {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nf-tags span {
    color: #888;
}

.nf-title {
    font-size: 5.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #fff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    letter-spacing: -1px;
}

.nf-meta {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.nf-meta span {
    color: #888;
}

.nf-meta .dim {
    color: #aaa;
    font-weight: 400;
}

.nf-desc {
    font-size: 1.15rem;
    line-height: 1.6;
    color: #ddd;
    margin-bottom: 2.5rem;
    font-weight: 400;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    max-width: 600px;
}

.nf-actions {
    display: flex;
    gap: 1rem;
}

.nf-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #e50914;
    color: #fff;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.2s;
}

.nf-btn-primary:hover {
    background-color: #f40612;
}

.nf-btn-secondary {
    display: inline-flex;
    align-items: center;
    background-color: rgba(51, 51, 51, 0.6);
    color: #fff;
    padding: 0.8rem 2.5rem;
    font-size: 1rem;
    font-weight: 700;
    border: 1px solid #fff;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s;
}

.nf-btn-secondary:hover {
    background-color: #fff;
    color: #000;
}

/* =============== FOURTH SECTION: GALLERY =============== */
.gallery-section {
    padding: 100px 0;
    background-color: #f7f3ec;
    color: #000;
    overflow-x: hidden;
    text-align: center;
}

.gallery-header {
    max-width: 800px;
    margin: 0 auto 60px;
}

.gallery-subtitle {
    color: #f97316;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    font-weight: 700;
}

.gallery-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #111;
}

.gallery-desc {
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.gallery-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #111;
    text-decoration: none;
    font-weight: 700;
}

.gallery-btn .arrow-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background-color: #f97316;
    color: #fff;
    border-radius: 50%;
    font-size: 0.9rem;
}

/* 3D Gallery Container */
.gallery-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    /* Increased gap to fix congestion */
    perspective: 1200px;
    padding: 50px 0 150px;
    max-width: 100%;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    width: 170px;
    height: 255px;
    flex-shrink: 0;
    /* Prevent squishing with 8 items */
    border-radius: 18px;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: pointer;
    transform-style: preserve-3d;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 2px 5px rgba(255, 255, 255, 0.4);
}

/* Glass glare reflection overlay */
.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 17px;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.5) 0%,
            rgba(255, 255, 255, 0.1) 25%,
            rgba(255, 255, 255, 0) 45%,
            rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
    z-index: 10;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 17px;
    /* matches container inner radius */
    transition: all 0.5s;
}

/* Base curve transforms */
.item-1 {
    transform: rotateY(28deg) translateZ(60px) scale(1.15);
    z-index: 8;
}

.item-2 {
    transform: rotateY(20deg) translateZ(30px) scale(1.1);
    z-index: 7;
}

.item-3 {
    transform: rotateY(10deg) translateZ(10px) scale(1.05);
    z-index: 6;
}

.item-4 {
    transform: rotateY(3deg) translateZ(-10px) scale(1.0);
    z-index: 5;
}

.item-5 {
    transform: rotateY(-3deg) translateZ(-10px) scale(1.0);
    z-index: 5;
}

.item-6 {
    transform: rotateY(-10deg) translateZ(10px) scale(1.05);
    z-index: 6;
}

.item-7 {
    transform: rotateY(-20deg) translateZ(30px) scale(1.1);
    z-index: 7;
}

.item-8 {
    transform: rotateY(-28deg) translateZ(60px) scale(1.15);
    z-index: 8;
}

/* Hover effect: open in big panel */
.gallery-item:hover {
    transform: rotateY(0deg) translateZ(250px) scale(1.6) !important;
    z-index: 50 !important;
}

/* Shift edge items inward on hover so they don't get cut off by the screen */
.item-1:hover {
    transform: rotateY(0deg) translateZ(250px) translateX(150px) scale(1.6) !important;
}

.item-2:hover {
    transform: rotateY(0deg) translateZ(250px) translateX(70px) scale(1.6) !important;
}

.item-7:hover {
    transform: rotateY(0deg) translateZ(250px) translateX(-70px) scale(1.6) !important;
}

.item-8:hover {
    transform: rotateY(0deg) translateZ(250px) translateX(-150px) scale(1.6) !important;
}

/* Darken others on hover */
.gallery-container:hover .gallery-item:not(:hover) {
    opacity: 0.4;
    filter: blur(2px);
}

.gallery-meta {
    position: absolute;
    bottom: -60px;
    left: 0;
    right: 0;
    text-align: center;
    transition: opacity 0.3s;
}

.meta-num {
    display: block;
    font-size: 0.8rem;
    color: #888;
    font-weight: 700;
}

.meta-text {
    display: block;
    font-size: 0.9rem;
    color: #111;
    font-weight: 600;
}

/* =============== FIFTH SECTION: CASCADING ARCHITECTURE CARDS =============== */
.arch-stack-section {
    background-color: #0e0e0e;
    color: #fff;
    padding: 0;
    min-height: 50vh;
    display: flex;
    align-items: center;
    font-family: 'Outfit', sans-serif;
    overflow: hidden;
}

.arch-stack-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 50px 5%;
    gap: 50px;
}

/* Left Content */
.arch-stack-content {
    flex: 0 0 45%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.arch-logo-icon {
    margin-bottom: 40px;
}

.arch-stack-title {
    font-size: 3rem;
    line-height: 1.1;
    font-weight: 500;
    letter-spacing: -1px;
    margin-bottom: 30px;
}

.arch-stack-title .text-white {
    color: #fff;
}

.arch-stack-title .text-gold {
    color: #dcb274;
    /* golden color from reference */
}

.arch-stack-desc {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 50px;
    max-width: 450px;
}

.btn-outline-gold {
    display: inline-block;
    padding: 12px 35px;
    border: 1px solid rgba(220, 178, 116, 0.4);
    border-radius: 30px;
    color: #fff;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-outline-gold:hover {
    border-color: #dcb274;
    background: rgba(220, 178, 116, 0.1);
}

/* Right Stacked Cards */
.arch-stack-cards-wrapper {
    flex: 0 0 50%;
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stack-card {
    position: absolute;
    width: 100%;
    max-width: 600px;
    height: 380px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    background: #222;
}

.card-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
}

.card-tag {
    position: absolute;
    top: 30px;
    right: 30px;
    padding: 8px 24px;
    border: 1px solid rgba(11, 11, 11, 0.2);
    border-radius: 30px;
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: #111;
    z-index: 2;
}

/* Stacking Logic */
.card-1 {
    transform: scale(0.85) translate(40px, -60px);
    z-index: 1;
    opacity: 0.8;
}

.card-2 {
    transform: scale(0.92) translate(20px, -30px);
    z-index: 2;
    opacity: 0.9;
}

.card-3 {
    transform: scale(1) translate(0, 0);
    z-index: 3;
    opacity: 1;
}

/* Hover effect */
.arch-stack-cards-wrapper:hover .card-1 {
    transform: scale(0.85) translate(80px, -90px);
}

.arch-stack-cards-wrapper:hover .card-2 {
    transform: scale(0.92) translate(40px, -45px);
}

/* Expand Button */
.expand-btn {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 90px;
    height: 90px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: none;
    border-top-left-radius: 40px;
    border-bottom-right-radius: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}

.expand-btn:hover {
    background: rgba(255, 255, 255, 0.9);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-section {
        min-height: auto !important;
    }

    .arch-stack-container {
        flex-direction: column;
        text-align: center;
    }

    .arch-stack-content {
        align-items: center;
    }

    .arch-stack-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .arch-stack-cards-wrapper {
        display: none !important;
    }

    .arch-stack-section {
        min-height: auto;
    }
}

/* =============== SIXTH SECTION: RENX ARC BANNER =============== */
.renx-banner-section {
    padding: 100px 5%;
    background-color: #f7f7f7;
}

.renx-banner {
    background-color: #2b455b;
    border-radius: 40px;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    overflow: hidden;
    min-height: 400px;
    position: relative;
    box-shadow: 0 20px 50px rgba(43, 69, 91, 0.2);
}

.renx-banner-content {
    padding: 80px 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    position: relative;
    z-index: 2;
}

.renx-eyebrow {
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.renx-title {
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 40px;
}

.renx-title em {
    font-style: italic;
    font-family: 'Playfair Display', serif;
}

.renx-banner-btn {
    display: inline-block;
    padding: 14px 32px;
    border: 1px solid #fff;
    color: #fff;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    width: fit-content;
    transition: all 0.3s ease;
}

.renx-banner-btn:hover {
    background-color: #fff;
    color: #2b455b;
}

.renx-link {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 5px;
    width: fit-content;
    transition: all 0.3s;
}

.renx-link:hover {
    border-bottom-color: #fff;
    gap: 15px;
}

.fh-logo {
    font-size: 1.2rem;
    line-height: 1;
    text-transform: lowercase;
}

.fh-logo strong {
    display: block;
    font-weight: 800;
}

.fh-links {
    display: flex;
    gap: 30px;
}

.fh-links a {
    text-decoration: none;
    color: #888;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.fh-links a:hover {
    color: #111;
}

.fh-content {
    max-width: 600px;
    margin-bottom: 80px;
}

.fh-title {
    font-size: 3.5rem;
    font-weight: 500;
    line-height: 1.1;
    margin-bottom: 25px;
    letter-spacing: -1px;
}

.fh-desc {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 500px;
}

.fh-btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background-color: #1a1a1a;
    color: #fff;
    padding: 20px 40px;
    border-radius: 40px;
    text-decoration: none;
    font-size: 1rem;
    transition: transform 0.2s;
}

.fh-btn:hover {
    transform: scale(1.05);
}

.fh-stats {
    display: flex;
    gap: 20px;
}

.fh-stat-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 25px;
    padding: 25px;
    flex: 1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.fh-stat-card img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-bottom: 20px;
    object-fit: cover;
}

.fh-stat-card h3 {
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 5px;
    letter-spacing: -1px;
}

.fh-stat-card p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
}

/* Right side floaters */
.fh-floating-nav {
    display: flex;
    gap: 15px;
}

.fh-pill {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #111;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* =============== SIXTH SECTION: RENX ARC BANNER =============== */
.renx-banner-section {
    padding: 40px 5%;
    background-color: #f7f7f7;
}

.renx-banner {
    max-width: 1550px;
    margin: 0 auto;
    background: #274665;
    border-radius: 40px;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    overflow: hidden;
    min-height: 350px;
    box-shadow: 0 25px 55px rgba(39, 70, 101, 0.4);
}

.renx-banner-content {
    padding: 80px 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.renx-eyebrow {
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.renx-title {
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 40px;
}

.renx-title em {
    font-style: italic;
    font-family: 'Playfair Display', serif;
}

.renx-link {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 5px;
    width: fit-content;
    transition: all 0.3s;
}

.renx-link:hover {
    border-bottom-color: #fff;
    gap: 15px;
}

.renx-banner-img-container {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 60%;
    z-index: 1;
    /* Blend the image cleanly into the blue background */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 40%);
    mask-image: linear-gradient(to right, transparent 0%, black 40%);
}

.renx-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left center;
}

/* =============== SEVENTH SECTION: SOFTWARE =============== */
.software-section {
    padding: 100px 5%;
    background: linear-gradient(to right, #fdfbfb, #ebedee);
    font-family: 'Outfit', sans-serif;
    overflow: hidden;
}

.software-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 50px;
}

.soft-left {
    flex: 1;
}

.soft-title {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    color: #111;
    margin-bottom: 20px;
}

.soft-brand {
    color: #4361ee;
}

.soft-subtitle {
    font-size: 1.2rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 40px;
}

.soft-btn {
    display: inline-block;
    background-color: #ff7e67;
    color: #fff;
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 10px 20px rgba(255, 126, 103, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    margin-bottom: 60px;
}

.soft-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(255, 126, 103, 0.4);
}

.soft-stat {
    display: flex;
    align-items: center;
    gap: 15px;
}

.soft-stat-icon {
    width: 50px;
    height: 50px;
    background: transparent;
    border: 2px solid #ccc;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    color: #111;
}

.soft-stat-info {
    display: flex;
    flex-direction: column;
}

.soft-stat-label {
    font-size: 0.85rem;
    color: #888;
}

.soft-stat-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #111;
}

.soft-right {
    flex: 1.2;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.soft-grid-container {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.soft-grid {
    display: flex;
    gap: 20px;
    transform: perspective(1000px) rotateY(-10deg) rotateZ(5deg);
    transform-style: preserve-3d;
}

.soft-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.soft-col-2 {
    transform: translateY(-40px);
    /* offset middle column */
}

.sg-img {
    width: 160px;
    height: 200px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.sg-img:hover {
    transform: scale(1.05);
}

.soft-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    backdrop-filter: blur(5px);
    z-index: 10;
    transition: transform 0.2s;
}

.soft-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.play-icon {
    font-size: 2.5rem;
    color: #111;
    margin-left: 8px;
    /* Optical centering for play triangle */
}

.soft-features {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    width: 100%;
    justify-content: center;
}

.soft-feature-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.03);
    min-width: 240px;
}

.sf-icon {
    width: 40px;
    height: 40px;
    background: #fdfbfb;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.sf-details h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 2px;
}

.sf-details p {
    font-size: 0.8rem;
    color: #888;
}

/* =============== EIGHTH SECTION: PARTNERS =============== */
.partners-section {
    padding: 100px 5%;
    background-color: #fdfbfb;
    font-family: 'Outfit', sans-serif;
    text-align: center;
}

.partners-header h2 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 10px;
}

.partners-header p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 60px;
}

.partners-container {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    max-width: 1400px;
    margin: 0 auto;
}

.partner-card {
    flex: 1;
    min-width: 200px;
    max-width: 240px;
    border-radius: 35px;
    padding: 40px 25px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partner-card:hover {
    transform: translateY(-10px);
}

.partner-logo {
    width: 85%;
    max-height: 120px;
    object-fit: contain;
    opacity: 0.95;
    transition: transform 0.3s ease;
}

.partner-card:hover .partner-logo {
    transform: scale(1.05);
}

/* Card Colors & Glowing Shadows */
.card-cyan {
    background: linear-gradient(145deg, #38c8e6, #1cb5d6);
    box-shadow: 0 25px 45px rgba(28, 181, 214, 0.5);
}

.card-white {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.05);
}

.card-white .partner-logo {
    transform: scale(1.25);
}

.card-white:hover .partner-logo {
    transform: scale(1.35);
}

.card-dark {
    background: linear-gradient(145deg, #2c2c2e, #1a1a1c);
    box-shadow: 0 25px 45px rgba(26, 26, 28, 0.5);
}

.card-pink {
    background: linear-gradient(145deg, #ff758c, #ff5e78);
    box-shadow: 0 25px 45px rgba(255, 94, 120, 0.5);
}

.card-blue {
    background: linear-gradient(145deg, #60a5fa, #2563eb);
    box-shadow: 0 25px 45px rgba(59, 130, 246, 0.5);
}

.card-orange {
    background: linear-gradient(145deg, #f6a02b, #e58912);
    box-shadow: 0 25px 45px rgba(229, 137, 18, 0.5);
}

/* =============== NINTH SECTION: TESTIMONIALS =============== */
.testimonial-section {
    padding: 100px 5%;
    background-color: #111;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    text-align: center;
}

.testi-header h2 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #fff, #888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.testi-header p {
    font-size: 1.1rem;
    color: #aaa;
    margin-bottom: 60px;
}

.testi-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.testi-card {
    flex: 1;
    min-width: 300px;
    background: #1a1a1c;
    border: 1px solid #333;
    border-radius: 25px;
    padding: 40px;
    text-align: left;
    position: relative;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.testi-card:hover {
    transform: translateY(-10px);
    border-color: #ff7e67;
}

.testi-quote {
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    color: #ff7e67;
    line-height: 0;
    margin-top: 20px;
    margin-bottom: 30px;
    opacity: 0.5;
}

.testi-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #ccc;
    margin-bottom: 30px;
    min-height: 100px;
}

.testi-author {
    display: flex;
    align-items: center;
    gap: 15px;
    border-top: 1px solid #333;
    padding-top: 20px;
}

.testi-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.testi-info h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 5px 0;
}

.testi-info span {
    font-size: 0.85rem;
    color: #888;
}

/* =============== TENTH SECTION: CTA & FEATURES =============== */
.bottom-features-section {
    background-color: #f4f1eb;
    padding: 100px 5%;
    font-family: 'Outfit', sans-serif;
    color: #111;
}

.bf-cta {
    text-align: center;
    margin-bottom: 80px;
}

.bf-cta p {
    font-size: 2.5rem;
    font-weight: 500;
    max-width: 800px;
    margin: 0 auto 30px;
    line-height: 1.2;
}

.bf-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    color: #111;
    text-decoration: none;
    border-bottom: 1px solid #111;
    padding-bottom: 5px;
    font-weight: 500;
    transition: opacity 0.2s;
}

.bf-btn:hover {
    opacity: 0.7;
}

.kbd {
    background-color: #e5e2db;
    border: 1px solid #d0ccc3;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 0.8rem;
    font-family: monospace;
    font-weight: 600;
}

.bf-cards {
    display: flex;
    gap: 30px;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.bf-card {
    flex: 1;
    background: #fff;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    transition: transform 0.3s ease;
}

.bf-card:hover {
    transform: translateY(-5px);
}

.bf-card h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

.bf-card p {
    font-size: 1rem;
    color: #666;
    line-height: 1.5;
}

.highlight-red {
    color: #f25042;
}

.highlight-blue {
    color: #4361ee;
}

.highlight-yellow {
    color: #f9a826;
}

/* =============== TESTIMONIALS SECTION =============== */
.testimonial-section {
    padding: 120px 5%;
    background-color: #030508;
    position: relative;
    overflow: hidden;
}

.testi-header {
    text-align: center;
    margin-bottom: 70px;
}

.testi-header h2 {
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 15px;
    background: linear-gradient(90deg, #fff 0%, #aaa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.testi-header p {
    font-size: 1.1rem;
    color: #888;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.testi-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    max-width: 1300px;
    margin: 0 auto;
}

.testi-card {
    background: rgba(15, 20, 30, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: 2px solid #4b4bff;
    /* Tech border accent */
    border-radius: 16px;
    padding: 40px;
    position: relative;
    backdrop-filter: blur(10px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.testi-card:nth-child(2) {
    border-top-color: #ff4b4b;
}

.testi-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
    background: rgba(20, 25, 40, 0.6);
}

.testi-quote {
    font-size: 5rem;
    font-family: serif;
    color: rgba(255, 255, 255, 0.05);
    position: absolute;
    top: 10px;
    left: 20px;
    line-height: 1;
}

.testi-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #ccc;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.testi-author {
    display: flex;
    align-items: center;
    gap: 20px;
}

.testi-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.testi-info h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.testi-info span {
    font-size: 0.85rem;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =============== FOOTER =============== */
.site-footer {
    background-color: #f4f1eb;
    padding: 80px 5% 40px;
    font-family: 'Outfit', sans-serif;
    color: #111;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto 60px;
    gap: 60px;
}

.footer-brand {
    flex: 1;
    max-width: 350px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.f-logo-icon {
    color: #f9a826;
    font-size: 1.5rem;
}

.footer-brand p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 25px;
}

.footer-socials {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.footer-socials a {
    color: #111;
    text-decoration: none;
    font-weight: 600;
}

.footer-socials a:hover {
    text-decoration: underline;
}

.sep {
    color: #ccc;
}

.footer-links {
    flex: 2;
    display: flex;
    justify-content: space-around;
    gap: 30px;
}

.link-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.link-column h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: #111;
}

.link-column a {
    color: #666;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.link-column a:hover {
    color: #111;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
    font-size: 0.9rem;
    color: #888;
}

/* Responsive adjustments for bottom sections */
@media (max-width: 1024px) {
    .hero-section {
        min-height: auto !important;
    }

    .bf-cards {
        flex-direction: column;
    }

    .footer-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 40px;
    }

    .footer-brand .footer-socials,
    .footer-brand .footer-logo {
        justify-content: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 40px;
    }
}

/* =============== CONTACT PAGE =============== */
.contact-hero {
    min-height: 100vh;
    padding-bottom: 50px;
    display: flex;
    flex-direction: column;
}

.contact-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
    padding: 80px 5% 50px;
    gap: 80px;
    position: relative;
    z-index: 2;
    flex: 1;
}

.contact-left {
    flex: 1;
    max-width: 500px;
}

.contact-desc {
    font-size: 1.1rem;
    color: #4a4a5e;
    line-height: 1.6;
    margin-bottom: 40px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: rgba(255, 255, 255, 0.4);
    padding: 20px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
}

.contact-icon {
    font-size: 1.8rem;
    background: linear-gradient(135deg, rgba(255, 195, 113, 0.2), rgba(255, 95, 109, 0.2));
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
}

.contact-text h4 {
    font-size: 1.1rem;
    color: #1a1a2e;
    margin: 0 0 5px 0;
}

.contact-text p {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.contact-right {
    flex: 1;
    max-width: 600px;
    width: 100%;
}

.glass-form-wrapper {
    position: relative;
}

.glass-form-wrapper::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #a18cd1, #fbc2eb);
    border-radius: 50%;
    filter: blur(30px);
    z-index: 0;
    opacity: 0.6;
}

.glass-form-wrapper::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #ff9a9e, #fecfef);
    border-radius: 50%;
    filter: blur(40px);
    z-index: 0;
    opacity: 0.6;
}

.glass-form {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 35px;
    padding: 50px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
}

.form-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #1a1a2e;
    font-weight: 700;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    margin-bottom: 25px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #4a4a5e;
    margin-bottom: 10px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    border-radius: 18px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.6);
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    color: #1a1a2e;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(255, 95, 109, 0.5);
    background: #fff;
    box-shadow: 0 10px 25px rgba(255, 95, 109, 0.1);
}

.submit-btn {
    width: 100%;
    border: none;
    cursor: pointer;
    font-size: 1.15rem;
    font-weight: 600;
    padding: 18px;
    border-radius: 18px;
    margin-top: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 95, 109, 0.3);
}

@media (max-width: 1024px) {
    .hero-section {
        min-height: auto !important;
    }

    .contact-container {
        flex-direction: column;
        padding-top: 50px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

@media (max-width: 1600px) {
    .gallery-container {
        gap: 15px;
    }

    .gallery-item {
        width: 140px;
        height: 210px;
    }
}

@media (max-width: 1200px) {
    .gallery-container {
        gap: 10px;
    }

    .gallery-item {
        width: 110px;
        height: 165px;
    }
}

@media (max-width: 1024px) {
    .hero-section {
        min-height: auto !important;
    }

    .gallery-container {
        flex-direction: column;
        gap: 80px;
        padding-bottom: 80px;
        perspective: none !important;
    }

    .gallery-item {
        width: 100%;
        max-width: 260px;
        height: auto;
        aspect-ratio: 2/3;
        margin: 0 auto;
        transform: none !important;
    }

    .gallery-item:hover {
        transform: none !important;
    }

    .gallery-container:hover .gallery-item:not(:hover) {
        opacity: 1 !important;
        filter: none !important;
    }
}

/* =============== PRIVACY POLICY / LEGAL PAGES =============== */

.legal-page {
    background-color: #f4f1eb;
    color: #111;
    background-image: none;
}

.legal-section {
    padding-top: 150px;
    padding-bottom: 100px;
    min-height: 100vh;
}

.legal-header {
    text-align: center;
    margin-bottom: 60px;
}

.legal-header .hero-overline {
    color: #f97316; /* Orange color matching screenshot */
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.legal-header .hero-heading {
    color: #111;
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.legal-last-updated {
    color: #666;
    margin-top: 10px;
    font-size: 1.1rem;
}

.legal-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 40px;
    /* Removed background box to match the clean text-on-background look */
}

.legal-panel {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px 50px;
    margin-bottom: 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.02);
}

.legal-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.08), transparent);
    border: none;
    margin: 50px 0;
}

.legal-content h2 {
    font-size: 2rem;
    color: #111;
    margin-top: 10px;
    margin-bottom: 20px;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
}

.legal-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: #f97316;
    border-radius: 2px;
}

.legal-content h3 {
    font-size: 1.4rem;
    color: #222;
    margin-top: 40px;
    margin-bottom: 15px;
    font-weight: 600;
}

.legal-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #444;
}

.legal-content ul {
    margin-bottom: 25px;
    padding-left: 20px;
}

.legal-content li {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 12px;
    color: #444;
}

.legal-content li strong {
    color: #111;
    font-weight: 700;
}

.legal-content em {
    color: #666;
    font-style: italic;
}

@media (max-width: 768px) {

    /* Fix VFX Section text cutting off on left edge */
    .vfx-section {
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 60px 5% !important;
        justify-content: flex-start !important;
    }
    .vfx-content {
        margin: 0 !important;
        max-width: 100% !important;
    }


    /* Adjust padding of ecosystem section on mobile */
    .ecosystem-section {
        padding-top: 2rem !important; /* Extremely tight top padding */
        padding-bottom: 8rem !important; /* Increase bottom padding so the graphic doesn't get cut off */
    }


    /* Reduce top spacing for the hero section on mobile */
    .hero-section {
        padding-top: 80px !important;
    }
    .hero-split {
        padding-top: 10px !important;
    }
    .hero-left {
        margin-top: -1rem !important;
    }


    /* Hide the AI Chip and Laser Panels on mobile, keep only text section */
    .hero-right {
        display: none !important;
    }



    .eco-container {
        gap: 5rem !important; /* Adds space between graphic and text */
    }

    .legal-container {
        padding: 40px 30px;
        margin: 0 20px;
    }
}

/* =========================================================================
   RESPONSIVE OVERRIDES (TABLET & MOBILE)
   ========================================================================= */

/* Tablets (1024px and below) */
@media (max-width: 1024px) {
    .hero-section {
        min-height: auto !important;
    }

    /* Flex Splits */
    .hero-split, .arch-stack-container, .movie-section, .software-container, .about-section > div[style*="display: flex"], .contact-split {
        flex-direction: column !important;
        align-items: center;
        padding: 60px 5%;
    }
    .eco-container {
        flex-direction: column-reverse !important;
        align-items: center;
        padding: 10px 5% 0 5%; /* Removed massive 60px top padding */
    }
    
    .hero-left, .hero-right, .eco-content, .eco-graphic, .arch-stack-left, .arch-stack-right, .movie-content, .soft-left, .soft-right, .contact-left, .contact-right {
        width: 100% !important;
        margin: 0 !important;
        padding: 20px 0 !important;
        text-align: center;
    }

    .hero-btn-group, .arch-stack-points {
        justify-content: center;
    }

    /* Grids */
    .grid-3, .grid-4, .team-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Typography */
    .hero-heading { font-size: 3.5rem; }
    .section-heading { font-size: 3rem; }
}

/* Mobile (768px and below) */
@media (max-width: 768px) {
    /* Side Panels */
    .right-side-panel { display: none !important; }
    
    .left-side-panel {
        display: flex !important;
        transform: scale(0.85);
        transform-origin: left top;
        top: 15px;
    }

    /* Navigation */
    .navbar {
        position: fixed;
        right: 0 !important;
        top: 15px !important;
        width: auto !important;
        padding: 0 !important;
        justify-content: flex-end !important;
    }

    .mobile-menu-btn {
        position: absolute;
        top: 36px;
        right: 24px;
        transform: translateY(-50%);
        display: flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        background: transparent;
        border: none;
        outline: none;
        cursor: pointer;
        padding: 0;
        z-index: 10;
        transition: top 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .dynamic-island-nav {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        overflow: hidden;
        white-space: normal;
        padding: 0;
        min-width: 80px;
        border-radius: 50px 0 0 50px !important;
        height: 72px;
        max-height: 72px;
        transform: scale(0.85);
        transform-origin: right top;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        -webkit-overflow-scrolling: auto;
        background: rgba(10, 10, 15, 0.5);
        backdrop-filter: blur(25px);
        box-shadow: inset 0 1px 4px rgba(255, 255, 255, 0.15), 0 15px 40px rgba(0, 0, 0, 0.5);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-right: none;
        margin: 0;
    }
    
    .dynamic-island-nav.expanded {
        max-height: 400px;
        height: auto;
        width: 250px;
        padding: 72px 20px 20px 20px;
        border-radius: 20px 0 0 20px !important;
        align-items: stretch;
    }

    .nav-highlight { display: none !important; }
    
    .dynamic-island-nav a { 
        display: none;
        width: 100%;
        text-align: center;
        padding: 0;
        font-size: 1.1rem;
        opacity: 0;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        visibility: hidden;
        height: 0;
        margin: 0;
    }

    .dynamic-island-nav.expanded a {
        display: block;
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
        height: auto;
        padding: 12px 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* Grids */
    .grid-3, .grid-4, .team-grid {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }

    /* Typography */
    .hero-heading { font-size: 2.5rem; line-height: 1.2; }
    .section-heading { font-size: 2.2rem; }
    
    /* Specific Components */
    .renx-banner {
        flex-direction: column-reverse !important;
    }
    
    .renx-banner-content {
        width: 100% !important;
        padding: 40px 20px !important;
        text-align: center;
        align-items: center;
    }
    
    .renx-banner-img-container {
        position: relative !important;
        width: 100% !important;
        height: 250px !important;
        -webkit-mask-image: none !important;
        mask-image: none !important;
    }

    .soft-grid-container {
        margin-top: -60px;
        margin-bottom: -60px;
    }

    .soft-grid {
        transform: scale(0.65) perspective(1000px) rotateY(0deg) rotateZ(0deg) !important;
        margin-left: 0;
    }
    
    .soft-stat {
        justify-content: center;
    }

    .eco-graphic {
        transform: scale(0.65);
        height: 500px !important;
        margin-top: 20px !important; /* Fixed collision with text */
        margin-bottom: 60px !important; /* Restore bottom margin */
    }

    .arch-stack-content {
        margin-bottom: 2rem !important;
    }

    .arch-stack-cards-wrapper {
        transform: scale(0.6) !important;
        height: 280px !important;
        margin-top: 0 !important;
    }

    .stack-card {
        height: 380px !important; /* Restoring desktop aspect ratio */
    }

    .ai-core-graphic {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        height: auto !important;
        transform: scale(0.8);
        gap: 40px;
    }


    
    .laser-panel {
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 250px !important;
        margin: 0 !important;
        z-index: 30;
    }

    .pos-tl { top: 0% !important; left: 50% !important; }
    .pos-tr { top: 22% !important; left: 50% !important; right: auto !important; }
    .pos-bl { top: 65% !important; bottom: auto !important; left: 50% !important; }
    .pos-br { top: 87% !important; bottom: auto !important; left: 50% !important; right: auto !important; }

}
@media (max-width: 1024px) {
    .hero-section {
        min-height: auto !important;
    }

    .hide-mobile { display: none !important; }
}


/* --- LAPTOP FIX: Prevent ALL panels colliding with chip on 13"-15" screens --- */
@media (min-width: 1025px) and (max-width: 1440px) {
    .hero-left {
        max-width: 480px !important; /* Make text slightly narrower to give the chip room */
    }
    .ai-core-graphic {
        transform: scale(0.82); /* Scale down the graphic slightly more so everything fits perfectly */
    }
    /* Push ALL panels outwards to prevent any clipping */
    .pos-tl { left: -12% !important; }
    .pos-bl { left: -16% !important; }
    .pos-tr { right: -8% !important; }
    .pos-br { right: -12% !important; }
}