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

html {
  scroll-behavior: smooth;
}

/* ===== THEME VARIABLES ===== */
:root {
  --bg:          #ffffff;
  --bg-subtle:   #fafafa;
  --border:      #f0f0f0;
  --border-mid:  #e0e0e0;
  --border-hover:#ccc;
  --card-bg:     #ffffff;
  --tag-bg:      #f4f4f4;

  --text-primary:   #1a1a1a;
  --text-secondary: #555;
  --text-muted:     #888;
  --text-faint:     #aaa;
  --text-subtle:    #bbb;

  --btn-bg:      #1a1a1a;
  --btn-bg-hover:#333333;
  --btn-text:    #ffffff;

  --nav-bg:      rgba(255, 255, 255, 0.92);
  --input-bg:    #fafafa;
  --input-focus-bg: #ffffff;
  --focus-ring:  rgba(26, 26, 26, 0.08);

  /* Accent */
  --accent:        #4F46E5;
  --accent-light:  rgba(79, 70, 229, 0.08);
  --accent-glow:   rgba(79, 70, 229, 0.15);

  /* Code block */
  --code-kw:   #7C3AED;
  --code-var:  #DC2626;
  --code-str:  #16A34A;
  --code-bool: #D97706;
  --code-op:   #9CA3AF;
  --code-prop: #374151;

  /* CTA */
  --cta-subtext: rgba(255,255,255,0.6);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:          #0f0f0f;
    --bg-subtle:   #161616;
    --border:      #242424;
    --border-mid:  #2e2e2e;
    --border-hover:#444444;
    --card-bg:     #1a1a1a;
    --tag-bg:      #242424;

    --text-primary:   #f0f0f0;
    --text-secondary: #999999;
    --text-muted:     #777777;
    --text-faint:     #555555;
    --text-subtle:    #444444;

    --btn-bg:      #f0f0f0;
    --btn-bg-hover:#ffffff;
    --btn-text:    #0f0f0f;

    --nav-bg:      rgba(15, 15, 15, 0.92);
    --input-bg:    #1a1a1a;
    --input-focus-bg: #222222;
    --focus-ring:  rgba(240, 240, 240, 0.08);

    --accent:        #818CF8;
    --accent-light:  rgba(129, 140, 248, 0.1);
    --accent-glow:   rgba(129, 140, 248, 0.15);

    --code-kw:   #C084FC;
    --code-var:  #F87171;
    --code-str:  #86EFAC;
    --code-bool: #FCD34D;
    --code-op:   #6B7280;
    --code-prop: #D1D5DB;

    --cta-subtext: rgba(255,255,255,0.45);
  }
}

/* Smooth theme transitions */
body, .nav, .skill-card, .project-card,
.form-group input, .form-group textarea {
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ===== LAYOUT ===== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  transition: opacity 0.2s;
}

.nav-logo:hover {
  opacity: 0.75;
}

.nav-logo-img {
  height: 32px;
  width: auto;
  display: block;
}

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

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-cta {
  background: var(--btn-bg) !important;
  color: var(--btn-text) !important;
  padding: 8px 20px;
  border-radius: 10px;
  font-size: 14px !important;
  font-weight: 500 !important;
  transition: background 0.2s !important;
}

.nav-cta:hover {
  background: var(--btn-bg-hover) !important;
}

/* ===== HAMBURGER MENU ===== */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: background 0.15s;
}

.nav-hamburger:hover {
  background: var(--tag-bg);
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: center;
}

