/* ============================================================
   Vinayaka G C — Portfolio
   ============================================================ */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul { list-style: none; }
input, textarea { font: inherit; color: inherit; background: none; border: none; outline: none; }

/* ---------- Tokens ---------- */
:root {
  --bg: #060608;
  --bg-elevated: #0b0b10;
  --surface: #101016;
  --surface-2: #16161f;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f5f5f7;
  --text-dim: #a3a3ad;
  --text-dimmer: #6c6c76;
  --blue: #4f8cff;
  --violet: #9b6bff;
  --gradient: linear-gradient(120deg, #4f8cff 0%, #9b6bff 100%);
  --gradient-soft: linear-gradient(120deg, rgba(79,140,255,0.15) 0%, rgba(155,107,255,0.15) 100%);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-lg: 0 30px 80px -20px rgba(0,0,0,0.6);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1240px;
}

[data-theme="light"] {
  --bg: #f7f7f9;
  --bg-elevated: #ffffff;
  --surface: #ffffff;
  --surface-2: #f0f0f4;
  --border: rgba(10, 10, 20, 0.08);
  --border-strong: rgba(10, 10, 20, 0.14);
  --text: #0c0c12;
  --text-dim: #4d4d59;
  --text-dimmer: #868692;
  --shadow-lg: 0 30px 80px -20px rgba(0,0,0,0.15);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

section { position: relative; }
section[id] { scroll-margin-top: 88px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--blue);
}

.section-head { max-width: 720px; margin-bottom: 64px; }
.section-head h2 { font-size: clamp(32px, 4.5vw, 56px); margin-bottom: 16px; }
.section-head p { font-size: 18px; color: var(--text-dim); max-width: 600px; }

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

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-strong); }

