/* ───── Reset & Base ───── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-padding-top: 80px; } /* Removed smooth scrolling, handled by Lenis */
body { overflow-x: hidden; 
    font-family: 'Inter', sans-serif;
    background: #050505;
    color: #e0e0e0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5 { font-family: 'Outfit', sans-serif; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ───── Colors ───── */
:root {
    --primary: #FF5123;
    --primary-glow: rgba(255, 81, 35, 0.4);
    --accent: #0ea5e9;
    --bg-card: rgba(255,255,255,0.04);
    --border-card: rgba(250,232,220,0.08);
    --text-muted: #757575;
    --text-dim: #555;
}

/* ───── Glassmorphic Navbar ───── */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    
    -webkit-
    background: rgba(5,5,5,0.7);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: all 0.3s ease;
}
.navbar.scrolled { background: rgba(5,5,5,0.92); height: 56px; box-shadow: 0 4px 30px rgba(0,0,0,0.3); }
.navbar.scrolled .navbar-inner { height: 56px; }
.navbar-inner {
    max-width: 1280px; margin: 0 auto; padding: 0 1.5rem;
    display: flex; align-items: center; justify-content: space-between;
    height: 72px;
}
.logo-wrap { display: flex; align-items: center; gap: 0; line-height: 1.15; text-decoration: none; }
.logo-wrap img { height: 42px; width: auto; object-fit: contain; margin-right: -10px; margin-left: -8px; }
.logo-text-group { display: flex; flex-direction: column; }
.logo-name { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1.5rem; color: #fff; letter-spacing: -0.02em; }
.logo-name span { color: var(--primary); }
.logo-tagline { font-size: 0.5rem; color: #888; letter-spacing: 0.06em; font-weight: 400; text-transform: uppercase; }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a {
    font-size: 0.85rem; font-weight: 500; color: #aaa;
    transition: color 0.3s; position: relative;
}
.nav-links a:hover { color: #fff; }
.nav-links a::after {
    content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
    background: var(--primary); transition: width 0.3s;
}
.nav-links a:hover::after { width: 100%; }
.nav-cta {
    padding: 0.5rem 1.5rem; border-radius: 9999px;
    background: var(--primary); color: #fff !important; font-weight: 600; font-size: 0.8rem;
    box-shadow: 0 0 15px var(--primary-glow);
    transition: all 0.3s;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 0 25px var(--primary-glow); }
.nav-cta::after { display: none !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { width: 24px; height: 2px; background: #fff; transition: all 0.3s; }

/* ───── Hero Section ───── */
.hero {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden; padding-top: 72px;
}
.hero-bg {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(255,81,35,0.12) 0%, transparent 60%),
                radial-gradient(ellipse 60% 50% at 80% 80%, rgba(14,165,233,0.08) 0%, transparent 50%);
}
.hero-grid-lines {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 80px 80px;
}
.hero-inner {
    max-width: 1280px; margin: 0 auto; padding: 4rem 2rem;
    display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center;
    position: relative; z-index: 2;
}
@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}
.hero-content { animation: heroFadeIn 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards; }
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 16px; border-radius: 9999px;
    border: 1px solid rgba(255,81,35,0.3); background: rgba(255,81,35,0.08);
    font-size: 0.7rem; color: var(--primary); font-weight: 600; letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}
.hero-eyebrow .pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); animation: pulse 2s infinite; }
.hero h1 {
    font-size: clamp(2.5rem, 5.5vw, 4.5rem); font-weight: 800; color: #fff;
    line-height: 1.05; margin-bottom: 1.25rem; letter-spacing: -0.03em;
    word-break: keep-all; white-space: pre-wrap;
}
.hero h1 .word { display: inline-flex; overflow: hidden; white-space: nowrap; }
.hero h1 .accent { color: var(--primary); font-family: 'Playfair Display', serif; font-style: italic; font-weight: 700; padding: 0 5px; }
.hero-sub {
    font-size: 1.1rem; color: #999; line-height: 1.7; margin-bottom: 2rem; max-width: 500px;
}
.hero-sub strong { color: var(--primary); font-weight: 600; }
.hero-cta {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.9rem 2.5rem; border-radius: 9999px;
    background: var(--primary); color: #fff; font-weight: 700; font-size: 0.95rem;
    font-family: 'Outfit', sans-serif;
    box-shadow: 0 0 25px var(--primary-glow), 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s;
    position: relative; overflow: hidden; text-decoration: none;
}
.hero-cta::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
    animation: finalCtaSweep 2.5s ease-in-out infinite; z-index: 0;
}
.hero-cta:hover { transform: translateY(-4px) scale(1.03); box-shadow: 0 0 40px var(--primary-glow); }
.hero-cta:hover .btn-content { transform: translateX(5px); }
.hero-cta svg { transition: transform 0.3s; }
.hero-cta:hover svg { transform: translate(4px, -4px); }
.hero-visual {
    position: relative; animation: heroFadeIn 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.15s forwards;
    opacity: 0; transform: translateX(40px);
    display: flex; align-items: center; justify-content: center;
    min-height: 450px; width: 100%;
    overflow: visible;
}

/* ── 3D Sphere Orb ── */
.orb-container {
    position: relative; width: 700px; height: 700px;
    margin: 0 auto;
}
.orb {
    width: 100%; height: 100%; border-radius: 50%; position: relative;
    background: radial-gradient(circle at 35% 30%, rgba(255,120,60,0.35) 0%, rgba(180,50,10,0.2) 30%, rgba(30,5,0,0.95) 65%, #0a0a0a 100%);
    box-shadow:
        inset -30px -30px 60px rgba(0,0,0,0.8),
        inset 15px 15px 40px rgba(255,81,35,0.15),
        0 0 80px rgba(255,81,35,0.15),
        0 0 150px rgba(255,81,35,0.08),
        0 20px 60px rgba(0,0,0,0.6);
    overflow: hidden;
}
.orb::before {
    content: ''; position: absolute; inset: 0; border-radius: 50%;
    background: radial-gradient(ellipse 50% 40% at 30% 25%, rgba(255,255,255,0.08) 0%, transparent 70%);
}
.orb::after {
    content: ''; position: absolute; inset: 0; border-radius: 50%;
    background: radial-gradient(ellipse 80% 50% at 70% 80%, rgba(255,60,20,0.12) 0%, transparent 60%);
}

/* Orb shimmer sweep */
.orb-shimmer {
    position: absolute; inset: 0; border-radius: 50%; overflow: hidden;
}
.orb-shimmer::before {
    content: ''; position: absolute;
    width: 200%; height: 200%; top: -50%; left: -100%;
    background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.04) 45%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 55%, transparent 60%);
    animation: shimmer 4s ease-in-out infinite;
}

/* Slider inside the orb */
.orb-slider {
    position: absolute; top: 45%; left: 50%; transform: translate(-50%, -50%);
    z-index: 10; width: 500px; height: 650px; pointer-events: none;
}
.orb-slide {
    position: absolute; bottom: 0; left: 0; width: 100%; height: 100%;
    display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
    opacity: 0; transition: opacity 1s ease-in-out, transform 1s cubic-bezier(0.25, 1, 0.5, 1);
    transform: scale(0.9) translateY(40px); filter: blur(5px);
}
.orb-slide.active { opacity: 1; z-index: 2; transform: scale(1) translateY(0); filter: blur(0px); }
.orb-slide img {
    max-width: 100%; max-height: 100%; height: 100%; width: auto;
    object-fit: contain; object-position: bottom center;
    border-radius: 0; border: none; box-shadow: none; margin-bottom: 0;
    /* filter drop shadow removed */
    transition: filter 0.3s;
}
.orb-slide.active img:hover { transform: scale(1.02); }

/* Image-specific alignment fixes removed as requested */

.orb-slide-role {
    position: absolute; bottom: 5%; right: 0%;
    font-family: 'Outfit'; color: #fff; font-weight: 700; font-size: 1.1rem;
    text-align: right; text-transform: uppercase; letter-spacing: 0.1em;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    background: rgba(0,0,0,0.6); padding: 0.5rem 1rem; border-radius: 0.5rem;
     border: 1px solid rgba(255,81,35,0.3);
    transform: translateX(20px); opacity: 0; transition: transform 0.8s 0.2s, opacity 0.8s 0.2s;
}
.orb-slide.active .orb-slide-role { transform: translateX(0); opacity: 1; }

/* Rotating dashed ring */
.orb-ring {
    position: absolute; width: 780px; height: 780px; border-radius: 50%;
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    border: 1.5px dashed rgba(255,81,35,0.18);
    animation: spin 30s linear infinite; pointer-events: none;
}
.orb-ring-inner {
    position: absolute; width: 740px; height: 740px; border-radius: 50%;
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    border: 1px solid rgba(255,81,35,0.06);
    animation: spin 40s linear infinite reverse; pointer-events: none;
}

