/* ============================================================
   BISHAM SILWAL — PORTFOLIO WEBSITE
   style.css — Master Stylesheet
   
   HOW TO MODIFY COLORS:
   Change values in :root {} to update the entire site.
   --accent-blue     : Main blue glow color
   --accent-cyan     : Secondary accent
   --bg-primary      : Main background
   --glass-bg        : Card/panel background (glassmorphism)
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

/* ── CSS Custom Properties (Color Palette) ── */
:root {
  /* Core backgrounds */
  --bg-primary:      #050508;
  --bg-secondary:    #0a0a12;
  --bg-card:         #0f0f1a;

  /* Glass effect */
  --glass-bg:        rgba(255,255,255,0.04);
  --glass-border:    rgba(255,255,255,0.08);
  --glass-shadow:    rgba(0,0,0,0.6);

  /* Accent colors — edit these to change branding */
  --accent-blue:     #3b82f6;
  --accent-cyan:     #06b6d4;
  --accent-purple:   #8b5cf6;
  --glow-blue:       rgba(59,130,246,0.35);
  --glow-cyan:       rgba(6,182,212,0.25);

  /* Text */
  --text-primary:    #f0f4ff;
  --text-secondary:  #8892a4;
  --text-muted:      #4a5568;

  /* Borders */
  --border:          rgba(255,255,255,0.07);
  --border-hover:    rgba(59,130,246,0.4);

  /* Typography */
  --font-display:    'Syne', sans-serif;
  --font-body:       'DM Sans', sans-serif;

  /* Spacing */
  --section-pad:     6rem 2rem;
  --max-width:       1200px;

  /* Transitions */
  --ease:            cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce:     cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  cursor: none; /* Hide default cursor — we use a custom one */
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Custom Scrollbar ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--accent-blue); border-radius: 2px; }

/* ============================================================
   CUSTOM CURSOR
   The cursor follows mouse movement via JavaScript.
   "cursor-dot" = inner dot | "cursor-ring" = outer ring
   ============================================================ */
.cursor-dot {
  width: 10px;
  height: 10px;
  background: #ff1e1e;
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: transform 0.08s ease, background 0.3s;
  box-shadow:
    0 0 10px #ff1e1e,
    0 0 25px rgba(255, 30, 30, 0.8),
    0 0 45px rgba(255, 30, 30, 0.4);
  animation: cursorPulse 1.8s infinite;
}

.cursor-ring {
  width: 42px;
  height: 42px;
  border: 2px solid rgba(255, 30, 30, 0.6);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition:
    width 0.25s ease,
    height 0.25s ease,
    border-color 0.25s,
    background 0.25s,
    transform 0.12s ease;
  box-shadow:
    0 0 15px rgba(255, 30, 30, 0.4),
    inset 0 0 10px rgba(255, 30, 30, 0.2);
}

/* Cursor expands on hover over links/buttons */

body.cursor-hover .cursor-ring {
  width: 70px;
  height: 70px;
  border-color: #ff1e1e;
  background: rgba(255, 30, 30, 0.08);
  box-shadow:
    0 0 25px rgba(255, 30, 30, 0.6),
    0 0 60px rgba(255, 30, 30, 0.3);
}

/* Cursor pulse animation */
@keyframes cursorPulse {
  0% {
    box-shadow:
      0 0 10px #ff1e1e,
      0 0 25px rgba(255, 30, 30, 0.6);
  }
  50% {
    box-shadow:
      0 0 18px #ff1e1e,
      0 0 40px rgba(255, 30, 30, 0.9);
  }
  100% {
    box-shadow:
      0 0 10px #ff1e1e,
      0 0 25px rgba(255, 30, 30, 0.6);
  }
}

/* ── Scroll Progress Bar ── */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan));
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ============================================================
   LOADING SCREEN
   Shown on page load, hidden after 2s via JS.
   ============================================================ */
#loader {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 99997;
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}

#loader.hidden { opacity: 0; visibility: hidden; }

.loader-logo {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 2rem;
}

.loader-bar {
  width: 200px; height: 2px;
  background: var(--border);
  border-radius: 1px;
  overflow: hidden;
}

