/* ========================================
   Daniel Blinder — Voice Actor Website
   Color Palette:
     Background:  #1e1610 (dark warm brown)
     Surface:     #2a1f17 (slightly lighter brown)
     Accent:      #b07a4f (muted copper/bronze)
     Text:        #f5efe6 (warm cream)
   ======================================== */

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

:root {
  --bg: #1e1610;
  --bg-light: #2a1f17;
  --bg-lighter: #342820;
  --accent: #b07a4f;
  --accent-hover: #c48d5e;
  --text: #f5efe6;
  --text-muted: #bfb5a6;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

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

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-hover);
}

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

.hidden {
  display: none !important;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 36px;
  border: none;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--bg);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  color: var(--bg);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(176, 122, 79, 0.3);
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: rgba(30, 22, 16, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, padding 0.3s ease;
}

.nav.scrolled {
  border-bottom-color: rgba(176, 122, 79, 0.15);
  padding: 10px 32px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.nav-logo:hover {
  color: var(--accent-hover);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a:hover::after {
  width: 100%;
}

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

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

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(176, 122, 79, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 30%, rgba(176, 122, 79, 0.04) 0%, transparent 50%);
  z-index: 0;
}

/* Subtle noise texture via repeating SVG */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
}

/* Faint waveform lines */
.hero-bg::after {
  content: '';
  position: absolute;
  bottom: 15%;
  left: 0;
  right: 0;
  height: 120px;
  opacity: 0.04;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 3px,
    var(--accent) 3px,
    var(--accent) 4px
  );
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120'%3E%3Cpath d='M0 60 Q50 20 100 60 T200 60 T300 60 T400 60 T500 60 T600 60 T700 60 T800 60 T900 60 T1000 60 T1100 60 T1200 60' fill='none' stroke='white' stroke-width='40'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120'%3E%3Cpath d='M0 60 Q50 20 100 60 T200 60 T300 60 T400 60 T500 60 T600 60 T700 60 T800 60 T900 60 T1000 60 T1100 60 T1200 60' fill='none' stroke='white' stroke-width='40'/%3E%3C/svg%3E");
  mask-size: 100% 100%;
  -webkit-mask-size: 100% 100%;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 1100px;
  width: 100%;
}

.hero-text {
  flex: 1;
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero-descriptor {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 36px;
  font-style: italic;
}

.hero-headshot {
  flex-shrink: 0;
}

.headshot-placeholder svg,
.headshot-img {
  width: 260px;
  height: auto;
  border-radius: 8px;
  border: 2px solid var(--bg-lighter);
}

.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  line-height: 0;
}

.hero-wave svg {
  width: 100%;
  height: 60px;
}

/* --- Section Common --- */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
  color: var(--text);
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 48px;
}

/* --- Demo Reel Section --- */
.demos {
  background: #1a120c;
  padding: 100px 0;
}

.demo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.demo-card {
  background: var(--bg);
  border: 1px solid rgba(176, 122, 79, 0.12);
  border-radius: 8px;
  padding: 28px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.demo-card:hover {
  border-color: rgba(176, 122, 79, 0.35);
  transform: translateY(-3px);
}

.demo-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

.demo-icon {
  width: 36px;
  height: 36px;
  color: var(--accent);
  flex-shrink: 0;
}

.demo-icon svg {
  width: 100%;
  height: 100%;
}

.demo-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}

.demo-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 20px;
  line-height: 1.5;
}

.demo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 32px 16px;
  background: var(--bg-light);
  border-radius: 6px;
  border: 1px dashed rgba(176, 122, 79, 0.2);
}

.demo-placeholder svg {
  width: 48px;
  height: 48px;
  opacity: 0.7;
}

.demo-placeholder span {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* YouTube embed styling */
.demo-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 6px;
}

.demo-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Audio player styling */
.demo-audio {
  width: 100%;
  border-radius: 6px;
  outline: none;
}

/* --- About Section --- */
.about {
  padding: 100px 0;
  background: var(--bg);
}

