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

:root {
  --primary: #6c63ff;
  --primary-dark: #5a52d5;
  --primary-light: #8b85ff;
  --accent: #ff6584;
  --green: #43c59e;
  --gold: #ffd700;
  --bg: #0a0a18;
  --bg-2: #0e0e22;
  --bg-3: #13132a;
  --surface: #1a1a32;
  --surface-2: #22224a;
  --border: rgba(108,99,255,.18);
  --border-2: rgba(108,99,255,.08);
  --text: #e2e2f0;
  --text-muted: #9090b0;
  --text-subtle: #5a5a80;
  --white: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --shadow: 0 4px 32px rgba(0,0,0,.5);
  --shadow-lg: 0 16px 64px rgba(0,0,0,.6);
  --glow: 0 0 40px rgba(108,99,255,.25);
  --transition: .3s cubic-bezier(.4,0,.2,1);
  --font: 'Inter', system-ui, sans-serif;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

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

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
input, textarea, button { font-family: inherit; }
strong { color: var(--white); }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--primary), var(--accent)); border-radius: 99px; }

/* ===== CUSTOM CURSOR ===== */
.cursor {
  position: fixed;
  width: 10px; height: 10px;
  background: var(--primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%,-50%);
  transition: width .15s, height .15s, background .15s;
}
.cursor-follower {
  position: fixed;
  width: 36px; height: 36px;
  border: 1.5px solid rgba(108,99,255,.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%,-50%);
  transition: transform .12s ease, width .2s, height .2s;
}
body:has(a:hover) .cursor,
body:has(button:hover) .cursor { width: 16px; height: 16px; background: var(--accent); }

/* ===== PARTICLES ===== */
.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.particle {
  position: absolute;
  border-radius: 50%;
  animation: floatParticle linear infinite;
  opacity: 0;
}
@keyframes floatParticle {
  0% { opacity: 0; transform: translateY(100vh) scale(0); }
  10% { opacity: 1; }
  90% { opacity: 0.6; }
  100% { opacity: 0; transform: translateY(-20px) scale(1); }
}

/* ===== CONTAINER ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 clamp(1rem, 5vw, 2rem); }

/* ===== SECTION ===== */
.section { padding: clamp(5rem, 12vw, 8rem) 0; position: relative; }

.section-header { text-align: center; margin-bottom: 4rem; }
.section-header-left { margin-bottom: 2rem; }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--primary-light);
  background: rgba(108,99,255,.1);
  padding: .4rem 1rem;
  border-radius: 99px;
  border: 1px solid rgba(108,99,255,.25);
  margin-bottom: 1rem;
}
.section-tag::before { content: ''; display: inline-block; width: 6px; height: 6px; background: var(--primary); border-radius: 50%; animation: pulse 2s infinite; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
}
.section-sub {
  color: var(--text-muted);
  font-size: 1rem;
  margin-top: .8rem;
}
.gradient-text {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .4; transform: scale(1.5); }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.8rem;
  border-radius: 99px;
  font-weight: 600;
  font-size: .9rem;
  cursor: none;
  transition: var(--transition);
  border: none;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background .2s;
}
.btn:hover::after { background: rgba(255,255,255,.07); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(108,99,255,.4), inset 0 1px 0 rgba(255,255,255,.15);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(108,99,255,.55), inset 0 1px 0 rgba(255,255,255,.15); }

.btn-ghost {
  background: rgba(255,255,255,.04);
  border: 1.5px solid rgba(255,255,255,.12);
  color: var(--text);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary-light); transform: translateY(-2px); background: rgba(108,99,255,.08); }

.btn-outline-fancy {
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  padding: .85rem 2.2rem;
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-weight: 600;
  font-size: .9rem;
  transition: var(--transition);
}
.btn-outline-fancy svg { width: 18px; height: 18px; transition: transform var(--transition); }
.btn-outline-fancy:hover { border-color: var(--primary); color: var(--primary-light); background: rgba(108,99,255,.06); }
.btn-outline-fancy:hover svg { transform: translateX(4px); }

.btn-full { width: 100%; justify-content: center; }
.btn-sm { padding: .5rem 1.1rem; font-size: .8rem; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.2rem 0;
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(10,10,24,.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: .8rem 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }

.logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.02em;
}
.logo-bracket { color: var(--primary); }

.nav-links { display: flex; align-items: center; gap: .3rem; }
.nav-links a {
  font-size: .87rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: .5rem .85rem;
  border-radius: 99px;
  transition: var(--transition);
  position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); background: rgba(108,99,255,.1); }
