/* ═══════════════════════════════════════════════════════════════
   SHP-ART Portfolio — Original Design
   ═══════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #05050c;
  --surface:   #0b0b18;
  --surface2:  #111128;
  --border:    rgba(155,109,255,0.11);
  --accent:    #d4af70;
  --accent2:   #9b6dff;
  --text:      #ddd8f0;
  --muted:     #5e5a72;
  --glow-g:    rgba(212,175,112,0.38);
  --glow-p:    rgba(155,109,255,0.32);
  --radius:    14px;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .orb { animation: none; opacity: 0.5; }
  #stars-canvas { display: none; }
  .hero-avatar { animation: none; }
  .scroll-hint { animation: none; }
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

.cursor-glow {
  position: fixed; width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(155,109,255,0.08) 0%, transparent 70%);
  pointer-events: none; z-index: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
  will-change: left, top;
  opacity: 0;
}
.cursor-glow.active { opacity: 1; }

:focus-visible { outline: 2px solid var(--accent2); outline-offset: 3px; }

.skip-link {
  position: absolute; top: -100px; left: 50%;
  transform: translateX(-50%);
  background: var(--accent); color: var(--bg);
  padding: 0.6rem 1.2rem; border-radius: 6px;
  font-weight: 600; z-index: 1000; transition: top 0.3s;
}
.skip-link:focus { top: 1rem; }

#stars-canvas { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

body::after {
  content: ''; position: fixed; inset: 0;
  background:
    radial-gradient(ellipse 130% 130% at 50% 50%, transparent 35%, rgba(5,5,12,0.75) 100%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.03; pointer-events: none; z-index: 0;
}

nav, section, footer, #lightbox { position: relative; z-index: 1; }

/* ─── NAV ─────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 5%;
  background: rgba(5,5,12,0.82);
  backdrop-filter: blur(24px) saturate(1.4);
  border-bottom: 1px solid rgba(155,109,255,0.12);
}
.nav-logo {
  font-family: 'Cinzel', serif; font-size: 1.25rem; font-weight: 700;
  color: var(--accent); letter-spacing: 0.12em; text-decoration: none;
  text-shadow: 0 0 22px var(--glow-g);
}
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  color: var(--muted); text-decoration: none;
  font-size: 0.76rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  transition: color 0.3s, text-shadow 0.3s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 1px; background: var(--accent2);
  transform: scaleX(0); transition: transform 0.3s var(--ease-out-expo);
}
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a:hover { color: var(--text); }

.menu-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 8px; z-index: 110;
}
.menu-toggle span {
  width: 24px; height: 2px; background: var(--accent);
  transition: transform 0.3s, opacity 0.3s;
}
.menu-toggle.active span:first-child { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:last-child { transform: rotate(-45deg) translate(5px, -5px); }

/* ─── HERO ────────────────────────────────────────────── */
#hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 8rem 5% 6rem; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 50% 50% at 15% 20%, rgba(155,109,255,0.17) 0%, transparent 60%),
    radial-gradient(ellipse 40% 35% at 82% 15%, rgba(212,175,112,0.11) 0%, transparent 55%),
    radial-gradient(ellipse 55% 40% at 50% 85%, rgba(61,107,158,0.13) 0%, transparent 60%),
    radial-gradient(ellipse 30% 30% at 88% 72%, rgba(155,109,255,0.09) 0%, transparent 50%),
    url('https://www.shp-art.de/wp-content/uploads/2014/06/Steffi_entwurf-7645_SHP-ART-e1475866813891.jpg') center/cover no-repeat;
  opacity: 0.22; filter: saturate(0.25) brightness(0.65);
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, var(--bg) 0%, transparent 22%, transparent 78%, var(--bg) 100%);
}