.nav-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav dropdown */
.nav-mobile {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px 20px;
  z-index: 99;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-mobile.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.nav-mobile-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-mobile-link {
  display: block;
  padding: 12px 14px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 12px;
  transition: background 0.15s, color 0.15s;
}

.nav-mobile-link:hover {
  background: var(--tag-bg);
  color: var(--text-primary);
}

.nav-mobile-cta {
  background: var(--accent);
  color: #fff !important;
  font-weight: 600;
  margin-top: 8px;
  text-align: center;
  border-radius: 50px;
}

.nav-mobile-cta:hover {
  opacity: 0.9;
}


/* ===== HERO ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 160px 0 100px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(0,0,0,0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  z-index: 0;
  pointer-events: none;
}

@media (prefers-color-scheme: dark) {
  .hero::before {
    background-image: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
  }
}

/* Background orbs */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.hero-orb-1 {
  width: 500px;
  height: 500px;
  background: var(--accent);
  opacity: 0.07;
  top: -160px;
  right: -80px;
  animation: blob-drift 10s ease-in-out infinite;
}

.hero-orb-2 {
  width: 350px;
  height: 350px;
  background: #EC4899;
  opacity: 0.06;
  bottom: -80px;
  right: 260px;
  animation: blob-drift 12s ease-in-out infinite reverse;
  animation-delay: -4s;
}

.hero-orb-3 {
  width: 280px;
  height: 280px;
  background: #14B8A6;
  opacity: 0.05;
  top: 40px;
  left: -80px;
  animation: blob-drift 14s ease-in-out infinite;
  animation-delay: -7s;
}

@keyframes blob-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(30px, -25px) scale(1.04); }
  66%       { transform: translate(-20px, 18px) scale(0.96); }
}

/* Hero layout */
.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 60px;
}

.hero-content {
  flex: 1;
  min-width: 0;
}

/* Available badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #059669;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 24px;
}

@media (prefers-color-scheme: dark) {
  .hero-badge {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.3);
    color: #34D399;
  }
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  background: #10B981;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}

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

.hero-eyebrow {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.hero-name {
  font-size: clamp(52px, 6.5vw, 80px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  background: linear-gradient(120deg, var(--text-primary) 0%, var(--accent) 45%, var(--text-primary) 90%);
  background-size: 250% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-flow 6s ease-in-out 1.2s infinite;
}

.hero-cursor {
  display: inline-block;
  margin-left: 2px;
  color: var(--accent);
  -webkit-text-fill-color: var(--accent);
  font-weight: 300;
  animation: blink-cursor 1.1s step-end infinite;
}

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

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

/* ===== HERO ENTRANCE STAGGER ===== */
@keyframes hero-fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-badge   { animation: hero-fade-up 0.5s ease 0.1s  both; }
.hero-eyebrow { animation: hero-fade-up 0.5s ease 0.25s both; }
/* hero-name reveal handled by typing animation */
.hero-title   { animation: hero-fade-up 0.5s ease 1.05s both; }
.hero-desc    { animation: hero-fade-up 0.5s ease 1.2s  both; }
.hero-actions { animation: hero-fade-up 0.5s ease 1.35s both; }
.hero-stack   { animation: hero-fade-up 0.5s ease 1.5s  both; }

.hero-title {
  font-size: clamp(17px, 2.2vw, 22px);
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.hero-desc {
  max-width: 500px;
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 36px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

/* Tech stack pills */
.hero-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stack-pill {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--card-bg);
  border: 1px solid var(--border-mid);
  padding: 5px 13px;
  border-radius: 100px;
  letter-spacing: 0.02em;
  transition: border-color 0.2s, color 0.2s;
}

.stack-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ===== HERO VISUAL (floating code card) ===== */
.hero-visual {
  position: relative;
  width: 320px;
  flex-shrink: 0;
}

.floating-card {
  background: var(--card-bg);
  border: 1px solid var(--border-mid);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.1), 0 4px 16px rgba(0,0,0,0.06);
  animation: float 7s ease-in-out infinite;
}

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

