:root {
  --bg: #05060f;
  --bg-soft: #0b0e22;
  --accent: #7c5cff;
  --accent-2: #22d3ee;
  --accent-3: #ff5cc8;
  --text: #e8ecff;
  --muted: #9aa3c7;
  --card: rgba(18, 22, 54, 0.55);
  --border: rgba(124, 92, 255, 0.25);
  
  /* Profile panel colors */
  --profile-bg: radial-gradient(ellipse at 50% 20%, #0b1330 0%, #050814 45%, #010208 100%);
  --profile-text: #dff5f2;
  --profile-accent: #7fe9de;
}

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

html, body {
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: 'Raleway', system-ui, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ===== CUSTOM CURSOR ===== */
.custom-cursor {
  position: fixed;
  width: 10px;
  height: 10px;
  background: var(--profile-accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.05s ease-out, background 0.3s ease;
  box-shadow: 0 0 15px var(--profile-accent), 0 0 30px var(--profile-accent);
}

.custom-cursor.hover {
  transform: scale(2.5);
  background: #fff;
  box-shadow: 0 0 20px #fff, 0 0 40px var(--profile-accent);
}

.custom-cursor.pressed {
  transform: scale(0.7);
}

/* ===== FONDS ANIMÉS (premier site) ===== */
#starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.nebula {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(600px 500px at 15% 20%, rgba(124, 92, 255, 0.28), transparent 60%),
    radial-gradient(700px 600px at 85% 30%, rgba(34, 211, 238, 0.18), transparent 60%),
    radial-gradient(500px 500px at 50% 90%, rgba(255, 92, 200, 0.16), transparent 60%);
  filter: blur(10px);
  animation: drift 24s ease-in-out infinite alternate;
}

@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-3%, 3%, 0) scale(1.1); }
}

#cosmicDust {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
}

.dust-particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--profile-accent);
  border-radius: 50%;
  filter: blur(0.5px);
  opacity: 0.4;
}

@keyframes floatDust {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.4; }
  25% { transform: translate(20px, -30px) scale(1.2); opacity: 0.6; }
  50% { transform: translate(-10px, 20px) scale(0.9); opacity: 0.5; }
  75% { transform: translate(30px, 10px) scale(1.1); opacity: 0.4; }
}

/* ===== SPLASH SCREEN & HYPERSPACE ===== */
#splash {
  position: fixed;
  inset: 0;
  background: #050814;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 1s ease, visibility 1s;
}

#splash.hidden {
  opacity: 0;
  visibility: hidden;
}

.splash-text {
  color: var(--profile-accent);
  font-family: 'Orbitron', sans-serif;
  font-size: 64px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  animation: splashPulse 2s infinite ease-in-out;
}

@keyframes splashPulse {
  0%, 100% { opacity: 0.4; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1); }
}

.hyperspace-container {
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
  overflow: hidden;
}

.streak {
  position: absolute;
  top: 50%;
  left: 50%;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.9), #fff, rgba(255,255,255,0.9), transparent);
  width: 1.5px;
  height: 200px;
  opacity: 0;
  filter: blur(0.5px);
}

/* ===== SCENE AVEC PANNEAUX GLISSANTS (deuxième site) ===== */
#scene {
  position: relative;
  z-index: 1;
  display: flex;
  width: 400vw;
  height: 100vh;
  transition: transform 1.1s cubic-bezier(.65, 0, .25, 1);
}

.panel {
  width: 100vw;
  height: 100vh;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  position: relative;
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
  transform: translateY(30px);
}

.panel.active {
  opacity: 1;
  transform: translateY(0);
}

/* ===== NAVIGATION DOTS ===== */
.dots {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  gap: 10px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background .25s ease, transform .25s ease;
}

.dot:hover { background: rgba(255, 255, 255, 0.5); }
.dot.active {
  background: var(--profile-accent);
  transform: scale(1.25);
}

/* ===== NAVIGATION FLÈCHES (nouveau système) ===== */
.nav-btn {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(124, 92, 255, 0.15);
  border: 1px solid rgba(124, 92, 255, 0.3);
  color: var(--text);
  cursor: pointer;
  z-index: 101;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: fadeInNav 0.5s ease forwards 0.5s;
}

