﻿/* ================================================
   PORTFOLIO — Saffron Theme
   Palette: saffron 50–950 with warm dark gradients
================================================ */

:root {
  --saffron-50:  #fdf8e8;
  --saffron-100: #faf1d1;
  --saffron-200: #f5e3a3;
  --saffron-300: #f0d675;
  --saffron-400: #ecc846;
  --saffron-500: #e7ba18;
  --saffron-600: #b99513;
  --saffron-700: #8a700f;
  --saffron-800: #5c4a0a;
  --saffron-900: #2e2505;
  --saffron-950: #201a03;

  --bg:          var(--saffron-950);
  --bg-card:     rgba(32, 26, 3, 0.58);
  --purple:      var(--saffron-500);
  --purple-mid:  var(--saffron-400);
  --purple-light:var(--saffron-300);
  --purple-dark: var(--saffron-800);
  --cyan:        var(--saffron-200);
  --cyan-light:  var(--saffron-100);
  --border:      rgba(231, 186, 24, 0.38);
  --border-sub:  rgba(253, 248, 232, 0.08);
  --text:        var(--saffron-50);
  --text-sec:    var(--saffron-200);
  --text-dim:    var(--saffron-400);
  --max-w:       1200px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: 'Inter', sans-serif;
  background: radial-gradient(circle at 18% 0%, var(--saffron-800) 0%, var(--saffron-900) 35%, var(--saffron-950) 70%, #141100 100%);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.65;
}

#stars-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
}

.hero-section,
.sp-section,
.sp-footer {
  position: relative;
  z-index: 1;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 65px;
  z-index: 1000;
  background: rgba(32, 26, 3, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 2px 24px rgba(92, 74, 10, 0.45);
  padding: 0 2.5rem;
  transition: height 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.navbar.scrolled {
  height: 58px;
  background: rgba(32, 26, 3, 0.92);
  box-shadow: 0 4px 30px rgba(231, 186, 24, 0.15);
}
.navbar-inner {
  max-width: var(--max-w);
  margin: 0 auto; height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-badge {
  width: 42px; height: 42px; border-radius: 10px;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1rem;
  color: var(--saffron-950); flex-shrink: 0;
}
.nav-name {
  font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1rem;
  color: var(--saffron-50); display: none;
}
@media (min-width: 768px) { .nav-name { display: block; } }

.nav-pill {
  display: none; align-items: center; gap: 1.6rem;
  border: 1px solid var(--border); background: rgba(32, 26, 3, 0.45);
  padding: 0.6rem 1.6rem; border-radius: 9999px;
}
@media (min-width: 768px) { .nav-pill { display: flex; } }
.nav-pill .nav-link {
  color: var(--saffron-100); text-decoration: none;
  font-size: 0.88rem; font-weight: 500; transition: color 0.2s, transform 0.2s; white-space: nowrap;
  position: relative;
}
.nav-pill .nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--saffron-500), var(--saffron-300));
  border-radius: 2px;
  transition: width 0.25s ease;
}
.nav-pill .nav-link:hover::after,
.nav-pill .nav-link.active::after { width: 100%; }
.nav-pill .nav-link:hover,
.nav-pill .nav-link.active { color: var(--purple-light); }

.nav-socials { display: none; align-items: center; gap: 1rem; }
@media (min-width: 768px) { .nav-socials { display: flex; } }
.nav-social-icon {
  color: var(--saffron-100); display: flex; align-items: center;
  transition: color 0.2s, transform 0.2s;
}
.nav-social-icon:hover { color: var(--saffron-50); transform: scale(1.12); }

.hamburger {
  display: flex; background: none; border: none;
  color: white; font-size: 1.8rem; cursor: pointer; padding: 4px;
  transition: transform 0.2s;
}
.hamburger.active { transform: rotate(90deg); color: var(--saffron-300); }
@media (min-width: 768px) { .hamburger { display: none; } }

.mobile-menu {
  display: flex;
  position: absolute;
  top: 65px; left: 0; right: 0;
  background: rgba(32, 26, 3, 0.97);
  padding: 1.5rem 2rem;
  flex-direction: column; align-items: center; gap: 1.2rem;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px); z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}
.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.mob-link {
  color: var(--saffron-200); text-decoration: none;
  font-size: 1rem; font-weight: 500; transition: color 0.2s;
}
.mob-link:hover { color: var(--purple-light); }
.mob-socials { display: flex; gap: 1.5rem; margin-top: 0.5rem; }
.mob-socials a { color: var(--saffron-200); transition: color 0.2s; }
.mob-socials a:hover { color: var(--purple-light); }

