/* =====================================================
   Ankita Devi — Portfolio CSS · Premium Edition
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=JetBrains+Mono:ital,wght@0,300;0,400;0,500;1,300&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── DESIGN TOKENS ── */
:root {
  --ink:         #06090f;
  --ink-2:       #0b1018;
  --ink-3:       #0f1620;
  --ink-4:       #141e2b;
  --surface:     #18243a;
  --surface-2:   #1e2e46;

  --blue:        #4a80e8;
  --blue-dim:    rgba(74, 128, 232, 0.12);
  --blue-glow:   rgba(74, 128, 232, 0.28);
  --amber:       #e8a020;
  --amber-dim:   rgba(232, 160, 32, 0.1);
  --amber-glow:  rgba(232, 160, 32, 0.25);
  --cream:       #f0e8d8;
  --sage:        #48b98c;
  --sage-dim:    rgba(72, 185, 140, 0.1);
  --lavender:    #9b7fe0;

  --t1:          #edf1f8;
  --t2:          #7e9ab5;
  --t3:          #3d5570;

  --b1:          rgba(255,255,255,0.05);
  --b2:          rgba(255,255,255,0.09);
  --b-blue:      rgba(74,128,232,0.25);
  --b-amber:     rgba(232,160,32,0.22);

  --r-sm:   6px;
  --r-md:   12px;
  --r-lg:   18px;
  --r-xl:   26px;
  --r-2xl:  36px;

  --sh-card:  0 2px 20px rgba(0,0,0,0.5), 0 1px 3px rgba(0,0,0,0.4);
  --sh-hover: 0 20px 60px rgba(0,0,0,0.6), 0 4px 16px rgba(0,0,0,0.4);
  --glow-b:   0 0 50px rgba(74,128,232,0.14);
  --glow-a:   0 0 50px rgba(232,160,32,0.14);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'JetBrains Mono', monospace;
  background: var(--ink);
  color: var(--t1);
  line-height: 1.65;
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--ink-2); }
::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--blue); }

::selection { background: var(--blue-dim); color: var(--blue); }

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 3.5rem;
  background: rgba(6, 9, 15, 0.78);
  backdrop-filter: blur(28px) saturate(160%);
  border-bottom: 1px solid var(--b1);
  transition: box-shadow 0.3s, background 0.3s;
}

nav.scrolled {
  background: rgba(6, 9, 15, 0.94);
  box-shadow: 0 1px 0 var(--b2), 0 4px 30px rgba(0,0,0,0.3);
}

.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  color: var(--t1);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-logo span { color: var(--amber); }
.nav-logo:hover { color: var(--blue); }

.nav-links {
  display: flex;
  gap: 2.25rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--t3);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
  padding-bottom: 2px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--amber);
  transition: width 0.25s ease;
}
.nav-links a:hover { color: var(--t1); }
.nav-links a:hover::after { width: 100%; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--t2);
  border-radius: 2px;
  transition: all 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-mobile-menu {
  display: none;
  flex-direction: column;
  gap: 1.4rem;
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: rgba(6,9,15,0.98);
  backdrop-filter: blur(24px);
  padding: 2rem 1.75rem;
  border-bottom: 1px solid var(--b1);
  list-style: none;
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu a {
  font-size: 0.8rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--t2);
  text-decoration: none; transition: color 0.2s;
}
.nav-mobile-menu a:hover { color: var(--amber); }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  padding: 9rem 3.5rem 5rem;
  gap: 3rem 5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  width: 900px; height: 900px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74,128,232,0.08) 0%, transparent 65%);
  top: -300px; right: -200px;
  pointer-events: none;
  animation: orb-drift 11s ease-in-out infinite alternate;
}
.hero::after {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,160,32,0.07) 0%, transparent 65%);
  bottom: 80px; left: -100px;
  pointer-events: none;
  animation: orb-drift 15s ease-in-out infinite alternate-reverse;
}
@keyframes orb-drift {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(40px,-40px) scale(1.07); }
}