.loader-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan));
  border-radius: 1px;
  animation: loaderFill 1.8s var(--ease) forwards;
}

@keyframes loaderFill {
  from { width: 0; }
  to { width: 100%; }
}

/* ============================================================
   NAVIGATION
   ============================================================ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  z-index: 1000;
  transition: background 0.4s var(--ease), backdrop-filter 0.4s, border-bottom 0.4s;
}

nav.scrolled {
  background: rgba(5,5,8,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
  background: linear-gradient(135deg, #fff 40%, var(--accent-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  letter-spacing: 0.01em;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: var(--glass-bg);
}

.nav-cta {
  background: var(--accent-blue) !important;
  color: #fff !important;
  border-radius: 8px !important;
  padding: 0.5rem 1.25rem !important;
  font-weight: 600 !important;
  transition: box-shadow 0.2s, transform 0.2s !important;
}

.nav-cta:hover {
  box-shadow: 0 0 24px var(--glow-blue) !important;
  transform: translateY(-1px) !important;
}

/* Hamburger for mobile */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

@media (max-width: 768px) {
  .nav-hamburger { display: flex; }

  .nav-links {
    position: fixed;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    background: rgba(5,5,8,0.97);
    backdrop-filter: blur(20px);
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    gap: 0.5rem;
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.4s var(--ease), opacity 0.3s;
    pointer-events: none;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-links a { width: 100%; text-align: center; padding: 0.75rem; }
}

/* ============================================================
   ANIMATED BACKGROUND — Particle Canvas
   (Canvas managed by JavaScript)
   ============================================================ */
#particle-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
}

/* ── Floating geometric shapes ── */
.bg-shape {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  animation: floatShape 12s ease-in-out infinite alternate;
}

.bg-shape-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(59,130,246,0.07), transparent 70%);
  top: -200px; right: -200px;
  animation-duration: 14s;
}

.bg-shape-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(6,182,212,0.06), transparent 70%);
  bottom: -150px; left: -150px;
  animation-duration: 18s;
  animation-delay: -5s;
}

.bg-shape-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(139,92,246,0.06), transparent 70%);
  top: 40%; left: 30%;
  animation-duration: 22s;
  animation-delay: -8s;
}

@keyframes floatShape {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(30px, 40px) scale(1.05); }
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section { padding: var(--section-pad); position: relative; z-index: 1; }

.section-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

.section-title span {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.8;
}

/* ── Glass Card ── */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.3s, transform 0.3s var(--ease-bounce), box-shadow 0.3s;
}

.glass-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(59,130,246,0.1);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.25s var(--ease-bounce);
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--accent-blue);
  color: #fff;
  box-shadow: 0 4px 20px var(--glow-blue);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 32px var(--glow-blue);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--accent-blue);
  background: rgba(59,130,246,0.08);
  transform: translateY(-3px);
}

/* ── Scroll Reveal (JS adds .revealed) ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ── Scroll-to-Top Button ── */
#scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px; height: 48px;
  background: var(--accent-blue);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s var(--ease-bounce), box-shadow 0.2s;
  box-shadow: 0 4px 20px var(--glow-blue);
}

#scroll-top.visible { opacity: 1; transform: translateY(0); }
#scroll-top:hover { transform: translateY(-4px); box-shadow: 0 8px 32px var(--glow-blue); }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 2rem 4rem;
  position: relative;
  z-index: 1;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 5rem;
  align-items: center;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.25);
  border-radius: 100px;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  color: var(--accent-blue);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.hero-badge-dot {
  width: 6px; height: 6px;
  background: var(--accent-blue);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 1rem;
}

/* Typing animation text */
.hero-typing {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 500;
  color: var(--accent-cyan);
  min-height: 2em;
  margin-bottom: 1.5rem;
}

.typing-cursor {
  display: inline-block;
  width: 2px;
  height: 1.2em;
  background: var(--accent-cyan);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 0.8s step-end infinite;
}

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.hero-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin-bottom: 2.5rem;
  line-height: 1.9;
}

.hero-org {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
}

