/* ============================
   DESIGN TOKENS
   ============================ */
:root {
  --bg-primary: #080C14;
  --bg-secondary: #0D1220;
  --bg-card: rgba(255, 255, 255, 0.04);
  --accent: #00D4FF;
  --accent-2: #8B5CF6;
  --accent-glow: rgba(0, 212, 255, 0.15);
  --text-primary: #E8EAF0;
  --text-muted: #7A8299;
  --border: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(0, 212, 255, 0.3);
  --glass-bg: rgba(13, 18, 32, 0.6);
  --glass-blur: blur(16px);
  --radius: 16px;
  --radius-sm: 8px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 40px rgba(0, 212, 255, 0.12);
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

body.light-mode {
  --bg-primary: #F0F4F8;
  --bg-secondary: #FFFFFF;
  --bg-card: rgba(255, 255, 255, 0.7);
  --accent: #0277BD; 
  --accent-2: #6D28D9; 
  --accent-glow: rgba(2, 119, 189, 0.1);
  --text-primary: #1E293B;
  --text-muted: #475569;
  --border: rgba(0, 0, 0, 0.1);
  --border-hover: rgba(2, 119, 189, 0.3);
  --glass-bg: rgba(255, 255, 255, 0.65);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
  --shadow-glow: 0 0 40px rgba(2, 119, 189, 0.15);
}

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

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg-primary);
  background: radial-gradient(circle at top left, #0b1426, var(--bg-primary) 60%);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

body.light-mode {
  background: var(--bg-primary); /* Remove radial dark glow in light mode */
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: rgba(0, 212, 255, 0.3); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0, 212, 255, 0.6); }

#bg-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  position: relative;
  z-index: 1;
  padding: 100px 0;
}

.accent { color: var(--accent); }

/* ============================
   BUTTONS
   ============================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 4px 24px rgba(0, 212, 255, 0.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 212, 255, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn-outline:hover {
  background: var(--accent-glow);
  transform: translateY(-2px);
}

.btn-ghost {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1.5px solid var(--border);
  backdrop-filter: var(--glass-blur);
}
.btn-ghost:hover {
  border-color: var(--border-hover);
  background: rgba(0, 212, 255, 0.06);
  transform: translateY(-2px);
}

.btn-sm { padding: 8px 18px; font-size: 0.85rem; border-radius: 30px; }
.w-full { width: 100%; justify-content: center; }

/* ============================
   GLASS CARD
   ============================ */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: -100%; left: -100%;
  width: 300%; height: 300%;
  background: conic-gradient(transparent, rgba(0, 212, 255, 0.4), transparent 30%);
  animation: rotateGlow 4s linear infinite;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.glass-card:hover::before { opacity: 1; }

.glass-card::after {
  content: '';
  position: absolute;
  inset: 1px;
  background: var(--glass-bg);
  border-radius: calc(var(--radius) - 1px);
  z-index: 0;
}

.glass-card > * {
  position: relative;
  z-index: 1;
}

@keyframes rotateGlow {
  100% { transform: rotate(360deg); }
}

.glass-card:hover {
  border-color: rgba(0, 212, 255, 0.2);
  box-shadow: 0 10px 40px rgba(0, 212, 255, 0.15);
}

/* ============================
   NAVBAR
   ============================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

.nav-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  margin-right: auto;
}

.nav-links {
  display: flex;
  gap: 8px;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 30px;
  transition: var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: var(--accent);
  background: var(--accent-glow);
}

.nav-resume { font-size: 0.85rem; padding: 8px 20px; }

.theme-toggle {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 1.1rem;
  cursor: pointer;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  backdrop-filter: var(--glass-blur);
}
.theme-toggle:hover {
  background: var(--accent-glow);
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}

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

/* ============================
   SECTION HEADERS
   ============================ */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-tag {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent);
  display: block;
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -1px;
  line-height: 1.1;
}

/* ============================
   HERO
   ============================ */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 120px 24px 80px;
  max-width: 1160px;
  margin: 0 auto;
}

.hero-content { 
  flex: 1;
  max-width: 600px; 
}

