/* =====================================================
   NARATIF VISUAL — main stylesheet
   ===================================================== */

:root {
  --bg-dark: #0d0d0d;
  --bg-darker: #0a0a0a;
  --blue-primary: #1c4bd7;
  --blue-bright: #2b57e8;
  --blue-deep: #0d1b4c;
  --navy-btn: #141f3e;
  --footer-bg: #33343e;
  --white: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.78);
  --text-faint: rgba(255, 255, 255, 0.55);

  --font-display: "Poppins", sans-serif;
  --font-body: "Nunito Sans", sans-serif;

  --container-max: 1320px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg-dark);
  color: var(--white);
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: var(--container-max);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  margin-bottom: 2.5rem;
  letter-spacing: 0.01em;
}

/* =====================================================
   HEADER / NAVBAR
   ===================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.1rem 1.5rem;
}

.nav-wrap {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 !important;
}

.brand-logo {
  height: 42px;
  width: auto;
}

.nav-pill {
  display: none;
  align-items: center;
  gap: 0.4rem;
  background: rgba(70, 70, 70, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 999px;
  padding: 0.55rem 0.6rem;
}

@media (min-width: 992px) {
  .nav-pill {
    display: flex;
  }
}

.nav-link-item {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  padding: 0.55rem 1.3rem;
  border-radius: 999px;
  transition:
    background 0.25s ease,
    color 0.25s ease;
  white-space: nowrap;
}

.nav-link-item:hover,
.nav-link-item.active {
  background: rgba(255, 255, 255, 0.14);
}

.btn-contact {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--navy-btn);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition:
    background 0.25s ease,
    transform 0.25s ease;
  white-space: nowrap;
}

.btn-contact:hover {
  background: #1e2c58;
  color: var(--white);
  transform: translateY(-1px);
}

.icon-wa {
  width: 18px;
  height: 18px;
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: rgba(70, 70, 70, 0.55);
  backdrop-filter: blur(10px);
  border: none;
  border-radius: 999px;
  padding: 0;
  align-items: center;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

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

.mobile-menu {
  max-width: var(--container-max);
  margin: 0.6rem auto 0;
  max-height: 0;
  overflow: hidden;
  background: rgba(20, 20, 20, 0.92);
  backdrop-filter: blur(14px);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  transition:
    max-height 0.35s ease,
    padding 0.35s ease;
}

.mobile-menu.is-open {
  max-height: 420px;
  padding: 0.75rem;
}

.mobile-link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  color: var(--white);
}

.mobile-link:hover,
.mobile-link.active {
  background: rgba(255, 255, 255, 0.1);
}

.mobile-contact {
  justify-content: center;
  margin-top: 0.4rem;
}

/* =====================================================
   HERO
   ===================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: url("../assets/hero section background.png") center center / cover
    no-repeat;
  padding: 8rem 0 4rem;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(5, 6, 5, 0.55) 0%,
    rgba(5, 6, 5, 0.35) 45%,
    rgba(8, 9, 8, 0.85) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.4rem, 6.4vw, 4.2rem);
  line-height: 1.06;
  margin-bottom: 1.8rem;
  text-transform: uppercase;
}

.hero-title span {
  display: block;
}

.hero-text {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  max-width: 640px;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.55;
}

.scroll-hint {
  position: relative;
  z-index: 2;
  display: block;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-bottom: 1.6rem;
  letter-spacing: 0.03em;
}

/* =====================================================
   WHAT WE DO
   ===================================================== */
.what-we-do {
  background: var(--bg-dark);
  padding: 5.5rem 0 5rem;
}

.wwd-grid {
  row-gap: 3.2rem;
}

.wwd-icon {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 32% 28%,
    var(--blue-bright),
    var(--blue-primary) 70%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.4rem;
  box-shadow: 0 10px 24px rgba(28, 75, 215, 0.35);
}

.wwd-icon img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.wwd-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
  letter-spacing: 0.01em;
}

.wwd-desc {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 340px;
}

/* =====================================================
   WHO WE ARE
   ===================================================== */
.who-we-are {
  position: relative;
  padding: 5rem 0 6rem;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.14) 1px, transparent 1.4px) 0
      0 / 22px 22px,
    linear-gradient(
      180deg,
      var(--bg-dark) 0%,
      #161a2c 40%,
      #223066 75%,
      var(--blue-primary) 100%
    );
  background-repeat: repeat, no-repeat;
}

.section-label {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  background: var(--blue-primary);
  color: var(--white);
  padding: 0.25em 0.35em;
  margin-bottom: 1.6rem;
  line-height: 1.15;
}

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

