
:root {
  --bg: #0E0F13;
  --bg-surface: #161820;
  --bg-alt: #13141A;
  --bg-tag: #1C1E26;
  --text: #F0EDE8;
  --text-2: #9A9BA3;
  --text-3: #5C5D65;
  --amber: #F5A623;
  --amber-dim: rgba(245,166,35,0.12);
  --teal: #00C8A0;
  --border: #2A2C35;
  --border-hover: #3E4050;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Lora', Georgia, serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: hidden;
  cursor: none;
}

/* Custom cursor */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 10px; height: 10px;
  background: var(--amber);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.08s, width 0.2s var(--ease), height 0.2s var(--ease), background 0.2s;
  mix-blend-mode: difference;
}
.cursor.expanded {
  width: 36px; height: 36px;
  background: rgba(245,166,35,0.3);
}

/* Noise overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  z-index: 0;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s, backdrop-filter 0.4s, padding 0.3s;
}
nav.scrolled {
  background: rgba(14,15,19,0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 14px 48px;
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--amber);
  text-decoration: none;
  letter-spacing: 0.05em;
}
.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-2);
  text-decoration: none;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: relative;
  transition: color 0.2s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--amber);
  transition: width 0.28s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.nav-mobile-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  font-size: 22px;
  padding: 4px;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0; right: -280px;
  width: 260px; height: 100vh;
  background: var(--bg-surface);
  border-left: 1px solid var(--border);
  z-index: 200;
  padding: 80px 32px 32px;
  flex-direction: column;
  gap: 28px;
  transition: right 0.35s var(--ease);
}
.mobile-menu.open { right: 0; }
.mobile-menu a {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-2);
  text-decoration: none;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--amber); }
.mobile-menu-close {
  position: absolute;
  top: 20px; right: 20px;
  background: none; border: none;
  color: var(--text-2); font-size: 20px;
  cursor: pointer;
}
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 190;
}

/* ── HERO ── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 48px;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(245,166,35,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,166,35,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 0%, transparent 100%);
}

.hero-number {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.6s var(--ease) 0.2s forwards;
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(64px, 9vw, 110px);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--text);
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 0.4s forwards;
  max-width: 800px;
}

.hero-name span {
  display: block;
  color: var(--amber);
}

.hero-role {
  font-family: var(--font-mono);
  font-size: clamp(14px, 1.8vw, 18px);
  color: var(--text-2);
  margin-top: 28px;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease) 0.9s forwards;
  display: flex;
  align-items: center;
  gap: 8px;
}

.typing-text { color: var(--amber); }

.cursor-blink {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--amber);
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: clamp(18px, 2.2vw, 24px);
  font-style: italic;
  color: var(--text-2);
  margin-top: 20px;
  max-width: 480px;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease) 1.6s forwards;
  line-height: 1.5;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  margin-top: 48px;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease) 1.9s forwards;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--amber);
  color: #0E0F13;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 3px;
  transition: transform 0.15s var(--ease), box-shadow 0.15s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245,166,35,0.3);
}
.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 13px 28px;
  border-radius: 3px;
  border: 1.5px solid var(--amber);
  transition: background 0.2s, transform 0.15s var(--ease);
  cursor: pointer;
}
.btn-ghost:hover {
  background: var(--amber-dim);
  transform: translateY(-2px);
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  animation: fadeIn 0.6s ease 2.4s forwards;
}
.hero-scroll span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}
.scroll-line {
  width: 40px;
  height: 1px;
  background: var(--text-3);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: var(--amber);
  animation: scrollPulse 2s ease 2.4s infinite;
}

/* ── SECTIONS ── */
section {
  position: relative;
  z-index: 1;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 120px 48px;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--amber);
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 62px);
  font-weight: 600;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 64px;
}

/* ── ABOUT ── */
#about { background: var(--bg); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 80px;
  align-items: start;
}

.about-prose p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-2);
  margin-bottom: 20px;
}
.about-prose p:first-child { color: var(--text); font-size: 18px; }