.hero-image-container {
  position: relative;
  flex: 1;
  max-width: 450px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-glow {
  position: absolute;
  inset: -30px;
  border-radius: 32px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.18), transparent 70%);
  filter: blur(30px);
  transition: var(--transition);
}

.hero-image {
  width: 100%;
  max-width: 360px;
  height: auto;
  border-radius: 24px;
  border: 2px solid var(--border);
  object-fit: cover;
  object-position: center top;
  position: relative;
  z-index: 1;
  display: block;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}

.hero-image:hover {
  border-color: var(--accent);
  box-shadow: 0 0 32px rgba(0, 212, 255, 0.45), 0 0 64px rgba(0, 212, 255, 0.15);
  transform: translateY(-4px);
}

.hero-image-container:hover .hero-image-glow {
  background: radial-gradient(circle, rgba(0, 212, 255, 0.3), transparent 70%);
}

.hero-greeting {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 500;
}

.hero-name {
  font-family: var(--font-heading);
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  font-weight: 800;
  letter-spacing: -3px;
  line-height: 1;
  background: linear-gradient(135deg, #fff 30%, var(--accent) 70%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
}

body.light-mode .hero-name {
  background: linear-gradient(135deg, #1E293B 30%, var(--accent) 70%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body.light-mode .hero-name {
  background: linear-gradient(135deg, #1E293B 30%, var(--accent) 70%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 24px;
  min-height: 48px;
}

.typed-text { color: var(--accent-2); }

.cursor {
  display: inline-block;
  color: var(--accent);
  animation: blink 1s infinite;
  font-weight: 300;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 36px;
  line-height: 1.8;
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-socials {
  display: flex;
  gap: 16px;
}

.social-link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition);
  background: var(--bg-card);
}
.social-link svg { width: 18px; height: 18px; }
.social-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-glow);
  transform: translateY(-3px);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: float 2s ease-in-out infinite;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}
@keyframes float { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(6px); } }

/* ============================
   ABOUT
   ============================ */
.about { background: var(--bg-secondary); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 64px;
  align-items: center;
}

.about-image-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}

.about-image-glow {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.15), transparent 70%);
  filter: blur(20px);
}

.about-avatar {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 2px solid var(--border-hover);
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.avatar-initials {
  font-family: var(--font-heading);
  font-size: 6rem;
  font-weight: 800;
  color: #fff;
}

/* NEW: SVG Tech Avatar */
.about-avatar-box {
  position: relative;
  z-index: 1;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 2px solid rgba(0, 212, 255, 0.35);
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.06), rgba(123, 47, 247, 0.06));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 40px rgba(0, 212, 255, 0.15), 0 0 80px rgba(123, 47, 247, 0.08);
  transition: box-shadow 0.4s ease, border-color 0.4s ease;
  overflow: hidden;
}

.about-avatar-box:hover {
  border-color: rgba(0, 212, 255, 0.7);
  box-shadow: 0 0 60px rgba(0, 212, 255, 0.3), 0 0 100px rgba(123, 47, 247, 0.15);
}

.about-svg-avatar {
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease;
}

.about-avatar-box:hover .about-svg-avatar {
  transform: rotate(8deg) scale(1.05);
}

.about-text h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}
.about-text p {
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.8;
}

.about-stats {
  display: flex;
  gap: 24px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 20px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}
.stat-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }

.stat-num {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
}
.stat-label { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; text-align: center; }

/* ============================
   SKILLS
   ============================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.skill-category {
  padding: 32px;
}

.skill-category h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.skill-category h4::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.skill-tags { display: flex; flex-wrap: wrap; gap: 10px; }

.skill-tag {
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 500;
  background: rgba(0, 212, 255, 0.08);
  color: var(--accent);
  border: 1px solid rgba(0, 212, 255, 0.2);
  transition: var(--transition);
}
.skill-tag:hover {
  background: rgba(0, 212, 255, 0.18);
  transform: translateY(-1px);
}

/* ============================
   PROJECTS
   ============================ */
.projects { background: var(--bg-secondary); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.project-card {
  overflow: hidden;
  cursor: pointer;
}

.project-img {
  position: relative;
  height: 200px;
  overflow: hidden;
}
.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}
.project-img-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 6px;
}
.project-img-gallery img {
  border-radius: 8px;
}
.project-img:hover img {
  transform: scale(1.08);
}
.project-img-gallery img:hover {
  transform: scale(1.12);
}

