/* ============================================
   MAIN STYLESHEET - Devfolio Premium
   ============================================ */

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

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* ---------- Animated Background Mesh ---------- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: var(--gradient-mesh);
  z-index: -2;
  pointer-events: none;
  animation: meshShift 20s ease-in-out infinite alternate;
}

@keyframes meshShift {
  0% { transform: scale(1) rotate(0deg); opacity: 0.9; }
  100% { transform: scale(1.15) rotate(2deg); opacity: 1; }
}

/* ---------- Aurora Effect ---------- */
body::after {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(circle at 30% 40%, rgba(124, 92, 255, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 70% 60%, rgba(0, 212, 255, 0.08) 0%, transparent 40%);
  z-index: -1;
  pointer-events: none;
  animation: aurora 25s linear infinite;
}

@keyframes aurora {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.2); }
  100% { transform: rotate(360deg) scale(1); }
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

h1 { font-size: var(--fs-hero); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-2xl); }
h4 { font-size: var(--fs-xl); }
h5 { font-size: var(--fs-lg); }
h6 { font-size: var(--fs-md); }

p { color: var(--text-secondary); }

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

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

ul, ol { list-style: none; }

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

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

/* ---------- Custom Scrollbar ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent-primary), var(--accent-secondary));
  border-radius: var(--r-full);
}
::-webkit-scrollbar-thumb:hover { background: var(--accent-primary); }

/* ---------- Containers / Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

section { padding-block: var(--space-5xl); position: relative; }

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
  max-width: 720px;
  margin-inline: auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-md);
  background: var(--bg-glass);
  border: 1px solid var(--border-default);
  border-radius: var(--r-full);
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--accent-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-md);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.section-tag::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-secondary);
  box-shadow: 0 0 12px var(--accent-secondary);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.section-title {
  font-size: var(--fs-3xl);
  margin-bottom: var(--space-md);
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  font-size: var(--fs-md);
  color: var(--text-secondary);
  max-width: 600px;
  margin-inline: auto;
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 0.95rem 1.75rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  font-family: var(--font-display);
  letter-spacing: 0.01em;
  border-radius: var(--r-full);
  transition: all var(--t-spring);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  text-align: center;
  border: 1px solid transparent;
}

.btn svg { width: 18px; height: 18px; transition: transform var(--t-base); }
.btn:hover svg { transform: translateX(4px); }

/* Primary Button - Gradient */
.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 8px 24px rgba(124, 92, 255, 0.4);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-secondary);
  opacity: 0;
  transition: opacity var(--t-base);
  z-index: -1;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(124, 92, 255, 0.55);
}

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

/* Secondary - Glass */
.btn-secondary {
  background: var(--bg-glass);
  color: var(--text-primary);
  border: 1px solid var(--border-default);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.btn-secondary:hover {
  background: var(--bg-glass-strong);
  border-color: var(--accent-primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

/* Ghost */
.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-default);
}

.btn-ghost:hover {
  border-color: var(--accent-secondary);
  color: var(--accent-secondary);
}

/* Sizes */
.btn-sm { padding: 0.6rem 1.2rem; font-size: var(--fs-xs); }
.btn-lg { padding: 1.15rem 2.2rem; font-size: var(--fs-base); }

/* Magnetic effect (used by JS) */
.btn-magnetic { will-change: transform; }

/* ---------- Custom Cursor ---------- */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: var(--z-cursor);
  transform: translate(-50%, -50%);
  will-change: transform;
  mix-blend-mode: difference;
}

.cursor-dot {
  width: 8px; height: 8px;
  background: white;
  border-radius: 50%;
  transition: transform 0.1s ease;
}

.cursor-ring {
  width: 40px; height: 40px;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  transition: transform 0.3s ease, width 0.3s ease, height 0.3s ease, background 0.3s ease;
}

.cursor-ring.cursor-hover {
  width: 64px; height: 64px;
  background: rgba(124, 92, 255, 0.2);
  border-color: var(--accent-primary);
}

