/* ==========================================================================
   Heather LeinBaugh — Voice Acting Portfolio
   Theme: Enchanted Forest — Split Hero, Portfolio Layout
   ========================================================================== */

:root {
  --teal-darkest:   #0d3b3b;
  --teal-dark:      #1a5c5c;
  --teal:           #237070;
  --teal-light:     #2a7a7a;
  --teal-lighter:   #3a9a9a;

  --gold-dark:      #b8943e;
  --gold:           #c9a84c;
  --gold-bright:    #e8c84c;
  --gold-light:     #f5deb3;
  --gold-glow:      rgba(232, 200, 76, 0.35);

  --cream:          #faf8f0;
  --cream-dark:     #f5f0e6;
  --cream-teal:     #eef5f2;

  --green:          #3a6b4f;
  --green-light:    #4a7c5f;

  --text-dark:      #2c2c2c;
  --text-darker:    #1a1a1a;
  --text-light:     #faf8f0;
  --text-muted:     #6b6b6b;

  --shadow-sm:    0 2px 8px  rgba(13, 59, 59, 0.08);
  --shadow-md:    0 4px 16px rgba(13, 59, 59, 0.12);
  --shadow-lg:    0 8px 32px rgba(13, 59, 59, 0.16);
  --shadow-gold:  0 0 20px   rgba(201, 168, 76, 0.25);
  --shadow-lift:  0 12px 36px rgba(13, 59, 59, 0.20);

  --font-display: "Cinzel Decorative", "Cinzel", serif;
  --font-heading: "Cormorant Garamond", "Garamond", serif;
  --font-body:    "Nunito", "Segoe UI", sans-serif;

  --container-max: 1200px;
  --ease:      0.3s ease;
  --ease-slow: 0.6s ease;
  --nav-height: 56px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-height); }

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; border: none; background: none; outline: none; }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}


/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4 { line-height: 1.25; }

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 600;
  color: var(--teal-dark);
  margin-bottom: 1.25rem;
}

.section-title--light { color: var(--cream); }


/* ==========================================================================
   Navigation
   ========================================================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 59, 59, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  transition: background var(--ease), box-shadow var(--ease);
}

.nav.scrolled {
  background: rgba(13, 59, 59, 0.97);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container-max);
  padding: 0 1.5rem;
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--gold);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav__link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cream);
  letter-spacing: 0.03em;
  position: relative;
  padding: 0.2rem 0;
  transition: color var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
  transition: width var(--ease);
}

.nav__link:hover,
.nav__link.active { color: var(--gold-light); }

.nav__link:hover::after,
.nav__link.active::after { width: 100%; }

/* Book Me CTA in nav */
.nav__link--cta {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-bright) 100%);
  color: var(--teal-darkest) !important;
  padding: 0.4rem 1.1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

.nav__link--cta::after { display: none; }

.nav__link--cta:hover {
  box-shadow: 0 0 16px rgba(201, 168, 76, 0.4);
  transform: translateY(-1px);
}

/* Hamburger (mobile) */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  z-index: 1001;
}

.nav__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease);
}

.nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 767px) {
  .nav__hamburger { display: flex; }

  .nav__links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 2.5rem;
    background: rgba(13, 59, 59, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--ease), visibility var(--ease);
  }

  .nav__links.open { opacity: 1; visibility: visible; }
  .nav__link { font-size: 1.2rem; }
  .nav__link--cta { font-size: 1rem; padding: 0.5rem 1.5rem; }
}


/* ==========================================================================
   Hero — Split Screen
   ========================================================================== */

.hero {
  position: relative;
  padding: calc(var(--nav-height) + 1.5rem) 0 0;
  background:
    radial-gradient(ellipse 60% 50% at 25% 40%, rgba(42, 122, 122, 0.25) 0%, transparent 70%),
    radial-gradient(ellipse 50% 45% at 75% 55%, rgba(201, 168, 76, 0.12) 0%, transparent 65%),
    linear-gradient(170deg, var(--teal-darkest) 0%, var(--teal-dark) 40%, #174f4f 100%);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(125deg, transparent 30%, rgba(201, 168, 76, 0.06) 45%, rgba(245, 222, 179, 0.08) 50%, rgba(201, 168, 76, 0.06) 55%, transparent 70%);
  background-size: 300% 300%;
  animation: hero-shimmer 12s ease-in-out infinite;
  pointer-events: none;
}

@keyframes hero-shimmer {
  0%   { background-position: 100% 0%; }
  50%  { background-position: 0% 100%; }
  100% { background-position: 100% 0%; }
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 2rem 1.5rem 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: end;
}

@media (min-width: 768px) {
  .hero__inner {
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    padding: 2.5rem 2rem 0;
  }
}

@media (min-width: 1024px) {
  .hero__inner {
    grid-template-columns: 320px 1fr;
    gap: 3.5rem;
  }
}

/* Hero photo */
.hero__photo-wrap {
  display: flex;
  justify-content: center;
}

.hero__photo {
  width: 220px;
  height: 220px;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  border: 3px solid var(--gold-light);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 40px rgba(201, 168, 76, 0.15);
}

@media (min-width: 768px) {
  .hero__photo-wrap {
    justify-content: flex-start;
    align-self: end;
  }

  .hero__photo {
    width: 100%;
    height: auto;
    max-width: 320px;
    aspect-ratio: 3 / 4;
    border-radius: 16px 16px 0 0;
    object-position: center 20%;
  }
}

/* Hero text content */
.hero__content {
  padding-bottom: 2.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .hero__content {
    text-align: left;
    padding-bottom: 2.5rem;
  }
}

.hero__name {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4.5vw, 2.8rem);
  color: var(--cream);
  letter-spacing: 0.06em;
  margin-bottom: 0.3rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero__tagline {
  font-family: var(--font-heading);
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  font-weight: 400;
  font-style: italic;
  color: var(--gold-light);
  margin-bottom: 1rem;
}

.hero__bio {
  font-size: 0.88rem;
  color: rgba(250, 248, 240, 0.8);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  max-width: 520px;
}

@media (min-width: 768px) {
  .hero__bio { max-width: 520px; }
}

.hero__actions {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
}

@media (min-width: 768px) {
  .hero__actions { justify-content: flex-start; }
}

.hero__cta {
  display: inline-block;
  padding: 0.6rem 1.6rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--teal-darkest);
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-bright) 100%);
  border-radius: 50px;
  cursor: pointer;
  transition: transform var(--ease), box-shadow var(--ease);
  box-shadow: 0 4px 16px rgba(201, 168, 76, 0.3);
}