/* Dots on the ring */
.orb-dot {
    position: absolute; width: 6px; height: 6px; border-radius: 50%;
    background: var(--primary); opacity: 0.5;
}
.orb-dot:nth-child(1) { top: -3px; left: 50%; }
.orb-dot:nth-child(2) { bottom: -3px; left: 50%; }
.orb-dot:nth-child(3) { left: -3px; top: 50%; }
.orb-dot:nth-child(4) { right: -3px; top: 50%; }

/* Ambient glow behind orb */
.orb-glow {
    position: absolute; width: 850px; height: 850px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255,81,35,0.1) 0%, transparent 70%);
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    pointer-events: none; animation: orbPulse 4s ease-in-out infinite;
}

/* Floating particles */
.orb-particle {
    position: absolute; border-radius: 50%; background: var(--primary);
    opacity: 0; animation: particle 3s ease-in-out infinite;
}

@keyframes orbFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-10px) rotate(0.5deg); }
    66% { transform: translateY(-5px) rotate(-0.5deg); }
}
@keyframes shimmer {
    0%, 100% { transform: translateX(-30%); }
    50% { transform: translateX(80%); }
}
@keyframes orbPulse {
    0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
}
@keyframes particle {
    0% { opacity: 0; transform: translateY(0) scale(0.5); }
    50% { opacity: 0.6; }
    100% { opacity: 0; transform: translateY(-60px) scale(0); }
}

/* ───── Section Shared ───── */
.section { padding: 6rem 0; position: relative; overflow: hidden; content-visibility: auto; contain-intrinsic-size: 800px; }
.section-inner { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; position: relative; z-index: 2; }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-label {
    color: var(--text-muted); font-size: 0.6rem; letter-spacing: 0.2em;
    text-transform: uppercase; margin-bottom: 0.5rem;
}
.section-title {
    font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; color: #fff;
}
.section-title .accent { color: var(--primary); }
.section-desc {
    color: var(--text-muted); margin-top: 0.75rem; max-width: 600px;
    margin-left: auto; margin-right: auto; font-size: 0.95rem; line-height: 1.6;
}
.glow-orb {
    position: absolute; border-radius: 50%;  pointer-events: none;
}

/* ───── Services Grid ───── */
#services { background: #0a0a0a; border-top: 1px solid rgba(255,255,255,0.05); }

.svc-slice:hover 

.svc-slice:hover 

.svc-slice:hover 

@media (max-width: 900px) {
    
    
    
    
    
    
    
}

@media (min-width: 901px) {
    
    
    .svc-slice:first-child { 
        clip-path: polygon(0 0, 100% 0, calc(100% - 35px) 100%, 0 100%);
        margin-left: 0; 
    }
    .svc-slice:last-child {
        clip-path: polygon(35px 0, 100% 0, 100% 100%, 0 100%);
    }
    .svc-bg, .svc-overlay, 
    .svc-slice:hover 
    
    /* Reduced padding to maximize space for text */
    
    .svc-slice:first-child 
    
    /* Border pseudo-element */
    .svc-slice::after {
        content: ''; position: absolute; top: 0; right: 0; width: 2px; height: 100%;
        background: rgba(255,81,35,0.4); z-index: 10;
        transform-origin: bottom right;
        transform: skewX(-3.3deg); /* approx 35px over 600px */
    }
    .svc-slice:first-child::after { right: 0px; }
    .svc-slice:last-child::after { display: none; }
}

/* ───── Infinite Scrolling Showcase (Framer Style) ───── */
#showcase { padding: 4rem 0; overflow: hidden; background: #020202; }
.showcase-header { text-align: center; margin-bottom: 3rem; }
.showcase-gallery {
    width: 100vw; position: relative; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; gap: 1.5rem;
}
.gallery-row { display: flex; width: max-content; gap: 1.5rem; }
.gallery-row-1 { animation: scrollLeft 45s linear infinite; }
.gallery-row-2 { animation: scrollRight 40s linear infinite; margin-left: -500px; }
.gallery-row:hover { animation-play-state: paused; }
.gallery-item {
    width: 450px; height: 280px; border-radius: 1.5rem; overflow: hidden;
    flex-shrink: 0; position: relative; cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.05);
}
.gallery-item img, .gallery-item video {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s;
    filter: grayscale(80%) brightness(0.5);
}
.gallery-item:hover img, .gallery-item:hover video { transform: scale(1.08); filter: grayscale(0%) brightness(1.1); }

@keyframes scrollLeft { to { transform: translateX(calc(-50% - 0.75rem)); } }
@keyframes scrollRight { from { transform: translateX(calc(-50% - 0.75rem)); } to { transform: translateX(0); } }

/* ───── UI/UX Bento Grid (UX Labs) ───── */
#ux-experience { padding: 5rem 0; background: #000; }
.bento-container {
    max-width: 1600px; margin: 0 auto;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
    padding: 0 2rem;
}
.bento-card {
    background: #0a0a0a; border: 1px solid rgba(255,255,255,0.08);
    border-radius: 1.5rem; padding: 3rem; min-height: 380px;
    display: flex; flex-direction: column; position: relative; overflow: hidden;
    box-shadow: inset 0 0 40px rgba(0,0,0,0.8);
    cursor: none; /* for custom internal cursors */
}

/* Grid spans for 10 cards */
.bento-card:nth-child(1) { grid-column: span 2; }
.bento-card:nth-child(2) { grid-column: span 2; }
.bento-card:nth-child(3) { grid-column: span 2; }
.bento-card:nth-child(4) { grid-column: span 2; }
.bento-card:nth-child(5) { grid-column: span 2; }
.bento-card:nth-child(6) { grid-column: span 2; }
.bento-card:nth-child(7) { grid-column: span 1; }
.bento-card:nth-child(8) { grid-column: span 1; }
.bento-card:nth-child(9) { grid-column: span 1; }
.bento-card:nth-child(10) { grid-column: span 1; }

