/* ═══════════════════════════════════════════════════════
   NOVA DIGITAL STUDIO — Premium Showcase Website
   Dark theme · Glassmorphism · Extraordinary Animations
   ═══════════════════════════════════════════════════════ */

/* ─── CSS Custom Properties for Rotating Borders ─── */
@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@property --shimmer-pos {
    syntax: '<percentage>';
    initial-value: -100%;
    inherits: false;
}

/* ─── Design Tokens ─── */
:root {
    --bg-primary: #050505;
    --bg-surface: rgba(255,255,255,0.02);
    --bg-glass: rgba(255,255,255,0.04);
    --bg-glass-hover: rgba(255,255,255,0.07);
    --border-glass: rgba(255,255,255,0.06);
    --border-glass-hover: rgba(255,255,255,0.12);
    --accent-primary: #6c63ff;
    --accent-secondary: #00d4ff;
    --accent-gradient: linear-gradient(135deg, #6c63ff, #00d4ff);
    --text-primary: #ffffff;
    --text-secondary: rgba(255,255,255,0.55);
    --text-muted: rgba(255,255,255,0.3);
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Space Grotesk', 'Inter', sans-serif;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-elastic: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --transition-fast: 0.2s var(--ease-out-expo);
    --transition-normal: 0.5s var(--ease-out-expo);
    --transition-slow: 0.8s var(--ease-out-expo);
}

/* ─── Reset & Base ─── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-primary) transparent;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    cursor: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.loading {
    overflow: hidden;
}

::selection {
    background: var(--accent-primary);
    color: white;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 3px;
}

img { max-width: 100%; display: block; }

a {
    color: inherit;
    text-decoration: none;
    cursor: none;
}

button { cursor: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 60px);
}

/* ─── PRELOADER ─── */
#loader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease, transform 0.8s var(--ease-out-expo);
}

#loader.loaded {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.1);
}

.loader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    position: relative;
}

.loader-ring {
    width: 120px;
    height: 120px;
    position: absolute;
    top: -85px;
    animation: loader-ring-spin 2s linear infinite;
}

.loader-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.loader-ring-bg {
    fill: none;
    stroke: rgba(255,255,255,0.05);
    stroke-width: 1;
}

.loader-ring-fill {
    fill: none;
    stroke: url(#loader-gradient);
    stroke: var(--accent-primary);
    stroke-width: 1.5;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.3s ease;
}

@keyframes loader-ring-spin {
    to { transform: rotate(360deg); }
}

.loader-blob {
    width: 80px;
    height: 80px;
    background: var(--accent-gradient);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: blob-morph 4s ease-in-out infinite, blob-glow 2s ease-in-out infinite alternate;
    filter: blur(0px);
    opacity: 0.9;
}

@keyframes blob-morph {
    0%   { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; transform: rotate(0deg) scale(1); }
    25%  { border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%; transform: rotate(90deg) scale(1.05); }
    50%  { border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; transform: rotate(180deg) scale(0.95); }
    75%  { border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%; transform: rotate(270deg) scale(1.03); }
    100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; transform: rotate(360deg) scale(1); }
}

@keyframes blob-glow {
    from { box-shadow: 0 0 40px rgba(108, 99, 255, 0.4), 0 0 80px rgba(0, 212, 255, 0.2); }
    to   { box-shadow: 0 0 60px rgba(108, 99, 255, 0.6), 0 0 120px rgba(0, 212, 255, 0.3), 0 0 160px rgba(108, 99, 255, 0.1); }
}

.loader-text {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.loader-brand {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 12px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.loader-tagline {
    font-size: 0.85rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.loader-progress {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 200px;
}

.loader-bar {
    flex: 1;
    height: 2px;
    background: rgba(255,255,255,0.08);
    border-radius: 2px;
    overflow: hidden;
}

.loader-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--accent-gradient);
    border-radius: 2px;
    transition: width 0.1s ease;
}

.loader-percent {
    font-family: var(--font-display);
    font-size: 0.8rem;
    color: var(--text-muted);
    min-width: 36px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* ─── CUSTOM CURSOR ─── */
#cursor-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease, width 0.3s ease, height 0.3s ease, background 0.3s ease;
    mix-blend-mode: difference;
}

#cursor-dot.hovering {
    width: 40px;
    height: 40px;
    background: rgba(108, 99, 255, 0.3);
    mix-blend-mode: normal;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(108, 99, 255, 0.4);
}

#cursor-glow {
    position: fixed;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(108, 99, 255, 0.06) 0%, transparent 70%);
    transition: opacity 0.3s ease;
}

.cursor-particle {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(108, 99, 255, 0.8), rgba(0, 212, 255, 0.4));
    will-change: transform;
}

/* ─── FLOW FIELD CANVAS ─── */
#canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.12;
    pointer-events: none;
}