/* ---------- Custom cursor ---------- */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  will-change: transform;
}
.cursor-dot { width: 6px; height: 6px; background: var(--blue); }
.cursor-ring {
  width: 34px; height: 34px;
  border: 1px solid var(--border-strong);
  transition: width 0.25s var(--ease), height 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.cursor-ring.is-active { width: 56px; height: 56px; background: rgba(79,140,255,0.08); border-color: var(--blue); }
@media (hover: none), (max-width: 900px) { .cursor-dot, .cursor-ring { display: none; } }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s var(--ease), visibility 0.6s var(--ease);
}
.preloader.hidden { opacity: 0; visibility: hidden; }
.preloader-mark {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  letter-spacing: 0.3em;
  color: var(--text-dim);
  display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.preloader-bar { width: 160px; height: 2px; background: var(--surface-2); overflow: hidden; border-radius: 2px; }
.preloader-bar span { display: block; height: 100%; width: 0%; background: var(--gradient); }

/* ---------- Background FX ---------- */
.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 0%, transparent 70%);
  opacity: 0.5;
}
.bg-glow {
  position: fixed; z-index: 0; pointer-events: none;
  width: 60vw; height: 60vw; max-width: 900px; max-height: 900px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  animation: float-glow 18s ease-in-out infinite;
}
.bg-glow--1 { top: -20%; left: -10%; background: radial-gradient(circle, #4f8cff, transparent 70%); }
.bg-glow--2 { top: 10%; right: -15%; background: radial-gradient(circle, #9b6bff, transparent 70%); animation-delay: -6s; }
.bg-glow--3 { bottom: -10%; left: 30%; background: radial-gradient(circle, #4f8cff, transparent 70%); animation-delay: -12s; opacity: 0.2;}
@keyframes float-glow {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(4%, 6%) scale(1.1); }
}

/* ============================================================
   Navbar
   ============================================================ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 20px 0;
  transition: padding 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  padding: 12px 0;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav-logo { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 17px; letter-spacing: -0.01em; display: flex; align-items: center; gap: 10px; white-space: nowrap; flex-shrink: 0; }
.nav-logo .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gradient); box-shadow: 0 0 12px var(--blue); flex-shrink: 0; }
.nav-links { display: flex; align-items: center; gap: 0; flex-shrink: 1; min-width: 0; }
.nav-links a {
  position: relative; padding: 8px 11px; font-size: 13.5px; color: var(--text-dim);
  white-space: nowrap; transition: color 0.25s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a::after {
  content: ''; position: absolute; left: 11px; right: 11px; bottom: 4px; height: 1px;
  background: var(--gradient); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.theme-toggle {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; color: var(--text-dim);
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}
.theme-toggle:hover { border-color: var(--border-strong); color: var(--text); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }

.nav-cta {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; flex-shrink: 0;
  padding: 9px 18px; border-radius: 999px; font-size: 14px; font-weight: 500;
  background: var(--text); color: var(--bg);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.nav-cta:hover { box-shadow: 0 8px 24px -6px rgba(79,140,255,0.5); }
.nav-cta svg { width: 14px; height: 14px; transition: transform 0.25s var(--ease); }
.nav-cta:hover svg { transform: translateX(3px); }

.nav-burger {
  display: none; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--border); align-items: center; justify-content: center;
  flex-direction: column; gap: 4px;
}
.nav-burger span { display: block; width: 16px; height: 1.5px; background: var(--text); transition: all 0.3s var(--ease); }
.nav-burger.open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.mobile-drawer {
  position: fixed; inset: 0; z-index: 999;
  background: var(--bg-elevated);
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px;
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease), transform 0.4s var(--ease);
}
.mobile-drawer.open { opacity: 1; visibility: visible; transform: translateY(0); }
.mobile-drawer a { font-family: 'Space Grotesk', sans-serif; font-size: 30px; padding: 10px 0; color: var(--text-dim); }
.mobile-drawer a:hover { color: var(--text); }
.mobile-drawer .nav-cta { margin-top: 24px; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; border-radius: 999px; font-size: 15px; font-weight: 500;
  white-space: nowrap; overflow: hidden; isolation: isolate;
}
.btn svg { width: 15px; height: 15px; transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--gradient); opacity: 0; transition: opacity 0.35s var(--ease);
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover { color: #fff; }
.btn-outline {
  border: 1px solid var(--border-strong); color: var(--text); background: transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.btn-outline:hover { border-color: var(--blue); background: rgba(79,140,255,0.08); }
.btn-ghost {
  padding: 8px 0; font-size: 14px; color: var(--text-dim); border-bottom: 1px solid var(--border-strong);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn-ghost:hover { color: var(--text); border-color: var(--text); }
.btn-sm { padding: 11px 22px; font-size: 13.5px; }

/* magnetic wrapper */
.magnetic { display: inline-block; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  min-height: 100vh; display: flex; align-items: center; position: relative;
  padding: 140px 0 80px;
}
.hero .container { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 60px; align-items: center; }

.badge-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px 8px 8px; border-radius: 999px; border: 1px solid var(--border-strong);
  background: var(--surface); font-size: 13px; color: var(--text-dim); margin-bottom: 28px;
}
.badge-pill .dot-live {
  width: 20px; height: 20px; border-radius: 50%; background: rgba(79,140,255,0.12);
  display: flex; align-items: center; justify-content: center;
}
.badge-pill .dot-live::after {
  content: ''; width: 7px; height: 7px; border-radius: 50%; background: #4fdb8c;
  box-shadow: 0 0 0 rgba(79,219,140, 0.6); animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(79,219,140,0.5); }
  70% { box-shadow: 0 0 0 8px rgba(79,219,140,0); }
  100% { box-shadow: 0 0 0 0 rgba(79,219,140,0); }
}

.hero h1 {
  font-size: clamp(40px, 5.6vw, 76px);
  margin-bottom: 24px;
}
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line span { display: inline-block; }

.hero-role {
  font-size: clamp(16px, 1.6vw, 20px); color: var(--text-dim); margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-family: 'Space Grotesk', sans-serif;
}
.hero-role .sep { color: var(--blue); }

.hero-desc { font-size: 17px; color: var(--text-dim); max-width: 500px; margin-bottom: 40px; }

.hero-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-resume { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-dim); }
.hero-resume svg { width: 15px; height: 15px; }
.hero-resume:hover { color: var(--text); }

.hero-stats { display: flex; gap: 36px; margin-top: 48px; }
.hero-stats .stat b { font-family: 'Space Grotesk', sans-serif; font-size: 28px; font-weight: 600; display: block; }
.hero-stats .stat > span { font-size: 13px; color: var(--text-dimmer); }
.hero-stats .stat-gdg { max-width: 168px; }
.hero-stats .stat-gdg > span { display: block; margin-top: 4px; }
.gdg-mark { display: grid; grid-template-columns: repeat(2, 8px); grid-template-rows: repeat(2, 8px); gap: 3px; margin-bottom: 10px; }
.gdg-mark span { display: block; width: 8px; height: 8px; border-radius: 50%; }
.gdg-mark span:nth-child(1) { background: #4285F4; }
.gdg-mark span:nth-child(2) { background: #EA4335; }
.gdg-mark span:nth-child(3) { background: #FBBC05; }
.gdg-mark span:nth-child(4) { background: #34A853; }

.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-portrait-frame {
  position: relative; width: 100%; max-width: 420px; aspect-ratio: 4/5;
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--surface);
}
.hero-portrait-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-portrait-frame.img-fallback img { display: none; }
.hero-portrait-frame.img-fallback::after {
  content: 'VGC'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif; font-size: 48px; font-weight: 600; color: var(--text-dimmer);
  background: radial-gradient(circle at 50% 30%, var(--surface-2), var(--surface));
}
.hero-portrait-frame .frame-glow {
  position: absolute; inset: -2px; z-index: -1; border-radius: inherit;
  background: var(--gradient); opacity: 0.5; filter: blur(24px);
}
.hero-orbit-badge {
  position: absolute; padding: 12px 16px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--border-strong);
  backdrop-filter: blur(12px); display: flex; align-items: center; gap: 10px;
  font-size: 13px; box-shadow: var(--shadow-lg);
  animation: orbit-float 6s ease-in-out infinite;
}
.hero-orbit-badge svg { width: 18px; height: 18px; color: var(--blue); }
.hero-orbit-badge.b1 { top: 8%; left: -8%; animation-delay: 0s; }
.hero-orbit-badge.b2 { bottom: 12%; right: -10%; animation-delay: -3s; }
@keyframes orbit-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.scroll-cue {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-dimmer);
}
.scroll-cue .line { width: 1px; height: 36px; background: var(--border-strong); position: relative; overflow: hidden; }
.scroll-cue .line::after {
  content: ''; position: absolute; top: -100%; left: 0; width: 100%; height: 100%;
  background: var(--gradient); animation: scroll-line 2s ease-in-out infinite;
}
@keyframes scroll-line { 0% { top: -100%; } 100% { top: 100%; } }

/* ============================================================
   Reveal / general animation helpers
   ============================================================ */
.reveal-up { opacity: 0; transform: translateY(40px); }
.reveal-fade { opacity: 0; }

/* ============================================================
   About
   ============================================================ */
.about { padding: 160px 0; border-top: 1px solid var(--border); }
.about .container { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 80px; }
.about-lead { font-size: clamp(24px, 2.6vw, 34px); font-family: 'Space Grotesk', sans-serif; line-height: 1.35; }
.about-body p { color: var(--text-dim); font-size: 16px; margin-bottom: 20px; }
.about-body p:last-child { margin-bottom: 0; }
.about-body strong { color: var(--text); font-weight: 600; }

.about-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.about-tags span {
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); font-size: 13px; color: var(--text-dim);
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.about-tags span:hover { border-color: var(--blue); color: var(--text); }

.about-edu {
  margin-top: 36px; padding: 20px 22px; border-radius: var(--radius-md);
  border: 1px solid var(--border); background: var(--surface);
  display: flex; gap: 16px; align-items: flex-start;
}
.about-edu svg { width: 22px; height: 22px; color: var(--blue); flex-shrink: 0; margin-top: 3px; }
.about-edu b { display: block; font-size: 15px; margin-bottom: 4px; }
.about-edu span { font-size: 13.5px; color: var(--text-dimmer); }

/* ============================================================
   BuildBuddy
   ============================================================ */
.buildbuddy { padding: 160px 0; border-top: 1px solid var(--border); position: relative; }
.bb-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 72px; flex-wrap: wrap; }
.bb-brand {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px;
  border: 1px solid var(--border-strong); border-radius: 999px; margin-bottom: 24px; font-size: 13px; color: var(--text-dim);
}
.bb-brand b { color: var(--text); }
.bb-brand .icon { width: 26px; height: 26px; border-radius: 50%; background: var(--gradient); display: flex; align-items: center; justify-content: center; }
.bb-brand .icon svg { width: 13px; height: 13px; color: #fff; }
.buildbuddy h2 { font-size: clamp(34px, 5vw, 60px); margin-bottom: 16px; }
.buildbuddy .bb-sub { font-size: 20px; color: var(--text-dim); font-family: 'Space Grotesk', sans-serif; }
.bb-desc { max-width: 420px; color: var(--text-dim); font-size: 15.5px; }

.bb-services {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-md);
  overflow: hidden; margin-bottom: 100px;
}
.bb-service {
  background: var(--surface); padding: 32px 26px; transition: background 0.3s var(--ease);
  position: relative;
}
.bb-service:hover { background: var(--surface-2); }
.bb-service .num { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--text-dimmer); margin-bottom: 22px; display: block; }
.bb-service svg { width: 24px; height: 24px; color: var(--blue); margin-bottom: 18px; }
.bb-service h4 { font-size: 16.5px; margin-bottom: 8px; }
.bb-service p { font-size: 13.5px; color: var(--text-dimmer); }

.bb-process { margin-bottom: 90px; }
.bb-process-head { text-align: center; margin-bottom: 56px; }
.bb-process-head h3 { font-size: clamp(26px, 3.4vw, 40px); }
.bb-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.bb-step { padding: 30px 24px; border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--surface); position: relative; }
.bb-step .step-num {
  font-family: 'Space Grotesk', sans-serif; font-size: 34px; color: transparent; -webkit-text-stroke: 1px var(--border-strong);
  margin-bottom: 20px;
}
.bb-step h4 { font-size: 17px; margin-bottom: 10px; }
.bb-step p { font-size: 13.5px; color: var(--text-dimmer); }
.bb-step::after {
  content: ''; position: absolute; top: 50%; right: -24px; width: 24px; height: 1px; background: var(--border-strong);
  display: none;
}
@media (min-width: 901px) { .bb-step:not(:last-child)::after { display: block; } }