@media (hover: none) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ---------- Loading Screen ---------- */
.loader {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: var(--z-loader);
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

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

.loader-logo {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: var(--space-lg);
}

.loader-bar {
  width: 200px;
  height: 3px;
  background: var(--bg-tertiary);
  border-radius: var(--r-full);
  overflow: hidden;
}

.loader-bar-fill {
  height: 100%;
  width: 0;
  background: var(--gradient-primary);
  border-radius: var(--r-full);
  animation: loadFill 1.5s ease forwards;
  box-shadow: 0 0 12px var(--accent-primary);
}

@keyframes loadFill {
  0% { width: 0; }
  100% { width: 100%; }
}

/* ---------- Top Progress Bar ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--gradient-primary);
  z-index: var(--z-nav);
  box-shadow: 0 0 12px var(--accent-primary);
  transition: width 0.1s linear;
}

/* ---------- Navigation ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-nav);
  padding-block: var(--space-md);
  transition: all var(--t-base);
}

.navbar.scrolled {
  padding-block: var(--space-sm);
  background: rgba(5, 6, 15, 0.7);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border-subtle);
}

[data-theme="light"] .navbar.scrolled {
  background: rgba(247, 248, 252, 0.8);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-md);
  color: var(--text-primary);
}

.nav-logo-icon {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: var(--gradient-primary);
  border-radius: var(--r-sm);
  font-size: var(--fs-md);
  color: white;
  box-shadow: var(--shadow-glow);
  position: relative;
}

.nav-logo-icon::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: var(--r-sm);
  background: var(--gradient-primary);
  filter: blur(8px);
  opacity: 0.4;
  z-index: -1;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  background: var(--bg-glass);
  border: 1px solid var(--border-default);
  border-radius: var(--r-full);
  padding: var(--space-2xs);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav-link {
  padding: 0.6rem 1.1rem;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--r-full);
  transition: all var(--t-base);
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  background: var(--bg-glass-strong);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.theme-toggle {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  background: var(--bg-glass);
  border: 1px solid var(--border-default);
  border-radius: 50%;
  color: var(--text-primary);
  transition: all var(--t-base);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.theme-toggle:hover {
  border-color: var(--accent-primary);
  transform: rotate(20deg);
}

.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .sun-icon { display: none; }
[data-theme="light"] .theme-toggle .sun-icon { display: block; }
[data-theme="light"] .theme-toggle .moon-icon { display: none; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  background: var(--bg-glass);
  border: 1px solid var(--border-default);
  border-radius: 50%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.nav-toggle span {
  width: 18px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--t-base);
}

.nav-toggle.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero Section ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 120px;
  padding-bottom: var(--space-4xl);
  overflow: hidden;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.5;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-3xl);
  align-items: center;
  position: relative;
}

.hero-text { position: relative; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-md);
  background: var(--bg-glass);
  border: 1px solid var(--border-default);
  border-radius: var(--r-full);
  font-size: var(--fs-xs);
  font-weight: 500;
  margin-bottom: var(--space-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.hero-badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-success);
  box-shadow: 0 0 12px var(--accent-success);
  animation: pulse 2s ease-in-out infinite;
}

.hero-title {
  font-size: var(--fs-hero);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: var(--space-lg);
  letter-spacing: -0.03em;
}

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

.typed-text {
    display: inline-block;

    width: 650px;      /* Adjust if needed */

    min-height: 1.1em;

    white-space: nowrap;

    overflow: hidden;

    background: var(--gradient-primary);

    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;

    position: relative;

    transition: opacity .35s ease;
}

.typed-cursor {
  display: inline-block;
  width: 4px;
  height: 1em;
  background: var(--accent-secondary);
  margin-left: 4px;
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}

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

.hero-desc {
  font-size: var(--fs-md);
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: var(--space-xl);
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.trust-avatars { display: flex; }

.trust-avatars img {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 2px solid var(--bg-primary);
  margin-left: -10px;
  object-fit: cover;
}

.trust-avatars img:first-child { margin-left: 0; }

.trust-text { font-size: var(--fs-sm); color: var(--text-secondary); }
.trust-stars { color: var(--accent-warning); font-size: var(--fs-sm); }

/* Hero Visual - 3D Card */
.hero-visual {
  position: relative;
  perspective: 1500px;
  height: 560px;
}

.hero-card-stack {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation: floatCard 6s ease-in-out infinite;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0) rotateY(-8deg) rotateX(4deg); }
  50% { transform: translateY(-20px) rotateY(-12deg) rotateX(6deg); }
}