.about-pull {
  font-family: var(--font-display);
  font-size: 22px;
  font-style: italic;
  color: var(--text);
  line-height: 1.4;
  border-left: 2px solid var(--amber);
  padding-left: 24px;
  margin: 36px 0;
}

.about-currently {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 0.04em;
  margin-top: 32px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.about-currently strong {
  color: var(--amber);
  font-weight: 500;
}

.about-photo-wrap {
  position: relative;
}
.about-photo-frame {
  position: relative;
  border-left: 3px solid var(--amber);
  padding-left: 0;
  overflow: hidden;
  border-radius: 2px;
}
.about-photo-frame img {
  width: 100%;
  display: block;
  border-radius: 2px;
  filter: grayscale(8%) contrast(1.04);
  transition: filter 0.4s, transform 0.5s var(--ease);
}
.about-photo-frame:hover img {
  filter: grayscale(0%) contrast(1.06);
  transform: scale(1.02);
}
.about-photo-caption {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.06em;
  margin-top: 12px;
  text-align: right;
}

/* ── SKILLS ── */
#skills { background: var(--bg-surface); }

.skills-group { margin-bottom: 48px; }
.skills-group:last-child { margin-bottom: 0; }

.skills-group-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.skills-group-label::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--text-3);
  flex-shrink: 0;
}
.skills-group[data-cat="backend"] .skills-group-label { color: #F5A623; }
.skills-group[data-cat="backend"] .skills-group-label::before { background: #F5A623; }
.skills-group[data-cat="frontend"] .skills-group-label { color: #00C8A0; }
.skills-group[data-cat="frontend"] .skills-group-label::before { background: #00C8A0; }
.skills-group[data-cat="database"] .skills-group-label { color: #7B8CF8; }
.skills-group[data-cat="database"] .skills-group-label::before { background: #7B8CF8; }
.skills-group[data-cat="tools"] .skills-group-label { color: #E07070; }
.skills-group[data-cat="tools"] .skills-group-label::before { background: #E07070; }
.skills-group[data-cat="learning"] .skills-group-label { color: #A8E6CF; }
.skills-group[data-cat="learning"] .skills-group-label::before { background: #A8E6CF; box-shadow: 0 0 6px #A8E6CF; animation: glowPulse 2s ease infinite; }

.skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-2);
  background: var(--bg-tag);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 16px;
  transition: border-color 0.18s, color 0.18s, transform 0.15s;
  cursor: default;
  opacity: 0;
  transform: translateY(8px);
}
.skill-tag.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), border-color 0.18s, color 0.18s;
}
.skill-tag:hover {
  border-color: var(--amber);
  color: var(--text);
}

/* Backend tags */
.skills-group[data-cat="backend"] .skill-tag { border-color: rgba(245,166,35,0.25); color: #E8C97A; background: rgba(245,166,35,0.06); }
.skills-group[data-cat="backend"] .skill-tag:hover { border-color: #F5A623; color: #F5A623; background: rgba(245,166,35,0.12); }

/* Frontend tags */
.skills-group[data-cat="frontend"] .skill-tag { border-color: rgba(0,200,160,0.25); color: #7DDEC8; background: rgba(0,200,160,0.06); }
.skills-group[data-cat="frontend"] .skill-tag:hover { border-color: #00C8A0; color: #00C8A0; background: rgba(0,200,160,0.12); }

/* Database tags */
.skills-group[data-cat="database"] .skill-tag { border-color: rgba(123,140,248,0.25); color: #A0ADFC; background: rgba(123,140,248,0.06); }
.skills-group[data-cat="database"] .skill-tag:hover { border-color: #7B8CF8; color: #7B8CF8; background: rgba(123,140,248,0.12); }

/* Tools tags */
.skills-group[data-cat="tools"] .skill-tag { border-color: rgba(224,112,112,0.25); color: #ECAAAA; background: rgba(224,112,112,0.06); }
.skills-group[data-cat="tools"] .skill-tag:hover { border-color: #E07070; color: #E07070; background: rgba(224,112,112,0.12); }

/* Always learning tags — dashed border, animated glow */
.skill-tag.learning {
  border-style: dashed;
  border-color: rgba(168,230,207,0.4);
  color: #A8E6CF;
  background: rgba(168,230,207,0.05);
  animation: learningPulse 3s ease infinite;
}
.skill-tag.learning:hover {
  border-color: #A8E6CF;
  color: #fff;
  background: rgba(168,230,207,0.12);
}
@keyframes learningPulse {
  0%, 100% { box-shadow: 0 0 0px rgba(168,230,207,0); }
  50% { box-shadow: 0 0 8px rgba(168,230,207,0.25); }
}
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 4px #A8E6CF; }
  50% { box-shadow: 0 0 12px #A8E6CF; }
}

/* ── PROJECTS ── */
#projects { background: var(--bg); }

.projects-subline {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 0.04em;
  margin-top: -48px;
  margin-bottom: 64px;
}

.project-featured {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--amber);
  border-radius: 6px;
  padding: 40px 44px;
  margin-bottom: 32px;
  position: relative;
  transition: transform 0.22s var(--ease), box-shadow 0.22s;
  opacity: 0;
  transform: translateY(20px);
}
.project-featured.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), box-shadow 0.22s;
}
.project-featured:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
}

.project-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  border: 1px solid rgba(245,166,35,0.35);
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.project-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 38px);
  font-weight: 600;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 16px;
}

.project-desc {
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.75;
  max-width: 680px;
  margin-bottom: 28px;
}

.project-highlights {
  list-style: none;
  margin-bottom: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.project-highlights li {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-2);
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
}
.project-highlights li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--amber);
}

.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.stack-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stack-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 3px;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--amber);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: gap 0.2s var(--ease);
}
.project-link:hover { gap: 10px; }
.project-link svg {
  width: 14px; height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.project-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--border);
  border-radius: 6px;
  padding: 28px 30px;
  transition: transform 0.22s var(--ease), box-shadow 0.22s, border-top-color 0.22s;
  opacity: 0;
  transform: translateY(20px);
  display: flex;
  flex-direction: column;
}
.project-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), box-shadow 0.22s, border-top-color 0.22s;
}
.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  border-top-color: var(--amber);
}

