:root {
  --bg: #04050c;
  --glass: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.09);
  --primary: #3b82f6;
  --accent: #8b5cf6;
  --text-dim: #94a3b8;
}

::selection {
  background: rgba(99, 102, 241, 0.35);
  color: #fff;
}

html {
  scroll-padding-top: 90px;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 600px at 15% -10%, rgba(59, 130, 246, 0.09), transparent 60%),
    radial-gradient(900px 600px at 90% 10%, rgba(139, 92, 246, 0.08), transparent 60%);
  cursor: auto;
}

body.menu-open {
  overflow: hidden;
}

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

main,
header,
footer {
  position: relative;
  z-index: 1;
}

.section {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.gradient-text {
  background: linear-gradient(120deg, #60a5fa, #a78bfa, #38bdf8, #8b5cf6);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-x 8s ease infinite;
}

@keyframes gradient-x {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(96, 165, 250, 0.35); }
  50% { box-shadow: 0 0 30px 6px rgba(139, 92, 246, 0.25); }
}

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.section-orb {
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.16;
  pointer-events: none;
  z-index: 0;
}

.section-orb-b { top: 15%; right: -180px; background: #6366f1; }
.section-orb-c { top: 25%; left: -200px; background: #3b82f6; }
.section-orb-d { bottom: 10%; right: -180px; background: #8b5cf6; }
.section-orb-e { top: 10%; left: -220px; background: #6366f1; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: #3b82f6;
  color: #fff;
  font-weight: 600;
  border-radius: 0 0 0.75rem 0;
}

.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 3px;
  border-radius: 4px;
}

.logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 8px 24px -6px rgba(99, 102, 241, 0.6);
}

.nav-link {
  position: relative;
  padding: 0.5rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #cbd5e1;
  transition: color 0.2s;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.15rem;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #60a5fa, #a78bfa);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-link.mobile {
  display: block;
  padding: 0.85rem 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-link.mobile::after {
  display: none;
}

#navbar.scrolled {
  background: rgba(5, 6, 15, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06), 0 12px 40px -12px rgba(0, 0, 0, 0.7);
}

#navbar nav > div {
  width: 100%;
}

#navbar nav > div > a,
#navbar nav > div > ul,
#navbar nav > div > div {
  min-width: 0;
}

#navbar nav > div > a {
  flex-shrink: 1;
}

#navbar nav > div > div {
  flex-shrink: 0;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.8rem 1.6rem;
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-sm {
  padding: 0.55rem 1.15rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.05rem;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(120deg, #2563eb, #7c3aed);
  background-size: 160% auto;
  box-shadow: 0 10px 30px -8px rgba(99, 102, 241, 0.55);
}

.btn-primary:hover {
  background-position: right center;
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -8px rgba(99, 102, 241, 0.7);
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  background-size: 250% 100%;
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-primary:hover::after {
  opacity: 1;
  animation: shine 1.1s ease;
}

@keyframes shine {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.btn-ghost {
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}

.underline-glow {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.25em;
  height: 0.35em;
  border-radius: 999px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  opacity: 0.4;
  filter: blur(1px);
  z-index: -1;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  z-index: 0;
  pointer-events: none;
}

.hero-orb-1 {
  width: 420px;
  height: 420px;
  top: -80px;
  right: -60px;
  background: rgba(99, 102, 241, 0.28);
}

.hero-orb-2 {
  width: 360px;
  height: 360px;
  bottom: -100px;
  left: -80px;
  background: rgba(59, 130, 246, 0.22);
}

.hero-orb-3 {
  width: 300px;
  height: 300px;
  top: 40%;
  left: 45%;
  background: rgba(139, 92, 246, 0.16);
}

.grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent);
  pointer-events: none;
  z-index: 0;
}

.hero-glow {
  position: absolute;
  inset: 8% 6% -6%;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(139, 92, 246, 0.25));
  filter: blur(60px);
  border-radius: 40px;
  z-index: -1;
}

.code-window {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
}