.bb-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 44px 48px; border-radius: var(--radius-lg); border: 1px solid var(--border-strong);
  background: var(--gradient-soft);
}
.bb-cta h3 { font-size: clamp(22px, 3vw, 32px); }

/* ============================================================
   Projects
   ============================================================ */
.projects { padding: 160px 0; border-top: 1px solid var(--border); }
.project-list { display: flex; flex-direction: column; gap: 24px; }
.project-card {
  border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface);
  padding: 48px; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center;
  position: relative; overflow: hidden;
  transform-style: preserve-3d;
}
.project-card::before {
  content: ''; position: absolute; inset: 0; opacity: 0; background: var(--gradient-soft);
  transition: opacity 0.4s var(--ease); pointer-events: none;
}
.project-card:hover::before { opacity: 1; }
.project-card.reverse { grid-template-columns: 1.1fr 0.9fr; }
.project-card.reverse .project-visual { order: 2; }

.project-index { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--blue); margin-bottom: 18px; letter-spacing: 0.05em; }
.project-card h3 { font-size: clamp(24px, 2.8vw, 34px); margin-bottom: 8px; }
.project-card .subtitle { color: var(--text-dim); font-size: 15.5px; font-family: 'Space Grotesk', sans-serif; margin-bottom: 20px; }
.project-card .desc { color: var(--text-dim); font-size: 15px; margin-bottom: 24px; }

