/* ============================================
   MOHIT MOHATKAR — PREMIUM PORTFOLIO STYLES
   ============================================ */

/* ---- Space Canvas (background) ---- */
#space-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
}

/* ---- Cursor Glow Orb ---- */
.cursor-orb {
  position: fixed;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(circle at center,
    rgba(139, 92, 246, 0.18) 0%,
    rgba(34, 211, 238, 0.07) 45%,
    transparent 70%
  );
  filter: blur(8px);
  mix-blend-mode: screen;
  will-change: left, top;
}

[data-theme="light"] .cursor-orb {
  background: radial-gradient(circle at center,
    rgba(124, 58, 237, 0.14) 0%,
    rgba(8, 145, 178, 0.06) 45%,
    transparent 70%
  );
}

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;500;700;800&display=swap');

/* ---- CSS Custom Properties / Themes ---- */
:root {
  /* Dark Mode (Default) */
  --bg-primary:    #0c0c18;
  --bg-secondary:  rgba(15, 15, 36, 0.68);
  --bg-card:       rgba(10, 10, 28, 0.72);
  --bg-nav:        rgba(8, 8, 20, 0.88);
  --text-primary:  #e8e8f8;
  --text-secondary:#9494b8;
  --text-muted:    #5c5c8a;
  --accent-violet: #8b5cf6;
  --accent-violet-light: #a78bfa;
  --accent-cyan:   #22d3ee;
  --accent-warm:   #fbbf24;
  --accent-green:  #34d399;
  --gradient:      linear-gradient(135deg, #8b5cf6 0%, #22d3ee 100%);
  --gradient-warm: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  --border:        rgba(139, 92, 246, 0.20);
  --border-hover:  rgba(139, 92, 246, 0.52);
  --shadow-sm:     0 2px 12px rgba(0,0,0,0.35);
  --shadow-md:     0 8px 32px rgba(0,0,0,0.50);
  --shadow-lg:     0 16px 64px rgba(0,0,0,0.60);
  --glow:          0 0 32px rgba(139,92,246,0.24);
  --glow-cyan:     0 0 32px rgba(34,211,238,0.16);
  --radius-sm:     8px;
  --radius-md:     14px;
  --radius-lg:     20px;
  --radius-xl:     28px;
  --ease:          cubic-bezier(0.4, 0, 0.2, 1);
  --speed:         0.3s;
}

[data-theme="light"] {
  --bg-primary:    #eeeeff;
  --bg-secondary:  rgba(235, 235, 255, 0.75);
  --bg-card:       rgba(255, 255, 255, 0.82);
  --bg-nav:        rgba(225, 225, 255, 0.90);
  --text-primary:  #1a1a2e;
  --text-secondary:#555575;
  --text-muted:    #9898b8;
  --accent-violet: #7c3aed;
  --accent-violet-light: #8b5cf6;
  --accent-cyan:   #0891b2;
  --accent-warm:   #d97706;
  --accent-green:  #059669;
  --gradient:      linear-gradient(135deg, #7c3aed 0%, #0891b2 100%);
  --gradient-warm: linear-gradient(135deg, #d97706 0%, #dc2626 100%);
  --border:        rgba(124, 58, 237, 0.18);
  --border-hover:  rgba(124, 58, 237, 0.46);
  --shadow-sm:     0 2px 12px rgba(0,0,0,0.10);
  --shadow-md:     0 8px 32px rgba(0,0,0,0.14);
  --shadow-lg:     0 16px 64px rgba(0,0,0,0.18);
  --glow:          0 0 32px rgba(124,58,237,0.16);
  --glow-cyan:     0 0 32px rgba(8,145,178,0.12);
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.72;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color var(--speed) var(--ease), color var(--speed) var(--ease);
}

/* ---- Typography ---- */
h1 { font-family: 'Outfit', sans-serif; font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.1; }
h2 { font-family: 'Outfit', sans-serif; font-size: clamp(1.3rem, 3vw, 1.8rem); font-weight: 700; line-height: 1.2; }
h3 { font-family: 'Inter', sans-serif; font-size: 1.05rem; font-weight: 600; }
a  { color: var(--accent-cyan); text-decoration: none; transition: color var(--speed) var(--ease); }
a:hover { color: var(--accent-violet-light); }

/* ---- Navbar ---- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  background: var(--bg-nav);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: background var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}

.nav-brand {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
}

.nav-links a {
  color: #60a5fa;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-sm);
  transition: all var(--speed) var(--ease);
  position: relative;
}

.nav-links a:hover {
  color: #93c5fd;
  background: rgba(96, 165, 250, 0.1);
}

.nav-links a.active {
  color: #fb923c;
  background: rgba(251, 146, 60, 0.1);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 2px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(251, 146, 60, 0.7);
}

/* Nav Right + Toggle */
.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.theme-toggle {
  position: relative;
  width: 60px;
  height: 30px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--speed) var(--ease);
  display: flex;
  align-items: center;
  padding: 3px;
  overflow: hidden;
}

.theme-toggle:hover { border-color: var(--accent-violet); box-shadow: var(--glow); }

.toggle-track {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 7px;
  font-size: 11px;
  pointer-events: none;
}

.toggle-ball {
  position: absolute;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gradient);
  transition: transform 0.35s var(--ease);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

[data-theme="light"] .toggle-ball { transform: translateX(30px); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--speed) var(--ease);
  display: block;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ---- Page Wrapper ---- */
.page-wrapper {
  position: relative;
  z-index: 3;
  padding-top: 64px;
}

/* ---- Hero Header (Index) ---- */
.hero-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 4.5rem 2rem 3rem;
}

.profile-pic-wrap {
  position: relative;
  margin-bottom: 1.5rem;
  display: inline-block;
}

.profile-ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px dashed rgba(139,92,246,0.45);
  animation: spin 14s linear infinite;
}

