/* ============================================================
   PRATHAM SHAKYA — style.css
   Apple-Inspired. Ultra-Premium. Zero Compromise.
   ============================================================ */

/* ─── TOKENS ─────────────────────────────────────────────── */
:root {
  --black:   #000000;
  --ink:     #080808;
  --surface: #111111;
  --card:    rgba(22,22,24,0.92);
  --border:  rgba(255,255,255,0.07);
  --cream:   #f5f5f7;
  --muted:   rgba(245,245,247,0.5);
  --dim:     rgba(245,245,247,0.2);
  --gold:    #c9a84c;
  --red:     #e8291c;
  --ease:    cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --spring:  cubic-bezier(0.34, 1.56, 0.64, 1);
  --smooth:  cubic-bezier(0.16, 1, 0.3, 1);
  --reveal:  cubic-bezier(0.16, 1, 0.3, 1);
  --radius:  18px;
  --pill:    100px;
}

/* ─── RESET ──────────────────────────────────────────────── */
*, *::before, *::after {
  margin: 0; padding: 0; box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
html { scroll-behavior: smooth; }
body {
  background: var(--black);
  color: var(--cream);
  font-family: 'Space Mono', monospace;
  overflow-x: hidden;
  line-height: 1.6;
}
body.loading { overflow: hidden; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ─── Z-INDEX ────────────────────────────────────────────── */
#loader      { z-index: 10000; }
#nightSky    { z-index: 0; }
section, footer, .divider { position: relative; z-index: 1; }

/* ═══════════════════════════════════════════════════════════
   LOADER
═══════════════════════════════════════════════════════════ */
#loader {
  position: fixed; inset: 0;
  background: #000;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  transition: opacity 0.9s var(--smooth);
}
#starCanvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.loader-content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column;
  align-items: center; gap: 2.2rem;
  text-align: center;
}
.loader-eyebrow {
  font-size: clamp(0.36rem, 1.1vw, 0.5rem);
  letter-spacing: 0.5em; text-transform: uppercase;
  color: var(--dim); opacity: 0;
  animation: fadeIn 1s ease 0.2s both;
}
.loader-name {
  display: flex; flex-direction: column;
  align-items: center; gap: 0.15rem; overflow: hidden;
}
.loader-first {
  font-family: 'Anton', sans-serif;
  font-size: clamp(3.5rem, 11vw, 9rem);
  letter-spacing: 0.32em; color: var(--cream);
  opacity: 0; animation: slideUp 1s var(--smooth) 0.3s both;
}
.loader-last {
  font-family: 'DM Serif Display', serif; font-style: italic;
  font-size: clamp(1.8rem, 5.8vw, 5.2rem);
  letter-spacing: 0.2em; color: var(--gold);
  opacity: 0; animation: slideUp 1s var(--smooth) 0.5s both;
}
.loader-bar-wrap {
  width: clamp(120px, 24vw, 220px); height: 1px;
  background: rgba(255,255,255,0.06); overflow: hidden;
  opacity: 0; animation: fadeIn 0.6s ease 1.1s both;
}
.loader-bar {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--gold), rgba(255,255,255,0.9));
  box-shadow: 0 0 12px rgba(201,168,76,0.7);
  transition: width 0.05s linear;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ═══════════════════════════════════════════════════════════
   PAGE REVEAL
═══════════════════════════════════════════════════════════ */
body:not(.revealed) .bio,
body:not(.revealed) .music,
body:not(.revealed) .divider,
body:not(.revealed) footer {
  opacity: 0;
  pointer-events: none;
}
body.revealed .bio     { animation: pageReveal 1.2s var(--reveal) 0.05s both; }
body.revealed .divider { animation: pageReveal 1.2s var(--reveal) 0.18s both; }
body.revealed .music   { animation: pageReveal 1.2s var(--reveal) 0.28s both; }
body.revealed footer   { animation: pageReveal 1.2s var(--reveal) 0.38s both; }

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

/* ═══════════════════════════════════════════════════════════
   NIGHT SKY
═══════════════════════════════════════════════════════════ */
#nightSky {
  position: fixed; inset: 0; width: 100%; height: 100%;
  pointer-events: none; opacity: 0; transition: opacity 3s ease;
}
#nightSky.visible { opacity: 1; }

