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

:root {
  --bg: #050810;
  --surface: #0c1120;
  --surface2: #111827;
  --text: #e8eaf6;
  --muted: #6b7280;
  --accent: #7c3aed;
  --accent2: #06b6d4;
  --accent3: #f59e0b;
  --glow: rgba(124, 58, 237, 0.4);
  --glow2: rgba(6, 182, 212, 0.3);
  --font-display: 'Syne', sans-serif;
  --font-mono: 'Space Mono', monospace;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --section-pad: 100px 6%;
  --radius: 16px;
}

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  cursor: none;
  overflow-x: hidden;
}

/* ===================== CUSTOM CURSOR ===================== */
#cursor {
  width: 12px; height: 12px;
  background: var(--accent2);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s, width 0.3s, height 0.3s, background 0.3s;
  mix-blend-mode: screen;
}
#cursor-ring {
  width: 36px; height: 36px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.15s var(--ease), width 0.4s var(--ease), height 0.4s var(--ease), border-color 0.3s, opacity 0.3s;
  opacity: 0.7;
}
body:hover #cursor-ring { opacity: 1; }

/* ===================== CANVAS BG ===================== */
#bg-canvas {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0; pointer-events: none; opacity: 0.6;
}

/* ===================== NOISE OVERLAY ===================== */
.noise {
  position: fixed; inset: 0; z-index: 1;
  pointer-events: none; opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 150px;
  animation: noiseShift 0.5s steps(2) infinite;
}
@keyframes noiseShift {
  0% { background-position: 0 0; }
  50% { background-position: 30px -20px; }
  100% { background-position: -10px 40px; }
}

/* ===================== PAGE SYSTEM ===================== */
/*
 * Each HTML file has exactly one .page.active div.
 * We always show it — no JS toggling needed across pages.
 */
.page {
  min-height: 100vh;
  position: relative; z-index: 2;
  animation: fadeSlideIn 0.6s var(--ease) both;
}

/* Legacy: keep .page without .active hidden for any inline demos */
.page:not(.active) { display: none; }
.page.active { display: block; }

.page-wrap {
  padding: 120px 6% 80px;
  max-width: 1200px;
  margin: 0 auto;
}

/* ===================== NAV ===================== */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 6%;
  background: rgba(5, 8, 16, 0.7);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(124, 58, 237, 0.15);
  transition: padding 0.3s;
}
nav.scrolled { padding: 14px 6%; }

.nav-logo {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 800; letter-spacing: 2px;
  color: var(--text); cursor: pointer; position: relative;
}
.nav-logo span { color: var(--accent2); }
.nav-logo::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: var(--accent2);
  transition: width 0.3s var(--ease);
}
.nav-logo:hover::after { width: 100%; }

.nav-links { display: flex; align-items: center; gap: 10px; }

/* Nav buttons — works for both <button> and <a> elements */
.nav-btn {
  background: none; border: none; cursor: none;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--muted); letter-spacing: 1.5px; text-transform: uppercase;
  padding: 8px 18px; border-radius: 4px;
  transition: color 0.3s, background 0.3s; position: relative;
  text-decoration: none; /* for <a> tags */
  display: inline-block; /* for <a> tags */
}
.nav-btn::before {
  content: ''; position: absolute; inset: 0;
  border-radius: 4px; background: var(--accent); opacity: 0;
  transition: opacity 0.3s;
}
.nav-btn:hover { color: white; }
.nav-btn:hover::before { opacity: 0.15; }
.nav-btn.active { color: var(--accent2); }

.nav-theme {
  width: 42px; height: 22px; background: var(--surface2);
  border-radius: 11px; border: 1px solid var(--accent);
  cursor: none; position: relative; transition: background 0.3s;
}
.nav-theme::after {
  content: ''; width: 14px; height: 14px; background: var(--accent2);
  border-radius: 50%; position: absolute; top: 3px; left: 3px;
  transition: transform 0.3s var(--ease);
}
.nav-theme.light-mode::after { transform: translateX(20px); }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: none; background: none; border: none;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--text); transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===================== MOBILE MENU ===================== */
.mobile-menu {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(5, 8, 16, 0.97); z-index: 999;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 32px; backdrop-filter: blur(20px);
}
.mobile-menu.open { display: flex; }
.mobile-menu .nav-btn {
  font-size: 24px !important; letter-spacing: 3px;
  padding: 10px 30px; color: var(--text);
}