.project-img-1 {
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
}
.project-img-2 {
  background: linear-gradient(135deg, #1a0533, #2d1b69, #11998e);
}
.project-img-3 {
  background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
}

/* Floating shapes inside project images */
.project-img::before, .project-img::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  opacity: 0.3;
  transition: var(--transition);
}
.project-img::before {
  width: 80px; height: 80px;
  background: var(--accent);
  top: 20px; right: 30px;
  filter: blur(20px);
}
.project-img::after {
  width: 60px; height: 60px;
  background: var(--accent-2);
  bottom: 20px; left: 30px;
  filter: blur(15px);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 20, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}
.project-card:hover .project-overlay { opacity: 1; }
.project-card:hover .project-img::before { opacity: 0.6; transform: scale(1.4); }
.project-card:hover .project-img::after  { opacity: 0.6; transform: scale(1.4); }

.project-info { padding: 24px; }

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.project-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-2);
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.25);
  padding: 3px 10px;
  border-radius: 20px;
}

.project-info h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.project-info p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================
   EDUCATION TIMELINE
   ============================ */
.edu-cert-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
}

.edu-cert-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.edu-cert-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 12px;
}

.edu-cert-item {
  padding: 24px;
}

.edu-cert-item h4 {
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.edu-cert-item p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.timeline {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}

.timeline-item {
  position: relative;
  padding-left: 60px;
  margin-bottom: 40px;
}

.timeline-dot {
  position: absolute;
  left: 13px;
  top: 24px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  z-index: 1;
}

.timeline-content {
  padding: 28px;
}

.timeline-year {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 1px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}

.timeline-content h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.timeline-place {
  font-size: 0.88rem;
  color: var(--accent-2);
  font-weight: 500;
  margin-bottom: 12px !important;
}

.timeline-content p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================
   CONTACT
   ============================ */
.contact { background: var(--bg-secondary); }

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

.contact-intro {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 36px;
}

.contact-details { display: flex; flex-direction: column; gap: 20px; }

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.contact-icon { font-size: 1.2rem; }
.contact-item a { color: var(--accent); transition: var(--transition); }
.contact-item a:hover { text-decoration: underline; }

.contact-form { padding: 36px; }

.form-group { margin-bottom: 20px; }

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
  resize: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  background: rgba(0, 212, 255, 0.04);
  box-shadow: 0 0 0 3px rgba(0,212,255,0.1);
}

.form-success {
  display: none;
  text-align: center;
  margin-top: 14px;
  color: #22c55e;
  font-size: 0.9rem;
  font-weight: 500;
}
.form-error {
  display: none;
  text-align: center;
  margin-top: 10px;
  color: #ef4444;
  font-size: 0.9rem;
  font-weight: 500;
}

/* ============================
   FOOTER
   ============================ */
.footer {
  position: relative;
  z-index: 1;
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  padding: 40px 0;
  text-align: center;
}
.footer p { color: var(--text-muted); font-size: 0.9rem; }
.footer-sub { font-size: 0.82rem; margin-top: 6px; }

/* ============================
   SCROLL REVEAL
   ============================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
.reveal:nth-child(1) { transition-delay: 0s; }
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 900px) {
  .hero {
    flex-direction: column-reverse;
    justify-content: center;
    text-align: center;
    padding-top: 140px;
  }
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-btns {
    justify-content: center;
  }
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .about-grid { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .about-stats { justify-content: center; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .timeline::before { left: 14px; }
  .timeline-item { padding-left: 44px; }
  .timeline-dot { left: 7px; }
}

@media (max-width: 680px) {
  .nav-links, .nav-resume { display: none; }
  .hamburger { display: flex; margin-left: auto; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    padding: 24px;
    border-bottom: 1px solid var(--border);
    gap: 8px;
    z-index: 99;
  }
  .nav-link { padding: 12px 16px; font-size: 1rem; }
  .hero { padding: 120px 24px 100px; }
  .hero-btns { flex-direction: column; align-items: center; }
  .projects-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .edu-cert-grid { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
}