.floating-card-header {
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.floating-card-dots {
  display: flex;
  gap: 6px;
}

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

.dot-red    { background: #FF5F57; }
.dot-yellow { background: #FEBC2E; }
.dot-green  { background: #28C840; }

.floating-card-label {
  font-size: 12px;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  color: var(--text-muted);
}

.floating-card-body {
  padding: 16px 18px;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 12.5px;
  line-height: 1.9;
}

.code-line   { display: block; }
.code-i1     { padding-left: 14px; }
.code-i2     { padding-left: 28px; }
.code-kw     { color: var(--code-kw); }
.code-var    { color: var(--code-var); }
.code-str    { color: var(--code-str); }
.code-bool   { color: var(--code-bool); }
.code-op     { color: var(--code-op); }
.code-prop   { color: var(--code-prop); }

/* Floating badges */
.floating-badge {
  position: absolute;
  background: var(--card-bg);
  border: 1px solid var(--border-mid);
  border-radius: 100px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  white-space: nowrap;
}

.badge-1 {
  bottom: -16px;
  left: -32px;
  animation: float 7s ease-in-out infinite;
  animation-delay: -2.5s;
}

.badge-2 {
  top: -16px;
  right: -24px;
  animation: float 7s ease-in-out infinite;
  animation-delay: -5s;
}

.badge-icon {
  color: var(--accent);
  font-size: 14px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--btn-bg);
  color: var(--btn-text);
  border-color: var(--btn-bg);
}

.btn-primary:hover {
  background: var(--btn-bg-hover);
  border-color: var(--btn-bg-hover);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-mid);
}

.btn-secondary:hover {
  border-color: var(--text-primary);
}

.btn-full {
  width: 100%;
  text-align: center;
}

/* ===== SECTIONS ===== */
.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  opacity: 0.75;
}

.section-heading {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.15;
  margin-bottom: 40px;
}

/* ===== SCROLL ANIMATIONS ===== */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== ABOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 64px;
  align-items: start;
}

.about-text p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 20px;
}

.about-text p:last-child {
  margin-bottom: 0;
}

/* ---- Profile card ---- */
.about-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.acard-orb {
  position: absolute;
  top: -64px;
  right: -64px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.acard-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.acard-monogram {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent) 0%, #818cf8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(99,102,241,0.35);
}

.acard-info {
  flex: 1;
  min-width: 0;
}

.acard-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.acard-role {
  font-size: 11.5px;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

.acard-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 500;
  color: #4ade80;
  background: rgba(74,222,128,0.1);
  border: 1px solid rgba(74,222,128,0.2);
  border-radius: 20px;
  padding: 4px 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

.acard-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  animation: pulse 2.2s ease-in-out infinite;
}

.acard-facts {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.acard-facts li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.acard-fact-icon {
  font-size: 11px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--accent);
  opacity: 0.7;
}

.acard-location {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--text-muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 10px;
  margin-bottom: 18px;
}

.acard-rule {
  height: 1px;
  background: var(--border);
  margin-bottom: 16px;
}

.acard-stack-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.acard-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.acard-stack span {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--accent);
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: 6px;
  padding: 3px 9px;
}

/* ===== SKILLS ===== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.skill-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s, background-color 0.25s ease;
  position: relative;
  overflow: hidden;
}

.skill-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(79, 70, 229, 0.07) 50%,
    transparent 70%
  );
  transform: translateX(-100%);
  transition: transform 0.55s ease;
  pointer-events: none;
}

.skill-card:hover::after {
  transform: translateX(100%);
}

.skill-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 32px var(--accent-glow);
  transform: translateY(-3px);
}

/* Skill icon chips */
.skill-icon-chip {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}

.chip-indigo { background: rgba(79, 70, 229, 0.1); }
.chip-orange { background: rgba(249, 115, 22, 0.1); }
.chip-pink   { background: rgba(236, 72, 153, 0.1); }
.chip-teal   { background: rgba(20, 184, 166, 0.1); }
.chip-purple { background: rgba(139, 92, 246, 0.1); }
.chip-blue   { background: rgba(59, 130, 246, 0.1); }

.skill-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.skill-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== PROJECTS ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s, background-color 0.25s ease;
  background: var(--card-bg);
  border-top-width: 3px;
  position: relative;
  overflow: hidden;
}

.project-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(79, 70, 229, 0.05) 50%,
    transparent 70%
  );
  transform: translateX(-100%);
  transition: transform 0.65s ease;
  pointer-events: none;
}

.project-card:hover::after {
  transform: translateX(100%);
}

.project-card:hover {
  box-shadow: 0 8px 40px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}