.hero-main-card {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.15), rgba(0, 212, 255, 0.08));
  border: 1px solid var(--border-default);
  border-radius: var(--r-2xl);
  overflow: hidden;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: var(--shadow-xl), 0 0 80px rgba(124, 92, 255, 0.2);
  padding: var(--space-lg);
}

.hero-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}

.hero-card-dots { display: flex; gap: 6px; }
.hero-card-dots span {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}
.hero-card-dots span:nth-child(1) { background: #ff5f57; }
.hero-card-dots span:nth-child(2) { background: #febc2e; }
.hero-card-dots span:nth-child(3) { background: #28c840; }

.hero-card-title {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.code-block {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--text-secondary);
  white-space: pre-wrap;
}

.code-block .code-keyword { color: #ff79c6; }
.code-block .code-fn { color: #50fa7b; }
.code-block .code-str { color: #f1fa8c; }
.code-block .code-comment { color: #6272a4; }
.code-block .code-var { color: #8be9fd; }

/* Floating mini cards */
.float-card {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--r-lg);
  padding: var(--space-md);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  animation: floatMini 5s ease-in-out infinite;
}

.float-card-1 {
  top: 8%;
  left: -8%;
  animation-delay: 0s;
}

.float-card-2 {
  bottom: 12%;
  right: -10%;
  animation-delay: 1s;
}

.float-card-3 {
  bottom: -5%;
  left: 8%;
  animation-delay: 2s;
}

@keyframes floatMini {
  0%, 100% { transform: translateY(0) translateZ(60px); }
  50% { transform: translateY(-15px) translateZ(60px); }
}

.float-card-icon {
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  background: var(--gradient-primary);
  display: grid; place-items: center;
  font-size: 18px;
}

.float-card-icon.green { background: linear-gradient(135deg, #00ffa3, #00d4ff); }
.float-card-icon.pink { background: linear-gradient(135deg, #ff3df0, #7c5cff); }

.float-card-label {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.float-card-value {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-primary);
}

/* Hero glow */
.hero-glow {
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
  z-index: -1;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.9; }
}

/* ---------- Stats ---------- */
.stats {
  padding-block: var(--space-3xl);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.stat-card {
  text-align: center;
  padding: var(--space-xl);
  background: var(--bg-glass);
  border: 1px solid var(--border-default);
  border-radius: var(--r-xl);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all var(--t-base);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-slow);
}

.stat-card:hover::before { transform: scaleX(1); }

.stat-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-glow);
}

.stat-number {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: var(--space-xs);
}

.stat-label {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ---------- Marquee / Infinite Logo Scroll ---------- */
.marquee {
  padding-block: var(--space-2xl);
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--border-subtle);
}

.marquee-label {
  text-align: center;
  font-size: var(--fs-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: var(--space-lg);
}

.marquee-track {
  display: flex;
  gap: var(--space-3xl);
  animation: marqueeMove 30s linear infinite;
  width: max-content;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--text-muted);
  font-family: var(--font-display);
  white-space: nowrap;
  transition: color var(--t-base);
}

.marquee-item:hover { color: var(--accent-secondary); }

.marquee-item svg { width: 28px; height: 28px; }

@keyframes marqueeMove {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee::before, .marquee::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}

.marquee::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-primary), transparent);
}

.marquee::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-primary), transparent);
}

/* ---------- Services Grid ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.service-card {
  position: relative;
  padding: var(--space-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--r-xl);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all var(--t-spring);
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%),
              rgba(124, 92, 255, 0.15), transparent 40%);
  opacity: 0;
  transition: opacity var(--t-base);
  pointer-events: none;
}

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

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-xl), 0 0 40px rgba(124, 92, 255, 0.2);
}

.service-icon {
  width: 64px; height: 64px;
  display: grid; place-items: center;
  background: var(--gradient-primary);
  border-radius: var(--r-lg);
  font-size: 28px;
  margin-bottom: var(--space-lg);
  box-shadow: 0 8px 20px rgba(124, 92, 255, 0.4);
  position: relative;
}

.service-icon svg { width: 28px; height: 28px; color: white; }

.service-card:nth-child(3n+2) .service-icon {
  background: linear-gradient(135deg, #00d4ff, #00ffa3);
  box-shadow: 0 8px 20px rgba(0, 212, 255, 0.4);
}

.service-card:nth-child(3n+3) .service-icon {
  background: linear-gradient(135deg, #ff3df0, #ffb547);
  box-shadow: 0 8px 20px rgba(255, 61, 240, 0.4);
}

.service-title {
  font-size: var(--fs-lg);
  margin-bottom: var(--space-sm);
}

.service-desc {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.service-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-subtle);
  margin-bottom: var(--space-md);
}

.service-meta-item {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.service-meta-item strong {
  color: var(--text-primary);
  font-weight: 600;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--accent-secondary);
  transition: gap var(--t-base);
}

.service-link:hover { gap: var(--space-sm); color: var(--accent-primary); }

/* ---------- Portfolio Cards ---------- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.portfolio-card {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  transition: all var(--t-spring);
  cursor: pointer;
}

.portfolio-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-xl), 0 0 30px rgba(124, 92, 255, 0.2);
}

.portfolio-image {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: var(--bg-tertiary);
}

.portfolio-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--t-smooth);
}

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

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 6, 15, 0.95) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: var(--space-md);
  opacity: 0;
  transition: opacity var(--t-base);
}

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

.portfolio-overlay-actions {
  display: flex;
  gap: var(--space-xs);
}

.portfolio-action {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: var(--bg-glass-strong);
  border: 1px solid var(--border-default);
  border-radius: 50%;
  color: white;
  backdrop-filter: blur(12px);
  transition: all var(--t-base);
}

.portfolio-action:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  transform: scale(1.1);
}

.portfolio-action svg { width: 16px; height: 16px; }

.portfolio-content { padding: var(--space-lg); }

.portfolio-category {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--accent-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-xs);
}

.portfolio-title {
  font-size: var(--fs-lg);
  margin-bottom: var(--space-sm);
}

.portfolio-tech {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs);
}

.tech-tag {
  font-size: 0.7rem;
  padding: 4px 10px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-full);
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

/* Portfolio Filters */
.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-2xl);
}