/* ═══════════════════════════════════════════════════════════
   HERO / BIO
═══════════════════════════════════════════════════════════ */
.bio {
  min-height: 100vh;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 6rem;
  padding: 8rem 7rem 7rem;
  background: var(--black);
  overflow: hidden; position: relative;
}
.bio::before {
  content: ''; position: absolute; top: -20%; left: -12%;
  width: 55%; height: 75%;
  background: radial-gradient(ellipse, rgba(201,168,76,0.045) 0%, transparent 68%);
  pointer-events: none; animation: blob 16s ease-in-out infinite;
}
.bio::after {
  content: ''; position: absolute; bottom: -15%; right: -8%;
  width: 48%; height: 65%;
  background: radial-gradient(ellipse, rgba(100,140,255,0.03) 0%, transparent 68%);
  pointer-events: none; animation: blob 20s ease-in-out infinite reverse;
}
@keyframes blob {
  0%,100% { transform: translate(0,0) scale(1); }
  40%     { transform: translate(-20px,-30px) scale(1.06); }
  70%     { transform: translate(14px,20px) scale(0.94); }
}

/* Photo */
.bio-photo-wrap {
  position: relative;
  display: flex; justify-content: center; align-items: center;
  animation: floatY 10s ease-in-out infinite;
}
@keyframes floatY { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-16px)} }

.bio-photo-placeholder {
  width: min(380px, 90%); height: min(490px, 78vw);
  border-radius: 22px;
  background: #111; border: 0.5px solid rgba(255,255,255,0.07);
  overflow: hidden; position: relative;
  box-shadow:
    0 0 0 0.5px rgba(255,255,255,0.04),
    0 40px 100px rgba(0,0,0,0.8),
    0 0 80px rgba(201,168,76,0.04);
  animation: clipReveal 1.6s var(--smooth) 0.1s both;
}
@keyframes clipReveal {
  from { clip-path: inset(100% 0 0 0 round 22px); opacity: 0; }
  to   { clip-path: inset(0%   0 0 0 round 22px); opacity: 1; }
}
.bio-photo-placeholder img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  transition: transform 0.9s var(--ease);
}
.bio-photo-placeholder:hover img { transform: scale(1.04); }

.photo-ring {
  position: absolute; border-radius: 50%;
  border: 0.5px solid rgba(201,168,76,0.1);
  animation: ringPulse 8s ease-in-out infinite;
  pointer-events: none;
}
.ring-a { inset: -10%; animation-delay: 0s; }
.ring-b { inset: -24%; animation-delay: 3s; }
@keyframes ringPulse {
  0%,100% { opacity: 0.15; transform: scale(1); }
  50%     { opacity: 0.4;  transform: scale(1.03); }
}

.bio-tape {
  position: absolute; height: 18px;
  background: repeating-linear-gradient(
    90deg,
    rgba(201,168,76,0.5) 0, rgba(201,168,76,0.3) 4px,
    rgba(245,245,247,0.4) 4px, rgba(245,245,247,0.22) 8px
  );
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.tape-1 { width:96px; top:4%;    left:-6px;  transform:rotate(10deg);  animation:tape1In 1s var(--spring) 1.3s both; }
.tape-2 { width:72px; bottom:6%; right:-4px; transform:rotate(-8deg);  animation:tape2In 1s var(--spring) 1.5s both; }
@keyframes tape1In { from{transform:rotate(10deg)  translateX(-130px);opacity:0} to{transform:rotate(10deg)  translateX(0);opacity:1} }
@keyframes tape2In { from{transform:rotate(-8deg) translateX( 130px);opacity:0} to{transform:rotate(-8deg) translateX(0);opacity:1} }

/* Bio text */
.bio-content { position: relative; z-index: 2; }

.section-label {
  display: flex; align-items: center; gap: 1rem;
  font-size: 0.5rem; letter-spacing: 0.45em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.4rem;
  animation: fadeUp 0.8s var(--ease) 0.4s both;
}
.section-label::before {
  content: ''; display: block; width: 24px; height: 0.5px;
  background: var(--gold); flex-shrink: 0;
}

.bio-name {
  font-family: 'Anton', sans-serif;
  font-size: clamp(3.2rem, 5.8vw, 6.5rem);
  line-height: 0.86; text-transform: uppercase;
  letter-spacing: -0.01em; margin-bottom: 1.6rem;
  animation: fadeUp 0.9s var(--ease) 0.55s both;
}
.bio-name .italic {
  font-family: 'DM Serif Display', serif; font-style: italic;
  color: var(--gold); display: block;
}

.bio-genre {
  display: flex; flex-wrap: wrap; gap: 0.45rem;
  margin-bottom: 2.2rem;
  animation: fadeUp 0.8s var(--ease) 0.68s both;
}
.genre-tag {
  font-size: 0.5rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); border: 0.5px solid rgba(255,255,255,0.1);
  padding: 0.3rem 0.9rem; border-radius: var(--pill);
  background: rgba(255,255,255,0.03); backdrop-filter: blur(6px);
  transition: all 0.35s var(--spring);
}
.genre-tag:hover {
  border-color: var(--gold); color: var(--gold);
  transform: translateY(-2px); background: rgba(201,168,76,0.06);
}

