/* Fonts and variables */
:root {
  --bg: #0b0b12;
  --surface: #121222;
  --surface-2: #17172a;
  --text: #f5f7ff;
  --muted: #b6b8d6;
  --primary: #7c4dff;
  --secondary: #ff4dd8;
  --accent: #00e5ff;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  --radius: 16px;
}

body.light {
  --bg: #f8f8ff;
  --surface: #ffffff;
  --surface-2: #f1f2f8;
  --text: #1a1b25;
  --muted: #5a5d80;
  --primary: #6a4cff;
  --secondary: #ff3dbf;
  --accent: #00bcd4;
}

/* Reset */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, 'Inter', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
img, video { max-width: 100%; display: block; }
button, input { font-family: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Layout */
.container {
  width: min(1100px, 92%);
  margin-inline: auto;
}
.section {
  padding: 72px 0;
}
.section.alt { background: linear-gradient(180deg, transparent, rgba(255,255,255,0.02)); }
.section-title {
  font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.2rem);
  margin: 0 0 16px;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
}
@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; }
}

/* Header / Nav */
.site-header {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(10px);
  background: linear-gradient(180deg, rgba(5,5,12,0.7), rgba(5,5,12,0.2));
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 10px; }
.logo {
  width: 36px; height: 36px; display: grid; place-items: center; font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white; border-radius: 10px; box-shadow: var(--shadow);
}
.brand-name { color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: 0.3px; }
.primary-nav { position: relative; }
.nav-list { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav-list a { color: var(--muted); text-decoration: none; font-weight: 500; }
.nav-list a:hover { color: var(--text); }
.nav-toggle { display: none; background: transparent; border: none; padding: 8px; cursor: pointer; }
.nav-toggle .bar { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; }
.theme-toggle { background: var(--surface-2); border: 1px solid rgba(255,255,255,0.08); color: var(--text); border-radius: 10px; padding: 8px; cursor: pointer; }

@media (max-width: 900px) {
  .nav-list { position: absolute; right: 0; top: 52px; background: var(--surface); border: 1px solid rgba(255,255,255,0.06); padding: 14px; border-radius: 12px; display: none; flex-direction: column; width: 220px; }
  .nav-list.open { display: flex; }
  .nav-toggle { display: block; }
}

/* Hero */
.hero { position: relative; padding: 110px 0 80px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: -10% -10% 0 -10%; z-index: -1;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(124,77,255,0.35), transparent 60%),
    radial-gradient(1000px 500px at 20% 0%, rgba(255,77,216,0.3), transparent 60%),
    radial-gradient(900px 450px at 50% 30%, rgba(0,229,255,0.2), transparent 60%),
    linear-gradient(180deg, rgba(10,10,18,0.9), rgba(10,10,18,0.4));
}
.hero-inner { text-align: center; }
.headline { font-size: clamp(2.2rem, 1.4rem + 3vw, 4rem); margin: 0 0 8px; letter-spacing: 0.5px; }
.tagline { margin: 0 auto 20px; max-width: 700px; color: var(--muted); }
.cta { display: flex; gap: 12px; justify-content: center; margin: 20px 0 24px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 700px; margin: 0 auto; }
.stat { background: var(--surface); border: 1px solid rgba(255,255,255,0.06); border-radius: 14px; padding: 14px; }
.stat .num { font-size: 1.8rem; font-weight: 700; display: block; }
.stat .label { color: var(--muted); font-size: 0.9rem; }

/* Buttons */
.btn { display: inline-block; padding: 12px 18px; border-radius: 12px; text-decoration: none; font-weight: 600; letter-spacing: 0.2px; border: 1px solid transparent; }
.btn.primary { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: white; box-shadow: var(--shadow); }
.btn.ghost { background: transparent; color: var(--text); border-color: rgba(255,255,255,0.2); }
.btn:focus { outline: 2px solid var(--accent); outline-offset: 2px; }

/* About */
.about-card { background: var(--surface); padding: 18px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.06); }
.about-art { height: 160px; border-radius: 12px; background: conic-gradient(from 120deg, rgba(124,77,255,0.35), rgba(255,77,216,0.35), rgba(0,229,255,0.35)); box-shadow: var(--shadow); }
.about-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; }
.about-meta div { background: var(--surface-2); padding: 12px; border-radius: 10px; text-align: center; border: 1px solid rgba(255,255,255,0.06); }
.about-meta strong { display: block; font-size: 0.8rem; color: var(--muted); font-weight: 600; }