.nav-btn:hover {
  background: rgba(124, 92, 255, 0.3);
  border-color: var(--accent);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 20px rgba(124, 92, 255, 0.4);
}

.nav-btn svg {
  width: 24px;
  height: 24px;
}

.nav-prev { left: 20px; }
.nav-next { right: 20px; }

@keyframes fadeInNav {
  from { opacity: 0; transform: translateY(-50%) translateX(10px); }
  to { opacity: 1; transform: translateY(-50%) translateX(0); }
}

@media (max-width: 768px) {
  .nav-btn {
    width: 40px;
    height: 40px;
  }
  
  .nav-btn svg {
    width: 20px;
    height: 20px;
  }
  
  .nav-prev { left: 10px; }
  .nav-next { right: 10px; }
}

/* ===== NAVIGATION TABS (nouveau système) ===== */
.nav-tabs {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  padding: 8px;
  background: rgba(18, 22, 54, 0.5);
  border: 1px solid rgba(124, 92, 255, 0.25);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  z-index: 101;
}

.nav-tab {
  padding: 8px 16px;
  background: transparent;
  border: none;
  color: var(--muted);
  font-family: 'Raleway', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.nav-tab::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(124, 92, 255, 0.15);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  border-radius: 8px;
}

.nav-tab:hover::before {
  transform: scaleX(1);
}

.nav-tab:hover {
  color: var(--text);
}

.nav-tab.active {
  color: var(--text);
  background: rgba(124, 92, 255, 0.25);
  border: 1px solid rgba(124, 92, 255, 0.4);
}

.nav-tab.active::before {
  transform: scaleX(1);
}

@media (max-width: 768px) {
  .nav-tabs {
    top: 10px;
    padding: 6px;
    gap: 4px;
  }
  
  .nav-tab {
    padding: 6px 12px;
    font-size: 0.75rem;
  }
}

/* ===== HUB STELLAIRE (premier site) ===== */
.hub-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 1.5rem 4rem;
}

.hero { text-align: center; margin-bottom: 3rem; }

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.logo-mark {
  font-size: 2.4rem;
  color: var(--accent-2);
  animation: spin 8s linear infinite;
  text-shadow: 0 0 24px rgba(34, 211, 238, 0.7);
}

@keyframes spin { to { transform: rotate(360deg); } }

.logo h1 {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: clamp(2.4rem, 8vw, 4.2rem);
  letter-spacing: 0.15em;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 30px rgba(124, 92, 255, 0.4));
}

.tagline {
  color: var(--muted);
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  margin-bottom: 1.4rem;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.9rem;
  color: var(--muted);
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
}

.dot-status {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 12px #34d399;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.search { text-align: center; margin-bottom: 2.5rem; }

.search input {
  width: 100%;
  max-width: 480px;
  padding: 0.9rem 1.3rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  backdrop-filter: blur(8px);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.search input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.2);
}

.search-hint {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.85rem;
  min-height: 1.2em;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.4rem;
}

@media (min-width: 768px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) and (min-width: 500px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 499px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

.card {
  position: relative;
  padding: 1.6rem;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  text-decoration: none;
  color: var(--text);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  animation: rise 0.6s ease both;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(360px 200px at var(--mx, 50%) var(--my, 0%), rgba(124, 92, 255, 0.22), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 12px 40px rgba(124, 92, 255, 0.28);
}

.card:hover::before { opacity: 1; }
.card > * { position: relative; z-index: 1; }

.card-icon {
  font-size: 2rem;
  margin-bottom: 0.9rem;
  filter: drop-shadow(0 0 10px rgba(34, 211, 238, 0.5));
}

.card h3 {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  margin-bottom: 0.4rem;
}

.card .domain {
  font-size: 0.8rem;
  color: var(--accent-2);
  letter-spacing: 0.05em;
  margin-bottom: 0.8rem;
}

.card p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
  flex: 1;
}

.card .arrow {
  margin-top: 1.1rem;
  align-self: flex-start;
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  transition: transform 0.25s;
}

.card:hover .arrow { transform: translateX(6px); }
.card.hidden { display: none; }

@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.footer {
  text-align: center;
  margin-top: 3.5rem;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

/* ===== PROFIL (inspiré deuxième site) ===== */
.profile-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

/* Eclipse animation */
.eclipse-wrap {
  position: relative;
  width: 190px;
  height: 190px;
  margin-bottom: 34px;
}

.corona {
  position: absolute;
  inset: -42px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(255,244,214,0.95) 0%,
    rgba(255,229,163,0.55) 12%,
    rgba(255,200,120,0.18) 26%,
    rgba(255,200,120,0.06) 42%,
    rgba(255,200,120,0) 62%);
  filter: blur(1px);
  animation: pulseCorona 6s ease-in-out infinite, rotateCorona 30s linear infinite;
  z-index: 1;
}

@keyframes pulseCorona {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.045); opacity: 0.92; }
}