.hero-grid-line {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--b1) 1px, transparent 1px),
    linear-gradient(90deg, var(--b1) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, black 10%, transparent 80%);
  pointer-events: none;
  opacity: 0.5;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(72,185,140,0.08);
  color: var(--sage);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.4rem 1.1rem;
  border-radius: 99px;
  margin-bottom: 1.75rem;
  border: 1px solid rgba(72,185,140,0.22);
}
.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--sage);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 rgba(72,185,140,0.5); }
  70%  { box-shadow: 0 0 0 8px rgba(72,185,140,0); }
  100% { box-shadow: 0 0 0 0 rgba(72,185,140,0); }
}

h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(4.5rem, 8.5vw, 8rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 0.04em;
  color: var(--t1);
  margin-bottom: 1.25rem;
}

h1 em {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0.01em;
  background: linear-gradient(135deg, var(--amber) 0%, #f5c56a 50%, var(--amber) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 0.8rem;
  color: var(--t2);
  max-width: 380px;
  line-height: 2;
  margin-bottom: 1.5rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.85rem 2rem;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 4px 24px rgba(74,128,232,0.45);
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  transition: left 0.4s ease;
}
.btn-primary:hover::before { left: 100%; }
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(74,128,232,0.55);
}

.btn-outline {
  background: transparent;
  color: var(--t2);
  border: 1px solid var(--b2);
}
.btn-outline:hover {
  border-color: var(--amber);
  color: var(--amber);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(232,160,32,0.15);
}

/* ── HERO PHOTO ── */
.hero-photo-wrap {
  position: relative;
  width: 260px;
  height: 300px;
  margin: 0 auto 2rem;
  flex-shrink: 0;
  justify-self: center;
  align-self: center;
}

.photo-frame {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  z-index: 3;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.12s ease;
  box-shadow:
    0 0 0 2px var(--amber),
    0 0 50px rgba(232,160,32,0.25),
    0 0 100px rgba(232,160,32,0.08),
    0 40px 80px rgba(0,0,0,0.6);
}

.hero-photo {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.4s ease, filter 0.4s ease;
  filter: contrast(1.05) saturate(0.95);
}

.photo-frame:hover .hero-photo {
  transform: scale(1.07);
  filter: contrast(1.08) saturate(1.1) brightness(1.05);
}

.photo-overlay {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(232,160,32,0.1) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.photo-frame:hover .photo-overlay { opacity: 1; }

.photo-ring-outer {
  position: absolute;
  inset: -22px;
  border-radius: 26px;
  border: 1px solid rgba(232,160,32,0.2);
  animation: ring-pulse 3.5s ease-in-out infinite;
}
@keyframes ring-pulse {
  0%, 100% { transform: scale(1); opacity: 0.35; }
  50%       { transform: scale(1.04); opacity: 0.8; }
}

.photo-ring-mid {
  position: absolute;
  inset: -13px;
  border-radius: 22px;
  background: conic-gradient(
    from 0deg,
    var(--amber) 0deg,
    var(--blue) 80deg,
    transparent 130deg,
    transparent 220deg,
    var(--amber) 275deg,
    var(--blue) 360deg
  );
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), white 100%);
  mask:         radial-gradient(farthest-side, transparent calc(100% - 2px), white 100%);
  animation: spin-ring 8s linear infinite;
}

.photo-ring-inner {
  position: absolute;
  inset: -6px;
  border-radius: 20px;
  border: 1px dashed rgba(74,128,232,0.35);
  animation: spin-ring-rev 14s linear infinite;
}

@keyframes spin-ring     { to { transform: rotate(360deg); } }
@keyframes spin-ring-rev { to { transform: rotate(-360deg); } }

.photo-particle {
  position: absolute;
  border-radius: 50%;
  background: var(--amber);
  z-index: 2;
  animation: float-particle linear infinite;
}
.p1 { width:5px; height:5px; top:-8px; left:52%; opacity:0.65; animation-duration:4s; animation-delay:0s; }
.p2 { width:4px; height:4px; top:28%; left:-12px; opacity:0.5; animation-duration:5.5s; animation-delay:1.2s; background: var(--blue); }
.p3 { width:5px; height:5px; bottom:-6px; right:22%; opacity:0.6; animation-duration:3.8s; animation-delay:0.6s; }
.p4 { width:3px; height:3px; top:12%; right:-8px; opacity:0.4; animation-duration:6s; animation-delay:2s; background: var(--lavender); }
.p5 { width:4px; height:4px; bottom:16%; left:6%; opacity:0.5; animation-duration:4.8s; animation-delay:1.6s; background: var(--sage); }

