/* ============================================================
   YOURSIDEFX — Core Design System
   Premium VFX Studio Booking Website
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@300;400;500;600;700&family=JetBrains+Mono:wght@300;400;500&display=swap');

/* ─────────────────────────────────────────
   CSS CUSTOM PROPERTIES / DESIGN TOKENS
   ───────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg-void: #040404;
  --bg-primary: #080808;
  --bg-secondary: #0d0d0f;
  --bg-tertiary: #111114;
  --bg-card: rgba(255, 255, 255, 0.025);
  --bg-card-hover: rgba(255, 255, 255, 0.05);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --bg-glass-strong: rgba(255, 255, 255, 0.07);
  --bg-input: rgba(255, 255, 255, 0.03);

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.05);
  --border-default: rgba(255, 255, 255, 0.08);
  --border-glass: rgba(255, 255, 255, 0.12);
  --border-accent: rgba(201, 168, 76, 0.3);
  --border-active: rgba(201, 168, 76, 0.6);

  /* Accent Colors */
  --gold: #c9a84c;
  --gold-light: #e2c97a;
  --gold-dim: rgba(201, 168, 76, 0.15);
  --silver: #a8b2c0;
  --silver-light: #d0d8e8;
  --blue-accent: rgba(100, 160, 255, 0.4);
  --white-accent: rgba(255, 255, 255, 0.85);

  /* Text */
  --text-primary: #f2f2f2;
  --text-secondary: #8a8a9a;
  --text-muted: #555560;
  --text-gold: #c9a84c;
  --text-link: #a8b2c0;

  /* Shadows */
  --shadow-xs: 0 2px 8px rgba(0, 0, 0, 0.5);
  --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.6);
  --shadow-md: 0 12px 40px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.8);
  --shadow-xl: 0 40px 100px rgba(0, 0, 0, 0.9);
  --shadow-gold: 0 0 40px rgba(201, 168, 76, 0.1);
  --shadow-glow: 0 0 80px rgba(201, 168, 76, 0.08);

  /* Blur */
  --blur-sm: blur(8px);
  --blur-md: blur(16px);
  --blur-lg: blur(24px);
  --blur-xl: blur(40px);

  /* Typography */
  --font-primary: 'Space Grotesk', 'Inter', sans-serif;
  --font-secondary: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Sizing */
  --nav-height: 72px;
  --max-width: 1400px;
  --section-pad: 120px;
  --section-pad-sm: 80px;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Transitions */
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --ease-cinematic: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 0.15s;
  --duration-base: 0.3s;
  --duration-slow: 0.6s;
  --duration-cinematic: 1s;
}

/* ─────────────────────────────────────────
   RESET & BASE
   ───────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-secondary);
  background-color: var(--bg-void);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  cursor: none;
  font-family: inherit;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ─────────────────────────────────────────
   CUSTOM CURSOR
   ───────────────────────────────────────── */
.cursor-dot {
  position: fixed;
  width: 4px;
  height: 4px;
  background: #fff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s var(--ease-smooth), opacity 0.2s;
  mix-blend-mode: difference;
}

.cursor-ring {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease-cinematic),
              height 0.3s var(--ease-cinematic),
              border-color 0.3s,
              border-radius 0.3s,
              transform 0.08s linear;
  mix-blend-mode: difference;
  /* VFX Targeting Crosshair lines */
  background: linear-gradient(transparent 48%, rgba(255,255,255,0.4) 48%, rgba(255,255,255,0.4) 52%, transparent 52%),
              linear-gradient(90deg, transparent 48%, rgba(255,255,255,0.4) 48%, rgba(255,255,255,0.4) 52%, transparent 52%);
}

.cursor-ring.hovering {
  width: 50px;
  height: 50px;
  border-color: #fff;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  transform: translate(-50%, -50%) rotate(45deg);
}

.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(100, 160, 255, 0.06) 0%, transparent 60%);
  pointer-events: none;
  z-index: 99997;
  transform: translate(-50%, -50%);
  transition: transform 0.15s linear;
  mix-blend-mode: screen;
}

/* ─────────────────────────────────────────
   LOADING SCREEN
   ───────────────────────────────────────── */
.loader {
  position: fixed;
  inset: 0;
  z-index: 99990;
  background: var(--bg-void);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  transition: opacity 0.8s var(--ease-cinematic), visibility 0.8s;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-logo {
  font-family: var(--font-primary);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--text-primary);
  animation: loaderPulse 2s ease-in-out infinite;
}