@keyframes rotateCorona {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.sundisc {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  z-index: 2;
  background: radial-gradient(circle at 45% 40%, #fff9e6 0%, #ffe9a8 35%, #ffcf6b 60%, #ffb648 100%);
  box-shadow: 0 0 50px 14px rgba(255,210,130,.55);
}

.moon {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  z-index: 3;
  transition: transform 1.1s cubic-bezier(.65,0,.25,1);
  box-shadow:
    0 0 40px 6px rgba(255,225,170,.35),
    inset -8px -6px 22px rgba(0,0,0,.55),
    inset 4px 4px 14px rgba(255,220,170,.15);
  background: #05050a;
}

.moon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.03) brightness(.97);
}

.moon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 26px 10px rgba(0,0,0,.5);
  pointer-events: none;
}

.diamond {
  position: absolute;
  width: 14px;
  height: 14px;
  top: 4px;
  left: 50%;
  margin-left: -7px;
  background: #fff8e0;
  border-radius: 50%;
  box-shadow: 0 0 22px 10px rgba(255,248,224,.9), 0 0 60px 26px rgba(255,220,150,.4);
  animation: sparkle 3.4s ease-in-out infinite;
  transition: opacity .6s ease;
  z-index: 4;
}

@keyframes sparkle {
  0%, 100% { opacity: .6; transform: scale(.85) translateX(-3px); }
  50% { opacity: 1; transform: scale(1.1) translateX(3px); }
}

/* Profile card */
.profile-card {
  position: relative;
  width: 100%;
  max-width: 380px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 24px;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 25px 60px rgba(0,0,0,.5), inset 0 0 20px rgba(255,255,255,0.05);
  padding: 30px 26px 26px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.profile-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255,255,255,0.08) 0%, transparent 40%);
  pointer-events: none;
  transition: background 0.3s ease;
}

.profile-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 70px rgba(0,0,0,.6), inset 0 0 25px rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,.2);
}

.uname {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: var(--profile-text);
  letter-spacing: .02em;
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  cursor: pointer;
  position: relative;
}

.uname::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.8);
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  white-space: nowrap;
}

.uname:hover::after { opacity: 1; }
.uname.copied::after { content: "Copié !"; color: var(--profile-accent); }

.status-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #747f8d;
  border: 2px solid rgba(5,8,20,.6);
  flex: none;
  transition: background .3s ease;
}

.status-dot[data-status="online"] { background: #3ba55d; }
.status-dot[data-status="idle"] { background: #faa61a; }
.status-dot[data-status="dnd"] { background: #ed4245; }
.status-dot[data-status="offline"] { background: #747f8d; }
.status-dot[data-status="loading"] { background: #747f8d; animation: pulseLoading 1.6s infinite; }

@keyframes pulseLoading {
  0% { opacity: 1; }
  50% { opacity: 0.4; }
  100% { opacity: 1; }
}

.status-label {
  font-size: 12px;
  color: rgba(223,245,242,.65);
  margin-bottom: 8px;
}

.profile-tagline {
  font-size: 12px;
  color: var(--profile-accent);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin: 0 0 16px;
}

.bio {
  font-size: 14.5px;
  line-height: 1.55;
  color: rgba(223,245,242,.85);
  margin: 0 0 24px;
}

/* Music widget */
.music-widget {
  display: none;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 13px;
  padding: 9px 12px;
  text-align: left;
  margin-bottom: 20px;
}

.music-widget.active { display: flex; }

.music-widget img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: cover;
  flex: none;
  background: #222;
}

.music-widget .txt { flex: 1; min-width: 0; }

.music-widget .track {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--profile-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.music-widget .artist {
  font-size: 11px;
  color: rgba(223,245,242,.65);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.music-widget .pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3ba55d;
  flex: none;
  box-shadow: 0 0 0 0 rgba(59,165,93,.6);
  animation: pulseDot 1.6s infinite;
}

@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(59,165,93,.5); }
  70% { box-shadow: 0 0 0 7px rgba(59,165,93,0); }
  100% { box-shadow: 0 0 0 0 rgba(59,165,93,0); }
}

/* Social links */
.socials {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.socials a {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  color: #bdf3ec;
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  position: relative;
  overflow: hidden;
}

.socials a::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(127,233,222,0.3), transparent 60%);
  opacity: 0;
  transition: opacity .2s ease;
}

.socials a:hover {
  background: rgba(127,233,222,.18);
  color: #eafffb;
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 8px 25px rgba(127,233,222,0.3), inset 0 0 10px rgba(127,233,222,0.2);
}

.socials a:hover::before { opacity: 1; }

.socials svg { 
  width: 18px;
  height: 18px;
  transition: transform .2s ease;
}

.socials a:hover svg { transform: rotate(360deg); }

.caption {
  margin-top: 26px;
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
}

/* ===== ALBUM PHOTO ===== */
.album-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.album-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--profile-text);
  margin: 0 0 22px;
  text-align: center;
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 420px;
}