.code-window-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot-red { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green { background: #28c840; }

.code-window-title {
  margin-left: 0.5rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  color: #94a3b8;
}

.code-content {
  padding: 1.25rem 1.25rem 1.5rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82rem;
  line-height: 1.85;
  color: #e2e8f0;
  overflow-x: auto;
}

.c-k { color: #c792ea; }
.c-fn { color: #82aaff; }
.c-p { color: #f07178; }
.c-v { color: #89ddff; }
.c-c { color: #546e7a; font-style: italic; }

.terminal-window {
  position: absolute;
  bottom: -28px;
  left: -14px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  white-space: nowrap;
}

.terminal-prompt { color: #a78bfa; }
.terminal-cmd { color: #e2e8f0; }
.terminal-out { color: #64748b; }

.terminal-cursor {
  width: 7px;
  height: 14px;
  background: #a78bfa;
  animation: blink 1s step-end infinite;
}

.floating-chip {
  position: absolute;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.9rem;
  border-radius: 12px;
  background: rgba(10, 12, 28, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.8);
  font-size: 0.8rem;
  font-weight: 600;
}

.floating-chip i { font-size: 1.1rem; }
.floating-chip span { color: #e2e8f0; }

.chip-a { top: -4px; right: -12px; }
.chip-b { top: 34%; left: -34px; }
.chip-c { bottom: 14%; right: -22px; }
.chip-d { bottom: -14px; left: 6%; }

.code-badge {
  position: absolute;
  top: 42%;
  right: -10px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(120deg, #3b82f6, #8b5cf6);
}

.scroll-hint {
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  position: relative;
}

.scroll-hint::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  width: 4px;
  height: 8px;
  border-radius: 4px;
  background: #a78bfa;
  transform: translateX(-50%);
  animation: scroll-hint 1.8s ease-in-out infinite;
}

@keyframes scroll-hint {
  0% { opacity: 0; transform: translate(-50%, 0); }
  40% { opacity: 1; }
  80% { opacity: 0; transform: translate(-50%, 14px); }
  100% { opacity: 0; }
}

.stats-strip {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
}

.stat {
  text-align: center;
  padding: 0.75rem 0;
}

.stat-value {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(120deg, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: #94a3b8;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #93c5fd;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #60a5fa, #a78bfa);
}

.about-frame {
  position: relative;
  border-radius: 1.5rem;
  background: linear-gradient(160deg, rgba(59, 130, 246, 0.16), rgba(139, 92, 246, 0.14), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
}

.about-screen {
  border-radius: 1rem;
  background: rgba(6, 8, 20, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem;
}

.about-top {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.about-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  box-shadow: 0 12px 30px -10px rgba(99, 102, 241, 0.7);
}

.about-line {
  height: 9px;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.28), rgba(148, 163, 184, 0.06));
}

.about-mini {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  font-size: 1.6rem;
}

.about-badge {
  position: absolute;
  bottom: -22px;
  right: -14px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.1rem;
  border-radius: 14px;
  background: rgba(10, 12, 28, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.8);
  color: #60a5fa;
}

.tag {
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  transition: all 0.3s ease;
}

.tag:hover {
  border-color: rgba(139, 92, 246, 0.5);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -8px rgba(139, 92, 246, 0.5);
}

.tech-card {
  border-radius: 1.1rem;
  padding: 1.5rem 1.1rem;
  text-align: center;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s, border-color 0.35s, background 0.35s;
  will-change: transform;
}

.tech-card:hover {
  transform: translateY(-6px) scale(1.03);
  border-color: rgba(139, 92, 246, 0.4);
  background: rgba(139, 92, 246, 0.07);
  box-shadow: 0 24px 50px -20px rgba(99, 102, 241, 0.5);
}

.tech-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  font-size: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #e2e8f0;
  transition: transform 0.35s, box-shadow 0.35s;
}

.tech-card:hover .tech-icon {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 14px 30px -10px rgba(99, 102, 241, 0.55);
}

.tech-icon-gradient {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
  color: #a5b4fc;
}

.tech-name {
  margin-top: 1rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #f1f5f9;
}

.tech-desc {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: #64748b;
}

.service-card {
  position: relative;
  border-radius: 1.15rem;
  padding: 1.5rem 1.35rem;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.35s, box-shadow 0.35s;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 26px 55px -22px rgba(99, 102, 241, 0.5);
}

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

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.16), rgba(139, 92, 246, 0.16));
  border: 1px solid rgba(139, 92, 246, 0.25);
  color: #a5b4fc;
  transition: transform 0.35s;
}

.service-card:hover .service-icon {
  transform: rotate(-6deg) scale(1.1);
  box-shadow: 0 12px 26px -8px rgba(99, 102, 241, 0.55);
}

.service-name {
  margin-top: 1.1rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.02rem;
  font-weight: 600;
  color: #f1f5f9;
}

.service-desc {
  margin-top: 0.5rem;
  font-size: 0.82rem;
  line-height: 1.6;
  color: #94a3b8;
}

.project-card {
  border-radius: 1.5rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.09);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.4s, box-shadow 0.4s;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-10px);
  border-color: rgba(139, 92, 246, 0.45);
  box-shadow: 0 40px 80px -30px rgba(99, 102, 241, 0.55);
}

.project-preview {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.project-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(5, 6, 15, 0.9));
  pointer-events: none;
}

.project-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

.project-desc {
  margin-top: 0.6rem;
  font-size: 0.88rem;
  line-height: 1.65;
  color: #94a3b8;
}

.project-features {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.feature-chip {
  font-size: 0.7rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  color: #c7d2fe;
  border: 1px solid rgba(139, 92, 246, 0.3);
  background: rgba(139, 92, 246, 0.08);
}

.project-tech {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.74rem;
  font-weight: 500;
  color: #e2e8f0;
  padding: 0.3rem 0.7rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.tech-pill i { font-size: 0.95rem; }

.project-actions {
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  gap: 0.75rem;
}

.project-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 1rem;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.project-btn-solid {
  color: #fff;
  background: linear-gradient(120deg, #2563eb, #7c3aed);
}

.project-btn-solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -8px rgba(99, 102, 241, 0.6);
}

.project-btn-ghost {
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.project-btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.mock {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
}

.mock-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.9rem;
}

.mock-logo {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.25);
}

.mock-links {
  display: flex;
  gap: 0.4rem;
}

.mock-links span {
  width: 26px;
  height: 4px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.3);
}

.mock-content {
  flex: 1;
  padding: 0.9rem;
  display: flex;
  gap: 0.8rem;
}

.mock-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  align-content: start;
}

.mock-cell {
  height: 44px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.14);
}

.mock-cell:nth-child(4n) { background: rgba(255, 255, 255, 0.2); }
.mock-cell:nth-child(5n) { background: rgba(255, 255, 255, 0.18); }

.mock-sidebar {
  width: 76px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.mock-sidebar span {
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.16);
}

.mock-table {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mock-table span {
  height: 16px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.13);
}

.mock-table span:nth-child(odd) { width: 86%; }

.mock-hero {
  padding: 1rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.mock-hero h4 {
  width: 62%;
  height: 12px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.5);
}

.mock-hero p {
  width: 84%;
  height: 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.22);
}

.mock-hero p:nth-of-type(2) { width: 70%; }

.mock-btn {
  width: 44%;
  height: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  margin-top: 0.3rem;
}

.mock-img {
  flex: 1;
  margin: 0 0.9rem 0.9rem;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
}

.mock-ecommerce { background: linear-gradient(135deg, #1e3a8a, #4c1d95); }
.mock-panel { background: linear-gradient(135deg, #0e2a47, #1e1b4b); }
.mock-landing { background: linear-gradient(135deg, #312e81, #581c87); }

.mock-overlay-icon {
  position: absolute;
  right: 0.9rem;
  top: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: rgba(5, 6, 15, 0.6);
  backdrop-filter: blur(8px);
  font-size: 0.68rem;
  font-weight: 600;
  color: #fff;
  z-index: 2;
}

.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 12px;
  width: 2px;
  background: linear-gradient(180deg, #3b82f6, #8b5cf6, transparent);
  opacity: 0.5;
}

.timeline-item {
  position: relative;
  padding-left: 3.25rem;
}

.timeline-dot {
  position: absolute;
  left: 4px;
  top: 0.5rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #06070f;
  border: 2px solid #8b5cf6;
  box-shadow: 0 0 0 5px rgba(139, 92, 246, 0.18), 0 0 18px rgba(139, 92, 246, 0.5);
}

.timeline-card {
  border-radius: 1.1rem;
  padding: 1.3rem 1.4rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.timeline-card:hover {
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 20px 45px -18px rgba(99, 102, 241, 0.45);
}

.timeline-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a5b4fc;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(139, 92, 246, 0.35);
  background: rgba(139, 92, 246, 0.1);
}

.timeline-title {
  margin-top: 0.75rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #f1f5f9;
}

.timeline-desc {
  margin-top: 0.45rem;
  font-size: 0.86rem;
  line-height: 1.65;
  color: #94a3b8;
}

.why-card {
  border-radius: 1.1rem;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.35s, box-shadow 0.35s;
}

.why-card:hover {
  transform: translateY(-6px);
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: 0 24px 50px -20px rgba(59, 130, 246, 0.5);
}

.why-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: #34d399;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.why-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #f1f5f9;
}

.why-desc {
  font-size: 0.8rem;
  line-height: 1.55;
  color: #94a3b8;
}

.testimonial-track {
  display: flex;
  overflow: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}

.testimonial-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  padding: 2.5rem;
  border-radius: 1.5rem;
  text-align: center;
}

.testimonial-stars {
  color: #fbbf24;
  letter-spacing: 0.25em;
  font-size: 1.1rem;
}

.testimonial-text {
  margin: 1.25rem auto 0;
  max-width: 42rem;
  font-size: 1.05rem;
  line-height: 1.75;
  color: #e2e8f0;
  font-style: italic;
}

.testimonial-author {
  margin-top: 1.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-align: left;
}

.testimonial-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  color: #fff;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #cbd5e1;
  transition: all 0.3s ease;
}

.carousel-btn:hover {
  background: rgba(139, 92, 246, 0.2);
  border-color: rgba(139, 92, 246, 0.5);
  color: #fff;
}

.carousel-btn.prev { left: -14px; }
.carousel-btn.next { right: -14px; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 1.75rem;
}

.carousel-dots button {
  width: 26px;
  height: 6px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  transition: all 0.35s ease;
  cursor: pointer;
}

.carousel-dots button.active {
  width: 42px;
  background: linear-gradient(90deg, #60a5fa, #a78bfa);
}

.cta-panel {
  border-radius: 2rem;
  padding: 3rem 2rem;
}

.cta-orb {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  filter: blur(90px);
  background: rgba(99, 102, 241, 0.3);
  top: -140px;
  right: -100px;
  pointer-events: none;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.3s ease;
}

.contact-row:hover {
  border-color: rgba(139, 92, 246, 0.45);
  background: rgba(139, 92, 246, 0.07);
  transform: translateX(4px);
  box-shadow: 0 16px 40px -16px rgba(99, 102, 241, 0.5);
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.16), rgba(139, 92, 246, 0.16));
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: #a5b4fc;
  flex-shrink: 0;
}

.contact-icon.wa { color: #34d399; background: rgba(52, 211, 153, 0.12); border-color: rgba(52, 211, 153, 0.3); }

.contact-label {
  display: block;
  font-size: 0.75rem;
  color: #64748b;
}

.contact-value {
  display: block;
  font-size: 0.92rem;
  font-weight: 500;
  color: #e2e8f0;
  margin-top: 0.1rem;
}

.form-panel {
  border-radius: 1.5rem;
  padding: 2rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: #cbd5e1;
}

.form-input {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.92rem;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}

.form-input::placeholder {
  color: #475569;
}

.form-input:focus {
  outline: none;
  border-color: rgba(139, 92, 246, 0.6);
  background: rgba(139, 92, 246, 0.06);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.14);
}

.form-input.error {
  border-color: rgba(248, 113, 113, 0.6);
}

.form-success {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  font-size: 0.88rem;
  color: #34d399;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.form-error {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  font-size: 0.88rem;
  color: #f87171;
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.3);
}

.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: all 0.35s ease;
  box-shadow: 0 16px 40px -10px rgba(99, 102, 241, 0.7);
}

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

.back-to-top:hover {
  transform: translateY(-4px);
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

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

.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.preloader-logo {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  animation: float 2.4s ease-in-out infinite;
}

.preloader-bar {
  width: 140px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.preloader-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  animation: preloader 1.4s ease-in-out infinite;
}

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

.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 90;
  border-radius: 50%;
  will-change: transform;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background: #a78bfa;
}

.cursor-ring {
  width: 40px;
  height: 40px;
  border: 1.5px solid rgba(167, 139, 250, 0.6);
  transition: width 0.25s, height 0.25s, border-color 0.25s, background 0.25s;
}

.cursor-ring.hover {
  width: 64px;
  height: 64px;
  border-color: rgba(167, 139, 250, 0.2);
  background: rgba(139, 92, 246, 0.1);
}

.social-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  transition: all 0.3s ease;
  font-size: 1.15rem;
}

.social-chip:hover {
  color: #fff;
  border-color: rgba(139, 92, 246, 0.55);
  background: rgba(139, 92, 246, 0.15);
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -10px rgba(139, 92, 246, 0.55);
}

.tilt {
  transform-style: preserve-3d;
  transition: transform 0.25s ease-out;
}

@media (max-width: 1024px) {
  .chip-b { left: -6px; }
  .chip-c { right: -6px; }
}

@media (max-width: 640px) {
  .section {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
  }

  .terminal-window {
    left: 4px;
    bottom: -22px;
    font-size: 0.62rem;
  }

  .floating-chip {
    padding: 0.45rem 0.7rem;
    font-size: 0.72rem;
  }

  .chip-a { top: -14px; right: -4px; }
  .chip-d { bottom: -18px; left: 0; }

  .code-badge {
    top: 30%;
    right: -4px;
    font-size: 0.7rem;
    padding: 0.5rem 0.8rem;
  }

  .carousel-btn.prev { left: 0; top: 96%; transform: none; }
  .carousel-btn.next { right: 0; top: 96%; transform: none; }

  .testimonial-slide {
    padding: 2rem 1.4rem;
  }

  .cta-panel {
    padding: 2.25rem 1.4rem;
    border-radius: 1.5rem;
  }

  .form-panel {
    padding: 1.4rem;
  }
}

@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;
  }

  .custom-cursor {
    display: none;
  }
}

@media (hover: none), (pointer: coarse) {
  .custom-cursor {
    display: none;
  }

  body {
    cursor: auto;
  }
}