.loader-logo span {
  color: var(--gold);
}

.loader-bar-track {
  width: 200px;
  height: 1px;
  background: rgba(255,255,255,0.1);
  position: relative;
  overflow: hidden;
}

.loader-bar {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  width: 40%;
  animation: loaderBar 1.8s ease-in-out infinite;
}

.loader-text {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  text-transform: uppercase;
}

@keyframes loaderPulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

@keyframes loaderBar {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(400%); }
}

/* ─────────────────────────────────────────
   NAVIGATION
   ───────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: background var(--duration-base) var(--ease-smooth),
              border-color var(--duration-base) var(--ease-smooth),
              box-shadow var(--duration-base) var(--ease-smooth);
}

.nav.scrolled {
  background: rgba(8, 8, 8, 0.85);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: var(--blur-lg);
  -webkit-backdrop-filter: var(--blur-lg);
  box-shadow: 0 4px 40px rgba(0,0,0,0.6);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav-logo {
  font-family: var(--font-primary);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-primary);
  text-transform: uppercase;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo-mark {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
  color: var(--bg-void);
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(201, 168, 76, 0.4);
  animation: logoMarkPulse 3s infinite alternate ease-in-out;
}

@keyframes logoMarkPulse {
  0% { box-shadow: 0 0 8px rgba(201, 168, 76, 0.4); transform: scale(1); }
  100% { box-shadow: 0 0 20px rgba(201, 168, 76, 0.8); transform: scale(1.05); }
}

.logo-accent {
  color: var(--gold);
  text-shadow: 0 0 12px rgba(201, 168, 76, 0.5);
  animation: textGlowPulse 3s infinite alternate ease-in-out;
  display: inline-block;
}

@keyframes textGlowPulse {
  0% { text-shadow: 0 0 8px rgba(201, 168, 76, 0.3); }
  100% { text-shadow: 0 0 16px rgba(201, 168, 76, 0.8), 0 0 24px rgba(201, 168, 76, 0.4); }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  text-transform: uppercase;
  position: relative;
  transition: color var(--duration-fast);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-base) var(--ease-smooth);
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-cta {
  padding: 10px 24px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--bg-void) !important;
  border-radius: var(--radius-sm);
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  font-size: 12px !important;
  text-transform: uppercase;
  transition: all var(--duration-base) var(--ease-smooth) !important;
  box-shadow: 0 0 0 0 rgba(201, 168, 76, 0.4);
}

.nav-cta::after { display: none !important; }

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(201, 168, 76, 0.3) !important;
  color: var(--bg-void) !important;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}

.nav-hamburger span {
  width: 22px;
  height: 1.5px;
  background: var(--text-primary);
  display: block;
  transition: all var(--duration-base);
}

/* Mobile Nav */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: rgba(8,8,8,0.98);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: var(--blur-xl);
  padding: 24px 40px;
  flex-direction: column;
  gap: 24px;
  z-index: 999;
}

.nav-mobile.open { display: flex; }

.nav-mobile a {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  text-transform: uppercase;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-subtle);
}