/* ===================== PAGE HEADER ===================== */
.page-header { margin-bottom: 60px; animation: fadeSlideIn 0.6s var(--ease) both; }
.page-header.centered { text-align: center; }
.page-header.centered .page-label { justify-content: center; }

.page-label {
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--accent2); display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
}
.page-label::before { content: ''; width: 30px; height: 1px; background: var(--accent2); }
.page-header.centered .page-label::before { display: none; }
.page-header.centered .page-label::after { content: ''; width: 30px; height: 1px; background: var(--accent2); }

.page-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 60px); font-weight: 800; line-height: 1.1; color: var(--text);
}
.page-title span { color: var(--accent); }

.section-subtitle {
  font-size: 14px; color: var(--muted); line-height: 1.8;
  max-width: 560px; margin: 18px auto 0; text-align: center;
}

/* ===================== SECTION INNER ===================== */
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--section-pad);
}

/* ===================== HOME HERO ===================== */
#home { position: relative; overflow: hidden; }

#hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 100px 6% 60px;
  position: relative; overflow: hidden;
}

.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
  width: 100%; max-width: 1200px; margin: 0 auto;
}
.hero-left { position: relative; }

.hero-tag {
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--accent2); margin-bottom: 24px;
  display: flex; align-items: center; gap: 12px;
  animation: fadeSlideIn 0.8s var(--ease) 0.2s both;
}
.hero-tag::before { content: ''; width: 30px; height: 1px; background: var(--accent2); }

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 90px); font-weight: 800; line-height: 0.95;
  margin-bottom: 20px; animation: fadeSlideIn 0.8s var(--ease) 0.35s both;
}
.hero-name .line1 { display: block; color: var(--text); }
.hero-name .line2 {
  display: block;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.hero-role {
  font-size: 14px; color: var(--muted); letter-spacing: 0.5px; line-height: 1.8;
  max-width: 440px; margin-bottom: 40px;
  animation: fadeSlideIn 0.8s var(--ease) 0.5s both;
}
.hero-role strong { color: var(--accent3); }

.hero-cta {
  display: flex; gap: 16px; flex-wrap: wrap;
  animation: fadeSlideIn 0.8s var(--ease) 0.65s both;
}

/* ===================== BUTTONS ===================== */
/* Works for both <button> and <a> elements */
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #9333ea);
  color: white; border: none; padding: 14px 32px;
  border-radius: 6px; font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase;
  cursor: none; position: relative; overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.4);
  text-decoration: none; /* for <a> */
  display: inline-block; /* for <a> */
}
.btn-primary::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 40px rgba(124, 58, 237, 0.6); color: white; }
.btn-primary:hover::before { opacity: 1; }

.btn-outline {
  background: transparent; color: var(--text);
  border: 1px solid rgba(124, 58, 237, 0.4); padding: 14px 32px;
  border-radius: 6px; font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase;
  cursor: none; transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease);
  text-decoration: none; /* for <a> */
  display: inline-block; /* for <a> */
}
.btn-outline:hover { border-color: var(--accent2); background: rgba(6, 182, 212, 0.08); transform: translateY(-3px); color: var(--text); }

.hero-stats {
  display: flex; gap: 40px; margin-top: 50px;
  padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.06);
  animation: fadeSlideIn 0.8s var(--ease) 0.8s both;
}
.stat-item { text-align: center; }
.stat-num {
  font-family: var(--font-display); font-size: 36px; font-weight: 800;
  color: var(--accent2); display: block; line-height: 1;
}
.stat-label {
  font-size: 10px; letter-spacing: 1.5px; color: var(--muted);
  text-transform: uppercase; margin-top: 4px;
}

