/* =====================================================================
   01. CSS Reset & Box-Sizing
   ===================================================================== */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =====================================================================
   02. Root Variables
   ===================================================================== */

:root {
  --bg-primary: #07070d;
  --bg-secondary: #0b0b14;
  --bg-tertiary: #0f0f1a;
  --bg-elevated: #13131f;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-hover: rgba(255, 255, 255, 0.06);
  --surface-active: rgba(255, 255, 255, 0.1);
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --border-light: rgba(255, 255, 255, 0.03);
  --text-primary: #e8edf5;
  --text-secondary: #8892a8;
  --text-tertiary: #556075;
  --text-muted: #3a4458;
  --text-inverse: #0f172a;
  --accent-1: #38bdf8;
  --accent-2: #b91c1c;
  --accent-3: #7dd3fc;
  --accent-4: #dc2626;
  --accent-5: #fca5a5;
  --gradient-main: linear-gradient(135deg, #38bdf8, #b91c1c, #7dd3fc);
  --gradient-accent: linear-gradient(135deg, #38bdf8, #b91c1c);
  --gradient-warm: linear-gradient(135deg, #f97316, #e11d48);
  --gradient-cool: linear-gradient(135deg, #06b6d4, #8b5cf6);
  --gradient-green: linear-gradient(135deg, #10b981, #059669);
  --gradient-mono: linear-gradient(135deg, #f0f0f0, #a0a0a0);
  --gradient-vivid: linear-gradient(135deg, #d946ef, #ec4899);
  --aurora-1: #38bdf8;
  --aurora-2: #b91c1c;
  --aurora-3: #7dd3fc;
  --aurora-4: #dc2626;
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-2xl: 48px;
  --radius-full: 9999px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-display: 'Space Grotesk', sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-fast: 0.2s var(--ease-smooth);
  --transition-medium: 0.3s var(--ease-smooth);
  --transition-base: 0.4s var(--ease-smooth);
  --transition-slow: 0.6s var(--ease-out);
  --transition-spring: 0.5s var(--ease-spring);
  --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.2);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(56, 189, 248, 0.12);
  --shadow-glow-hover: 0 0 60px rgba(56, 189, 248, 0.2);
  --shadow-glow-strong: 0 0 80px rgba(56, 189, 248, 0.25);
  --section-padding: 140px 24px;
  --section-max-width: 1200px;
  --content-max-width: 800px;
  --nav-height: 70px;
  --cursor-x: 0px;
  --cursor-y: 0px;
}

/* =====================================================================
   03. Background Theme Variations (6 themes)
   ===================================================================== */

[data-bg="default"] {
  --bg-primary: #07070d;
  --bg-secondary: #0b0b14;
  --bg-tertiary: #0f0f1a;
  --bg-elevated: #13131f;
  --accent-1: #38bdf8;
  --accent-2: #b91c1c;
  --accent-3: #7dd3fc;
  --accent-4: #dc2626;
  --accent-5: #fca5a5;
  --gradient-main: linear-gradient(135deg, #38bdf8, #b91c1c, #7dd3fc);
  --gradient-accent: linear-gradient(135deg, #38bdf8, #b91c1c);
  --aurora-1: #38bdf8;
  --aurora-2: #b91c1c;
  --aurora-3: #7dd3fc;
  --aurora-4: #dc2626;
  --shadow-glow: 0 0 40px rgba(56, 189, 248, 0.12);
  --shadow-glow-hover: 0 0 60px rgba(56, 189, 248, 0.2);
  --shadow-glow-strong: 0 0 80px rgba(56, 189, 248, 0.25);
}

[data-bg="background1"] {
  --bg-primary: #0c0805;
  --bg-secondary: #120b06;
  --bg-tertiary: #1a0f08;
  --bg-elevated: #221408;
  --accent-1: #f97316;
  --accent-2: #e11d48;
  --accent-3: #fbbf24;
  --accent-4: #fb923c;
  --accent-5: #f59e0b;
  --gradient-main: linear-gradient(135deg, #f97316, #e11d48, #fbbf24);
  --gradient-accent: linear-gradient(135deg, #f97316, #e11d48);
  --aurora-1: #f97316;
  --aurora-2: #e11d48;
  --aurora-3: #fbbf24;
  --aurora-4: #fb923c;
  --shadow-glow: 0 0 40px rgba(249, 115, 22, 0.12);
  --shadow-glow-hover: 0 0 60px rgba(249, 115, 22, 0.2);
  --shadow-glow-strong: 0 0 80px rgba(249, 115, 22, 0.25);
}

[data-bg="background2"] {
  --bg-primary: #050c08;
  --bg-secondary: #07120c;
  --bg-tertiary: #0a1a10;
  --bg-elevated: #0d2414;
  --accent-1: #10b981;
  --accent-2: #059669;
  --accent-3: #34d399;
  --accent-4: #6ee7b7;
  --accent-5: #f59e0b;
  --gradient-main: linear-gradient(135deg, #10b981, #059669, #34d399);
  --gradient-accent: linear-gradient(135deg, #10b981, #059669);
  --aurora-1: #10b981;
  --aurora-2: #059669;
  --aurora-3: #34d399;
  --aurora-4: #6ee7b7;
  --shadow-glow: 0 0 40px rgba(16, 185, 129, 0.12);
  --shadow-glow-hover: 0 0 60px rgba(16, 185, 129, 0.2);
  --shadow-glow-strong: 0 0 80px rgba(16, 185, 129, 0.25);
}

[data-bg="background3"] {
  --bg-primary: #0a0510;
  --bg-secondary: #100718;
  --bg-tertiary: #180a24;
  --bg-elevated: #200d30;
  --accent-1: #d946ef;
  --accent-2: #ec4899;
  --accent-3: #a855f7;
  --accent-4: #f0abfc;
  --accent-5: #f472b6;
  --gradient-main: linear-gradient(135deg, #d946ef, #ec4899, #a855f7);
  --gradient-accent: linear-gradient(135deg, #d946ef, #ec4899);
  --aurora-1: #d946ef;
  --aurora-2: #ec4899;
  --aurora-3: #a855f7;
  --aurora-4: #f0abfc;
  --shadow-glow: 0 0 40px rgba(217, 70, 239, 0.12);
  --shadow-glow-hover: 0 0 60px rgba(217, 70, 239, 0.2);
  --shadow-glow-strong: 0 0 80px rgba(217, 70, 239, 0.25);
}

[data-bg="background4"] {
  --bg-primary: #080808;
  --bg-secondary: #0d0d0d;
  --bg-tertiary: #141414;
  --bg-elevated: #1a1a1a;
  --accent-1: #f0f0f0;
  --accent-2: #a0a0a0;
  --accent-3: #666666;
  --accent-4: #cccccc;
  --accent-5: #999999;
  --gradient-main: linear-gradient(135deg, #f0f0f0, #a0a0a0, #666666);
  --gradient-accent: linear-gradient(135deg, #f0f0f0, #a0a0a0);
  --aurora-1: #f0f0f0;
  --aurora-2: #a0a0a0;
  --aurora-3: #666666;
  --aurora-4: #cccccc;
  --shadow-glow: 0 0 40px rgba(255, 255, 255, 0.08);
  --shadow-glow-hover: 0 0 60px rgba(255, 255, 255, 0.12);
  --shadow-glow-strong: 0 0 80px rgba(255, 255, 255, 0.15);
}

[data-bg="background5"] {
  --bg-primary: #050510;
  --bg-secondary: #080818;
  --bg-tertiary: #0c0c20;
  --bg-elevated: #101028;
  --accent-1: #6366f1;
  --accent-2: #a855f7;
  --accent-3: #818cf8;
  --accent-4: #c084fc;
  --accent-5: #e879f9;
  --gradient-main: linear-gradient(135deg, #6366f1, #a855f7, #818cf8);
  --gradient-accent: linear-gradient(135deg, #6366f1, #a855f7);
  --aurora-1: #6366f1;
  --aurora-2: #a855f7;
  --aurora-3: #818cf8;
  --aurora-4: #c084fc;
  --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.12);
  --shadow-glow-hover: 0 0 60px rgba(99, 102, 241, 0.2);
  --shadow-glow-strong: 0 0 80px rgba(99, 102, 241, 0.25);
}

/* =====================================================================
   04. Theme Transition
   ===================================================================== */

html.is-theme-transitioning main,
html.is-theme-transitioning nav,
html.is-theme-transitioning .bg-panel,
html.is-theme-transitioning #loader,
html.is-theme-transitioning .aurora-container,
html.is-theme-transitioning .deco-grid,
html.is-theme-transitioning .deco-shapes {
  opacity: 0 !important;
  transition: opacity 0.15s ease !important;
}

html.is-theme-transitioning .bg-video {
  transition: opacity 0.15s ease !important;
}

body {
  transition: background-color 0.4s ease;
}

/* =====================================================================
   05. HTML & Body Base Styles
   ===================================================================== */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  transition: background var(--transition-slow), color var(--transition-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  opacity: 0;
}

body.loaded {
  opacity: 1;
}

::selection {
  background: rgba(56, 189, 248, 0.25);
  color: #ffffff;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--accent-2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-1); }

:focus-visible {
  outline: 2px solid var(--accent-1);
  outline-offset: 2px;
  border-radius: 4px;
}

/* =====================================================================
   06. Loading Screen
   ===================================================================== */

#loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.loader-ring-set {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-ring-outer {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--accent-1);
  border-right-color: var(--accent-2);
  animation: loaderSpin 0.9s linear infinite;
}

.loader-ring-middle {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-bottom-color: var(--accent-3);
  border-left-color: var(--accent-1);
  animation: loaderSpin 1.2s linear infinite reverse;
}

.loader-ring-inner {
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--accent-2);
  border-right-color: var(--accent-3);
  animation: loaderSpin 0.7s linear infinite;
}

@keyframes loaderSpin {
  to { transform: rotate(360deg); }
}

.loader-text {
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text-tertiary);
  font-weight: 500;
  animation: loaderText 1.5s ease-in-out infinite;
}

@keyframes loaderText {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

.loader-progress {
  width: 180px;
  height: 2px;
  border-radius: 2px;
  background: var(--surface-hover);
  overflow: hidden;
  position: relative;
}

.loader-progress-bar {
  position: absolute;
  left: -40%;
  width: 40%;
  height: 100%;
  border-radius: 2px;
  background: var(--gradient-main);
  animation: loaderProgress 1.4s ease-in-out infinite;
}

@keyframes loaderProgress {
  0% { left: -40%; width: 40%; }
  50% { width: 60%; }
  100% { left: 110%; width: 40%; }
}

/* =====================================================================
   07. Custom Cursor
   ===================================================================== */

#cursor-main {
  position: fixed;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  background: var(--gradient-main);
  mix-blend-mode: difference;
  transition: width 0.35s var(--ease-out), height 0.35s var(--ease-out), opacity 0.3s ease;
  transform: translate(-50%, -50%);
  left: var(--cursor-x);
  top: var(--cursor-y);
  will-change: transform, left, top;
}

#cursor-main.hovering {
  width: 52px;
  height: 52px;
  opacity: 0.55;
}

/* ─── Minecraft + cursor ─── */
.cursor-plus #cursor-main {
  width: 16px;
  height: 16px;
  border-radius: 0;
  background: none;
  border: none;
  margin: -8px 0 0 -8px;
  transition: width 0.2s var(--ease-out), height 0.2s var(--ease-out);
}

.cursor-plus #cursor-main::before,
.cursor-plus #cursor-main::after {
  content: '';
  position: absolute;
  background: rgba(255,255,255,0.8);
  border-radius: 1px;
}

.cursor-plus #cursor-main::before {
  width: 16px;
  height: 2px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.cursor-plus #cursor-main::after {
  width: 2px;
  height: 16px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.cursor-plus #cursor-main.hovering {
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
}

.cursor-plus #cursor-main.hovering::before {
  width: 20px;
}

.cursor-plus #cursor-main.hovering::after {
  height: 20px;
}

.cursor-plus #cursor-ring {
  display: none !important;
}

#cursor-ring {
  position: fixed;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  transition: width 0.5s var(--ease-out), height 0.5s var(--ease-out),
              border-color 0.3s ease, opacity 0.4s ease;
  transform: translate(-50%, -50%);
  left: var(--cursor-x);
  top: var(--cursor-y);
  will-change: transform, left, top;
}

#cursor-ring.hovering {
  width: 70px;
  height: 70px;
  border-color: var(--accent-1);
  opacity: 0.4;
}

#cursor-trail {
  position: fixed;
  pointer-events: none;
  z-index: 99997;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

/* =====================================================================
   08. Particle Canvas
   ===================================================================== */

#particles-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* =====================================================================
   09. Aurora Background Effect
   ===================================================================== */

.aurora-container {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.12;
  animation: auroraDrift 25s ease-in-out infinite;
}

.aurora-blob:nth-child(1) {
  width: 700px; height: 700px;
  background: var(--aurora-1);
  top: -250px; left: -200px;
  animation-delay: 0s;
}

.aurora-blob:nth-child(2) {
  width: 550px; height: 550px;
  background: var(--aurora-2);
  bottom: -200px; right: -180px;
  animation-delay: -8s;
}

.aurora-blob:nth-child(3) {
  width: 400px; height: 400px;
  background: var(--aurora-3);
  top: 55%; left: 55%;
  animation-delay: -16s;
}

.aurora-blob:nth-child(4) {
  width: 300px; height: 300px;
  background: var(--aurora-4);
  top: 20%; right: 10%;
  animation-delay: -5s;
  opacity: 0.06;
}

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

/* =====================================================================
   10. Background Video
   ===================================================================== */

.bg-video {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.bg-video.active {
  opacity: 0.3;
}

/* =====================================================================
   11. Decorative Grid & Shapes
   ===================================================================== */

.deco-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.03;
}

.deco-grid-line {
  position: absolute;
  background: var(--accent-1);
}

.deco-grid-line.horizontal { left: 0; right: 0; height: 1px; }
.deco-grid-line.vertical { top: 0; bottom: 0; width: 1px; }
.deco-grid-line:nth-child(1) { top: 25%; }
.deco-grid-line:nth-child(2) { top: 50%; }
.deco-grid-line:nth-child(3) { top: 75%; }
.deco-grid-line:nth-child(4) { left: 25%; }
.deco-grid-line:nth-child(5) { left: 50%; }
.deco-grid-line:nth-child(6) { left: 75%; }

.deco-shapes {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.deco-shape {
  position: absolute;
  border: 1px solid var(--border);
  border-radius: 50%;
  animation: shapeFloat 30s ease-in-out infinite;
}

.deco-shape:nth-child(1) {
  width: 400px; height: 400px;
  top: -100px; right: -100px;
  animation-delay: 0s;
  border-color: rgba(14, 165, 233, 0.06);
}

.deco-shape:nth-child(2) {
  width: 300px; height: 300px;
  bottom: 10%; left: -80px;
  animation-delay: -10s;
  border-color: rgba(139, 92, 246, 0.05);
}

.deco-shape:nth-child(3) {
  width: 200px; height: 200px;
  top: 40%; right: 5%;
  animation-delay: -20s;
  border-color: rgba(6, 182, 212, 0.04);
}

.deco-shape:nth-child(4) {
  width: 150px; height: 150px;
  bottom: 30%; left: 15%;
  animation-delay: -15s;
  border-color: rgba(245, 158, 11, 0.03);
}

@keyframes shapeFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(20px, -30px) rotate(5deg); }
  50% { transform: translate(-15px, 20px) rotate(-3deg); }
  75% { transform: translate(10px, 15px) rotate(4deg); }
}

/* =====================================================================
   12. Navigation Bar
   ===================================================================== */

nav {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  padding: 0;
  border-radius: var(--radius-full);
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  box-shadow: none;
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 6px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 18px;
  font-weight: 800;
  font-size: 15px;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
  user-select: none;
  margin-right: 4px;
}

.nav-brand-mark {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-brand-diamond {
  width: 14px;
  height: 14px;
  background: var(--gradient-main);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  animation: navDiamondSpin 6s linear infinite;
}

@keyframes navDiamondSpin {
  to { transform: rotate(360deg); }
}

.nav-links-list {
  display: flex;
  gap: 2px;
  list-style: none;
}

.nav-links-list a {
  text-decoration: none;
  color: var(--text-secondary);
  padding: 7px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  transition: all var(--transition-fast);
  position: relative;
  white-space: nowrap;
  letter-spacing: 0.2px;
}

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

.nav-links-list a.nav-active {
  background: rgba(14, 165, 233, 0.12);
  color: var(--accent-1);
}

/* ─── Social Bar in Nav ─── */
.nav-social {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.nav-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  color: var(--text-tertiary);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.nav-social a:hover {
  color: var(--accent-1);
  background: var(--surface-hover);
}

@media (max-width: 768px) {
  .nav-social {
    display: none;
  }
}

.nav-toggle-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 8px 12px;
  border-radius: var(--radius-full);
  font-size: 18px;
  transition: all var(--transition-fast);
  align-items: center;
  justify-content: center;
}

.nav-toggle-btn:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
}

.nav-mobile-dropdown {
  display: none;
}

/* =====================================================================
   13. Background Theme Switcher
   ===================================================================== */

.bg-panel {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  background: rgba(7, 7, 13, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

.bg-panel-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-tertiary);
  font-weight: 600;
  margin-right: 8px;
  padding-right: 10px;
  border-right: 1px solid var(--border);
}

.bg-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  flex-shrink: 0;
}

.bg-dot:hover {
  transform: scale(1.15);
  border-color: var(--text-tertiary);
}

.bg-dot.bg-active {
  border-color: var(--accent-1);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.25);
  transform: scale(1.1);
}

.bg-dot.bg-active::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid var(--accent-1);
  opacity: 0.4;
  animation: bgPulse 2s ease-in-out infinite;
}

@keyframes bgPulse {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.2); opacity: 0; }
}

