/* ============================================================
   GeorgeSiteDev — freelance-site
   Design system: "Aurora: Luminous Violet" (neon)
   Production tokens live in this file; design-system/ documents their usage.
   ------------------------------------------------------------
   Sections:
   01 Tokens (dark default + light theme)
   02 Base & typography
   03 Background layers (weave pattern, glows, grain)
   04 Header & navigation
   05 Atoms: buttons, chips, pills, eyebrow
   06 Hero
   07 Section titles
   08 Services
   09 Packages
   10 Portfolio
   11 Process (how it works)
   12 Requirements checklist
   13 FAQ
   14 Contact & form
   15 Footer, scroll-top, preloader
   16 Responsive
   ============================================================ */

/* ============ 01 TOKENS ============ */
:root {
  --font-display: 'Nunito', system-ui, sans-serif;
  --font-sans:    'Nunito', system-ui, -apple-system, sans-serif;
  --font-mono:    'Nunito', system-ui, sans-serif;

  --bg-0:      #15122B;
  --bg-1:      #1C1838;
  --bg-2:      #262048;
  --bg-3:      #322A5C;
  --bg-inset:  #100D22;
  --bg-scrim:  rgba(12, 9, 26, 0.74);

  --glass:      rgba(255, 255, 255, 0.07);
  --glass-2:    rgba(255, 255, 255, 0.11);
  --glass-line: rgba(255, 255, 255, 0.28);
  --glass-hi:   rgba(255, 255, 255, 0.30);
  --glass-blur: 13px;
  --glass-border-w: 1.5px;
  --shadow-glass: 0 1px 0 var(--glass-hi) inset, 0 0 0 1px rgba(255,255,255,0.04), 0 18px 50px rgba(0,0,0,0.40), 0 0 60px rgba(255,255,255,0.05);

  --line-soft:   rgba(255, 255, 255, 0.06);
  --line:        rgba(255, 255, 255, 0.11);
  --line-strong: rgba(255, 255, 255, 0.20);

  --fg-1: #F3EEFF;
  --fg-2: #C7BFE2;
  --fg-3: #948CB6;
  --fg-4: #645C86;

  --warm-grad:      linear-gradient(135deg, #C18CFF 0%, #8B6BFF 48%, #6E7BFF 100%);
  --warm-grad-soft: linear-gradient(135deg, #9F7CFF 0%, #6E7BFF 100%);
  --on-brand:       #FFFFFF;
  --v-light:  #B79CFF;
  --violet:      #8B6BFF;
  --violet-deep: #6E7BFF;
  --violet-dim:  rgba(139, 111, 255, 0.20);

  --amber:        #FFD45E;
  --amber-bright: #FFE390;
  --amber-deep:   #E8B53A;
  --on-spark:     #15122B;
  --amber-dim:    rgba(255, 212, 94, 0.15);
  --amber-line:   rgba(255, 212, 94, 0.42);

  --coral:      #D77BF5;
  --coral-deep: #B45FE0;
  --coral-dim:  rgba(215, 123, 245, 0.15);

  --online:     #58D6A6;
  --online-dim: rgba(88, 214, 166, 0.16);
  --warn:       #FFC24D;
  --warn-dim:   rgba(255, 194, 77, 0.16);
  --danger:     #FF6B8A;
  --danger-dim: rgba(255, 107, 138, 0.16);
  --info:       var(--violet);

  --glow-amber:  radial-gradient(60% 60% at 50% 40%, rgba(255,212,94,0.16), rgba(255,212,94,0) 70%);
  --glow-coral:  radial-gradient(55% 55% at 50% 50%, rgba(215,123,245,0.22), rgba(215,123,245,0) 72%);
  --glow-violet: radial-gradient(60% 60% at 50% 50%, rgba(139,107,255,0.24), rgba(139,107,255,0) 72%);

  --shadow-sm: 0 2px 8px rgba(8, 5, 24, 0.45);
  --shadow-md: 0 10px 34px rgba(8, 5, 24, 0.50);
  --shadow-lg: 0 28px 70px rgba(8, 5, 24, 0.58);
  --shadow-glow: 0 10px 44px rgba(139, 107, 255, 0.40);

  --r-xs:   8px;  --r-sm:  12px;  --r-md: 16px;  --r-lg: 22px;
  --r-xl:  28px;  --r-2xl: 36px;  --r-full: 999px;

  --sp-1: 4px;   --sp-2: 8px;   --sp-3: 12px;  --sp-4: 16px;
  --sp-5: 20px;  --sp-6: 24px;  --sp-8: 32px;  --sp-10: 40px;
  --sp-12: 48px; --sp-16: 64px; --sp-20: 80px; --sp-24: 96px;

  --t-display-xl: clamp(44px, 5.2vw, 64px);
  --t-display:    clamp(40px, 4.6vw, 56px);
  --t-h1:         clamp(32px, 3.4vw, 42px);
  --t-h2: 28px;  --t-h3: 22px;  --t-h4: 18px;
  --t-body-lg: 18px; --t-body: 16px; --t-body-sm: 14px;
  --t-caption: 13px; --t-eyebrow: 12px;

  --ease-out:  cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0.0, 0.2, 1);
  --dur-fast: 140ms; --dur: 240ms; --dur-slow: 420ms;

  --focus-ring: 0 0 0 2px var(--bg-0), 0 0 0 4px var(--violet);
  --maxw: 1180px;
  --header-scroll-offset: 84px;
  --grain-opacity: 0.035;

  /* brand pattern: assets/img/Pattern.png (gradient capsule weave) */
  --pattern-opacity: 1;
}

[data-theme="light"] {
  --bg-0: #EBE7F8; --bg-1: #F4F1FC; --bg-2: #FFFFFF; --bg-3: #F1ECFB; --bg-inset: #E8E3F6;
  --bg-scrim: rgba(40, 28, 80, 0.34);

  --glass:      rgba(255, 255, 255, 0.55);
  --glass-2:    rgba(255, 255, 255, 0.72);
  --glass-line: rgba(255, 255, 255, 0.85);
  --glass-hi:   rgba(255, 255, 255, 0.95);
  --shadow-glass: 0 1px 0 var(--glass-hi) inset, 0 0 0 1px rgba(110,80,210,0.06), 0 18px 44px rgba(80,54,160,0.16), 0 0 50px rgba(255,255,255,0.5);

  --line-soft:   rgba(60, 38, 130, 0.07);
  --line:        rgba(60, 38, 130, 0.13);
  --line-strong: rgba(60, 38, 130, 0.22);

  --fg-1: #221A3A; --fg-2: #564C72; --fg-3: #897FAA; --fg-4: #ADA4C8;

  --on-spark: #221A3A;

  --shadow-sm: 0 2px 8px rgba(80, 54, 160, 0.10);
  --shadow-md: 0 10px 30px rgba(80, 54, 160, 0.13);
  --shadow-lg: 0 26px 60px rgba(80, 54, 160, 0.18);
  --shadow-glow: 0 12px 40px rgba(139, 107, 255, 0.34);

  --amber-dim: rgba(232, 170, 30, 0.16);
  --amber-line: rgba(220, 160, 30, 0.42);
  --online-dim: rgba(40, 170, 120, 0.16);

  --glow-amber:  radial-gradient(60% 60% at 50% 40%, rgba(255,206,80,0.30), rgba(255,206,80,0) 70%);
  --glow-coral:  radial-gradient(55% 55% at 50% 50%, rgba(215,123,245,0.26), rgba(215,123,245,0) 72%);
  --glow-violet: radial-gradient(60% 60% at 50% 50%, rgba(139,107,255,0.26), rgba(139,107,255,0) 72%);

  --pattern-opacity: 0.16;
  --grain-opacity: 0.018;
}

/* Light-theme override: explicit rgba fallbacks for color-mix() usage */
[data-theme="light"] .header {
  background: rgba(235, 231, 248, 0.72);
  background: color-mix(in srgb, var(--bg-0) 72%, transparent);
}
[data-theme="light"] .footer {
  background: rgba(235, 231, 248, 0.80);
  background: color-mix(in srgb, var(--bg-0) 80%, transparent);
}

/* ============ 02 BASE & TYPOGRAPHY ============ */
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: var(--header-scroll-offset); }

