:root {
    /* VYNIX Futuristic Luxury Color System */
    --bg-black: #030303;
    --bg-charcoal: #050816;
    --text-white: #f8f9fa;
    --text-silver: #9aa0a6;
    --accent-cyan: #00D9FF; /* Soft premium cyan */
    --metallic-silver: #c2c9d6;
    --blue-gray: #0f172a;
    
    /* Cinematic Lighting & Glows */
    --glow-cyan-soft: 0 10px 40px rgba(0, 217, 255, 0.15);
    --glow-cyan-hover: 0 0 30px rgba(0, 217, 255, 0.4);
    --glow-ambient: 0 0 60px rgba(0, 217, 255, 0.12);
    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(0, 217, 255, 0.08); /* Subtle cyan tint to glass */
    
    /* Typography */
    --font-heading: 'Clash Display', sans-serif;
    --font-body: 'Satoshi', sans-serif;
    
    /* Transitions */
    --ease-lux: cubic-bezier(0.16, 1, 0.3, 1);
    --trans-slow: all 1.2s var(--ease-lux);
    --trans-fast: all 0.4s var(--ease-lux);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-black);
    color: var(--text-white);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
    overflow: clip;
    -webkit-font-smoothing: antialiased;
}

body.loading {
    overflow: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 400;
}

a, button, input, textarea, select { 
    text-decoration: none; 
    color: inherit; 
}
ul { list-style: none; }


/* AMBIENT BACKGROUND SYSTEM (Soft Cinematic Cyan Depth) */
.ambient-canvas {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
    background: radial-gradient(circle at 50% 0%, var(--bg-charcoal) 0%, var(--bg-black) 100%);
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.3; /* Brought back atmospheric presence */
    animation: drift 25s infinite alternate ease-in-out;
}

.orb-1 { width: 50vw; height: 50vw; background: var(--blue-gray); top: -10%; left: -10%; }
.orb-2 { width: 60vw; height: 60vw; background: rgba(0, 217, 255, 0.15); bottom: -30%; right: -20%; animation-delay: -5s; }
.orb-3 { width: 40vw; height: 40vw; background: rgba(0, 217, 255, 0.08); top: 40%; left: 30%; animation-duration: 30s; }

.noise-layer {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.75" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
    opacity: 0.08;
    mix-blend-mode: overlay;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(3%, 5%) scale(1.05); }
}

/* Loader */
.loader-wrapper {
    position: fixed; inset: 0; z-index: 9999;
    background: var(--bg-black);
    display: flex; flex-direction: column; justify-content: center; align-items: center;
}
.loader-text {
    font-size: 2.5rem; letter-spacing: 0.6em; margin-bottom: 2rem; 
    color: var(--accent-cyan);
    font-weight: 300;
    text-shadow: var(--glow-cyan-soft);
}
.loader-progress {
    width: 0%; height: 2px; background: var(--accent-cyan);
    opacity: 0.8; box-shadow: var(--glow-cyan-hover);
}

/* =========================================================================
   AERUK-INSPIRED VERTICAL SOCIAL ICONS
   ========================================================================= */
.social-bar {
    position: fixed; 
    left: 2.5vw; 
    top: 55%; 
    transform: translateY(-50%);
    display: flex; 
    flex-direction: column; 
    gap: 1.5rem;
    z-index: 100;
    pointer-events: none; /* Let container be invisible to pointer */
}

.social-icon {
    pointer-events: auto; /* Re-enable pointer for buttons */
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(10, 14, 20, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--metallic-silver);
    transition: transform 0.5s var(--ease-lux), background 0.5s var(--ease-lux), box-shadow 0.5s var(--ease-lux), color 0.5s var(--ease-lux), border-color 0.5s var(--ease-lux);
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.social-icon:hover {
    transform: scale(1.1);
    background: rgba(0, 217, 255, 0.05);
    border-color: rgba(0, 217, 255, 0.4);
    color: var(--accent-cyan);
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.25);
}

.social-icon svg {
    transition: transform 0.5s var(--ease-lux), filter 0.5s var(--ease-lux);
}

.social-icon:hover svg {
    transform: scale(1.1);
    filter: drop-shadow(0 0 5px rgba(0, 217, 255, 0.5));
}

/* =========================================================================
   AERUK-INSPIRED MINIMALIST NAVBAR (SCREENSHOT MATCH)
   ========================================================================= */
.navbar {
    position: fixed; top: 0; left: 80px; right: 0;
    padding: 2.5rem 4vw; z-index: 90;
    display: flex; justify-content: space-between; align-items: center;
    background: transparent;
    transition: background 0.8s var(--ease-lux), padding 0.8s var(--ease-lux), backdrop-filter 0.8s var(--ease-lux);
}

/* Subtle cyan ambient glow behind the navbar */
.navbar::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 60vw;
    height: 150px;
    background: radial-gradient(ellipse at center, rgba(0, 217, 255, 0.12) 0%, transparent 70%);
    filter: blur(20px);
    pointer-events: none;
    z-index: -1;
}

/* Scroll State: subtle blur background behind the whole header if needed */
.navbar.scrolled {
    padding: 1.5rem 4vw;
    background: rgba(3, 4, 6, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

/* LEFT SIDE: Logo & Icon */
.nav-brand { 
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading); 
    font-size: 1.4rem; 
    letter-spacing: 2px;
    color: var(--text-white); 
    font-weight: 500;
    cursor: default;
}
.nav-brand-logo {
    height: 32px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(34, 211, 238, 0.2));
}