.hero-right { display: flex; justify-content: center; align-items: center; animation: fadeSlideIn 0.8s var(--ease) 0.4s both; }
.hero-visual { width: 360px; height: 420px; position: relative; }

.avatar-card {
  width: 260px; height: 320px; background: var(--surface);
  border-radius: 24px; border: 1px solid rgba(124, 58, 237, 0.25);
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 16px; overflow: hidden;
  box-shadow: 0 0 60px rgba(124, 58, 237, 0.2), 0 40px 80px rgba(0,0,0,0.5);
  animation: cardFloat 4s ease-in-out infinite;
}
@keyframes cardFloat {
  0%, 100% { transform: translate(-50%, -50%) rotate(-2deg); }
  50% { transform: translate(-50%, calc(-50% - 14px)) rotate(2deg); }
}
.avatar-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 60%;
  background: linear-gradient(135deg, rgba(124,58,237,0.15), rgba(6,182,212,0.05));
  border-radius: 24px 24px 60% 60%;
}
.avatar-initials {
  width: 90px; height: 90px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 28px; font-weight: 800;
  color: white; position: relative; z-index: 1;
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.5);
}
.avatar-name { font-family: var(--font-display); font-size: 18px; font-weight: 700; position: relative; z-index: 1; color: var(--text); }
.avatar-title { font-size: 11px; color: var(--accent2); letter-spacing: 1.5px; text-transform: uppercase; position: relative; z-index: 1; }
.avatar-badge {
  position: absolute; top: 16px; right: 16px;
  background: rgba(245, 158, 11, 0.15); border: 1px solid rgba(245, 158, 11, 0.4);
  color: var(--accent3); font-size: 9px; letter-spacing: 1px;
  padding: 4px 10px; border-radius: 20px; text-transform: uppercase;
}
.avatar-dots { position: absolute; bottom: 20px; display: flex; gap: 6px; }
.avatar-dots span {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  opacity: 0.4; animation: dotPulse 1.5s ease-in-out infinite;
}
.avatar-dots span:nth-child(2) { animation-delay: 0.3s; }
.avatar-dots span:nth-child(3) { animation-delay: 0.6s; }
@keyframes dotPulse { 0%,100%{opacity:0.2} 50%{opacity:1} }

.orbit {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%; border: 1px solid rgba(124, 58, 237, 0.12);
  animation: orbitSpin 12s linear infinite;
}
.orbit-1 { width: 320px; height: 320px; }
.orbit-2 { width: 400px; height: 400px; animation-direction: reverse; animation-duration: 20s; border-color: rgba(6,182,212,0.1); }
@keyframes orbitSpin {
  from { transform: translate(-50%,-50%) rotate(0deg); }
  to { transform: translate(-50%,-50%) rotate(360deg); }
}
.orbit-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  position: absolute; top: -4px; left: 50%; transform: translateX(-50%);
  box-shadow: 0 0 10px var(--accent);
}
.orbit-2 .orbit-dot { background: var(--accent2); box-shadow: 0 0 10px var(--accent2); top: auto; bottom: -4px; }