body {
  margin: 0;
  background: var(--bg-0);
  color: var(--fg-1);
  font-family: var(--font-sans);
  font-size: var(--t-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--fg-1);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 700;
  text-wrap: balance;
}

p { color: var(--fg-2); line-height: 1.65; text-wrap: pretty; }
a { color: var(--violet); text-decoration: none; transition: color var(--dur) var(--ease-out); }
a:hover { color: var(--v-light); }

::selection { background: rgba(139, 107, 255, 0.34); color: var(--fg-1); }
:focus-visible { outline: none; box-shadow: var(--focus-ring); }

.display-xl {
  font-family: var(--font-display);
  font-size: var(--t-display-xl);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

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

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--t-eyebrow);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
}
[data-theme="light"] .eyebrow { color: var(--amber-deep); }

.lead { font-size: var(--t-body-lg); color: var(--fg-2); line-height: 1.6; }
.caption { font-size: var(--t-caption); color: var(--fg-3); }

/* Frosted glass utility */
.glass {
  background: var(--glass);
  backdrop-filter: blur(var(--glass-blur)) saturate(135%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(135%);
  border: var(--glass-border-w) solid var(--glass-line);
  box-shadow: var(--shadow-glass);
}

/* ============ 03 BACKGROUND LAYERS ============ */
/* Brand pattern: gradient capsule weave image, fixed behind everything */
.site-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: var(--bg-0) url("../img/Pattern.png") center / cover no-repeat;
  opacity: var(--pattern-opacity);
  pointer-events: none;
}
.site-bg::after {
  /* soften the pattern toward the edges so content stays readable */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 50% 0%, rgba(12,9,26,0) 40%, var(--bg-scrim) 100%);
}
[data-theme="light"] .site-bg::after { background: none; }