.nav-links a.active { color: var(--primary-light); }
.nav-cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
  color: var(--white) !important;
  padding: .5rem 1.2rem !important;
  box-shadow: 0 4px 16px rgba(108,99,255,.35);
}
.nav-cta:hover { box-shadow: 0 6px 24px rgba(108,99,255,.5) !important; transform: translateY(-1px); }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: none; padding: .4rem; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 99px; transition: var(--transition); }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 8rem 0 5rem;
}

/* Orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.hero-orb-1 { width: 600px; height: 600px; background: rgba(108,99,255,.12); top: -200px; left: -200px; }
.hero-orb-2 { width: 400px; height: 400px; background: rgba(255,101,132,.08); bottom: -100px; right: 100px; }
.hero-orb-3 { width: 300px; height: 300px; background: rgba(67,197,158,.06); top: 50%; left: 50%; }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--green);
  background: rgba(67,197,158,.1);
  border: 1px solid rgba(67,197,158,.25);
  padding: .4rem 1rem;
  border-radius: 99px;
  margin-bottom: 1.4rem;
}
.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
}

.hero-name {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 1rem;
}
.name-line {
  display: block;
  font-size: clamp(3.5rem, 7vw, 5.5rem);
  color: var(--white);
  letter-spacing: -.03em;
}
.name-line.gradient-text {
  font-size: clamp(3.5rem, 7vw, 5.5rem);
  -webkit-text-fill-color: transparent;
}

.hero-typewriter {
  font-size: 1.15rem;
  color: var(--primary-light);
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: 1.2rem;
  min-height: 2rem;
}
.cursor-blink {
  animation: blink 1s step-end infinite;
  color: var(--primary);
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.hero-desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 2rem;
  line-height: 1.8;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.4rem; }

.hero-socials { display: flex; gap: .7rem; flex-wrap: wrap; }
.social-pill {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: .45rem 1rem;
  border-radius: 99px;
  transition: var(--transition);
}
.social-pill svg { width: 15px; height: 15px; }
.social-pill:hover { border-color: var(--primary); color: var(--primary-light); background: rgba(108,99,255,.08); transform: translateY(-2px); }

.hero-illustration {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.illus-glow {
  position: absolute;
  width: 350px; height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108,99,255,.2) 0%, transparent 70%);
  pointer-events: none;
  animation: glow-pulse 4s ease-in-out infinite;
}
@keyframes glow-pulse {
  0%, 100% { opacity: .7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}
.dev-svg {
  width: 100%;
  max-width: 520px;
  filter: drop-shadow(0 20px 60px rgba(108,99,255,.3));
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  color: var(--text-subtle);
  transition: var(--transition);
  animation: bounce-slow 2.5s ease-in-out infinite;
}
.scroll-indicator svg { width: 20px; height: 20px; }
.scroll-indicator:hover { border-color: var(--primary); color: var(--primary-light); }
@keyframes bounce-slow {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ===== ABOUT ===== */
.about { background: var(--bg-2); }
.about-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: center;
}

.about-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.about-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  animation: spin linear infinite;
  pointer-events: none;
}
.about-ring-1 { width: 380px; height: 380px; animation-duration: 20s; }
.about-ring-2 { width: 460px; height: 460px; animation-duration: 30s; animation-direction: reverse; border-style: dashed; opacity: .5; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.about-card-wrap { position: relative; z-index: 1; }
.avatar-svg {
  width: clamp(240px, 40vw, 340px);
  filter: drop-shadow(0 20px 50px rgba(108,99,255,.25));
  transition: transform .4s ease;
}
.avatar-svg:hover { transform: translateY(-8px); }

.float-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .78rem;
  font-weight: 700;
  color: var(--white);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: .4rem .9rem;
  border-radius: 99px;
  backdrop-filter: blur(8px);
  white-space: nowrap;
  box-shadow: var(--shadow);
}
.float-badge svg { width: 16px; height: 16px; }
.float-badge-1 { top: 10%; right: -10%; animation: float 4s ease-in-out infinite; }
.float-badge-2 { bottom: 30%; left: -12%; animation: float 5s ease-in-out infinite .5s; }
.float-badge-3 { bottom: 10%; right: -8%; animation: float 3.5s ease-in-out infinite 1s; }

.about-content {}
.about-para {
  color: var(--text-muted);
  font-size: .97rem;
  margin-bottom: 1rem;
  line-height: 1.85;
}
.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.8rem 0;
}
.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  padding: .9rem;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.highlight-item:hover { border-color: var(--border); transform: translateY(-2px); }
.highlight-icon {
  width: 38px; height: 38px;
  border-radius: var(--radius-xs);
  background: rgba(var(--c), .1);
  background: color-mix(in srgb, var(--c) 12%, transparent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--c);
}
.highlight-icon svg { width: 18px; height: 18px; }
.highlight-item h4 { font-size: .88rem; font-weight: 700; color: var(--white); margin-bottom: .15rem; }
.highlight-item p { font-size: .77rem; color: var(--text-subtle); line-height: 1.4; }