.filter-btn {
  padding: 0.6rem 1.2rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-default);
  border-radius: var(--r-full);
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--t-base);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--gradient-primary);
  color: white;
  border-color: transparent;
}

/* ---------- Testimonials ---------- */
.testimonial-slider {
  position: relative;
  overflow: hidden;
  max-width: 900px;
  margin-inline: auto;
}

.testimonial-track {
  display: flex;
  transition: transform var(--t-slow);
}

.testimonial-card {
  flex: 0 0 100%;
  padding: var(--space-2xl);
  text-align: center;
}

.testimonial-quote {
  font-size: var(--fs-lg);
  line-height: 1.6;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
  font-style: italic;
  position: relative;
}

.testimonial-quote::before {
  content: '“';
  font-family: Georgia, serif;
  font-size: 5rem;
  position: absolute;
  top: -2rem; left: 50%;
  transform: translateX(-50%);
  color: var(--accent-primary);
  opacity: 0.3;
  font-style: normal;
  line-height: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
}

.testimonial-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-primary);
}

.testimonial-info { text-align: left; }
.testimonial-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: var(--fs-base);
}
.testimonial-role {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.testimonial-stars {
  color: var(--accent-warning);
  margin-bottom: var(--space-sm);
}

.slider-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.slider-arrow {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--bg-glass);
  border: 1px solid var(--border-default);
  border-radius: 50%;
  color: var(--text-primary);
  transition: all var(--t-base);
  backdrop-filter: blur(12px);
}

.slider-arrow:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  transform: scale(1.1);
}

.slider-dots {
  display: flex;
  gap: var(--space-xs);
}

.slider-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border-strong);
  cursor: pointer;
  transition: all var(--t-base);
}

.slider-dot.active {
  width: 32px;
  border-radius: var(--r-full);
  background: var(--gradient-primary);
}