.card-number {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.card-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 12px;
}

.card-desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 20px;
}

.card-dsa .card-desc {
  font-style: italic;
}

/* ── EDUCATION ── */
#education { background: var(--bg-alt); }

.timeline {
  position: relative;
  padding-left: 48px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--amber) 0%, transparent 100%);
}

.timeline-item {
  position: relative;
  margin-bottom: 48px;
  opacity: 0;
  transform: translateX(-16px);
}
.timeline-item.visible {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -52px;
  top: 4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--border);
  transition: border-color 0.3s, background 0.3s;
}
.timeline-item.visible .timeline-dot {
  border-color: var(--amber);
}
.timeline-item.active .timeline-dot {
  background: var(--amber);
  border-color: var(--amber);
  box-shadow: 0 0 0 4px rgba(245,166,35,0.18);
  animation: pulseDot 2.5s ease infinite;
}

.timeline-year {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--amber);
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

.timeline-event {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 4px;
}

.timeline-detail {
  font-size: 14px;
  color: var(--text-2);
}

/* ── CONTACT ── */
#contact { background: var(--bg-alt); border-top: 1px solid var(--border); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-intro {
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 40px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text-2);
  font-size: 15px;
  transition: color 0.2s;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.contact-link:last-child { border-bottom: none; }
.contact-link:hover { color: var(--text); }

.contact-link-icon {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.2s, background 0.2s;
}
.contact-link:hover .contact-link-icon {
  border-color: var(--amber);
  background: var(--amber-dim);
}
.contact-link-icon svg {
  width: 16px; height: 16px;
  stroke: var(--amber);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-link-arrow {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-3);
  transition: transform 0.2s var(--ease), color 0.2s;
}
.contact-link:hover .contact-link-arrow {
  transform: translateX(4px);
  color: var(--amber);
}

