/* ============================================================
   style-wow.css — alberto.bigoni.eu (version: wow)
   ============================================================ */

/* TOKENS */
:root {
  --bg:       #050508;
  --text:     #f0ede8;
  --muted:    rgba(240,237,232,0.42);
  --a:        #a855f7;
  --b:        #38bdf8;
  --grad:     linear-gradient(135deg, #a855f7 0%, #38bdf8 100%);
  --border:   rgba(255,255,255,0.07);
  --glass:    rgba(255,255,255,0.03);
  --radius:   14px;
  --nav-h:    64px;
  --max-w:    1080px;
  --serif:    'DM Serif Display', Georgia, serif;
  --ease:     0.3s ease;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); font-size: 16px; -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--text); font-family: 'Inter', system-ui, sans-serif; line-height: 1.65; overflow-x: hidden; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* UTIL */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 2.5rem; position: relative; z-index: 1; }
.anchor { display: block; height: 0; visibility: hidden; pointer-events: none; }

/* ── BACKGROUND ORBS ── */
.bg-orbs { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(130px); opacity: 0.11; animation: drift 30s ease-in-out infinite; }
.orb-1 { width: 760px; height: 760px; background: var(--a); top: -240px; left: -200px; }
.orb-2 { width: 580px; height: 580px; background: var(--b); top: 42%; right: -160px; animation-delay: -11s; animation-duration: 23s; }
.orb-3 { width: 460px; height: 460px; background: var(--a); bottom: -80px; left: 32%; animation-delay: -19s; animation-duration: 37s; }

@keyframes drift {
  0%,100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(44px,-38px) scale(1.07); }
  67%      { transform: translate(-32px,28px) scale(0.93); }
}

/* ── REVEAL ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; }

/* ── NAV ── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2.5rem; z-index: 200;
  transition: background var(--ease), border-bottom var(--ease);
}
#navbar.scrolled {
  background: rgba(5,5,8,0.88);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.nav-logo { font-family: var(--serif); font-size: 1.1rem; transition: opacity var(--ease); }
.nav-logo:hover { opacity: 0.65; }

.nav-links {
  position: fixed; top: 0; right: 2.5rem; height: var(--nav-h);
  display: flex; gap: 2rem; align-items: center;
  list-style: none; margin: 0; padding: 0; z-index: 9999;
}
.nav-links a { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); transition: color var(--ease); }
.nav-links a:hover, .nav-links a.active { color: var(--text); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--text); padding: 0.25rem; }

/* ── HERO ── */
.hero {
  position: relative; min-height: 100vh; z-index: 1;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--nav-h) + 3rem) 2.5rem 5rem;
  max-width: var(--max-w); margin: 0 auto;
}
.hero-eyebrow { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.25rem; }
.hero h1 { font-family: var(--serif); font-size: clamp(5.5rem, 14vw, 12rem); line-height: 0.87; letter-spacing: -0.02em; margin-bottom: 2.5rem; }
.hero-fill { display: block; font-style: italic; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-outline { display: block; color: transparent; -webkit-text-stroke: 1.5px rgba(240,237,232,0.22); }
.hero-roles { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; margin-bottom: 0.6rem; }
.hero-role { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.hero-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--a); opacity: 0.7; }
.hero-loc { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: rgba(240,237,232,0.45); margin-bottom: 2.5rem; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.scroll-hint {
  position: absolute; bottom: 2.5rem; left: 0;
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem;
  color: var(--muted); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none; transition: color var(--ease);
}
.scroll-hint:hover { color: var(--text); }
.scroll-bar { width: 1px; height: 48px; background: linear-gradient(to bottom, rgba(168,85,247,0.7), transparent); animation: bar 2.4s ease-in-out infinite; }
@keyframes bar { 0%,100%{opacity:.8; transform:scaleY(1)} 50%{opacity:.2; transform:scaleY(0.35)} }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.75rem; border-radius: 999px;
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  transition: all var(--ease); border: 1px solid var(--border);
  background: var(--glass); color: var(--text); backdrop-filter: blur(8px);
  cursor: pointer;
}
.btn:hover { border-color: rgba(255,255,255,0.14); background: rgba(255,255,255,0.06); transform: translateY(-1px); }
.btn--grad { background: var(--grad); color: #fff; border-color: transparent; }
.btn--grad:hover { opacity: 0.85; transform: translateY(-2px); box-shadow: 0 10px 30px rgba(168,85,247,0.35); }

/* ── SECTIONS ── */
section { padding: 7rem 0; position: relative; z-index: 1; }

.section-tag {
  display: inline-flex; align-items: center;
  font-size: 0.67rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--a);
  padding: 0.28rem 0.85rem; border-radius: 999px;
  border: 1px solid rgba(168,85,247,0.22); background: rgba(168,85,247,0.05);
  margin-bottom: 1.25rem;
}
h2 { font-family: var(--serif); font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.08; margin-bottom: 1.25rem; }
h2 em { font-style: italic; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
h3 { font-size: 0.68rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); padding: 2rem 0 0.6rem; }
.section-cta { margin-top: 2rem; }

/* ── GLASS CARD ── */
.glass {
  background: var(--glass); border: 1px solid var(--border);
  border-radius: var(--radius); backdrop-filter: blur(10px);
}

/* ── ABOUT ── */
.about-grid { display: grid; grid-template-columns: 1fr 360px; gap: 2.5rem; align-items: start; }
.about-text { padding: 2.5rem; }
.about-text p { color: rgba(240,237,232,0.72); line-height: 1.8; margin-bottom: 1rem; font-size: 1.01rem; }
.about-photo { border-radius: var(--radius); overflow: hidden; }
.about-photo img { width: 100%; height: auto; }
.about-details { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 0.75rem; }
.detail-label { display: block; font-size: 0.67rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.15rem; }
.about-text .btn { margin-top: 2rem; }