.hero-org-dot { width: 8px; height: 8px; background: #22c55e; border-radius: 50%; box-shadow: 0 0 10px rgba(34,197,94,0.6); }

.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Profile image container */
.hero-image-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image-ring {
  width: 340px; height: 340px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--accent-blue), var(--accent-cyan), var(--accent-purple), var(--accent-blue));
  padding: 3px;
  animation: rotateRing 8s linear infinite;
  position: relative;
}

@keyframes rotateRing {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero-image-inner {
  width: 100%; height: 100%;
  border-radius: 50%;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-image-inner img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Placeholder icon when no image is set */
.hero-img-placeholder {
  font-size: 5rem;
  font-family: var(--font-display);
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Floating cards around profile image */
.hero-float-card {
  position: absolute;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 0.75rem 1rem;
  backdrop-filter: blur(12px);
  font-size: 0.8rem;
  white-space: nowrap;
  animation: floatCard 4s ease-in-out infinite alternate;
}

.hero-float-card:nth-child(2) { top: 40px; left: -30px; animation-delay: 0s; }
.hero-float-card:nth-child(3) { bottom: 60px; right: -40px; animation-delay: -2s; }
.hero-float-card:nth-child(4) { bottom: 160px; left: -50px; animation-delay: -1s; }

.hero-float-card strong { color: var(--accent-cyan); display: block; font-size: 1rem; }

@keyframes floatCard {
  from { transform: translateY(0); }
  to { transform: translateY(-12px); }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 3rem; }
  .hero-image-wrap { order: -1; }
  .hero-image-ring { width: 260px; height: 260px; }
  .hero-desc { margin: 0 auto 2.5rem; }
  .hero-org { justify-content: center; }
  .hero-buttons { justify-content: center; }
  .hero-badge { margin: 0 auto 1.5rem; }
}

/* ============================================================
   STATISTICS / COUNTERS SECTION
   ============================================================ */
.stats-section {
  padding: 4rem 2rem;
  position: relative;
  z-index: 1;
}

.stats-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.stat-card {
  padding: 2rem 1.5rem;
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

@media (max-width: 640px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   SKILLS SECTION
   ============================================================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
}

.skill-card {
  padding: 1.75rem;
  border-radius: 18px;
}

.skill-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.skill-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.skill-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── Skill bar ── */
.skill-bar-wrap {
  margin-top: 1rem;
  background: rgba(255,255,255,0.06);
  border-radius: 100px;
  height: 3px;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan));
  width: 0;
  transition: width 1.2s var(--ease);
}

/* ============================================================
   HIGHLIGHTS / ACHIEVEMENT CARDS
   ============================================================ */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.highlight-card {
  padding: 2rem;
  border-radius: 20px;
}

.highlight-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(59,130,246,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}

.highlight-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.highlight-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ============================================================
   CONTACT CTA
   ============================================================ */
.cta-section {
  padding: var(--section-pad);
  position: relative;
  z-index: 1;
  text-align: center;
}

.cta-inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 4rem 3rem;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(59,130,246,0.08), rgba(6,182,212,0.05));
  border: 1px solid rgba(59,130,246,0.2);
  position: relative;
  overflow: hidden;
}

.cta-inner::before {
  content: '';
  position: absolute;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(59,130,246,0.15), transparent 70%);
  pointer-events: none;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.cta-desc {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
  position: relative;
  z-index: 1;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand .nav-logo { display: inline-block; margin-bottom: 0.75rem; }
.footer-brand p { font-size: 0.875rem; color: var(--text-secondary); max-width: 280px; line-height: 1.8; }

.footer-heading {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { color: var(--text-secondary); text-decoration: none; font-size: 0.875rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent-blue); }

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.footer-social a {
  width: 38px; height: 38px;
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 1rem;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.footer-social a:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  background: rgba(59,130,246,0.08);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-bottom a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.footer-bottom a:hover { color: var(--accent-blue); }

@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
}

/* ============================================================
   RESUME PAGE — About & Biography
   ============================================================ */
.page-hero {
  padding: 140px 2rem 4rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.page-hero-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 0.75rem;
  display: block;
}

.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 1rem;
}

.page-hero-sub {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto;
}