.orb {
  position: absolute; border-radius: 50%; pointer-events: none;
  filter: blur(70px); animation: floatOrb 14s ease-in-out infinite;
  will-change: transform;
}
.orb-1 { width: 440px; height: 440px; background: rgba(155,109,255,0.06); top: -12%; left: -16%; animation-delay: 0s; }
.orb-2 { width: 320px; height: 320px; background: rgba(212,175,112,0.055); top: 15%; right: -12%; animation-delay: -5s; }
.orb-3 { width: 260px; height: 260px; background: rgba(61,107,158,0.07); bottom: 0; left: 28%; animation-delay: -9s; }
@keyframes floatOrb {
  0%,100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(28px,-18px) scale(1.06); }
  66%      { transform: translate(-18px,14px) scale(0.96); }
}
@media (prefers-reduced-motion: no-preference) { .orb { transition: transform 0.1s linear; } }

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

.hero-avatar {
  width: 120px; height: 120px; border-radius: 50%;
  border: 2px solid rgba(212,175,112,0.45);
  object-fit: cover; margin-bottom: 1.8rem;
  animation: avatarPulse 5s ease-in-out infinite;
}
@keyframes avatarPulse {
  0%,100% { box-shadow: 0 0 0 4px rgba(155,109,255,0.12), 0 0 0 9px rgba(212,175,112,0.05), 0 0 40px var(--glow-g), 0 0 90px rgba(155,109,255,0.14); }
  50%      { box-shadow: 0 0 0 6px rgba(155,109,255,0.22), 0 0 0 14px rgba(212,175,112,0.07), 0 0 60px rgba(212,175,112,0.5), 0 0 110px rgba(155,109,255,0.24); }
}

.hero-tag {
  display: inline-block; font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); background: rgba(212,175,112,0.05);
  border: 1px solid rgba(212,175,112,0.16);
  padding: 0.3rem 1rem; border-radius: 100px; margin-bottom: 1.2rem;
}
h1 {
  font-family: 'Cinzel', serif; font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 700; line-height: 1.1; margin-bottom: 1.2rem;
  background: linear-gradient(150deg, #fff 15%, var(--accent) 55%, var(--accent2) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  filter: drop-shadow(0 0 28px rgba(212,175,112,0.18));
}
.hero-sub {
  font-size: 1.05rem; color: var(--muted);
  max-width: 520px; margin: 0 auto 2rem; line-height: 1.82;
}
.hero-quote {
  font-family: 'Cinzel', serif; font-style: italic; font-size: 0.88rem;
  color: rgba(212,175,112,0.58); margin-bottom: 1.8rem; letter-spacing: 0.03em;
}
.hero-promise {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.83rem; font-weight: 600; letter-spacing: 0.06em;
  color: var(--accent); background: rgba(212,175,112,0.05);
  border: 1px solid rgba(212,175,112,0.18);
  padding: 0.55rem 1.2rem; border-radius: 100px; margin-bottom: 2.4rem;
  text-shadow: 0 0 18px var(--glow-g);
}
.btn-group { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.6rem; border-radius: 8px;
  font-weight: 600; font-size: 0.875rem; font-family: 'Inter', sans-serif;
  text-decoration: none; transition: all 0.3s;
  border: 1.5px solid transparent; cursor: pointer;
  position: relative; overflow: hidden;
}
.btn::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.15) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.3s;
}
.btn:hover::before { opacity: 1; }
.btn-primary {
  background: linear-gradient(135deg, #c9a84c, #d4af70);
  color: #05050c; box-shadow: 0 4px 22px rgba(212,175,112,0.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 36px rgba(212,175,112,0.48); }
.btn-outline {
  border-color: rgba(155,109,255,0.28); color: var(--text);
  background: rgba(155,109,255,0.04);
}
.btn-outline:hover { border-color: var(--accent2); color: var(--accent2); transform: translateY(-2px); box-shadow: 0 6px 24px var(--glow-p); }

.scroll-hint {
  position: absolute; bottom: 2.4rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  color: var(--muted); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  animation: bounce 3s ease-in-out infinite;
}
.scroll-hint svg { opacity: 0.3; }
@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(10px)} }