.profile-ring-2 {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  border: 1px dashed rgba(34,211,238,0.22);
  animation: spin 22s linear infinite reverse;
}

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

.profile-pic {
  width: 135px;
  height: 135px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--accent-violet), var(--shadow-md), var(--glow);
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
  display: block;
}

.profile-pic:hover {
  transform: scale(1.06);
  box-shadow: 0 0 0 4px var(--accent-violet), var(--shadow-lg), 0 0 40px rgba(139,92,246,0.45);
}

.hero-name {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.hero-tagline {
  color: var(--text-secondary);
  font-size: 0.92rem;
  letter-spacing: 0.2px;
}

.hero-tagline a { color: var(--accent-cyan); }

.hero-divider {
  width: 72px;
  height: 3px;
  background: var(--gradient);
  border-radius: 2px;
  margin: 1.5rem auto 0;
}

/* ---- Page Header (sub-pages) ---- */
.page-header {
  padding: 3.5rem 2rem 2rem;
  text-align: center;
}

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

.page-header p { color: var(--text-secondary); margin-top: 0.5rem; font-size: 0.93rem; }

.page-divider {
  width: 60px;
  height: 3px;
  background: var(--gradient);
  border-radius: 2px;
  margin: 1rem auto 0;
}

/* ---- Container ---- */
.container {
  max-width: 880px;
  margin: 0 auto;
  padding: 2rem 1.5rem 5rem;
  position: relative;
  z-index: 1;
}

/* ---- Card ---- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
  transform-style: preserve-3d;
  will-change: transform;
  transition: box-shadow var(--speed) var(--ease),
              border-color var(--speed) var(--ease),
              transform 0.15s ease;
}

.card:hover {
  box-shadow: var(--shadow-md), var(--glow);
  border-color: var(--border-hover);
}

/* ---- Section Labels ---- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent-violet-light);
  margin-bottom: 0.5rem;
}

.section-label::before {
  content: '';
  width: 18px;
  height: 2px;
  background: var(--gradient);
  border-radius: 2px;
  flex-shrink: 0;
}

.section-title { color: var(--text-primary); margin-bottom: 1rem; }

/* ---- Skills ---- */
.skills-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.2rem; }

.skill-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.32rem 0.82rem;
  border-radius: 50px;
  font-size: 0.79rem;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  cursor: default;
  transition: all var(--speed) var(--ease);
}

.skill-tag:hover {
  border-color: var(--accent-violet);
  color: var(--accent-violet-light);
  background: rgba(139,92,246,0.12);
  transform: translateY(-2px);
  box-shadow: var(--glow);
}

/* ---- Timeline (Education) ---- */
.timeline { position: relative; padding-left: 1.5rem; margin-top: 1.5rem; }

.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 8px; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-violet), var(--accent-cyan), transparent 92%);
  border-radius: 2px;
}

.timeline-item { position: relative; padding-bottom: 2.5rem; }
.timeline-item:last-child { padding-bottom: 0.5rem; }

.timeline-dot {
  position: absolute;
  left: -1.88rem;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gradient);
  box-shadow: 0 0 10px rgba(139,92,246,0.6);
  border: 2px solid var(--bg-primary);
}

.timeline-edu {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  transition: all var(--speed) var(--ease);
}

.timeline-edu:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-sm), var(--glow);
  transform: translateX(4px);
}

.edu-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  padding: 4px;
  flex-shrink: 0;
}

.edu-info h3 { color: var(--text-primary); margin-bottom: 0.3rem; font-size: 1rem; }
.edu-info p  { color: var(--text-secondary); font-size: 0.87rem; margin-bottom: 0.15rem; }

.edu-badge {
  display: inline-block;
  padding: 0.18rem 0.65rem;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 600;
  margin-top: 0.5rem;
  letter-spacing: 0.3px;
}

.edu-badge.active { background: rgba(34,211,238,0.12); color: var(--accent-cyan); border: 1px solid rgba(34,211,238,0.3); }
.edu-badge.done   { background: rgba(52,211,153,0.10); color: var(--accent-green); border: 1px solid rgba(52,211,153,0.25); }

/* ---- Experience Items ---- */
.exp-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  margin-bottom: 1rem;
  transition: all var(--speed) var(--ease);
}

.exp-item:hover { border-color: var(--border-hover); box-shadow: var(--glow); }

.exp-item-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }

.exp-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.exp-item h3 { color: var(--text-primary); }

