/* ================================================================
   SHREY PATEL — PORTFOLIO STYLESHEET
   ================================================================
   HOW TO CUSTOMIZE:
   • Colors  → edit the CSS variables in :root below
   • Fonts   → change --font-main / --font-mono
   • Spacing → adjust --section-pad
   ================================================================ */

/* ── CSS VARIABLES (theme) ────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg-primary:    #0b0b0f;
  --bg-secondary:  #111116;
  --bg-card:       #16161e;
  --bg-card-hover: #1c1c27;
  --bg-nav:        rgba(11, 11, 15, 0.92);

  /* Accent colors — change these to repaint the whole site */
  --accent:        #00d4ff;   /* cyan  */
  --accent-2:      #7c3aed;   /* purple */
  --accent-green:  #10b981;   /* green  */
  --accent-glow:   rgba(0, 212, 255, 0.15);

  /* Text */
  --text-primary:   #f0f0f5;
  --text-secondary: #8892a4;
  --text-muted:     #555f70;

  /* Borders */
  --border:        #1e2130;
  --border-light:  #252838;

  /* Fonts */
  --font-main:  'Inter', system-ui, sans-serif;
  --font-mono:  'JetBrains Mono', 'Fira Code', monospace;

  /* Layout */
  --max-width:   1200px;
  --section-pad: 100px;
  --card-radius: 12px;
  --nav-height:  70px;

  /* Transitions */
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: #fff; }

ul { list-style: none; }

code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--bg-card);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--accent);
}

/* ── SCROLLBAR ────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--accent-2); border-radius: 3px; }

/* ── UTILITY ──────────────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-pad) 0;
}

.section-alt {
  background: var(--bg-secondary);
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 60px;
}

.section-eyebrow {
  text-align: center;
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
  opacity: 0.85;
}

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

/* Thin progress bar tracking scroll position, fixed above the navbar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  z-index: 1100;
}

/* ── CUSTOM CURSOR (js/interactions.js) ──────────────────────────
   Only active on fine-pointer devices with no reduced-motion
   preference — see initCustomCursor(). */
html.custom-cursor-active,
html.custom-cursor-active * {
  cursor: none !important;
}

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transition: opacity 0.2s ease;
}
.cursor-dot {
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  background: var(--accent);
}
.cursor-ring {
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border: 1.5px solid var(--accent);
  transition: width 0.2s ease, height 0.2s ease, margin 0.2s ease,
    background 0.2s ease, opacity 0.2s ease;
}
.cursor-ring-hover {
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  background: var(--accent-glow);
}
.cursor-ring-click {
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
}

/* ── CLICK BURST (js/interactions.js) ───────────────────────────
   Short-lived ring + sparks fired from the click point. */
.click-burst {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 9999;
}
.click-burst-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  opacity: 0.8;
  animation: burst-ring 0.6s ease-out forwards;
}
@keyframes burst-ring {
  to {
    width: 60px;
    height: 60px;
    margin: -30px 0 0 -30px;
    opacity: 0;
  }
}
.click-burst-spark {
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: burst-spark 0.6s ease-out forwards;
}
@keyframes burst-spark {
  to {
    transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy)));
    opacity: 0;
  }
}

/* ── TILT GLARE (js/interactions.js) ─────────────────────────────
   Soft light sweep that follows the cursor across tilted cards. */
.tilt-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 5;
}

/* Fixed film-grain texture for a bit of cinematic depth across the
   whole page. Pure CSS (SVG turbulence), no image request. */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.025;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: transparent;
  color: var(--accent);
  box-shadow: 0 0 24px var(--accent-glow);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-outline:hover {
  background: var(--accent);
  color: #000;
  box-shadow: 0 0 24px var(--accent-glow);
}

/* Buttons in the hero get a magnetic pull toward the cursor (see
   initMagneticButtons in js/main.js) — override the shared transition
   so the translate keeps up with fast mouse movement. */
.hero-cta .btn {
  transition: transform 0.15s ease-out, background var(--transition),
    color var(--transition), box-shadow var(--transition);
}

.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }
.btn-full { width: 100%; justify-content: center; }

/* TAGS */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-card);
  color: var(--accent);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  transition: all var(--transition);
}
.tag:hover {
  border-color: var(--accent);
  background: var(--accent-glow);
}

/* BADGE */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-glow);
  color: var(--accent);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: 500;
}