/* ── IT ── */
.it-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.it-col { display: flex; flex-direction: column; gap: 0.75rem; }
.skill-card { padding: 1.5rem; border-radius: var(--radius); }
.skill-card h4 { font-size: 0.92rem; font-weight: 600; margin-bottom: 0.4rem; }
.skill-card p { font-size: 0.82rem; color: var(--muted); line-height: 1.65; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.5rem; }
.tag-cloud span {
  font-size: 0.74rem; padding: 0.28rem 0.75rem; border-radius: 999px;
  border: 1px solid var(--border); background: var(--glass); color: rgba(240,237,232,0.68);
  transition: all var(--ease);
}
.tag-cloud span:hover { border-color: rgba(168,85,247,0.4); background: rgba(168,85,247,0.08); color: var(--text); }

/* ── PHOTO GRID ── */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
.photo-item { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; display: block; cursor: zoom-in; }
.photo-wide { grid-column: span 2; }
.photo-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease, filter 0.5s ease; filter: brightness(0.8) saturate(0.85); }
.photo-item:hover img { transform: scale(1.05); filter: brightness(1) saturate(1); }

/* ── MUSIC / BANDS ── */
.band-list { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 0.5rem; }
.band-row {
  display: flex; flex-direction: column; gap: 0.3rem;
  padding: 1rem 1.25rem; border-radius: var(--radius);
  border: 1px solid transparent; transition: all var(--ease);
}
a.band-row:hover { background: var(--glass); border-color: var(--border); box-shadow: 0 0 30px rgba(168,85,247,0.07); }
.band-row-main { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.band-row-name { font-weight: 600; font-size: 0.93rem; }
.band-row-type {
  font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--b);
  padding: 0.15rem 0.6rem; border-radius: 999px;
  border: 1px solid rgba(56,189,248,0.22); background: rgba(56,189,248,0.05);
}
.band-row-desc { font-size: 0.81rem; color: var(--muted); line-height: 1.55; }

/* ── LINKS ── */
.link-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.link-card {
  display: flex; flex-direction: column; gap: 0.3rem; padding: 1.4rem 1.5rem;
  border-radius: var(--radius); border: 1px solid var(--border); background: var(--glass);
  transition: all var(--ease);
}
.link-card:hover {
  background: rgba(255,255,255,0.055); border-color: rgba(255,255,255,0.12);
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.28), 0 0 0 1px rgba(168,85,247,0.1);
}
.link-card-title { font-weight: 600; font-size: 0.93rem; }
.link-card-desc { font-size: 0.77rem; color: var(--muted); }

/* ── CONTACT ── */
.contact-intro { font-size: 1.02rem; color: var(--muted); margin-bottom: 2.5rem; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.contact-card {
  display: flex; align-items: center; gap: 1rem; padding: 1.2rem 1.4rem;
  border-radius: var(--radius); border: 1px solid var(--border); background: var(--glass);
  transition: all var(--ease);
}
.contact-card:hover {
  background: rgba(255,255,255,0.055); border-color: rgba(255,255,255,0.12);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2), 0 0 0 1px rgba(56,189,248,0.1);
}
.contact-icon { width: 18px; height: 18px; color: var(--muted); flex-shrink: 0; transition: color var(--ease); }
.contact-card:hover .contact-icon { color: var(--b); }
.contact-name { font-weight: 600; font-size: 0.85rem; }
.contact-handle { font-size: 0.74rem; color: var(--muted); }

/* ── FOOTER ── */
footer { padding: 2rem 0; border-top: 1px solid var(--border); text-align: center; color: var(--muted); font-size: 0.78rem; position: relative; z-index: 1; }
footer a:hover { color: var(--text); }

/* ── LIGHTBOX ── */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.96); z-index: 500; display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
#lightbox-img { max-width: 90vw; max-height: 90vh; border-radius: var(--radius); }
.lightbox-close {
  position: absolute; top: 1.25rem; right: 1.25rem; width: 40px; height: 40px;
  border-radius: 50%; background: rgba(255,255,255,0.1); border: none; color: var(--text);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background var(--ease);
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }

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

@media (max-width: 768px) {
  section { padding: 5rem 0; }
  .container { padding: 0 1.5rem; }

  .nav-links {
    position: fixed; top: var(--nav-h); right: 0; bottom: 0; left: 0;
    width: 100%; height: auto;
    background-color: rgba(5,5,8,0.98);
    flex-direction: column; align-items: center; justify-content: center;
    gap: 2.5rem; transform: translateX(100%);
    transition: transform var(--ease);
    border-top: 1px solid var(--border); z-index: 9999;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.1rem; color: var(--text); }
  .nav-toggle { display: flex; }
  #navbar { padding: 0 1.5rem; }

  .hero { padding: calc(var(--nav-h) + 2rem) 1.5rem 4rem; }
  .hero h1 { font-size: clamp(4rem, 18vw, 8rem); }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { justify-content: center; }

  .about-grid { grid-template-columns: 1fr; }
  .about-photo { order: -1; max-height: 320px; overflow: hidden; }
  .about-photo img { object-fit: cover; width: 100%; height: 320px; }
  .about-text { padding: 2rem; }

  .photo-grid { grid-template-columns: repeat(2, 1fr); }

  .link-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .link-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero-sep { display: none; }
}