/* ---------- CTA Section ---------- */
.cta-section {
  text-align: center;
  position: relative;
}

.cta-card {
  max-width: 900px;
  margin-inline: auto;
  padding: var(--space-4xl) var(--space-2xl);
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.15), rgba(0, 212, 255, 0.08));
  border: 1px solid var(--border-default);
  border-radius: var(--r-2xl);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: var(--gradient-glow);
  border-radius: 50%;
  top: -200px; left: -200px;
  filter: blur(80px);
  z-index: -1;
}

.cta-card::after {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  bottom: -200px; right: -200px;
  filter: blur(80px);
  z-index: -1;
}

.cta-title {
  font-size: var(--fs-3xl);
  margin-bottom: var(--space-md);
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cta-desc {
  font-size: var(--fs-md);
  color: var(--text-secondary);
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: var(--space-xl);
}

.cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

/* ---------- Newsletter ---------- */
.newsletter {
  padding-block: var(--space-3xl);
  background: var(--bg-secondary);
  border-block: 1px solid var(--border-subtle);
}

.newsletter-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.newsletter-title { font-size: var(--fs-2xl); margin-bottom: var(--space-sm); }
.newsletter-desc { color: var(--text-secondary); }

.newsletter-form {
  display: flex;
  gap: var(--space-xs);
  padding: var(--space-2xs);
  background: var(--bg-glass);
  border: 1px solid var(--border-default);
  border-radius: var(--r-full);
  backdrop-filter: blur(12px);
}

.newsletter-input {
  flex: 1;
  padding: 0.85rem 1.2rem;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: var(--fs-sm);
  font-family: inherit;
  outline: none;
}

.newsletter-input::placeholder { color: var(--text-muted); }

/* ---------- Footer ---------- */
.footer {
  padding-top: var(--space-4xl);
  padding-bottom: var(--space-xl);
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-lg);
  margin-bottom: var(--space-md);
}

.footer-desc {
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  max-width: 320px;
  font-size: var(--fs-sm);
}

.footer-socials {
  display: flex;
  gap: var(--space-sm);
}

.social-link {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: var(--bg-glass);
  border: 1px solid var(--border-default);
  border-radius: 50%;
  color: var(--text-secondary);
  transition: all var(--t-base);
  backdrop-filter: blur(12px);
}

.social-link:hover {
  background: var(--gradient-primary);
  color: white;
  border-color: transparent;
  transform: translateY(-3px);
}

.social-link svg { width: 18px; height: 18px; }

.footer-col h4 {
  font-size: var(--fs-md);
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.footer-col ul li {
  margin-bottom: var(--space-xs);
}

.footer-col ul li a {
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  transition: color var(--t-base);
}

.footer-col ul li a:hover { color: var(--accent-secondary); }

.footer-bottom {
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

/* ---------- Back to Top ---------- */
.back-to-top {
  position: fixed;
  bottom: 90px;
  right: var(--space-lg);
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: var(--gradient-primary);
  border-radius: 50%;
  color: white;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--t-base);
  z-index: var(--z-sticky);
  box-shadow: var(--shadow-glow);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 30px rgba(124, 92, 255, 0.6);
}

/* ---------- WhatsApp Float ---------- */
.whatsapp-float {
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-lg);
  width: 56px; height: 56px;
  display: grid; place-items: center;
  background: #25D366;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  z-index: var(--z-sticky);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5);
  transition: transform var(--t-spring);
  animation: pulseRing 2.5s ease-in-out infinite;
}

.whatsapp-float:hover { transform: scale(1.1); }

.whatsapp-float svg { width: 28px; height: 28px; }

@keyframes pulseRing {
  0% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5), 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5), 0 0 0 18px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5), 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ---------- Toast Notification ---------- */
.toast-container {
  position: fixed;
  top: 90px;
  right: var(--space-lg);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-left: 3px solid var(--accent-success);
  border-radius: var(--r-md);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
  min-width: 280px;
  max-width: 360px;
  transform: translateX(120%);
  transition: transform var(--t-spring);
  pointer-events: auto;
  font-size: var(--fs-sm);
}

.toast.show { transform: translateX(0); }
.toast.error { border-left-color: var(--accent-error); }
.toast.warning { border-left-color: var(--accent-warning); }