/* CENTER NAVIGATION: The Pill Container */
.nav-center { 
    display: flex; 
    align-items: center;
    gap: 3.5rem; 
    background: rgba(10, 14, 20, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    padding: 0.85rem 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.nav-item { 
    font-family: var(--font-body);
    font-size: 0.95rem; 
    font-weight: 500; 
    letter-spacing: 0.5px; 
    position: relative; 
    color: var(--text-white); 
    transition: color 0.4s var(--ease-lux), opacity 0.4s var(--ease-lux); 
    cursor: pointer;
    opacity: 0.8;
}
.nav-item:hover { 
    opacity: 1;
    color: var(--text-white); 
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

/* RIGHT SIDE: "Start a project" Cyan Button */
.nav-action {
    display: flex;
    align-items: center;
}
.btn-start {
    font-family: var(--font-body); 
    font-size: 0.95rem; 
    letter-spacing: 0.5px; 
    padding: 0.9rem 2rem; 
    border-radius: 100px;
    background: linear-gradient(135deg, #18b2c9 0%, #22d3ee 100%); 
    color: #ffffff;
    border: none;
    position: relative;
    overflow: hidden;
    transition: transform 0.5s var(--ease-lux), box-shadow 0.5s var(--ease-lux), filter 0.5s var(--ease-lux);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(34, 211, 238, 0.15);
    font-weight: 500;
}
.btn-start:hover { 
    box-shadow: 0 8px 25px rgba(34, 211, 238, 0.4);
    transform: translateY(-2px);
    filter: brightness(1.1);
}

/* Core Layout & Utilities */
main { margin-left: 80px; }
.container-editorial { max-width: 1600px; margin: 0 auto; padding: 0 4vw; }
.mt-10 { margin-top: 5rem; }
.center-content { display: flex; flex-direction: column; align-items: center; text-align: center; }

/* Giant Typography - Luxury Cyan Blend */
.giant-heading {
    font-size: clamp(4rem, 6.5vw, 7.5rem);
    max-width: 900px;
    line-height: 0.98; 
    text-transform: uppercase; 
    letter-spacing: -0.02em;
    color: var(--text-white); 
    font-weight: 500;
    margin-bottom: 2rem;
}
.giant-heading .line { display: block; overflow: hidden; }
.giant-heading .highlight { 
    color: var(--accent-cyan); 
    font-style: normal;
    text-shadow: 0 0 40px rgba(34, 211, 238, 0.4);
}

.editorial-heading {
    font-size: clamp(4rem, 6vw, 7rem); line-height: 0.9; text-transform: uppercase; margin-bottom: 3rem;
    color: var(--text-white); font-weight: 400;
}
.medium-heading {
    font-size: clamp(3rem, 4vw, 5rem); line-height: 1; text-transform: uppercase; margin-bottom: 2rem;
    color: var(--text-white); font-weight: 400;
}

/* =========================================================================
   1. HERO EDITORIAL (AERUK REFERENCE)
   ========================================================================= */
.hero-editorial {
    min-height: 100vh; position: relative; 
    display: flex; align-items: center;
    padding-top: 10vh;
}
.hero-layout {
    display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 4rem; padding: 0 10vw; width: 100%;
    align-items: center;
}

/* LEFT SIDE: Typography */
.hero-label-wrap {
    display: flex; align-items: center; gap: 1rem;
    margin-bottom: 1.5rem;
}
.cyan-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan);
}
.hero-label {
    font-size: 0.75rem; letter-spacing: 3px; color: var(--text-silver); text-transform: uppercase; font-weight: 500;
}

.hero-desc { max-width: 440px; margin-top: 2rem; }
.hero-desc p { font-size: 1.05rem; color: var(--text-silver); margin-bottom: 2.5rem; line-height: 1.7; }

.btn-hero-cta {
    font-family: var(--font-body); font-size: 1rem; letter-spacing: 0.5px;
    padding: 1.1rem 2.5rem; border-radius: 100px;
    background: linear-gradient(135deg, #18b2c9 0%, #22d3ee 100%); 
    color: #fff; font-weight: 500;
    display: inline-flex; align-items: center; gap: 0.75rem;
    transition: all 0.5s var(--ease-lux);
    box-shadow: 0 4px 15px rgba(34, 211, 238, 0.2);
    cursor: pointer;
}
.btn-hero-cta svg {
    transition: transform 0.4s var(--ease-lux);
}
.btn-hero-cta:hover {
    box-shadow: 0 8px 30px rgba(34, 211, 238, 0.4);
    transform: translateY(-2px);
    filter: brightness(1.1);
}
.btn-hero-cta:hover svg {
    transform: translate(2px, -2px);
}

/* RIGHT SIDE: 3D Logo Integration & Atmosphere */
.hero-right { position: relative; display: flex; justify-content: center; align-items: center; height: 100%; }
.cinematic-3d-space { position: absolute; width: 100%; height: 85vh; display: flex; justify-content: center; align-items: center; flex-direction: column; top: 5vh; }

/* The 3D Logo */
.hero-3d-logo {
    width: 110%;
    max-width: 800px;
    z-index: 5;
    position: relative;
    transform: translateY(-2vh);
    animation: floatLogo 6s ease-in-out infinite;
    filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 30px rgba(34, 211, 238, 0.15));
}
@keyframes floatLogo {
    0%, 100% { transform: translateY(-2vh); }
    50% { transform: translateY(-5vh); }
}

/* Ambient core glow behind the logo */
.ambient-core-glow { position: absolute; top: 40%; width: 70%; height: 70%; background: radial-gradient(circle, rgba(34, 211, 238, 0.15) 0%, transparent 60%); filter: blur(50px); z-index: 1; pointer-events: none; }

/* Cinematic Platform */
.platform-base {
    position: absolute;
    bottom: 5%;
    width: 320px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(20,25,30,0.8) 0%, rgba(5,7,10,0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 30px 50px rgba(0,0,0,0.8), inset 0 2px 10px rgba(255,255,255,0.03);
    z-index: 2;
}
/* Cyan light hitting top edge of platform */
.platform-base::before {
    content: '';
    position: absolute;
    top: -1px; left: 10%; right: 10%; height: 2px;
    background: radial-gradient(ellipse at center, rgba(34, 211, 238, 0.8) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(1px);
}
.platform-glow-ring {
    position: absolute;
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 85%; height: 60%;
    border-radius: 50%;
    border: 1px solid rgba(34, 211, 238, 0.4);
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.3), inset 0 0 15px rgba(34, 211, 238, 0.15);
}
.platform-reflection {
    position: absolute;
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 60%; height: 60%;
    background: radial-gradient(ellipse at center, rgba(34, 211, 238, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(15px);
}
.pedestal-ambient-glow { position: absolute; bottom: 0; width: 80%; height: 40px; border-radius: 50%; background: radial-gradient(ellipse at center, rgba(34, 211, 238, 0.25) 0%, transparent 70%); filter: blur(25px); z-index: 0; }

/* Orbital Curves */
.orbital-ring { position: absolute; border: 1px solid rgba(255, 255, 255, 0.03); border-radius: 50%; pointer-events: none; z-index: 3; }
.ring-1 { width: 90%; height: 90%; transform: rotateX(70deg) rotateY(15deg); animation: orbital 25s linear infinite; }
.ring-2 { width: 110%; height: 110%; transform: rotateX(65deg) rotateZ(35deg); animation: orbital 35s linear infinite reverse; border-color: rgba(34, 211, 238, 0.08); box-shadow: 0 0 15px rgba(34, 211, 238, 0.05); }
@keyframes orbital { 100% { transform: rotateX(70deg) rotateY(15deg) rotateZ(360deg); } }

/* Scroll Indicators */
.scroll-indicator { position: absolute; bottom: 5vh; left: 50%; transform: translateX(-50%); z-index: 10; }
.mouse-pill { width: 22px; height: 36px; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 20px; display: flex; justify-content: center; padding-top: 6px; }
.mouse-dot { width: 4px; height: 6px; background: var(--accent-cyan); border-radius: 4px; animation: mouseScroll 2s infinite var(--ease-lux); box-shadow: 0 0 10px var(--accent-cyan); }
@keyframes mouseScroll { 0% { transform: translateY(0); opacity: 1; } 50% { transform: translateY(12px); opacity: 0; } 100% { transform: translateY(0); opacity: 0; } }

.scroll-explore-vertical { position: absolute; right: 4vw; top: 55%; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; gap: 1.5rem; z-index: 10; }
.scroll-explore-vertical span:first-child { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 0.65rem; letter-spacing: 3px; color: var(--text-silver); text-transform: uppercase; }
.cyan-dot-small { width: 4px; height: 4px; background: var(--accent-cyan); border-radius: 50%; box-shadow: 0 0 8px var(--accent-cyan); }
/* =========================================================================
   2. CINEMATIC PORTFOLIO: VISUAL DESIGN FOUNDATION
   ========================================================================= */
.vynix-portfolio {
    position: relative;
    padding: 15vh 0;
    background: transparent;
    overflow: hidden; /* Prevent any horizontal spill */
    z-index: 5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 100%; /* Strict viewport containment */
    box-sizing: border-box;
}

/* Atmospheric Aura System */
.portfolio-aura {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.aura-glow-top {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vw;
    height: 80vh;
    background: radial-gradient(circle at center, rgba(0,217,255,0.10) 0%, rgba(0,0,0,0) 70%);
    pointer-events: none;
}

.aura-glow-bottom {
    display: none;
}

.cinematic-fog-layer {
    display: none;
}

.portfolio-content-layer {
    position: relative;
    z-index: 3;
    padding: 0 8vw;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden; /* Contain atmospheric overflow locally */
}

/* Top Layout: Heading & Meta */
.portfolio-top-layout {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 8vh;
    max-width: 1400px; /* Reduced for better balance and safety */
    margin: 0 auto; 
    position: relative;
}

.selected-work-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.dot-indicator {
    width: 8px;
    height: 8px;
    background: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--accent-cyan);
}

.label-text {
    font-size: 0.7rem;
    letter-spacing: 4px;
    color: var(--text-silver);
    font-weight: 500;
}

.massive-portfolio-title {
    font-family: var(--font-heading);
    font-size: clamp(5.5rem, 10vw, 12rem);
    line-height: 0.85;
    color: var(--text-white);
    letter-spacing: -0.04em;
    font-weight: 500;
}

.cyan-text {
    color: var(--accent-cyan);
    text-shadow: 0 0 50px rgba(34, 211, 238, 0.3);
}

.editorial-meta-side {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: -38vh; /* Shifted UP significantly to occupy upper-right atmospheric zone */
    margin-right: 25vw; /* Shifted slightly RIGHT from the center to balance typography */
    gap: 0;
    flex-shrink: 0;
}

.portfolio-atmosphere-object {
    width: clamp(580px, 34vw, 680px); /* Increased size by ~20% to better fill the atmospheric space */
    height: auto;
    opacity: 0.92;
    mix-blend-mode: screen;
    filter: drop-shadow(0 0 80px rgba(34, 211, 238, 0.45)) blur(1px);
    animation: floatingAtmosphere 14s infinite alternate ease-in-out;
    z-index: 2;
    position: relative;
    pointer-events: none;
}

.cyan-atmospheric-object {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.discipline-tagline {
    font-size: 0.7rem;
    letter-spacing: 7px;
    color: var(--text-white);
    opacity: 0.95;
    font-weight: 400;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
    margin-top: 30px; /* Integrated centered directly below the glow core */
    white-space: nowrap;
}

.discipline-tagline .dot-sep {
    color: var(--accent-cyan);
    margin: 0 0.8rem;
    font-weight: 900;
    text-shadow: 0 0 10px var(--accent-cyan);
}

@keyframes floatingAtmosphere {
    0% { transform: translateY(0) rotate(0deg) scale(1); }
    100% { transform: translateY(-25px) rotate(3deg) scale(1.02); }
}

/* Showcase Visual: Card Design */
.portfolio-showcase-visual {
    position: relative;
    padding: 5vh 0;
}

.project-display-track {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 55vh; /* Responsive height relative to viewport */
    perspective: 2000px;
    width: 100%;
    cursor: grab;
    margin: 2vh 0;
}

.project-display-track:active {
    cursor: grabbing;
}

.v-project-card {
    position: absolute;
    width: 32vh; /* Width relative to height for better fit */
    aspect-ratio: 10 / 14; /* Sleek vertical proportion */
    height: auto;
    max-height: 45vh; /* Guaranteed to fit in viewport */
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    opacity: 0;
    pointer-events: none;
    transform: scale(0.4) translateZ(-1000px);
    filter: blur(20px);
}

/* Compact 5-Card System */
.v-project-card.active-center {
    opacity: 1;
    pointer-events: all;
    z-index: 10;
    transform: scale(1.08) translateZ(0); /* Subtle active dominance */
    filter: blur(0);
}

.v-project-card.inactive-left {
    opacity: 0.6;
    pointer-events: all;
    z-index: 5;
    transform: translateX(-35vh) scale(0.8) rotateY(25deg); /* Relative offset */
    filter: blur(2px);
}

.v-project-card.inactive-right {
    opacity: 0.6;
    pointer-events: all;
    z-index: 5;
    transform: translateX(35vh) scale(0.8) rotateY(-25deg); /* Relative offset */
    filter: blur(2px);
}

.v-project-card.inactive-far-left {
    opacity: 0.3;
    transform: translateX(-60vh) scale(0.6) rotateY(35deg); /* Relative offset */
    filter: blur(5px);
}

.v-project-card.inactive-far-right {
    opacity: 0.3;
    transform: translateX(60vh) scale(0.6) rotateY(-35deg); /* Relative offset */
    filter: blur(5px);
}

.v-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 24px;
    overflow: hidden;
    background: #05070a;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 30px 60px rgba(0,0,0,0.8);
    transition: all 0.6s var(--ease-lux);
}

.active-center .v-card-inner {
    border-color: rgba(34, 211, 238, 0.4);
    box-shadow: 0 40px 100px rgba(0,0,0,0.9), 0 0 40px rgba(34, 211, 238, 0.15);
}

/* Premium Edge Lighting */
.active-center .v-card-inner::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.5), transparent 40%, transparent 60%, rgba(34, 211, 238, 0.2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.v-card-media {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 1.5s var(--ease-lux);
    filter: brightness(0.6) contrast(1.1);
}

.v-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
}

.v-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2.5rem;
    z-index: 2;
    transform: translateY(10px);
    opacity: 0.8;
    transition: all 0.6s var(--ease-lux);
}

.active-center .v-card-info {
    transform: translateY(0);
    opacity: 1;
}

.v-card-index {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: var(--accent-cyan);
    display: block;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.v-card-name {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--text-white);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.v-card-tags {
    display: flex;
    gap: 1.2rem;
    opacity: 0.6;
}

.v-card-tags span {
    font-size: 0.75rem;
    color: var(--text-silver);
}

/* Card States: Center focus */
.v-project-card.inactive-left {
    width: 25vw;
    height: 35vw;
    z-index: 1;
    transform: rotateY(25deg) translateX(5vw) scale(0.85);
}

.v-project-card.active-center {
    width: 35vw;
    height: 45vw;
    z-index: 10;
    transform: scale(1.1);
    box-shadow: 0 0 60px rgba(34, 211, 238, 0.15);
}

.v-project-card.active-center .v-card-inner {
    border-color: rgba(34, 211, 238, 0.3);
}

.v-project-card.active-center .v-card-media {
    filter: brightness(0.9) contrast(1.1);
}

.v-project-card.inactive-right {
    width: 25vw;
    height: 35vw;
    z-index: 1;
    transform: rotateY(-25deg) translateX(-5vw) scale(0.85);
}

.v-card-action {
    position: absolute;
    bottom: 3.5rem;
    right: 3.5rem;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    transition: all 0.4s var(--ease-lux);
}

.v-project-card.active-center:hover .v-card-action {
    background: var(--accent-cyan);
    color: #000;
    box-shadow: 0 0 20px var(--accent-cyan);
}

/* Footer Controls Styling */
.portfolio-footer-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8vh;
}

.f-controls-left {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.f-nav-arrows {
    display: flex;
    gap: 1.5rem;
}

.f-arrow-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.1);
    background: transparent;
    color: var(--text-silver);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s var(--ease-lux);
}

.f-arrow-btn:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.f-project-count {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--text-silver);
    letter-spacing: 2px;
}

.f-project-count .current {
    color: var(--text-white);
}

.f-project-count .slash {
    margin: 0 0.5rem;
    opacity: 0.3;
}

.f-view-all {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: transparent;
    border: none;
    font-size: 0.75rem;
    letter-spacing: 3px;
    color: var(--text-silver);
    font-weight: 500;
    cursor: pointer;
    transition: color 0.4s var(--ease-lux);
}

.f-view-all:hover {
    color: var(--accent-cyan);
}

.f-circle-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    transition: all 0.4s var(--ease-lux);
}