@keyframes float-particle {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.7; }
  50%       { transform: translateY(-14px) scale(1.4); opacity: 1; }
}

.photo-badge {
  position: absolute;
  z-index: 5;
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.badge-ml {
  background: linear-gradient(135deg, var(--blue), var(--lavender));
  color: #fff;
  top: -8px; right: -8px;
  animation: orbit-badge-1 8s ease-in-out infinite;
}

.badge-knight {
  background: linear-gradient(135deg, var(--ink-4), var(--surface));
  color: var(--amber);
  font-size: 1rem;
  bottom: 2px; left: -12px;
  animation: orbit-badge-2 8s ease-in-out infinite;
}

@keyframes orbit-badge-1 {
  0%, 100% { transform: translate(0,0) rotate(0deg); }
  25%       { transform: translate(8px,-10px) rotate(6deg); }
  50%       { transform: translate(0,-16px) rotate(0deg); }
  75%       { transform: translate(-8px,-10px) rotate(-6deg); }
}
@keyframes orbit-badge-2 {
  0%, 100% { transform: translate(0,0) rotate(0deg); }
  25%       { transform: translate(-10px,8px) rotate(-6deg); }
  50%       { transform: translate(0,14px) rotate(0deg); }
  75%       { transform: translate(10px,8px) rotate(6deg); }
}

.hero-photo-dot {
  position: absolute;
  bottom: 14px; right: 10px;
  width: 14px; height: 14px;
  background: var(--sage);
  border-radius: 50%;
  border: 3px solid var(--ink);
  z-index: 6;
  animation: pulse-dot 2s infinite;
}

/* ── HERO STAT CARDS ── */
.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.stat-card {
  background: var(--ink-3);
  border: 1px solid var(--b1);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--b2), transparent);
}
.stat-card::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 60px; height: 60px;
  background: radial-gradient(circle at bottom right, rgba(74,128,232,0.07), transparent 70%);
}
.stat-card:hover {
  transform: translateY(-6px);
  border-color: var(--b-blue);
  box-shadow: var(--sh-hover), var(--glow-b);
}

.stat-number {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3rem;
  font-weight: 400;
  line-height: 1;
  margin-bottom: 0.4rem;
  letter-spacing: 0.03em;
  background: linear-gradient(135deg, var(--t1) 40%, var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.6rem;
  color: var(--t3);
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.stat-card.accent {
  background: linear-gradient(145deg, rgba(74,128,232,0.2) 0%, rgba(74,128,232,0.06) 100%);
  border-color: var(--b-blue);
  box-shadow: 0 8px 40px rgba(74,128,232,0.18);
}
.stat-card.accent .stat-number {
  background: none;
  -webkit-text-fill-color: var(--t1);
}
.stat-card.accent .stat-label { color: var(--t2); }
.stat-card.accent:hover { box-shadow: 0 20px 60px rgba(74,128,232,0.28); }

#hero-typing {
  font-size: 0.78rem;
  color: var(--amber);
  letter-spacing: 0.05em;
}

/* ── SECTION COMMON ── */
section { padding: 6rem 3.5rem; }

.section-label {
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.section-label::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--amber);
  opacity: 0.55;
}

.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--t1);
  margin-bottom: 3rem;
  line-height: 1;
}

/* ── PROJECTS ── */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.project-card {
  background: var(--ink-3);
  border: 1px solid var(--b1);
  border-radius: var(--r-lg);
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--amber), var(--lavender));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.34,1,0.64,1);
}
.project-card::after {
  content: '';
  position: absolute;
  pointer-events: none;
  inset: 0;
  background: radial-gradient(circle at 15% 15%, rgba(74,128,232,0.04), transparent 55%);
  opacity: 0;
  transition: opacity 0.3s;
}
.project-card:hover::before { transform: scaleX(1); }
.project-card:hover::after  { opacity: 1; }
.project-card:hover {
  transform: translateY(-8px);
  border-color: var(--b-blue);
  box-shadow: var(--sh-hover), var(--glow-b);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.project-icon {
  width: 46px; height: 46px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  border: 1px solid var(--b1);
  background: var(--ink-2);
}

.project-link {
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--blue);
  text-decoration: none;
  padding: 0.3rem 0.85rem;
  border-radius: 3px;
  border: 1px solid var(--b-blue);
  background: var(--blue-dim);
  transition: all 0.2s;
  text-transform: uppercase;
  position: relative;
  z-index: 10;
}
.project-link:hover {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
  box-shadow: 0 4px 18px rgba(74,128,232,0.4);
}