.about-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  margin: 1.8rem 0;
}
.stat-card { text-align: center; flex: 1; }
.stat-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--white), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.stat-plus { color: var(--primary); font-size: 1.4rem; font-weight: 700; vertical-align: super; }
.stat-label { font-size: .78rem; color: var(--text-subtle); display: block; margin-top: .3rem; }
.stat-divider { width: 1px; height: 50px; background: var(--border); }

.about-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ===== SKILLS ===== */
.skills { background: var(--bg); }

.skills-categories { display: flex; flex-direction: column; gap: 2.5rem; margin-bottom: 3.5rem; }
.skill-category {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 1.8rem 2rem;
  transition: var(--transition);
}
.skill-category:hover { border-color: var(--border); }
.cat-title {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.2rem;
}
.cat-title svg { width: 18px; height: 18px; color: var(--primary); }

.skill-pills { display: flex; flex-wrap: wrap; gap: .7rem; }
.skill-pill {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem 1.1rem;
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  border-radius: 99px;
  font-size: .83rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
  cursor: default;
}
.skill-pill svg { width: 16px; height: 16px; color: var(--c, currentColor); flex-shrink: 0; }
.skill-pill:hover {
  color: var(--white);
  border-color: var(--c, var(--primary));
  background: rgba(108,99,255,.06);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
}

/* Prof bars */
.prof-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem 3rem; }
.prof-item {}
.prof-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .5rem;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
}
.prof-pct { color: var(--text-muted); font-size: .8rem; }
.skill-bar {
  height: 6px;
  background: var(--surface);
  border-radius: 99px;
  overflow: hidden;
  border: 1px solid var(--border-2);
}
.skill-fill {
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  transition: width 1.4s cubic-bezier(.4,0,.2,1);
  position: relative;
}
.skill-fill::after {
  content: '';
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 6px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 0 8px white;
  opacity: 0;
  transition: opacity .3s;
}
.skill-fill.animated::after { opacity: 0.8; }

/* ===== PROJECTS ===== */
.projects { background: var(--bg-2); }
.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1.8rem;
}
.featured-card { grid-column: 1 / -1; }

.project-card {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.project-card:hover { border-color: rgba(108,99,255,.35); box-shadow: 0 20px 60px rgba(0,0,0,.4), var(--glow); transform: translateY(-4px); }

.project-preview {
  position: relative;
  overflow: hidden;
  background: #0a0a18;
}
.project-preview svg { width: 100%; display: block; transition: transform .4s ease; }
.project-card:hover .project-preview svg { transform: scale(1.02); }

.proj-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,10,24,.85);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  opacity: 0;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}
.project-card:hover .proj-overlay { opacity: 1; }

.project-meta { padding: 1.6rem; flex: 1; display: flex; flex-direction: column; gap: .6rem; }
.project-tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.tag {
  font-size: .72rem;
  font-weight: 700;
  padding: .2rem .65rem;
  border-radius: 99px;
  background: rgba(108,99,255,.08);
  color: var(--tc, var(--primary-light));
  border: 1px solid rgba(108,99,255,.15);
}
.project-meta h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
}
.project-meta p { font-size: .88rem; color: var(--text-muted); line-height: 1.7; flex: 1; }
.proj-footer {
  display: flex;
  gap: 1.5rem;
  padding-top: .8rem;
  border-top: 1px solid var(--border-2);
  margin-top: .4rem;
}
.proj-stat { font-size: .8rem; color: var(--text-subtle); }
.proj-stat span { color: var(--primary-light); font-weight: 700; }

.projects-more { text-align: center; margin-top: 3rem; }

/* ===== CONTACT ===== */
.contact { background: var(--bg); }
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 4rem;
  align-items: start;
}

.contact-left { display: flex; flex-direction: column; gap: 2rem; }
.contact-svg { width: 100%; max-width: 340px; filter: drop-shadow(0 10px 40px rgba(108,99,255,.2)); }

