/* ─────────────────────────────────────────────
   ROOT & RESET
───────────────────────────────────────────── */
:root {
  --bg: #080b0f;
  --bg2: #0d1117;
  --surface: #131920;
  --border: rgba(255,255,255,0.07);
  --text: #e8edf2;
  --text-muted: #6b7d8e;
  --accent: #00e5ff;
  --accent2: #ff6b35;
  --accent3: #a855f7;
  --font-display: 'Syne', sans-serif;
  --font-mono: 'Space Mono', monospace;
  --font-body: 'DM Sans', sans-serif;
  --radius: 12px;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none;
  margin: 0;
  padding: 0;
  background: var(--bg);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ─────────────────────────────────────────────
   CUSTOM CURSOR
───────────────────────────────────────────── */
.cursor {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease, background 0.3s;
  mix-blend-mode: screen;
}
.cursor-trail {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(0,229,255,0.4);
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: all 0.15s ease;
}
body:has(a:hover) .cursor, body:has(button:hover) .cursor { transform: translate(-50%,-50%) scale(2.5); background: var(--accent2); }
body:has(a:hover) .cursor-trail, body:has(button:hover) .cursor-trail { transform: translate(-50%,-50%) scale(1.5); border-color: var(--accent2); }

/* ─────────────────────────────────────────────
   NAV
───────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.6rem 3rem;
  z-index: 1000;
  background: transparent;
  transition: background var(--transition), backdrop-filter var(--transition);
}
.nav.scrolled {
  background: rgba(8,11,15,0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav:not(.scrolled) {
  background: transparent !important;
  border-bottom: none !important;
  backdrop-filter: none !important;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}
.dot { color: var(--accent); }
.nav-links { display: flex; gap: 2rem; }
.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: none; padding: 4px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); transition: all 0.3s; }

/* ─────────────────────────────────────────────
   HERO
───────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 3rem 3rem 3rem;
  width: 100%;
  max-width: 100vw;
  overflow: hidden
}

.hero-bg {
  position: absolute; inset: 0;
  z-index: 0;
}
.grid-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(0,229,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  pointer-events: none;
}
.glow-1 {
  width: 600px; height: 600px;
  background: var(--accent);
  top: -200px; right: -100px;
  animation: float 8s ease-in-out infinite;
}
.glow-2 {
  width: 400px; height: 400px;
  background: var(--accent3);
  bottom: -100px; left: -100px;
  animation: float 10s ease-in-out infinite reverse;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-30px); }
}
.hero-content { position: relative; z-index: 1; max-width: 900px; }
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.hero-name {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 11rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.2em;
  ;
  max-width: 100%;
}
.hero-name .line {
  display: block;
  white-space: nowrap;
}
.hero-name .line { display: block; }
.accent-stroke {
  -webkit-text-stroke: 2px var(--accent);
  color: transparent;
}
.hero-tags {
  display: flex; flex-wrap: wrap; gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 0.4rem 1rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: rgba(255,255,255,0.03);
  transition: border-color 0.3s, background 0.3s;
}
.tag:hover { border-color: var(--accent); background: rgba(0,229,255,0.05); }
.hero-sub {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2.5rem;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-primary {
  display: inline-block;
  padding: 0.85rem 2rem;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: var(--radius);
  border: 2px solid var(--accent);
  transition: background 0.3s, color 0.3s, transform 0.2s, box-shadow 0.3s;
}
.btn-primary:hover {
  background: transparent;
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,229,255,0.2);
}
.btn-primary.large { padding: 1rem 2.5rem; font-size: 0.95rem; }
.btn-ghost {
  display: inline-block;
  padding: 0.85rem 2rem;
  background: transparent;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  border-radius: var(--radius);
  border: 2px solid var(--accent);
  transition: background 0.3s, color 0.3s, transform 0.2s, box-shadow 0.3s;
}
.btn-ghost:hover {
  background: var(--accent);
  color: var(--bg);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,229,255,0.2);
}
.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem; left: 3rem;
  display: flex; align-items: center; gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.scroll-line {
  width: 60px; height: 1px;
  background: linear-gradient(90deg, var(--text-muted), transparent);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  animation: scanline 2s ease-in-out infinite;
}
@keyframes scanline {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

/* ─────────────────────────────────────────────
   SECTIONS COMMON
───────────────────────────────────────────── */
.section { padding: 8rem 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 3rem; }
.section-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: block;
}
.section-label.center { text-align: center; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 4rem;
}
.section-title.center { text-align: center; }
.section-title em {
  font-style: normal;
  -webkit-text-stroke: 1.5px var(--accent);
  color: transparent;
}