/* ─── NAVIGATION ─── */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all var(--transition-normal);
}

#navbar.scrolled {
    padding: 12px 0;
    background: rgba(5, 5, 5, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-glass);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 60px);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 3px;
    position: relative;
    z-index: 1001;
}

.accent-dot {
    color: var(--accent-primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-link {
    font-size: 0.88rem;
    font-weight: 400;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
    position: relative;
    letter-spacing: 0.5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-gradient);
    transition: width var(--transition-normal);
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    padding: 10px 24px;
    border-radius: 100px;
    backdrop-filter: blur(10px);
    transition: all var(--transition-fast);
}

.nav-cta:hover {
    background: var(--bg-glass-hover);
    border-color: var(--accent-primary);
    color: var(--text-primary) !important;
}

.nav-cta::after { display: none; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 5px;
    z-index: 1001;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ─── MOBILE MENU ─── */
#mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(30px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

#mobile-menu.open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.mobile-link {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
    transform: translateY(30px);
    opacity: 0;
    transition: all var(--transition-slow);
}

#mobile-menu.open .mobile-link {
    transform: translateY(0);
    opacity: 1;
}

#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }

.mobile-link:hover {
    color: var(--text-primary);
}

/* ─── HERO SECTION ─── */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
    padding: 120px 0 80px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    backdrop-filter: blur(10px);
    letter-spacing: 0.5px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34d399;
    animation: pulse-dot 2s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(52, 211, 153, 0.5);
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 6.5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 30px;
}

.hero-title .line {
    display: block;
    overflow: hidden;
}

.hero-title .line-inner {
    display: inline-block;
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.gradient-text::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% { background-position: 200% center; }
    100% { background-position: -200% center; }
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 560px;
    margin-bottom: 48px;
    font-weight: 300;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ─── BUTTONS ─── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 100px;
    font-size: 0.92rem;
    font-weight: 500;
    font-family: var(--font-primary);
    letter-spacing: 0.3px;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
    border: none;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 25px rgba(108, 99, 255, 0.3);
}

.btn-primary::before {
    background: linear-gradient(135deg, #5a52e0, #00b8d9);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 40px rgba(108, 99, 255, 0.4);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary span, .btn-primary svg {
    position: relative;
    z-index: 1;
}

.btn-ghost {
    background: transparent;
    border: 1px solid var(--border-glass-hover);
    color: var(--text-secondary);
}

.btn-ghost:hover {
    background: var(--bg-glass);
    border-color: var(--accent-primary);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.btn-large {
    padding: 20px 44px;
    font-size: 1.05rem;
}

/* Ripple Effect */
.btn-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: scale(0);
    animation: ripple 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple {
    to { transform: scale(4); opacity: 0; }
}

/* ─── SCROLL INDICATOR ─── */
.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--accent-primary), transparent);
    animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.3; transform: scaleY(0.6); }
}

.hero-scroll-indicator span {
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* ─── MARQUEE ─── */
.marquee-section {
    position: relative;
    z-index: 2;
    padding: 40px 0;
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
    overflow: hidden;
}

.marquee-track {
    display: flex;
    width: max-content;
}

.marquee-content {
    display: flex;
    align-items: center;
    gap: 60px;
    animation: marquee-scroll 20s linear infinite;
    padding-right: 60px;
}

.marquee-content span {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 600;
    white-space: nowrap;
    color: var(--text-muted);
    letter-spacing: 4px;
}

.marquee-dot {
    color: var(--accent-primary) !important;
    font-size: 1rem !important;
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ─── SECTIONS COMMON ─── */
section {
    position: relative;
    z-index: 2;
    padding: clamp(80px, 12vw, 140px) 0;
}

.section-header {
    margin-bottom: clamp(48px, 6vw, 80px);
}

.section-tag {
    display: inline-block;
    font-size: 0.78rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent-primary);
    margin-bottom: 16px;
    font-weight: 500;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.15;
}

/* ─── WORK SECTION ─── */
.work-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.work-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    transition: all var(--transition-normal);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.work-card:hover {
    border-color: var(--border-glass-hover);
    transform: translateY(-4px);
}

.card-glow {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.4s ease;
    background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(108, 99, 255, 0.08), transparent 40%);
    z-index: 1;
    pointer-events: none;
}

.work-card:hover .card-glow {
    opacity: 1;
}

.work-card-image {
    aspect-ratio: 16/10;
    position: relative;
    overflow: hidden;
}

.work-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 5, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
    backdrop-filter: blur(4px);
}

.work-card:hover .work-card-overlay {
    opacity: 1;
}

.work-card-view {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass-hover);
    padding: 12px 28px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    transition: all var(--transition-fast);
}

.work-card-view:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.work-card-info {
    padding: 20px 24px;
    position: relative;
    z-index: 2;
}