.contact-info-cards { display: flex; flex-direction: column; gap: .8rem; }
.contact-info-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.contact-info-card:hover { border-color: var(--border); transform: translateX(4px); }
.ci-icon {
  width: 42px; height: 42px;
  border-radius: var(--radius-xs);
  display: flex; align-items: center; justify-content: center;
  background: rgba(108,99,255,.1);
  color: var(--c, var(--primary));
  flex-shrink: 0;
}
.ci-icon svg { width: 20px; height: 20px; }
.ci-label { display: block; font-size: .72rem; color: var(--text-subtle); letter-spacing: .1em; text-transform: uppercase; }
.ci-value { font-size: .9rem; color: var(--text); font-weight: 600; }
.ci-arrow { width: 18px; height: 18px; color: var(--text-subtle); margin-left: auto; flex-shrink: 0; }

/* Contact Form */
.contact-form { display: flex; flex-direction: column; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: .45rem; }
.form-group label { font-size: .82rem; font-weight: 600; color: var(--text-muted); }
.form-group input,
.form-group textarea {
  background: var(--surface);
  border: 1.5px solid var(--border-2);
  border-radius: var(--radius-sm);
  padding: .85rem 1.1rem;
  color: var(--text);
  font-size: .9rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  resize: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-subtle); }
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108,99,255,.12);
  background: var(--bg-3);
}

/* Budget pills */
.budget-pills { display: flex; gap: .5rem; flex-wrap: wrap; }
.budget-pill { cursor: none; }
.budget-pill input { display: none; }
.budget-pill span {
  display: block;
  padding: .45rem 1rem;
  border-radius: 99px;
  border: 1.5px solid var(--border-2);
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface);
  transition: var(--transition);
}
.budget-pill input:checked + span {
  background: rgba(108,99,255,.15);
  border-color: var(--primary);
  color: var(--primary-light);
}
.budget-pill span:hover { border-color: var(--border); color: var(--text); }

.form-success {
  display: none;
  align-items: center;
  gap: .6rem;
  background: rgba(67,197,158,.1);
  border: 1px solid rgba(67,197,158,.3);
  color: var(--green);
  border-radius: var(--radius-sm);
  padding: .9rem 1.2rem;
  font-size: .88rem;
  font-weight: 600;
}
.form-success svg { width: 18px; height: 18px; flex-shrink: 0; }
.form-success.show { display: flex; }

/* ===== FOOTER ===== */
.footer-top {
  background: var(--bg-2);
  border-top: 1px solid var(--border-2);
  padding: 3rem 0;
}
.footer-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-brand p { font-size: .85rem; color: var(--text-subtle); margin-top: .4rem; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { font-size: .87rem; color: var(--text-muted); transition: color var(--transition); }
.footer-links a:hover { color: var(--primary-light); }
.footer-social { display: flex; gap: .7rem; }
.social-icon-sm {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--border-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: var(--transition);
}
.social-icon-sm svg { width: 16px; height: 16px; }
.social-icon-sm:hover { border-color: var(--primary); color: var(--primary-light); background: rgba(108,99,255,.08); transform: translateY(-2px); }

.footer-bottom {
  background: var(--bg);
  padding: 1.2rem 0;
  border-top: 1px solid var(--border-2);
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
}
.footer-bottom p { font-size: .82rem; color: var(--text-subtle); }

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: none;
  cursor: none;
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(108,99,255,.45);
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
  z-index: 999;
}
.back-to-top svg { width: 22px; height: 22px; }
.back-to-top.show { opacity: 1; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(108,99,255,.6); }

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-30px); transition: opacity .8s ease, transform .8s ease; }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(30px); transition: opacity .8s ease, transform .8s ease; }
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-illustration { display: none; }
  .hero-desc { margin: 0 auto 2rem; }
  .hero-cta { justify-content: center; }
  .hero-socials { justify-content: center; }
  .hero-badge { display: inline-flex; }
  .about-container { grid-template-columns: 1fr; gap: 3rem; }
  .about-visual { display: none; }
  .projects-grid { grid-template-columns: 1fr; }
  .featured-card { grid-column: 1; }
  .contact-wrapper { grid-template-columns: 1fr; }
  .contact-left { display: none; }
  .prof-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: min(80vw, 320px);
    height: 100vh;
    background: rgba(10,10,24,.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    transition: right var(--transition);
    border-left: 1px solid var(--border);
    z-index: 1001;
  }
  .nav-links.open { right: 0; }
  .nav-links a { font-size: 1.05rem; padding: .7rem 1.5rem; }
  .hamburger { display: flex; z-index: 1100; }
  .form-row { grid-template-columns: 1fr; }
  .about-highlights { grid-template-columns: 1fr; }
  .footer-top-inner { flex-direction: column; text-align: center; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
  body { cursor: auto; }
  .cursor, .cursor-follower { display: none; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; }
  .about-stats { flex-direction: column; gap: 1rem; }
  .stat-divider { width: 60px; height: 1px; }
  .skill-category { padding: 1.2rem; }
}