.float-tag {
  position: absolute; background: var(--surface2);
  border: 1px solid rgba(255,255,255,0.08); border-radius: 10px;
  padding: 10px 14px; font-size: 11px; color: var(--muted);
  display: flex; align-items: center; gap: 8px;
  white-space: nowrap; box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.float-tag .dot { width: 8px; height: 8px; border-radius: 50%; }
.ft-1 { top: 10px; left: -20px; animation: floatTag 3s ease-in-out infinite; }
.ft-2 { bottom: 30px; right: -30px; animation: floatTag 3s ease-in-out 1.5s infinite; }
@keyframes floatTag { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }

.scroll-hint {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted);
  animation: fadeSlideIn 1s var(--ease) 1.2s both;
}
.scroll-line {
  width: 1px; height: 50px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine { 0%,100%{transform:scaleY(0.5);opacity:0.4} 50%{transform:scaleY(1);opacity:1} }

/* ===================== SERVICES SECTION ===================== */
.services-section { background: linear-gradient(to bottom, transparent, rgba(124,58,237,0.03)); }

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

.service-card {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius); padding: 36px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s, border-color 0.4s;
  cursor: none; position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  opacity: 0; transition: opacity 0.4s;
}
.service-card:hover::before { opacity: 1; }
.service-card:hover { transform: translateY(-8px); box-shadow: 0 20px 60px rgba(124, 58, 237, 0.2); border-color: rgba(124, 58, 237, 0.3); }
.service-card.featured {
  border-color: rgba(124, 58, 237, 0.35);
  background: linear-gradient(135deg, var(--surface), rgba(124,58,237,0.05));
  box-shadow: 0 0 40px rgba(124,58,237,0.15);
}
.service-popular {
  display: inline-block; font-size: 9px; letter-spacing: 2px; text-transform: uppercase;
  background: rgba(245,158,11,0.15); border: 1px solid rgba(245,158,11,0.4);
  color: var(--accent3); padding: 4px 12px; border-radius: 20px; margin-bottom: 20px;
}
.service-icon-wrap {
  width: 60px; height: 60px; background: var(--surface2);
  border-radius: 14px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; border: 1px solid rgba(124,58,237,0.15);
}
.service-icon { font-size: 28px; }
.service-title { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 12px; }
.service-desc { font-size: 12px; color: var(--muted); line-height: 1.7; margin-bottom: 20px; }
.service-list {
  list-style: none; margin-bottom: 24px;
}
.service-list li {
  font-size: 11px; color: var(--muted); padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  display: flex; align-items: center; gap: 8px;
}
.service-list li::before { content: '→'; color: var(--accent2); font-size: 10px; }
.service-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.about-tag {
  padding: 5px 14px; border-radius: 20px;
  background: var(--surface2); border: 1px solid rgba(255,255,255,0.06);
  font-size: 10px; letter-spacing: 0.5px; color: var(--muted);
  transition: border-color 0.3s, color 0.3s;
}
.about-tag:hover { border-color: var(--accent2); color: var(--accent2); }

/* ===================== SKILLS SECTION ===================== */
.skills-section { position: relative; }
.skills-section::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(6,182,212,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.skills-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }

.skill-bar-row { margin-bottom: 28px; }
.skill-bar-info {
  display: flex; justify-content: space-between;
  margin-bottom: 10px;
}
.skill-name { font-size: 12px; color: var(--text); letter-spacing: 1px; }
.skill-pct { font-size: 12px; color: var(--accent2); }
.skill-track { height: 4px; background: var(--surface2); border-radius: 2px; overflow: hidden; }
.skill-fill-bar {
  height: 100%; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  width: 0; transition: width 1.4s var(--ease);
}

.tech-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.tech-pill {
  padding: 10px 18px; border-radius: 8px;
  background: var(--surface); border: 1px solid rgba(255,255,255,0.07);
  font-size: 11px; letter-spacing: 1px; color: var(--muted);
  transition: all 0.3s; cursor: default;
}
.tech-pill:hover { border-color: var(--accent2); color: var(--accent2); background: rgba(6,182,212,0.06); transform: translateY(-2px); }

/* ===================== PROCESS SECTION ===================== */
.process-section {
  background: linear-gradient(to bottom, transparent, rgba(124,58,237,0.04), transparent);
}

.process-timeline {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 30px; position: relative; margin-top: 20px;
}
.process-line {
  position: absolute; top: 28px; left: 10%; right: 10%;
  height: 1px; background: linear-gradient(90deg, transparent, var(--accent), var(--accent2), transparent);
  opacity: 0.3;
}

.process-step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }

.step-number {
  font-family: var(--font-display); font-size: 13px; font-weight: 800;
  color: var(--accent); letter-spacing: 2px;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--surface); border: 1px solid rgba(124,58,237,0.3);
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1; margin-bottom: 28px;
  box-shadow: 0 0 20px rgba(124,58,237,0.2);
}