.toast-icon {
  width: 24px; height: 24px;
  flex-shrink: 0;
  display: grid; place-items: center;
}

/* ---------- About Page Specific ---------- */
.page-header {
  padding-top: 140px;
  padding-bottom: var(--space-3xl);
  text-align: center;
}

.page-breadcrumb {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.page-breadcrumb a { color: var(--accent-secondary); }

.page-title {
  font-size: var(--fs-3xl);
  margin-bottom: var(--space-md);
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.about-image-wrapper {
  position: relative;
  border-radius: var(--r-2xl);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--bg-tertiary);
  box-shadow: var(--shadow-xl);
}

.about-image-wrapper img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.about-image-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 6, 15, 0.5), transparent 50%);
  pointer-events: none;
}

.about-image-badge {
  position: absolute;
  bottom: var(--space-lg);
  left: var(--space-lg);
  right: var(--space-lg);
  padding: var(--space-md);
  background: rgba(5, 6, 15, 0.7);
  border: 1px solid var(--border-default);
  border-radius: var(--r-lg);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.about-image-badge-icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--gradient-primary);
  border-radius: var(--r-sm);
  font-size: 22px;
}

.about-content > p { margin-bottom: var(--space-md); }

.skills-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.skill-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.skill-header {
  display: flex;
  justify-content: space-between;
  font-size: var(--fs-sm);
}

.skill-name { font-weight: 600; }
.skill-percent { color: var(--accent-secondary); font-weight: 600; }

.skill-bar {
  height: 8px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-full);
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: var(--r-full);
  width: 0;
  transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 12px var(--accent-primary);
}

/* Timeline */
.timeline {
  max-width: 800px;
  margin-inline: auto;
  position: relative;
  padding-inline: var(--space-md);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-primary), var(--accent-secondary));
}

.timeline-item {
  position: relative;
  padding-left: 60px;
  padding-bottom: var(--space-2xl);
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: 12px;
  top: 6px;
  width: 18px; height: 18px;
  background: var(--bg-primary);
  border: 3px solid var(--accent-primary);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.2);
}

.timeline-date {
  font-size: var(--fs-xs);
  color: var(--accent-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-2xs);
}

.timeline-title { font-size: var(--fs-md); margin-bottom: var(--space-2xs); }
.timeline-org { color: var(--text-muted); font-size: var(--fs-sm); margin-bottom: var(--space-sm); }
.timeline-desc { color: var(--text-secondary); font-size: var(--fs-sm); }

/* Why Choose Me */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.why-card {
  padding: var(--space-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--r-xl);
  text-align: center;
  transition: all var(--t-base);
  backdrop-filter: blur(20px);
}

.why-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-primary);
}

.why-icon {
  width: 70px; height: 70px;
  margin-inline: auto;
  display: grid; place-items: center;
  background: var(--gradient-primary);
  border-radius: var(--r-full);
  font-size: 28px;
  margin-bottom: var(--space-md);
  box-shadow: 0 8px 20px rgba(124, 92, 255, 0.3);
}

.why-title { font-size: var(--fs-md); margin-bottom: var(--space-xs); }
.why-desc { font-size: var(--fs-sm); }

/* ---------- Contact Page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-2xl);
  align-items: start;
}

.contact-info-card {
  padding: var(--space-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--r-xl);
  backdrop-filter: blur(20px);
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding-block: var(--space-md);
  border-bottom: 1px solid var(--border-subtle);
}

.contact-info-item:last-child { border-bottom: none; }

.contact-info-icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--gradient-primary);
  border-radius: var(--r-sm);
  flex-shrink: 0;
  font-size: 18px;
}

.contact-info-label {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 2px;
}

.contact-info-value {
  font-size: var(--fs-sm);
  color: var(--text-primary);
  font-weight: 500;
}

.contact-info-value a { color: var(--text-primary); }
.contact-info-value a:hover { color: var(--accent-secondary); }

.contact-form-card {
  padding: var(--space-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--r-xl);
  backdrop-filter: blur(20px);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.form-group {
  margin-bottom: var(--space-md);
  position: relative;
}

.form-label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 500;
  margin-bottom: var(--space-xs);
  color: var(--text-primary);
}

.form-label .required { color: var(--accent-error); }

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 0.9rem 1.1rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-default);
  border-radius: var(--r-md);
  color: var(--text-primary);
  font-size: var(--fs-sm);
  font-family: inherit;
  transition: all var(--t-base);
  outline: none;
  backdrop-filter: blur(12px);
}

.form-select option {
    background-color: #1f2340;   /* Dark background */
    color: #ffffff;              /* White text */
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.15);
  background: var(--bg-glass-strong);
}