.photo {
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  transition: transform 0.3s cubic-bezier(.34,1.56,.64,1);
}

.photo:hover {
  transform: scale(1.05) rotate(1deg);
  border-color: rgba(255,255,255,.3);
}

.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.photo.clicking img {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform: scale(1.2);
}

/* ===== PROJETS EN COURS ===== */
.projects-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.project-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 380px;
}

.project-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 16px;
  padding: 14px 16px;
  text-align: left;
}

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

.project-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--profile-text);
}

.project-badge {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--profile-accent);
  border: 1px solid rgba(127,233,222,.4);
  padding: 2px 8px;
  border-radius: 999px;
  flex: none;
}

.project-desc {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(223,245,242,.75);
  margin: 0;
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(3,5,14,.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}

.lightbox.open { opacity: 1; pointer-events: auto; }

.lb-stage {
  position: relative;
  width: min(95vw,800px);
  height: min(95vw,800px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lb-corona {
  position: absolute;
  inset: -10%;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(255,244,214,.9) 0%,
    rgba(255,229,163,.5) 14%,
    rgba(255,200,120,.16) 30%,
    rgba(255,200,120,.05) 48%,
    transparent 68%);
  filter: blur(2px);
  animation: pulseCorona 4s ease-in-out infinite;
}

.lb-ring {
  position: absolute;
  inset: -4%;
  border-radius: 50%;
  background: conic-gradient(from 0deg,
    rgba(255,255,255,0) 0deg,
    rgba(255,235,180,.55) 40deg,
    rgba(255,255,255,0) 90deg,
    rgba(255,235,180,.35) 200deg,
    rgba(255,255,255,0) 260deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 5px));
  animation: lbSpin 9s linear infinite;
}

@keyframes lbSpin { to { transform: rotate(360deg); } }

.lb-img-wrap {
  position: relative;
  z-index: 2;
  width: auto;
  height: auto;
  max-width: min(90vw, 800px);
  max-height: 85vh;
  border-radius: 26px;
  overflow: hidden;
  border: 3px solid rgba(255,255,255,.5);
  box-shadow: 0 0 60px 10px rgba(255,225,170,.35), 0 20px 60px rgba(0,0,0,.5);
  transform: scale(.85);
  opacity: 0;
  transition: transform .4s cubic-bezier(.2,.8,.3,1.2), opacity .4s ease;
}

.lightbox.open .lb-img-wrap { transform: scale(1); opacity: 1; }

.lb-img-wrap img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  display: block;
}

.lb-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.2);
  color: var(--profile-text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
}

.lb-close:hover { background: rgba(255,255,255,.16); }
.lb-close svg { width: 18px; height: 18px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .logo h1 { font-size: clamp(1.8rem, 10vw, 2.8rem); }
  
  .profile-card { max-width: 90%; padding: 24px 20px; }
  
  .album-grid { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); }
  
  .eclipse-wrap { width: 150px; height: 150px; }
  .eclipse-wrap .corona { inset: -34px; }
}