/* ─────────────────────────────────────────
   HERO SECTION
   ───────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg-void);
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 1;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 80%);
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 60%, rgba(201, 168, 76, 0.04) 0%, transparent 70%);
  z-index: 2;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 100% 100% at 50% 50%,
    transparent 30%,
    rgba(4, 4, 4, 0.5) 70%,
    rgba(4, 4, 4, 0.9) 100%);
  z-index: 3;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 900px;
  padding: 0 40px;
  margin-top: var(--nav-height);
}

.hero-availability {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border: 1px solid rgba(74, 200, 120, 0.2);
  border-radius: var(--radius-full);
  background: rgba(74, 200, 120, 0.06);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: #6bdf98;
  text-transform: uppercase;
  margin-bottom: 48px;
  backdrop-filter: var(--blur-sm);
}

.availability-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6bdf98;
  animation: availPulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes availPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(107, 223, 152, 0.5); }
  50% { box-shadow: 0 0 0 6px rgba(107, 223, 152, 0); }
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.3em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-headline {
  font-family: var(--font-primary);
  font-size: clamp(52px, 8vw, 108px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 32px;
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.4), 0 0 80px rgba(255, 255, 255, 0.15);
}

.hero-headline .line-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-headline .line-outline {
  -webkit-text-stroke: 1px rgba(255,255,255,0.3);
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-subheading {
  font-size: clamp(15px, 2vw, 19px);
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 620px;
  margin: 0 auto 56px;
  letter-spacing: 0.01em;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─────────────────────────────────────────
   BUTTONS
   ───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  border-radius: var(--radius-sm);
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all var(--duration-base) var(--ease-smooth);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
  opacity: 0;
  transition: opacity var(--duration-base);
}

.btn:hover::before { opacity: 1; }

.btn-primary {
  background: linear-gradient(135deg, #ffffff, #f0f0f0);
  color: var(--bg-void) !important;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.15), 0 0 40px rgba(255, 255, 255, 0.05);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(255, 255, 255, 0.3),
              0 0 0 1px rgba(255, 255, 255, 0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
  backdrop-filter: var(--blur-sm);
}

.btn-secondary:hover {
  border-color: var(--border-accent);
  color: var(--gold-light);
  transform: translateY(-2px);
  background: var(--gold-dim);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 14px 24px;
}

.btn-ghost:hover {
  color: var(--text-primary);
}

.btn-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.btn-play-icon {
  width: 16px;
  height: 16px;
  background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

/* ─────────────────────────────────────────
   SECTION LAYOUT
   ───────────────────────────────────────── */
.section {
  padding: var(--section-pad) 0;
  position: relative;
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

.section-header {
  margin-bottom: 72px;
}

.section-header.center {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 72px;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 16px;
  display: block;
}

.section-title {
  font-family: var(--font-primary);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 20px;
  text-shadow: 0 0 25px rgba(255, 255, 255, 0.25);
}

.section-subtitle {
  font-size: 17px;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ─────────────────────────────────────────
   GLASS CARD BASE
   ───────────────────────────────────────── */
.glass-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  backdrop-filter: var(--blur-md);
  -webkit-backdrop-filter: var(--blur-md);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-glass), transparent);
}

.glass-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, transparent 60%);
  pointer-events: none;
}

/* ─────────────────────────────────────────
   SERVICES SECTION
   ───────────────────────────────────────── */
.services {
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-glass), transparent);
}

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

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--ease-smooth);
  transform-style: preserve-3d;
  cursor: default;
  will-change: transform;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-default), transparent);
  transition: opacity 0.4s;
}

.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(201,168,76,0.06), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
}

.service-card:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-gold), var(--shadow-md);
  transform: translateY(-4px);
}

.service-card:hover::after {
  opacity: 1;
}

.service-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-accent);
  background: var(--gold-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  font-size: 22px;
  position: relative;
  z-index: 1;
  transition: all 0.4s;
}

.service-card:hover .service-icon-wrap {
  background: rgba(201,168,76,0.2);
  box-shadow: 0 0 20px rgba(201,168,76,0.2);
}

.service-number {
  position: absolute;
  top: 28px;
  right: 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  z-index: 1;
}

.service-title {
  font-family: var(--font-primary);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
  letter-spacing: -0.01em;
}

.service-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 24px;
  position: relative;
  z-index: 1;
}

.service-tag {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

/* ─────────────────────────────────────────
   PORTFOLIO SECTION
   ───────────────────────────────────────── */
.portfolio {
  background: var(--bg-primary);
  position: relative;
}

.portfolio-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 48px;
  justify-content: center;
}

.filter-btn {
  padding: 9px 22px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: transparent;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  text-transform: uppercase;
  transition: all var(--duration-base);
  cursor: pointer;
}

.filter-btn:hover {
  border-color: var(--border-accent);
  color: var(--gold);
}

.filter-btn.active {
  background: var(--gold-dim);
  border-color: var(--border-accent);
  color: var(--gold);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.portfolio-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: all 0.4s var(--ease-smooth);
  cursor: pointer;
  group: true;
}

.portfolio-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg), var(--shadow-gold);
}

.portfolio-card.featured {
  grid-column: span 2;
}

.portfolio-img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-smooth);
}