/* ─────────────────────────────────────────────
   ABOUT
───────────────────────────────────────────── */
.about { background: var(--bg2); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 6rem;
  align-items: center;
}
.about-image-wrap {
  position: relative;
  filter: drop-shadow(0 0 40px rgba(0,229,255,0.12)) drop-shadow(-8px 20px 40px rgba(168,85,247,0.1));
}
.about-img-placeholder {
  width: 100%;
  border-radius: 20px;
  overflow: visible;
  background: transparent;
  border: none;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.about-img-placeholder:hover {
  transform: translateY(-8px);}
.img-placeholder-inner {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 2px dashed var(--border);
  margin: 16px;
  width: calc(100% - 32px);
  height: calc(100% - 32px);
  border-radius: 8px;
}
.about-img-deco {
  position: absolute;
  width: 200px; height: 200px;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  top: -16px; right: -16px;
  z-index: -1;
  opacity: 0.3;
   display: none;
}
.about-text h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}
.about-text h2 em { font-style: normal; color: var(--accent); }
.about-text p { color: var(--text-muted); margin-bottom: 1rem; font-size: 1.05rem; }
.about-text p strong { color: var(--text); }
.about-stats {
  display: flex; gap: 2.5rem; margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}
.stat { display: flex; flex-direction: column; gap: 0.25rem; }
.stat-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ─────────────────────────────────────────────
   SKILLS
───────────────────────────────────────────── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.skill-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 2rem;
  transition: border-color 0.4s, transform 0.4s, box-shadow 0.4s, background 0.4s;
  position: relative;
  overflow: hidden;
}
.skill-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
}
.skill-card::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(0,229,255,0.06), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
}
.skill-card:hover {
  border-color: rgba(0,229,255,0.25);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(0,229,255,0.1);
  background: rgba(255,255,255,0.055);
}
.skill-card:hover::after { opacity: 1; }
.skill-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(0,229,255,0.08);
  border: 1px solid rgba(0,229,255,0.15);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--accent);
  transition: background 0.3s, border-color 0.3s;
}
.skill-icon svg { width: 20px; height: 20px; }
.skill-card:hover .skill-icon {
  background: rgba(0,229,255,0.15);
  border-color: rgba(0,229,255,0.3);
}
.skill-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.skill-card p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.25rem; }
.skill-tags {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
}
.skill-tags li {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.25rem 0.6rem;
  background: rgba(0,229,255,0.05);
  border: 1px solid rgba(0,229,255,0.12);
  border-radius: 4px;
  color: var(--accent);
}

/* ─────────────────────────────────────────────
   GALLERY
───────────────────────────────────────────── */
.gallery { background: var(--bg); margin-top: 0; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 280px;
  gap: 1rem;
}
.gallery-item { overflow: hidden; border-radius: var(--radius); border: 1px solid var(--border); }
.gallery-item.tall { grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }
.gallery-placeholder {
  width: 100%; height: 100%;
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.6s ease;
}
.gallery-item:hover .gallery-placeholder { transform: scale(1.04); }
/* When you add real images: */
/* .gallery-placeholder img { width:100%; height:100%; object-fit:cover; } */
.gallery-placeholder span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ─────────────────────────────────────────────
   PROJECTS
───────────────────────────────────────────── */
.projects-list { display: flex; flex-direction: column; gap: 0; background: var(--bg2); }
.project-card {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  align-items: center;
  gap: 2rem;
  padding: 2.5rem 0;
  border-bottom: 3px solid var(--border);
  transition: padding-left var(--transition);
}
.project-card:first-child { border-top: 1px solid var(--border); }
.project-card:hover { padding-left: 1rem; }
.project-meta { display: flex; flex-direction: column; gap: 0.4rem; }
.project-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--border);
  line-height: 1;
}
.project-type {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.project-body h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}
.project-card:hover .project-body h3 { color: var(--accent); }
.project-body p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 0.75rem; }
.project-stack { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.project-stack span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 4px;
}
.project-link {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--text-muted);
  transition: color 0.3s, transform 0.3s;
  display: block;
}
.project-card:hover .project-link { color: var(--accent); transform: translateX(8px); }