.f-view-all:hover .f-circle-icon {
    background: var(--accent-cyan);
    color: #000;
}

/* 3. Our Services Section */
.vynix-portfolio { overflow: visible !important; } /* Ensure parent doesn't clip services */

.vynix-services {
    background: transparent;
    padding: 120px 0;
    position: relative;
    width: 100%;
    overflow: visible !important;
    z-index: 20 !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

.services-container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 120px 90px;
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Services Header */
.services-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 80px;
    position: relative;
}

.s-header-left {
    flex: 1;
}

.s-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.s-dot-cyan {
    width: 8px;
    height: 8px;
    background: #00E5FF;
    border-radius: 50%;
    box-shadow: 0 0 15px #00E5FF;
}

.s-label span:last-child {
    font-size: 14px;
    letter-spacing: 4px;
    color: #00E5FF !important;
    font-weight: 500;
}

.s-main-heading {
    font-size: clamp(72px, 8vw, 120px);
    font-weight: 600;
    line-height: 0.9;
    color: #ffffff !important;
    letter-spacing: -0.02em;
}

.s-main-heading .cyan-gradient {
    background: linear-gradient(to right, #00E5FF, #22d3ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.s-header-right {
    width: 420px;
    position: relative;
}

.s-description {
    font-size: 22px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75) !important;
    margin-bottom: 2rem;
}