.hero__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(201, 168, 76, 0.45);
}

.hero__cta--outline {
  background: transparent;
  color: var(--gold-light);
  border: 2px solid var(--gold-light);
  box-shadow: none;
}

.hero__cta--outline:hover {
  background: rgba(201, 168, 76, 0.1);
  box-shadow: 0 0 20px rgba(201, 168, 76, 0.2);
}

/* Quick specialty tags in hero */
.hero__quick-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
}

@media (min-width: 768px) {
  .hero__quick-tags { justify-content: flex-start; }
}

.hero__quick-tags span {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  background: rgba(250, 248, 240, 0.1);
  color: rgba(250, 248, 240, 0.6);
  border: 1px solid rgba(250, 248, 240, 0.15);
}


/* ==========================================================================
   Floating Firefly Particles
   ========================================================================== */

.particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold-bright);
  opacity: 0;
  animation: float-particle var(--dur, 24s) var(--delay, 0s) infinite ease-in-out;
}

.particle:nth-child(1) { left: 12%; top: 20%; --dur: 22s; --delay: 0s; }
.particle:nth-child(2) { left: 68%; top: 60%; --dur: 28s; --delay: 4s; width: 3px; height: 3px; }
.particle:nth-child(3) { left: 30%; top: 75%; --dur: 20s; --delay: 8s; }
.particle:nth-child(4) { left: 85%; top: 30%; --dur: 26s; --delay: 2s; width: 3px; height: 3px; }
.particle:nth-child(5) { left: 50%; top: 15%; --dur: 30s; --delay: 6s; width: 5px; height: 5px; }
.particle:nth-child(6) { left: 8%;  top: 50%; --dur: 24s; --delay: 10s; width: 3px; height: 3px; }
.particle:nth-child(7) { left: 75%; top: 80%; --dur: 21s; --delay: 14s; }

@keyframes float-particle {
  0%   { transform: translate(0, 0) scale(1); opacity: 0; }
  10%  { opacity: 0.6; }
  30%  { transform: translate(30px, -40px) scale(1.2); opacity: 0.4; }
  50%  { transform: translate(-20px, -70px) scale(0.8); opacity: 0.7; }
  70%  { transform: translate(15px, -30px) scale(1.1); opacity: 0.3; }
  90%  { opacity: 0.5; }
  100% { transform: translate(0, 0) scale(1); opacity: 0; }
}


/* ==========================================================================
   Demo Reels (nested under About)
   ========================================================================== */

.demos-nested {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(26, 92, 92, 0.1);
}

.demos-nested .section-title {
  margin-bottom: 1rem;
}

.demos-nested .demos__grid {
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .demos-nested .demos__grid { grid-template-columns: repeat(2, 1fr); }
}

.demos__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 600px) {
  .demos__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .demos__grid { grid-template-columns: repeat(3, 1fr); }
}

.audio-card {
  background: var(--cream-dark);
  border-radius: 10px;
  border-top: 3px solid var(--teal);
  padding: 1.25rem 1.1rem 1rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--ease), box-shadow var(--ease);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.audio-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}

.audio-card__category {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-light);
  background: rgba(42, 122, 122, 0.08);
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  align-self: flex-start;
}

.audio-card__description {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.audio-player {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: auto;
}

.audio-player__btn {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--teal-dark);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--ease), box-shadow var(--ease), transform var(--ease);
  font-size: 0.85rem;
}

.audio-player__btn:hover {
  background: var(--teal);
  box-shadow: 0 0 12px rgba(201, 168, 76, 0.3);
  transform: scale(1.05);
}