/* ===== HERO ===== */
.hero-section {
  min-height: 100vh; display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding: 110px 2rem 70px;
  background: transparent;
}
.hero-section::before {
  display: none;
}
.hero-nebula { position: absolute; border-radius: 50%; pointer-events: none; }
.hero-nebula-left {
  top: -15%; left: -10%; width: 55vw; height: 55vw;
  background: radial-gradient(circle, rgba(231, 186, 24, 0.14) 0%, transparent 65%);
  animation: floatNebula 12s ease-in-out infinite;
}
.hero-nebula-right {
  bottom: -15%; right: -10%; width: 45vw; height: 45vw;
  background: radial-gradient(circle, rgba(240, 214, 117, 0.1) 0%, transparent 65%);
  animation: floatNebula 14s ease-in-out infinite reverse;
}
@keyframes floatNebula {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%       { transform: translate(20px, -15px) scale(1.05); }
}
.hero-inner {
  max-width: var(--max-w); margin: 0 auto; width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 3rem;
  position: relative; z-index: 2;
}
.hero-left {
  flex: 1; max-width: 580px;
  display: flex; flex-direction: column; gap: 1.5rem;
  background: linear-gradient(135deg, rgba(46, 37, 5, 0.88), rgba(92, 74, 10, 0.55));
  border: 1px solid rgba(240, 214, 117, 0.18);
  border-radius: 18px;
  padding: 1.2rem 1.2rem 1rem;
  box-shadow: 0 14px 42px rgba(20, 17, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
@media (max-width: 900px) {
  .hero-inner { flex-direction: column; text-align: center; align-items: center; }
  .hero-right { display: none; }
  .hero-left { align-items: center; max-width: 100%; }
  .hero-btns { justify-content: center; }
  .hero-socials { justify-content: center; }
}
.hero-right {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-orbit {
  position: relative;
  width: 280px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(231, 186, 24, 0.35);
}
.orbit-ring-1 {
  width: 100%; height: 100%;
  animation: spinRing 18s linear infinite;
}
.orbit-ring-2 {
  width: 72%; height: 72%;
  animation: spinRing 12s linear infinite reverse;
}
@keyframes spinRing {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.hero-float-card {
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  padding: 1.8rem 2rem;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(231, 186, 24, 0.15), rgba(46, 37, 5, 0.8));
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  animation: floatCard 4s ease-in-out infinite;
}
@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-14px); }
}
.float-icon { font-size: 3rem; }
.float-label {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--saffron-200);
}
.hero-typing {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 600;
  color: var(--saffron-300);
  min-height: 1.6em;
}
.typing-cursor {
  color: var(--saffron-500);
  animation: blinkCursor 0.9s step-end infinite;
  margin-left: 2px;
}
@keyframes blinkCursor {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}
.grad-animate {
  background-size: 200% auto;
  animation: gradShift 4s ease-in-out infinite;
}
@keyframes gradShift {
  0%, 100% { background-position: 0% center; }
  50%       { background-position: 100% center; }
}
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  text-decoration: none;
}
.scroll-hint-dot {
  display: block;
  width: 22px; height: 36px;
  border: 2px solid rgba(231, 186, 24, 0.5);
  border-radius: 12px;
  position: relative;
}
.scroll-hint-dot::after {
  content: '';
  position: absolute;
  top: 6px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  background: var(--saffron-400);
  border-radius: 2px;
  animation: scrollBounce 1.8s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50%       { transform: translateY(10px); opacity: 0.3; }
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--border); padding: 7px 16px; border-radius: 8px;
  font-size: 0.83rem; font-weight: 500; color: var(--purple-light);
  background: rgba(231, 186, 24, 0.08); width: fit-content;
}
.badge-sparkle {
  color: var(--purple-light); font-size: 0.9rem;
  animation: rotateStar 5s linear infinite;
}
@keyframes rotateStar {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.hero-heading {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.6rem, 5.5vw, 4rem);
  font-weight: 800; line-height: 1.15; color: var(--saffron-50);
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.52);
}
.grad-text {
  background: linear-gradient(90deg, var(--saffron-400), var(--saffron-200), var(--saffron-400));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  font-size: 1.05rem; color: var(--saffron-200); line-height: 1.8; max-width: 520px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

.hero-btns { display: flex; flex-wrap: wrap; gap: 1rem; }
.btn-primary-space {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0.8rem 1.8rem; border-radius: 8px;
  font-weight: 600; font-size: 0.95rem; text-decoration: none; color: var(--saffron-950);
  background: linear-gradient(135deg, var(--saffron-500), var(--saffron-300));
  box-shadow: 0 0 20px rgba(231, 186, 24, 0.35);
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s; white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn-primary-space::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  transition: left 0.5s ease;
}
.btn-primary-space:hover::after { left: 140%; }
.btn-primary-space:hover {
  opacity: 0.9; transform: translateY(-2px);
  box-shadow: 0 0 32px rgba(231, 186, 24, 0.5);
}
.btn-lg { padding: 1rem 2.4rem; font-size: 1rem; }
.btn-outline-space {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0.8rem 1.8rem; border-radius: 8px;
  font-weight: 600; font-size: 0.95rem; text-decoration: none; color: white;
  border: 1px solid var(--border); background: transparent;
  transition: background 0.2s, border-color 0.2s, transform 0.2s; white-space: nowrap;
}
.btn-outline-space:hover {
  background: rgba(231, 186, 24, 0.1); border-color: var(--saffron-300); transform: translateY(-2px);
}

.hero-socials { display: flex; gap: 0.8rem; }
.h-social {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--border-sub); background: rgba(255,255,255,0.04);
  display: flex; align-items: center; justify-content: center; color: var(--saffron-200);
  transition: color 0.2s, background 0.2s, border-color 0.2s, transform 0.2s;
}
.h-social:hover {
  color: var(--saffron-950);
  background: linear-gradient(135deg, var(--saffron-500), var(--saffron-300));
  border-color: transparent; transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(231, 186, 24, 0.35);
}

