/* Rockatolia — Psychedelic Anadolu Rock */

:root {
  --bg-deep: #06060f;
  --bg-card: #0e0e1a;
  --sky: #1a2340;
  --rug-red: #8b1f2e;
  --rug-cream: #d4a574;
  --rug-blue: #2a4a6e;
  --accent: #c45c3e;
  --accent-glow: #e87a4f;
  --spotify: #1db954;
  --text: #e8e4dc;
  --text-muted: #8a8698;
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --header-h: 4.5rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Psychedelic background */
.psyche-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  animation: orbFloat 18s ease-in-out infinite;
}

.orb-1 {
  width: 50vmax;
  height: 50vmax;
  background: radial-gradient(circle, var(--rug-red) 0%, transparent 70%);
  top: -15%;
  left: -10%;
  animation-delay: 0s;
}

.orb-2 {
  width: 40vmax;
  height: 40vmax;
  background: radial-gradient(circle, var(--rug-blue) 0%, transparent 70%);
  bottom: 10%;
  right: -15%;
  animation-delay: -6s;
}

.orb-3 {
  width: 35vmax;
  height: 35vmax;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  top: 40%;
  left: 30%;
  animation-delay: -12s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(5%, -3%) scale(1.05); }
  66% { transform: translate(-4%, 4%) scale(0.95); }
}

#particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.6;
}

.mandala {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120vmax;
  height: 120vmax;
  margin: -60vmax 0 0 -60vmax;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(139, 31, 46, 0.04) 30deg,
    transparent 60deg,
    rgba(42, 74, 110, 0.05) 90deg,
    transparent 120deg,
    rgba(196, 92, 62, 0.04) 150deg,
    transparent 180deg
  );
  animation: mandalaSpin 120s linear infinite;
  mask: radial-gradient(circle, transparent 30%, black 70%);
}

@keyframes mandalaSpin {
  to { transform: rotate(360deg); }
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  min-height: var(--header-h);
  max-height: var(--header-h);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  background: rgba(6, 6, 15, 0.92);
  transition: background 0.4s ease, backdrop-filter 0.4s ease;
}

.site-header.scrolled {
  background: rgba(6, 6, 15, 0.95);
  backdrop-filter: blur(12px);
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.35em;
  color: var(--text);
  text-decoration: none;
  position: relative;
}

.logo::after {
  content: attr(data-text);
  position: absolute;
  left: 2px;
  top: 0;
  color: var(--rug-red);
  opacity: 0;
  animation: logoGlitch 4s infinite;
  clip-path: inset(0 100% 0 0);
}

@keyframes logoGlitch {
  0%, 90%, 100% { opacity: 0; clip-path: inset(0 100% 0 0); }
  92% { opacity: 0.7; clip-path: inset(20% 0 60% 0); transform: translate(-2px, 1px); }
  94% { opacity: 0; clip-path: inset(60% 0 10% 0); transform: translate(2px, -1px); }
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.nav a:hover {
  color: var(--rug-cream);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 1;
  padding-bottom: 4rem;
}

.hero-parallax {
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  will-change: transform;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
  transform: scale(1.06);
  transform-origin: center center;
  transition: transform 0.1s linear;
}

.hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 60% at 50% 70%,
    transparent 0%,
    rgba(6, 6, 15, 0.4) 50%,
    var(--bg-deep) 100%
  );
  z-index: 1;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 20%,
    transparent 55%,
    rgba(6, 6, 15, 0.85) 85%,
    var(--bg-deep) 100%
  );
  z-index: 2;
}

.hero-rug-pattern {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30%;
  z-index: 3;
  opacity: 0.15;
  background: repeating-linear-gradient(
    90deg,
    var(--rug-red) 0px,
    var(--rug-red) 8px,
    var(--rug-blue) 8px,
    var(--rug-blue) 16px,
    var(--rug-cream) 16px,
    var(--rug-cream) 24px
  );
  mask: linear-gradient(to top, black, transparent);
  animation: patternShift 20s linear infinite;
}

@keyframes patternShift {
  to { background-position: 200px 0; }
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 2rem;
  max-width: 900px;
}

.hero-tag {
  font-size: 0.75rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--rug-cream);
  margin-bottom: 1rem;
  opacity: 0.9;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.95;
  margin-bottom: 1.25rem;
}

.title-line {
  display: block;
  font-size: clamp(3.5rem, 12vw, 7.5rem);
  letter-spacing: 0.08em;
  text-shadow: 0 0 60px rgba(139, 31, 46, 0.4);
}

.title-accent {
  background: linear-gradient(
    135deg,
    var(--rug-cream) 0%,
    var(--accent-glow) 40%,
    var(--rug-red) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: titleShimmer 6s ease-in-out infinite;
}

@keyframes titleShimmer {
  0%, 100% { filter: hue-rotate(0deg); }
  50% { filter: hue-rotate(15deg); }
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-muted);
  font-weight: 300;
  font-style: italic;
  max-width: 480px;
  margin: 0 auto 2rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

/* Spotify badge */
.spotify-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1.25rem 0.65rem 1rem;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(29, 185, 84, 0.35);
  border-radius: 999px;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 0 30px rgba(29, 185, 84, 0.15);
}