.bg-dot-default { background: linear-gradient(135deg, #38bdf8, #b91c1c); }
.bg-dot-bg1 { background: linear-gradient(135deg, #f97316, #e11d48); }
.bg-dot-bg2 { background: linear-gradient(135deg, #10b981, #059669); }
.bg-dot-bg3 { background: linear-gradient(135deg, #d946ef, #ec4899); }
.bg-dot-bg4 { background: linear-gradient(135deg, #f0f0f0, #a0a0a0); }
.bg-dot-bg5 { background: linear-gradient(135deg, #6366f1, #a855f7); }

.bg-dot-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) scale(0.8);
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  font-size: 10px;
  color: var(--text-secondary);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-fast);
  font-weight: 500;
}

.bg-dot:hover .bg-dot-tooltip {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

/* =====================================================================
   14. Main Content Wrapper
   ===================================================================== */

main {
  position: relative;
  z-index: 1;
}

/* =====================================================================
   15. Shared Section Styles
   ===================================================================== */

section {
  padding: var(--section-padding);
  max-width: var(--section-max-width);
  margin: 0 auto;
  position: relative;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 16px;
  border-radius: var(--radius-full);
  background: rgba(14, 165, 233, 0.06);
  border: 1px solid rgba(14, 165, 233, 0.1);
  color: var(--accent-1);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 18px;
  position: relative;
}

.section-badge::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-1);
  opacity: 0.7;
}

.section-heading {
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 14px;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -1.5px;
}

.section-sub {
  font-size: clamp(15px, 1.6vw, 17px);
  color: var(--text-secondary);
  max-width: 580px;
  line-height: 1.75;
  font-weight: 400;
}

.section-rule {
  width: 50px;
  height: 3px;
  border-radius: 2px;
  background: var(--gradient-main);
  margin-top: 22px;
  margin-bottom: 12px;
}

/* =====================================================================
   16. Button Styles
   ===================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-base);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.2px;
  font-family: var(--font-sans);
}

.btn-primary {
  background: var(--gradient-main);
  color: #fff;
  box-shadow: 0 4px 24px rgba(14, 165, 233, 0.25);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 36px rgba(14, 165, 233, 0.35);
}

.btn-primary:active {
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

.btn-secondary:active {
  transform: translateY(-1px);
}

.btn-glow-effect {
  position: absolute;
  inset: -2px;
  border-radius: var(--radius-full);
  background: var(--gradient-main);
  z-index: -1;
  opacity: 0;
  transition: opacity var(--transition-base);
  filter: blur(12px);
}

.btn-primary:hover .btn-glow-effect {
  opacity: 1;
}

/* =====================================================================
   17. Hero Section
   ===================================================================== */

#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  padding-bottom: 50px;
  position: relative;
}

.hero-layout {
  width: 100%;
  max-width: 720px;
  position: relative;
}

.hero-text-col {
  position: relative;
  z-index: 2;
  animation: fadeSlideUp 0.9s var(--ease-out) forwards;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  border-radius: var(--radius-full);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 28px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.hero-badge-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-1);
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.4); }
  50% { opacity: 0.8; transform: scale(1.1); box-shadow: 0 0 0 6px rgba(56, 189, 248, 0); }
}

.hero-title {
  font-size: clamp(38px, 6.5vw, 76px);
  font-weight: 900;
  line-height: 1.02;
  margin-bottom: 14px;
  letter-spacing: -2.5px;
}

.hero-title-line {
  display: block;
}

.hero-title-accent {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-role-row {
  font-size: clamp(17px, 2.2vw, 23px);
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-weight: 500;
}

.hero-role-row span {
  color: var(--accent-1);
  position: relative;
}

.hero-role-row span::after {
  content: '|';
  animation: cursorBlink 1s step-end infinite;
  margin-left: 2px;
  font-weight: 300;
  color: var(--accent-1);
}

@keyframes cursorBlink {
  50% { opacity: 0; }
}

.hero-description {
  font-size: clamp(15px, 1.4vw, 17px);
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.85;
  margin-bottom: 38px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 32px;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-tertiary);
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  animation: fadeSlideUp 1s ease-out 1.2s both;
}

.scroll-line-anim {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, var(--accent-1), transparent);
  animation: scrollLineMove 2.2s ease-in-out infinite;
}

@keyframes scrollLineMove {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  50.01% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(25px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =====================================================================
   18. About Section
   ===================================================================== */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-top: 36px;
}

.about-text-content p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 2;
  margin-bottom: 18px;
}

.about-highlight-box {
  font-size: 15px;
  color: var(--accent-1);
  font-weight: 500;
  padding: 18px 24px;
  border-radius: var(--radius-md);
  background: rgba(14, 165, 233, 0.04);
  border-left: 3px solid var(--accent-1);
  margin-top: 8px;
  line-height: 1.7;
}

.about-traits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}

.about-trait {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
  padding: 8px 0;
}

.about-trait-marker {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-1);
  flex-shrink: 0;
  opacity: 0.7;
}

.about-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-content: start;
}