/* Project accent top borders */
.project-accent-indigo {
  border-top-color: #4F46E5;
}
.project-accent-indigo:hover {
  border-color: #4F46E5;
  box-shadow: 0 8px 40px rgba(79, 70, 229, 0.12);
}

.project-accent-purple {
  border-top-color: #8B5CF6;
}
.project-accent-purple:hover {
  border-color: #8B5CF6;
  box-shadow: 0 8px 40px rgba(139, 92, 246, 0.12);
}

.project-accent-teal {
  border-top-color: #14B8A6;
}
.project-accent-teal:hover {
  border-color: #14B8A6;
  box-shadow: 0 8px 40px rgba(20, 184, 166, 0.12);
}

@media (prefers-color-scheme: dark) {
  .project-accent-indigo { border-top-color: #818CF8; }
  .project-accent-indigo:hover { border-color: #818CF8; box-shadow: 0 8px 40px rgba(129, 140, 248, 0.12); }
  .project-accent-purple { border-top-color: #A78BFA; }
  .project-accent-purple:hover { border-color: #A78BFA; box-shadow: 0 8px 40px rgba(167, 139, 250, 0.12); }
  .project-accent-teal   { border-top-color: #2DD4BF; }
  .project-accent-teal:hover   { border-color: #2DD4BF;  box-shadow: 0 8px 40px rgba(45, 212, 191, 0.12); }
}

.project-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.project-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--tag-bg);
  padding: 4px 10px;
  border-radius: 4px;
}

.project-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.project-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.project-results {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.project-results li {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  padding-left: 18px;
  position: relative;
}

.project-results li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ===== MARQUEE STRIP ===== */
.marquee-strip {
  overflow: hidden;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  white-space: nowrap;
}

.marquee-track {
  display: inline-flex;
  animation: marquee-scroll 28s linear infinite;
}

.marquee-content {
  display: inline-flex;
  align-items: center;
}

.marquee-item {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0 20px;
  letter-spacing: 0.02em;
}

.marquee-sep {
  color: var(--accent);
  opacity: 0.5;
  font-size: 10px;
}

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

/* ===== ABOUT TOOLS ===== */
.about-tools {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.about-tools-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 16px;
}

.about-tools-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.about-tool-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  background: var(--card-bg);
  border: 1px solid var(--border-mid);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.about-tool-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 2px 12px var(--accent-glow);
}

.about-tool-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ===== PROJECT BROWSER MOCKUP ===== */
.project-mockup {
  margin: -32px -32px 24px -32px;
  border-bottom: 1px solid var(--border);
  border-radius: 11px 11px 0 0;
  overflow: hidden;
}

.mockup-bar {
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mockup-dots {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}

.mockup-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: block;
}

.mockup-dots span:nth-child(1) { background: #FF5F57; }
.mockup-dots span:nth-child(2) { background: #FEBC2E; }
.mockup-dots span:nth-child(3) { background: #28C840; }

.mockup-addr {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px 10px;
  font-size: 11px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  color: var(--text-muted);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mockup-screen {
  height: 88px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 9px;
  position: relative;
  overflow: hidden;
}

.mockup-screen-indigo { background: linear-gradient(135deg, rgba(79,70,229,0.07) 0%, rgba(79,70,229,0.02) 100%); }
.mockup-screen-purple { background: linear-gradient(135deg, rgba(139,92,246,0.07) 0%, rgba(139,92,246,0.02) 100%); }
.mockup-screen-teal   { background: linear-gradient(135deg, rgba(20,184,166,0.07) 0%, rgba(20,184,166,0.02) 100%); }

.mockup-line {
  height: 7px;
  border-radius: 4px;
  background: var(--border-mid);
}

.mockup-line-accent {
  background: currentColor;
  opacity: 0.18;
}

.ml-70 { width: 70%; }
.ml-50 { width: 50%; }
.ml-35 { width: 35%; }
.ml-80 { width: 80%; }
.ml-55 { width: 55%; }
.ml-40 { width: 40%; }

/* ===== CTA SECTION ===== */
.section-cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0f0c2e 0%, #1e1458 40%, #2a0e4f 70%, #0f0c2e 100%);
  padding: 96px 0;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.cta-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
}

.cta-orb-1 {
  width: 450px;
  height: 450px;
  background: #4F46E5;
  opacity: 0.3;
  top: -120px;
  left: -80px;
}

.cta-orb-2 {
  width: 300px;
  height: 300px;
  background: #EC4899;
  opacity: 0.2;
  bottom: -80px;
  right: -60px;
}

.cta-inner {
  position: relative;
  z-index: 1;
}

.section-cta h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  line-height: 1.2;
}

.section-cta p {
  font-size: 17px;
  color: var(--cta-subtext);
  margin-bottom: 36px;
}

.cta-btn {
  background: #ffffff;
  color: #1a1a1a;
  border-color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s;
}

.cta-btn:hover {
  background: rgba(255,255,255,0.88);
  border-color: rgba(255,255,255,0.88);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

/* ===== FORM BANNERS ===== */
.form-banner {
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 32px;
}

.form-banner--success {
  background: #f0faf4;
  color: #1a7a4a;
  border: 1px solid #a8dfc0;
}

.form-banner--error {
  background: #fff5f5;
  color: #b91c1c;
  border: 1px solid #fca5a5;
}

@media (prefers-color-scheme: dark) {
  .form-banner--success {
    background: #0d2b1e;
    color: #6ee7b7;
    border-color: #1a4a31;
  }
  .form-banner--error {
    background: #2b0d0d;
    color: #fca5a5;
    border-color: #4a1a1a;
  }
}

/* Hide reCAPTCHA v3 badge (per Google's policy, attribution must stay in text) */
.grecaptcha-badge {
  visibility: hidden;
}

.recaptcha-notice {
  font-size: 12px;
  color: var(--text-faint);
  line-height: 1.5;
  margin-top: 8px;
}

.recaptcha-notice a {
  color: var(--text-muted);
  text-decoration: underline;
}

/* ===== CONTACT PAGE ===== */
.contact-hero {
  position: relative;
  overflow: hidden;
  padding: 140px 0 80px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
}

.contact-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.contact-hero-text {
  flex: 1;
  min-width: 0;
}

.contact-hero-heading {
  font-size: clamp(40px, 5vw, 60px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.contact-intro {
  max-width: 440px;
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Hero quick stats */
.contact-hero-stats {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex-shrink: 0;
}

.contact-quick-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  min-width: 240px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-quick-item:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px var(--accent-glow);
}

.contact-quick-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.contact-quick-val {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
}

.contact-quick-lbl {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Contact section */
.contact-section {
  padding-top: 72px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}

/* Form card */
.form-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.form-card-header {
  padding: 28px 32px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
  padding-bottom: 24px;
}

.form-card-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.form-card-sub {
  font-size: 14px;
  color: var(--text-muted);
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0 32px 32px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}

.form-group input,
.form-group textarea {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  color: var(--text-primary);
  background: var(--input-bg);
  border: 1px solid var(--border-mid);
  border-radius: 8px;
  padding: 11px 14px;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.25s ease;
  outline: none;
  resize: vertical;
}

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

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
  background: var(--input-focus-bg);
}

/* Accent button */
.btn-accent {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.btn-accent:hover {
  background: #4338CA;
  border-color: #4338CA;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--accent-glow);
}

.btn-accent:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

@media (prefers-color-scheme: dark) {
  .btn-accent:hover {
    background: #6D6AF5;
    border-color: #6D6AF5;
  }
}

/* Contact Info sidebar */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: sticky;
  top: 88px;
}

.contact-email-link {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 10px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.contact-email-link:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 20px var(--accent-glow);
  transform: translateY(-2px);
  color: var(--accent);
}

.contact-email-icon {
  font-size: 16px;
  flex-shrink: 0;
  color: var(--accent);
  width: 18px;
  text-align: center;
}

.contact-email-addr {
  flex: 1;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-email-arrow {
  color: var(--accent);
  font-size: 16px;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.contact-email-link:hover .contact-email-arrow {
  transform: translateX(3px);
}

/* LinkedIn button */
.social-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 24px;
  transition: border-color 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.social-btn:hover {
  border-color: #0A66C2;
  color: #0A66C2;
  box-shadow: 0 4px 16px rgba(10, 102, 194, 0.15);
  transform: translateY(-2px);
}

@media (prefers-color-scheme: dark) {
  .social-btn:hover {
    border-color: #5BA7F5;
    color: #5BA7F5;
    box-shadow: 0 4px 16px rgba(91, 167, 245, 0.15);
  }
}

/* Divider */
.contact-info-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 24px;
}

/* Info blocks */
.contact-info-block {
  margin-bottom: 24px;
}

.contact-info-block:last-child {
  margin-bottom: 0;
}

.contact-info-block h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 10px;
}

/* Colored dots for info block headers */
.info-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-indigo { background: #4F46E5; }
.dot-purple { background: #8B5CF6; }
.dot-teal   { background: #14B8A6; }

@media (prefers-color-scheme: dark) {
  .dot-indigo { background: #818CF8; }
  .dot-purple { background: #A78BFA; }
  .dot-teal   { background: #2DD4BF; }
}

.contact-info-block p,
.contact-info-block ul li {
  font-size: 14px;
  color: var(--text-secondary);
}

.contact-info-block ul {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.contact-info-block ul li {
  padding-left: 14px;
  position: relative;
}

.contact-info-block ul li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ===== SCROLL PROGRESS BAR ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent) 0%, #EC4899 100%);
  z-index: 200;
  border-radius: 0 2px 2px 0;
  transition: width 0.06s linear;
  pointer-events: none;
}

/* ===== FOOTER ===== */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer p {
  font-size: 13px;
  color: var(--text-subtle);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-visual {
    width: 280px;
  }
}

@media (max-width: 900px) {
  .hero-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 48px;
  }

  .hero-visual {
    display: block;
    width: 100%;
    max-width: 340px;
    align-self: center;
    order: -1;
  }

  .badge-1 {
    left: -10px;
  }

  .badge-2 {
    right: -10px;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* Card above text on tablet/mobile — feels like a business-card intro */
  .about-card {
    order: -1;
  }

  .contact-hero-inner {
    flex-direction: column;
    gap: 40px;
  }

  .contact-hero-stats {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .contact-quick-item {
    flex: 1;
    min-width: 160px;
  }

  .contact-info {
    position: static;
  }

  .skills-grid,
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 20px;
  }

  .nav-inner {
    padding: 0 20px;
  }

  /* Hide desktop nav links, show hamburger */
  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  /* Hide the code card visual — text is the focus on mobile */
  .hero-visual {
    display: none;
  }

  .hero {
    padding: 140px 0 80px;
  }

  /* Center all hero content on mobile */
  .hero-inner {
    align-items: center;
  }

  .hero-content {
    text-align: center;
  }

  .hero-badge {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }

  .hero-stack {
    justify-content: center;
    gap: 6px;
  }

  .section {
    padding: 64px 0;
  }

  .skills-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .btn {
    text-align: center;
  }

  /* ---- About card mobile ---- */
  .about-card {
    padding: 20px;
  }

  /* Let the badge drop below name/role on very small screens */
  .acard-header {
    flex-wrap: wrap;
    gap: 10px;
  }

  .acard-info {
    flex: 1;
    min-width: 0;
  }

  .acard-badge {
    margin-left: auto;
    font-size: 10.5px;
    padding: 3px 9px;
  }

  .acard-monogram {
    width: 44px;
    height: 44px;
    font-size: 15px;
    border-radius: 12px;
  }

  .acard-name {
    font-size: 13.5px;
  }

  .acard-facts li {
    font-size: 12.5px;
  }

  .acard-stack span {
    font-size: 11px;
    padding: 4px 10px;
  }

  /* Tighten tools chip row */
  .about-tools {
    margin-top: 32px;
    padding-top: 28px;
  }

  .about-tool-chip {
    font-size: 12px;
    padding: 5px 10px;
  }
}