.step-card {
  background: var(--surface); border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius); padding: 28px 22px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}
.step-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(124,58,237,0.15); }
.step-icon { font-size: 28px; margin-bottom: 14px; }
.step-title { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.step-desc { font-size: 11px; color: var(--muted); line-height: 1.7; }

/* ===================== TESTIMONIALS ===================== */
.testimonials-section {
  position: relative;
  background: linear-gradient(to bottom, transparent, rgba(6,182,212,0.03));
}

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

.testimonial-card {
  background: var(--surface); border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius); padding: 36px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
  position: relative; overflow: hidden;
}
.testimonial-card::after {
  content: '"'; position: absolute; top: 20px; right: 30px;
  font-family: var(--font-display); font-size: 80px; font-weight: 800;
  color: var(--accent); opacity: 0.06; line-height: 1;
}
.testimonial-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(124,58,237,0.15); }
.testimonial-card.featured-testi {
  border-color: rgba(124,58,237,0.3);
  background: linear-gradient(135deg, var(--surface), rgba(124,58,237,0.05));
}

.testi-stars { font-size: 16px; color: var(--accent3); margin-bottom: 18px; letter-spacing: 3px; }
.testi-text { font-size: 13px; color: var(--muted); line-height: 1.8; margin-bottom: 28px; font-style: italic; }
.testi-author { display: flex; align-items: center; gap: 14px; }
.testi-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 14px; font-weight: 800; color: white;
  flex-shrink: 0;
}
.testi-name { font-family: var(--font-display); font-size: 14px; font-weight: 700; color: var(--text); }
.testi-role { font-size: 10px; color: var(--accent2); letter-spacing: 1px; text-transform: uppercase; margin-top: 2px; }

/* ===================== CTA SECTION ===================== */
.cta-section {
  padding: 0 6% 0;
}

.cta-inner {
  max-width: 800px; margin: 0 auto;
  background: var(--surface);
  border: 1px solid rgba(124,58,237,0.25);
  border-radius: 28px; padding: 80px 60px;
  text-align: center; position: relative; overflow: hidden;
  box-shadow: 0 0 80px rgba(124,58,237,0.12);
}
.cta-glow {
  position: absolute; top: -60px; left: 50%; transform: translateX(-50%);
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,0.2), transparent 70%);
  pointer-events: none;
}

.cta-label {
  font-size: 10px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--accent2); margin-bottom: 20px;
}
.cta-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 46px); font-weight: 800;
  color: var(--text); line-height: 1.15; margin-bottom: 20px;
}
.cta-title span { color: var(--accent); }
.cta-sub { font-size: 13px; color: var(--muted); line-height: 1.8; max-width: 500px; margin: 0 auto 40px; }

.cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 32px; }

.btn-whatsapp {
  background: #25D366; color: white;
  border: none; padding: 14px 28px; border-radius: 6px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 1.5px;
  text-transform: uppercase; cursor: none; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
  box-shadow: 0 0 30px rgba(37,211,102,0.3);
}
.btn-whatsapp:hover { transform: translateY(-3px); box-shadow: 0 10px 40px rgba(37,211,102,0.5); color: white; }

.cta-trust { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; }
.cta-trust span { font-size: 11px; color: var(--muted); letter-spacing: 0.5px; }

/* ===================== FOOTER ===================== */
.footer {
  padding: 80px 6% 30px;
  border-top: 1px solid rgba(255,255,255,0.05);
  margin-top: 100px;
  position: relative;
}
.footer::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124,58,237,0.4), rgba(6,182,212,0.4), transparent);
}
.footer-inner { max-width: 1200px; margin: 0 auto; }

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

.footer-logo {
  font-family: var(--font-display); font-size: 24px; font-weight: 800;
  letter-spacing: 2px; color: var(--text); margin-bottom: 16px;
}
.footer-logo span { color: var(--accent2); }
.footer-tagline { font-size: 12px; color: var(--muted); line-height: 1.7; margin-bottom: 24px; max-width: 260px; }