.site-glow {
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}
.site-glow--violet { width: 640px; height: 640px; right: -180px; top: -240px; background: var(--glow-violet); }
.site-glow--coral  { width: 560px; height: 560px; left: -220px; bottom: -280px; background: var(--glow-coral); }

.grain::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* ============ 04 HEADER & NAVIGATION ============ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  background: rgba(21, 18, 43, 0.72); /* fallback for older browsers */
  background: color-mix(in srgb, var(--bg-0) 72%, transparent);
  border-bottom: 1px solid var(--line-soft);
}

.header .header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--fg-1);
}
.logo:hover { color: var(--fg-1); }
.logo .logo-mark {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--warm-grad);
  box-shadow: var(--shadow-glow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.logo .logo-mark::after {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bg-0);
}
.logo .logo-accent { color: var(--violet); }

.navmenu ul {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.navmenu a {
  display: inline-block;
  padding: 8px 13px;
  border-radius: var(--r-full);
  color: var(--fg-2);
  font-size: 15px;
  font-weight: 500;
  transition: color var(--dur) var(--ease-out), background var(--dur) var(--ease-out);
}
.navmenu a:hover { color: var(--fg-1); background: var(--glass); }
.navmenu a.active { color: var(--fg-1); background: var(--glass-2); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Language switcher — segmented pill */
.lang-switch {
  display: inline-flex;
  background: var(--bg-inset);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  padding: 3px;
}
.lang-switch button {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--r-full);
  border: none;
  cursor: pointer;
  background: transparent;
  color: var(--fg-3);
  transition: all var(--dur) var(--ease-out);
}
.lang-switch button.active {
  background: var(--warm-grad);
  color: var(--on-brand);
}

/* Theme toggle */
.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--fg-1);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: all var(--dur) var(--ease-out);
}
.theme-toggle:hover { background: var(--bg-3); border-color: var(--line-strong); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--fg-1);
  font-size: 22px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* ============ 05 ATOMS ============ */
.btn-neon,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-sans);
  font-weight: 600;
  border-radius: var(--r-full);
  cursor: pointer;
  transition: all var(--dur) var(--ease-out);
  text-decoration: none;
}

