:root {
  --bg-color: #050505;
  --text-color: #ffffff;
  --accent-color: #8a2be2;
  --accent-glow: #c085ff;
  --cursor-dot: #ffffff;
  --cursor-outline: rgba(255, 255, 255, 0.5);
  
  --glass-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.01));
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-shadow: rgba(0, 0, 0, 0.5);
  
  --orb-1-color: rgba(138, 43, 226, 0.5);
  --orb-2-color: rgba(192, 133, 255, 0.4);
  --orb-3-color: rgba(80, 20, 160, 0.4);

  --font-main: 'Montserrat', sans-serif;
  --font-mono: 'Fira Code', monospace;
}

body.light-mode {
  --bg-color: #f4f4f7;
  --text-color: #1a1a1a;
  --accent-color: #7c3aed;
  --accent-glow: #a78bfa;
  --cursor-dot: #000000;
  --cursor-outline: rgba(0, 0, 0, 0.3);
  
  --glass-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.3));
  --glass-border: rgba(255, 255, 255, 0.6);
  --glass-shadow: rgba(124, 58, 237, 0.15);
  
  --orb-1-color: rgba(167, 139, 250, 0.6); 
  --orb-2-color: rgba(192, 132, 252, 0.5);
  --orb-3-color: rgba(221, 214, 254, 0.7);
}

/* --- GLOBAL RESET --- */
* { box-sizing: border-box; }

body {
  margin: 0;
  height: 100vh;
  height: 100dvh;
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-main);
  overflow: hidden;
  user-select: none;
  position: relative;
  cursor: none;
  transition: background-color 0.5s ease, color 0.5s ease;
  perspective: 1000px;
  -webkit-user-select: none;
}

img { pointer-events: none; -webkit-user-drag: none; }
a { text-decoration: none; color: inherit; }

a, button, input, .equalizer, #hero-screen {
  cursor: none !important;
  pointer-events: auto;
}

/* --- UI COMPONENTS --- */
#local-time {
  position: fixed; top: 20px; width: 100%; text-align: center;
  font-size: 0.8rem; color: var(--text-color); opacity: 0.5;
  pointer-events: none; z-index: 10; font-family: var(--font-mono);
  transition: color 0.5s ease, top 0.3s ease;
}

#theme-toggle {
  position: fixed; top: 25px; right: 25px; z-index: 100;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-color); width: 45px; height: 45px; border-radius: 50%;
  display: flex; justify-content: center; align-items: center;
  font-size: 1.2rem; backdrop-filter: blur(5px); transition: all 0.3s ease;
}
body.light-mode #theme-toggle { background: rgba(0,0,0,0.05); border-color: rgba(0,0,0,0.1); }
#theme-toggle:hover { transform: scale(1.1); border-color: var(--accent-color); color: var(--accent-color); }
#theme-icon { transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55); }
.rotate-icon { transform: rotate(360deg) scale(0.8); }

/* --- CURSOR --- */
.cursor-dot, .cursor-outline {
  position: fixed; top: 0; left: 0; transform: translate(-50%, -50%);
  border-radius: 50%; z-index: 9999; pointer-events: none; will-change: transform;
}
.cursor-dot { width: 8px; height: 8px; background-color: var(--cursor-dot); transition: background-color 0.3s; }
.cursor-outline {
  width: 40px; height: 40px; border: 1px solid var(--cursor-outline);
  transition: width 0.2s, height 0.2s, border-color 0.3s;
}
body.hovering .cursor-outline {
  width: 60px; height: 60px; background-color: rgba(138, 43, 226, 0.1); border-color: var(--accent-color);
}
@media (pointer: coarse) {
  .cursor-dot, .cursor-outline { display: none; }
  body, a, button, input, .equalizer, #hero-screen, #theme-toggle { cursor: auto !important; }
}