.footer-socials { display: flex; gap: 10px; }
.fsocial {
  width: 38px; height: 38px; border-radius: 8px;
  background: var(--surface2); border: 1px solid rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; font-size: 13px; color: var(--muted);
  transition: all 0.3s; cursor: none;
}
.fsocial:hover { border-color: var(--accent2); color: var(--accent2); background: rgba(6,182,212,0.08); transform: translateY(-2px); }

.footer-col-title {
  font-family: var(--font-display); font-size: 13px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; color: var(--text);
  margin-bottom: 20px;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a {
  font-size: 12px; color: var(--muted); text-decoration: none;
  transition: color 0.3s; cursor: none;
}
.footer-links a:hover { color: var(--accent2); }

.footer-contact-list { list-style: none; }
.footer-contact-list li {
  font-size: 12px; color: var(--muted); margin-bottom: 12px;
  display: flex; align-items: flex-start; gap: 10px; line-height: 1.5;
}
.footer-contact-list span { font-size: 14px; flex-shrink: 0; margin-top: 1px; }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-copy { font-size: 11px; color: var(--muted); letter-spacing: 0.5px; }
.footer-made { font-size: 11px; color: var(--muted); letter-spacing: 0.5px; }

/* ===================== ABOUT PAGE ===================== */
.about-grid {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: 80px; align-items: start;
}
.about-img-wrap {
  position: relative; animation: fadeSlideIn 0.7s var(--ease) 0.2s both;
}
.about-img-frame {
  width: 100%; aspect-ratio: 3/4; background: var(--surface);
  border-radius: 20px; border: 1px solid rgba(124, 58, 237, 0.2);
  overflow: hidden; position: relative;
  display: flex; align-items: center; justify-content: center;
}
.about-initials-big {
  font-family: var(--font-display); font-size: 80px; font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  opacity: 0.3;
}
.about-img-border {
  position: absolute; top: 20px; left: 20px; right: -20px; bottom: -20px;
  border: 1px solid rgba(124, 58, 237, 0.2); border-radius: 20px; z-index: -1;
}
.exp-badge {
  position: absolute; bottom: -20px; right: -20px;
  background: var(--accent); border-radius: 16px; padding: 20px 24px; text-align: center;
  box-shadow: 0 0 40px rgba(124, 58, 237, 0.5);
}
.exp-badge .num { font-family: var(--font-display); font-size: 32px; font-weight: 800; color: white; display: block; line-height: 1; }
.exp-badge .lbl { font-size: 10px; color: rgba(255,255,255,0.7); letter-spacing: 1px; text-transform: uppercase; }

.about-content { animation: fadeSlideIn 0.7s var(--ease) 0.35s both; }
.about-bio { font-size: 14px; line-height: 1.9; color: var(--muted); margin-bottom: 28px; }
.about-bio strong { color: var(--text); }
.skills-list { margin-bottom: 36px; }
.skills-title { font-family: var(--font-display); font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--accent2); margin-bottom: 18px; }
.skill-row { margin-bottom: 16px; }
.skill-info { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 8px; color: var(--muted); }
.skill-bar { height: 3px; background: var(--surface2); border-radius: 2px; overflow: hidden; }
.skill-fill { height: 100%; border-radius: 2px; background: linear-gradient(90deg, var(--accent), var(--accent2)); width: 0; transition: width 1.2s var(--ease); }
.about-tags { display: flex; flex-wrap: wrap; gap: 10px; }