.bio-text {
  font-size: 0.7rem; line-height: 2;
  color: var(--muted); margin-bottom: 1rem; max-width: 450px;
}

.typewriter     { border-right: 1.5px solid var(--gold); animation: blink 0.8s step-end infinite; min-height: 2.4rem; }
.typewriter-2   { border-right: none; animation: none; min-height: 2.4rem; }
.typewriter.done     { border-right: none; animation: none; }
.typewriter-2.typing { border-right: 1.5px solid var(--gold); animation: blink 0.8s step-end infinite; }
.typewriter-2.done   { border-right: none; animation: none; }
@keyframes blink { 0%,100%{border-color:var(--gold)} 50%{border-color:transparent} }

.bio-socials {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
  margin-top: 2.6rem;
  animation: fadeUp 0.8s var(--ease) 1.1s both;
}
.social-btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.52rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--cream); border: 0.5px solid rgba(255,255,255,0.12);
  padding: 0.6rem 1.2rem; border-radius: var(--pill);
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: all 0.4s var(--spring);
}
.social-btn svg { width: 13px; height: 13px; flex-shrink: 0; }
.social-btn:hover {
  border-color: var(--gold); color: var(--gold);
  transform: translateY(-3px); background: rgba(201,168,76,0.07);
  box-shadow: 0 10px 30px rgba(0,0,0,0.45), 0 0 20px rgba(201,168,76,0.1);
}

.bio-scroll-hint {
  display: none; position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  flex-direction: column; align-items: center; gap: 0.5rem; z-index: 3;
  animation: hintFade 2s ease 2.5s both, hintBounce 2s ease-in-out 3.5s infinite;
}
.bio-scroll-hint span { font-size: 0.4rem; letter-spacing: 0.35em; text-transform: uppercase; color: var(--dim); }
.bio-scroll-hint svg  { width: 15px; height: 15px; stroke: var(--dim); fill: none; stroke-width: 1.5; }
@keyframes hintFade   { from{opacity:0} to{opacity:1} }
@keyframes hintBounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(7px)} }
@keyframes fadeUp     { from{opacity:0;transform:translateY(22px)} to{opacity:1;transform:none} }

/* ═══════════════════════════════════════════════════════════
   DIVIDERS
═══════════════════════════════════════════════════════════ */
.divider { display: block; line-height: 0; overflow: hidden; margin: 0; padding: 0; }
.divider svg { display: block; width: 100%; height: 80px; }
.divider-bio-music    { background: var(--black);   margin-top: -1px; }
.divider-music-footer { background: var(--surface); margin-top: -1px; }

/* ═══════════════════════════════════════════════════════════
   MUSIC SECTION
═══════════════════════════════════════════════════════════ */
.music { padding: 8rem 7rem 9rem; background: var(--surface); }