.project-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.project-badges span {
  padding: 6px 12px; border-radius: 999px; font-size: 11.5px; border: 1px solid var(--border-strong);
  color: var(--text-dim); display: inline-flex; align-items: center; gap: 6px;
}
.project-badges span svg { width: 12px; height: 12px; color: var(--blue); }

.tech-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tech-tags span { font-size: 12px; padding: 5px 11px; border-radius: 6px; background: var(--surface-2); color: var(--text-dim); font-family: 'JetBrains Mono', monospace; }

.project-visual {
  aspect-ratio: 4/3; border-radius: var(--radius-md); border: 1px solid var(--border-strong);
  background: linear-gradient(145deg, var(--surface-2), var(--surface));
  display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden;
}
.project-visual .glyph { width: 84px; height: 84px; color: var(--blue); opacity: 0.9; }
.project-visual .mesh {
  position: absolute; inset: 0; opacity: 0.5;
  background: radial-gradient(circle at 30% 20%, rgba(79,140,255,0.25), transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(155,107,255,0.25), transparent 50%);
}

/* workflow diagram for AI Web Testing Agent */
.flow-diagram { display: flex; flex-direction: column; gap: 10px; width: 100%; padding: 28px; position: relative; z-index: 1; }
.flow-step {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--border-strong); font-size: 12.5px; font-family: 'JetBrains Mono', monospace;
}
.flow-step .flow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gradient); flex-shrink: 0; }
.flow-arrow { align-self: center; color: var(--text-dimmer); font-size: 13px; }

.project-links { display: flex; gap: 14px; }

.more-projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 24px; }
.mini-project { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 32px; background: var(--surface); transition: border-color 0.3s var(--ease), transform 0.3s var(--ease); }
.mini-project:hover { border-color: var(--border-strong); }
.mini-project .mini-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--surface-2); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.mini-project .mini-icon svg { width: 22px; height: 22px; color: var(--blue); }
.mini-project h4 { font-size: 19px; margin-bottom: 6px; }
.mini-project .subtitle { font-size: 13.5px; color: var(--text-dimmer); margin-bottom: 14px; }
.mini-project p { font-size: 14px; color: var(--text-dim); margin-bottom: 18px; }

