/* ===========================
   ALEX DIESTEL — PORTFOLIO
   Colorful sections, handdrawn font
   =========================== */

:root {
  /* Section backgrounds — pulled from logo palette */
  --hero-bg: #ffffff;
  --reel-bg: #a8d4e6;
  --clients-bg: #e8e0d0;
  --footer-bg: #2e2420;
  --footer-text: #f5ede5;

  --text: #2e2420;
  --text-light: #8a7a72;
  --accent: #4ab8e2;
  --accent-warm: #d4784a;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Gaegu', 'Segoe UI', sans-serif;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ===========================
   SECTION HEADING (shared)
   =========================== */

.section-heading {
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--text-light);
}

.section-heading--light {
  color: rgba(245, 237, 229, 0.6);
}

/* ===========================
   HERO — warm cream
   =========================== */

.hero {
  background: var(--hero-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4.5rem 1.5rem 1rem;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.hero-logo {
  width: 100%;
  max-width: 780px;
  height: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 6rem;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-links a {
  font-size: 2rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
  padding: 0 0 1px 0;
  background-image: url("data:image/svg+xml,%3Csvg width='120' height='6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 3.5 Q30 1.5 60 3.5 T120 3.5' fill='none' stroke='transparent' stroke-width='2.5'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: bottom;
  background-size: auto 6px;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg width='120' height='6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 3.5 Q30 1.5 60 3.5 T120 3.5' fill='none' stroke='%234ab8e2' stroke-width='2.5'/%3E%3C/svg%3E");
}

/* ===========================
   REEL — soft blue
   =========================== */

.reel {
  background: var(--reel-bg);
  padding: 2.5rem 1.5rem 3rem;
}

.reel-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.reel-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #1a1a2e;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.15),
    0 4px 12px rgba(0, 0, 0, 0.1);
}

.reel-wrapper iframe,
.reel-wrapper video {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.video-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.45);
  background: linear-gradient(135deg, #1a1a2e 0%, #2a2a3e 100%);
}

.play-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  cursor: pointer;
}

.play-icon svg {
  margin-left: 3px;
}

.video-placeholder:hover .play-icon {
  transform: scale(1.1);
  background: #3aa5cf;
}

.video-placeholder p {
  font-size: 1rem;
  letter-spacing: 0.06em;
}

/* ===========================
   CLIENTS — warm peach
   =========================== */

.clients {
  background: var(--clients-bg);
  padding: 4rem 1.5rem 5rem;
}

.clients-inner {
  max-width: 900px;
  margin: 0 auto;
}

.logos-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2.5rem 3rem;
}

.client-logo {
  height: 40px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  opacity: 0.45;
  filter: grayscale(100%);
  transition: var(--transition);
}

.client-logo:hover {
  opacity: 0.85;
  filter: grayscale(0%);
}

/* Mack/Daywalker are already colored, let them keep color on hover */
.client-logo--color:hover {
  filter: none;
}

/* Foreal has white text on black bg — invert it to match the rest */
.client-logo--inverted {
  filter: grayscale(100%) invert(1);
  opacity: 0.35;
}

.client-logo--inverted:hover {
  filter: invert(1);
  opacity: 0.85;
}

/* ===========================
   FOOTER — dark warm
   =========================== */

.footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 4rem 1.5rem 2.5rem;
  text-align: center;
}

.footer-inner {
  max-width: 600px;
  margin: 0 auto;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.4rem;
  background: #3d3530;
  border-radius: 8px;
  text-decoration: none;
  color: var(--footer-text);
  font-size: 1.1rem;
  transition: var(--transition);
}

.contact-link svg {
  width: 18px;
  height: 18px;
  opacity: 0.6;
  flex-shrink: 0;
}

.contact-link:hover {
  color: var(--accent);
}

.contact-link:hover svg {
  opacity: 1;
}

.footer-fine {
  font-size: 0.85rem;
  color: rgba(245, 237, 229, 0.3);
}

/* ===========================
   SCROLL FADE-IN
   =========================== */

.reel-inner,
.clients-inner,
.footer-inner {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reel-inner.visible,
.clients-inner.visible,
.footer-inner.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   NAV ACTIVE STATE
   =========================== */

.nav-link--active {
  color: var(--accent) !important;
}

/* ===========================
   CONTACT PAGE
   =========================== */

.contact-page {
  background: var(--clients-bg);
  padding: 4rem 1.5rem 5rem;
}

.about-grid {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 3rem;
  align-items: start;
}

.about-left {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 10px;
}

.about-left .contact-links--page {
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 0;
}

.about-right {
  padding-top: 0.5rem;
}

.about-text {
  font-size: 1.3rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.about-text:first-child {
  font-size: 1.6rem;
  font-weight: 700;
}

.contact-link--page {
  background: var(--footer-bg);
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
}

@media (max-width: 600px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-photo {
    max-width: 220px;
    margin: 0 auto;
  }

  .about-left {
    align-items: center;
  }

  .about-right {
    text-align: center;
  }
}

/* ===========================
   SCRIPTS PAGE
   =========================== */

.scripts-page {
  background: var(--reel-bg);
  padding: 4rem 1.5rem 5rem;
  min-height: 50vh;
}

.scripts-page-inner {
  max-width: 680px;
  margin: 0 auto;
}

.scripts-intro {
  text-align: center;
  font-size: 1.2rem;
  color: var(--text-light);
}

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 600px) {
  .hero {
    padding: 2rem 1rem 1.5rem;
  }

  .hero-logo {
    max-width: 90%;
  }

  .nav-links {
    gap: 0.75rem;
  }

  .nav-links a {
    font-size: 1.1rem;
    padding: 0.35rem 0.75rem;
  }

  .reel,
  .clients {
    padding: 3rem 1rem 3.5rem;
  }

  .reel-wrapper {
    border-radius: 10px;
  }

  .client-logo {
    height: 30px;
  }

  .logos-row {
    gap: 1.5rem 2rem;
  }

  .contact-links {
    flex-direction: column;
    align-items: center;
  }
}
