/* ==========================================================================
   UNREAL STUDIO — Design System & Styles
   UAE's Premier Agentic AI Agency
   ========================================================================== */

/* ---------- CSS Reset & Base ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --bg-deep: #050508;
    --bg-base: #0a0a0f;
    --bg-surface: #111118;
    --bg-elevated: #18181f;
    --bg-hover: #1e1e28;

    --primary: #7c3aed;
    --primary-light: #a78bfa;
    --primary-dark: #5b21b6;
    --primary-glow: rgba(124, 58, 237, 0.4);

    --secondary: #06b6d4;
    --secondary-light: #67e8f9;
    --secondary-glow: rgba(6, 182, 212, 0.3);

    --accent: #f472b6;

    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    --text-dim: #475569;

    --border: rgba(124, 58, 237, 0.12);
    --border-hover: rgba(124, 58, 237, 0.3);

    --gradient-primary: linear-gradient(135deg, #7c3aed, #06b6d4);
    --gradient-hero: linear-gradient(135deg, #7c3aed 0%, #a855f7 25%, #06b6d4 50%, #7c3aed 75%, #06b6d4 100%);
    --gradient-surface: linear-gradient(145deg, rgba(124,58,237,0.08), rgba(6,182,212,0.05));

    /* Typography */
    --font-heading: 'Space Grotesk', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Spacing */
    --section-pad: clamp(5rem, 10vh, 8rem);
    --container-max: 1280px;
    --container-pad: clamp(1.25rem, 4vw, 2.5rem);

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-fast: 0.2s var(--ease-out);
    --transition-base: 0.4s var(--ease-out);
    --transition-slow: 0.8s var(--ease-out);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-dark) var(--bg-deep);
    overflow-x: hidden;
}

html::-webkit-scrollbar {
    width: 6px;
}
html::-webkit-scrollbar-track {
    background: var(--bg-deep);
}
html::-webkit-scrollbar-thumb {
    background: var(--primary-dark);
    border-radius: 3px;
}

body {
    font-family: var(--font-body);
    background: var(--bg-deep);
    color: var(--text-secondary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: var(--primary);
    color: white;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

/* ---------- Noise Overlay ---------- */
.noise-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
}

/* ---------- Loader ---------- */
.loader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--bg-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
.loader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.loader-inner {
    text-align: center;
}
.loader-logo {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    animation: pulse 1.5s ease-in-out infinite;
}
.loader-bar {
    width: 120px;
    height: 3px;
    background: var(--bg-elevated);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}
.loader-bar-fill {
    height: 100%;
    width: 0;
    background: var(--gradient-primary);
    border-radius: 2px;
    animation: loadBar 1.8s var(--ease-out) forwards;
}
@keyframes loadBar {
    to { width: 100%; }
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ---------- Custom Cursor ---------- */
.custom-cursor {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--primary-light);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10001;
    transition: transform 0.15s ease, opacity 0.15s ease;
    mix-blend-mode: difference;
}
.cursor-follower {
    position: fixed;
    width: 36px;
    height: 36px;
    border: 1px solid var(--primary-light);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10001;
    transition: transform 0.4s var(--ease-out), width 0.3s ease, height 0.3s ease, opacity 0.3s ease;
    opacity: 0.5;
}
.cursor-follower.hover {
    width: 56px;
    height: 56px;
    opacity: 0.3;
    border-color: var(--secondary-light);
}

@media (max-width: 768px) {
    .custom-cursor, .cursor-follower {
        display: none !important;
    }
}

/* ---------- Layout ---------- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

.section {
    padding: var(--section-pad) 0;
    position: relative;
}

/* ---------- Section Headers ---------- */
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
    padding: 0.4rem 1rem;
    background: rgba(124, 58, 237, 0.08);
    border: 1px solid rgba(124, 58, 237, 0.15);
    border-radius: 100px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.15;
    margin-bottom: 1rem;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 620px;
    line-height: 1.8;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}
