/* ============================================
   Dave Rice Music — Modern Dark EDM Theme
   ============================================ */

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

:root {
  --bg: #0a0a0f;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-glass: rgba(255, 255, 255, 0.06);
  --border-glass: rgba(255, 255, 255, 0.1);
  --text: rgba(255, 255, 255, 0.75);
  --text-bright: rgba(255, 255, 255, 0.95);
  --accent: #c13515;
  --accent-glow: rgba(193, 53, 21, 0.5);
  --purple: #6b4c9a;
  --purple-glow: rgba(107, 76, 154, 0.4);
  --neon-cyan: #00e5ff;
  --neon-pink: #ff2d78;
  --dark: #0a0a0f;
  --white: #fff;
  --nav-height: 70px;
  --gradient-accent: linear-gradient(135deg, var(--accent), var(--purple));
  --gradient-hero: linear-gradient(135deg, #0a0a1a 0%, #1a0a2e 30%, #0a1628 60%, #0a0a0f 100%);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Open Sans', sans-serif;
  font-weight: 700;
  color: var(--text-bright);
}

a { color: var(--accent); text-decoration: none; transition: color .3s, text-shadow .3s; }
a:hover { color: var(--neon-cyan); text-shadow: 0 0 12px var(--neon-cyan); }

img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* --- Particle Canvas --- */
#particles-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
}

/* --- Hero Navigation (integrated into hero) --- */
.hero-nav {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
  padding: 8px 0;
}
.hero-nav-links {
  list-style: none;
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: center;
}
.hero-nav-links a {
  color: rgba(255, 255, 255, .7);
  font-family: 'Montserrat', sans-serif;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
  padding: 4px 0;
  transition: color .3s, text-shadow .3s;
}
.hero-nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--gradient-accent);
  transition: width .3s;
  border-radius: 2px;
  box-shadow: 0 0 8px var(--accent-glow);
}
.hero-nav-links a:hover::after,
.hero-nav-links a.active::after { width: 100%; }
.hero-nav-links a:hover, .hero-nav-links a.active { color: var(--white); text-shadow: none; }

/* Hero Social Icons */
.hero-social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 12px 0 0;
  z-index: 10;
  position: relative;
}
.hero-social a {
  color: rgba(255, 255, 255, .65);
  font-size: 1.5rem;
  transition: color .3s, text-shadow .3s, transform .3s;
}
.hero-social a:hover {
  color: var(--white);
  text-shadow: 0 0 15px rgba(255,255,255,.4);
  transform: scale(1.15);
}
.hero-social .svg-icon {
  width: 1.5rem;
  height: 1.5rem;
  fill: currentColor;
  vertical-align: middle;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  z-index: 1001;
  position: absolute;
  top: 20px;
  right: 24px;
}
.hamburger span {
  width: 26px; height: 2px;
  background: var(--white);
  transition: transform .3s, opacity .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 64vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../images/hero-bg.jpg') center/cover no-repeat;
  filter: brightness(0.3) saturate(0.7);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 15, 0.5) 0%,
    rgba(10, 10, 15, 0.2) 40%,
    rgba(10, 10, 15, 0.7) 80%,
    rgba(10, 10, 15, 1) 100%
  );
}
.hero-gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.3;
  pointer-events: none;
  animation: orbFloat 12s ease-in-out infinite;
}
.hero-gradient-orb.orb-1 {
  width: 600px; height: 600px;
  background: var(--purple);
  top: -10%; left: -10%;
  animation-delay: 0s;
}
.hero-gradient-orb.orb-2 {
  width: 500px; height: 500px;
  background: var(--accent);
  bottom: -15%; right: -10%;
  animation-delay: -4s;
}
.hero-gradient-orb.orb-3 {
  width: 400px; height: 400px;
  background: var(--neon-cyan);
  top: 30%; right: 20%;
  opacity: 0.1;
  animation-delay: -8s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 40px 24px;
  animation: heroFadeIn 1.5s ease-out;
}

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

.hero-logo {
  width: 19%;
  min-width: 160px;
  max-width: 400px;
  margin: 0 auto 20px;
  filter: drop-shadow(0 0 40px rgba(193, 53, 21, 0.3));
  animation: logoPulse 4s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% { filter: drop-shadow(0 0 30px rgba(193, 53, 21, 0.2)); }
  50% { filter: drop-shadow(0 0 50px rgba(193, 53, 21, 0.4)); }
}

.hero-tagline {
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 5px;
  text-transform: uppercase;
  margin-bottom: 40px;
}