/* ===== SHARED SECTION ===== */
.sp-section { padding: 100px 0; position: relative; background: transparent; }
.sp-glow {
  position: absolute; width: 600px; height: 600px;
  border-radius: 50%; pointer-events: none; top: 50%; transform: translateY(-50%); z-index: 0;
}
.sp-glow-left  { left:  -250px; background: radial-gradient(circle, rgba(231, 186, 24, 0.08) 0%, transparent 65%); }
.sp-glow-right { right: -250px; background: radial-gradient(circle, rgba(240, 214, 117, 0.07) 0%, transparent 65%); }
.sec-tag {
  display: inline-block; font-size: 0.8rem; font-weight: 600;
  color: var(--purple-light); letter-spacing: 0.12em; text-transform: uppercase;
  padding: 4px 14px; border: 1px solid var(--border); border-radius: 9999px;
  background: rgba(231, 186, 24, 0.1); margin-bottom: 0.75rem;
}
.sec-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800;
  color: white; margin-bottom: 3rem;
}

/* ===== ABOUT ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-right { display: flex; justify-content: center; }
}
.about-intro { font-size: 1.15rem; font-weight: 500; color: white; line-height: 1.7; margin-bottom: 1.25rem; }
.about-body   { font-size: 0.98rem; color: var(--text-sec); line-height: 1.8; }
.stats-row    { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-top: 2rem; }
.stat-card {
  background: rgba(231, 186, 24, 0.1); border: 1px solid var(--border);
  border-radius: 12px; padding: 1.1rem 1.4rem; min-width: 100px; text-align: center;
  transition: transform 0.25s, box-shadow 0.25s;
}
.stat-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(231, 186, 24, 0.22); }
.stat-n {
  font-family: 'Outfit', sans-serif; font-size: 1.6rem; font-weight: 800;
  background: linear-gradient(90deg, var(--purple-light), var(--cyan-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-l { font-size: 0.78rem; color: var(--text-sec); margin-top: 4px; }
.avatar-wrap { position: relative; display: inline-flex; align-items: center; justify-content: center; }
.avatar-pulse {
  position: absolute; width: 290px; height: 290px; border-radius: 50%;
  background: radial-gradient(circle, rgba(231, 186, 24, 0.2) 0%, transparent 70%);
  animation: pulsate 3.5s ease-in-out infinite;
}
@keyframes pulsate {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.1); }
}

/* ===== SKILLS ===== */
.skill-group { margin-bottom: 2.5rem; }
.skill-group-title {
  font-family: 'Outfit', sans-serif; font-size: 1.05rem; font-weight: 700;
  color: var(--purple-light); margin-bottom: 1.4rem;
  padding-left: 1rem; border-left: 3px solid var(--purple);
}
.skill-icons { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.skill-chip {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 1.1rem 0.9rem; min-width: 88px;
  background: var(--bg-card); border: 1px solid var(--border-sub); border-radius: 12px;
  transition: transform 0.22s, border-color 0.22s, box-shadow 0.22s; cursor: default;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
}
.skill-chip.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.skill-chip:hover {
  transform: translateY(-7px) scale(1.05);
  border-color: var(--border);
  box-shadow: 0 8px 28px rgba(231, 186, 24, 0.2);
}
.skill-chip:hover i { transform: scale(1.15) rotate(-4deg); }
.skill-chip i {
  font-size: 2.4rem;
  transition: transform 0.25s ease;
}
.skill-chip span { font-size: 0.72rem; font-weight: 500; color: var(--text-sec); text-align: center; }

/* ===== PROJECTS ===== */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.5rem; }
.proj-card {
  background: var(--bg-card); border: 1px solid var(--border-sub);
  border-radius: 16px; overflow: hidden;
  transition: transform 0.35s ease, border-color 0.3s, box-shadow 0.3s;
  transform-style: preserve-3d;
  will-change: transform;
}
.proj-card:hover {
  border-color: var(--border);
  box-shadow: 0 16px 48px rgba(231, 186, 24, 0.24);
}
.proj-card:hover .proj-emoji { transform: scale(1.15) rotate(-6deg); }
.proj-header {
  height: 170px; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--border-sub);
}
.proj-hdr-purple { background: linear-gradient(135deg, rgba(231, 186, 24, 0.18), rgba(240, 214, 117, 0.08)); }
.proj-hdr-cyan   { background: linear-gradient(135deg, rgba(240, 214, 117, 0.14), rgba(185, 149, 19, 0.08)); }
.proj-hdr-violet { background: linear-gradient(135deg, rgba(236, 200, 70, 0.16), rgba(231, 186, 24, 0.1)); }
.proj-emoji {
  font-size: 3.5rem; position: relative; z-index: 2; pointer-events: none;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
  transition: transform 0.35s ease;
}
.proj-body  { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.7rem; }
.proj-title { font-family: 'Outfit', sans-serif; font-size: 1.1rem; font-weight: 700; color: white; }
.proj-desc  { font-size: 0.88rem; color: var(--text-sec); line-height: 1.7; }
.proj-tags  { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.proj-tags span {
  font-size: 0.72rem; font-weight: 600; padding: 3px 10px; border-radius: 9999px;
  background: rgba(231, 186, 24, 0.16); color: var(--saffron-300);
  border: 1px solid rgba(231, 186, 24, 0.28);
}
.proj-link {
  color: var(--cyan); text-decoration: none; font-size: 0.88rem; font-weight: 600;
  margin-top: 0.4rem; display: inline-flex; align-items: center; gap: 4px; transition: color 0.2s;
}
.proj-link:hover { color: var(--cyan-light); }

/* ===== TIMELINE ===== */
.timeline { display: flex; flex-direction: column; max-width: 720px; position: relative; }
.timeline::before {
  content: ''; position: absolute; left: 9px; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(to bottom, var(--purple), var(--cyan), transparent);
}
.tl-item { display: flex; gap: 2rem; padding-bottom: 2.5rem; position: relative; }
.tl-dot {
  flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  box-shadow: 0 0 12px rgba(231, 186, 24, 0.5); margin-top: 4px; z-index: 1;
}
.tl-card {
  background: var(--bg-card); border: 1px solid var(--border-sub);
  border-radius: 12px; padding: 1.4rem; flex: 1;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.tl-card:hover { border-color: var(--border); box-shadow: 0 8px 24px rgba(231, 186, 24, 0.18); }
.tl-date { font-size: 0.78rem; font-weight: 600; color: var(--purple-light); letter-spacing: 0.04em; }
.tl-role { font-family: 'Outfit', sans-serif; font-size: 1.1rem; font-weight: 700; color: white; margin: 0.4rem 0 0.2rem; }
.tl-org  { font-size: 0.88rem; font-weight: 600; color: var(--cyan); margin-bottom: 0.7rem; }
.tl-desc { font-size: 0.88rem; color: var(--text-sec); line-height: 1.75; }

/* ===== CONTACT ===== */
.contact-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.4rem; margin-bottom: 3rem;
}
.contact-card {
  background: var(--bg-card); border: 1px solid var(--border-sub);
  border-radius: 16px; padding: 2rem 1.5rem; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 0.7rem;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.contact-card:hover {
  transform: translateY(-6px); border-color: var(--border);
  box-shadow: 0 12px 36px rgba(231, 186, 24, 0.2);
}
.contact-ico {
  width: 54px; height: 54px; border-radius: 50%;
  background: rgba(231, 186, 24, 0.16); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
}
.contact-card h3 { font-family: 'Outfit', sans-serif; font-size: 1rem; font-weight: 700; color: white; }
.contact-card a,
.contact-card p  { font-size: 0.88rem; color: var(--text-sec); text-decoration: none; transition: color 0.2s; }
.contact-card a:hover { color: var(--cyan); }
.contact-cta { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.contact-cta > p { font-size: 1rem; color: var(--text-sec); }

/* ===== FOOTER ===== */
.sp-footer {
  background: rgba(32, 26, 3, 0.9); border-top: 1px solid var(--border-sub);
  padding: 3rem 2rem 1.5rem; position: relative; z-index: 1;
}
.footer-wrap { max-width: var(--max-w); margin: 0 auto; }
.footer-cols { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 2rem; margin-bottom: 2rem; }
.footer-col  { display: flex; flex-direction: column; gap: 1rem; min-width: 150px; }
.footer-col h4 { font-family: 'Outfit', sans-serif; font-size: 0.95rem; font-weight: 700; color: white; }
.footer-col a {
  display: flex; align-items: center; gap: 8px; text-decoration: none;
  color: var(--text-sec); font-size: 0.88rem; transition: color 0.2s;
}
.footer-col a:hover { color: var(--purple-light); }
.footer-bottom {
  text-align: center; color: var(--text-dim); font-size: 0.82rem;
  padding-top: 1.5rem; border-top: 1px solid var(--border-sub);
}

/* ===== SCROLL ANIMATIONS ===== */
.anim-left  { opacity: 0; transform: translateX(-40px); transition: opacity 0.75s ease-out, transform 0.75s ease-out; }
.anim-right { opacity: 0; transform: translateX(40px);  transition: opacity 0.75s ease-out, transform 0.75s ease-out; }
.anim-up    { opacity: 0; transform: translateY(36px);  transition: opacity 0.65s ease-out, transform 0.65s ease-out; }
.anim-left.visible,
.anim-right.visible,
.anim-up.visible { opacity: 1; transform: translate(0, 0); }

/* ===== SCROLL PROGRESS ===== */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  z-index: 10001;
  background: linear-gradient(90deg, var(--saffron-600), var(--saffron-300));
  box-shadow: 0 0 12px rgba(231, 186, 24, 0.6);
  transition: width 0.08s linear;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 1000;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(32, 26, 3, 0.9);
  color: var(--saffron-300);
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background 0.2s;
  backdrop-filter: blur(8px);
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: linear-gradient(135deg, var(--saffron-500), var(--saffron-300));
  color: var(--saffron-950);
}

/* ===== TIMELINE ANIMATION ===== */
.tl-dot { transition: transform 0.3s, box-shadow 0.3s; }
.tl-item.visible .tl-dot {
  animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 12px rgba(231, 186, 24, 0.5); }
  50%       { box-shadow: 0 0 22px rgba(231, 186, 24, 0.9); transform: scale(1.15); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .container { padding: 0 1.5rem; }
  .sp-section { padding: 80px 0; }
  .navbar { padding: 0 1.5rem; }
}

@media (max-width: 768px) {
  .container { padding: 0 1.25rem; }
  .sp-section { padding: 70px 0; }
  .sec-title { margin-bottom: 2rem; }
  .hero-section { padding: 100px 1.25rem 60px; min-height: auto; }
  .hero-left { padding: 1.5rem 1.25rem; }
  .hero-heading { font-size: clamp(2rem, 8vw, 2.8rem); }
  .hero-desc { font-size: 0.95rem; }
  .btn-primary-space, .btn-outline-space {
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1.4rem;
  }
  .stats-row { justify-content: center; }
  .stat-card { flex: 1; min-width: 90px; }
  .avatar-wrap svg { width: 200px; height: 200px; }
  .avatar-pulse { width: 220px; height: 220px; }
  .skill-chip { min-width: calc(33% - 0.6rem); flex: 1; }
  .projects-grid { grid-template-columns: 1fr; }
  .tl-item { gap: 1.2rem; }
  .footer-cols { flex-direction: column; align-items: center; text-align: center; }
  .scroll-hint { display: none; }
}

@media (max-width: 480px) {
  .navbar { padding: 0 1rem; }
  .hero-btns { flex-direction: column; width: 100%; }
  .skill-chip { min-width: calc(50% - 0.5rem); }
  .contact-cards { grid-template-columns: 1fr; }
  .stat-card { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .anim-left, .anim-right, .anim-up, .skill-chip {
    opacity: 1;
    transform: none;
  }
}

/* ================================================
   LIGHT THEME  (active only when <body> has the
   .light-mode class — toggled by the theme button)
================================================ */
body.light-mode {
  --bg:           var(--saffron-50);
  --bg-card:      rgba(255, 255, 255, 0.72);
  --border:       rgba(185, 149, 19, 0.40);
  --border-sub:   rgba(140, 112, 15, 0.16);
  --text:         #2b2205;
  --text-sec:     #6a5610;
  --text-dim:     #8a700f;

  --purple:       var(--saffron-600);
  --purple-mid:   var(--saffron-500);
  --purple-light: var(--saffron-700);
  --purple-dark:  var(--saffron-300);
  --cyan:         var(--saffron-700);
  --cyan-light:   var(--saffron-600);

  background: radial-gradient(circle at 18% 0%, #fffdf5 0%, var(--saffron-50) 42%, var(--saffron-100) 100%);
  color: var(--text);
}

/* Navbar / nav */
body.light-mode .navbar          { background: rgba(253, 248, 232, 0.78); box-shadow: 0 2px 24px rgba(140, 112, 15, 0.14); }
body.light-mode .navbar.scrolled { background: rgba(253, 248, 232, 0.95); box-shadow: 0 4px 30px rgba(185, 149, 19, 0.18); }
body.light-mode .nav-pill        { background: rgba(255, 255, 255, 0.6); }
body.light-mode .nav-name        { color: var(--saffron-900); }
body.light-mode .nav-pill .nav-link  { color: var(--saffron-800); }
body.light-mode .nav-social-icon     { color: var(--saffron-700); }
body.light-mode .nav-social-icon:hover { color: var(--saffron-900); }
body.light-mode .hamburger       { color: var(--saffron-800); }
body.light-mode .mobile-menu     { background: rgba(253, 248, 232, 0.98); }
body.light-mode .mob-link,
body.light-mode .mob-socials a   { color: var(--saffron-800); }

/* Hero */
body.light-mode .hero-left {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(250, 241, 209, 0.7));
  border-color: rgba(185, 149, 19, 0.25);
  box-shadow: 0 14px 42px rgba(140, 112, 15, 0.18);
}
body.light-mode .hero-heading { color: var(--saffron-900); text-shadow: none; }
body.light-mode .hero-desc    { color: var(--saffron-800); text-shadow: none; }
body.light-mode .hero-typing  { color: var(--saffron-700); }
body.light-mode .grad-text {
  background: linear-gradient(90deg, var(--saffron-600), var(--saffron-800), var(--saffron-600));
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
body.light-mode .btn-outline-space { color: var(--saffron-800); }
body.light-mode .hero-float-card {
  background: linear-gradient(135deg, rgba(231, 186, 24, 0.28), rgba(255, 255, 255, 0.85));
  box-shadow: 0 20px 50px rgba(140, 112, 15, 0.22);
}
body.light-mode .float-label { color: var(--saffron-800); }
body.light-mode .h-social    { background: rgba(255, 255, 255, 0.6); color: var(--saffron-700); }

/* Section headings / cards */
body.light-mode .sec-title    { color: var(--saffron-900); }
body.light-mode .about-intro  { color: var(--saffron-900); }
body.light-mode .proj-title   { color: var(--saffron-900); }
body.light-mode .tl-role      { color: var(--saffron-900); }
body.light-mode .contact-card h3 { color: var(--saffron-900); }
body.light-mode .footer-col h4   { color: var(--saffron-900); }

/* Footer / back-to-top */
body.light-mode .sp-footer    { background: rgba(250, 241, 209, 0.7); }
body.light-mode .back-to-top  { background: rgba(255, 255, 255, 0.88); color: var(--saffron-700); }

/* ===== THEME TOGGLE BUTTON ===== */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(231, 186, 24, 0.10);
  color: var(--saffron-300);
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.2s, background 0.2s, border-color 0.2s, transform 0.2s;
}
.theme-toggle:hover {
  transform: translateY(-2px) rotate(12deg);
  border-color: var(--saffron-300);
  background: rgba(231, 186, 24, 0.18);
}
body.light-mode .theme-toggle {
  color: var(--saffron-700);
  background: rgba(255, 255, 255, 0.6);
}
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }
body.light-mode .theme-toggle .icon-sun  { display: block; }
body.light-mode .theme-toggle .icon-moon { display: none; }

/* ================================================
   GLASSMORPHISM  (frosted-glass surfaces, both themes)
================================================ */

/* --- blur on every glass surface --- */
.navbar,
.mobile-menu,
.nav-pill,
.hero-left,
.hero-badge,
.hero-float-card,
.h-social,
.theme-toggle,
.sec-tag,
.stat-card,
.skill-chip,
.proj-card,
.tl-card,
.contact-card,
.contact-ico,
.sp-footer,
.back-to-top {
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
}

/* stronger blur for the large hero panel + bars */
.navbar,
.hero-left,
.mobile-menu {
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
}

/* --- DARK theme glass fills / edges --- */
.navbar        { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.nav-pill,
.hero-badge,
.sec-tag,
.theme-toggle,
.h-social      {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.stat-card,
.skill-chip,
.proj-card,
.tl-card,
.contact-card,
.contact-ico {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.hero-left {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.hero-float-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.sp-footer { background: rgba(255, 255, 255, 0.04); border-top: 1px solid rgba(255, 255, 255, 0.08); }

/* --- LIGHT theme glass fills / edges --- */
body.light-mode .navbar { border-bottom: 1px solid rgba(255, 255, 255, 0.55); }
body.light-mode .nav-pill,
body.light-mode .hero-badge,
body.light-mode .sec-tag,
body.light-mode .theme-toggle,
body.light-mode .h-social {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.7);
}
body.light-mode .stat-card,
body.light-mode .skill-chip,
body.light-mode .proj-card,
body.light-mode .tl-card,
body.light-mode .contact-card,
body.light-mode .contact-ico {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 8px 30px rgba(140, 112, 15, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
body.light-mode .hero-left {
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 20px 50px rgba(140, 112, 15, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}
body.light-mode .hero-float-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.45));
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 20px 50px rgba(140, 112, 15, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}
body.light-mode .sp-footer { background: rgba(255, 255, 255, 0.42); border-top: 1px solid rgba(255, 255, 255, 0.6); }

/* ================================================
   BEAUTY PASS
   Aurora backdrop, animated gradient borders,
   richer motion, section numbers, focus states
================================================ */

/* ---- Aurora backdrop (drifts slowly, follows accent color) ---- */
.aurora {
  position: fixed; inset: -20% -12% -12% -12%;
  z-index: 0; pointer-events: none; overflow: hidden;
  filter: blur(70px);
}
.aurora span {
  position: absolute; display: block; border-radius: 50%;
  mix-blend-mode: screen; opacity: 0.55;
}
.aurora .a1 {
  width: 46vw; height: 46vw; top: -8%; left: -6%;
  background: radial-gradient(circle, color-mix(in srgb, var(--saffron-500) 60%, transparent), transparent 70%);
  animation: auroraDrift1 20s ease-in-out infinite;
}
.aurora .a2 {
  width: 40vw; height: 40vw; bottom: -12%; right: -6%;
  background: radial-gradient(circle, color-mix(in srgb, var(--saffron-300) 55%, transparent), transparent 70%);
  animation: auroraDrift2 24s ease-in-out infinite;
}
.aurora .a3 {
  width: 34vw; height: 34vw; top: 42%; left: 46%;
  background: radial-gradient(circle, color-mix(in srgb, var(--saffron-600) 50%, transparent), transparent 70%);
  animation: auroraDrift3 28s ease-in-out infinite;
}
@keyframes auroraDrift1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(6vw,4vw) scale(1.12); } }
@keyframes auroraDrift2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-5vw,-3vw) scale(1.1); } }
@keyframes auroraDrift3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-4vw,5vw) scale(1.15); } }
body.light-mode .aurora span { mix-blend-mode: multiply; opacity: 0.4; }