/* ─────────────────────────────────────────────
   BLOG
───────────────────────────────────────────── */
.blog { background: var(--bg2); }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
}
.blog-card:hover { border-color: rgba(0,229,255,0.2); transform: translateY(-4px); }
.blog-img-placeholder {
  height: 200px;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom: 1px solid var(--border);
}
.blog-content { padding: 1.5rem; }
.blog-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.75rem;
}
.blog-content h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
.blog-content h3 a { transition: color 0.2s; }
.blog-content h3 a:hover { color: var(--accent); }
.blog-content p { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 1rem; }
.blog-meta {
  display: flex; gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ─────────────────────────────────────────────
   CONTACT
───────────────────────────────────────────── */
.contact-inner {
  max-width: 700px; margin: 0 auto;
  text-align: center;
  padding: 4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}
.contact-inner::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent3), var(--accent), var(--accent2));
}
.contact-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
  max-width: 480px; margin-left: auto; margin-right: auto;
}
.social-links {
  display: flex; justify-content: center; gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.social-link {
  width: 44px; height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: border-color 0.3s, color 0.3s, background 0.3s, transform 0.2s;
}
.social-link svg { width: 18px; height: 18px; }
.social-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0,229,255,0.05);
  transform: translateY(-3px);
}

/* ─────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────── */
.footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer p {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}
.footer-sub { font-size: 0.72rem !important; opacity: 0.6; }

/* ─────────────────────────────────────────────
   SCROLL ANIMATIONS
───────────────────────────────────────────── */
.reveal, .reveal-left, .reveal-right {
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal { transform: translateY(40px); }
.reveal-left { transform: translateX(-50px); }
.reveal-right { transform: translateX(50px); }
.reveal.visible, .reveal-left.visible, .reveal-right.visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* ─────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .hero { padding: 5rem 1.5rem 3rem; }
  .hero-scroll-hint { display: none; }
   .hero-content { width: 100%; overflow: hidden; }
.hero-eyebrow { overflow: hidden; text-overflow: clip; }

  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-img-placeholder { aspect-ratio: 4/3; }

  .skills-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item.wide { grid-column: span 1; }

  .project-card { grid-template-columns: 1fr auto; }
  .project-num { display: none; }

  .section { padding: 5rem 0; }
  .skills.section { padding-bottom: 4rem; }
.gallery.section { padding-top: 4rem; }
  .container { padding: 0 1.5rem; }
  .contact-inner { padding: 2rem 1.5rem; }
  .about-stats { gap: 1.5rem; }

  .cursor, .cursor-trail { display: none; }
  body { cursor: auto; }
  a, button { cursor: pointer; }
}