/* ============================================================
   Skills
   ============================================================ */
.skills { padding: 160px 0; border-top: 1px solid var(--border); }
.skills-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 48px; }
.skills-tab {
  padding: 11px 20px; border-radius: 999px; border: 1px solid var(--border); font-size: 14px; color: var(--text-dim);
  transition: all 0.3s var(--ease);
}
.skills-tab.active { background: var(--text); color: var(--bg); border-color: var(--text); }
.skills-tab:not(.active):hover { border-color: var(--border-strong); color: var(--text); }

.skills-panel { display: none; }
.skills-panel.active { display: block; animation: panel-in 0.5s var(--ease); }
@keyframes panel-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.skills-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.skill-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 20px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface);
  font-size: 14.5px; transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.skill-badge:hover { transform: translateY(-4px); border-color: var(--blue); background: var(--surface-2); }
.skill-badge .lvl { width: 30px; height: 4px; border-radius: 2px; background: var(--surface-2); overflow: hidden; }
.skill-badge .lvl span { display: block; height: 100%; background: var(--gradient); }

/* ============================================================
   Experience timeline
   ============================================================ */
.experience { padding: 160px 0; border-top: 1px solid var(--border); }
.timeline { position: relative; max-width: 880px; }
.timeline::before {
  content: ''; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 1px;
  background: linear-gradient(var(--border-strong), var(--border) 90%);
}
.timeline-item { position: relative; padding-left: 56px; padding-bottom: 64px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute; left: 0; top: 4px; width: 24px; height: 24px; border-radius: 50%;
  border: 1px solid var(--border-strong); background: var(--bg); display: flex; align-items: center; justify-content: center;
}
.timeline-dot::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--gradient); }
.timeline-card {
  border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); padding: 32px;
}
.timeline-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.timeline-card h3 { font-size: 21px; margin-bottom: 4px; }
.timeline-card .role { font-size: 14.5px; color: var(--blue); font-family: 'Space Grotesk', sans-serif; }
.timeline-card .period {
  font-size: 12.5px; font-family: 'JetBrains Mono', monospace; color: var(--text-dimmer);
  padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; white-space: nowrap;
}
.timeline-card .stack { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.timeline-card .stack span { font-size: 12px; padding: 5px 11px; border-radius: 6px; background: var(--surface-2); color: var(--text-dim); }

/* ============================================================
   Achievements
   ============================================================ */
.achievements { padding: 160px 0; border-top: 1px solid var(--border); }
.ach-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.ach-card { background: var(--surface); padding: 44px 30px; text-align: left; }
.ach-card .big { font-family: 'Space Grotesk', sans-serif; font-size: clamp(30px, 3vw, 40px); margin-bottom: 14px; }
.ach-card .label { font-size: 14px; color: var(--text-dim); }
.ach-card .ach-desc { font-size: 12.5px; color: var(--text-dimmer); margin-top: 8px; }
.ach-card svg { width: 26px; height: 26px; color: var(--blue); margin-bottom: 22px; }

/* certifications */
.certifications { padding: 160px 0; border-top: 1px solid var(--border); }
.cert-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.cert-card {
  display: flex; gap: 20px; align-items: flex-start; padding: 30px; border: 1px solid var(--border);
  border-radius: var(--radius-md); background: var(--surface); transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.cert-card:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.cert-card .cert-icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--gradient-soft); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.cert-card .cert-icon svg { width: 22px; height: 22px; color: var(--blue); }
.cert-card h4 { font-size: 16px; margin-bottom: 6px; }
.cert-card p { font-size: 13.5px; color: var(--text-dimmer); }

/* leadership */
.leadership { padding: 0 0 160px; }
.leadership-card {
  display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center;
  padding: 44px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface);
}
.leadership-icon {
  width: 68px; height: 68px; border-radius: 18px; background: var(--gradient-soft);
  display: flex; align-items: center; justify-content: center;
}
.leadership-icon svg { width: 32px; height: 32px; color: var(--blue); }
.leadership-card h3 { font-size: 22px; margin-bottom: 8px; }
.leadership-card .org { font-size: 14px; color: var(--text-dimmer); margin-bottom: 12px; font-family: 'Space Grotesk', sans-serif; }
.leadership-card p { color: var(--text-dim); font-size: 15px; max-width: 640px; }

/* ============================================================
   How I Build
   ============================================================ */