/* ─── SECTIONS ────────────────────────────────────────── */
section { padding: 6rem 5%; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-label {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent2); margin-bottom: 0.6rem;
  animation: shimmer 3.5s ease-in-out infinite;
}
@keyframes shimmer { 0%,100% { opacity: 0.7; } 50% { opacity: 1; text-shadow: 0 0 16px var(--glow-p); } }
.section-title {
  font-family: 'Cinzel', serif; font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700; margin-bottom: 0.8rem; line-height: 1.15;
  background: linear-gradient(135deg, var(--text) 45%, var(--accent) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.section-desc { color: var(--muted); max-width: 560px; margin-bottom: 3.5rem; line-height: 1.82; }
.divider {
  border: none; height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(155,109,255,0.3) 30%, rgba(212,175,112,0.35) 50%, rgba(155,109,255,0.3) 70%, transparent 100%);
  margin: 0;
}

/* ─── ABOUT ───────────────────────────────────────────── */
#about { background: linear-gradient(180deg, var(--surface) 0%, rgba(11,11,24,0.97) 100%); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-text h2 { font-family: 'Cinzel', serif; font-size: 1.85rem; margin-bottom: 1rem; }
.about-text p { color: var(--muted); margin-bottom: 1rem; line-height: 1.88; }
.about-text a { color: var(--accent); text-decoration: none; transition: text-shadow 0.2s; }
.about-text a:hover { text-shadow: 0 0 12px var(--glow-g); }
.stats-row { display: flex; gap: 2rem; margin-top: 2rem; flex-wrap: wrap; }
.stat { text-align: center; }
.stat-num { font-size: 2.2rem; font-weight: 700; color: var(--accent); line-height: 1; text-shadow: 0 0 22px var(--glow-g); }
.stat-label { font-size: 0.74rem; color: var(--muted); margin-top: 0.3rem; letter-spacing: 0.05em; }
.about-image {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5;
  box-shadow: 0 0 60px rgba(155,109,255,0.15), 0 24px 64px rgba(0,0,0,0.6);
  border: 1px solid var(--border);
}
.about-image img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.82) saturate(0.8);
  transition: transform 0.6s, filter 0.5s;
}
.about-image:hover img { transform: scale(1.04); filter: brightness(1) saturate(1); }
.about-image::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(5,5,12,0.72) 0%, rgba(155,109,255,0.03) 50%, transparent 100%);
}

/* ─── PHOTOGRAPHY ─────────────────────────────────────── */
#photography { background: var(--bg); }

.category-filter {
  display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 2rem;
}
.category-filter button {
  font-family: 'Inter', sans-serif; font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); background: rgba(11,11,24,0.5);
  border: 1px solid var(--border); border-radius: 100px;
  padding: 0.4rem 1rem; cursor: pointer;
  transition: all 0.3s;
}
.category-filter button:hover,
.category-filter button.active {
  color: var(--accent); border-color: rgba(212,175,112,0.4);
  background: rgba(212,175,112,0.06);
}

.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.photo-item {
  position: relative; overflow: hidden; border-radius: var(--radius);
  cursor: pointer; background: var(--surface2);
  border: 1px solid transparent;
  transition: border-color 0.4s, box-shadow 0.4s;
  user-select: none; -webkit-user-select: none;
}
.photo-item:first-child { grid-column: span 2; grid-row: span 2; }
.photo-item img {
  width: 100%; height: 100%; min-height: 220px; object-fit: cover; display: block;
  transition: transform 0.6s ease, filter 0.5s ease;
  filter: brightness(0.65) saturate(0.2) contrast(1.12);
  pointer-events: none; -webkit-user-drag: none;
}
.photo-item:hover {
  border-color: rgba(155,109,255,0.4);
  box-shadow: 0 0 32px rgba(155,109,255,0.2), inset 0 0 32px rgba(155,109,255,0.04);
}
.photo-item:hover img { transform: scale(1.07); filter: brightness(1) saturate(1.1) contrast(1); }
.photo-overlay {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(to top, rgba(5,5,12,0.88) 0%, rgba(155,109,255,0.06) 55%, transparent 100%);
  display: flex; align-items: flex-end; padding: 1.2rem;
  opacity: 0; transition: opacity 0.4s;
}
.photo-item:hover .photo-overlay { opacity: 1; }
.photo-overlay-text {
  font-family: 'Cinzel', serif; font-size: 0.78rem; font-weight: 600;
  color: var(--accent); letter-spacing: 0.1em; text-shadow: 0 0 10px var(--glow-g);
}
.photo-cta { margin-top: 2.5rem; display: flex; justify-content: center; flex-direction: column; gap: 1rem; align-items: center; }