.project-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--t1);
  margin-bottom: 0.3rem;
  transition: color 0.2s;
  line-height: 1.2;
}
.project-card:hover .project-title { color: var(--amber); }

.project-date {
  font-size: 0.62rem;
  color: var(--t3);
  margin-bottom: 0.85rem;
  letter-spacing: 0.06em;
}

.project-desc {
  font-size: 0.76rem;
  color: var(--t2);
  line-height: 1.9;
  margin-bottom: 1.25rem;
}

.project-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.tag {
  font-size: 0.6rem;
  padding: 0.2rem 0.7rem;
  border-radius: 3px;
  border: 1px solid var(--b1);
  color: var(--t3);
  background: var(--ink-2);
  letter-spacing: 0.05em;
  transition: all 0.2s;
  text-transform: uppercase;
}
.tag:hover {
  border-color: var(--b-amber);
  color: var(--amber);
  background: var(--amber-dim);
}

/* ── EXPERIENCE ── */
.exp-card {
  background: var(--ink-3);
  border: 1px solid var(--b1);
  border-radius: var(--r-lg);
  padding: 2.25rem 2rem;
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.exp-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--amber), transparent);
  border-radius: 0 2px 2px 0;
  opacity: 0;
  transition: opacity 0.3s;
}
.exp-card:hover {
  transform: translateX(6px);
  border-color: var(--b-amber);
}
.exp-card:hover::before { opacity: 1; }

.exp-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--blue);
  margin-top: 0.5rem;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px var(--blue-dim);
}

.exp-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--t1);
  margin-bottom: 0.3rem;
  line-height: 1.3;
}

.exp-meta {
  font-size: 0.66rem;
  color: var(--t3);
  margin-bottom: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.exp-desc {
  font-size: 0.76rem;
  color: var(--t2);
  line-height: 1.9;
}

/* ── SKILLS ── */
.skills-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
  align-items: start;
}

.skills-intro {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 300;
  color: var(--t2);
  line-height: 2.1;
  font-style: italic;
}

.skill-group {
  margin-bottom: 1.1rem;
  padding: 1.5rem;
  background: var(--ink-3);
  border: 1px solid var(--b1);
  border-radius: var(--r-md);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.skill-group:hover {
  border-color: var(--b2);
  box-shadow: 0 4px 24px rgba(0,0,0,0.35);
}

.skill-group-title {
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--t3);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.skill-group-title::before {
  content: '';
  width: 8px; height: 1px;
  background: var(--t3);
}

.skill-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.skill-pill {
  font-size: 0.68rem;
  padding: 0.32rem 0.9rem;
  border-radius: 3px;
  background: var(--ink-2);
  border: 1px solid var(--b1);
  color: var(--t2);
  transition: all 0.22s ease;
  cursor: default;
  letter-spacing: 0.03em;
}
.skill-pill:hover {
  background: var(--amber-dim);
  border-color: var(--b-amber);
  color: var(--amber);
  transform: translateY(-2px);
}


/* ── CODING STRIP ── */
.coding-strip {
  background: linear-gradient(135deg, var(--ink-4) 0%, var(--surface) 50%, var(--ink-4) 100%);
  border: 1px solid var(--b1);
  border-radius: var(--r-2xl);
  padding: 3rem 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 2rem;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.coding-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(74,128,232,0.06), transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(232,160,32,0.05), transparent 50%);
  pointer-events: none;
}
.coding-strip::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232,160,32,0.3), var(--b2), rgba(232,160,32,0.3), transparent);
}

.coding-item { text-align: center; position: relative; z-index: 1; }

.coding-number {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.8rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, var(--t1), var(--amber));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.coding-label {
  font-size: 0.58rem;
  color: var(--t3);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-top: 0.4rem;
}