.section-header .section-desc {
    margin: 0 auto;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.9rem 2rem;
    border-radius: 100px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 0 30px var(--primary-glow), 0 4px 15px rgba(0,0,0,0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 50px var(--primary-glow), 0 8px 30px rgba(0,0,0,0.4);
}
.btn-primary:active {
    transform: translateY(0);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}
.btn-ghost:hover {
    border-color: var(--primary);
    color: var(--text-primary);
    background: rgba(124, 58, 237, 0.06);
}

.btn-full {
    width: 100%;
}

/* ---------- Navbar ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.2rem 0;
    transition: all var(--transition-base);
}
.navbar.scrolled {
    padding: 0.7rem 0;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text-primary);
    z-index: 101;
}
.logo-mark {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: white;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: var(--radius-sm);
}
.logo-text {
    letter-spacing: 0.1em;
}
.logo-accent {
    color: var(--primary-light);
    font-weight: 500;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.nav-links a {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-muted);
    transition: color var(--transition-fast);
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--gradient-primary);
    transition: width var(--transition-base);
}
.nav-links a:hover {
    color: var(--text-primary);
}
.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    padding: 0.55rem 1.4rem !important;
    background: var(--gradient-primary) !important;
    color: white !important;
    border-radius: 100px !important;
    font-weight: 500 !important;
}
.nav-cta::after {
    display: none !important;
}
.nav-cta:hover {
    box-shadow: 0 0 25px var(--primary-glow);
    transform: translateY(-1px);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 101;
}
.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
    border-radius: 1px;
}
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    .nav-links {
        position: fixed;
        inset: 0;
        background: rgba(5, 5, 8, 0.97);
        backdrop-filter: blur(30px);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
    }
    .nav-links.open {
        opacity: 1;
        visibility: visible;
    }
    .nav-links a {
        font-size: 1.6rem;
        font-family: var(--font-heading);
        font-weight: 600;
        color: var(--text-secondary);
    }
    .nav-cta {
        font-size: 1rem !important;
    }
}

/* ---------- Hero Section ---------- */
.hero {
    height: 100vh;
    max-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 5rem 0 3rem;
    box-sizing: border-box;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

/* Spotlight SVG */
.hero-spotlight {
    pointer-events: none;
    position: absolute;
    z-index: 1;
    height: 169%;
    width: 138%;
    top: -40px;
    left: 0;
    opacity: 0;
    animation: spotlightFadeIn 2s 2.5s ease forwards;
}
@keyframes spotlightFadeIn {
    to { opacity: 1; }
}

/* Interactive Mouse Spotlight */
.mouse-spotlight {
    pointer-events: none;
    position: absolute;
    z-index: 1;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(124, 58, 237, 0.15), rgba(6, 182, 212, 0.08), transparent 70%);
    filter: blur(40px);
    opacity: 0;
    transition: opacity 0.3s ease;
    transform: translate(-50%, -50%);
}
.hero:hover .mouse-spotlight {
    opacity: 1;
}

@media (max-width: 768px) {
    .mouse-spotlight {
        display: none;
    }
    .hero-spotlight {
        width: 300%;
        left: -100%;
    }
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: orbFloat 20s ease-in-out infinite;
}
.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    top: -10%;
    right: -5%;
    animation-delay: 0s;
}
.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
    bottom: -15%;
    left: -10%;
    animation-delay: -7s;
}
.orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    top: 40%;
    left: 50%;
    opacity: 0.2;
    animation-delay: -14s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(40px, -30px) scale(1.1); }
    50% { transform: translate(-20px, 50px) scale(0.9); }
    75% { transform: translate(30px, 20px) scale(1.05); }
}

.grid-lines {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(124,58,237,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124,58,237,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 30%, transparent 70%);
}

/* Split Hero Layout */
.hero-split {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
    width: 100%;
    height: 100%;
}

.hero-content {
    flex: 1;
    text-align: left;
    min-width: 0;
    max-width: 50%;
    position: relative;
    z-index: 3;
}

/* 3D Scene Container */
.hero-3d {
    position: absolute;
    right: -2rem;
    top: -2rem;
    bottom: -3rem;
    width: 55%;
    min-width: 0;
    overflow: hidden;
    /* Fade the left edge so robot doesn't hard-crop over text */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 18%, black 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 18%, black 100%);
}