.btn-neon {
  background: var(--warm-grad);
  color: var(--on-brand);
  border: 1px solid transparent;
  box-shadow: var(--shadow-glow);
  padding: 14px 28px;
  font-size: 16px;
}
.btn-neon:hover {
  color: var(--on-brand);
  box-shadow: 0 10px 50px rgba(139, 107, 255, 0.5);
  transform: translateY(-1px);
}
.btn-neon:active { transform: scale(0.98); }
.btn-neon--sm { padding: 10px 20px; font-size: 14px; }

.btn-ghost {
  background: var(--bg-2);
  color: var(--fg-1);
  border: 1px solid var(--line-strong);
  padding: 14px 28px;
  font-size: 16px;
}
.btn-ghost:hover { background: var(--bg-3); color: var(--fg-1); }
.btn-ghost:active { transform: scale(0.98); }

.chip {
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--r-full);
  padding: 8px 15px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--fg-2);
  background: var(--bg-2);
  border: 1px solid var(--line);
}
.chip i { color: var(--amber); font-size: 14px; }

.online-pill {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--online);
  background: var(--online-dim);
  border: 1px solid rgba(88, 214, 166, 0.3);
  border-radius: var(--r-full);
  padding: 5px 10px;
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 6px;
  margin: -6px 0 20px;
}
.online-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--online);
  animation: pulse-dot 2.2s var(--ease-soft) infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(88, 214, 166, 0.45); }
  50%      { box-shadow: 0 0 0 6px rgba(88, 214, 166, 0); }
}

/* ============ 05B LIGHTWEIGHT MOTION ============ */
html.motion-safe [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition:
    opacity var(--dur-slow) var(--ease-out),
    transform var(--dur-slow) var(--ease-out);
  will-change: opacity, transform;
}

html.motion-safe [data-reveal].is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

html.motion-safe [data-reveal-delay="100"] { transition-delay: 100ms; }
html.motion-safe [data-reveal-delay="150"] { transition-delay: 150ms; }
html.motion-safe [data-reveal-delay="200"] { transition-delay: 200ms; }
html.motion-safe [data-reveal-delay="250"] { transition-delay: 250ms; }
html.motion-safe [data-reveal-delay="300"] { transition-delay: 300ms; }
html.motion-safe [data-reveal-delay="350"] { transition-delay: 350ms; }
html.motion-safe [data-reveal-delay="400"] { transition-delay: 400ms; }

html.motion-reduce [data-reveal],
html.motion-safe [data-reveal="none"] {
  opacity: 1;
  transform: none;
  transition: none;
}

html.motion-safe .text-gradient {
  background-size: 140% 140%;
  animation: gradient-drift 9s ease-in-out infinite;
}

@keyframes gradient-drift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
/* ============ 06 HERO ============ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0 96px;
}
.hero .container { position: relative; }

.hero h2 { margin: 18px 0 8px; }
.hero .lead { max-width: 520px; margin: 22px 0 26px; }

.hero-chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }

.hero-card {
  border-radius: var(--r-2xl);
  padding: 30px;
}
.hero-card h3 { font-size: 24px; margin: 14px 0 10px; }
.hero-card > p { margin-bottom: 22px; font-size: 15px; }

.hero-card .availability {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-inset);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 16px;
}
.hero-card .availability .avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--warm-grad-soft);
  color: var(--on-brand);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.hero-card .availability .avail-title { font-weight: 600; color: var(--fg-1); }
.hero-card .availability .avail-note { font-family: var(--font-mono); font-size: 12px; color: var(--fg-3); }
.hero-card .availability .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--online);
  animation: pulse-dot 2.2s var(--ease-soft) infinite;
  flex: none;
}

/* ============ 07 SECTION TITLES ============ */
.section { padding: 40px 0 80px; position: relative; }

.section-title { text-align: left; padding-bottom: 36px; }
.section-title h2 {
  font-size: var(--t-h1);
  margin: 14px 0 10px;
  max-width: 620px;
}
.section-title p { max-width: 560px; font-size: var(--t-body-lg); margin: 0; }

/* ============ 08 SERVICES ============ */
.service-item {
  border-radius: var(--r-lg);
  padding: 26px;
  height: 100%;
  transition: transform var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.service-item:hover { transform: translateY(-3px); border-color: var(--amber-line); }
.service-item .icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-sm);
  background: var(--violet-dim);
  color: var(--v-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
}
.service-item .title { font-size: 19px; margin-bottom: 8px; }
.service-item .description { font-size: 15px; margin: 0; }