/* ── NAVBAR ───────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: var(--bg-nav);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: box-shadow var(--transition);
}

.navbar.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}
.nav-logo .logo-bracket { color: var(--accent); }
.nav-logo:hover { color: var(--accent); }

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

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  background: var(--accent-glow);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s;
  display: block;
}

/* ── HERO ─────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: calc(var(--nav-height) + 40px) 24px 80px;
  overflow: hidden;
}

/* WebGL scene container, populated by js/hero-3d.js (Three.js) */
.hero-3d {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-3d canvas {
  display: block;
}

/* Subtle radial glow in center */
.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-greeting {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.hero-name {
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.05;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 24px;
  min-height: 2em;
}

.title-static { color: var(--text-secondary); }
.typed-text { color: var(--accent); font-family: var(--font-mono); }
.cursor {
  color: var(--accent);
  animation: blink 1s infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.hero-summary {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 36px;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.hero-socials {
  display: flex;
  gap: 20px;
  justify-content: center;
}
.hero-socials a {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1.1rem;
  transition: all var(--transition);
}
.hero-socials a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
  transform: translateY(-3px);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: bounce 2.5s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ── ABOUT ────────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 60px;
  align-items: start;
}

.about-image-wrap {
  position: sticky;
  top: calc(var(--nav-height) + 24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.about-image {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: var(--card-radius);
  overflow: hidden;
  border: 2px solid var(--border-light);
  background: var(--bg-card);
  position: relative;
}
.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-image-placeholder {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 16px;
}
.about-image-placeholder i { font-size: 3rem; }

.about-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

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

.about-facts {
  display: flex;
  gap: 32px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.fact {
  display: flex;
  flex-direction: column;
}
.fact-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  font-family: var(--font-mono);
  line-height: 1;
}
.fact-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ── SKILLS ───────────────────────────────────────────────────── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.skill-category {
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 28px;
  transition: border-color var(--transition);
}
.skill-category:hover { border-color: var(--border-light); }

.skill-category h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
}

.skill-item { margin-bottom: 14px; }
.skill-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 0.9rem;
}
.skill-pct {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.skill-bar {
  height: 5px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.skill-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  border-radius: 3px;
  width: 0;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ── PROJECTS ─────────────────────────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.projects-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  font-family: var(--font-mono);
  padding: 40px 0;
}

/* Clickable image-first project card — links to project.html */
.project-card-link {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  overflow: hidden;
  transition: all var(--transition);
  color: var(--text-primary);
}
.project-card-link:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  color: var(--text-primary);
}

.project-card-link-image {
  position: relative;
  aspect-ratio: 16/10;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}
.project-card-link-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.project-card-link:hover .project-card-link-image img {
  transform: scale(1.06);
}

.project-card-link-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.85) 100%);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  opacity: 0;
  transition: opacity var(--transition);
}
.project-card-link:hover .project-card-link-overlay {
  opacity: 1;
}
.project-card-link-overlay span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
}

/* Shared placeholder shown when an image path doesn't exist yet */
.img-placeholder {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 2rem;
  background: var(--bg-secondary);
}

.project-card-link-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
}

.project-card-link-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.project-card-subtitle {
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 500;
  margin-top: -6px;
}

/* Featured project spans full width with a bigger side-by-side image */
.project-card-link.featured {
  grid-column: 1 / -1;
  flex-direction: row;
}
.project-card-link.featured .project-card-link-image {
  width: 45%;
  aspect-ratio: auto;
  border-bottom: none;
  border-right: 1px solid var(--border);
}
.project-card-link.featured .project-card-link-body {
  flex: 1;
  justify-content: center;
}

.project-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}
.project-date {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 6px;
}
.project-desc {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.7;
}
.project-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.project-detail {
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding: 8px 12px;
  background: var(--bg-secondary);
  border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0;
  line-height: 1.5;
}
.project-detail strong { color: var(--text-primary); }

.project-tech { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }

/* ── PROJECT DETAIL PAGE (project.html) ──────────────────────── */
.project-detail-page {
  padding: calc(var(--nav-height) + 50px) 0 80px;
}
.project-detail-page .container {
  max-width: 900px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 32px;
}
.back-link:hover { color: var(--accent); }

.project-hero {
  text-align: center;
  margin-bottom: 32px;
}
.project-hero h1 {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin: 10px 0;
}
.project-hero-subtitle {
  color: var(--accent);
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 16px;
}
.project-hero .project-date { justify-content: center; }
.project-hero .project-tech { justify-content: center; }

.project-hero-image {
  aspect-ratio: 16/9;
  border-radius: var(--card-radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  position: relative;
  margin-bottom: 40px;
}
.project-hero-image img { width: 100%; height: 100%; object-fit: cover; }

.project-body { margin-bottom: 40px; }
.project-summary {
  font-size: 1.1rem;
  color: var(--text-primary);
  line-height: 1.8;
  margin-bottom: 20px;
}
.project-body p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 18px;
}

.project-details { margin-bottom: 48px; }

.project-section-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 20px;
  margin-top: 10px;
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 48px;
}
.project-gallery-item {
  position: relative;
  aspect-ratio: 4/3;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-card);
  cursor: pointer;
  padding: 0;
}
.project-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}
.project-gallery-item:hover img { transform: scale(1.06); }