.hero-3d spline-viewer {
    border-radius: 0;
    overflow: hidden;
    transform: scale(1.0) translateY(2%);
    transform-origin: center bottom;
}

.hero-3d-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(ellipse at center, var(--primary-glow), transparent 70%);
    opacity: 0.3;
    pointer-events: none;
    z-index: -1;
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.05); }
}

/* Remove Spline watermark */
.hero-3d spline-viewer::part(logo) {
    display: none !important;
}

/* Hide "Built with Spline" overlay badge */
.hero-3d spline-viewer {
    position: relative;
}
.hero-3d spline-viewer::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 200px;
    height: 60px;
    background: var(--bg-deep);
    z-index: 10;
}

/* Force-hide the Spline watermark link */
spline-viewer #logo {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

@media (max-width: 968px) {
    .hero {
        height: 100vh;
        min-height: 100vh;
        padding: 0;
        overflow: visible;
    }
    .hero-split {
        flex-direction: column;
        text-align: center;
        height: 100%;
        gap: 0;
        padding: 18vh 1.5rem 0;
        justify-content: flex-start;
        position: relative;
    }
    .hero-content {
        text-align: center;
        max-width: 100%;
        position: relative;
        z-index: 3;
        flex: 1;
        display: flex;
        flex-direction: column;
    }
    /* Robot — centered background, full body visible, bottom-anchored */
    .hero-3d {
        position: absolute !important;
        right: auto !important;
        top: auto !important;
        bottom: 0 !important;
        left: 50% !important;
        transform: translateX(-50%);
        width: 110% !important;
        height: 95vh !important;
        margin: 0 !important;
        order: unset;
        z-index: 1;
        opacity: 0.3;
        pointer-events: none;
    }
    .hero-3d spline-viewer {
        transform: none !important;
    }
    .hero-3d-glow {
        display: none;
    }
    .hero-title {
        font-size: clamp(2.2rem, 10vw, 3.5rem);
        margin-bottom: 0.8rem;
        text-shadow: 0 2px 20px rgba(0,0,0,0.8);
    }
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
        min-height: 4.5rem;
        text-shadow: 0 1px 10px rgba(0,0,0,0.6);
    }
    .hero-actions {
        justify-content: center;
        margin-top: auto;
        padding-bottom: 3.5rem;
    }
    /* Hide stats on mobile */
    .hero-stats {
        display: none !important;
    }
    .scroll-indicator {
        z-index: 3;
    }
}

@media (max-width: 480px) {
    .hero-split {
        padding: 20vh 1rem 0;
    }
    .hero-3d {
        transform: translateX(-50%);
        opacity: 0.25;
    }
    .hero-title {
        font-size: clamp(1.9rem, 10vw, 2.8rem);
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    margin-top: 0;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 0.5rem 1.2rem;
    background: rgba(124, 58, 237, 0.08);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 100px;
    margin-bottom: 1.2rem;
}
.badge-dot {
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
    50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 700;
    line-height: 1.02;
    color: var(--text-primary);
    margin-bottom: 1rem;
}
.title-line {
    display: block;
}
.title-gradient {
    background: var(--gradient-hero);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 8s linear infinite;
}
@keyframes gradientShift {
    to { background-position: 200% center; }
}

.hero-subtitle {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    min-height: 1.8em;
}
.typed-text {
    color: var(--secondary-light);
    font-weight: 500;
}
.typed-cursor {
    color: var(--primary-light);
    animation: blink 1s step-end infinite;
}
@keyframes blink {
    50% { opacity: 0; }
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}
.stat {
    text-align: center;
}
.stat-number {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--text-primary);
}
.stat-suffix {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-dim);
    font-weight: 400;
    margin-top: 0.2rem;
}
.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-dim);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.6;
    animation: fadeInUp 1.5s 2.5s ease both;
}
.scroll-mouse {
    width: 22px;
    height: 34px;
    border: 1.5px solid var(--text-dim);
    border-radius: 11px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}