.work-card-info h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.work-card-info span {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* ─── SERVICES / GLASS CARDS ─── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.glass-card {
    position: relative;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 36px 28px;
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    transition: all var(--transition-normal);
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: conic-gradient(
        from var(--angle),
        transparent 0%,
        transparent 35%,
        var(--accent-primary) 45%,
        var(--accent-secondary) 55%,
        transparent 65%,
        transparent 100%
    );
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
    animation: rotate-border 4s linear infinite;
}

.glass-card:hover::before {
    opacity: 1;
}

@keyframes rotate-border {
    to { --angle: 360deg; }
}

.glass-card:hover {
    background: var(--bg-glass-hover);
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.card-border-glow {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.4s ease;
    background: radial-gradient(400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(108, 99, 255, 0.06), transparent 40%);
    pointer-events: none;
}

.glass-card:hover .card-border-glow {
    opacity: 1;
}

.service-card {
    display: flex;
    flex-direction: column;
}

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(108, 99, 255, 0.1);
    border: 1px solid rgba(108, 99, 255, 0.15);
    margin-bottom: 24px;
    color: var(--accent-primary);
    transition: all var(--transition-fast);
}

.glass-card:hover .service-icon {
    background: rgba(108, 99, 255, 0.15);
    box-shadow: 0 0 30px rgba(108, 99, 255, 0.15);
    transform: scale(1.05);
}

.service-card h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.service-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.65;
    flex: 1;
    margin-bottom: 20px;
}

.service-link {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--accent-primary);
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.service-link:hover {
    gap: 8px;
}

/* ─── ABOUT / STATS ─── */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
}

.about-text .section-title {
    margin-bottom: 24px;
}

.about-text p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 16px;
    font-weight: 300;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.stat-card {
    text-align: center;
    padding: 32px 20px;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline;
}

.stat-suffix {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 8px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ─── TESTIMONIALS ─── */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.testimonial-card {
    padding: 36px 28px;
}

.testimonial-quote {
    font-family: var(--font-display);
    font-size: 4rem;
    line-height: 1;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: -10px;
    opacity: 0.5;
}

.testimonial-card p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
    font-weight: 300;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    flex-shrink: 0;
}

.testimonial-author strong {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.testimonial-author span {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ─── CTA / CONTACT ─── */
#contact {
    text-align: center;
    padding: clamp(100px, 15vw, 180px) 0;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 24px;
}

.cta-title .line {
    display: block;
    overflow: hidden;
}

.cta-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 44px;
    font-weight: 300;
}

.cta-email {
    margin-top: 24px;
    font-size: 0.88rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    font-family: var(--font-display);
}

/* ─── FOOTER ─── */
#footer {
    position: relative;
    z-index: 2;
    border-top: 1px solid var(--border-glass);
    padding: 48px 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-logo {
    font-size: 1.3rem;
    margin-bottom: 8px;
    display: inline-block;
}

.footer-left p {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 28px;
}

.footer-links a {
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-right p {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-align: right;
}

/* ─── SCROLL ANIMATIONS ─── */
[data-scroll] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

[data-scroll].visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
[data-scroll][data-scroll-delay="100"] { transition-delay: 0.1s; }
[data-scroll][data-scroll-delay="150"] { transition-delay: 0.15s; }
[data-scroll][data-scroll-delay="200"] { transition-delay: 0.2s; }
[data-scroll][data-scroll-delay="300"] { transition-delay: 0.3s; }
[data-scroll][data-scroll-delay="400"] { transition-delay: 0.4s; }
[data-scroll][data-scroll-delay="600"] { transition-delay: 0.6s; }

/* ─── TEXT SCRAMBLE ─── */
[data-scramble] {
    display: inline-block;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .testimonials-grid {
        grid-template-columns: 1fr 1fr;
    }
    .testimonials-grid .testimonial-card:last-child {
        grid-column: 1 / -1;
        max-width: 50%;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    body { cursor: auto; }
    #cursor-dot, #cursor-glow, .cursor-particle { display: none; }

    .nav-links { display: none; }
    .nav-toggle { display: flex; }

    .hero-title {
        font-size: clamp(2.2rem, 10vw, 3.5rem);
        letter-spacing: -1px;
    }

    .work-grid { grid-template-columns: 1fr; }

    .services-grid { grid-template-columns: 1fr; }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .stats-grid { grid-template-columns: 1fr 1fr; }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    .testimonials-grid .testimonial-card:last-child {
        max-width: 100%;
    }

    .footer-inner {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .footer-right p { text-align: center; }

    .cta-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .hero-scroll-indicator { display: none; }
}

@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
    }
    .btn { width: 100%; justify-content: center; }
    .stats-grid { grid-template-columns: 1fr; }
}
