/* ============================================================
   DALUR — Music Producer Website
   style.css
   ============================================================ */

/* ===================== VARIABLES ===================== */
:root {
  --bg:            #05050f;
  --bg-secondary:  #080812;
  --purple:        #9333ea;
  --purple-light:  #c084fc;
  --purple-dark:   #6d28d9;
  --purple-xdark:  #3b0764;
  --purple-glow:   rgba(147, 51, 234, 0.25);
  --purple-glow-s: rgba(147, 51, 234, 0.12);
  --text:          #f1f5f9;
  --text-dim:      #94a3b8;
  --text-muted:    #475569;
  --border:        rgba(147, 51, 234, 0.2);
  --glass:         rgba(147, 51, 234, 0.06);
  --radius:        14px;
  --nav-height:    72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar        { width: 5px; }
::-webkit-scrollbar-track  { background: var(--bg); }
::-webkit-scrollbar-thumb  { background: var(--purple-dark); border-radius: 3px; }

/* ===================== HELPERS ===================== */
.accent {
  background: linear-gradient(135deg, var(--purple-light), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

section { padding: 120px 0; }

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--purple-light), var(--purple));
  color: white;
  box-shadow: 0 0 30px var(--purple-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 50px rgba(147, 51, 234, 0.55);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--purple-light);
  color: var(--purple-light);
  background: var(--glass);
}

.btn-full { width: 100%; }

/* ===================== NAVBAR ===================== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: all 0.35s ease;
  padding: 0 2rem;
}

#navbar.scrolled {
  background: rgba(5, 5, 15, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.nav-logo {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 1.35rem;
  text-decoration: none;
  color: var(--text);
  letter-spacing: 0.06em;
}
.nav-logo span {
  background: linear-gradient(135deg, var(--purple-light), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}
.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--purple-light); }

.nav-cta {
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  color: white;
  text-decoration: none;
  padding: 0.55rem 1.4rem;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  transition: all 0.2s;
  box-shadow: 0 0 20px var(--purple-glow);
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 35px rgba(147, 51, 234, 0.55);
}

/* Burger */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(5, 5, 15, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.mobile-menu.open { display: flex; }
.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: center;
}
.mobile-menu a {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.1em;
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--purple-light); }

/* ===================== HERO ===================== */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
}

#particle-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-glow {
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(147, 51, 234, 0.18) 0%, transparent 68%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  animation: pulse-glow 5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes pulse-glow {
  0%, 100% { transform: translate(-50%, -50%) scale(1);   opacity: 0.8; }
  50%       { transform: translate(-50%, -50%) scale(1.15); opacity: 1;   }
}

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

.hero-pre {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--purple-light);
  margin-bottom: 1.25rem;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.3s;
}

.hero-title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: clamp(4.5rem, 17vw, 13rem);
  line-height: 0.9;
  letter-spacing: 0.09em;
  background: linear-gradient(160deg, #ffffff 0%, var(--purple-light) 45%, var(--purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 70px rgba(147, 51, 234, 0.45));
  margin-bottom: 1.25rem;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.5s;
}

/* Glitch */
.glitch { position: relative; }
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(160deg, #ffffff 0%, var(--purple-light) 45%, var(--purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.glitch::before {
  animation: glitch-1 9s infinite;
  clip-path: polygon(0 15%, 100% 15%, 100% 38%, 0 38%);
}
.glitch::after {
  animation: glitch-2 9s infinite;
  clip-path: polygon(0 62%, 100% 62%, 100% 80%, 0 80%);
}
@keyframes glitch-1 {
  0%, 91%, 100% { transform: translateX(0);  opacity: 0; }
  93%           { transform: translateX(-5px); opacity: 0.7; filter: hue-rotate(80deg); }
  95%           { transform: translateX(5px);  opacity: 0.7; }
  97%           { transform: translateX(0);    opacity: 0; }
}
@keyframes glitch-2 {
  0%, 89%, 100% { transform: translateX(0);  opacity: 0; }
  91%           { transform: translateX(5px);  opacity: 0.7; filter: hue-rotate(-80deg); }
  93%           { transform: translateX(-5px); opacity: 0.7; }
  95%           { transform: translateX(0);    opacity: 0; }
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-dim);
  font-weight: 300;
  letter-spacing: 0.06em;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.7s;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.9s;
}

.hero-socials {
  display: flex;
  gap: 1.75rem;
  justify-content: center;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 1.1s;
}
.hero-socials a {
  color: var(--text-muted);
  font-size: 1.25rem;
  transition: all 0.25s;
}
.hero-socials a:hover {
  color: var(--purple-light);
  transform: translateY(-4px);
  filter: drop-shadow(0 0 8px var(--purple-light));
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 1.5s;
}
.scroll-indicator span {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.scroll-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, var(--purple-light), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50%       { opacity: 0.3; transform: scaleY(0.65); }
}

/* ===================== SECTION HEADERS ===================== */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.section-tag {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--purple-light);
  margin-bottom: 0.9rem;
}
.section-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.9rem, 4.5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* Divider lines on alt sections */
#about,
#connect {
  background: var(--bg-secondary);
  position: relative;
}
#about::before,
#connect::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple), transparent);
}

/* ===================== ABOUT ===================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4.5rem;
  align-items: center;
}

/* Photo area */
.about-image { position: relative; }

.image-placeholder {
  aspect-ratio: 3/4;
  background: linear-gradient(145deg, #0d0620 0%, #1a0a30 60%, #0d0620 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Orbitron', sans-serif;
  font-size: 2.5rem;
  font-weight: 900;
  color: rgba(147, 51, 234, 0.25);
  position: relative;
  overflow: hidden;
}
.image-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(147, 51, 234, 0.08));
}