.bento-card h3 { font-size: 1.8rem; margin-bottom: 0.5rem; font-weight: 700; color: #fff; z-index: 2; position: relative; }
.bento-card p { font-size: 1rem; color: #888; margin-bottom: 2rem; z-index: 2; position: relative; }

/* Hacker Text Effect */
.hacker-text { font-family: 'Courier New', monospace; font-size: 2.5rem; color: var(--primary); font-weight: bold; margin-top: auto; letter-spacing: 2px; text-shadow: 0 0 15px rgba(255,81,35,0.5); }

/* Glass Parallax */
.glass-stage { position: absolute; top: 0; left: 0; width: 100%; height: 100%; perspective: 1000px; display: flex; align-items: center; justify-content: center; z-index: 1; pointer-events: none; }
.glass-pane {
    position: absolute; width: 150px; height: 200px; border-radius: 1rem;
    background: rgba(255, 255, 255, 0.03);  -webkit-
    border: 1px solid rgba(255,255,255,0.1); box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.2); font-size: 4rem;
    transition: transform 0.1s;
}
.pane-1 { transform: translateZ(-100px) rotateY(-15deg) translateX(-50px); }
.pane-2 { transform: translateZ(0px); background: rgba(14, 165, 233, 0.05); border-color: rgba(14, 165, 233, 0.3); }
.pane-3 { transform: translateZ(100px) rotateY(15deg) translateX(50px); background: rgba(255, 81, 35, 0.05); border-color: rgba(255, 81, 35, 0.3); }

/* Cyber Mask / Grid Reveal */
.cyber-mask-area {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: linear-gradient(rgba(14, 165, 233, 0.2) 1px, transparent 1px), linear-gradient(90deg, rgba(14, 165, 233, 0.2) 1px, transparent 1px);
    background-size: 30px 30px;
    mask-image: radial-gradient(circle 200px at var(--mouse-x, 50%) var(--mouse-y, 50%), black, transparent);
    -webkit-mask-image: radial-gradient(circle 200px at var(--mouse-x, 50%) var(--mouse-y, 50%), black, transparent);
    z-index: 1; opacity: 0; transition: opacity 0.3s; pointer-events: none;
}
.bento-card:hover .cyber-mask-area { opacity: 1; }

/* Fluid Gooey Effect */
.gooey-stage {
    position: relative;
    width: 100%;
    height: 200px;
    filter: url(#gooey);
    z-index: 1;
    overflow: hidden;
    border-radius: 12px;
    pointer-events: auto;
    cursor: none;
}
.goo-blob {
    position: absolute; width: 80px; height: 80px; background: var(--primary); border-radius: 50%;
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    animation: gooBlobFloat 5s ease-in-out infinite alternate;
}
@keyframes gooBlobFloat {
    0% { transform: translate(-50%, -50%) scale(1); }
    25% { transform: translate(-30%, -60%) scale(1.1); }
    50% { transform: translate(-60%, -40%) scale(0.9); }
    75% { transform: translate(-40%, -55%) scale(1.15); }
    100% { transform: translate(-50%, -50%) scale(1); }
}
.goo-cursor {
    position: absolute; width: 40px; height: 40px; background: #0ea5e9; border-radius: 50%;
    pointer-events: none;
    left: var(--mouse-x, 50%);
    top: var(--mouse-y, 50%);
    transform: translate(-50%, -50%);
    transition: left 0.06s linear, top 0.06s linear;
}
.bento-card:hover .goo-blob { width: 120px; height: 120px; }

/* Custom local cursor for bento cards */
/* bento-cursor hidden — using in-card cursor instead */
.bento-cursor { display: none !important; }

/* ───── Restored Old Cards CSS ───── */
/* Interactions Card */
.int-list { display: flex; flex-direction: column; gap: 1rem; position: relative; margin-top: auto; }
.int-item { font-size: 1.5rem; color: #444; cursor: pointer; transition: color 0.3s; padding-left: 1.5rem; line-height: 1.2; }
.int-item:hover, .int-item.active { color: #fff; font-weight: 600; }
.int-dot {
    position: absolute; left: 0; top: 0; width: 8px; height: 8px;
    background: var(--primary); border-radius: 50%;
    box-shadow: 0 0 15px var(--primary-glow);
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Variable Fonts Card */
.var-demo { margin-top: auto; text-align: center; }
.var-text { font-size: 3.5rem; color: #fff; transition: font-weight 0.1s, letter-spacing 0.1s; margin-bottom: 2rem; font-family: 'Outfit'; }
.var-controls { background: #111; padding: 1rem 1.5rem; border-radius: 1rem; border: 1px solid #222; }
.var-slider { -webkit-appearance: none; width: 100%; height: 4px; background: #333; border-radius: 2px; outline: none; margin-top: 1rem; cursor: ew-resize; }
.var-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #0ea5e9; cursor: ew-resize; }

/* Custom Cursor Card */
.cursor-card { padding: 0; border: none; cursor: none; }
.cursor-card .bento-content { padding: 2.5rem; position: absolute; top: 0; left: 0; z-index: 10; pointer-events: none; }
.cursor-demo-area { width: 100%; height: 100%; background: url('./image/cyber_illust_1785940104742.jpg') center/cover; opacity: 0.4; transition: opacity 0.3s; border-radius: 1.5rem; }
.cursor-card:hover .cursor-demo-area { opacity: 1; }
.custom-cursor {
    position: absolute; top: 0; left: 0; width: 110px; height: 44px;
    background: rgba(255,255,255,0.95); color: #000; font-weight: 700; font-size: 0.9rem;
    display: flex; align-items: center; justify-content: center; font-family: 'Outfit';
    border-radius: 30px; pointer-events: none; opacity: 0;
    transform: translate(-50%, -50%) scale(0.5); transition: opacity 0.2s, transform 0.2s;
    z-index: 20; box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}
.cursor-card:hover .custom-cursor { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* Magnetic / Tilt / Switch CSS */
.mag-btn-demo {
    display: inline-flex; justify-content: center; align-items: center;
    padding: 1rem 2rem; background: var(--primary); color: #fff;
    border-radius: 30px; font-weight: 700; cursor: pointer;
    box-shadow: 0 10px 20px rgba(255,81,35,0.2); margin: auto;
}

.tilt-demo-area { perspective: 1000px; margin-top: auto; height: 120px; }
.tilt-el {
    width: 100%; height: 100%; background: linear-gradient(135deg, #0ea5e9, #ff5123);
    border-radius: 1rem; box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.switch-demo-area { margin: auto; }
.theme-switch {
    position: relative; display: inline-block; width: 60px; height: 34px;
}
.theme-switch input { opacity: 0; width: 0; height: 0; }
.slider-tg {
    position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
    background-color: #333; transition: .4s; border-radius: 34px;
}
.slider-tg:before {
    position: absolute; content: ""; height: 26px; width: 26px;
    left: 4px; bottom: 4px; background-color: white; transition: .4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-radius: 50%;
}
.theme-switch input:checked + .slider-tg { background-color: var(--primary); }
.theme-switch input:checked + .slider-tg:before { transform: translateX(26px); }
/* bento-cursor hidden — using in-card cursor instead */
.bento-cursor { display: none !important; }

@media (max-width: 900px) {
    .bento-container { grid-template-columns: 1fr; }
    .bento-card { min-height: 300px; }
}

/* ───── Process Timeline ───── */
#process { background: #050505; }
.timeline {
    display: flex; justify-content: space-between; gap: 1rem; position: relative;
    max-width: 1000px; margin: 0 auto; flex-wrap: wrap; align-items: flex-start;
}
.timeline-step::before {
    content: ''; position: absolute; top: 31px; left: 50%; width: 100%; height: 2px;
    background: linear-gradient(90deg, rgba(255,81,35,0.3), rgba(14,165,233,0.3));
    z-index: 1;
}
.timeline-step:last-child::before {
    display: none;
}
.timeline-step {
    flex: 1; min-width: 160px; text-align: center; position: relative; padding-top: 0;
}
.step-num {
    width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 1rem;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1.1rem;
    background: #0a0a0a; border: 2px solid rgba(255,81,35,0.3); color: var(--primary);
    position: relative; z-index: 2;
    transition: all 0.3s;
}
.timeline-step:hover .step-num {
    background: var(--primary); color: #fff; border-color: var(--primary);
    box-shadow: 0 0 20px var(--primary-glow);
}
.step-label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.25rem; }
.step-title { font-family: 'Outfit', sans-serif; font-weight: 700; color: #fff; font-size: 1rem; margin-bottom: 0.25rem; }
.step-desc { font-size: 0.75rem; color: var(--text-dim); line-height: 1.4; }

/* ───── How It Works (Split Arched UI) ───── */
#how-it-works { background: #0a0a0a; border-top: 1px solid rgba(255,255,255,0.04); overflow: hidden; }
.hiw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; max-width: 1600px; margin: 3rem auto 0; }

/* Left Side: Arched Image */
.hiw-arch-container { position: relative; width: 100%; padding-bottom: 2rem; }
.hiw-arch-wrapper {
    position: relative; width: 100%; aspect-ratio: 1/1; pointer-events: none;
}
.hiw-image {
    position: absolute; top: 20%; left: 28%; transform: translate(-50%, -50%);
    z-index: 2; width: 50%; pointer-events: none;
}
.hiw-image img { 
    width: 100%; height: auto; display: block; 
}

.hiw-arch-line {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    border: 2px solid rgba(255,81,35,0.4); border-radius: 50%;
    clip-path: inset(0 0 35% 0);
}

.hiw-step-icon {
    pointer-events: auto; position: absolute; width: 64px; height: 64px;
    background: #0a0a0a; border: 2px solid var(--primary);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    z-index: 3; cursor: pointer; transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 0 20px rgba(255,81,35,0.15); transform: translate(-50%, -50%);
}
.hiw-step-icon:hover, .hiw-step-icon.active {
    transform: translate(-50%, -50%) scale(1.15); box-shadow: 0 0 35px rgba(255,81,35,0.4); background: rgba(255,81,35,0.05);
}
.hiw-step-icon svg { width: 28px; height: 28px; stroke: #fff; fill: none; transition: stroke 0.3s; stroke-width: 1.5; }
.hiw-step-icon.active svg { stroke: var(--primary); }

/* Mathematically precise positions on a circle (using top half) */
.hiw-step-icon[data-index="0"] { left: 0%; top: 50%; }
.hiw-step-icon[data-index="1"] { left: 14.65%; top: 14.65%; }
.hiw-step-icon[data-index="2"] { left: 50%; top: 0%; }
.hiw-step-icon[data-index="3"] { left: 85.35%; top: 14.65%; }
.hiw-step-icon[data-index="4"] { left: 100%; top: 50%; }

/* Right Side: Accordion */
.hiw-accordion { display: flex; flex-direction: column; gap: 0.5rem; }
.hiw-item {
    background: transparent; border-bottom: 1px solid rgba(255,255,255,0.05);
    overflow: hidden; transition: all 0.3s; padding-bottom: 0.5rem; margin-bottom: 0.5rem;
}
.hiw-item-header {
    display: flex; align-items: center; gap: 1rem; padding: 1rem 0;
    cursor: pointer; transition: color 0.3s;
}
.hiw-item-num { font-family: 'Outfit'; font-weight: 500; font-size: 0.85rem; color: rgba(255,255,255,0.4); min-width: 1.5rem; }
.hiw-item-title { font-family: 'Outfit'; font-weight: 500; color: #fff; font-size: 1.1rem; flex: 1; transition: color 0.3s; }
.hiw-item:hover .hiw-item-title, .hiw-item.active .hiw-item-title { color: var(--primary); }
.hiw-item-btn { 
    width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,0.05);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.2rem; transition: transform 0.3s, background 0.3s; line-height: 1;
}
.hiw-item.active .hiw-item-btn { transform: rotate(45deg); background: var(--primary); color: #fff; }

.hiw-item-body { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.hiw-item.active .hiw-item-body { max-height: 200px; }
.hiw-item-body p { padding: 0 0 1rem 2.5rem; color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }

/* ───── Leadership ───── */
#leadership { background: #050505; }
.team-grid {
    display: flex; justify-content: center; gap: 1.5rem; flex-wrap: nowrap;
    width: 100%; max-width: 1600px; padding: 0 1.5rem 1rem; margin: 0 auto;
}
/* .team-grid::-webkit-scrollbar { height: 8px; } */
/* .team-grid::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; } */
.team-card {
    flex: 1 1 0; min-width: 0; max-width: 320px;
    background: var(--bg-card); border: 1px solid var(--border-card);
    border-radius: 1.3rem; padding: 2.5rem 1.5rem; text-align: center;
    position: relative; overflow: hidden; transition: all 0.4s ease;
}
.team-card:hover {
    border-color: rgba(255,81,35,0.25); transform: translateY(-6px);
    box-shadow: 0 15px 50px rgba(0,0,0,0.4);
}
.team-card .card-accent {
    position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 100px; height: 3px; border-radius: 0 0 4px 4px; opacity: 0.7;
}
.team-avatar {
    width: 140px; height: 140px; border-radius: 50%; margin: 0 auto 1.5rem;
    overflow: hidden; border: 3px solid; position: relative;
    transition: transform 0.3s;
}
.team-card:hover .team-avatar { transform: scale(1.05); }
.team-avatar img { width: 100%; height: 100%; object-fit: cover; background: #1a1a1a; }
.team-name { font-size: 1.4rem; font-weight: 700; color: #fff; margin-bottom: 0.3rem; }
.team-role { font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.4rem; }
.team-qual { font-size: 0.7rem; color: var(--text-dim); font-style: italic; margin-bottom: 0.8rem; }
.team-desc { color: var(--text-muted); font-size: 0.85rem; line-height: 1.65; }

/* ───── Contact — Immersive 3D Neural Network ───── */
#contact { 
    background: #030308; 
    position: relative; overflow: hidden;
    padding: 8rem 0;
    border-top: none;
}

/* Full-screen canvas for neural network */


/* Morphing gradient blob */
.contact-blob {
    position: absolute; width: 600px; height: 600px;
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255,81,35,0.06) 0%, transparent 70%);
    border-radius: 40% 60% 55% 45% / 55% 40% 60% 45%;
    animation: blobMorph 12s ease-in-out infinite;
    z-index: 0; pointer-events: none;
}
@keyframes blobMorph {
    0%   { border-radius: 40% 60% 55% 45% / 55% 40% 60% 45%; transform: translate(-50%, -50%) rotate(0deg) scale(1); }
    25%  { border-radius: 55% 45% 40% 60% / 45% 55% 45% 55%; transform: translate(-50%, -50%) rotate(90deg) scale(1.08); }
    50%  { border-radius: 45% 55% 60% 40% / 60% 45% 55% 45%; transform: translate(-50%, -50%) rotate(180deg) scale(0.95); }
    75%  { border-radius: 60% 40% 45% 55% / 40% 60% 40% 60%; transform: translate(-50%, -50%) rotate(270deg) scale(1.05); }
    100% { border-radius: 40% 60% 55% 45% / 55% 40% 60% 45%; transform: translate(-50%, -50%) rotate(360deg) scale(1); }
}

/* Section inner override */
#contact .section-inner { position: relative; z-index: 2; }

/* Typewriter cursor for heading */
.typewriter-cursor {
    display: inline-block; width: 3px; height: 1em; background: var(--primary);
    margin-left: 4px; animation: blink 0.8s step-end infinite; vertical-align: text-bottom;
}

/* Interactive Grid Spotlight */
.contact-grid-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        linear-gradient(rgba(255, 81, 35, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 81, 35, 0.08) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 1; pointer-events: none;
    mask-image: radial-gradient(circle 500px at var(--mouse-x, 50%) var(--mouse-y, 50%), black, transparent);
    -webkit-mask-image: radial-gradient(circle 500px at var(--mouse-x, 50%) var(--mouse-y, 50%), black, transparent);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}
@keyframes blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }

/* 3D Card Container with perspective */
.contact-cards-3d {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 2.5rem; 
    margin-bottom: 4rem; perspective: 1200px;
}

/* Holographic 3D Cards */
.holo-card {
    width: 280px; padding: 2.5rem 2rem 2rem; text-align: center;
    position: relative; overflow: visible;
    border-radius: 1.5rem;
    background: rgba(12, 12, 18, 0.6);
    border: 1px solid rgba(255,255,255,0.06);
     -webkit-
    transform-style: preserve-3d;
    transition: transform 0.15s ease-out, box-shadow 0.3s ease;
    cursor: default;
}

/* Animated holographic border */
.holo-card::before {
    content: ''; position: absolute; top: -1px; left: -1px; right: -1px; bottom: -1px;
    border-radius: 1.5rem; z-index: -1;
    background: conic-gradient(
        from var(--holo-angle, 0deg),
        rgba(255,81,35,0) 0%,
        rgba(255,81,35,0.4) 10%,
        rgba(14,165,233,0.3) 20%,
        rgba(255,81,35,0) 30%,
        transparent 50%,
        rgba(255,81,35,0) 70%,
        rgba(14,165,233,0.2) 80%,
        rgba(255,81,35,0.3) 90%,
        rgba(255,81,35,0) 100%
    );
    opacity: 0; transition: opacity 0.4s ease;
    padding: 1px;
}
.holo-card:hover::before { opacity: 1; }

/* Inner glass reflection */
.holo-card::after {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 45%;
    border-radius: 1.5rem 1.5rem 0 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, transparent 100%);
    pointer-events: none; z-index: 0;
}

.holo-card:hover {
    box-shadow: 
        0 30px 80px rgba(0,0,0,0.5),
        0 0 60px rgba(255,81,35,0.06),
        inset 0 0 40px rgba(255,81,35,0.02);
}

/* Icon container with orbit ring */
.holo-icon {
    width: 80px; height: 80px; margin: 0 auto 1.5rem;
    position: relative; z-index: 1;
    display: flex; align-items: center; justify-content: center;
    transform: translateZ(40px);
}
.holo-icon .icon-bg {
    position: absolute; width: 100%; height: 100%; border-radius: 50%;
    background: radial-gradient(circle, rgba(255,81,35,0.2) 0%, transparent 70%);
    animation: iconPulse 3s ease-in-out infinite;
}
@keyframes iconPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.2); opacity: 1; }
}

.holo-card:hover .holo-icon svg {
    animation: floatIcon 2s ease-in-out infinite;
}
@keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Orbit ring */
.holo-icon .orbit {
    position: absolute; width: 90px; height: 90px; border-radius: 50%;
    border: 1px solid rgba(255,81,35,0.15);
    animation: orbitSpin 10s linear infinite;
}
.holo-icon .orbit::after {
    content: ''; position: absolute; width: 6px; height: 6px; border-radius: 50%;
    background: var(--primary); top: -3px; left: 50%; transform: translateX(-50%);
    box-shadow: 0 0 8px var(--primary);
}
@keyframes orbitSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.holo-icon .emoji { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; }

.holo-card .holo-label {
    color: var(--primary); font-size: 0.65rem; text-transform: uppercase;
    letter-spacing: 0.2em; margin-bottom: 0.5rem; 
    font-weight: 600; position: relative; z-index: 1;
}
.holo-card .holo-value {
    color: #fff; font-weight: 700; font-family: 'Outfit'; font-size: 1.05rem;
    position: relative; z-index: 1;
    transition: text-shadow 0.3s ease;
}
.holo-card:hover .holo-value {
    text-shadow: 0 0 20px rgba(255,81,35,0.3);
}

/* Connection beams between cards */
.card-beam {
    position: absolute; height: 1px; z-index: 1;
    background: linear-gradient(90deg, rgba(255,81,35,0.3), rgba(14,165,233,0.2), rgba(255,81,35,0.3));
    top: 50%; pointer-events: none;
    animation: beamPulse 3s ease-in-out infinite;
}
@keyframes beamPulse {
    0%, 100% { opacity: 0.3; } 50% { opacity: 0.8; }
}

/* Final Contact CTA */
.final-cta-wrap {
    text-align: center; position: relative; z-index: 2; margin-top: 2rem;
}
.final-cta-btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 1.2rem 3.5rem; border-radius: 9999px;
    background: linear-gradient(135deg, var(--primary) 0%, #d63a15 100%);
    color: #fff !important; font-weight: 700;
    font-family: 'Outfit', sans-serif; font-size: 1.1rem;
    box-shadow: 0 0 30px rgba(255,81,35,0.4), 0 10px 30px rgba(255,81,35,0.2);
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s;
    position: relative; overflow: hidden;
    text-decoration: none; border: 2px solid transparent;
}
.final-cta-btn::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
    animation: finalCtaSweep 2.5s ease-in-out infinite; z-index: 0;
}
.btn-content {
    display: inline-flex; align-items: center; gap: 12px;
    position: relative; z-index: 1; pointer-events: none;
    transition: transform 0.3s ease;
}
@keyframes finalCtaSweep {
    0% { left: -100%; } 100% { left: 200%; }
}
.final-cta-btn:hover { 
    box-shadow: 0 0 50px rgba(255,81,35,0.6), 0 15px 40px rgba(255,81,35,0.4);
    transform: scale(1.05) translateY(-3px);
}
.final-cta-btn:hover .btn-content {
    transform: translateX(5px);
}
.final-cta-btn svg { transition: transform 0.3s; }
.final-cta-btn:hover svg { transform: translate(4px, -4px); }

/* Ripple rings behind CTA */
.cta-ripple {
    position: absolute; width: 200px; height: 60px; border-radius: 9999px;
    border: 1px solid rgba(255,81,35,0.4);
    top: 50%; left: 50%; pointer-events: none;
    animation: rippleOut 2.5s ease-out infinite; z-index: 1;
}
@keyframes rippleOut {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(1.8); opacity: 0; }
}

@media (max-width: 900px) {
    .contact-cards-3d { gap: 1.5rem; }
    .holo-card { width: 100%; max-width: 320px; }
    .contact-blob { width: 300px; height: 300px; }
}

/* ───── FAQ ───── */
#faq { background: #050505; border-top: 1px solid rgba(255,255,255,0.04); }
.faq-list { max-width: 750px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item {
    background: var(--bg-card); border: 1px solid var(--border-card);
    border-radius: 1rem; overflow: hidden; transition: all 0.3s;
}
.faq-item.active { border-color: rgba(255,81,35,0.2); }
.faq-q {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.2rem 1.5rem; cursor: pointer; gap: 1rem;
}
.faq-q span { font-family: 'Outfit'; font-weight: 600; color: #ccc; font-size: 0.95rem; }
.faq-q .chevron { color: var(--text-muted); transition: transform 0.3s; font-size: 0.8rem; }
.faq-item.active .faq-q .chevron { transform: rotate(180deg); color: var(--primary); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-item.active .faq-a { max-height: 200px; }
.faq-a p { padding: 0 1.5rem 1.2rem; color: var(--text-muted); font-size: 0.85rem; line-height: 1.7; }

/* ───── Footer ───── */
.footer {
    background: #030303; border-top: 1px solid rgba(255,255,255,0.06);
    padding: 3rem 0 2rem; text-align: center;
}
.footer-brand { display: flex; align-items: center; justify-content: center; gap: 0; margin-bottom: 0.3rem; }
.footer-brand img { height: 36px; width: auto; object-fit: contain; margin-right: -8px; }
.footer-brand-text { font-family: 'Outfit'; font-weight: 800; font-size: 1.3rem; color: #fff; }
.footer-brand-text span { color: var(--primary); }
.footer-tagline { font-size: 0.65rem; color: #555; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-links { display: flex; justify-content: center; gap: 2rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.footer-links a { font-size: 0.8rem; color: #666; transition: color 0.3s; }
.footer-links a:hover { color: var(--primary); }
.footer-social { display: flex; justify-content: center; gap: 1rem; margin-bottom: 1.5rem; }
.footer-social a { color: #666; transition: color 0.3s, transform 0.3s; display: flex; align-items: center; justify-content: center; }
.footer-social a:hover { color: var(--primary); transform: scale(1.1); }
.footer-social svg { width: 18px; height: 18px; stroke-width: 1.5px; }
.footer-copy { font-size: 0.7rem; color: #444; }

/* ───── Animations ───── */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes spin { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(35px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideInLeft { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: translateX(0); } }

.anim-fade { opacity: 0; transform: translateY(35px); transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.anim-fade.visible { opacity: 1; transform: translateY(0); }

/* ───── Advanced Scroll Reveal System ───── */
.reveal { opacity: 0; transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.from-bottom { transform: translateY(60px); }
.reveal.from-left { transform: translateX(-60px); }
.reveal.from-right { transform: translateX(60px); }
.reveal.from-scale { transform: scale(0.85); }
.reveal.visible { opacity: 1; transform: none; }

/* ───── Text Reveal (Word-by-Word) ───── */
.text-reveal { overflow: hidden; display: inline-block; vertical-align: top; }
.text-reveal .word {
    display: inline-block; opacity: 0; transform: translateY(100%);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.text-reveal.visible .word { opacity: 1; transform: none; }

/* ───── Cursor Glow ───── */
.cursor-glow { 
    position: fixed; width: 400px; height: 400px; 
    background: radial-gradient(circle, rgba(255,81,35,0.15) 0%, transparent 60%);
    border-radius: 50%; pointer-events: none; z-index: 9999; 
    transform: translate(-50%, -50%); transition: opacity 0.3s;
}

/* ───── Marquee Tech Ticker ───── */
.marquee-container {
    width: 100%; overflow: hidden; background: #080808; padding: 2rem 0;
    border-top: 1px solid rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex; white-space: nowrap;
}
.marquee-track { 
    display: flex; animation: marqueeScroll 30s linear infinite; gap: 3rem;
    align-items: center; padding-right: 3rem;
}
.marquee-item {
    font-family: 'Outfit'; font-size: 1.5rem; font-weight: 700; color: #555;
    display: flex; align-items: center; gap: 1rem;
}
.marquee-item span { color: var(--primary); }
@keyframes marqueeScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ───── Animated Gradient Dividers ───── */
.section-divider { 
    height: 1px; width: 100%; 
    background: linear-gradient(90deg, transparent, var(--primary), transparent); 
    animation: dividerPulse 3s ease-in-out infinite; 
    opacity: 0.5;
}
@keyframes dividerPulse {
    0%, 100% { opacity: 0.2; transform: scaleX(0.9); }
    50% { opacity: 0.8; transform: scaleX(1); }
}

/* ───── Enhanced Hover Micro-interactions ───── */
.nav-links a::after { transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.hero-cta:hover, .contact-cta:hover, .nav-cta:hover { transform: scale(1.05) translateY(-2px); box-shadow: 0 0 35px var(--primary-glow); }
.team-card { transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
.team-card:hover { transform: translateY(-10px) scale(1.02); }


/* ───── Floating Particle Dots ───── */
.bg-particle {
    position: absolute; border-radius: 50%; background: var(--primary);
    opacity: 0.3; animation: bgParticleFloat 8s infinite alternate ease-in-out; pointer-events: none;
}
@keyframes bgParticleFloat {
    0% { transform: translateY(0) translateX(0) scale(1); }
    100% { transform: translateY(-80px) translateX(30px) scale(1.5); }
}

/* ───── Scroll Progress Indicator ───── */
#scroll-progress {
    position: fixed; top: 0; left: 0; height: 3px; background: var(--primary);
    width: 0%; z-index: 99999; transition: width 0.1s ease;
    box-shadow: 0 0 10px var(--primary);
}

/* ───── Spotlight Effect for Services ───── */

.svc-slice::before {
    content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity 0.3s;
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(255,255,255,0.1), transparent 40%);
    pointer-events: none; z-index: 5; 
}
.svc-slice:hover::before { opacity: 1; }

/* ───── Magnetic Nav Links ───── */
.magnetic-link { display: inline-block; transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1); }

/* ───── Slow Orb Spin ───── */
@keyframes slowSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.orb-container { animation: slowSpin 120s linear infinite, orbFloat 6s ease-in-out infinite alternate !important; }

/* ───── Logo Scramble Effect ───── */
.logo-name { position: relative; overflow: hidden; }
.logo-name span { transition: color 0.3s; }
.logo-name:hover span { color: #fff; text-shadow: 0 0 15px var(--primary); }

/* ───── Dynamic Service Modal ───── */
.service-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 99999; display: block;
    opacity: 0; pointer-events: none; transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain;
}
.service-modal-overlay.active { opacity: 1; pointer-events: all; }

.service-modal-close {
    position: fixed; top: 2rem; right: 2rem; z-index: 100000;
    width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    border: 1px solid rgba(255,255,255,0.2); transition: all 0.3s;
}
.service-modal-close:hover { background: #fff; transform: scale(1.1); }
.service-modal-close:hover svg { stroke: #000; }

.service-modal-header {
    width: 100%; height: 60vh; min-height: 400px; position: relative;
    display: flex; align-items: flex-end; padding: 4rem; overflow: hidden;
    background: #000;
}
.service-modal-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; object-position: center 20%; z-index: 1; filter: brightness(0.5);
    transform: scale(1.05); transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-modal-overlay.active .service-modal-bg { transform: scale(1); }
.service-modal-header-gradient {
    position: absolute; bottom: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, #000 0%, transparent 80%); z-index: 2;
}
.service-modal-title {
    position: relative; z-index: 3; font-size: 4rem; font-weight: 800; color: #fff;
    transform: translateY(30px); opacity: 0; transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}
.service-modal-overlay.active .service-modal-title { transform: translateY(0); opacity: 1; }

.service-modal-body {
    max-width: 900px; margin: 0 auto; padding: 4rem 2rem 8rem; width: 100%;
    transform: translateY(30px); opacity: 0; transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.4s;
}
.service-modal-overlay.active .service-modal-body { transform: translateY(0); opacity: 1; }

.sm-headline { font-size: 2.5rem; color: var(--primary); margin-bottom: 1.5rem; font-weight: 700; line-height: 1.2; }
.sm-desc { font-size: 1.2rem; color: #ccc; line-height: 1.6; margin-bottom: 3rem; }

.sm-section { margin-bottom: 3rem; background: #0a0a0a; border: 1px solid rgba(255,255,255,0.05); padding: 2.5rem; border-radius: 1.5rem; }
.sm-section h4 { font-size: 1.5rem; color: #fff; margin-bottom: 1.5rem; display: flex; align-items: center; gap: 0.75rem; }

.sm-list { list-style: none; padding: 0; display: grid; gap: 1rem; }
.sm-list li { display: flex; align-items: center; gap: 1rem; color: #aaa; font-size: 1.1rem; }
.sm-list li::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #0ea5e9; }

.sm-workflow { 
    display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: center;
    perspective: 1200px; padding: 2rem 0;
}
.sm-step { 
    background: linear-gradient(145deg, rgba(30,30,30,0.9), rgba(15,15,15,0.9)); 
    padding: 1.5rem 2.5rem; border-radius: 1rem; color: #fff; font-weight: 700; font-size: 1.1rem;
    border: 1px solid rgba(255,81,35,0.3);
    box-shadow: 0 15px 35px rgba(0,0,0,0.6), inset 0 2px 2px rgba(255,255,255,0.1);
    transform-style: preserve-3d;
    animation: flow3D 4s ease-in-out infinite alternate;
    position: relative;
}
.sm-step::after {
    content: ''; position: absolute; top: 110%; left: 10%; width: 80%; height: 15px;
    background: rgba(255,81,35,0.3); transform: rotateX(90deg); filter: blur(12px);
}
@keyframes flow3D {
    0% { transform: translateY(0px) rotateX(15deg) rotateY(-15deg) translateZ(0); border-color: rgba(255,81,35,0.2); }
    100% { transform: translateY(-15px) rotateX(25deg) rotateY(15deg) translateZ(40px); border-color: rgba(255,81,35,0.8); }
}
.sm-arrow { 
    color: var(--primary); font-size: 2rem; font-weight: bold;
    animation: flowArrow 2s infinite; filter: drop-shadow(0 0 10px rgba(255,81,35,0.6));
    transform-style: preserve-3d;
}
@keyframes flowArrow {
    0%, 100% { transform: scale(1) translateX(0) translateZ(10px); opacity: 0.4; }
    50% { transform: scale(1.2) translateX(10px) translateZ(30px); opacity: 1; }
}

/* ───── A) Enhanced Hamburger Animation ───── */
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ───── B) Mobile Nav Overlay ───── */
.nav-links.open {
    display: flex; flex-direction: column; position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(10, 10, 10, 0.85); /* Much darker glass tint */
     
    -webkit-
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    padding: 6rem 2rem 2rem;
    border-bottom: none; gap: 0.5rem;
    z-index: 999;
    animation: navSlideIn 0.3s ease;
}
.nav-links.open a {
    font-size: 1.3rem; padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    color: #ccc;
}
.nav-links.open .nav-cta {
    margin-top: 1rem; text-align: center; padding: 1rem 2rem;
    border-bottom: none;
}
@keyframes navSlideIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ───── C) Mobile Responsive (≤ 768px) ───── */
@media (max-width: 768px) {
    .neo-container { width: 250px; height: 300px; }
    .neo-monolith-wrapper { width: 200px; height: 280px; }
    .neo-monolith { box-shadow: 15px 15px 0px var(--primary); }
    .neo-container:hover .neo-monolith { box-shadow: 20px 20px 0px var(--primary); }
    
    .hero-slide-role { font-size: 0.55rem; right: -5px; bottom: 5px; padding: 0.4rem 0.8rem; }

    
    
    
    .hero-slide-role { font-size: 0.55rem; right: -5px; bottom: -5px; padding: 0.3rem 0.6rem; }

    /* Navbar */
    .nav-links { display: none; }
    .hamburger { display: flex; z-index: 1001; }
    .navbar-inner { padding: 0 1rem; height: 60px; }
    .navbar.scrolled .navbar-inner { height: 52px; }
    .logo-wrap { gap: 0; }
    .logo-wrap img { height: 32px; margin-right: -6px; margin-left: -4px; }
    .logo-name { font-size: 1.15rem; }
    .logo-tagline { font-size: 0.4rem; letter-spacing: 0.04em; }
    
    /* Hero */
    .hero { min-height: auto; padding-top: 60px; padding-bottom: 1rem; }
    .hero-inner { 
        display: grid;
        grid-template-columns: 1fr;
        grid-template-areas: 
            "h1"
            "visual"
            "sub"
            "cta";
        text-align: center; 
        gap: 1.5rem; padding: 2rem 0.5rem 1rem; align-items: center;
    }
    .hero-content { display: contents; }
    .hero h1 { grid-area: h1; font-size: clamp(2rem, 8vw, 2.5rem); white-space: normal; word-break: normal; line-height: 1.2; text-align: center; margin-bottom: 0; }
    .hero-sub { grid-area: sub; margin: 1rem 0 0.5rem; font-size: 0.75rem; max-width: 100%; text-align: center; }
    .hero-content > div { grid-area: cta; justify-self: center; margin-top: 0.5rem !important; }
    .hero-cta { 
        width: auto; justify-content: center; 
        padding: 0.7rem 1.5rem; font-size: 0.8rem; 
    }
    
    /* Orb */
    .hero-visual { 
        grid-area: visual; justify-self: center;
        order: unset; max-width: 100%; margin: 0; 
        min-height: 180px; overflow: visible; padding-top: 0; 
    }
    .orb-container { width: 150px; height: 150px; margin: 0 auto; animation-duration: 60s !important; }
    .orb-ring { width: 170px; height: 170px; }
    .orb-ring-inner { width: 160px; height: 160px; border-width: 0.5px; }
    .orb-glow { width: 200px; height: 200px; }
    .orb-slider { width: 120px; height: 160px; }
    .orb-slide-role { font-size: 0.4rem; bottom: 2%; right: -5%; padding: 0.2rem 0.4rem; }
    .orb-particle { display: none; }
    
    /* Sections General */
    .section { padding: 2.5rem 0; }
    .section-inner { padding: 0 1rem; }
    .section-header { margin-bottom: 1.5rem; }
    .section-title { font-size: clamp(1.4rem, 5.5vw, 2rem); }
    .section-desc { font-size: 0.82rem; }
    
    /* Services - CRITICAL: override the 900px breakpoint */
    
    
    .svc-slice::after { display: none !important; }
    
    
    .svc-slice:hover 
    .svc-slice:hover 
    .svc-slice:hover 
    
    
    
    
    
    
    
    
    /* Services mobile-active state */
    .svc-slice.mobile-active { min-height: 120px; }
    .svc-slice.mobile-active 
    .svc-slice.mobile-active h3 { font-size: 1.15rem !important; color: var(--primary) !important; }
    .svc-slice.mobile-active 
    .svc-slice.mobile-active 
    .svc-slice.mobile-active 
    
    /* Showcase */
    .gallery-item { width: 240px; height: 160px; border-radius: 0.75rem; }
    #showcase { padding: 2rem 0; }
    .showcase-header { margin-bottom: 1.5rem; }
    .gallery-row { gap: 1rem; }
    
    /* Bento UX Labs */
    .bento-container { 
        display: flex !important; flex-direction: column !important;
        gap: 0.75rem; padding: 0 0.75rem; 
    }
    .bento-card { 
        min-height: 180px; padding: 1.5rem 1rem; cursor: auto; 
        overflow: hidden !important; position: relative;
        grid-column: auto !important; /* reset spans */
    }
    .bento-card h3 { font-size: 1.15rem; }
    .bento-card p { font-size: 0.8rem; margin-bottom: 0.75rem; }
    
    /* Fix mobile bento background animation sizes & auto-animate them */
    .glass-stage { 
        transform-origin: bottom right; opacity: 0.5; 
        animation: mobileGlassFloat 8s ease-in-out infinite;
    }
    @keyframes mobileGlassFloat { 
        0%, 100% { transform: scale(0.6) translate(30%, 10%); } 
        50% { transform: scale(0.6) translate(20%, 0%) rotateY(5deg); } 
    }
    
    /* Mobile gooey */
    .gooey-stage {
        filter: url(#gooey);
        height: 160px;
    }
    .goo-blob { 
        width: 60px; height: 60px; 
        top: 50%; left: 60%; 
        animation: mobileGooPulse 4s ease-in-out infinite alternate; 
    }
    @keyframes mobileGooPulse { 
        0% { transform: translate(-50%, -50%) scale(1); } 
        100% { transform: translate(-50%, -50%) scale(1.3) translateX(-20px); } 
    }
    .goo-cursor {
        width: 30px; height: 30px;
        top: 50%; left: 60%;
        animation: mobileGooOrbit 3s linear infinite;
    }
    @keyframes mobileGooOrbit {
        0% { transform: translate(-50%, -50%) rotate(0deg) translateX(30px) rotate(0deg); }
        100% { transform: translate(-50%, -50%) rotate(360deg) translateX(30px) rotate(-360deg); }
    }
    
    .cyber-mask-area { 
        mask-image: none !important; -webkit-mask-image: none !important;
        background-image: radial-gradient(circle at center, rgba(14,165,233,0.3) 0%, transparent 60%), linear-gradient(rgba(14, 165, 233, 0.2) 1px, transparent 1px), linear-gradient(90deg, rgba(14, 165, 233, 0.2) 1px, transparent 1px) !important;
        opacity: 0.6 !important; 
        animation: mobileMaskPulse 4s ease-in-out infinite; 
    }
    @keyframes mobileMaskPulse { 
        0%, 100% { opacity: 0.4 !important; } 
        50% { opacity: 0.8 !important; } 
    }
    
    .int-list { transform: scale(0.8); transform-origin: top left; }
    
    .hacker-text { font-size: 1.5rem; word-break: break-all; }
    .var-text { font-size: 2rem; }
    .var-controls { padding: 0.75rem 1rem; }
    .int-item { font-size: 1.1rem; }
    .tilt-demo-area { height: 80px; }
    .mag-btn-demo { padding: 0.75rem 1.5rem; font-size: 0.9rem; }
    .cursor-card .cursor-demo-area { border-radius: 0.75rem; }
    
    /* Process */
    .timeline { flex-direction: column; align-items: center; gap: 1.5rem; }
    .timeline-step::before { display: none; }
    .timeline-step { text-align: center; min-width: unset; width: 100%; max-width: 280px; }
    .step-num { width: 44px; height: 44px; font-size: 0.85rem; }
    
    /* How It Works */
    .hiw-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .hiw-arch-container { display: none; }
    .hiw-accordion { gap: 0.2rem; }
    .hiw-item-header { padding: 0.7rem 0; min-height: 44px; }
    .hiw-item-title { font-size: 0.95rem; }
    .hiw-item-body p { padding-left: 1.5rem; font-size: 0.82rem; }
    
    /* Leadership */
    .team-grid { padding: 0 1rem; }    .team-card { padding: 1.5rem 1.2rem; }
    .team-avatar { width: 80px; height: 80px; margin-bottom: 0.75rem; }
    .team-name { font-size: 1.1rem; }
    .team-desc { font-size: 0.75rem; }
    
    /* FAQ */
    .faq-q { padding: 0.8rem 1rem; min-height: 44px; }
    .faq-q span { font-size: 0.85rem; }
    .faq-a p { padding: 0 1rem 0.8rem; font-size: 0.78rem; }
    
    /* Contact */
    .contact-cards-3d { 
        flex-direction: row; flex-wrap: nowrap; justify-content: space-between;
        align-items: stretch; gap: 0.5rem; perspective: none;
        overflow-x: hidden; margin: 0; padding: 0;
    }
    .contact-cards-3d::-webkit-scrollbar { display: none; }
    .holo-card { 
        display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
        flex: 1 1 0; min-width: 0; padding: 1rem 0.2rem; min-height: unset; 
    }
    .holo-card:hover { transform: none; }
    .holo-icon { margin: 0 auto 0.5rem !important; transform: none; width: 40px; height: 40px; }
    .holo-icon .orbit { width: 48px; height: 48px; }
    .holo-icon svg { width: 20px !important; height: 20px !important; }
    .holo-card .holo-label { margin: 0 0 0.2rem 0; font-size: 0.55rem; width: 100%; }
    .holo-card .holo-value { font-size: 0.6rem; width: 100%; word-break: break-all; line-height: 1.2; }
    .contact-blob { width: 200px; height: 200px; }
    .final-cta-btn { padding: 0.9rem 2rem; font-size: 0.95rem; width: 100%; max-width: 320px; }
    #contact { padding: 3rem 0; }
    
    /* Service Modal */
    .service-modal-header { height: 35vh; min-height: 200px; padding: 1.5rem; }
    .service-modal-title { font-size: 1.8rem; }
    .service-modal-body { padding: 1.5rem 1rem 3rem; }
    .sm-headline { font-size: 1.4rem; }
    .sm-desc { font-size: 0.9rem; }
    .sm-section { padding: 1.2rem; }
    .sm-section h4 { font-size: 1.1rem; }
    .sm-list li { font-size: 0.88rem; }
    .sm-workflow { flex-direction: column; gap: 0.75rem; }
    .sm-step { padding: 0.8rem 1.2rem; font-size: 0.88rem; animation: none !important; }
    .sm-arrow { transform: rotate(90deg); font-size: 1.2rem; animation: none !important; }
    .service-modal-close { top: 0.75rem; right: 0.75rem; width: 40px; height: 40px; }
    
    /* Marquee */
    .marquee-item { font-size: 1rem; }
    .marquee-track { gap: 1.5rem; }
    
    /* Footer */
    .footer { padding: 1.5rem 1rem 1rem; }
    .footer-links { gap: 0.75rem; flex-wrap: wrap; justify-content: center; }
    .footer-links a { font-size: 0.8rem; }
    .footer-brand img { height: 30px; }
    .footer-brand-text { font-size: 1rem; }
    .footer-tagline { font-size: 0.7rem; }
    
    /* Disable heavy effects on mobile */
    .cursor-glow { display: none !important; }
    .bento-cursor { display: none !important; }
    .bg-particle { display: none; }
    .cta-ripple { display: none; }
    
    /* Fallback mobile animations for interactive cards */
    .custom-cursor { 
        display: flex !important; opacity: 1 !important; 
        transform: translate(-50%, -50%) scale(1);
        top: 70% !important; left: 70% !important;
        animation: mobileCustomCursorMove 5s ease-in-out infinite alternate !important;
    }
    .cursor-card .cursor-demo-area { opacity: 1 !important; }
    @keyframes mobileCustomCursorMove {
        0% { transform: translate(-50%, -50%) translate(-40px, -20px) scale(1); }
        50% { transform: translate(-50%, -50%) translate(40px, 10px) scale(1.1); }
        100% { transform: translate(-50%, -50%) translate(-20px, 30px) scale(0.9); }
    }
    
    .mag-btn-demo {
        animation: mobileMagBtnFloat 4s ease-in-out infinite alternate !important;
    }
    @keyframes mobileMagBtnFloat {
        0% { transform: translate(0, 0) scale(1); }
        50% { transform: translate(10px, -10px) scale(1.05); }
        100% { transform: translate(-10px, 5px) scale(0.95); }
    }
    
    .tilt-el {
        animation: mobileTiltWobble 6s ease-in-out infinite alternate !important;
        transform-style: preserve-3d;
    }
    @keyframes mobileTiltWobble {
        0% { transform: perspective(1000px) rotateX(10deg) rotateY(-10deg) scale(0.95); }
        50% { transform: perspective(1000px) rotateX(-5deg) rotateY(15deg) scale(1.02); }
        100% { transform: perspective(1000px) rotateX(-15deg) rotateY(-5deg) scale(0.98); }
    }
}

/* ───── D) Extra Small (≤ 480px) ───── */
@media (max-width: 480px) {
    .navbar-inner { padding: 0 0.75rem; }
    .logo-wrap img { height: 28px; }
    .logo-name { font-size: 1rem; }
    .hero h1 { font-size: clamp(2rem, 8vw, 2.5rem); word-break: normal; }
    .hero-sub { font-size: 0.8rem; }
    .hero-inner { padding: 1rem 0.5rem; }
    .orb-container { width: 200px; height: 200px; }
    .orb-ring { width: 230px; height: 230px; }
    .orb-ring-inner { width: 215px; height: 215px; }
    .orb-glow { width: 250px; height: 250px; }
    .orb-slider { width: 160px; height: 220px; }
    .hero-visual { min-height: 220px; }
    .section { padding: 2rem 0; }
    .section-inner { padding: 0 0.5rem; }
    .section-title { font-size: clamp(1.2rem, 5vw, 1.6rem); }
    .gallery-item { width: 200px; height: 130px; }
    .marquee-item { font-size: 0.8rem; gap: 0.4rem; }
    .marquee-track { gap: 1.5rem; }
    .bento-card { min-height: 160px; padding: 1.2rem 0.8rem; }
    .bento-card h3 { font-size: 1rem; }
    .bento-card p { font-size: 0.75rem; }
    .hacker-text { font-size: 1.2rem; }
    .var-text { font-size: 1.6rem; }
    .team-card { padding: 1.2rem 0.8rem; }
    .team-avatar { width: 65px; height: 65px; }
    .team-name { font-size: 1rem; }
    .service-modal-title { font-size: 1.4rem; }
    .sm-headline { font-size: 1.1rem; }
    .holo-card { padding: 1.2rem 0.8rem 1rem; max-width: 100%; }
    .holo-value { font-size: 0.8rem; }
    .final-cta-btn { font-size: 0.85rem; padding: 0.8rem 1.5rem; }
    .nav-links.open a { font-size: 1rem; padding: 0.7rem 0; }
    .nav-links.open { padding: 5rem 1.5rem 1.5rem; }
    
    
    .step-num { width: 38px; height: 38px; font-size: 0.8rem; }
    .faq-q span { font-size: 0.8rem; }
}

/* ----- E) Reduced Motion ----- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .orb-container { animation: none !important; }
    .gallery-row { animation: none !important; }
    .marquee-track { animation: none !important; }
}

/* ----- F) Touch Device Optimizations ----- */
@media (hover: none) and (pointer: coarse) {
    .cursor-glow { display: none !important; }
    .bento-cursor { display: none !important; }
    .bento-card { cursor: auto; }
    .cursor-card { cursor: auto; }
    .svc-slice:hover 
    
    
    .svc-slice:hover 
    .svc-slice:hover 
    .holo-card:hover { transform: none; box-shadow: none; }
    .holo-card:hover::before { opacity: 0; }
    .team-card:hover { transform: none; }
    .nav-cta:hover { transform: none; }
    
    /* Interactive Card Fallbacks for Touch Devices */
    .custom-cursor { 
        display: flex !important; opacity: 1 !important; 
        transform: translate(-50%, -50%) scale(1);
        top: 70% !important; left: 70% !important;
        animation: mobileCustomCursorMove 5s ease-in-out infinite alternate !important;
    }
    .cursor-card .cursor-demo-area { opacity: 1 !important; }
    @keyframes mobileCustomCursorMove {
        0% { transform: translate(-50%, -50%) translate(-40px, -20px) scale(1); }
        50% { transform: translate(-50%, -50%) translate(40px, 10px) scale(1.1); }
        100% { transform: translate(-50%, -50%) translate(-20px, 30px) scale(0.9); }
    }
    
    .mag-btn-demo {
        animation: mobileMagBtnFloat 4s ease-in-out infinite alternate !important;
    }
    @keyframes mobileMagBtnFloat {
        0% { transform: translate(0, 0) scale(1); }
        50% { transform: translate(10px, -10px) scale(1.05); }
        100% { transform: translate(-10px, 5px) scale(0.95); }
    }
    
    .tilt-el {
        animation: mobileTiltWobble 6s ease-in-out infinite alternate !important;
        transform-style: preserve-3d;
    }
    @keyframes mobileTiltWobble {
        0% { transform: perspective(1000px) rotateX(10deg) rotateY(-10deg) scale(0.95); }
        50% { transform: perspective(1000px) rotateX(-5deg) rotateY(15deg) scale(1.02); }
        100% { transform: perspective(1000px) rotateX(-15deg) rotateY(-5deg) scale(0.98); }
    }
}

/* Disable Sticky Hovers on Touch Devices */
@media (hover: none) {
    .team-card:hover { transform: none !important; box-shadow: none !important; }
    .hero-cta:hover, .contact-cta:hover, .nav-cta:hover, .final-cta-btn:hover { transform: none !important; box-shadow: none !important; }
    .bento-card:hover .cyber-mask-area { opacity: 0 !important; }
}

@media (max-width: 768px) {
    .neo-container { width: 250px; height: 300px; }
    .neo-monolith-wrapper { width: 200px; height: 280px; }
    .neo-monolith { box-shadow: 15px 15px 0px var(--primary); }
    .neo-container:hover .neo-monolith { box-shadow: 20px 20px 0px var(--primary); }
    
    .hero-slide-role { font-size: 0.55rem; right: -5px; bottom: 5px; padding: 0.4rem 0.8rem; }

    
    
    
    .hero-slide-role { font-size: 0.55rem; right: -5px; bottom: -5px; padding: 0.3rem 0.6rem; }

    .team-grid {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scroll-snap-type: x mandatory !important;
        padding: 0 0.5rem 1.5rem !important;
        gap: 0.5rem !important;
        justify-content: flex-start !important;
    }
    .team-grid::-webkit-scrollbar { height: 6px; }
    .team-grid::-webkit-scrollbar-thumb { background: rgba(255,81,35,0.5); border-radius: 4px; }
    
    .team-card {
        flex: 0 0 31% !important; /* 3 cards fit perfectly */
        min-width: 0 !important;
        max-width: none !important;
        scroll-snap-align: center !important;
        padding: 1rem 0.5rem !important;
        border-radius: 0.8rem !important;
    }
    .team-avatar {
        width: 45px !important;
        height: 45px !important;
        margin-bottom: 0.5rem !important;
    }
    .team-name {
        font-size: 0.65rem !important;
        word-break: break-word !important;
        line-height: 1.2 !important;
    }
    .team-role { font-size: 0.55rem !important; }
    .team-qual { font-size: 0.5rem !important; }
    .team-desc { display: none !important; }
}

/* --- Native Hardware-Accelerated Animations --- */
.native-fade {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.native-fade.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ═══════════ NEO-BRUTALIST MONOLITH VISUAL ═══════════ */
.neo-container {
    position: relative;
    width: 380px;
    height: 440px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
}

.neo-monolith-wrapper {
    position: absolute;
    width: 300px;
    height: 400px;
    z-index: 1;
    transform-style: preserve-3d;
}

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

.neo-monolith {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: #111111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    box-shadow: 20px 20px 0px var(--primary);
    animation: slowSpin 25s linear infinite;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    transition: box-shadow 0.4s ease;
}

/* Hover effect for the Monolith */
.neo-container:hover .neo-monolith {
    box-shadow: 30px 30px 0px var(--primary);
}

.neo-foreground {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: all 0.6s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 105%;
    max-height: 110%;
    object-fit: contain;
    object-position: bottom;
    filter: grayscale(100%) drop-shadow(0 15px 30px rgba(0,0,0,0.9));
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: scale(1) translateY(0);
}

/* Hover effect for the Portrait */
.neo-container:hover .hero-slide img {
    filter: grayscale(0%) drop-shadow(0 20px 40px rgba(0,0,0,1));
    transform: scale(1.05) translateY(-10px);
}

.hero-slide-role {
    position: absolute;
    bottom: 15px;
    right: -20px;
    background: #000;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.5rem 1.2rem;
    border: 1px solid rgba(255,255,255,0.2);
    letter-spacing: 2px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.8);
    transition: transform 0.4s ease;
    white-space: nowrap;
}

.neo-container:hover .hero-slide-role {
    transform: translateY(-5px);
}

/* =========================================
   MAGIC TEXT HOVER (SERVICES)
   ========================================= */
.magic-services-list {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 0;
    gap: 0;
}

.magic-service-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    cursor: pointer;
}

.magic-service-item.left-aligned {
    justify-content: flex-start;
}

.magic-service-item.right-aligned {
    justify-content: flex-end;
}

/* Icon Circle */
.svc-icon-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease;
    flex-shrink: 0;
}

.svc-icon-circle svg {
    width: 20px;
    height: 20px;
    stroke: rgba(255,255,255,0.6);
    transition: all 0.5s ease;
}

.magic-service-item:hover .svc-icon-circle,\n.magic-service-item.active .svc-icon-circle {
    background: var(--primary);
    border-color: var(--primary);
}

.magic-service-item:hover .svc-icon-circle svg,\n.magic-service-item.active .svc-icon-circle svg {
    stroke: #000;
}

/* Magic Text Masking */
.magic-text {
    font-family: 'Outfit', sans-serif;
    white-space: nowrap;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900;
    text-transform: uppercase;
    margin: 0;
    line-height: 1.1;
    letter-spacing: -0.02em;
    
    /* Hollow Outline */
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(255,255,255,0.3);
    
    /* Image and Gradient Layers */
    background-image: linear-gradient(#020202 50%, transparent 50%), var(--bg);
    background-size: 100% 200%, cover;
    background-position: 0 0, center;
    
    /* Clip to text */
    background-clip: text;
    -webkit-background-clip: text;
    
    /* Smooth wiping animation */
    transition: background-position 0.6s cubic-bezier(0.3, 1, 0.3, 1), -webkit-text-stroke 0.6s ease;
}

.magic-service-item:hover .magic-text,\n.magic-service-item.active .magic-text {
    /* Slide the black gradient up, revealing the image */
    background-position: 0 100%, center;
    -webkit-text-stroke: 1.5px rgba(255,255,255,0.1);
}

/* Mobile Tweaks */
@media (max-width: 768px) {
    .magic-services-list {
        padding: 0.5rem 1rem;
    }

    .magic-service-item {
        gap: 0.75rem;
        padding: 0.85rem 0;
        width: 100%;
        overflow: hidden;
    }

    .magic-service-item.left-aligned,
    .magic-service-item.right-aligned {
        justify-content: flex-start;
    }

    .svc-icon-circle {
        width: 38px;
        height: 38px;
        flex-shrink: 0;
    }

    .svc-icon-circle svg {
        width: 17px;
        height: 17px;
    }

    .magic-text-wrap {
        flex: 1;
        overflow: hidden;
    }

    .magic-text {
        font-size: clamp(1.3rem, 6vw, 1.8rem);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        -webkit-text-stroke: 1px rgba(255,255,255,0.4);
        letter-spacing: -0.01em;
    }
}

.magic-text-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.magic-text-wrap.text-right {
    align-items: flex-end;
    text-align: right;
}

.magic-desc {
    color: rgba(255,255,255,0.6);
    font-size: 0.95rem;
    margin: 0.5rem 0 0 0;
    max-width: 400px;
    font-weight: 300;
}