/* Services Atmospheric Object */
.services-atmosphere {
    position: absolute;
    top: -200px;
    right: -100px;
    width: 420px;
    opacity: 0.9;
    mix-blend-mode: screen;
    pointer-events: none;
    z-index: 1; /* Behind content */
    animation: floatingAtmosphere 14s infinite alternate ease-in-out;
}

.services-atmosphere img {
    width: 100%;
    height: auto;
    filter: blur(2px);
}

/* Services List Grid */
.services-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.service-card {
    min-height: 110px;
    background: rgba(10, 10, 10, 0.65) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 28px;
    border: 1px solid rgba(0, 229, 255, 0.12);
    padding: 20px 40px;
    display: grid;
    grid-template-columns: 80px 1.2fr 1.5fr 100px;
    align-items: center;
    column-gap: 5vw;
    transition: var(--trans-fast);
    cursor: pointer;
    opacity: 1 !important; /* Force visibility */
    visibility: visible !important;
    transform: none !important;
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 229, 255, 0.4);
    box-shadow: 0 10px 40px rgba(0, 229, 255, 0.15);
    background: rgba(255, 255, 255, 0.04);
}

/* Removed s-card-left to flatten grid structure */

.s-number {
    font-size: clamp(32px, 3vw, 48px);
    font-weight: 500;
    color: #00E5FF !important;
    font-family: var(--font-heading);
    opacity: 1 !important;
}