/* --- BACKGROUND --- */
.animated-background {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  z-index: -1; background: var(--bg-color);
  transition: background-color 0.5s ease; overflow: hidden;
}
.orb { position: absolute; border-radius: 50%; will-change: transform; }
.orb-1 {
  top: -10%; left: -10%; width: 90vw; height: 90vw;
  background: radial-gradient(circle, var(--orb-1-color) 0%, transparent 65%);
  animation: move1 12s ease-in-out infinite alternate;
}
.orb-2 {
  bottom: -15%; right: -10%; width: 80vw; height: 80vw;
  background: radial-gradient(circle, var(--orb-2-color) 0%, transparent 65%);
  animation: move2 15s ease-in-out infinite alternate;
}
.orb-3 {
  top: 30%; left: 30%; width: 70vw; height: 70vw;
  background: radial-gradient(circle, var(--orb-3-color) 0%, transparent 65%);
  animation: move3 18s ease-in-out infinite alternate; transform: translate(-50%, -50%);
}
@keyframes move1 { 0% { transform: translate3d(0, 0, 0); } 100% { transform: translate3d(15%, 10%, 0); } }
@keyframes move2 { 0% { transform: translate3d(0, 0, 0); } 100% { transform: translate3d(-15%, -10%, 0); } }
@keyframes move3 { 0% { transform: translate3d(-50%, -50%, 0) scale(1); } 100% { transform: translate3d(-40%, -60%, 0) scale(1.1); } }

/* --- HERO --- */
#hero-screen {
  position: fixed; inset: 0; background: var(--bg-color);
  display: flex; justify-content: center; align-items: center; z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s, background-color 0.5s;
}
#hero-screen.fade-out { opacity: 0; visibility: hidden; pointer-events: none; }
#hero-text {
  font-size: 4rem; font-weight: 900; color: var(--text-color);
  text-shadow: 0 0 20px var(--accent-color); animation: textPulse 2s infinite;
}
@keyframes textPulse { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }

/* --- MAIN --- */
#main-content {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  z-index: 10; opacity: 0; visibility: hidden; transform: scale(0.95);
  transition: opacity 1s ease, transform 1s ease, visibility 1s;
}
#main-content.fade-in { opacity: 1; visibility: visible; transform: scale(1); }

header { width: 100%; text-align: center; margin-bottom: 2.5rem; }
header h1 {
  font-size: 3.5rem; font-weight: 700; margin: 0 0 0.5rem 0;
  color: var(--accent-color); text-shadow: 0 0 20px rgba(138, 43, 226, 0.25); transition: color 0.3s;
  text-align: center;
}
.subtitle-container {
  display: flex; justify-content: center; align-items: center;
  font-family: var(--font-mono); font-size: 1.2rem; color: var(--text-color); height: 1.5em; width: 100%;
}
.cursor-blink { animation: blink 1s step-end infinite; color: var(--accent-color); font-weight: bold; }
@keyframes blink { 50% { opacity: 0; } }

/* --- CARD --- */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border: 1px solid var(--glass-border);
  padding: 1.5rem 2.5rem; border-radius: 24px;
  box-shadow: 0 8px 32px 0 var(--glass-shadow);
  transition: box-shadow 0.3s, border-color 0.3s, background 0.5s;
  transform-style: preserve-3d;
  transform: perspective(1000px);
  animation: fancyFloat 8s ease-in-out infinite;
  width: 340px; max-width: 90vw;
}
@keyframes fancyFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.glass-card:hover {
  box-shadow: 0 15px 45px var(--glass-shadow); border-color: var(--accent-color); animation-play-state: paused; transform: translateY(-5px);
}

.social-icons { display: flex; justify-content: center; gap: 2rem; width: 100%; transform: translateZ(20px); }
.social-icons a {
  font-size: 2.2rem; color: var(--text-color); position: relative; display: flex; align-items: center;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s;
}
.social-icons a:hover { color: var(--accent-glow); transform: scale(1.25); }

/* Status Indicators */
.social-icons a.live::after {
  content: ''; position: absolute; top: 0; right: -5px;
  width: 10px; height: 10px; background-color: #ff0000;
  border-radius: 50%; border: 2px solid var(--bg-color);
  animation: livePulse 1.5s infinite;
}
@keyframes livePulse { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(2); opacity: 0; } }