.coding-divider {
  width: 1px; height: 55px;
  background: linear-gradient(180deg, transparent, var(--b2), transparent);
}

/* ── ACHIEVEMENTS ── */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.achievement-card {
  background: var(--ink-3);
  border: 1px solid var(--b1);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.achievement-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--b2), transparent);
}
.achievement-card::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 90px; height: 90px;
  background: radial-gradient(circle at bottom right, rgba(232,160,32,0.06), transparent 70%);
}
.achievement-card:hover {
  transform: translateY(-7px);
  border-color: var(--b-amber);
  box-shadow: var(--sh-hover), var(--glow-a);
}

.achievement-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.58rem;
  padding: 0.22rem 0.75rem;
  border-radius: 2px;
  margin-bottom: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid;
}

.badge-gold   { background: var(--amber-dim); color: var(--amber); border-color: rgba(232,160,32,0.25); }
.badge-silver { background: rgba(148,163,184,0.08); color: #94a3b8; border-color: rgba(148,163,184,0.18); }
.badge-blue   { background: var(--blue-dim); color: var(--blue); border-color: var(--b-blue); }
.badge-green  { background: var(--sage-dim); color: var(--sage); border-color: rgba(72,185,140,0.22); }

.achievement-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--t1);
  margin-bottom: 0.35rem;
  line-height: 1.4;
}

.achievement-meta {
  font-size: 0.66rem;
  color: var(--t3);
  letter-spacing: 0.04em;
}

/* ── EDUCATION TIMELINE ── */
.edu-timeline {
  position: relative;
  padding-left: 2.5rem;
}
.edu-timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 14px; bottom: 14px;
  width: 1px;
  background: linear-gradient(180deg, var(--amber), var(--b1), transparent);
}

.edu-item {
  position: relative;
  margin-bottom: 1.25rem;
  padding: 1.75rem;
  background: var(--ink-3);
  border: 1px solid var(--b1);
  border-radius: var(--r-lg);
  transition: all 0.3s ease;
}
.edu-item:last-child { margin-bottom: 0; }
.edu-item:hover {
  border-color: var(--b-amber);
  transform: translateX(6px);
  box-shadow: var(--glow-a);
}
.edu-item::before {
  content: '';
  position: absolute;
  left: -2.85rem; top: 1.75rem;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 4px var(--amber-dim), 0 0 14px var(--amber-glow);
}

.edu-year {
  font-size: 0.6rem;
  color: var(--amber);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}

.edu-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--t1);
  margin-bottom: 0.3rem;
}

.edu-meta {
  font-size: 0.74rem;
  color: var(--t2);
}

.edu-score {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.7rem;
  font-size: 0.66rem;
  padding: 0.25rem 0.8rem;
  background: var(--sage-dim);
  color: var(--sage);
  border-radius: 3px;
  border: 1px solid rgba(72,185,140,0.18);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ── CONTACT ── */
.contact-section {
  background: linear-gradient(145deg, var(--ink-3) 0%, var(--surface) 50%, var(--ink-3) 100%);
  border: 1px solid var(--b1);
  border-radius: var(--r-2xl);
  padding: 6rem 4rem;
  text-align: center;
  margin: 0 3.5rem 6rem;
  position: relative;
  overflow: hidden;
}
.contact-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(74,128,232,0.07), transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(232,160,32,0.05), transparent 50%);
  pointer-events: none;
}
.contact-section::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232,160,32,0.3), rgba(74,128,232,0.3), rgba(232,160,32,0.3), transparent);
}

.contact-section .section-label { justify-content: center; }

.contact-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--t1);
  margin-bottom: 0.75rem;
  line-height: 1;
}