.how-i-build { padding: 160px 0; border-top: 1px solid var(--border); }
.build-steps { display: flex; flex-direction: column; }
.build-step {
  display: grid; grid-template-columns: 100px 1fr; gap: 32px; padding: 36px 0; border-top: 1px solid var(--border);
  align-items: center; opacity: 0.35; transition: opacity 0.5s var(--ease);
}
.build-step.in-view { opacity: 1; }
.build-step:last-child { border-bottom: 1px solid var(--border); }
.build-step .step-index { font-family: 'Space Grotesk', sans-serif; font-size: 42px; color: transparent; -webkit-text-stroke: 1px var(--border-strong); transition: -webkit-text-stroke 0.5s var(--ease); }
.build-step.in-view .step-index { -webkit-text-stroke: 1px var(--blue); }
.build-step h4 { font-size: 20px; margin-bottom: 8px; }
.build-step p { color: var(--text-dim); font-size: 14.5px; max-width: 560px; }

/* ============================================================
   Freelance CTA
   ============================================================ */
.freelance-cta { padding: 140px 0; border-top: 1px solid var(--border); text-align: center; position: relative; }
.freelance-cta h2 { font-size: clamp(34px, 6vw, 68px); margin-bottom: 20px; }
.freelance-cta p.lead { font-size: 19px; color: var(--text-dim); margin-bottom: 12px; }
.freelance-cta .bb-mention { font-size: 14.5px; color: var(--text-dimmer); margin-bottom: 44px; }
.freelance-cta .bb-mention b { color: var(--blue); }
.freelance-actions { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }

/* ============================================================
   Contact
   ============================================================ */
.contact { padding: 0 0 100px; }
.contact-card {
  border: 1px solid var(--border-strong); border-radius: var(--radius-lg); background: var(--surface);
  padding: 72px 56px; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end;
  position: relative; overflow: hidden;
}
.contact-card h2 { font-size: clamp(32px, 4.6vw, 54px); margin-bottom: 32px; max-width: 560px; }
.contact-details { display: flex; flex-direction: column; gap: 18px; }
.contact-row { display: flex; align-items: center; gap: 14px; font-size: 16px; }
.contact-row svg { width: 18px; height: 18px; color: var(--blue); }
.contact-row a:hover { color: var(--blue); }
.contact-socials { display: flex; gap: 14px; }
.social-btn {
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center; transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.social-btn svg { width: 20px; height: 20px; }
.social-btn:hover { border-color: var(--blue); background: rgba(79,140,255,0.08); transform: translateY(-4px); }

/* ============================================================
   Footer
   ============================================================ */
.footer { border-top: 1px solid var(--border); padding: 36px 0; }
.footer .container { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer p { font-size: 13.5px; color: var(--text-dimmer); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 13.5px; color: var(--text-dimmer); }
.footer-links a:hover { color: var(--text); }
.back-to-top {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.back-to-top:hover { border-color: var(--blue); transform: translateY(-3px); }
.back-to-top svg { width: 16px; height: 16px; }

/* ============================================================
   Counter number style shared
   ============================================================ */
[data-counter] { font-variant-numeric: tabular-nums; }

/* ============================================================
   Client Work — YogaChetana Life
   ============================================================ */
:root {
  --earth-green: #6fae7f;
  --earth-green-soft: rgba(111, 174, 127, 0.12);
}

.client-work { padding: 160px 0; border-top: 1px solid var(--border); }

.cw-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'JetBrains Mono', monospace; font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--earth-green); margin-bottom: 18px;
}
.cw-tag::before { content: ''; width: 20px; height: 1px; background: var(--earth-green); }

.cw-card {
  border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-elevated) 100%);
  padding: 56px; position: relative; overflow: hidden;
}
.cw-card::before {
  content: ''; position: absolute; top: -30%; right: -10%; width: 50%; height: 60%;
  background: radial-gradient(circle, var(--earth-green-soft), transparent 70%);
  pointer-events: none;
}

.cw-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; margin-bottom: 28px; position: relative; z-index: 1; }
.cw-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--earth-green); background: var(--earth-green-soft); color: var(--earth-green);
  font-size: 12.5px; font-weight: 500; margin-bottom: 20px;
}
.cw-card h3 { font-size: clamp(28px, 3.4vw, 42px); margin-bottom: 8px; }
.cw-card .cw-subtitle { font-size: 16.5px; color: var(--text-dim); font-family: 'Space Grotesk', sans-serif; }
.cw-card .cw-desc { color: var(--text-dim); font-size: 15.5px; max-width: 680px; margin: 24px 0 0; position: relative; z-index: 1; }