.social-icons a.online::after {
  content: ''; position: absolute; bottom: 2px; right: -2px;
  width: 12px; height: 12px; background-color: #00ff9d;
  border-radius: 50%; border: 2px solid var(--bg-color);
  box-shadow: 0 0 15px #00ff9d; z-index: 2;
  animation: neonBreath 2s infinite alternate;
}
.social-icons a.online::before {
  content: ''; position: absolute; bottom: 2px; right: -2px;
  width: 12px; height: 12px; background: rgba(0, 255, 157, 0.5);
  border-radius: 50%; z-index: 1;
  animation: rippleWave 1.5s infinite cubic-bezier(0, 0.2, 0.8, 1);
}
@keyframes neonBreath {
  0% { transform: scale(1); box-shadow: 0 0 5px #00ff9d; }
  100% { transform: scale(1.1); box-shadow: 0 0 20px #00ff9d, 0 0 5px #ffffff; }
}
@keyframes rippleWave {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(2.8); opacity: 0; }
}

/* --- BUTTON --- */
.glass-btn {
  margin-top: 1.5rem;
  display: flex; justify-content: center; align-items: center;
  gap: 12px; text-decoration: none; color: var(--text-color);
  font-family: var(--font-mono); font-weight: bold; cursor: pointer;
  transition: all 0.3s ease; box-sizing: border-box;
}
.glass-btn:hover {
  background: rgba(255, 255, 255, 0.1); border-color: var(--accent-color);
  box-shadow: 0 0 20px rgba(138, 43, 226, 0.3);
  transform: translateY(-3px) scale(1.02); color: #fff;
}

/* --- AUDIO --- */
.audio-player {
  position: absolute; top: 25px; left: 25px;
  display: flex; align-items: center; gap: 15px; z-index: 20;
  background: var(--glass-bg); padding: 10px 15px; border-radius: 30px;
  backdrop-filter: blur(10px); border: 1px solid var(--glass-border);
  transition: border-color 0.3s, background 0.5s;
}
.audio-player:hover { border-color: var(--accent-color); }

.equalizer { display: flex; gap: 3px; height: 15px; align-items: flex-end; cursor: pointer; }
.equalizer span {
  width: 3px; background: var(--accent-color); border-radius: 2px;
  animation: eq 1s ease-in-out infinite;
}
.equalizer span:nth-child(1) { height: 8px; animation-delay: 0s; }
.equalizer span:nth-child(2) { height: 15px; animation-delay: 0.2s; }
.equalizer span:nth-child(3) { height: 10px; animation-delay: 0.4s; }
.equalizer.paused span { animation-play-state: paused; height: 3px !important; opacity: 0.5; }
@keyframes eq { 0%, 100% { height: 5px; } 50% { height: 15px; } }

#volume-slider {
  width: 0; opacity: 0; transition: 0.4s ease;
  background: var(--text-color); height: 4px; appearance: none; border-radius: 5px; margin-left: 0;
}
.audio-player:hover #volume-slider { width: 80px; opacity: 1; margin-left: 10px; }
#volume-slider::-webkit-slider-thumb {
  appearance: none; width: 12px; height: 12px; background: var(--bg-color);
  border-radius: 50%; border: 2px solid var(--accent-color); cursor: pointer;
}

#footer {
  position: fixed; bottom: 15px; width: 100%; text-align: center;
  font-size: 0.7rem; color: var(--text-color); opacity: 0.5; pointer-events: none;
}

/* --- MOBILE --- */
@media (max-width: 768px) {
  #hero-text { font-size: 2.5rem; }
  header h1 { font-size: 2.5rem; }
  .glass-card { padding: 1.2rem 1.8rem; }
  .social-icons a { font-size: 1.8rem; gap: 1.5rem; }
  .audio-player { top: 15px; left: 15px; padding: 8px 15px; }
  #theme-toggle { top: 15px; right: 15px; width: 40px; height: 40px; }
  #local-time { top: 70px; font-size: 0.7rem; }
  #volume-slider { width: 70px !important; opacity: 1 !important; margin-left: 10px !important; }
  .orb-1 { width: 130vw; height: 130vw; opacity: 0.9; }
  .orb-2 { width: 110vw; height: 110vw; opacity: 0.9; }
  .orb-3 { opacity: 0.5; }
}