.contact-sub {
  color: var(--t3);
  font-size: 0.8rem;
  margin-bottom: 2.75rem;
  line-height: 1.9;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.contact-links {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border-radius: 4px;
  border: 1px solid var(--b2);
  color: var(--t2);
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: all 0.25s ease;
  background: rgba(255,255,255,0.02);
}
.contact-link:hover {
  background: var(--amber-dim);
  border-color: var(--b-amber);
  color: var(--amber);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(232,160,32,0.18);
}

/* ── FOOTER ── */
footer {
  text-align: center;
  padding: 2.5rem 1.5rem;
  font-size: 0.64rem;
  color: var(--t3);
  border-top: 1px solid var(--b1);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── ANIMATIONS ── */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes fadeUp {
  to { opacity: 1; transform: none; }
}
.fade-in:nth-child(1) { animation-delay: 0.05s; }
.fade-in:nth-child(2) { animation-delay: 0.18s; }
.fade-in:nth-child(3) { animation-delay: 0.3s; }
.fade-in:nth-child(4) { animation-delay: 0.42s; }
.fade-in:nth-child(5) { animation-delay: 0.54s; }
.fade-in:nth-child(6) { animation-delay: 0.66s; }

.reveal {
  opacity: 0;
  transform: translateY(28px);
}
.reveal.visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.75s cubic-bezier(0.22,1,0.36,1), transform 0.75s cubic-bezier(0.22,1,0.36,1);
}

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

/* Full-width variants — desktop only */
.project-card--wide   { grid-column: 1 / -1; }
.achievement-card--wide { grid-column: span 2; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  .hero {
    grid-template-columns: 1fr;
    padding: 7rem 1.5rem 4rem;
    gap: 3rem;
  }
  .hero::before, .hero::after { display: none; }

  /* Hero text fits full width */
  .hero-text { width: 100%; }
  .hero-desc { max-width: 100%; }
  .hero-badge {
    font-size: 0.55rem;
    padding: 0.35rem 0.85rem;
    text-align: center;
    white-space: normal;
    line-height: 1.5;
  }

  /* Hero photo centered and properly sized */
  .hero-photo-wrap {
    width: 220px;
    height: 260px;
    margin: 0 auto 1rem;
  }

  /* Stats grid: 2 cols on mobile */
  .hero-stats {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }
  .stat-card { padding: 1.25rem 1rem; }
  .stat-number { font-size: 2.2rem; }

  section { padding: 4rem 1.5rem; }
  .projects-grid    { grid-template-columns: 1fr; }

  /* Fix the full-width project card on mobile — handled via class now */

  .skills-layout    { grid-template-columns: 1fr; gap: 2rem; }

  /* Achievements: single column, fix span 2 card */
  .achievements-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .achievement-card--wide { grid-column: 1; }
  .project-card--wide     { grid-column: 1; }

  .achievement-card {
    width: 100%;
    min-width: 0;
    padding: 1.4rem;
  }
  .achievement-title {
    font-size: 1rem;
    line-height: 1.4;
    word-break: break-word;
  }
  .achievement-meta {
    font-size: 0.7rem;
    line-height: 1.6;
  }

  /* Experience cards */
  .exp-card {
    gap: 1rem;
    padding: 1.5rem 1.25rem;
  }
  .exp-title { font-size: 1rem; }

  /* Coding strip */
  .coding-strip {
    justify-content: center;
    padding: 1.75rem 1.25rem;
    gap: 1.25rem;
    border-radius: var(--r-xl);
  }
  .coding-divider { display: none; }
  .coding-number { font-size: 2rem; }
  .coding-item { min-width: 80px; }

  /* Education timeline */
  .edu-timeline { padding-left: 1.75rem; }
  .edu-item { padding: 1.25rem; }
  .edu-item::before { left: -2.1rem; }
  .edu-title { font-size: 1rem; }

  /* Contact */
  .contact-section {
    margin: 0 1rem 4rem;
    padding: 3rem 1.25rem;
    border-radius: var(--r-xl);
  }
  .contact-links { gap: 0.5rem; }
  .contact-link {
    padding: 0.6rem 1rem;
    font-size: 0.66rem;
  }

  /* Section titles */
  .section-title { margin-bottom: 2rem; }
}



/* ── THEME TOGGLE BUTTON ── */
.theme-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--ink-3);
  border: 1px solid var(--b2);
  border-radius: 99px;
  padding: 0.38rem 0.9rem 0.38rem 0.5rem;
  cursor: pointer;
  transition: all 0.25s ease;
  color: var(--t2);
  margin-right: 0.5rem;
}
.theme-toggle:hover {
  border-color: var(--amber);
  color: var(--amber);
  box-shadow: 0 0 16px rgba(232,160,32,0.2);
  background: var(--amber-dim);
}
.bulb-icon {
  width: 20px; height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.bulb-icon svg {
  width: 18px; height: 18px;
  stroke: currentColor;
  transition: stroke 0.25s;
}
.theme-toggle:hover .bulb-icon {
  transform: rotate(-12deg) scale(1.15);
}
/* Glow when light mode is active */
body.light-mode .theme-toggle .bulb-icon {
  filter: drop-shadow(0 0 6px rgba(232,160,32,0.8));
  transform: scale(1.1);
}
.toggle-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
}