.about-stat-card {
  padding: 28px 22px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: center;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.about-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-main);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.about-stat-card:hover {
  transform: translateY(-6px);
  border-color: rgba(14, 165, 233, 0.15);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.about-stat-card:hover::before {
  opacity: 1;
}

.about-stat-number {
  font-size: 38px;
  font-weight: 800;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.about-stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 8px;
  font-weight: 500;
}

/* =====================================================================
   19. Skills Section
   ===================================================================== */

.skills-matrix {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.skill-block {
  padding: 30px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.skill-block::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-main);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.skill-block:hover {
  border-color: rgba(14, 165, 233, 0.15);
  transform: translateY(-4px);
}

.skill-block:hover::after {
  opacity: 1;
}

.skill-block-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 22px;
  color: var(--accent-1);
  letter-spacing: 0.4px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.skill-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}

.skill-row:last-of-type {
  border-bottom: none;
}

.skill-row-name {
  font-size: 14px;
  font-weight: 500;
}

.skill-row-bar {
  width: 110px;
  height: 5px;
  border-radius: 3px;
  background: var(--surface-hover);
  overflow: hidden;
  flex-shrink: 0;
}

.skill-row-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--gradient-main);
  width: 0;
  transition: width 1.4s var(--ease-out);
}

.skill-row-tag {
  font-size: 11px;
  padding: 3px 11px;
  border-radius: var(--radius-full);
  background: var(--surface-hover);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-weight: 500;
  white-space: nowrap;
}