.scroll-wheel {
    width: 3px;
    height: 8px;
    background: var(--primary-light);
    border-radius: 2px;
    animation: scrollWheel 2s ease-in-out infinite;
}
@keyframes scrollWheel {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(10px); opacity: 0; }
}

/* ---------- Services Section ---------- */
.services {
    background: var(--bg-base);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-card {
    position: relative;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    overflow: hidden;
    transition: all var(--transition-base);
    cursor: default;
}
.service-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 40px var(--primary-glow);
}

.service-glow {
    position: absolute;
    inset: 0;
    background: var(--gradient-surface);
    opacity: 0;
    transition: opacity var(--transition-base);
    pointer-events: none;
}
.service-card:hover .service-glow {
    opacity: 1;
}

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(124, 58, 237, 0.08);
    border: 1px solid rgba(124, 58, 237, 0.15);
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}
.service-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--primary-light);
}

.service-number {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-dim);
    z-index: 1;
}

.service-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
    position: relative;
    z-index: 1;
}

.service-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.service-list {
    position: relative;
    z-index: 1;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s var(--ease-out), opacity 0.4s ease;
    opacity: 0;
}
.service-card:hover .service-list {
    max-height: 300px;
    opacity: 1;
}
.service-list li {
    font-size: 0.88rem;
    color: var(--text-secondary);
    padding: 0.4rem 0;
    padding-left: 1.2rem;
    position: relative;
}
.service-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gradient-primary);
    transform: translateY(-50%);
}

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
    }
}

/* ---------- Process Section ---------- */
.process {
    background: var(--bg-deep);
}

.process-timeline {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    left: 28px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary), var(--primary));
    opacity: 0.2;
}

.process-step {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: flex-start;
}
.process-step:last-child {
    margin-bottom: 0;
}

.step-marker {
    flex-shrink: 0;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-surface);
    border: 2px solid var(--border);
    position: relative;
    z-index: 1;
    transition: all var(--transition-base);
}
.process-step:hover .step-marker {
    border-color: var(--primary);
    box-shadow: 0 0 25px var(--primary-glow);
}

.step-num {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary-light);
}

.step-content h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    margin-top: 0.3rem;
}
.step-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
}

@media (max-width: 768px) {
    .timeline-line {
        left: 20px;
    }
    .step-marker {
        width: 42px;
        height: 42px;
    }
    .step-num {
        font-size: 0.75rem;
    }
    .process-step {
        gap: 1.2rem;
    }
}

/* ---------- Work Section ---------- */
.work {
    background: var(--bg-base);
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.work-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    transition: all var(--transition-base);
}
.work-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}

.work-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}
.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}
.work-card:hover .work-image img {
    transform: scale(1.05);
}

.work-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5,5,8,0.8), transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 1.2rem;
    opacity: 0;
    transition: opacity var(--transition-base);
}
.work-card:hover .work-overlay {
    opacity: 1;
}

.work-category {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--secondary-light);
    padding: 0.3rem 0.8rem;
    background: rgba(6, 182, 212, 0.15);
    border: 1px solid rgba(6, 182, 212, 0.25);
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.work-info {
    padding: 1.5rem;
}
.work-info h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}
.work-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.work-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.work-tags span {
    font-size: 0.72rem;
    padding: 0.25rem 0.7rem;
    background: rgba(124, 58, 237, 0.06);
    border: 1px solid rgba(124, 58, 237, 0.1);
    border-radius: 100px;
    color: var(--text-dim);
}

@media (max-width: 1024px) {
    .work-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
    }
}

/* ---------- About Section ---------- */
.about {
    background: var(--bg-deep);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1rem;
}
.about-text:last-of-type {
    margin-bottom: 2rem;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.feature-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(124, 58, 237, 0.08);
    border: 1px solid rgba(124, 58, 237, 0.15);
    border-radius: var(--radius-sm);
}
.feature-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--primary-light);
}

.feature h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}
.feature p {
    font-size: 0.88rem;
    color: var(--text-dim);
}

/* About Stats Card */
.about-stats {
    position: relative;
}

.stats-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 3rem 2.5rem;
    position: relative;
    overflow: hidden;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    position: relative;
    z-index: 1;
}