/* ============ 09 PACKAGES ============ */
.package-card {
  border-radius: var(--r-lg);
  padding: 30px 28px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.package-card:hover { transform: translateY(-3px); border-color: var(--amber-line); }
.package-card .package-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 12px;
}
.package-card h3 { font-size: 22px; margin-bottom: 10px; }
.package-card > p { font-size: 15px; margin-bottom: 18px; }
.package-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: grid;
  gap: 10px;
}
.package-card ul li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--fg-2);
  font-size: 15px;
}
.package-card ul li::before {
  content: "✓";
  color: var(--online);
  font-weight: 700;
  flex: none;
}
.package-card .btn-neon,
.package-card .btn-ghost { margin-top: auto; }

.package-card--featured {
  border-color: var(--amber-line);
  box-shadow: var(--shadow-glass), var(--shadow-glow);
  position: relative;
}
.package-card--featured .package-eyebrow { color: var(--amber); }

/* ============ 10 PORTFOLIO ============ */
.portfolio-item .portfolio-content {
  border-radius: var(--r-lg);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.portfolio-item .portfolio-content:hover { transform: translateY(-3px); border-color: var(--amber-line); }
.portfolio-item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
  display: block;
  border-bottom: 1px solid var(--line-soft);
}
.portfolio-item .portfolio-info {
  padding: 20px 22px 24px;
  flex: 1;
}
.portfolio-item .portfolio-link { color: inherit; text-decoration: none; }
.portfolio-item .portfolio-link:hover { color: inherit; }
.portfolio-item .portfolio-info h4 { font-size: 18px; margin-bottom: 6px; }
.portfolio-item .portfolio-info p { font-size: 14px; color: var(--fg-3); margin: 0 0 12px; }
.portfolio-item .portfolio-info .portfolio-more {
  font-size: 14px;
  font-weight: 600;
  color: var(--violet);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.portfolio-item .portfolio-content:hover .portfolio-more { color: var(--v-light); }

/* ============ 11 PROCESS ============ */
.step-card {
  border-radius: var(--r-lg);
  padding: 26px;
  height: 100%;
  transition: transform var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.step-card:hover { transform: translateY(-3px); border-color: var(--amber-line); }
.step-card .step-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  color: var(--amber);
  display: block;
  margin-bottom: 26px;
}
.step-card h3 { font-size: 19px; margin-bottom: 8px; }
.step-card p { font-size: 15px; margin: 0; }

/* ============ 12 REQUIREMENTS ============ */
.requirements-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.requirements-grid > div {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border-radius: var(--r-md);
  padding: 16px 18px;
  color: var(--fg-2);
  font-size: 15px;
}
.requirements-grid i { color: var(--online); font-size: 18px; line-height: 1.4; }

/* ============ 13 FAQ ============ */
.faq-list { display: grid; gap: 12px; max-width: 820px; }

.faq-item { border-radius: var(--r-md); overflow: hidden; }
.faq-item h3 {
  font-size: 17px;
  margin: 0;
  padding: 18px 52px 18px 22px;
  cursor: pointer;
  position: relative;
  transition: color var(--dur) var(--ease-out);
}
.faq-item h3:hover { color: var(--v-light); }
.faq-item h3::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--amber);
  transition: transform var(--dur) var(--ease-out);
}
.faq-item.faq-open h3::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p {
  max-height: 0;
  overflow: hidden;
  margin: 0;
  padding: 0 22px;
  font-size: 15px;
  transition: max-height var(--dur-slow) var(--ease-out), padding var(--dur) var(--ease-out);
}
.faq-item.faq-open p { max-height: 300px; padding: 0 22px 20px; }