.form-input::placeholder, .form-textarea::placeholder {
  color: var(--text-muted);
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
  font-family: inherit;
}

.form-error {
  font-size: var(--fs-xs);
  color: var(--accent-error);
  margin-top: var(--space-2xs);
  display: none;
  align-items: center;
  gap: 4px;
}

.form-error.show { display: flex; }

.form-input.error, .form-textarea.error, .form-select.error {
  border-color: var(--accent-error);
  box-shadow: 0 0 0 4px rgba(255, 77, 109, 0.1);
}

.char-counter {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  text-align: right;
  margin-top: var(--space-2xs);
}

/* ---------- FAQ Accordion ---------- */
.faq-list {
  max-width: 800px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: all var(--t-base);
}

.faq-item:hover { border-color: var(--accent-primary); }

.faq-question {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
  transition: all var(--t-base);
}

.faq-question:hover { background: var(--bg-glass); }

.faq-icon {
  width: 28px; height: 28px;
  flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--bg-glass);
  border-radius: 50%;
  transition: transform var(--t-base);
}

.faq-item.active .faq-icon { transform: rotate(45deg); background: var(--gradient-primary); }
.faq-item.active .faq-icon svg { color: white; }

.faq-icon svg { width: 14px; height: 14px; transition: color var(--t-base); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-slow) ease;
}

.faq-answer-inner {
  padding: 0 var(--space-lg) var(--space-lg);
  color: var(--text-secondary);
  line-height: 1.7;
}

.faq-item.active .faq-answer { max-height: 500px; }

/* ---------- 404 Page ---------- */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-3xl) var(--container-padding);
}

.error-code {
  font-family: var(--font-display);
  font-size: clamp(8rem, 25vw, 16rem);
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: var(--space-md);
  letter-spacing: -0.05em;
  filter: drop-shadow(0 10px 40px rgba(124, 92, 255, 0.4));
}

/* ---------- Modal / Dialog ---------- */
dialog.modal {
  width: min(540px, 92vw);
  border: 1px solid var(--border-default);
  background: var(--bg-card);
  color: var(--text-primary);
  border-radius: var(--r-xl);
  padding: var(--space-2xl);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-xl);
}

dialog.modal::backdrop {
  background: rgba(5, 6, 15, 0.7);
  backdrop-filter: blur(8px);
}

.modal-icon {
  width: 80px; height: 80px;
  margin-inline: auto;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent-success), var(--accent-secondary));
  border-radius: 50%;
  font-size: 36px;
  margin-bottom: var(--space-md);
  box-shadow: 0 0 40px rgba(0, 255, 163, 0.4);
}

.modal-title {
  font-size: var(--fs-xl);
  text-align: center;
  margin-bottom: var(--space-sm);
}

.modal-text {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

.modal-actions {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
}

/* ---------- Visitor Counter & Date ---------- */
.info-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--fs-xs);
  color: var(--text-muted);
  padding-block: var(--space-sm);
}

/* ---------- Utility Classes ---------- */
.text-center { text-align: center; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-lg { margin-bottom: var(--space-lg); }

/* ---------- Particles Canvas ---------- */
#particles-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

/* ---------- Map iframe ---------- */
.map-wrapper {
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--border-default);
  height: 380px;
  position: relative;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: invert(0.9) hue-rotate(180deg) saturate(0.7);
}

[data-theme="light"] .map-wrapper iframe { filter: none; }

/* ---------- Video Embed ---------- */
.video-wrapper {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--border-default);
  background: var(--bg-tertiary);
}

.video-wrapper iframe {
  width: 100%; height: 100%;
  border: 0;
}