.hero-cta-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 8px;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  color: var(--white);
  font-weight: 600;
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  transition: all .3s;
}
.hero-cta:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
  text-shadow: none;
  box-shadow: 0 0 30px var(--accent-glow);
  transform: translateY(-2px);
}
.hero-cta i { font-size: 1.1rem; }

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: scrollBounce 2s ease-in-out infinite;
}
.scroll-indicator span {
  display: block;
  width: 24px; height: 24px;
  border-right: 2px solid rgba(255,255,255,.3);
  border-bottom: 2px solid rgba(255,255,255,.3);
  transform: rotate(45deg);
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.5; }
  50% { transform: translateX(-50%) translateY(10px); opacity: 1; }
}

/* Inner Page Hero */
.hero-inner {
  min-height: 32vh;
}
.hero-inner .hero-bg {
  filter: brightness(0.2) saturate(0.5);
}
.hero-inner .hero-overlay {
  background: linear-gradient(
    180deg,
    rgba(10, 10, 15, 0.3) 0%,
    rgba(10, 10, 15, 0.5) 50%,
    rgba(10, 10, 15, 1) 100%
  );
}
.hero-inner .hero-logo {
  width: 14%;
  min-width: 120px;
  max-width: 280px;
  margin-bottom: 14px;
}
.hero-page-title {
  color: var(--white);
  font-size: 2.8rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  text-shadow: 0 0 40px rgba(193, 53, 21, 0.3);
  margin-top: 10px;
}

/* Waveform decoration */
.waveform-divider {
  width: 100%;
  height: 60px;
  position: relative;
  overflow: hidden;
  opacity: 0.15;
}
.waveform-divider svg { width: 100%; height: 100%; }

/* --- Sections --- */
.section {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}
.section-alt {
  background: rgba(255, 255, 255, 0.02);
}

.section-title {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 2px;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-subtitle {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 56px;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
}

/* --- Glass Card --- */
.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 40px;
  transition: border-color .3s, box-shadow .3s;
}
.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

/* --- Bio --- */
.bio-text {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.05rem;
}
.bio-text p { margin-bottom: 20px; }

/* --- Streaming Links --- */
.stream-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  max-width: 900px;
  margin: 0 auto;
}
.stream-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50px;
  color: var(--text-bright);
  font-weight: 600;
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  transition: all .3s;
  backdrop-filter: blur(10px);
}
.stream-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
  text-shadow: none;
  box-shadow: 0 0 25px var(--accent-glow);
  transform: translateY(-3px);
}
.stream-btn i { font-size: 1.2rem; }
.stream-btn .svg-icon,
.hero-cta .svg-icon,
.footer-social .svg-icon,
.hero-social .svg-icon {
  width: 1.2em;
  height: 1.2em;
  display: inline-block;
  vertical-align: middle;
  fill: currentColor;
  margin-right: 0.15em;
}

/* --- Spotify Embed --- */
.spotify-embed {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-glass);
}
.spotify-embed iframe {
  width: 100%;
  height: 380px;
  border: none;
  border-radius: 16px;
}

/* --- YouTube --- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}
.video-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16/9;
  border: 1px solid var(--border-glass);
  transition: border-color .3s, box-shadow .3s;
}
.video-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}
.video-card iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.yt-channel-link {
  text-align: center;
  margin-top: 48px;
}
.yt-channel-link a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: #c4302b;
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 50px;
  border: none;
  transition: all .3s;
}
.yt-channel-link a:hover {
  background: #ff0000;
  color: var(--white);
  text-shadow: none;
  box-shadow: 0 0 30px rgba(196, 48, 43, 0.5);
  transform: translateY(-3px);
}

/* --- About --- */
.about-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.05rem;
}
.about-content p { margin-bottom: 20px; }

/* --- Contact --- */
.contact-section { max-width: 650px; margin: 0 auto; }
.contact-section p { margin-bottom: 32px; font-size: 1.05rem; }

.contact-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 6px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.contact-form .form-group { display: flex; flex-direction: column; }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 16px 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  color: var(--text-bright);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  transition: border-color .3s, box-shadow .3s;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(193, 53, 21, 0.15);
}
.contact-form textarea { min-height: 160px; resize: vertical; }
.contact-form button {
  padding: 18px 44px;
  background: var(--gradient-accent);
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all .3s;
  align-self: flex-start;
}
.contact-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px var(--accent-glow);
}