.skill-row-bar-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* =====================================================================
   20. Project Section
   ===================================================================== */

.project-showcase {
  padding: 48px;
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  margin-top: 40px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
}

.project-showcase::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-main);
}

.project-showcase:hover {
  transform: translateY(-4px);
  border-color: rgba(14, 165, 233, 0.15);
  box-shadow: var(--shadow-glow-hover);
}

.project-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 18px;
}

.project-name {
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 800;
  letter-spacing: -0.8px;
}

.project-badge {
  padding: 6px 18px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  background: rgba(6, 182, 212, 0.07);
  color: var(--accent-3);
  border: 1px solid rgba(6, 182, 212, 0.12);
  letter-spacing: 0.4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.project-badge::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-3);
  animation: badgePulse 2s ease-in-out infinite;
}

.project-description {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.85;
  max-width: 720px;
}

.project-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin: 30px 0;
}

.project-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 14px;
  transition: all var(--transition-fast);
  color: var(--text-secondary);
}

.project-feature-item:hover {
  background: var(--surface-hover);
  border-color: rgba(14, 165, 233, 0.15);
  transform: translateX(5px);
  color: var(--text-primary);
}

.project-feature-marker {
  color: var(--accent-3);
  font-weight: 700;
  font-size: 16px;
}

.project-tech-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.project-tech-tag {
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 500;
  background: rgba(14, 165, 233, 0.05);
  border: 1px solid rgba(14, 165, 233, 0.08);
  color: var(--accent-1);
  font-family: var(--font-mono);
}