.s-title {
    font-size: clamp(28px, 3.2vw, 52px);
    font-weight: 500;
    line-height: 1.1;
    color: #ffffff !important;
    font-family: var(--font-heading);
    white-space: normal; /* Allow wrap if space is tight */
    position: relative;
    z-index: 2;
}

.s-info {
    font-size: clamp(15px, 1.1vw, 18px);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.72) !important;
    opacity: 0.72;
    width: 100%;
    position: relative;
    z-index: 1;
}

.s-icon-wrapper {
    display: flex;
    justify-content: flex-end;
    flex: 1;
}

.s-icon-btn {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    border: 1px solid rgba(0, 229, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00E5FF !important;
    transition: var(--trans-fast);
    opacity: 1 !important;
}

.service-card:hover .s-icon-btn {
    background: rgba(0, 229, 255, 0.1);
    border-color: rgba(0, 229, 255, 0.6);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
    transform: rotate(15deg);
}

.s-icon {
    width: 28px !important;
    height: 28px !important;
    stroke: #00E5FF !important;
    opacity: 1 !important;
}

/* Animations Logic */
.reveal-up {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* Subtle Ambient Glow behind section */
.vynix-services::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vw;
    height: 80vh;
    background: radial-gradient(circle at center, rgba(0,217,255,0.10) 0%, rgba(0,0,0,0) 70%);
    pointer-events: none;
    z-index: 1;
}

/* Responsive Services */
@media (max-width: 1400px) {
    .services-container { padding: 0 5vw; }
    .s-card-left { gap: 30px; min-width: auto; }
    .s-title { font-size: 38px; }
}

@media (max-width: 1024px) {
    .services-header { flex-direction: column; align-items: flex-start; gap: 3rem; }
    .s-header-right { width: 100%; }
    .service-card { height: auto; padding: 40px; flex-direction: column; align-items: flex-start; gap: 2rem; border-radius: 20px; }
    .s-card-left { flex-direction: row; gap: 2rem; }
    .s-info { width: 100%; }
    .s-icon-wrapper { width: 100%; justify-content: flex-start; }
}

/* 4. About Me */
.about-me-section { padding: 15vw 0; position: relative; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8rem; align-items: start; }
.about-text-huge h2 { font-size: clamp(4rem, 8vw, 8rem); line-height: 0.9; text-transform: uppercase; color: var(--text-white); font-weight: 400; }
.about-content .lead-text { font-size: clamp(1.5rem, 2vw, 2.2rem); margin-bottom: 2.5rem; font-family: var(--font-heading); color: var(--accent-cyan); line-height: 1.4; font-weight: 400; text-shadow: var(--glow-cyan-soft); }
.about-content .body-text { font-size: 1.15rem; color: var(--text-silver); max-width: 550px; line-height: 1.6; }



/* Split Layouts (Software / Visuals) */
.software-solutions, .visuals-section { padding: 10vw 0; }
.split-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 8rem; align-items: center; }
.split-layout.reverse { grid-template-columns: 1fr 1.2fr; direction: rtl; }
.split-layout.reverse > * { direction: ltr; }
.split-img { height: 85vh; overflow: hidden; position: relative; border-radius: 8px; box-shadow: var(--glow-cyan-soft); }
.split-img img { width: 100%; height: 120%; object-fit: cover; filter: brightness(0.9); transition: filter 0.8s ease; }
.split-layout:hover .split-img img { filter: brightness(1.1); }
.split-text p { font-size: 1.15rem; color: var(--text-silver); margin-bottom: 3.5rem; max-width: 480px; line-height: 1.6; }
.clean-list li { font-family: var(--font-heading); font-size: 1.25rem; padding: 1.25rem 0; border-bottom: 1px solid var(--glass-border); text-transform: uppercase; color: var(--metallic-silver); font-weight: 400; letter-spacing: 1px; transition: color 0.3s; }
.split-layout:hover .clean-list li { color: var(--accent-cyan); border-color: rgba(34, 211, 238, 0.2); text-shadow: var(--glow-cyan-soft); }