/* ── About Grid ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-top: 3rem;
}

.about-image {
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
}

.about-image img { width: 100%; height: 100%; object-fit: cover; }

.about-content h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.about-content p {
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.about-tag {
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.2);
  color: var(--accent-blue);
  padding: 0.3rem 0.85rem;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 500;
}

@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-image { max-height: 300px; }
}

/* ── Education ── */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.edu-card { padding: 2rem; }

.edu-degree {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.edu-school {
  color: var(--accent-blue);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.edu-year {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.edu-desc {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-top: 0.75rem;
  line-height: 1.7;
}

/* ── Resume Skills ── */
.resume-skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
}

.resume-skill-item {
  padding: 1.5rem;
}

.resume-skill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.resume-skill-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.resume-skill-pct {
  font-size: 0.78rem;
  color: var(--accent-cyan);
  font-weight: 600;
}

/* ── Timeline (Experience) ── */
.timeline {
  margin-top: 3rem;
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-blue), var(--accent-cyan), transparent);
}

.timeline-item {
  position: relative;
  padding: 0 0 3rem 2rem;
}

.timeline-dot {
  position: absolute;
  left: -2rem;
  top: 6px;
  width: 14px; height: 14px;
  background: var(--accent-blue);
  border-radius: 50%;
  border: 2px solid var(--bg-primary);
  box-shadow: 0 0 12px var(--glow-blue);
  transform: translateX(calc(-50% + 1px));
}

.timeline-date {
  font-size: 0.78rem;
  color: var(--accent-cyan);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.timeline-role {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.timeline-org {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.timeline-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.timeline-list li {
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.7;
}

.timeline-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-blue);
  font-size: 0.75rem;
}

/* ── Certifications ── */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
}

.cert-card { padding: 1.75rem; }

.cert-icon { font-size: 2rem; margin-bottom: 0.75rem; display: block; }

.cert-name {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.cert-org {
  color: var(--accent-blue);
  font-size: 0.8rem;
  margin-bottom: 0.25rem;
}

.cert-year { color: var(--text-muted); font-size: 0.78rem; }

/* ── Tech Stack badges ── */
.tech-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.tech-badge {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 0.5rem 1.1rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.tech-badge:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  background: rgba(59,130,246,0.06);
}

/* ── Resume Download ── */
.resume-download-box {
  margin-top: 3rem;
  padding: 3rem;
  border-radius: 24px;
  text-align: center;
  background: linear-gradient(135deg, rgba(59,130,246,0.08), rgba(6,182,212,0.05));
  border: 1px solid rgba(59,130,246,0.2);
}

/* ============================================================
   PORTFOLIO PAGE
   ============================================================ */

/* ── Filter Buttons ── */
.filter-bar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  margin: 2.5rem 0;
}

.filter-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  font-family: var(--font-body);
}

.filter-btn:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

.filter-btn.active {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  color: #fff;
  box-shadow: 0 4px 16px var(--glow-blue);
}

/* ── Project Cards ── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.project-card {
  border-radius: 20px;
  overflow: hidden;
  transition: opacity 0.4s, transform 0.4s var(--ease-bounce);
}

.project-card.hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.95);
  position: absolute;
  visibility: hidden;
}

.project-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  overflow: hidden;
}

.project-img img { width: 100%; height: 100%; object-fit: cover; }

.project-body { padding: 1.75rem; }

.project-category {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-cyan);
  margin-bottom: 0.5rem;
}

.project-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.project-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.project-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.project-tag {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  padding: 0.2rem 0.65rem;
  border-radius: 100px;
  font-size: 0.72rem;
  color: var(--text-secondary);
}

/* ── Gallery Section ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.gallery-item {
  aspect-ratio: 1;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  overflow: hidden;
  transition: transform 0.3s var(--ease-bounce), border-color 0.2s;
}

.gallery-item:hover {
  transform: scale(1.04);
  border-color: var(--accent-blue);
}

.gallery-item img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   MISC HELPERS
   ============================================================ */
.text-gradient {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.divider {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 0;
}

/* Fade out when page changes */
body.page-leaving { animation: fadeOut 0.3s forwards; }
@keyframes fadeOut { to { opacity: 0; } }

/* Make projects grid relative for absolute positioned hidden cards */
.projects-wrap { position: relative; min-height: 400px; }