.project-videos {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 48px;
}
.video-embed {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: var(--card-radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.project-video figcaption {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 10px;
}

.project-detail-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.project-not-found {
  text-align: center;
  padding: 80px 0;
  color: var(--text-secondary);
}
.project-not-found i { font-size: 3rem; color: var(--text-muted); margin-bottom: 16px; }
.project-not-found h1 { margin-bottom: 12px; color: var(--text-primary); }
.project-not-found p { margin-bottom: 24px; }

/* Lightbox for gallery images */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  padding: 40px;
}
.lightbox-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox-overlay img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-close:hover { color: var(--accent); border-color: var(--accent); }

/* ── CAREER GOALS / TIMELINE ──────────────────────────────────── */
.goals-intro {
  max-width: 760px;
  margin: 0 auto 60px;
  text-align: center;
}
.goals-intro p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
}

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

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

.timeline-dot {
  position: absolute;
  left: 12px;
  top: 6px;
  width: 18px;
  height: 18px;
  background: var(--accent);
  border: 3px solid var(--bg-secondary);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.5);
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 6px;
  letter-spacing: 1px;
}

.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 20px 24px;
}
.timeline-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.timeline-content p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.7;
}

.goals-steps { margin-top: 20px; }
.goals-steps h3 {
  font-size: 1.4rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 32px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.step-card {
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 24px;
  transition: all var(--transition);
}
.step-card:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
}
.step-num {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 12px;
}
.step-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.step-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── RESUME ───────────────────────────────────────────────────── */
.resume-container {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.resume-preview {
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  overflow: hidden;
  background: var(--bg-card);
}

.resume-embed { display: block; }

.resume-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 80px 24px;
  text-align: center;
}
.resume-fallback i {
  font-size: 3.5rem;
  color: var(--text-muted);
}
.resume-fallback p { color: var(--text-secondary); }

.resume-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.resume-note {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.resume-highlights {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.highlight-item i {
  font-size: 1.2rem;
  color: var(--accent);
  margin-top: 3px;
  flex-shrink: 0;
}
.highlight-item strong {
  display: block;
  font-weight: 600;
  margin-bottom: 2px;
}
.highlight-item span {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* ── EDUCATION ────────────────────────────────────────────────── */
.education-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 40px;
  display: flex;
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.edu-logo {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  background: var(--accent-glow);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--accent);
}

.edu-info { flex: 1; }

.edu-info h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.edu-degree {
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 12px;
}
.edu-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.edu-meta span { display: flex; align-items: center; gap: 6px; }

.edu-threads {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}
.edu-threads strong { color: var(--text-primary); }

.edu-info h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  margin-top: 20px;
}

.course-list { display: flex; flex-wrap: wrap; gap: 8px; }

/* ── CONTACT ──────────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
  max-width: 900px;
  margin: 0 auto;
}

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

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 18px;
  transition: border-color var(--transition);
}
.contact-item:hover { border-color: var(--border-light); }

.contact-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-glow);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.contact-item strong {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.contact-item a,
.contact-item span {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}
.form-group input,
.form-group textarea {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.92rem;
  transition: border-color var(--transition);
  outline: none;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── FOOTER ───────────────────────────────────────────────────── */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 40px 0 24px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.footer-socials {
  display: flex;
  gap: 12px;
}
.footer-socials a {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.footer-socials a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.footer-nav {
  display: flex;
  gap: 4px;
  align-items: center;
}
.footer-nav a {
  color: var(--text-muted);
  font-size: 0.82rem;
  padding: 2px 6px;
}
.footer-nav a:hover { color: var(--accent); }

/* ── ANIMATIONS (3D reveal on scroll) ─────────────────────────── */
.fade-in {
  opacity: 0;
  transform: perspective(700px) translateY(60px) rotateX(-25deg);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-in.visible {
  opacity: 1;
  transform: perspective(700px) translateY(0) rotateX(0deg);
}

/* Stagger children */
.fade-in:nth-child(1) { transition-delay: 0.05s; }
.fade-in:nth-child(2) { transition-delay: 0.15s; }
.fade-in:nth-child(3) { transition-delay: 0.25s; }
.fade-in:nth-child(4) { transition-delay: 0.35s; }

/* ── RESPONSIVE ───────────────────────────────────────────────── */
@media (max-width: 900px) {
  :root { --section-pad: 70px; }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--bg-nav);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }

  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-image-wrap {
    position: static;
    max-width: 300px;
    margin: 0 auto;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .project-card-link.featured {
    flex-direction: column;
  }
  .project-card-link.featured .project-card-link-image {
    width: 100%;
    aspect-ratio: 16/10;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .education-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px;
    gap: 20px;
  }

  .footer-top,
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .footer-nav { justify-content: center; }
}

@media (max-width: 600px) {
  :root { --section-pad: 60px; }

  .hero-cta { flex-direction: column; align-items: center; }

  .about-facts { gap: 20px; }

  .projects-grid { grid-template-columns: 1fr; }

  .steps-grid { grid-template-columns: 1fr; }

  .edu-meta { flex-direction: column; gap: 8px; }
}