/* ===================== PORTFOLIO PAGE ===================== */
.filter-bar {
  display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 50px;
  animation: fadeSlideIn 0.6s var(--ease) 0.2s both;
}
.filter-btn {
  background: none; border: 1px solid rgba(255,255,255,0.08);
  color: var(--muted); padding: 8px 20px; border-radius: 4px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 1px;
  text-transform: uppercase; cursor: none; transition: all 0.3s;
}
.filter-btn:hover, .filter-btn.active { border-color: var(--accent); color: var(--accent); background: rgba(124, 58, 237, 0.08); }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; animation: fadeSlideIn 0.6s var(--ease) 0.35s both; }
.project-card {
  background: var(--surface); border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius); overflow: hidden; cursor: none;
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}
.project-card:hover { transform: translateY(-8px); box-shadow: 0 20px 60px rgba(124, 58, 237, 0.2); border-color: rgba(124, 58, 237, 0.3); }
.project-thumb { width: 100%; aspect-ratio: 16/10; overflow: hidden; position: relative; }
.project-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.project-card:hover .project-thumb img { transform: scale(1.08); }
.project-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(5,8,16,0.9), transparent 60%);
  opacity: 0; transition: opacity 0.4s;
  display: flex; align-items: flex-end; padding: 20px;
}
.project-card:hover .project-overlay { opacity: 1; }
.overlay-btn { background: var(--accent); color: white; border: none; padding: 8px 18px; border-radius: 4px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 1px; text-transform: uppercase; cursor: none; }
.project-info { padding: 20px; }
.project-cat { font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: var(--accent2); margin-bottom: 8px; }
.project-title { font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.project-desc { font-size: 12px; color: var(--muted); line-height: 1.6; }

/* ===================== CONTACT PAGE ===================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; margin-top: 20px; }
.contact-info { animation: fadeSlideIn 0.7s var(--ease) 0.2s both; }
.contact-lead { font-size: 14px; line-height: 1.9; color: var(--muted); margin-bottom: 36px; }
.contact-item { display: flex; align-items: center; gap: 16px; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.contact-icon { width: 44px; height: 44px; border-radius: 10px; background: var(--surface2); border: 1px solid rgba(124, 58, 237, 0.2); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.contact-detail .label { font-size: 10px; letter-spacing: 2px; color: var(--muted); text-transform: uppercase; }
.contact-detail .value { font-size: 14px; color: var(--text); margin-top: 2px; }
.social-row { display: flex; gap: 12px; margin-top: 32px; }
.social-btn { width: 44px; height: 44px; border-radius: 10px; background: var(--surface2); border: 1px solid rgba(255,255,255,0.06); display: flex; align-items: center; justify-content: center; cursor: none; font-size: 16px; transition: border-color 0.3s, background 0.3s, transform 0.3s; text-decoration: none; }
.social-btn:hover { border-color: var(--accent2); background: rgba(6,182,212,0.08); transform: translateY(-4px); }
.contact-form-wrap { animation: fadeSlideIn 0.7s var(--ease) 0.35s both; }
.contact-form { background: var(--surface); border: 1px solid rgba(255,255,255,0.06); border-radius: 20px; padding: 40px; }
.form-group { margin-bottom: 24px; }
.form-label { display: block; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.form-input, .form-textarea { width: 100%; background: var(--bg); border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; padding: 14px 16px; color: var(--text); font-family: var(--font-mono); font-size: 13px; outline: none; transition: border-color 0.3s, box-shadow 0.3s; resize: none; }
.form-input:focus, .form-textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1); }
.form-textarea { height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.btn-submit { width: 100%; display: block; background: linear-gradient(135deg, var(--accent), #9333ea); color: white; border: none; padding: 16px 32px; border-radius: 6px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; cursor: none; transition: transform 0.3s var(--ease), box-shadow 0.3s; box-shadow: 0 0 30px rgba(124, 58, 237, 0.4); }
.btn-submit:hover { transform: translateY(-3px); box-shadow: 0 10px 40px rgba(124, 58, 237, 0.6); }

/* ===================== CONTACT FORM ALERT / HONEYPOT ===================== */
.hp-field { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-alert {
  margin-bottom: 20px; padding: 14px 18px; border-radius: 8px;
  font-family: var(--font-mono); font-size: 12.5px; line-height: 1.6;
}
.form-alert-success { background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.4); color: #10b981; }
.form-alert-error { background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.4); color: #ef4444; }

/* ===================== WHATSAPP FLOAT ===================== */
.whatsapp-float {
  position: fixed; bottom: 30px; right: 30px; z-index: 900;
  background: #25D366; color: white; padding: 14px 22px; border-radius: 50px;
  text-decoration: none; font-family: var(--font-mono); font-size: 12px; letter-spacing: 1px;
  display: flex; align-items: center; gap: 8px;
  box-shadow: 0 4px 30px rgba(37, 211, 102, 0.4);
  transition: transform 0.3s var(--ease), box-shadow 0.3s; cursor: none;
}
.whatsapp-float:hover { transform: translateY(-4px); box-shadow: 0 10px 40px rgba(37, 211, 102, 0.6); color: white; }

/* ===================== ANIMATIONS ===================== */
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===================== LIGHT MODE ===================== */
body.light {
  --bg: #f8f9ff; --surface: #ffffff; --surface2: #f0f1f8;
  --text: #0a0e1a; --muted: #6b7280;
}
body.light nav { background: rgba(248, 249, 255, 0.85); border-color: rgba(124, 58, 237, 0.1); }
body.light .project-card { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }
body.light .service-card { box-shadow: 0 2px 20px rgba(0,0,0,0.06); }
body.light .contact-form { box-shadow: 0 4px 30px rgba(0,0,0,0.06); }
body.light .form-input, body.light .form-textarea { background: var(--surface2); }
body.light .testimonial-card { box-shadow: 0 2px 20px rgba(0,0,0,0.06); }
body.light .step-card { box-shadow: 0 2px 20px rgba(0,0,0,0.06); }
body.light .cta-inner { box-shadow: 0 4px 40px rgba(0,0,0,0.08); }
body.light .footer { border-color: rgba(0,0,0,0.06); }

/* ===================== RESPONSIVE ===================== */

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

@media (max-width: 1024px) {
  :root { --section-pad: 80px 5%; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; gap: 60px; text-align: center; }
  .hero-left { order: 2; }
  .hero-right { order: 1; }
  .hero-tag { justify-content: center; }
  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; }
  .about-grid { grid-template-columns: 1fr; }
  .about-img-wrap { max-width: 320px; margin: 0 auto 60px; }
  .contact-grid { grid-template-columns: 1fr; }
  .skills-wrapper { grid-template-columns: 1fr; gap: 50px; }
  .process-timeline { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .process-line { display: none; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .services-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --section-pad: 60px 5%; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .hero-visual { width: 280px; height: 340px; }
  .avatar-card { width: 200px; height: 260px; }
  .orbit-1 { width: 260px; height: 260px; }
  .orbit-2 { width: 320px; height: 320px; }
  .contact-form { padding: 24px; }
  .form-row { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .process-timeline { grid-template-columns: 1fr; }
  .cta-inner { padding: 50px 30px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 8px; }
  .page-wrap { padding: 100px 5% 60px; }
  .hero-stats { gap: 24px; }
  .whatsapp-float { bottom: 20px; right: 20px; padding: 12px 18px; font-size: 11px; }
}

@media (max-width: 480px) {
  :root { --section-pad: 50px 4%; }
  .page-wrap { padding: 90px 4% 50px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .btn-primary, .btn-outline { text-align: center; }
  .hero-stats { flex-direction: row; justify-content: space-around; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .cta-inner { padding: 40px 20px; }
  .cta-btns { flex-direction: column; align-items: stretch; }
  .cta-trust { flex-direction: column; align-items: center; gap: 8px; }
  .about-img-wrap { max-width: 260px; }
  .exp-badge { bottom: -10px; right: -10px; padding: 14px 18px; }
  .exp-badge .num { font-size: 24px; }
  .footer-socials { flex-wrap: wrap; }
  .tech-grid { gap: 8px; }
  .tech-pill { font-size: 10px; padding: 8px 14px; }
  .hero-name { font-size: clamp(36px, 10vw, 60px); }
}