/* =====================================================================
   21. Services Section
   ===================================================================== */

.services-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.service-tile {
  padding: 36px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.service-tile:hover {
  transform: translateY(-6px);
  border-color: rgba(14, 165, 233, 0.15);
  box-shadow: var(--shadow-glow);
}

.service-tile.featured-tile {
  border-color: rgba(14, 165, 233, 0.2);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.03), rgba(139, 92, 246, 0.03));
}

.service-tile.featured-tile::after {
  content: 'Popular';
  position: absolute;
  top: 16px;
  right: -28px;
  padding: 2px 34px;
  background: var(--gradient-main);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  transform: rotate(45deg);
  letter-spacing: 0.6px;
}

.service-tier {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-1);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}

.service-tile h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.4px;
}

.service-summary {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.7;
}

.service-amount {
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 800;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.service-amount-sub {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: 14px;
}

.service-includes {
  list-style: none;
  margin-top: 16px;
}

.service-includes li {
  padding: 9px 0;
  font-size: 14px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border);
}

.service-includes li:last-child {
  border-bottom: none;
}

.service-includes li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-1);
  flex-shrink: 0;
  opacity: 0.7;
}

.services-footnote {
  margin-top: 24px;
  padding: 16px 24px;
  border-radius: var(--radius-md);
  background: rgba(14, 165, 233, 0.03);
  border: 1px solid rgba(14, 165, 233, 0.06);
  font-size: 13px;
  color: var(--text-tertiary);
  line-height: 1.7;
}