/* Contact form */
.contact-form-wrap h3 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 8px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--amber); }
.form-group textarea { min-height: 120px; }

/* Footer */
footer {
  padding: 32px 48px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-copy {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.04em;
}
.footer-right {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.04em;
  font-style: italic;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
@keyframes scrollPulse {
  0% { left: -100%; }
  50%, 100% { left: 100%; }
}
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 4px rgba(245,166,35,0.18); }
  50% { box-shadow: 0 0 0 8px rgba(245,166,35,0.06); }
}

/* ── UNIQUE ANIMATIONS ── */

/* 1. Floating particles in hero */
.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.particle {
  position: absolute;
  width: 2px; height: 2px;
  border-radius: 50%;
  background: var(--amber);
  opacity: 0;
  animation: floatParticle var(--dur, 8s) var(--delay, 0s) ease-in-out infinite;
}
@keyframes floatParticle {
  0% { opacity: 0; transform: translateY(0) translateX(0) scale(0.5); }
  15% { opacity: 0.6; }
  85% { opacity: 0.3; }
  100% { opacity: 0; transform: translateY(-120vh) translateX(var(--dx, 20px)) scale(1.5); }
}

/* 2. Name reveal — letters sweep in */
.hero-name .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(60px) rotate(8deg);
  animation: charReveal 0.7s var(--ease) var(--cd, 0.4s) forwards;
}
@keyframes charReveal {
  to { opacity: 1; transform: translateY(0) rotate(0deg); }
}

/* 3. Section number — count-up shimmer */
.section-label {
  position: relative;
  overflow: hidden;
}
.section-label.visible::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(245,166,35,0.18), transparent);
  animation: labelShimmer 1.2s var(--ease) 0.2s forwards;
}
@keyframes labelShimmer {
  to { left: 200%; }
}

/* 4. Hero tagline — typewriter underline */
.hero-tagline {
  position: relative;
  display: inline-block;
}
.hero-tagline::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: linear-gradient(90deg, var(--amber), var(--teal));
  animation: underlineGrow 1s var(--ease) 2.6s forwards;
}
@keyframes underlineGrow {
  to { width: 100%; }
}

/* 5. Magnetic card tilt effect (via JS) */
.project-featured, .project-card {
  transform-style: preserve-3d;
  will-change: transform;
}

/* 6. Skills section — wave entrance */
.skill-tag.visible {
  animation: skillWave 0.5s var(--ease) forwards;
}
@keyframes skillWave {
  0% { opacity: 0; transform: translateY(12px) scale(0.9); }
  60% { transform: translateY(-3px) scale(1.03); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* 7. Timeline — draw line animation */
.timeline::before {
  background: none;
  border-left: 1px solid transparent;
  animation: drawLine 1.5s var(--ease) 0.5s forwards;
  background-image: linear-gradient(to bottom, var(--amber) 0%, transparent 100%);
  background-size: 1px 0%;
  background-repeat: no-repeat;
  background-position: 0 0;
  animation: growLine 2s var(--ease) 0.3s forwards;
}
@keyframes growLine {
  to { background-size: 1px 100%; }
}

/* 8. Section heading split-word slide */
.section-heading .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}
.section-heading .word-inner {
  display: inline-block;
  transform: translateY(100%);
  transition: transform 0.7s var(--ease);
}
.section-heading.visible .word-inner {
  transform: translateY(0);
}

/* 9. Contact links — slide-right on hover enhanced */
.contact-link {
  overflow: hidden;
}
.contact-link::before {
  content: '';
  position: absolute;
  left: -100%; top: 0;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, rgba(245,166,35,0.04), transparent);
  transition: left 0.35s var(--ease);
}
.contact-link:hover::before { left: 0; }

/* 10. Ambient glow orbs in background */
.bg-orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(80px);
  opacity: 0;
  animation: orbFloat var(--dur, 12s) var(--delay, 0s) ease-in-out infinite alternate;
}
.orb-1 { width: 400px; height: 400px; background: rgba(245,166,35,0.06); top: 10%; left: -10%; --dur: 14s; }
.orb-2 { width: 300px; height: 300px; background: rgba(0,200,160,0.05); bottom: 20%; right: -8%; --dur: 18s; --delay: -5s; }
@keyframes orbFloat {
  0% { opacity: 0.3; transform: translate(0, 0) scale(1); }
  100% { opacity: 0.7; transform: translate(30px, -40px) scale(1.15); }
}