/* Mobile nav open state */
.nav-links.open {
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0;
  background: rgba(8,11,15,0.97);
  backdrop-filter: blur(20px);
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  z-index: 900;
}
.nav-links.open a { font-size: 1.1rem; }
/* ─── NAV RESUME BUTTON ────────────────────────── */
.nav-resume {
  padding: 0.5rem 1.2rem;
  font-size: 0.78rem;
  border-radius: 8px;
  white-space: nowrap;
}
.nav-buttons {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

/* ─── MOBILE NAV CLOSE BUTTON ──────────────────── */
.nav-close-item { display: none; }
.nav-close {
  background: none; border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 0.6rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  letter-spacing: 0.1em;
}
.nav-close:hover { color: var(--accent); border-color: var(--accent); }
.nav-links.open .nav-close-item { display: flex; }

/* ─── NAV TOGGLE ACTIVE (hamburger → X) ────────── */
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-toggle span { transition: all 0.3s ease; transform-origin: center; }

/* ─── TIMELINE ──────────────────────────────────── */
.timeline-section { background: var(--bg2); }
.timeline {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding-left: 2rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 8px; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent), var(--accent3), transparent);
}
.timeline-item {
  position: relative;
  padding: 0 0 3.5rem 2.5rem;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -6px; top: 6px;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--bg2);
  border: 2px solid var(--accent);
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
  z-index: 1;
}
.timeline-dot.active {
  background: var(--accent);
  box-shadow: 0 0 16px rgba(0,229,255,0.5);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,229,255,0.4); }
  50% { box-shadow: 0 0 0 8px rgba(0,229,255,0); }
}
.timeline-item:hover .timeline-dot {
  background: var(--accent);
  transform: scale(1.3);
  box-shadow: 0 0 12px rgba(0,229,255,0.4);
}
.timeline-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.3s, transform 0.3s;
}
.timeline-content:hover { border-color: rgba(0,229,255,0.25); transform: translateX(6px); }
.timeline-content.highlight {
  border-color: rgba(0,229,255,0.3);
  background: rgba(0,229,255,0.04);
}
.timeline-year {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  display: block;
  margin-bottom: 0.6rem;
}
.now-label { color: var(--accent2) !important; }
.timeline-content h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.timeline-content p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 1rem;
}
.timeline-tags {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
}
.timeline-tags span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.25rem 0.6rem;
  background: rgba(168,85,247,0.08);
  border: 1px solid rgba(168,85,247,0.2);
  border-radius: 4px;
  color: var(--accent3);
}
@media (max-width: 768px) {
  .timeline { padding-left: 1.5rem; }
  .timeline-item { padding-left: 2rem; }
  .timeline-content { padding: 1.25rem; }
  .section-title { overflow: hidden; }
}


/* ─── GALLERY SCALE-IN ANIMATION ───────────────── */
.reveal-scale {
  opacity: 0;
  transform: scale(0.92) translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1) var(--d, 0s),
              transform 0.7s cubic-bezier(0.16,1,0.3,1) var(--d, 0s);
}
.reveal-scale.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* ─── MOBILE ALIGNMENT FIXES ────────────────────── */
@media (max-width: 768px) {
  .nav-buttons { display: none; }
  .hero-name { font-size: clamp(2.2rem, 12vw, 4rem); }
  .hero-tags { gap: 0.5rem; }
  .tag { font-size: 0.72rem; padding: 0.35rem 0.75rem; }
  .hero-cta { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .btn-primary, .btn-ghost { width: fit-content; }
  .skills-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .gallery-item.tall, .gallery-item.wide { grid-column: span 1; grid-row: span 1; }
  .project-card { gap: 1rem; padding: 1.5rem 0; }
  .blog-grid { grid-template-columns: 1fr; }
  .about-stats { flex-wrap: wrap; gap: 1.25rem; }
  .section-title { font-size: clamp(1.8rem, 8vw, 2.5rem); }
  .contact-inner { margin: 0 0.5rem; border-radius: 16px; }
     .about-image-wrap { 
    overflow: hidden; 
    padding-right: 0;
    
  }
  .about-img-deco { display: none; }
  .about-img-placeholder {
    aspect-ratio: unset;
    width: 100%;
  }
  .about-img-placeholder img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: unset;
  }
   .about-grid { overflow: hidden; }
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.gallery-item:hover img {
  transform: scale(1.05);
}
/* ─── MOBILE NAV BUTTONS ────────────────────────── */
.nav-mobile-buttons {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  width: 100%;
  padding: 0 2rem;
}
.nav-links.open .nav-mobile-buttons {
  display: flex;
}
.nav-mobile-buttons .btn-primary,
.nav-mobile-buttons .btn-ghost {
  width: 100%;
  text-align: center;
  padding: 0.85rem 2rem;
}

.img-glow-wrap {
  position: relative;
  border-radius: 20px;
  overflow: visible;
}
.img-glow-wrap::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 20px;
  background: transparent;
  box-shadow:
    0 0 60px 10px rgba(0,229,255,0.15),
    0 0 100px 20px rgba(168,85,247,0.1);
  z-index: -1;
  transition: box-shadow 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.img-glow-wrap:hover::after {
  box-shadow:
    0 0 80px 15px rgba(0,229,255,0.2),
    0 0 120px 25px rgba(168,85,247,0.15);
}
.img-glow-wrap img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  position: relative;
  z-index: 1;
}