/* =====================================================================
   22. Why Choose Me Section
   ===================================================================== */

.why-grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin-top: 40px;
}

.why-item {
  padding: 32px 26px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: center;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.why-item::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--gradient-main);
  transition: width var(--transition-base);
}

.why-item:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: rgba(14, 165, 233, 0.15);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.why-item:hover::before {
  width: 60%;
}

.why-item-icon {
  font-size: 26px;
  margin-bottom: 16px;
  display: block;
  opacity: 0.5;
}

.why-item h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.why-item p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* =====================================================================
   23. Process Timeline Section
   ===================================================================== */

.process-timeline-track {
  margin-top: 40px;
  position: relative;
}

.process-timeline-track::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-1), var(--accent-2), var(--accent-3));
  transform: translateX(-50%);
  opacity: 0.5;
}

.process-phase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  padding: 34px 0;
  position: relative;
}

.process-phase:nth-child(even) {
  direction: rtl;
}

.process-phase:nth-child(even) .process-phase-content {
  direction: ltr;
}

.process-phase-content {
  padding: 30px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all var(--transition-base);
}

.process-phase-content:hover {
  transform: translateY(-4px);
  border-color: rgba(14, 165, 233, 0.12);
  box-shadow: var(--shadow-glow);
}

.process-phase-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-main);
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 14px;
  position: relative;
}

.process-phase-num::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid var(--accent-1);
  opacity: 0.3;
  animation: badgePulse 3s ease-in-out infinite;
}

.process-phase-content h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
}

.process-phase-content p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.process-connector {
  position: absolute;
  left: 50%;
  bottom: -4px;
  transform: translateX(-50%);
  color: var(--text-tertiary);
  font-size: 22px;
  z-index: 1;
}

/* =====================================================================
   24. Goal Section
   ===================================================================== */

.goal-card-display {
  padding: 56px 52px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.03), rgba(139, 92, 246, 0.03));
  border: 1px solid rgba(14, 165, 233, 0.1);
  margin-top: 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.goal-card-display::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0, rgba(14, 165, 233, 0.05), transparent 70%);
}

.goal-card-display::after {
  content: '\201C';
  position: absolute;
  top: -10px;
  left: 30px;
  font-size: 120px;
  line-height: 1;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.15;
  font-family: Georgia, serif;
}

.goal-card-display p {
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.85;
  color: var(--text-primary);
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  font-weight: 400;
}

/* =====================================================================
   25. Technologies Section
   ===================================================================== */

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  margin-top: 40px;
}

.tech-item {
  padding: 20px 16px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: center;
  transition: all var(--transition-base);
}

.tech-item:hover {
  transform: translateY(-4px);
  border-color: rgba(14, 165, 233, 0.15);
  box-shadow: var(--shadow-glow);
}

.tech-item-icon {
  font-size: 28px;
  margin-bottom: 8px;
  display: block;
  opacity: 0.6;
}

.tech-item-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.3px;
}

/* =====================================================================
   26. FAQ / Accordion Section
   ===================================================================== */

.faq-list {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all var(--transition-base);
}

.faq-item:hover {
  border-color: rgba(14, 165, 233, 0.1);
}

.faq-question {
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  transition: color var(--transition-fast);
  user-select: none;
  gap: 16px;
}

.faq-question:hover {
  color: var(--accent-1);
}

.faq-toggle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--surface-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: transform var(--transition-fast);
  flex-shrink: 0;
  color: var(--text-tertiary);
}

.faq-item.open .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out), padding 0.4s var(--ease-out);
}

.faq-item.open .faq-answer {
  max-height: 300px;
}

