/* ==========================================================================
   RAZMATI (RZMT) - Official Teaser Site Stylesheet
   Design Aesthetic: Dark Obsidian, Grunge Brush Accent, Cyber-Punk Metal
   ========================================================================== */

:root {
  --bg-dark: #070709;
  --bg-card: rgba(18, 18, 24, 0.65);
  --bg-card-border: rgba(255, 255, 255, 0.1);
  --bg-card-hover: rgba(255, 255, 255, 0.06);
  
  --accent-crimson: #ff2e51;
  --accent-glow: rgba(255, 46, 81, 0.4);
  --accent-neon: #ff003c;
  
  --text-main: #f5f5f7;
  --text-muted: #9999a5;
  --text-dim: #666675;

  --font-display: 'Oswald', sans-serif;
  --font-glitch: 'Rubik Glitch', cursive;
  --font-body: 'Space Grotesk', sans-serif;

  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Global */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 16px;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  position: relative;
  background: radial-gradient(circle at 50% 30%, #15101a 0%, var(--bg-dark) 70%);
}

/* Background Canvas & Noise Overlay */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  opacity: 0.8;
}

.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 0);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 2;
  opacity: 0.6;
}

/* Main Container */
.app-viewport {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1100px;
  padding: 2.5rem 1.5rem 4rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3.5rem;
}

/* Top Header / Status Pill */
.header-bar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 100px;
  backdrop-filter: blur(10px);
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-crimson);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-crimson);
  animation: pulseGlow 2s infinite alternate;
}

@keyframes pulseGlow {
  0% { transform: scale(0.9); opacity: 0.6; box-shadow: 0 0 4px var(--accent-crimson); }
  100% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 16px var(--accent-crimson); }
}

.sound-toggle-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-main);
  padding: 0.5rem 1rem;
  border-radius: 30px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.sound-toggle-btn:hover {
  background: rgba(255, 46, 81, 0.15);
  border-color: var(--accent-crimson);
  box-shadow: 0 0 15px rgba(255, 46, 81, 0.3);
}

.sound-toggle-btn.playing {
  border-color: var(--accent-crimson);
  color: var(--accent-crimson);
  background: rgba(255, 46, 81, 0.1);
}

/* Equalizer Animation in Header */
.eq-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}

.eq-bar {
  width: 3px;
  background-color: currentColor;
  border-radius: 1px;
  height: 3px;
}

.sound-toggle-btn.playing .eq-bar:nth-child(1) { animation: eqMove 0.8s infinite ease-in-out alternate; }
.sound-toggle-btn.playing .eq-bar:nth-child(2) { animation: eqMove 0.6s infinite ease-in-out alternate 0.2s; }
.sound-toggle-btn.playing .eq-bar:nth-child(3) { animation: eqMove 1s infinite ease-in-out alternate 0.4s; }

@keyframes eqMove {
  0% { height: 3px; }
  100% { height: 12px; }
}

/* Hero Section */
.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2rem;
  margin-top: 1rem;
  perspective: 1000px;
}

.logo-wrapper {
  position: relative;
  width: 280px;
  height: 280px;
  max-width: 80vw;
  max-height: 80vw;
  cursor: pointer;
  transition: transform 0.1s ease-out;
  transform-style: preserve-3d;
}

.logo-img-container {
  width: 100%;
  height: 100%;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background-color: #000;
  transition: var(--transition-normal);
}

.logo-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(1.15) brightness(1.05);
  transition: transform 0.5s ease;
}

.logo-wrapper:hover .logo-img-container {
  border-color: var(--accent-crimson);
  box-shadow: 0 25px 60px rgba(255, 46, 81, 0.25), 0 0 40px rgba(255, 46, 81, 0.4);
}

.logo-wrapper:hover img {
  transform: scale(1.04);
}

/* Glitch trigger effect on logo */
.logo-wrapper.glitch .logo-img-container {
  animation: glitchShake 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
  filter: drop-shadow(4px 0 0 red) drop-shadow(-4px 0 0 blue);
}

@keyframes glitchShake {
  0% { transform: translate(0); }
  20% { transform: translate(-5px, 5px); }
  40% { transform: translate(-5px, -5px); }
  60% { transform: translate(5px, 5px); }
  80% { transform: translate(5px, -5px); }
  100% { transform: translate(0); }
}

.hero-titles {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.band-name-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 4.8rem);
  font-weight: 900;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
  line-height: 1;
}

.band-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--accent-crimson);
  letter-spacing: 4px;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0.9;
}

.teaser-description {
  max-width: 540px;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
  font-weight: 300;
}

/* Countdown Card */
.countdown-container {
  width: 100%;
  max-width: 680px;
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  backdrop-filter: blur(16px);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.countdown-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-crimson), transparent);
}

.countdown-title {
  font-size: 0.85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  width: 100%;
}

.time-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  transition: var(--transition-fast);
}

.time-box:hover {
  border-color: rgba(255, 46, 81, 0.4);
  transform: translateY(-2px);
}

.time-val {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
}

.time-label {
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* Fan Subscription Card */
.subscribe-section {
  width: 100%;
  max-width: 680px;
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  backdrop-filter: blur(16px);
  border-radius: 20px;
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.subscribe-header h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 0.4rem;
}

.subscribe-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 300;
}

.sub-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.input-row {
  display: flex;
  gap: 0.75rem;
  width: 100%;
}

.email-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 0.9rem 1.2rem;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: var(--transition-fast);
}

.email-input:focus {
  border-color: var(--accent-crimson);
  box-shadow: 0 0 15px rgba(255, 46, 81, 0.25);
  background: rgba(0, 0, 0, 0.7);
}

.email-input::placeholder {
  color: var(--text-dim);
}

.submit-btn {
  background: var(--accent-crimson);
  border: none;
  border-radius: 12px;
  padding: 0.9rem 1.8rem;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-fast);
  box-shadow: 0 4px 15px var(--accent-glow);
}

.submit-btn:hover {
  background: #ff003c;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 46, 81, 0.5);
}

.submit-btn:active {
  transform: translateY(0);
}

/* Social Links Bar */
.social-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.social-title {
  font-size: 0.8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-dim);
}

.social-grid {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}

.social-icon-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-fast);
}

.social-icon-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  transition: var(--transition-fast);
}

.social-icon-btn:hover {
  background: rgba(255, 46, 81, 0.15);
  border-color: var(--accent-crimson);
  color: #ffffff;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 5px 15px rgba(255, 46, 81, 0.3);
}

/* Toast Notification */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  background: #111118;
  border: 1px solid var(--accent-crimson);
  border-radius: 10px;
  padding: 1rem 1.5rem;
  color: #fff;
  font-size: 0.9rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* Footer */
.footer-bar {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-dim);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Mobile Responsive */
@media (max-width: 640px) {
  .app-viewport {
    padding: 1.5rem 1rem 3rem 1rem;
    gap: 2.5rem;
  }

  .header-bar {
    flex-direction: column;
    gap: 1rem;
  }

  .input-row {
    flex-direction: column;
  }

  .submit-btn {
    width: 100%;
  }

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

  .logo-wrapper {
    width: 220px;
    height: 220px;
  }
}