.img-skeleton {
  background: linear-gradient(90deg, var(--surface2) 25%, var(--surface) 50%, var(--surface2) 75%);
  background-size: 200% 100%; animation: shimmer-skeleton 1.5s infinite;
}
@keyframes shimmer-skeleton { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

img { transition: opacity 0.4s; }
img[loading="lazy"] { opacity: 0; }
img[loading="lazy"].loaded { opacity: 1; }

/* ─── LIGHTBOX ────────────────────────────────────────── */
#lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(3,3,9,0.97); backdrop-filter: blur(10px);
  display: none; align-items: center; justify-content: center; padding: 2rem;
  user-select: none; -webkit-user-select: none;
}
#lightbox.active { display: flex; }
#lightbox img {
  max-width: 90vw; max-height: 88vh; object-fit: contain; border-radius: 6px;
  box-shadow: 0 0 80px rgba(155,109,255,0.28); transition: opacity 0.15s;
  pointer-events: none; -webkit-user-drag: none;
}
#lightbox-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  background: none; border: none; color: var(--accent); font-size: 2rem;
  cursor: pointer; opacity: 0.6; transition: opacity 0.2s, text-shadow 0.2s;
}
#lightbox-close:hover { opacity: 1; text-shadow: 0 0 16px var(--glow-g); }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(11,11,24,0.8); border: 1px solid var(--border);
  color: var(--text); width: 48px; height: 48px; border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.3s; backdrop-filter: blur(8px);
}
.lightbox-nav:hover { background: rgba(155,109,255,0.3); border-color: var(--accent2); }
.lightbox-nav.prev { left: 1.5rem; }
.lightbox-nav.next { right: 1.5rem; }
.lightbox-counter {
  position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  font-size: 0.8rem; color: var(--muted);
  background: rgba(11,11,24,0.8); padding: 0.4rem 1rem;
  border-radius: 100px; backdrop-filter: blur(8px);
}
.lightbox-info {
  position: absolute; bottom: 4rem; left: 50%; transform: translateX(-50%);
  font-size: 0.9rem; color: var(--text); max-width: 600px; text-align: center;
  background: rgba(11,11,24,0.85); padding: 0.6rem 1.4rem;
  border-radius: var(--radius); backdrop-filter: blur(8px);
  line-height: 1.5;
}
.lightbox-info:empty { display: none; }