.portfolio-card:hover .portfolio-img {
  transform: scale(1.05);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(4,4,4,0.95) 0%, rgba(4,4,4,0.4) 40%, transparent 70%);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-category {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.portfolio-title {
  font-family: var(--font-primary);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.portfolio-software {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.portfolio-view {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--gold);
  text-transform: uppercase;
  transform: translateY(8px);
  opacity: 0;
  transition: all 0.3s var(--ease-smooth);
}

.portfolio-card:hover .portfolio-view {
  transform: translateY(0);
  opacity: 1;
}

.portfolio-view::after {
  content: '→';
  transition: transform 0.2s;
}

.portfolio-card:hover .portfolio-view::after {
  transform: translateX(4px);
}

/* ─────────────────────────────────────────
   PROCESS SECTION
   ───────────────────────────────────────── */
.process {
  background: var(--bg-secondary);
  overflow: hidden;
  position: relative;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 60px;
  right: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-accent), transparent);
  z-index: 0;
}

.process-step {
  text-align: center;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.process-num {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1px solid var(--border-accent);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 500;
  color: var(--gold);
  position: relative;
  backdrop-filter: var(--blur-sm);
}

.process-num::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,0.08) 0%, transparent 70%);
}

.process-step-title {
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.process-step-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ─────────────────────────────────────────
   STATS SECTION
   ───────────────────────────────────────── */
.stats {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.stat-item {
  background: var(--bg-card);
  padding: 52px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.stat-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(201,168,76,0.04), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
}

.stat-item:hover::before { opacity: 1; }

.stat-num {
  font-family: var(--font-primary);
  font-size: clamp(40px, 4vw, 56px);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 10px;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ─────────────────────────────────────────
   TESTIMONIALS
   ───────────────────────────────────────── */
.testimonials {
  background: var(--bg-secondary);
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  gap: 24px;
  overflow: hidden;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px;
  flex-shrink: 0;
  width: 400px;
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 20px;
  right: 28px;
  font-family: Georgia, serif;
  font-size: 120px;
  color: rgba(201,168,76,0.06);
  line-height: 1;
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
}

.star {
  font-size: 12px;
  color: var(--gold);
}

.testimonial-text {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-accent);
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--gold-dim), var(--bg-card));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--gold);
}

.testimonial-name {
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.testimonial-role {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

/* ─────────────────────────────────────────
   CTA SECTION
   ───────────────────────────────────────── */
.cta-section {
  background: var(--bg-void);
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 160px 0;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(201,168,76,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(201,168,76,0.04) 0%, transparent 70%);
}

.cta-title {
  font-family: var(--font-primary);
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.cta-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 48px;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* ─────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────── */
.footer {
  background: var(--bg-void);
  border-top: 1px solid var(--border-subtle);
  padding: 80px 0 40px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 64px;
}

.footer-brand-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-top: 16px;
  max-width: 280px;
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color var(--duration-fast);
}

.footer-links a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.footer-socials {
  display: flex;
  gap: 20px;
}

.footer-social {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all var(--duration-base);
}

.footer-social:hover {
  border-color: var(--border-accent);
  background: var(--gold-dim);
}

/* ─────────────────────────────────────────
   SCROLL REVEAL
   ───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: perspective(1000px) rotateX(10deg) translateY(40px) scale(0.95);
  filter: blur(10px) brightness(1.5);
  transition: opacity 0.8s var(--ease-cinematic),
              transform 0.8s var(--ease-cinematic),
              filter 0.8s var(--ease-cinematic);
}

.reveal.visible {
  opacity: 1;
  transform: perspective(1000px) rotateX(0deg) translateY(0) scale(1);
  filter: blur(0) brightness(1);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ─────────────────────────────────────────
   UTILITIES
   ───────────────────────────────────────── */
.text-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-glass), transparent);
  margin: 80px 0;
}

/* ─────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────── */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-card.featured { grid-column: span 1; }
  .process-steps { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .process-steps::before { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  :root {
    --section-pad: 80px;
    --section-pad-sm: 60px;
  }

  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-inner { padding: 0 24px; }
  .container { padding: 0 24px; }

  .hero-content { padding: 0 24px; margin-top: 80px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; justify-content: center; max-width: 320px; }

  .services-grid { grid-template-columns: 1fr; gap: 16px; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; gap: 32px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .cta-actions { flex-direction: column; align-items: center; }
  .cta-actions .btn { width: 100%; max-width: 320px; justify-content: center; }

  .cursor-dot, .cursor-ring, .cursor-glow { display: none; }
  body { cursor: auto; }
  button { cursor: pointer; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .portfolio-filters { gap: 6px; }
  .filter-btn { padding: 7px 14px; font-size: 10px; }
}