.wwa-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 105px;
  grid-auto-flow: dense;
  gap: 0.6rem;
}

.wwa-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.wwa-gallery .g-span2 {
  grid-column: span 2;
}
.wwa-gallery .g-tall {
  grid-row: span 2;
}

/* =====================================================
   OUR CLIENTS / OUR FILMS (shared blue band)
   ===================================================== */
.our-clients {
  position: relative;
  background: linear-gradient(
    180deg,
    var(--blue-primary) 0%,
    #1747c9 35%,
    #23366f 75%,
    var(--bg-dark) 100%
  );
  padding: 5rem 0 0;
  overflow: hidden;
}

.our-clients .section-title,
.our-films .section-title {
  padding: 0 1.5rem;
}

.our-films {
  padding: 2rem 0 5.5rem;
}

/* Infinite scroller */
.scroller {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 5%,
    #000 95%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 5%,
    #000 95%,
    transparent 100%
  );
}

.scroller-track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.scroller-right .scroller-track {
  animation: scrollRight 32s linear infinite;
}

.scroller-left .scroller-track {
  animation: scrollLeft 42s linear infinite;
}

@keyframes scrollRight {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes scrollLeft {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.client-item {
  flex: 0 0 auto;
  width: 220px;
  height: 150px;
  margin: 0 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.client-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.film-item {
  flex: 0 0 auto;
  width: 250px;
  margin: 0 0.9rem;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 342 / 481;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

.film-link {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 12px;
  transition:
    transform 0.25s ease,
    filter 0.25s ease,
    box-shadow 0.25s ease;
  cursor: pointer;
}

.film-link:hover,
.film-link:focus-visible {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.45);
  filter: brightness(1.06);
}

.film-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 22, 42, 0.1),
    rgba(15, 22, 42, 0.75)
  );
  opacity: 0;
  transition: opacity 0.25s ease;
}

.film-link:hover::after,
.film-link:focus-visible::after {
  opacity: 1;
}

.film-link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.film-hover-label {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%) translateY(8px);
  z-index: 1;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(4px);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.film-link:hover .film-hover-label,
.film-link:focus-visible .film-hover-label {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.see-more-wrap {
  margin-top: 3rem;
}

.btn-outline-pill {
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  padding: 0.75rem 2.4rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--white);
  transition:
    background 0.25s ease,
    color 0.25s ease;
}

.btn-outline-pill:hover {
  background: var(--white);
  color: var(--bg-dark);
}

/* =====================================================
   CONTACT
   ===================================================== */
.contact {
  background: var(--bg-dark);
  padding: 6rem 0;
}

.contact-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 1.5rem;
}

.contact-text {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 1.1rem;
}

.btn-collaborate {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--navy-btn);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.9rem 1.9rem;
  border-radius: 999px;
  margin-top: 1.4rem;
  transition:
    background 0.25s ease,
    transform 0.25s ease;
}

.btn-collaborate:hover {
  background: #1e2c58;
  transform: translateY(-2px);
}

.icon-sparkle {
  width: 20px;
  height: 20px;
}

.contact-image {
  border-radius: 18px;
  overflow: hidden;
  max-width: 420px;
  margin: 0 auto;
}

.contact-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
  background: var(--footer-bg);
  padding: 3rem 0 2.2rem;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.footer-nav {
  display: flex;
  gap: 2.2rem;
}

.footer-nav a {
  font-size: 1rem;
  color: var(--white);
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.footer-nav a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  margin: 1.6rem 0;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-faint);
}

/* =====================================================
   RESPONSIVE ADJUSTMENTS
   ===================================================== */
@media (max-width: 991.98px) {
  .wwa-gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 130px;
  }
}

@media (max-width: 767.98px) {
  .hero {
    padding-top: 7rem;
  }
  .site-header {
    padding: 0.85rem 1rem;
  }
  .brand-logo {
    height: 34px;
  }

  .what-we-do,
  .who-we-are,
  .contact {
    padding-top: 3.6rem;
    padding-bottom: 3.6rem;
  }

  .our-clients {
    padding-top: 3.6rem;
  }
  .our-films {
    padding-bottom: 3.6rem;
  }

  .wwd-item {
    text-align: left;
  }

  .client-item {
    width: 150px;
    height: 100px;
    margin: 0 1rem;
  }
  .film-item {
    width: 180px;
    margin: 0 0.6rem;
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-bottom {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroller-track {
    animation-duration: 90s !important;
  }
}
