/* ═══════════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════════ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
  overflow-x: hidden;
}

body {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  background: #000;
  color: #fff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

/* Accessibility — reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ═══════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
  transition: background 0.4s ease;
}

.nav--scrolled {
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  padding: 1.25rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.nav__link {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease, transform 0.3s ease;
  position: relative;
  padding: 0.25rem 0;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #e63946;
  transition: width 0.3s ease;
}

.nav__link:hover,
.nav__link:focus-visible {
  color: #fff;
}

.nav__link:hover::after,
.nav__link:focus-visible::after {
  width: 100%;
}

.nav__link--active {
  color: #fff;
}

.nav__link--active::after {
  width: 100%;
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1010;
}

.nav__hamburger-line {
  display: block;
  width: 26px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav__hamburger--open .nav__hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__hamburger--open .nav__hamburger-line:nth-child(2) {
  opacity: 0;
}

.nav__hamburger--open .nav__hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.nav__mobile {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 5rem 2rem 3rem;
  background: rgba(0, 0, 0, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: fixed;
  inset: 0;
  z-index: 1005;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  justify-content: center;
}

.nav__mobile--open {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

.nav__mobile-link {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s ease;
  padding: 0.75rem 1rem;
}

.nav__mobile-link:hover,
.nav__mobile-link:focus-visible {
  color: #e63946;
}

/* ═══════════════════════════════════════════════
   SECTION DOTS (desktop indicator)
   ═══════════════════════════════════════════════ */
.section-dots {
  position: fixed;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.section-dots__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  cursor: pointer;
  transition: all 0.35s ease;
  padding: 0;
}

.section-dots__dot:hover {
  border-color: #fff;
  transform: scale(1.3);
}

.section-dots__dot--active {
  background: #e63946;
  border-color: #e63946;
  transform: scale(1.2);
}

/* ═══════════════════════════════════════════════
   HERO SECTIONS
   ═══════════════════════════════════════════════ */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  scroll-snap-align: start;
}

/* Background image layer */
.hero__bg {
  position: absolute;
  inset: -20px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  transition: transform 0.6s ease-out;
  will-change: transform;
}

/* Dark overlay */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.65) 0%,
    rgba(0, 0, 0, 0.45) 40%,
    rgba(0, 0, 0, 0.55) 70%,
    rgba(0, 0, 0, 0.8) 100%
  );
  z-index: 1;
}

/* Content */
.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
  padding: 6rem 2rem 4rem;
  max-width: 800px;
}

/* Logo */
.hero__logo {
  width: 180px;
  height: 180px;
  object-fit: contain;
  filter: drop-shadow(0 4px 30px rgba(0, 0, 0, 0.6));
  transition: transform 0.4s ease;
}

.hero__logo:hover {
  transform: scale(1.05);
}

/* Title */
.hero__title {
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-transform: uppercase;
  text-shadow:
    0 2px 20px rgba(0, 0, 0, 0.7),
    0 0 60px rgba(0, 0, 0, 0.4);
}

/* Subtitle */
.hero__subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.8rem);
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* ═══════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.8rem;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  min-height: 48px; /* touch target */
  min-width: 180px;
}

.btn--primary {
  background: #e63946;
  color: #fff;
  box-shadow:
    0 4px 20px rgba(230, 57, 70, 0.4),
    0 0 0 0 rgba(230, 57, 70, 0);
}

.btn--primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: #d62839;
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 8px 30px rgba(230, 57, 70, 0.5),
    0 0 0 3px rgba(230, 57, 70, 0.15);
}

.btn--primary:hover::before {
  opacity: 1;
}

.btn--primary:active {
  transform: translateY(0) scale(0.98);
}

.btn:focus-visible {
  outline: 3px solid #e63946;
  outline-offset: 3px;
}

/* ═══════════════════════════════════════════════
   SCROLL ENTRANCE ANIMATIONS
   ═══════════════════════════════════════════════ */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
.animate-on-scroll.is-visible .hero__logo {
  animation: fadeInScale 0.7s 0.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.animate-on-scroll.is-visible .hero__title {
  animation: fadeSlideUp 0.7s 0.25s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.animate-on-scroll.is-visible .hero__subtitle {
  animation: fadeSlideUp 0.7s 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.animate-on-scroll.is-visible .btn {
  animation: fadeSlideUp 0.7s 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

/* ═══════════════════════════════════════════════
   RESPONSIVE — TABLET
   ═══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .nav__inner {
    gap: 1.5rem;
    padding: 1rem 1.5rem;
  }

  .nav__link {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
  }

  .hero__logo {
    width: 150px;
    height: 150px;
  }

  .hero__content {
    gap: 1.2rem;
    padding: 5rem 1.5rem 3rem;
  }

  .section-dots {
    right: 1rem;
  }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — MOBILE
   ═══════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Show hamburger, hide desktop nav links */
  .nav__link {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

  .nav__inner {
    justify-content: flex-start;
    padding: 1rem 1.25rem;
  }

  /* Hide section dots on mobile */
  .section-dots {
    display: none;
  }

  /* Adjust hero */
  .hero {
    min-height: 100vh;
    min-height: 100dvh;
  }

  .hero__content {
    padding: 5rem 1.25rem 3rem;
    gap: 1rem;
  }

  .hero__logo {
    width: 120px;
    height: 120px;
  }

  .hero__subtitle {
    letter-spacing: 0.2em;
  }

  .btn {
    padding: 0.9rem 2rem;
    font-size: 0.85rem;
    min-width: 160px;
  }
}

/* Small phones */
@media (max-width: 400px) {
  .hero__logo {
    width: 100px;
    height: 100px;
  }

  .hero__content {
    padding: 4.5rem 1rem 2.5rem;
    gap: 0.8rem;
  }

  .btn {
    padding: 0.8rem 1.6rem;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    min-width: 140px;
  }
}

/* Landscape phones */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: 100vh;
  }

  .hero__content {
    padding: 4rem 1.5rem 2rem;
    gap: 0.6rem;
  }

  .hero__logo {
    width: 80px;
    height: 80px;
  }

  .hero__title {
    font-size: clamp(1.6rem, 4vw, 2.5rem);
  }

  .hero__subtitle {
    font-size: clamp(0.8rem, 1.8vw, 1.1rem);
  }
}

/* Large desktop */
@media (min-width: 1600px) {
  .hero__logo {
    width: 220px;
    height: 220px;
  }

  .nav__inner {
    gap: 3.5rem;
  }

  .nav__link {
    font-size: 0.85rem;
  }
}