.faq-answer-inner {
  padding: 0 24px 18px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* =====================================================================
   26b. Testimonial Cards
   ===================================================================== */

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.testimonial-card {
  background: var(--surface, rgba(255,255,255,0.02));
  border: 1px solid var(--border, rgba(255,255,255,0.06));
  border-radius: 16px;
  padding: 28px 24px;
  position: relative;
  transition: all var(--transition-medium);
  display: flex;
  flex-direction: column;
}

.testimonial-card:hover {
  border-color: var(--accent-1);
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  transform: translateY(-2px);
}

.testimonial-quote-icon {
  font-size: 32px;
  line-height: 1;
  color: var(--accent-1);
  opacity: 0.3;
  margin-bottom: 8px;
  user-select: none;
}

.testimonial-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
  flex: 1;
  margin: 0 0 20px;
  font-style: italic;
}

.testimonial-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--border, rgba(255,255,255,0.04));
  padding-top: 16px;
  margin-top: auto;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  user-select: none;
}

.testimonial-avatar.avatar-male {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.testimonial-avatar.avatar-female {
  background: linear-gradient(135deg, #ec4899, #db2777);
}

.testimonial-avatar.avatar-other {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.testimonial-author-info {
  display: flex;
  flex-direction: column;
}

.testimonial-author {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.testimonial-gender {
  font-size: 12px;
  opacity: 0.5;
  margin-left: 4px;
}

.testimonial-role {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 1px;
}

/* =====================================================================
   27. Contact Info Strip Section
   ===================================================================== */

.contact-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 40px;
}

.contact-strip-item {
  padding: 20px 24px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all var(--transition-base);
}

.contact-strip-item:hover {
  transform: translateY(-3px);
  border-color: rgba(14, 165, 233, 0.12);
  box-shadow: var(--shadow-glow);
}

.contact-strip-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(14, 165, 233, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.contact-strip-label {
  font-size: 11px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.contact-strip-value {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 500;
}

.contact-strip-value a {
  color: var(--accent-1);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.contact-strip-value a:hover {
  color: var(--accent-2);
}

/* =====================================================================
   28. Footer
   ===================================================================== */

footer {
  padding: 56px 24px 36px;
  border-top: 1px solid var(--border);
  text-align: center;
  position: relative;
  z-index: 1;
  background: var(--bg-secondary);
}

.footer-wrap {
  max-width: var(--section-max-width);
  margin: 0 auto;
}

.footer-brand {
  font-size: 22px;
  font-weight: 800;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.footer-tagline {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: 20px;
}

.footer-nav-links {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin: 18px 0;
  list-style: none;
  flex-wrap: wrap;
}

.footer-nav-links a {
  color: var(--text-tertiary);
  text-decoration: none;
  font-size: 13px;
  transition: color var(--transition-fast);
  font-weight: 500;
}

.footer-nav-links a:hover {
  color: var(--accent-1);
}

.footer-separator {
  width: 40px;
  height: 1px;
  background: var(--border);
  margin: 18px auto;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 16px 0;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  text-decoration: none;
  font-size: 14px;
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background: var(--surface-hover);
  border-color: var(--accent-1);
  color: var(--accent-1);
  transform: translateY(-2px);
}

footer p {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-top: 4px;
}

/* =====================================================================
   29. Scroll to Top Button
   ===================================================================== */

#scroll-up-btn {
  position: fixed;
  bottom: 90px;
  right: 30px;
  z-index: 100;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-main);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-base);
  box-shadow: 0 4px 24px rgba(14, 165, 233, 0.25);
}

#scroll-up-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#scroll-up-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 40px rgba(14, 165, 233, 0.35);
}

#scroll-up-btn:active {
  transform: translateY(-2px);
}

/* =====================================================================
   30. Scroll Progress Bar
   ===================================================================== */

#page-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--gradient-main);
  z-index: 10001;
  width: 0%;
  transition: width 0.08s linear;
}

/* =====================================================================
   31. Scroll Reveal Animations
   ===================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-45px);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(45px);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* =====================================================================
   32. Additional Keyframe Animations
   ===================================================================== */

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideRight {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideLeft {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(14, 165, 233, 0.1); }
  50% { box-shadow: 0 0 40px rgba(14, 165, 233, 0.2); }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* =====================================================================
   33. Utility Classes
   ===================================================================== */

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

.text-center { text-align: center; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }
.w-full { width: 100%; }

/* =====================================================================
   34. Responsive: Tablet & Below
   ===================================================================== */

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

  .about-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-traits {
    grid-template-columns: 1fr;
  }

  .process-timeline-track::before {
    left: 20px;
  }

  .process-phase,
  .process-phase:nth-child(even) {
    grid-template-columns: 1fr;
    direction: ltr;
    padding-left: 55px;
  }

  .process-phase:nth-child(even) .process-phase-content {
    direction: ltr;
  }

  .process-connector {
    left: 20px;
    bottom: auto;
    top: 50%;
    transform: translateY(-50%);
  }

  .services-layout {
    grid-template-columns: 1fr;
  }
}

/* =====================================================================
   35. Responsive: Mobile
   ===================================================================== */

@media (max-width: 768px) {
  section {
    padding: 90px 18px;
  }

  .nav-links-list {
    display: none;
  }

  .nav-toggle-btn {
    display: flex;
  }

  .nav-mobile-dropdown.active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 80px;
    left: 14px;
    right: 14px;
    background: var(--surface);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px;
    gap: 4px;
    z-index: 999;
    box-shadow: var(--shadow-lg);
  }

  .nav-mobile-dropdown.active a {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    transition: all var(--transition-fast);
  }

  .nav-mobile-dropdown.active a:hover,
  .nav-mobile-dropdown.active a.nav-active {
    background: var(--surface-hover);
    color: var(--text-primary);
  }

  nav {
    padding: 0 6px;
    top: 16px;
  }

  .skills-matrix {
    grid-template-columns: 1fr;
  }

  .why-grid-layout {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bg-panel {
    bottom: 20px;
    padding: 6px 12px;
    gap: 4px;
  }

  .bg-panel-label {
    display: none;
  }

  .bg-dot {
    width: 26px;
    height: 26px;
  }

  .project-showcase {
    padding: 30px;
  }

  .goal-card-display {
    padding: 36px 28px;
  }

  #scroll-up-btn {
    bottom: 80px;
    right: 20px;
    width: 42px;
    height: 42px;
    font-size: 17px;
  }

  .tech-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-strip {
    grid-template-columns: 1fr 1fr;
  }

  #cursor-main,
  #cursor-ring,
  #cursor-trail {
    display: none;
  }

  body {
    cursor: auto;
  }
}