.cw-visit {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 8px;
  border: 1px solid var(--border); font-size: 12.5px; color: var(--text-dimmer); font-family: 'JetBrains Mono', monospace;
}
.cw-visit svg { width: 13px; height: 13px; }

.cw-features {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden;
  margin: 44px 0; position: relative; z-index: 1;
}
.cw-feature { background: var(--surface); padding: 28px 24px; transition: background 0.3s var(--ease); }
.cw-feature:hover { background: var(--surface-2); }
.cw-feature .num { font-family: 'JetBrains Mono', monospace; font-size: 11.5px; color: var(--earth-green); display: block; margin-bottom: 16px; }
.cw-feature h4 { font-size: 15.5px; margin-bottom: 8px; }
.cw-feature p { font-size: 13px; color: var(--text-dimmer); }

.cw-tech { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 52px; position: relative; z-index: 1; }
.cw-tech span {
  font-size: 12px; padding: 6px 13px; border-radius: 999px; border: 1px solid var(--border-strong);
  color: var(--text-dim); font-family: 'JetBrains Mono', monospace;
}

/* ---- Work proof gallery ---- */
.cw-proof-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; position: relative; z-index: 1; }
.cw-proof-head h4 { font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dimmer); font-family: 'JetBrains Mono', monospace; font-weight: 500; }

.cw-gallery { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; margin-bottom: 20px; position: relative; z-index: 1; }
.cw-gallery-secondary { display: grid; grid-template-rows: 1fr 1fr; gap: 20px; }
.cw-gallery-row2 { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; align-items: start; margin-bottom: 24px; position: relative; z-index: 1; }

.browser-mockup {
  border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border-strong);
  background: var(--surface); box-shadow: var(--shadow-lg);
}
.browser-bar {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  background: var(--surface-2); border-bottom: 1px solid var(--border);
}
.browser-dots { display: flex; gap: 6px; }
.browser-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); }
.browser-url {
  flex: 1; font-size: 11px; font-family: 'JetBrains Mono', monospace; color: var(--text-dimmer);
  background: var(--bg); padding: 5px 12px; border-radius: 6px; text-align: center;
}
.browser-frame { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--bg-elevated); }
.browser-frame.short { aspect-ratio: 16/7.2; }
.browser-frame img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }

.phone-mockup {
  border-radius: 28px; border: 6px solid var(--surface-2); background: var(--surface); overflow: hidden;
  box-shadow: var(--shadow-lg); max-width: 220px; margin: 0 auto;
}
.phone-frame { position: relative; aspect-ratio: 9/18.5; overflow: hidden; background: var(--bg-elevated); }
.phone-frame img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }

/* placeholder wireframe shown until a real screenshot exists at the img src */
.mockup-ph img { display: none; }
.mockup-ph { position: relative; }
.mockup-ph::before {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(var(--surface-2) 0 0) 0 0 / 100% 34% no-repeat,
    linear-gradient(var(--border) 0 0) 8% 42% / 26% 8% no-repeat,
    linear-gradient(var(--border) 0 0) 8% 54% / 40% 6% no-repeat,
    linear-gradient(var(--earth-green-soft) 0 0) 8% 68% / 16% 10% no-repeat,
    linear-gradient(var(--border) 0 0) 30% 68% / 16% 10% no-repeat,
    linear-gradient(var(--border) 0 0) 52% 68% / 16% 10% no-repeat,
    linear-gradient(var(--border) 0 0) 74% 68% / 16% 10% no-repeat;
  background-color: var(--bg-elevated);
}
.mockup-ph::after {
  content: 'Add screenshot →'; position: absolute; bottom: 10px; right: 12px;
  font-size: 10px; font-family: 'JetBrains Mono', monospace; color: var(--text-dimmer);
  background: var(--surface); padding: 3px 8px; border-radius: 5px; border: 1px solid var(--border);
}
.phone-mockup.mockup-ph::before { background-size: 100% 30%, 20% 6%, 40% 5%, 30% 8%, 30% 8%, 0 0, 0 0; background-position: 0 0, 14% 38%, 14% 48%, 14% 60%, 55% 60%, 0 0, 0 0; }

.cw-credit { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--text-dimmer); margin-bottom: 36px; position: relative; z-index: 1; }
.cw-credit svg { width: 14px; height: 14px; color: var(--earth-green); }