/* Corner brackets */
.image-corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: var(--purple);
  border-style: solid;
}
.image-corner.tl { top: 12px;    left: 12px;    border-width: 2px 0 0 2px; }
.image-corner.tr { top: 12px;    right: 12px;   border-width: 2px 2px 0 0; }
.image-corner.bl { bottom: 12px; left: 12px;    border-width: 0 0 2px 2px; }
.image-corner.br { bottom: 12px; right: 12px;   border-width: 0 2px 2px 0; }

.about-text {
  color: var(--text-dim);
  font-size: 1.05rem;
  line-height: 1.85;
  margin-bottom: 1.5rem;
}

.about-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.stat { display: flex; flex-direction: column; gap: 0.2rem; }
.stat-num {
  font-family: 'Orbitron', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--purple-light), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* ===================== MUSIC ===================== */
.music-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.track-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.35s ease;
}
.track-card:hover {
  border-color: var(--purple);
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5), 0 0 35px var(--purple-glow);
}

.track-thumb {
  aspect-ratio: 1;
  background: linear-gradient(145deg,
    hsl(var(--hue, 270deg) 60% 8%) 0%,
    hsl(var(--hue, 270deg) 70% 14%) 100%
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.track-thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 30%, rgba(147, 51, 234, 0.15));
}

.track-play {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-light), var(--purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: white;
  position: relative;
  z-index: 1;
  padding-left: 4px;
  transition: all 0.25s;
  box-shadow: 0 0 20px var(--purple-glow);
}
.track-card:hover .track-play {
  transform: scale(1.12);
  box-shadow: 0 0 35px rgba(147, 51, 234, 0.65);
}

/* Animated wave bars */
.track-wave {
  display: flex;
  gap: 3px;
  align-items: flex-end;
  height: 36px;
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.track-wave span {
  display: block;
  width: 4px;
  background: rgba(192, 132, 252, 0.3);
  border-radius: 2px;
  animation: wave-idle 2s ease-in-out infinite;
}
.track-wave span:nth-child(1)  { height: 12px; animation-delay: 0.0s; }
.track-wave span:nth-child(2)  { height: 22px; animation-delay: 0.1s; }
.track-wave span:nth-child(3)  { height: 32px; animation-delay: 0.2s; }
.track-wave span:nth-child(4)  { height: 18px; animation-delay: 0.3s; }
.track-wave span:nth-child(5)  { height: 28px; animation-delay: 0.4s; }
.track-wave span:nth-child(6)  { height: 14px; animation-delay: 0.5s; }
.track-wave span:nth-child(7)  { height: 24px; animation-delay: 0.6s; }
.track-wave span:nth-child(8)  { height: 32px; animation-delay: 0.7s; }
.track-wave span:nth-child(9)  { height: 18px; animation-delay: 0.8s; }
.track-wave span:nth-child(10) { height: 10px; animation-delay: 0.9s; }

.track-card:hover .track-wave span { background: var(--purple-light); }

@keyframes wave-idle {
  0%, 100% { transform: scaleY(1);    opacity: 0.6; }
  50%       { transform: scaleY(0.45); opacity: 0.3; }
}

.track-info { padding: 1.2rem 1.3rem; }
.track-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  letter-spacing: 0.04em;
}
.track-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ===================== CONNECT ===================== */
.connect-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

/* Social cards */
.social-links { display: flex; flex-direction: column; gap: 0.9rem; }

.social-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.1rem 1.4rem;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s ease;
}
.social-card:hover {
  border-color: var(--purple);
  background: rgba(147, 51, 234, 0.1);
  transform: translateX(7px);
}
.social-card > i:first-child {
  font-size: 1.4rem;
  color: var(--purple-light);
  width: 1.8rem;
  text-align: center;
  flex-shrink: 0;
}
.social-card > div {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.social-platform { font-weight: 600; font-size: 0.92rem; }
.social-handle    { font-size: 0.78rem; color: var(--text-muted); }

.social-arrow {
  color: var(--text-muted);
  font-size: 0.8rem;
  transition: all 0.25s;
}
.social-card:hover .social-arrow {
  color: var(--purple-light);
  transform: translateX(4px);
}

/* Contact form */
.contact-form h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: 0.04em;
}

.form-group { margin-bottom: 1rem; }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1.2rem;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
  -webkit-appearance: none;
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239333ea' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}
.form-group select option { background: #1a0a2e; color: var(--text); }

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px var(--purple-glow-s);
}

.form-group textarea { resize: vertical; min-height: 115px; }

/* Submit feedback */
.form-success {
  text-align: center;
  padding: 2rem;
  color: var(--purple-light);
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.05em;
  display: none;
}

/* ===================== FOOTER ===================== */
footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer-logo {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.75rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--purple-light), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}
.footer-copy {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ===================== SCROLL ANIMATIONS ===================== */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children when parent becomes visible */
.fade-up.visible .track-card:nth-child(1) { transition-delay: 0.05s; }
.fade-up.visible .track-card:nth-child(2) { transition-delay: 0.15s; }
.fade-up.visible .track-card:nth-child(3) { transition-delay: 0.25s; }
.fade-up.visible .track-card:nth-child(4) { transition-delay: 0.35s; }

/* ===================== KEYFRAMES ===================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
  .about-grid,
  .connect-grid { grid-template-columns: 1fr; gap: 2.5rem; }

  .about-image { max-width: 340px; margin: 0 auto; }

  .nav-links,
  .nav-cta { display: none; }

  .nav-burger { display: flex; }
}

@media (max-width: 600px) {
  section { padding: 80px 0; }
  .hero-actions { flex-direction: column; align-items: center; }
  .about-stats  { gap: 1.5rem; flex-wrap: wrap; }
  .music-grid   { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 400px) {
  .music-grid { grid-template-columns: 1fr; }
}