/* ============ 14 CONTACT & FORM ============ */
.contact .info-wrap {
  border-radius: var(--r-lg);
  padding: 28px;
  height: 100%;
}
.contact .info-item { display: flex; gap: 16px; margin-bottom: 24px; }
.contact .info-item i {
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  background: var(--violet-dim);
  color: var(--v-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  flex: none;
}
.contact .info-item h3 { font-size: 16px; margin-bottom: 2px; }
.contact .info-item p { font-size: 15px; margin: 0; color: var(--fg-2); }

.php-email-form {
  border-radius: var(--r-lg);
  padding: 30px 28px;
}
.php-email-form label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--fg-1);
  margin-bottom: 6px;
}
.php-email-form .form-control {
  width: 100%;
  background: var(--bg-inset);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  color: var(--fg-1);
  font-family: var(--font-sans);
  font-size: 15px;
  padding: 12px 16px;
  transition: border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.php-email-form .form-control::placeholder { color: var(--fg-4); }
.php-email-form .form-control:focus {
  outline: none;
  background: var(--bg-inset);
  color: var(--fg-1);
  border-color: var(--violet);
  box-shadow: 0 0 0 3px var(--violet-dim);
}
.php-email-form select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23948CB6' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.php-email-form select.form-control option { background: var(--bg-1); color: var(--fg-1); }
.php-email-form textarea.form-control { resize: vertical; min-height: 140px; }

.php-email-form button[type="submit"] {
  background: var(--warm-grad);
  color: var(--on-brand);
  border: none;
  border-radius: var(--r-full);
  padding: 14px 34px;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-glow);
  transition: all var(--dur) var(--ease-out);
}
.php-email-form button[type="submit"]:hover {
  box-shadow: 0 10px 50px rgba(139, 107, 255, 0.5);
  transform: translateY(-1px);
}
.php-email-form button[type="submit"]:active { transform: scale(0.98); }

.php-email-form .loading,
.php-email-form .error-message,
.php-email-form .sent-message {
  display: none;
  border-radius: var(--r-md);
  padding: 12px 18px;
  margin-bottom: 18px;
  font-size: 15px;
  text-align: left;
}
.php-email-form .loading { background: var(--bg-2); color: var(--fg-2); }
.php-email-form .error-message { background: var(--danger-dim); color: var(--danger); }
.php-email-form .sent-message { background: var(--online-dim); color: var(--online); }

/* ============ 15 FOOTER, SCROLL-TOP, PRELOADER ============ */
.footer {
  border-top: 1px solid var(--line-soft);
  padding: 32px 0;
  background: rgba(21, 18, 43, 0.80); /* fallback for older browsers */
  background: color-mix(in srgb, var(--bg-0) 80%, transparent);
}
.footer .footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer .copyright { font-size: 14px; color: var(--fg-3); margin: 0; }
.footer .social-links { display: flex; gap: 10px; }
.footer .social-links a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--fg-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all var(--dur) var(--ease-out);
}
.footer .social-links a:hover { color: var(--fg-1); background: var(--bg-3); border-color: var(--line-strong); }

.scroll-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--warm-grad);
  color: var(--on-brand);
  box-shadow: var(--shadow-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  visibility: hidden;
  opacity: 0;
  transition: all var(--dur-slow) var(--ease-out);
}
.scroll-top:hover { color: var(--on-brand); transform: translateY(-2px); }
.scroll-top.active { visibility: visible; opacity: 1; }

#preloader {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-0);
  display: flex;
  align-items: center;
  justify-content: center;
}
#preloader::after {
  content: "";
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid var(--bg-3);
  border-top-color: var(--violet);
  animation: preloader-spin 0.9s linear infinite;
}
@keyframes preloader-spin { to { transform: rotate(360deg); } }

/* ============ 16 RESPONSIVE ============ */
@media (max-width: 1199px) {
  .navmenu a { padding: 8px 10px; font-size: 14px; }
}