.about-layout {
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

.about-text {
  flex: 1;
}

.about-text p {
  margin-bottom: 18px;
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.8;
}

.about-text p:first-child::first-letter {
  font-family: var(--font-display);
  font-size: 3.2em;
  font-weight: 800;
  float: left;
  line-height: 0.8;
  margin-right: 8px;
  margin-top: 6px;
  color: var(--accent);
}

.voice-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.tag {
  display: inline-block;
  padding: 6px 18px;
  border: 1px solid rgba(176, 122, 79, 0.4);
  border-radius: 3px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  transition: all 0.3s ease;
}

.tag:hover {
  background: rgba(176, 122, 79, 0.1);
  border-color: var(--accent);
}

.about-photo {
  flex-shrink: 0;
}

.photo-placeholder svg,
.about-img {
  width: 240px;
  height: auto;
  border-radius: 8px;
  border: 2px solid var(--bg-lighter);
}

/* --- Services Section --- */
.services {
  padding: 100px 0;
  background: #1a120c;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.service-card {
  padding: 32px 28px;
  background: var(--bg);
  border: 1px solid rgba(176, 122, 79, 0.1);
  border-radius: 8px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.service-card:hover {
  border-color: rgba(176, 122, 79, 0.3);
  transform: translateY(-3px);
}

.service-icon {
  width: 32px;
  height: 32px;
  color: var(--accent);
  margin-bottom: 16px;
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* --- Contact Section --- */
.contact {
  padding: 100px 0;
  background: var(--bg);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-light);
  border: 1px solid rgba(176, 122, 79, 0.15);
  border-radius: 4px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.3s ease;
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(191, 181, 166, 0.4);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}

.form-group select {
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23b07a4f' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-group select option {
  background: var(--bg-light);
  color: var(--text);
}

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

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding-top: 8px;
}

.contact-detail h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.contact-detail a {
  font-size: 1rem;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(176, 122, 79, 0.3);
  border-radius: 4px;
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.social-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(176, 122, 79, 0.08);
}

.social-link svg {
  width: 20px;
  height: 20px;
}

/* --- Footer --- */
.footer {
  padding: 24px 0;
  border-top: 1px solid rgba(176, 122, 79, 0.1);
  text-align: center;
}

.footer p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* --- Scroll Fade-in Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for siblings */
.demo-grid .fade-in:nth-child(2) { transition-delay: 0.08s; }
.demo-grid .fade-in:nth-child(3) { transition-delay: 0.16s; }
.demo-grid .fade-in:nth-child(4) { transition-delay: 0.24s; }
.demo-grid .fade-in:nth-child(5) { transition-delay: 0.32s; }

.services-grid .fade-in:nth-child(2) { transition-delay: 0.06s; }
.services-grid .fade-in:nth-child(3) { transition-delay: 0.12s; }
.services-grid .fade-in:nth-child(4) { transition-delay: 0.18s; }
.services-grid .fade-in:nth-child(5) { transition-delay: 0.24s; }
.services-grid .fade-in:nth-child(6) { transition-delay: 0.30s; }
.services-grid .fade-in:nth-child(7) { transition-delay: 0.36s; }

/* --- Responsive --- */
@media (max-width: 900px) {
  .hero-content {
    flex-direction: column-reverse;
    text-align: center;
  }

  .hero-headshot {
    margin-bottom: 10px;
  }

  .headshot-placeholder svg,
  .headshot-img {
    width: 200px;
  }

  .hero-descriptor {
    margin-bottom: 28px;
  }

  .about-layout {
    flex-direction: column;
  }

  .about-photo {
    align-self: center;
  }

  .about-text p:first-child::first-letter {
    font-size: 2.6em;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav {
    padding: 14px 20px;
  }

  .nav.scrolled {
    padding: 10px 20px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 260px;
    height: 100vh;
    flex-direction: column;
    background: var(--bg);
    padding: 80px 32px 32px;
    gap: 24px;
    border-left: 1px solid rgba(176, 122, 79, 0.15);
    transition: right 0.3s ease;
    z-index: 999;
  }

  .nav-links.open {
    right: 0;
  }

  .hero {
    padding: 100px 20px 60px;
    min-height: auto;
  }

  .hero-name {
    font-size: 2.4rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .demos, .about, .services, .contact {
    padding: 70px 0;
  }

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

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

  .voice-tags {
    justify-content: center;
  }
}