/* ---- Animated conic gradient border (hero + featured project) ---- */
@property --angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.hero-left::after,
.proj-card.featured::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  padding: 1.5px; pointer-events: none; z-index: 3;
  background: conic-gradient(from var(--angle),
    transparent 0deg, var(--saffron-400) 60deg,
    var(--saffron-200) 110deg, transparent 200deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spinBorder 6s linear infinite;
  opacity: 0.9;
}
@keyframes spinBorder { to { --angle: 360deg; } }

/* ---- Headings: tighter, more designed ---- */
.hero-heading { letter-spacing: -0.02em; }
.sec-title    { letter-spacing: -0.015em; }

/* ---- Section numbers (01 — About me) via counter ---- */
body { counter-reset: section; }
.sp-section { counter-increment: section; }
.sp-section .sec-tag::before {
  content: counter(section, decimal-leading-zero) "  \2014  ";
  color: var(--saffron-500); font-weight: 700; opacity: 0.85;
}

/* ---- Skill icons: mono at rest, brand color on hover ---- */
.skill-chip i { filter: grayscale(0.85) opacity(0.9); transition: filter 0.25s ease, transform 0.25s ease; }
.skill-chip:hover i { filter: grayscale(0) opacity(1); }

/* ---- Featured project spotlight ---- */
.proj-card.featured { grid-column: 1 / -1; }
@media (min-width: 760px) {
  .proj-card.featured { display: grid; grid-template-columns: 320px 1fr; align-items: stretch; }
  .proj-card.featured .proj-header { height: 100%; min-height: 230px; border-bottom: none; border-right: 1px solid var(--border-sub); }
}
.proj-card.featured .proj-emoji { font-size: 4.6rem; }
.proj-card.featured .proj-title { font-size: 1.5rem; }
.proj-card.featured .proj-desc  { font-size: 0.95rem; }