@media (max-width: 991px) {
  .nav-toggle { display: inline-flex; }
  :root { --header-scroll-offset: 72px; }
  .header .header-inner { padding: 12px 16px; }
  .header-actions { gap: 6px; }
  .lang-switch button { padding: 4px 9px; }
  .navmenu {
    position: fixed;
    inset: 0;
    z-index: 99;
    background: var(--bg-scrim);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: none;
  }
  .navmenu.nav-open { display: block; }
  .navmenu ul {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    margin: 84px 20px 0;
    background: var(--bg-1);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 14px;
    box-shadow: var(--shadow-lg);
  }
  .navmenu a { display: block; padding: 12px 16px; font-size: 16px; }

  .hero { padding: 56px 0 64px; }
  .hero-card { margin-top: 36px; }
  .requirements-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 28px 0 56px; }
  .section-title h2 { font-size: clamp(28px, 7vw, 36px); }
  .section-title p { font-size: 16px; }
  .hero .lead { font-size: 16px; }
  .hero-cta .btn-neon,
  .hero-cta .btn-ghost { width: 100%; }
  .php-email-form { padding: 22px 18px; }
  .contact .info-wrap { padding: 22px 18px; }
  /* cheaper blur on mobile — scroll performance */
  .glass, .header { backdrop-filter: blur(5px) saturate(130%); -webkit-backdrop-filter: blur(5px) saturate(130%); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .text-gradient { animation: none !important; }
}

/* ============ Detail pages ============ */
.detail-hero { padding: 26px 0 2px; }
.detail-hero .section-title { padding-bottom: 7px; }
.detail-hero .breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 14px;
}
.detail-hero .breadcrumbs a { color: var(--fg-3); }
.detail-hero .breadcrumbs a:hover { color: var(--v-light); }
.detail-hero .breadcrumbs .current { color: var(--amber); }
.detail-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 2.8vw, 34px);
  max-width: 720px;
  margin: 0;
}
.portfolio-details { padding-top: 3px; }

.detail-gallery {
  border-radius: var(--r-lg);
  padding: 14px;
  overflow: hidden;
}
.detail-gallery .swiper { border-radius: var(--r-md); overflow: hidden; clip-path: inset(0 round var(--r-md)); }
.detail-gallery .swiper-slide { border-radius: var(--r-md); overflow: hidden; background: var(--bg-0); }
.glightbox-container .gslide-image img { border-radius: 0; }
.detail-gallery .swiper-slide img,
.detail-gallery .swiper-slide video {
  width: 100%;
  height: 420px;
  display: block;
  border-radius: var(--r-md);
}
.detail-gallery .swiper-slide img {
  object-fit: contain;
  object-position: center;
  background: var(--bg-0);
  cursor: zoom-in;
}
.detail-gallery .swiper-slide video {
  object-fit: contain;
  background: var(--bg-0);
}
.detail-gallery .swiper-pagination-bullet {
  background: var(--fg-4);
  opacity: 0.6;
}
.detail-gallery .swiper-pagination-bullet-active {
  background: var(--violet);
  opacity: 1;
}

.detail-content { display: grid; gap: 20px; }
.detail-card {
  border-radius: var(--r-lg);
  padding: 26px 28px;
}
.detail-card h2 { font-size: var(--t-h2); margin-bottom: 14px; }
.detail-card p { font-size: 15px; margin: 0 0 14px; }
.detail-card p:last-child { margin-bottom: 0; }
.detail-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.detail-card ul li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--fg-2);
  font-size: 15px;
}
.detail-card ul li::before {
  content: "✓";
  color: var(--online);
  font-weight: 700;
  flex: none;
}
.detail-card .btn-neon,
.detail-card .btn-ghost { margin-top: 6px; }

.project-info {
  border-radius: var(--r-lg);
  padding: 26px 28px;
}
.project-info h3 { font-size: var(--t-h4); margin-bottom: 16px; }
.project-info ul { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 12px; }
.project-info ul li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
}
.project-info ul li:last-child { border-bottom: none; padding-bottom: 0; }
.project-info ul li .label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.project-info ul li .value { color: var(--fg-1); }
.project-info ul li .value a { color: var(--violet); }
.project-info ul li .value a:hover { color: var(--v-light); }
.project-info > a.btn-neon,
.project-info > a.btn-ghost { width: 100%; margin-top: 4px; }

@media (max-width: 768px) {
  .detail-hero { padding: 22px 0 1px; }
  .detail-gallery { padding: 10px; }
  .detail-gallery .swiper-slide img,
  .detail-gallery .swiper-slide video { height: 260px; }
  .detail-card { padding: 20px; }
  .project-info { padding: 20px; }
}

.detail-gallery .swiper-button-prev, .detail-gallery .swiper-button-next { color: var(--fg-1); }