/* 7. Subscription Model */
.subscription-editorial { padding: 15vw 0; border-top: 1px solid var(--glass-border); position: relative; background: var(--bg-charcoal); }
.subscription-lead { font-size: 1.25rem; color: var(--text-silver); margin: 2rem 0 6rem; font-family: var(--font-body); }
.pricing-split { display: grid; grid-template-columns: 1fr auto 1fr; gap: 4rem; align-items: stretch; max-width: 1200px; width: 100%; text-align: left; }
.price-option { padding: 4rem; border: 1px solid var(--glass-border); border-radius: 12px; transition: var(--trans-fast); background: var(--glass-bg); }
.price-option h3 { font-size: 2rem; text-transform: uppercase; margin-bottom: 1.5rem; color: var(--text-white); font-weight: 400; transition: color 0.3s; }
.price-option:hover h3 { color: var(--accent-cyan); text-shadow: var(--glow-cyan-soft); }
.price-option p { font-size: 1.05rem; color: var(--text-silver); line-height: 1.6; }
.price-separator { display: flex; align-items: center; font-family: var(--font-heading); font-size: 1.5rem; color: var(--text-silver); font-weight: 300; }
.highlight-box { border-color: rgba(34, 211, 238, 0.3); box-shadow: var(--glow-cyan-soft); position: relative; background: rgba(34, 211, 238, 0.03); }
.price-tag { font-family: var(--font-heading); font-size: 1.5rem; margin: 3rem 0 1rem; color: var(--text-white); font-weight: 400; }
.price-tag span { color: var(--accent-cyan); font-size: 2.25rem; display: block; margin-top: 0.5rem; text-shadow: var(--glow-cyan-hover); }
.price-note { font-size: 0.85rem !important; color: var(--accent-cyan) !important; opacity: 0.7; margin-top: 2rem; }

/* 8. Contact Editorial */
.contact-editorial { padding: 10vw 0 2vw; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8rem; margin-bottom: 10vw; }
.huge-link { display: block; font-family: var(--font-heading); font-size: clamp(2.5rem, 4vw, 4rem); margin-bottom: 1.5rem; color: var(--metallic-silver); transition: color 0.4s ease, text-shadow 0.4s ease; font-weight: 400; }
.huge-link:hover { color: var(--accent-cyan); text-shadow: var(--glow-cyan-hover); }
.form-row { margin-bottom: 3rem; }
.clean-input { width: 100%; background: transparent; border: none; border-bottom: 1px solid rgba(255,255,255,0.15); padding: 1rem 0; color: var(--text-white); font-family: var(--font-body); font-size: 1.15rem; transition: var(--trans-fast); }
.clean-input:focus { outline: none; border-bottom-color: var(--accent-cyan); box-shadow: 0 10px 20px -10px rgba(34, 211, 238, 0.3); }
.clean-input::placeholder { color: rgba(255,255,255,0.2); }
.btn-submit { background: transparent; border: none; color: var(--text-white); font-family: var(--font-heading); font-size: 1.25rem; text-transform: uppercase; display: flex; align-items: center; gap: 1rem; margin-top: 2rem; letter-spacing: 1px; transition: color 0.3s; }
.btn-submit .arrow { transition: transform 0.4s; }
.btn-submit:hover { color: var(--accent-cyan); text-shadow: var(--glow-cyan-soft); }
.btn-submit:hover .arrow { transform: translateX(10px); }

/* Footer */
.editorial-footer { border-top: 1px solid var(--glass-border); padding-top: 3rem; position: relative; z-index: 10; background: var(--bg-black); }
.footer-flex { display: flex; justify-content: space-between; font-family: var(--font-heading); font-size: 1rem; text-transform: uppercase; color: var(--text-silver); letter-spacing: 1px; }

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .hero-layout, .about-grid, .split-layout, .contact-grid { grid-template-columns: 1fr; }
    .split-layout.reverse { direction: ltr; }
    .pricing-split { grid-template-columns: 1fr; }
    .price-separator { justify-content: center; padding: 2rem 0; }
    .nav-center { display: none; }
    main { margin-left: 0; }
    .social-bar { display: none; }
    .navbar { left: 0; }
    .service-row { grid-template-columns: 1fr; text-align: left; padding: 2.5rem 0; }
    .service-desc { text-align: left; opacity: 1; transform: none; margin-top: 0.5rem; color: var(--accent-cyan); }
}
/* 4. Final CTA Section */
.vynix-final-cta {
    background: transparent;
    min-height: 80vh; /* Reduced from 100vh for compactness */
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Marquee System */
.cta-marquee {
    padding: 25px 0;
    background: rgba(0, 229, 255, 0.02);
    border-top: 1px solid rgba(0, 229, 255, 0.15);
    border-bottom: 1px solid rgba(0, 229, 255, 0.15);
    overflow: hidden;
    white-space: nowrap;
}

.marquee-content {
    display: flex;
    align-items: center;
    gap: 60px;
    animation: marqueeScroll 40s linear infinite;
}

.marquee-content span {
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.9);
}

.m-dot {
    width: 6px;
    height: 6px;
    background: #00E5FF;
    border-radius: 50%;
    box-shadow: 0 0 10px #00E5FF;
}

@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* Main Container Layout */
.cta-main-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 60px 90px; /* Reduced vertical padding */
}


/* Central Content */
.cta-center-content {
    text-align: center;
    max-width: 900px;
}

.cta-logo-wrap {
    position: relative;
    display: inline-block;
    margin-bottom: 30px; /* Reduced from 60px */
}

.cta-v-logo {
    width: 380px; /* Slightly smaller for compactness */
    height: auto;
    filter: drop-shadow(0 0 30px rgba(0, 229, 255, 0.1));
    animation: floatLogo 6s infinite ease-in-out;
}

.cta-logo-glow {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 100px;
    background: radial-gradient(ellipse at center, rgba(0, 229, 255, 0.15) 0%, transparent 70%);
    filter: blur(20px);
    pointer-events: none;
}

@keyframes floatLogo {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(1deg); }
}

.cta-heading {
    font-size: clamp(32px, 4.5vw, 62px); /* Slightly refined size */
    font-weight: 500;
    margin-bottom: 20px; /* Reduced from 30px */
    color: white;
    letter-spacing: -0.02em;
}