.pause-icon { display: none; }

.audio-player__progress {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.audio-player__track {
  position: relative;
  width: 100%;
  height: 4px;
  background: rgba(26, 92, 92, 0.15);
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
}

.audio-player__fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-bright) 100%);
  border-radius: 2px;
  transition: width 0.1s linear;
}

.audio-player__time {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}


/* ==========================================================================
   About + Skills
   ========================================================================== */

.about {
  background: var(--cream-teal);
  padding: 2.5rem 0;
}

.about-skills {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .about-skills { grid-template-columns: 1fr 340px; gap: 2.5rem; }
}

@media (min-width: 1024px) {
  .about-skills { grid-template-columns: 1fr 380px; gap: 3rem; }
}

.about__main p {
  margin-bottom: 0.6rem;
  font-size: 0.92rem;
  color: var(--text-dark);
}

.about__main p:last-child { margin-bottom: 0; }

.skills-sidebar {
  background: var(--cream);
  border-radius: 14px;
  padding: 1.5rem;
  border: 1px solid rgba(26, 92, 92, 0.08);
}

.skills-sidebar__title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--teal-dark);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--gold-light);
}

.skills__group { margin-bottom: 1rem; }
.skills__group:last-child { margin-bottom: 0; }

.skills__label {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--teal-dark);
  margin-bottom: 0.4rem;
}

.skills__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.skill-tag {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--cream);
  background: var(--teal-dark);
  border: 1px solid transparent;
  border-radius: 50px;
  transition: border-color var(--ease), transform var(--ease);
  cursor: default;
}

.skill-tag:hover {
  border-color: var(--gold);
  transform: translateY(-1px);
}


/* ==========================================================================
   Studio — Cream Background
   ========================================================================== */

.studio {
  background: var(--cream-dark);
  padding: 2.5rem 0;
}

.studio .section-title { margin-bottom: 1.25rem; }

.studio__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 600px) {
  .studio__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .studio__grid { grid-template-columns: repeat(3, 1fr); }
}

.studio-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--cream);
  border-radius: 10px;
  border: 1px solid rgba(26, 92, 92, 0.06);
}

.studio-item__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--gold-dark);
  background: rgba(201, 168, 76, 0.1);
  border-radius: 8px;
}

.studio-item strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--teal-dark);
  margin-bottom: 0.1rem;
}

.studio-item p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}


/* ==========================================================================
   Footer (with Contact CTA)
   ========================================================================== */

.footer {
  background: linear-gradient(170deg, var(--teal-darkest) 0%, var(--teal-dark) 100%);
  color: var(--cream);
  padding: 0;
}

.footer__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Contact CTA area */
.footer__contact {
  text-align: center;
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid rgba(250, 248, 240, 0.1);
}

.footer__heading {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 0.3rem;
}

.footer__tagline {
  font-size: 0.9rem;
  color: rgba(250, 248, 240, 0.65);
  margin-bottom: 1.25rem;
}

.footer__email-btn {
  display: inline-block;
  padding: 0.7rem 2.25rem;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--teal-darkest);
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-bright) 100%);
  border-radius: 50px;
  cursor: pointer;
  transition: transform var(--ease), box-shadow var(--ease);
  box-shadow: 0 4px 16px rgba(201, 168, 76, 0.3);
}

.footer__email-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(201, 168, 76, 0.45);
}

/* Bottom bar */
.footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem 0;
  font-size: 0.8rem;
}

@media (min-width: 768px) {
  .footer__bottom { flex-direction: row; justify-content: space-between; }
}

.footer__social { display: flex; gap: 1.25rem; }

.footer__social a {
  color: rgba(250, 248, 240, 0.5);
  transition: color var(--ease);
}

.footer__social a:hover { color: var(--gold); }

.footer__copyright { color: rgba(250, 248, 240, 0.45); }


/* ==========================================================================
   Animations
   ========================================================================== */

[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

[data-animate].animate-in {
  opacity: 1;
  transform: translateY(0);
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%      { transform: translateX(-6px); }
  40%      { transform: translateX(6px); }
  60%      { transform: translateX(-4px); }
  80%      { transform: translateX(4px); }
}

.shake {
  animation: shake 0.4s ease;
  border-color: #c0392b !important;
}

.thank-you-message { text-align: center; padding: 2rem 1rem; }

.thank-you-message h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--gold-light);
  margin-bottom: 0.5rem;
}

.thank-you-message p {
  font-size: 0.95rem;
  color: rgba(250, 248, 240, 0.75);
}


/* ==========================================================================
   Utility & Responsive
   ========================================================================== */

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

@media (min-width: 768px) {
  :root { --nav-height: 60px; }
}

@media (max-width: 400px) {
  .hero__cta { padding: 0.55rem 1.3rem; font-size: 0.8rem; }
  .audio-card { padding: 1rem; }
  .skill-tag { padding: 0.2rem 0.55rem; font-size: 0.72rem; }
}

@media print {
  .nav, .particles { display: none; }
  .hero { min-height: auto; padding: 2rem; background: var(--teal-dark) !important; }
  body { font-size: 12pt; }
}