/* Albums */
.albums { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
@media (max-width: 1100px) { .albums { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .albums { grid-template-columns: repeat(2, 1fr); } }
.album-card { cursor: pointer; background: var(--surface); border-radius: 16px; border: 1px solid rgba(255,255,255,0.06); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.album-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.cover { 
  aspect-ratio: 1 / 1; 
  width: 100%; 
  height: auto; 
  object-fit: cover; 
  border-radius: 8px;
}
.album-info { padding: 12px; display: flex; align-items: baseline; justify-content: space-between; }
.album-info h3 { margin: 0; font-size: 1rem; }
.album-info span { color: var(--muted); font-size: 0.9rem; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 800px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
.gallery-item { padding: 0; border: 0; background: transparent; cursor: zoom-in; border-radius: 14px; overflow: hidden; }
.gallery-item .img { display: block; width: 100%; aspect-ratio: 4 / 3; background-size: cover; background-position: center; }
.ph-a { background-image: linear-gradient(135deg, #7c4dff55, #ff4dd855); }
.ph-b { background-image: linear-gradient(135deg, #00e5ff55, #7c4dff55); }
.ph-c { background-image: linear-gradient(135deg, #ff4dd855, #ff8a0055); }
.ph-d { background-image: linear-gradient(135deg, #00e67655, #00e5ff55); }
.ph-e { background-image: linear-gradient(135deg, #ffd54f55, #ff4dd855); }
.ph-f { background-image: linear-gradient(135deg, #7c4dff55, #00e5ff55); }

/* Videos */
.video-embed { position: relative; padding-top: 56.25%; border-radius: 16px; overflow: hidden; border: 1px solid rgba(255,255,255,0.06); box-shadow: var(--shadow); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0 0 0 18px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px; background: linear-gradient(180deg, var(--primary), transparent); }
.timeline li { position: relative; background: var(--surface); border: 1px solid rgba(255,255,255,0.06); margin: 12px 0 12px 14px; padding: 12px 14px; border-radius: 12px; }
.timeline li::before { content: ""; position: absolute; left: -18px; top: 16px; width: 10px; height: 10px; border-radius: 50%; background: var(--secondary); box-shadow: 0 0 0 3px rgba(255,77,216,0.25); }
.timeline .time { font-weight: 700; margin-right: 8px; color: var(--accent); }

/* Lists */
.list { margin: 10px 0 0; padding-left: 18px; color: var(--muted); }

/* Cards / Forms */
.card { background: var(--surface); border: 1px solid rgba(255,255,255,0.06); border-radius: 16px; padding: 16px; box-shadow: var(--shadow); }
.form { display: grid; gap: 12px; }
.form input { background: var(--surface-2); color: var(--text); border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; padding: 12px 14px; }
.form input:focus { outline: 2px solid var(--accent); }
.form .form-msg { margin: 4px 2px 0; min-height: 20px; color: var(--muted); }

/* Socials */
.socials { display: flex; flex-wrap: wrap; gap: 12px; }
.social { padding: 10px 14px; border-radius: 10px; background: var(--surface); border: 1px solid rgba(255,255,255,0.06); color: var(--text); text-decoration: none; }
.social:hover { border-color: rgba(255,255,255,0.2); }

/* Footer */
.site-footer { border-top: 1px solid rgba(255,255,255,0.06); padding: 18px 0 60px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.to-top { position: fixed; right: 16px; bottom: 16px; background: var(--surface); border: 1px solid rgba(255,255,255,0.1); color: var(--text); border-radius: 50%; width: 42px; height: 42px; cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { transform: translateY(-3px); }

/* Modal */
.modal { position: fixed; inset: 0; display: none; z-index: 50; }
.modal.open { display: block; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.55); backdrop-filter: blur(2px); }
.modal-content { position: relative; max-width: min(900px, 92%); margin: 6vh auto; background: var(--surface); border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.modal-body { padding: 16px; }
.modal-close { position: absolute; top: 8px; right: 8px; border: none; background: var(--surface-2); color: var(--text); padding: 8px 12px; border-radius: 10px; cursor: pointer; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* Utilities */
.alt-note { color: var(--muted); font-size: 0.9rem; }