.section-title {
  font-family: 'Anton', sans-serif;
  font-size: clamp(2.2rem, 5vw, 5rem);
  line-height: 1; text-transform: uppercase;
  letter-spacing: 0.01em; margin-bottom: 3.5rem;
}

.music-loading {
  display: flex; flex-direction: column; align-items: center; gap: 1.4rem;
  padding: 6rem 0; color: var(--dim);
  font-size: 0.58rem; letter-spacing: 0.18em; text-transform: uppercase;
}
.loading-spinner {
  width: 28px; height: 28px;
  border: 1px solid rgba(255,255,255,0.06);
  border-top-color: var(--gold);
  border-radius: 50%; animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.music-loading p { animation: breathe 2.4s ease-in-out infinite; }
@keyframes breathe { 0%,100%{opacity:.25} 50%{opacity:.9} }
.music-error { text-align: center; padding: 4rem; color: var(--red); font-size: 0.62rem; letter-spacing: 0.1em; }

.music-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.6rem; }

.music-card {
  border-radius: var(--radius); overflow: hidden;
  background: var(--card); border: 0.5px solid var(--border);
  cursor: pointer; opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.music-card.visible { opacity: 1; transform: none; }
.music-card.visible:hover {
  transform: translateY(-10px) scale(1.015);
  border-color: rgba(201,168,76,0.2);
  box-shadow: 0 32px 80px rgba(0,0,0,0.7), 0 0 48px rgba(201,168,76,0.06), inset 0 0.5px 0 rgba(255,255,255,0.08);
  transition: transform 0.5s var(--spring), box-shadow 0.5s ease, border-color 0.5s;
}

.music-thumb { position: relative; width: 100%; padding-bottom: 56.25%; overflow: hidden; background: #0a0a0a; }
.music-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.music-card:hover .music-thumb img { transform: scale(1.07); }

.music-thumb-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.35);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.4s ease; backdrop-filter: blur(2px);
}
.music-card:hover .music-thumb-overlay { opacity: 1; }

.play-btn {
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,0.94);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: #000; padding-left: 3px;
  transform: scale(0.6); transition: transform 0.45s var(--spring);
  box-shadow: 0 6px 28px rgba(0,0,0,0.5);
}
.music-card:hover .play-btn { transform: scale(1); }

.music-thumb::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  transition: width 0.6s var(--ease);
}
.music-card:hover .music-thumb::after { width: 100%; }

.music-info { padding: 1.1rem 1.2rem 1.3rem; }
.music-title {
  font-family: 'Anton', sans-serif;
  font-size: 0.88rem; letter-spacing: 0.04em; text-transform: uppercase;
  margin-bottom: 0.35rem; color: var(--cream);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  transition: color 0.3s;
}
.music-card:hover .music-title { color: var(--gold); }
.music-date { font-size: 0.5rem; color: var(--dim); letter-spacing: 0.14em; text-transform: uppercase; }