.cw-actions { display: flex; gap: 16px; flex-wrap: wrap; position: relative; z-index: 1; }
.btn-earth { background: var(--earth-green); color: #0a1a10; }
.btn-earth:hover { box-shadow: 0 8px 24px -6px rgba(111,174,127,0.5); }

/* ---- Case study modal ---- */
.case-study-modal {
  position: fixed; inset: 0; z-index: 2000; display: flex; align-items: flex-start; justify-content: center;
  padding: 48px 20px; overflow-y: auto;
  opacity: 0; visibility: hidden; transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
}
.case-study-modal.open { opacity: 1; visibility: visible; }
.case-study-backdrop { position: fixed; inset: 0; background: rgba(2,2,4,0.82); backdrop-filter: blur(6px); }
.case-study-panel {
  position: relative; z-index: 1; width: 100%; max-width: 920px; background: var(--bg-elevated);
  border: 1px solid var(--border-strong); border-radius: var(--radius-lg); padding: 52px;
  transform: translateY(24px); transition: transform 0.45s var(--ease);
}
.case-study-modal.open .case-study-panel { transform: translateY(0); }
.case-study-close {
  position: absolute; top: 24px; right: 24px; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--border-strong); display: flex; align-items: center; justify-content: center;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.case-study-close:hover { border-color: var(--earth-green); transform: rotate(90deg); }
.case-study-close svg { width: 18px; height: 18px; }

.case-study-panel .cw-tag { margin-bottom: 14px; }
.case-study-panel h2 { font-size: clamp(26px, 3.6vw, 38px); margin-bottom: 6px; }
.case-study-panel .cs-sub { color: var(--text-dim); font-size: 15px; margin-bottom: 40px; }

.cs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-bottom: 40px; }
.cs-block h4 {
  font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--earth-green);
  font-family: 'JetBrains Mono', monospace; margin-bottom: 12px;
}
.cs-block p { font-size: 14.5px; color: var(--text-dim); }

.cs-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 8px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1080px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { order: -1; margin-bottom: 20px; }
  .hero-portrait-frame { max-width: 320px; margin: 0 auto; }
  .about .container { grid-template-columns: 1fr; gap: 40px; }
  .bb-services { grid-template-columns: repeat(2, 1fr); }
  .bb-steps { grid-template-columns: repeat(2, 1fr); }
  .project-card, .project-card.reverse { grid-template-columns: 1fr; }
  .project-card.reverse .project-visual { order: 0; }
  .project-visual { aspect-ratio: 16/9; }
  .ach-grid { grid-template-columns: repeat(2, 1fr); }
  .cert-grid { grid-template-columns: 1fr; }
  .more-projects { grid-template-columns: 1fr; }
  .contact-card { grid-template-columns: 1fr; }
  .cw-features { grid-template-columns: repeat(2, 1fr); }
  .cw-gallery { grid-template-columns: 1fr; }
  .cw-gallery-secondary { grid-template-rows: none; grid-template-columns: repeat(2, 1fr); }
  .cw-gallery-row2 { grid-template-columns: 1fr; }
  .cs-grid, .cs-gallery { grid-template-columns: 1fr; }
}

@media (max-width: 1240px) {
  .nav-links, .nav-actions .nav-cta { display: none; }
  .nav-burger { display: flex; }
}

@media (max-width: 900px) {
  .hero-stats { gap: 24px; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .hero { padding: 120px 0 60px; }
  .about, .buildbuddy, .projects, .skills, .experience, .achievements, .certifications, .how-i-build, .freelance-cta, .client-work { padding: 90px 0; }
  .bb-services { grid-template-columns: 1fr; }
  .bb-steps { grid-template-columns: 1fr; }
  .bb-step::after { display: none; }
  .ach-grid { grid-template-columns: 1fr; }
  .project-card { padding: 28px; }
  .leadership-card { grid-template-columns: 1fr; text-align: left; }
  .contact-card { padding: 44px 28px; }
  .timeline-item { padding-left: 44px; }
  .build-step { grid-template-columns: 1fr; gap: 10px; }
  .bb-cta { padding: 32px 28px; flex-direction: column; align-items: flex-start; }
  .freelance-actions { flex-direction: column; width: 100%; }
  .freelance-actions .btn { width: 100%; }
  .cw-card { padding: 28px; }
  .cw-features { grid-template-columns: 1fr; }
  .cw-gallery-secondary { grid-template-columns: 1fr; }
  .case-study-panel { padding: 32px 22px; }
  .cs-grid { grid-template-columns: 1fr; }
  .cw-actions { flex-direction: column; }
  .cw-actions .btn { width: 100%; }
}