.spotify-badge:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: var(--spotify);
  box-shadow: 0 0 40px rgba(29, 185, 84, 0.35);
}

.spotify-logo {
  height: 28px;
  width: auto;
  display: block;
}

.spotify-text {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.spotify-badge--large {
  padding: 0.85rem 1.5rem 0.85rem 1.15rem;
}

.spotify-badge--large .spotify-logo {
  height: 34px;
}

.btn-ghost {
  padding: 0.75rem 1.5rem;
  border: 1px solid rgba(212, 165, 116, 0.4);
  border-radius: 999px;
  color: var(--rug-cream);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.btn-ghost:hover {
  background: rgba(139, 31, 46, 0.2);
  border-color: var(--rug-red);
}

.scroll-hint {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--rug-cream), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* Sections */
.section {
  position: relative;
  z-index: 1;
  padding: 6rem 2rem;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.section-title em {
  font-style: normal;
  color: var(--rug-cream);
  text-shadow: 0 0 40px rgba(196, 92, 62, 0.3);
}

.section-lead {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 520px;
  margin-bottom: 2.5rem;
}

/* About */
.about {
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-card) 100%);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: start;
}

.about-text p {
  margin-bottom: 1.25rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.about-text strong {
  color: var(--text);
}

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2rem;
  border-left: 2px solid rgba(139, 31, 46, 0.4);
}

.stat-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--rug-cream);
  display: block;
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.wave-divider {
  height: 80px;
  margin-top: 4rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 80' preserveAspectRatio='none'%3E%3Cpath fill='%230e0e1a' d='M0,40 Q300,80 600,40 T1200,40 L1200,80 L0,80 Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  opacity: 0.8;
}

/* Music */
.music {
  background: var(--bg-card);
}

.music-card {
  display: flex;
  align-items: center;
  gap: 3rem;
  padding: 3rem;
  background: rgba(6, 6, 15, 0.6);
  border: 1px solid rgba(139, 31, 46, 0.25);
  border-radius: 1.5rem;
  position: relative;
  overflow: hidden;
}

.music-card::before {
  content: "";
  position: absolute;
  inset: -50%;
  background: conic-gradient(
    from 0deg,
    transparent,
    rgba(29, 185, 84, 0.08),
    transparent,
    rgba(139, 31, 46, 0.1),
    transparent
  );
  animation: cardGlow 8s linear infinite;
}

@keyframes cardGlow {
  to { transform: rotate(360deg); }
}

.music-card > * {
  position: relative;
  z-index: 1;
}

.vinyl {
  flex-shrink: 0;
  width: 140px;
  height: 140px;
  position: relative;
}

.vinyl-disc {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #2a2a35 0%, #0a0a12 45%, #1a1a22 100%);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8), 0 8px 30px rgba(0, 0, 0, 0.5);
  animation: vinylSpin 12s linear infinite;
}

.vinyl-disc::before {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: repeating-radial-gradient(
    circle,
    transparent 0px,
    transparent 3px,
    rgba(255, 255, 255, 0.03) 3px,
    rgba(255, 255, 255, 0.03) 4px
  );
}

.vinyl-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36%;
  height: 36%;
  border-radius: 50%;
  background: var(--rug-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--rug-cream);
}

@keyframes vinylSpin {
  to { transform: rotate(360deg); }
}

.music-card-content h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.music-card-content p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* Contact */
.contact {
  text-align: center;
  padding-bottom: 8rem;
}

.contact .section-label,
.contact .section-title,
.contact .section-lead {
  margin-left: auto;
  margin-right: auto;
}

.contact-email {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 4vw, 2rem);
  color: var(--rug-cream);
  text-decoration: none;
  margin-bottom: 2rem;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.contact-email:hover {
  color: var(--accent-glow);
  text-shadow: 0 0 30px rgba(232, 122, 79, 0.4);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.social-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.social-instagram:hover { color: #e1306c; }
.social-youtube:hover { color: #ff4444; }
.social-x:hover { color: #e8e4dc; }
.social-tiktok:hover { color: #25f4ee; }

/* Footer */
.site-footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.back-top {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 1.25rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

.back-top:hover {
  color: var(--rug-cream);
  transform: translateY(-3px);
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }

/* Mobile */
@media (max-width: 768px) {
  :root {
    --header-h: 3.75rem;
  }

  .site-header {
    padding: 0 1.25rem;
  }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(280px, 85vw);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    background: rgba(6, 6, 15, 0.97);
    backdrop-filter: blur(16px);
    transform: translateX(100%);
    transition: transform 0.35s ease;
    gap: 1.5rem;
  }

  .nav.open {
    transform: translateX(0);
  }

  .menu-toggle {
    display: flex;
    z-index: 101;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-stats {
    flex-direction: row;
    flex-wrap: wrap;
    border-left: none;
    border-top: 2px solid rgba(139, 31, 46, 0.4);
    padding-top: 2rem;
  }

  .music-card {
    flex-direction: column;
    text-align: center;
    padding: 2rem;
  }

  .site-header {
    padding: 1rem 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-image {
    transform: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