/* ── LIGHT MODE TOKENS ── */
body.light-mode {
  --ink:         #f5f3ef;
  --ink-2:       #ede9e3;
  --ink-3:       #e8e2d8;
  --ink-4:       #dfd8cc;
  --surface:     #d6cec0;
  --surface-2:   #ccc3b2;

  --blue:        #2d5fc7;
  --blue-dim:    rgba(45,95,199,0.1);
  --blue-glow:   rgba(45,95,199,0.22);
  --amber:       #b8720a;
  --amber-dim:   rgba(184,114,10,0.1);
  --amber-glow:  rgba(184,114,10,0.2);
  --sage:        #1f8a5e;
  --sage-dim:    rgba(31,138,94,0.1);
  --lavender:    #6d50c4;

  --t1:          #1a1510;
  --t2:          #4a3e2e;
  --t3:          #7a6a52;

  --b1:          rgba(0,0,0,0.07);
  --b2:          rgba(0,0,0,0.12);
  --b-blue:      rgba(45,95,199,0.22);
  --b-amber:     rgba(184,114,10,0.2);

  --sh-card:  0 2px 12px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.06);
  --sh-hover: 0 16px 48px rgba(0,0,0,0.13), 0 4px 12px rgba(0,0,0,0.08);
  --glow-b:   0 0 40px rgba(45,95,199,0.1);
  --glow-a:   0 0 40px rgba(184,114,10,0.1);
}

body.light-mode {
  background: var(--ink);
  color: var(--t1);
}

body.light-mode nav {
  background: rgba(245,243,239,0.8);
  border-bottom-color: var(--b1);
}
body.light-mode nav.scrolled {
  background: rgba(245,243,239,0.96);
  box-shadow: 0 1px 0 var(--b2), 0 4px 24px rgba(0,0,0,0.06);
}

body.light-mode .hero::before {
  background: radial-gradient(circle, rgba(45,95,199,0.07) 0%, transparent 65%);
}
body.light-mode .hero::after {
  background: radial-gradient(circle, rgba(184,114,10,0.06) 0%, transparent 65%);
}

body.light-mode .stat-card,
body.light-mode .project-card,
body.light-mode .exp-card,
body.light-mode .skill-group,
body.light-mode .achievement-card,
body.light-mode .edu-item {
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

body.light-mode .stat-card:hover,
body.light-mode .project-card:hover,
body.light-mode .achievement-card:hover {
  box-shadow: var(--sh-hover);
}

body.light-mode .coding-strip {
  background: linear-gradient(135deg, #e8e2d8 0%, #dfd8cc 50%, #e8e2d8 100%);
}

body.light-mode .contact-section {
  background: linear-gradient(145deg, #fff 0%, #ede9e3 50%, #fff 100%);
  box-shadow: 0 4px 40px rgba(0,0,0,0.06);
}

body.light-mode footer {
  border-top-color: var(--b1);
}

body.light-mode .photo-frame {
  border-radius: 16px;
  box-shadow:
    0 0 0 2px var(--amber),
    0 0 40px rgba(184,114,10,0.2),
    0 30px 60px rgba(0,0,0,0.15);
}

body.light-mode .nav-mobile-menu {
  background: rgba(245,243,239,0.99);
}

/* smooth transition for theme switch */
body, nav, .stat-card, .project-card, .exp-card,
.skill-group, .achievement-card, .edu-item,
.coding-strip, .contact-section, footer,
.photo-frame, h1, h1 em, .section-title,
.section-label, .hero-badge, .tag, .skill-pill,
.btn-outline, .contact-link, .theme-toggle {
  transition-property: background, background-color, border-color, color, box-shadow, filter;
  transition-duration: 0.35s;
  transition-timing-function: ease;
}
/* don't override animation transitions */
.fade-in, .reveal { transition-property: opacity, transform; }