/* ---- Richer scroll reveal (adds subtle scale + blur-in) ---- */
.anim-left, .anim-right, .anim-up {
  transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.75s ease;
}
.anim-up  { transform: translateY(36px) scale(0.98); filter: blur(6px); }
.anim-up.visible { transform: translateY(0) scale(1); filter: blur(0); }

/* ---- Keyboard focus visibility ---- */
a:focus-visible,
button:focus-visible,
.btn-primary-space:focus-visible,
.btn-outline-space:focus-visible,
.theme-toggle:focus-visible,
.nav-pill .nav-link:focus-visible {
  outline: 2px solid var(--saffron-400);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---- Light-mode contrast fix for project tags ---- */
body.light-mode .proj-tags span {
  color: var(--saffron-800);
  background: rgba(231, 186, 24, 0.18);
  border-color: rgba(185, 149, 19, 0.42);
}

@media (prefers-reduced-motion: reduce) {
  .aurora span,
  .hero-left::after,
  .proj-card.featured::after { animation: none !important; }
  .anim-up { filter: none; }
}

/* ---- Profile photo (hero) ---- */
.hero-photo {
  position: relative; z-index: 2;
  width: 240px; height: 240px; border-radius: 50%;
  padding: 5px;
  background: linear-gradient(135deg, var(--saffron-400), var(--saffron-200));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45), 0 0 60px rgba(231, 186, 24, 0.25);
  animation: floatCard 5s ease-in-out infinite;
}
.hero-photo img {
  width: 100%; height: 100%; border-radius: 50%;
  object-fit: cover; object-position: 50% 22%;
  display: block; background: var(--saffron-900);
}
.hero-float-badge {
  position: absolute; bottom: 4px; right: -6px;
  z-index: 4; padding: 0.7rem 0.9rem; gap: 0.4rem;
  flex-direction: row; align-items: center;
  animation: none;
}
.hero-float-badge .float-icon { font-size: 1.3rem; }
.hero-float-badge .float-label { font-size: 0.8rem; }
@media (max-width: 480px) {
  .hero-photo { width: 190px; height: 190px; }
}

/* ---- Profile photo (about) ---- */
.avatar-photo {
  position: relative; z-index: 2;
  width: 260px; height: 260px; border-radius: 50%;
  padding: 5px;
  background: linear-gradient(135deg, var(--saffron-400), var(--saffron-200));
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.4), 0 0 50px rgba(231, 186, 24, 0.22);
}
.avatar-photo img {
  width: 100%; height: 100%; border-radius: 50%;
  object-fit: cover; object-position: 50% 20%;
  display: block; background: var(--saffron-900);
}
@media (max-width: 768px) {
  .avatar-photo { width: 210px; height: 210px; }
}