/* =====================================================================
   36. Responsive: Small Mobile
   ===================================================================== */

@media (max-width: 480px) {
  .why-grid-layout {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: clamp(30px, 12vw, 42px);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    justify-content: center;
    padding: 14px 24px;
  }

  .about-stats-grid {
    grid-template-columns: 1fr;
  }

  .process-phase {
    padding-left: 45px;
  }

  .bg-panel {
    gap: 3px;
    padding: 5px 10px;
  }

  .bg-dot {
    width: 24px;
    height: 24px;
  }

  .section-heading {
    font-size: clamp(24px, 8vw, 32px);
    letter-spacing: -1px;
  }

  .project-showcase {
    padding: 24px 20px;
  }

  .project-feature-grid {
    grid-template-columns: 1fr;
  }

  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-strip {
    grid-template-columns: 1fr;
  }

  .footer-nav-links {
    gap: 16px;
  }
}

/* =====================================================================
   37. Accessibility: Reduced Motion
   ===================================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  #cursor-main,
  #cursor-ring,
  #cursor-trail,
  #particles-canvas,
  .aurora-container,
  .deco-shapes,
  .bg-video {
    display: none !important;
  }

  body {
    cursor: auto;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale {
    opacity: 1;
    transform: none;
  }
}

/* =====================================================================
   38. Mobile Responsive Additions (480px and below)
   ===================================================================== */

@media (max-width: 480px) {
  /* Admin toast */
  #toastContainer,
  #adminOverlay .toast-container {
    right: 8px;
    top: 8px;
    max-width: calc(100vw - 16px);
  }
  #adminOverlay .toast {
    padding: 10px 14px;
    font-size: 12px;
  }

  /* Testimonials - tighter padding */
  .testimonial-card {
    padding: 20px 16px;
  }
  .testimonial-quote-icon {
    font-size: 24px;
    margin-bottom: 4px;
  }
  .testimonial-footer {
    gap: 10px;
    padding-top: 12px;
  }
  .testimonial-avatar {
    width: 34px;
    height: 34px;
    font-size: 12px;
  }

  /* FAQ - tighter padding */
  .faq-question {
    padding: 12px 16px;
    font-size: 13px;
  }
  .faq-answer-inner {
    padding: 0 16px 14px;
    font-size: 13px;
  }

  /* Contact form - full width inputs */
  #contactForm input,
  #contactForm textarea {
    font-size: 16px !important;
  }
  #contactForm .form-row {
    flex-direction: column;
  }
  #contactForm .form-row input {
    min-width: 100% !important;
  }

  /* Featured service tile ribbon - prevent overflow */
  .service-tile.featured-tile::after {
    right: -14px;
    padding: 2px 24px;
    font-size: 9px;
  }

  /* Skill bar - reduce width */
  .skill-row-bar {
    width: 70px !important;
  }
  .skill-row {
    gap: 8px;
  }

  /* Process timeline - tighter */
  .process-phase {
    padding-left: 36px;
  }
  .process-phase-content {
    padding: 16px;
  }
  .process-phase-number {
    width: 36px;
    height: 36px;
    font-size: 14px;
    left: 0;
  }

  /* About stats - tighter font */
  .about-stat-number {
    font-size: 30px;
  }
  .about-stat-card {
    padding: 20px 16px;
  }

  /* Footer */
  footer {
    padding: 40px 16px 28px;
  }

  /* Admin sidebar on very small screens */
  #adminOverlay #sidebar {
    width: 85vw;
    min-width: 85vw;
    max-width: 85vw;
  }

  /* Admin main content */
  #adminOverlay #mainContent {
    padding: 12px;
  }
}

/* Prevent 400px+ card overflow on any very small device */
@media (max-width: 400px) {
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
  .skill-row {
    flex-wrap: wrap;
  }
  .skill-row-name {
    width: 100%;
    margin-bottom: 4px;
  }
}