.cta-desc {
    font-size: clamp(16px, 1.2vw, 20px); /* Slightly refined size */
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
    margin-bottom: 40px; /* Reduced from 60px */
}

/* Main CTA Button */
.cta-main-btn {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    padding: 18px 45px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 100px;
    color: #00E5FF;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.05);
}

.cta-main-btn:hover {
    background: rgba(0, 229, 255, 0.1);
    border-color: #00E5FF;
    box-shadow: 0 0 50px rgba(0, 229, 255, 0.2);
    transform: translateY(-5px);
}

.btn-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(0, 229, 255, 0.3);
    border-radius: 50%;
    transition: transform 0.4s ease;
}

.cta-main-btn:hover .btn-arrow {
    transform: rotate(-45deg);
    background: #00E5FF;
    color: black;
}

/* Bottom Actions */
.cta-bottom-actions {
    position: absolute;
    bottom: 60px;
    width: calc(100% - 180px);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cta-back-to-top {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.4s ease;
    cursor: pointer;
}

.cta-back-to-top:hover {
    border-color: #00E5FF;
    color: #00E5FF;
    background: rgba(0, 229, 255, 0.05);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.2);
}

@media (max-width: 1024px) {
    .cta-social-sidebar { display: none; }
    .cta-bottom-actions { position: relative; bottom: 0; width: 100%; margin-top: 60px; justify-content: center; gap: 40px; }
    .cta-v-logo { width: 300px; }
}

/* Dedicated About Page Styles */
.vynix-about-hero {
    padding-top: 140px;
    padding-bottom: 80px;
    min-height: auto;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 5;
}

.about-intro-wrap {
    max-width: 1200px;
    margin: 0 auto 50px;
    text-align: center;
    padding: 0 40px;
}

.about-giant-text {
    font-family: var(--font-heading);
    font-size: clamp(24px, 3.2vw, 46px);
    font-weight: 500;
    line-height: 1.4;
    color: white;
    letter-spacing: -0.01em;
}

.about-giant-text .cyan-gradient {
    color: #00E5FF;
    text-shadow: 0 0 20px rgba(0, 229, 255, 0.4), 0 0 40px rgba(0, 229, 255, 0.1);
    background: none;
    -webkit-text-fill-color: initial;
}

.about-visual-container {
    max-width: 1100px;
    margin: 0 auto 50px;
    padding: 0 40px;
}

.about-image-glow-border {
    position: relative;
    padding: 1px;
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.4), transparent 50%, rgba(0, 229, 255, 0.4));
    box-shadow: 0 0 40px rgba(0, 229, 255, 0.1);
}

.about-image-frame {
    width: 100%;
    aspect-ratio: 21 / 9;
    max-height: 440px; /* Reduced for cleaner balance */
    border-radius: 29px;
    overflow: hidden;
    background: #111;
}

.about-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    display: block;
    transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-visual-container:hover .about-main-img {
    transform: scale(1.03);
}

.about-desc-wrap {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0 40px;
}

.about-lead-desc {
    font-size: clamp(15px, 1.1vw, 19px);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 300;
}

.about-bottom-accent {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding-bottom: 100px;
}

.accent-line {
    width: 80px;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0, 229, 255, 0.5), transparent);
}

.accent-star {
    font-size: 24px;
    color: #00E5FF;
    text-shadow: 0 0 15px #00E5FF;
}

@media (max-width: 768px) {
    .vynix-about-hero { padding-top: 140px; }
    .about-image-frame { aspect-ratio: 4 / 5; }
    .about-image-glow-border { border-radius: 20px; }
    .about-image-frame { border-radius: 18px; }
}

/* =========================================================================
   PERFORMANCE & MOBILE OPTIMIZATION PASS
   ========================================================================= */

/* Global Smoothness & Layout Control */
html {
    overflow: clip !important;
    max-width: 100vw;
    /* scroll-behavior: smooth intentionally removed — Lenis handles all scroll easing.
       Having both active causes the upward-scroll jump bug. */
}

body {
    overflow: clip !important;
    max-width: 100vw;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overscroll-behavior-y: none; /* Prevent iOS rubber-banding bounce */
    width: 100%;
}

/* Hardware Acceleration & Glow Optimization */
.glow-orb, .ambient-core-glow, .portfolio-aura, .v-project-card {
    will-change: transform, opacity;
    transform: translateZ(0);
}

/* Button Tap Target Optimization */
a, button, .btn-hero-cta, .cta-main-btn {
    touch-action: manipulation; /* Faster mobile tap */
}

/* Prevent text overflow issues */
h1, h2, h3, h4, p {
    max-width: 100%;
    overflow-wrap: break-word;
}

/* Mobile-Specific Performance Fixes */
@media (max-width: 768px) {
    /* Disable heavy overlays on mobile */
    .noise-layer {
        display: none !important;
    }
    
    /* Reduce expensive blur calculations on mobile */
    .glow-orb, .ambient-core-glow, .portfolio-aura {
        filter: blur(40px) !important;
    }
    
    .nav-center, .social-icon, .service-card, .mobile-menu-overlay {
        backdrop-filter: blur(5px) !important;
        -webkit-backdrop-filter: blur(5px) !important;
    }

    /* Ensure comfortable button tap sizes */
    .btn-hero-cta, .cta-main-btn, .nav-item {
        min-height: 44px;
        padding: 15px 30px;
        display: inline-flex;
        justify-content: center;
        align-items: center;
    }

    /* Fix any horizontal scrolling */
    .vynix-portfolio, .vynix-services, .vynix-final-cta, .hero-editorial, .about-me-section {
        max-width: 100vw !important;
        overflow: clip !important;
        padding-left: 5vw;
        padding-right: 5vw;
    }

    /* Ensure hero text scales well and doesn't break */
    .giant-heading {
        font-size: clamp(3rem, 12vw, 5rem) !important;
        line-height: 1 !important;
    }

    /* Navbar adjustment for mobile */
    .navbar {
        left: 0 !important;
        padding: 1.5rem 5vw !important;
        width: 100vw;
    }

}