.exp-item ul { list-style: none; padding: 0; margin-top: 0.25rem; }

.exp-item ul li {
  color: var(--text-secondary);
  font-size: 0.88rem;
  padding: 0.28rem 0 0.28rem 1.25rem;
  position: relative;
  line-height: 1.6;
}

.exp-item ul li::before { content: '▸'; position: absolute; left: 0; color: var(--accent-violet-light); }

/* ---- Projects Grid ---- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 1.25rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
  transition: all var(--speed) var(--ease);
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--speed) var(--ease);
}

.project-card:hover::before { transform: scaleX(1); }

.project-card:hover {
  box-shadow: var(--shadow-md), var(--glow);
  border-color: var(--border-hover);
  transform: translateY(-5px);
}

.project-emoji { font-size: 2.2rem; margin-bottom: 0.85rem; display: block; }
.project-card h3 { color: var(--text-primary); margin-bottom: 0.5rem; }
.project-card p  { color: var(--text-secondary); font-size: 0.86rem; line-height: 1.65; }

.project-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 1rem; }

.project-tag {
  padding: 0.2rem 0.62rem;
  border-radius: 50px;
  font-size: 0.71rem;
  font-weight: 600;
  background: rgba(139,92,246,0.12);
  color: var(--accent-violet-light);
  border: 1px solid rgba(139,92,246,0.22);
}

.project-card.dashed {
  border-style: dashed;
  background: var(--bg-secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 200px;
}

/* ---- Contact ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.contact-link-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.2rem;
  text-decoration: none;
  transition: all var(--speed) var(--ease);
}

.contact-link-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-sm), var(--glow);
  transform: translateY(-3px);
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.ci-email   { background: rgba(251,191,36,0.14); }
.ci-college { background: rgba(52,211,153,0.12); }
.ci-linkedin{ background: rgba(34,211,238,0.12); }
.ci-gram    { background: rgba(139,92,246,0.12); }

.contact-text span {
  display: block;
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.15rem;
}

.contact-text strong { font-size: 0.84rem; color: var(--text-primary); font-weight: 500; }

/* ---- Form ---- */
.form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.1rem; }

.form-group label { font-size: 0.8rem; font-weight: 600; color: var(--text-secondary); letter-spacing: 0.3px; }

.form-group input,
.form-group textarea {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.72rem 1rem;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  transition: all var(--speed) var(--ease);
  width: 100%;
  resize: vertical;
  appearance: none;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-violet);
  box-shadow: 0 0 0 3px rgba(139,92,246,0.20);
  background: rgba(8, 8, 22, 0.9);
}

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

/* ---- Buttons ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.78rem 1.9rem;
  background: var(--gradient);
  border: none;
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--speed) var(--ease);
  letter-spacing: 0.2px;
  text-decoration: none;
}

.btn-primary:hover {
  opacity: 0.88;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(139,92,246,0.45);
  color: #fff;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.72rem 1.6rem;
  background: transparent;
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-sm);
  color: var(--accent-violet-light);
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--speed) var(--ease);
  text-decoration: none;
}

.btn-outline:hover {
  background: rgba(139,92,246,0.12);
  color: var(--accent-violet-light);
  box-shadow: var(--glow);
}

/* ---- Stats Row ---- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.stat-box {
  text-align: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.1rem 0.75rem;
  transition: all var(--speed) var(--ease);
}

.stat-box:hover { border-color: var(--border-hover); box-shadow: var(--glow); }

.stat-number {
  font-family: 'Outfit', sans-serif;
  font-size: 1.9rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
}

/* ---- CTA Card ---- */
.cta-card { text-align: center; padding: 2.5rem 2rem; }
.cta-card .cta-icon { font-size: 3rem; margin-bottom: 1rem; display: block; }
.cta-card h3 { color: var(--text-primary); margin-bottom: 0.5rem; font-size: 1.2rem; }
.cta-card p  { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 1.25rem; }
.cta-btns    { display: flex; align-items: center; justify-content: center; gap: 0.75rem; flex-wrap: wrap; }

/* ---- Animations ---- */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  animation: fadeUp 0.75s var(--ease) forwards;
}

.delay-1 { animation-delay: 0.12s; }
.delay-2 { animation-delay: 0.24s; }
.delay-3 { animation-delay: 0.36s; }
.delay-4 { animation-delay: 0.48s; }

@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* ---- Footer ---- */
footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

footer .grad-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--accent-violet); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-violet-light); }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--bg-nav);
    backdrop-filter: blur(28px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 0.75rem 1rem 1rem;
    gap: 0.2rem;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: 0.6rem 1rem; }
  .hamburger { display: flex; }
  .contact-grid, .projects-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .navbar { padding: 0 1.25rem; }
  .cursor-orb { display: none; } /* hide on mobile */
}

@media (max-width: 480px) {
  .container { padding: 1.5rem 1rem 4rem; }
  .card { padding: 1.35rem; }
  .timeline-edu { flex-direction: column; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .cta-btns { flex-direction: column; }
  .hero-header { padding: 3.5rem 1.25rem 2.5rem; }
}