.stat-box {
    text-align: center;
}
.stat-box .stat-number {
    font-size: 2.8rem;
    display: inline;
}
.stat-box .stat-suffix {
    font-size: 2rem;
}
.stat-box .stat-label {
    font-size: 0.85rem;
    margin-top: 0.3rem;
}

.stats-decoration {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.deco-ring {
    position: absolute;
    width: 200px;
    height: 200px;
    border: 1px solid rgba(124, 58, 237, 0.1);
    border-radius: 50%;
    animation: ringRotate 30s linear infinite;
}
.ring-2 {
    width: 280px;
    height: 280px;
    border-color: rgba(6, 182, 212, 0.06);
    animation-direction: reverse;
    animation-duration: 45s;
}
@keyframes ringRotate {
    to { transform: rotate(360deg); }
}

@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* ---------- Testimonials Section ---------- */
.testimonials {
    background: var(--bg-base);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.testimonial-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all var(--transition-base);
}
.testimonial-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.testimonial-stars {
    color: #fbbf24;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
}

.testimonial-card blockquote p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.author-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    color: white;
    flex-shrink: 0;
}

.testimonial-author strong {
    display: block;
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 600;
}
.testimonial-author span {
    font-size: 0.78rem;
    color: var(--text-dim);
}

@media (max-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
    }
}

/* ---------- Contact Section ---------- */
.contact {
    background: var(--bg-deep);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: center;
}
.contact-item svg {
    width: 22px;
    height: 22px;
    stroke: var(--primary-light);
    flex-shrink: 0;
}
.contact-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: var(--font-mono);
}
.contact-item a, .contact-item span {
    font-size: 0.95rem;
    color: var(--text-secondary);
}
.contact-item a:hover {
    color: var(--primary-light);
}

.social-links {
    display: flex;
    gap: 0.8rem;
}
.social-link {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    transition: all var(--transition-base);
}
.social-link svg {
    width: 18px;
    height: 18px;
    fill: var(--text-muted);
    transition: fill var(--transition-fast);
}
.social-link:hover {
    border-color: var(--primary);
    background: rgba(124, 58, 237, 0.1);
    transform: translateY(-2px);
}
.social-link:hover svg {
    fill: var(--primary-light);
}

/* Contact Form */
.contact-form-wrap {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 0.85rem 1rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    outline: none;
    transition: all var(--transition-fast);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-dim);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}
.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2364748b' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}
.form-group select option {
    background: var(--bg-surface);
    color: var(--text-primary);
}
.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-success {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: var(--radius-md);
    color: #4ade80;
    font-size: 0.9rem;
}
.form-success[hidden] {
    display: none !important;
}
.form-success svg {
    stroke: #4ade80;
    flex-shrink: 0;
}
.form-success.form-error {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* ---------- Footer ---------- */
.footer {
    background: var(--bg-base);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-top: 1rem;
    max-width: 260px;
    line-height: 1.6;
}

.footer-links h4 {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}
.footer-links li {
    margin-bottom: 0.5rem;
}
.footer-links a {
    font-size: 0.88rem;
    color: var(--text-dim);
    transition: color var(--transition-fast);
}
.footer-links a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    font-size: 0.82rem;
    color: var(--text-dim);
}

.footer-badge {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-dim);
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    .footer-brand {
        grid-column: 1 / -1;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 0.8rem;
        text-align: center;
    }
}

/* ---------- Reveal Animations ---------- */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 0;
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal-up {
    transform: translateY(40px);
}
.reveal-left {
    transform: translateX(-40px);
}
.reveal-right {
    transform: translateX(40px);
}
.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
    opacity: 1;
    transform: translate(0, 0);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 0.6;
        transform: translateX(-50%) translateY(0);
    }
}

/* ---------- Responsive: Small Screens ---------- */
@media (max-width: 480px) {
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    .stat-divider {
        width: 40px;
        height: 1px;
    }
    .hero-title {
        font-size: 2.4rem;
    }
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    .contact-form-wrap {
        padding: 1.5rem;
    }
}