/* ═══════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */
footer { background: var(--ink); border-top: 0.5px solid rgba(255,255,255,0.06); padding: 2.2rem 7rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-name { font-family: 'Anton', sans-serif; font-size: 0.85rem; letter-spacing: 0.18em; color: rgba(245,245,247,0.18); }
.footer-name span { color: rgba(201,168,76,0.3); }
.footer-copy { font-size: 0.5rem; letter-spacing: 0.12em; color: rgba(245,245,247,0.14); }
.footer-socials { display: flex; gap: 1.8rem; }
.footer-socials a { font-size: 0.5rem; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(245,245,247,0.2); transition: all 0.35s var(--spring); }
.footer-socials a:hover { color: var(--gold); transform: translateY(-3px); }

/* ═══════════════════════════════════════════════════════════
   MOBILE MENU
═══════════════════════════════════════════════════════════ */
.mobile-menu {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(0,0,0,0.96);
  backdrop-filter: blur(40px); -webkit-backdrop-filter: blur(40px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3rem;
  opacity: 0; visibility: hidden; transition: opacity 0.45s var(--ease), visibility 0.45s;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu-close {
  position: absolute; top: 1.4rem; right: 1.6rem;
  width: 36px; height: 36px; border-radius: 50%;
  border: 0.5px solid rgba(255,255,255,0.14); background: rgba(255,255,255,0.05);
  color: var(--cream); font-size: 0.75rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: all 0.3s;
}
.mobile-menu-close:hover { background: var(--red); border-color: var(--red); }
.mobile-nav-links { list-style: none; display: flex; flex-direction: column; align-items: center; gap: 0.2rem; }
.mobile-nav-link {
  font-family: 'Anton', sans-serif; font-size: clamp(3rem,12vw,5.5rem);
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--cream);
  opacity: 0; transform: translateY(28px);
  transition: color 0.3s, opacity 0.5s var(--smooth), transform 0.5s var(--smooth);
}
.mobile-menu.open .mobile-nav-link { opacity: 1; transform: none; }
.mobile-menu.open li:nth-child(1) .mobile-nav-link { transition-delay: 0.07s; }
.mobile-menu.open li:nth-child(2) .mobile-nav-link { transition-delay: 0.14s; }
.mobile-menu.open li:nth-child(3) .mobile-nav-link { transition-delay: 0.21s; }
.mobile-nav-link:hover { color: var(--gold); }
.mobile-menu-socials {
  display: flex; gap: 2rem;
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.45s ease 0.33s, transform 0.45s ease 0.33s;
}
.mobile-menu.open .mobile-menu-socials { opacity: 1; transform: none; }
.mobile-menu-socials a { font-size: 0.55rem; letter-spacing: 0.24em; color: var(--dim); transition: color 0.3s; }
.mobile-menu-socials a:hover { color: var(--gold); }

/* ═══════════════════════════════════════════════════════════
   MOBILE SPLASH HERO
═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .bio {
    display: flex !important; flex-direction: column !important;
    align-items: flex-start !important; justify-content: flex-end !important;
    min-height: 100svh !important; padding: 0 !important;
    gap: 0 !important; overflow: hidden !important;
  }
  .bio-photo-wrap { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; animation: none !important; }
  .bio-photo-placeholder { width: 100% !important; height: 100% !important; border-radius: 0 !important; border: none !important; box-shadow: none !important; animation: none !important; }
  .bio-photo-placeholder img { object-position: center 12%; }
  .bio-photo-placeholder::after {
    content: ''; position: absolute; inset: 0; border-radius: 0; z-index: 1;
    background: linear-gradient(to bottom, rgba(0,0,0,0.02) 0%, rgba(0,0,0,0.08) 30%, rgba(0,0,0,0.76) 62%, rgba(0,0,0,0.97) 100%);
  }
  .photo-ring, .bio-tape { display: none !important; }
  .bio-content { position: relative; z-index: 2; width: 100%; padding: 2rem 1.8rem 3.5rem !important; animation: mobileUp 1.1s var(--smooth) 0.35s both; }
  @keyframes mobileUp { from{opacity:0;transform:translateY(40px)} to{opacity:1;transform:none} }
  .bio-name     { font-size: clamp(3.2rem,14vw,5rem) !important; line-height: 0.88 !important; margin-bottom: 1rem !important; }
  .bio-genre    { margin-bottom: 0.8rem !important; }
  .bio-text     { font-size: 0.64rem !important; color: rgba(245,245,247,0.6) !important; max-width: 100% !important; margin-bottom: 0.6rem !important; }
  .bio-socials  { margin-top: 1.4rem !important; gap: 0.5rem !important; flex-wrap: wrap !important; }
  .social-btn   { font-size: 0.52rem !important; padding: 0.5rem 0.9rem !important; background: rgba(255,255,255,0.07) !important; backdrop-filter: blur(14px) !important; }
  .bio-scroll-hint { display: flex !important; }
  .music { padding: 5rem 1.8rem 6rem !important; }
  .music-grid { grid-template-columns: 1fr !important; gap: 1.1rem; }
  footer { padding: 1.8rem !important; }
  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
}

@media (min-width: 769px) and (max-width: 1060px) {
  .bio   { padding: 7rem 4rem 6rem; gap: 4rem; }
  .music { padding: 7rem 4rem 8rem; }
  footer { padding: 2rem 4rem; }
  .music-grid { grid-template-columns: repeat(2,1fr); gap: 1.2rem; }
}