/* --- Footer --- */
.footer {
  background: rgba(5, 5, 10, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: rgba(255,255,255,.4);
  text-align: center;
  padding: 60px 24px 40px;
  position: relative;
  z-index: 1;
}
.footer-social {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.footer-social a {
  color: rgba(255,255,255,.4);
  font-size: 1.4rem;
  transition: all .3s;
}
.footer-social a:hover {
  color: var(--accent);
  text-shadow: 0 0 20px var(--accent-glow);
  transform: scale(1.2);
}
.footer-copy { font-size: .85rem; }

/* --- Fade-in Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .8s ease-out, transform .8s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Slide from left */
.slide-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity .8s ease-out, transform .8s ease-out;
}
.slide-left.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Slide from right */
.slide-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity .8s ease-out, transform .8s ease-out;
}
.slide-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Glow-line divider */
.glow-line {
  width: 80px;
  height: 2px;
  margin: 0 auto 48px;
  background: var(--gradient-accent);
  border-radius: 2px;
  box-shadow: 0 0 15px var(--accent-glow);
}

/* --- Smart Links (Home page) --- */
.smart-links-section {
  padding: 60px 0 40px;
}
.smart-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 480px;
  margin: 0 auto;
}
.smart-link-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 32px;
  border-radius: 50px;
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all .3s;
  text-align: center;
}
.smart-link-btn:hover {
  transform: translateY(-2px);
  color: var(--white);
  text-shadow: none;
}
.smart-link-btn i,
.smart-link-btn .svg-icon { font-size: 1.3rem; }

.smart-link-spotify { background: #1DB954; }
.smart-link-spotify:hover { box-shadow: 0 0 30px rgba(29, 185, 84, 0.5); background: #1ed760; }

.smart-link-beatport { background: #94d500; color: #000; }
.smart-link-beatport:hover { box-shadow: 0 0 30px rgba(148, 213, 0, 0.5); background: #a8e600; color: #000; }
.smart-link-beatport .svg-icon { fill: #000; }

.smart-link-pandora { background: #3668ff; }
.smart-link-pandora:hover { box-shadow: 0 0 30px rgba(54, 104, 255, 0.5); background: #4d7aff; }

.smart-link-apple { background: #fa243c; }
.smart-link-apple:hover { box-shadow: 0 0 30px rgba(250, 36, 60, 0.5); background: #ff3b50; }

.smart-links-meta {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 24px;
}
.smart-meta-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color .3s;
}
.smart-meta-link:hover {
  color: var(--accent);
  text-shadow: none;
}

/* --- Stream Icon Row (Home bottom) --- */
.stream-icon-row {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  padding: 20px 0;
}
.stream-icon-link {
  color: rgba(255, 255, 255, 0.5);
  font-size: 2rem;
  transition: all .3s;
}
.stream-icon-link:hover {
  color: var(--accent);
  text-shadow: 0 0 20px var(--accent-glow);
  transform: scale(1.2);
}
.stream-icon-link .svg-icon {
  width: 2rem;
  height: 2rem;
  fill: currentColor;
  vertical-align: middle;
}

/* --- Photo Gallery (About page) --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}
.gallery-item {
  padding: 0 !important;
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 1;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.gallery-item:hover img {
  transform: scale(1.08);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .hamburger { display: flex; }

  .hamburger { display: flex; }

  .hero-nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 300px;
    height: 100vh;
    flex-direction: column;
    background: rgba(10, 10, 15, .97);
    backdrop-filter: blur(30px);
    padding: 100px 40px 40px;
    gap: 24px;
    transition: right .35s;
    border-left: 1px solid rgba(255,255,255,.05);
    z-index: 1000;
  }
  .hero-nav-links.open { right: 0; }

  .hero-social { display: none; }

  .hero-logo { min-width: 140px; }
  .hero-tagline { font-size: .9rem; letter-spacing: 3px; }

  .hero-inner { min-height: 28vh; }
  .hero-page-title { font-size: 2.2rem; }

  .section { padding: 64px 0; }
  .section-title { font-size: 1.6rem; }

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

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

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

  .spotify-embed iframe { height: 380px; }

  .glass-card { padding: 24px; }

  .hero-cta { padding: 12px 24px; font-size: .8rem; }
}

@media (max-width: 480px) {
  .stream-grid { grid-template-columns: 1fr; }
  .hero-cta-row { flex-direction: column; align-items: center; }
  .gallery-grid { grid-template-columns: 1fr; }
  .stream-icon-row { gap: 20px; }
  .stream-icon-link { font-size: 1.6rem; }
  .stream-icon-link .svg-icon { width: 1.6rem; height: 1.6rem; }
}