/* ─── PROGRAMMING ─────────────────────────────────────── */
#programming { background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%); }
.projects-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.2rem;
}
.project-card {
  background: rgba(11,11,24,0.72); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.6rem;
  text-decoration: none; display: flex; flex-direction: column; gap: 0.8rem;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  backdrop-filter: blur(8px);
}
.project-card:hover {
  border-color: rgba(155,109,255,0.42); transform: translateY(-5px);
  box-shadow: 0 16px 44px rgba(155,109,255,0.16), 0 0 0 1px rgba(155,109,255,0.09);
}
.project-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.project-icon { font-size: 1.6rem; line-height: 1; }
.project-link-icon { color: var(--muted); opacity: 0.4; transition: opacity 0.2s, color 0.2s; }
.project-card:hover .project-link-icon { opacity: 1; color: var(--accent2); }
.project-name { font-weight: 700; font-size: 1rem; color: var(--text); margin-bottom: 0.2rem; }
.project-desc { font-size: 0.85rem; color: var(--muted); line-height: 1.65; flex: 1; }
.project-lang { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.74rem; color: var(--muted); }
.lang-dot { width: 10px; height: 10px; border-radius: 50%; }
.lang-ts  { background: #3178c6; }
.lang-py  { background: #3572A5; }
.lang-js  { background: #f1e05a; }
.lang-cpp { background: #f34b7d; }
.lang-sh  { background: #89e051; }

/* ─── SKILLS ──────────────────────────────────────────── */
#skills { background: var(--bg); }
.skills-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.skill-col h3 { font-family: 'Cinzel', serif; font-size: 1.3rem; margin-bottom: 1.5rem; }
.skill-item { margin-bottom: 1.4rem; }
.skill-top { display: flex; justify-content: space-between; margin-bottom: 0.4rem; }
.skill-name { font-size: 0.875rem; font-weight: 600; }
.skill-pct { font-size: 0.78rem; color: var(--muted); }
.skill-bar { height: 4px; background: rgba(155,109,255,0.1); border-radius: 100px; overflow: hidden; }
.skill-fill {
  height: 100%; border-radius: 100px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent2) 100%);
  width: 0; transition: width 1.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 8px var(--glow-g);
}

/* ─── SOCIAL ──────────────────────────────────────────── */
#connect { background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%); }
.social-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem;
}
.social-card {
  display: flex; flex-direction: column; align-items: center;
  gap: 0.9rem; padding: 2.2rem 1.5rem;
  background: rgba(11,11,24,0.65); border: 1px solid var(--border);
  border-radius: var(--radius); text-decoration: none;
  transition: all 0.3s; text-align: center; backdrop-filter: blur(8px);
}
.social-card:hover { transform: translateY(-5px); }
.social-name { font-weight: 700; font-size: 0.95rem; color: var(--text); }
.social-handle { font-size: 0.8rem; color: var(--muted); }
.s-github:hover    { border-color: rgba(255,255,255,0.28); box-shadow: 0 8px 32px rgba(255,255,255,0.06); }
.s-instagram:hover { border-color: #e1306c; box-shadow: 0 8px 32px rgba(225,48,108,0.2); }
.s-threads:hover   { border-color: rgba(200,200,200,0.3); box-shadow: 0 8px 32px rgba(200,200,200,0.08); }
.s-youtube:hover   { border-color: #ff0000; box-shadow: 0 8px 32px rgba(255,0,0,0.2); }
.s-website:hover   { border-color: var(--accent); box-shadow: 0 8px 32px var(--glow-g); }

/* ─── FOOTER ──────────────────────────────────────────── */
footer {
  padding: 3rem 5%; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; background: var(--bg);
}
.footer-logo { font-family: 'Cinzel', serif; font-size: 1.15rem; color: var(--accent); font-weight: 700; text-shadow: 0 0 18px var(--glow-g); }
.footer-copy { font-size: 0.78rem; color: var(--muted); }

.back-to-top {
  position: fixed; bottom: 2rem; right: 2rem;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(155,109,255,0.15); border: 1px solid rgba(155,109,255,0.3);
  color: var(--accent2); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(20px);
  transition: all 0.4s var(--ease-out-expo); z-index: 90;
  backdrop-filter: blur(8px);
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover {
  background: rgba(155,109,255,0.25); transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(155,109,255,0.3);
}

/* ─── ANIMATIONS ──────────────────────────────────────── */
.fade-up { opacity: 0; transform: translateY(32px); transition: opacity 0.85s ease, transform 0.85s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ─── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-image { aspect-ratio: 16/9; order: -1; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-item:first-child { grid-column: span 2; grid-row: span 1; }
  .skills-grid { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .nav-links {
    position: fixed; top: 0; right: 0; bottom: 0; left: 0;
    width: 100%; height: 100vh;
    z-index: 9999;
    flex-direction: column; gap: 0;
    background: #05050c;
    padding: 6rem 2rem 2rem;
    transform: translateX(100%); transition: transform 0.4s var(--ease-out-expo);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links li { border-bottom: 1px solid var(--border); }
  .nav-links a { display: block; padding: 1.2rem 0; font-size: 1.1rem; color: var(--text); font-weight: 600; }
  .lightbox-nav { width: 40px; height: 40px; }
  .lightbox-nav.prev { left: 0.5rem; }
  .lightbox-nav.next { right: 0.5rem; }
}
@media (max-width: 640px) {
  nav { padding: 1rem 4%; }
  .photo-grid { grid-template-columns: 1fr; }
  .photo-item:first-child { grid-column: span 1; }
  section { padding: 4.5rem 5%; }
  .back-to-top { bottom: 1rem; right: 1rem; width: 42px; height: 42px; }
}