/* Scroll reveal base */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .section-inner { padding: 80px 28px; }
  #hero { padding: 0 28px; }
  nav { padding: 18px 28px; }
  nav.scrolled { padding: 14px 28px; }
  .nav-links { display: none; }
  .nav-mobile-btn { display: block; }
  .mobile-menu { display: flex; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-photo-wrap { max-width: 320px; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-featured { padding: 28px 24px; }
  .project-highlights { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-scroll { left: 28px; }
  footer { padding: 24px 28px; }
}

/* ── PHONE (portrait) ── */
@media (max-width: 480px) {
  body { cursor: auto; font-size: 15px; }
  .cursor { display: none; }
  .bg-orb { display: none; }

  nav { padding: 14px 18px; }
  nav.scrolled { padding: 12px 18px; }

  #hero {
    padding: 80px 18px 40px;
    min-height: 100svh;
    justify-content: center;
  }
  .hero-grid { background-size: 40px 40px; }
  .hero-number { font-size: 10px; margin-bottom: 16px; }
  .hero-name {
    font-size: clamp(56px, 16vw, 80px);
    line-height: 0.92;
  }
  .hero-role {
    font-size: 13px;
    margin-top: 20px;
    flex-wrap: wrap;
    gap: 4px;
  }
  .hero-tagline {
    font-size: 16px;
    margin-top: 16px;
    max-width: 100%;
  }
  .hero-ctas {
    flex-direction: column;
    gap: 12px;
    margin-top: 32px;
  }
  .btn-primary, .btn-ghost {
    width: 100%;
    justify-content: center;
    font-size: 12px;
    padding: 14px 24px;
  }
  .hero-scroll { left: 18px; bottom: 24px; }

  .section-inner { padding: 56px 18px; }
  .section-heading {
    font-size: clamp(30px, 9vw, 44px);
    margin-bottom: 36px;
  }

  .about-grid { gap: 36px; }
  .about-prose p { font-size: 15px; line-height: 1.75; }
  .about-pull { font-size: 17px; padding-left: 16px; }
  .about-photo-wrap { max-width: 100%; }

  .skills-group { margin-bottom: 32px; }
  .skill-tag { font-size: 11px; padding: 5px 13px; }

  .project-featured { padding: 20px 16px; }
  .project-title { font-size: clamp(20px, 6vw, 26px); }
  .project-highlights { grid-template-columns: 1fr; gap: 8px; }
  .project-highlights li { font-size: 11px; }
  .project-footer { flex-direction: column; align-items: flex-start; gap: 14px; }
  .stack-tags { gap: 6px; }
  .stack-tag { font-size: 10px; }
  .projects-grid { grid-template-columns: 1fr; gap: 16px; }
  .project-card { padding: 20px 18px; }
  .card-title { font-size: 20px; }
  .card-desc { font-size: 13px; }
  .card-dsa { grid-column: 1 !important; max-width: 100% !important; }

  .timeline { padding-left: 30px; }
  .timeline-dot { left: -34px; width: 8px; height: 8px; }
  .timeline-event { font-size: 16px; }
  .timeline-detail { font-size: 13px; }
  .timeline-item { margin-bottom: 32px; }

  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .contact-intro { font-size: 15px; }
  .contact-link { font-size: 14px; }
  .contact-form-wrap h3 { font-size: 22px; }
  .form-group input, .form-group textarea { font-size: 16px; }

  footer {
    padding: 20px 18px;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
  }

  /* fix mobile menu width */
  .mobile-menu { width: 240px; right: -240px; padding: 70px 24px 24px; }

  /* section label shimmer off on mobile for perf */
  .section-label.visible::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: opacity 150ms ease !important;
    transform: none !important;
  }
}