/* =========================================================================
   MOBILE LAYOUT FIXES (SERVICES, PROJECTS, SOCIAL DOCK, NAV MENU)
   ========================================================================= */

/* Mobile Menu Base State */
.mobile-menu-btn { display: none; }
.mobile-menu-overlay { display: none; }

@media (max-width: 1024px) {
    /* Navbar Hamburger Menu */
    .nav-action { display: flex !important; gap: 1rem; align-items: center; z-index: 1000; position: relative; }
    .btn-start { display: none !important; }
    
    .mobile-menu-btn {
        display: flex; flex-direction: column; gap: 6px; cursor: pointer; z-index: 1001; position: relative;
        padding: 10px;
    }
    .mobile-menu-btn span {
        width: 30px; height: 2px; background: white; transition: 0.3s;
        border-radius: 2px;
    }
    
    #mobile-menu-toggle:checked ~ .nav-action .mobile-menu-btn span:nth-child(1) { transform: translateY(8px) rotate(45deg); background: #00D9FF; }
    #mobile-menu-toggle:checked ~ .nav-action .mobile-menu-btn span:nth-child(2) { opacity: 0; }
    #mobile-menu-toggle:checked ~ .nav-action .mobile-menu-btn span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); background: #00D9FF; }
    
    .mobile-menu-overlay {
        display: flex; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
        background: rgba(3,4,6,0.95); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
        z-index: 999; flex-direction: column; justify-content: center; align-items: center;
        opacity: 0; pointer-events: none; transition: 0.5s;
    }
    
    #mobile-menu-toggle:checked ~ .mobile-menu-overlay { opacity: 1; pointer-events: auto; }
    
    .mobile-menu-content { display: flex; flex-direction: column; align-items: center; gap: 2.5rem; }
    .m-nav-item { font-family: var(--font-heading); font-size: 2.5rem; color: white; text-transform: uppercase; letter-spacing: 2px; transition: 0.3s; text-decoration: none; }
    .m-nav-item:hover, .m-nav-item:active { color: #00D9FF; text-shadow: 0 0 20px rgba(0,217,255,0.4); }

    /* Floating Social Dock on Mobile */
    .social-bar {
        display: flex !important;
        position: fixed !important;
        top: auto !important;
        bottom: 20px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        flex-direction: row !important;
        gap: 15px !important;
        background: rgba(10, 14, 20, 0.8) !important;
        padding: 10px 20px !important;
        border-radius: 50px !important;
        border: 1px solid rgba(0, 217, 255, 0.2) !important;
        backdrop-filter: blur(15px) !important;
        -webkit-backdrop-filter: blur(15px) !important;
        z-index: 100 !important;
    }
    .social-icon { width: 44px !important; height: 44px !important; }
}

@media (max-width: 768px) {
    /* Fix Services Section Text Breaking */
    .s-title {
        font-size: clamp(24px, 7vw, 32px) !important;
        line-height: 1.2 !important;
        white-space: normal !important;
        margin-bottom: 5px;
    }
    .service-card {
        padding: 25px 20px !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
        align-items: flex-start !important;
    }
    .s-number { font-size: 24px !important; }
    .s-info { font-size: 15px !important; line-height: 1.5 !important; margin-top: 5px; }
    .s-icon-wrapper { align-self: flex-end; margin-top: -40px; }
    .s-icon-btn { width: 50px; height: 50px; }

    /* Fix Projects Section Layout */
    .v-project-card.active-center {
        width: 75vw !important;
        height: 110vw !important;
    }
    .v-project-card.inactive-left, .v-project-card.inactive-right {
        width: 60vw !important;
        height: 90vw !important;
    }
    .v-card-name { font-size: 1.4rem !important; margin-bottom: 0.5rem !important; }
    .v-card-info { padding: 1.5rem !important; }
    .v-card-action { bottom: 1.5rem !important; right: 1.5rem !important; width: 40px; height: 40px; }
    .project-display-track { height: 65vh !important; }
    
    .massive-portfolio-title {
        font-size: clamp(2.5rem, 10vw, 4rem) !important;
    }
}

@media (max-width: 768px) {
    /* Hide service icons only on mobile as requested */
    .s-icon-wrapper, .s-icon-btn {
        display: none !important;
    }
}
@media (max-width: 768px) {
    /* 1. Remove the ENTIRE right Hero column and ALL its decorative objects */
    .hero-right,
    .cinematic-3d-space,
    .hero-3d-logo,
    .ambient-core-glow,
    .orbital-ring,
    .platform-base,
    .platform-glow-ring,
    .platform-reflection,
    .pedestal-ambient-glow {
        display: none !important;
    }

    /* 2 & 3 & 4. Convert to single column, remove 100vh, automatically size to content */
    .hero-editorial {
        min-height: 0 !important;
        height: auto !important;
        padding-top: 140px !important;
        padding-bottom: 60px !important;
        display: block !important; /* Disables flex stretch */
    }

    .hero-layout {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        padding: 0 5vw !important;
        gap: 0 !important;
        width: 100% !important;
    }

    /* Center all left-column typography and buttons */
    .hero-left {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        text-align: left !important;
        width: 100% !important;
        margin: 0 auto !important;
    }

    .hero-label-wrap {
        justify-content: center !important;
        margin-bottom: 1.5rem !important;
    }

    .giant-heading {
        text-align: center !important;
    }

    .hero-desc {
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
        margin-top: 1rem !important;
    }

    .hero-desc p {
        text-align: center !important;
    }

    .btn-hero-cta {
        margin: 0 auto !important;
    }

    /* 5. Remove any invisible blocks or scroll indicators intercepting touch */
    .scroll-indicator,
    .scroll-explore-vertical {
        display: none !important;
    }
}
