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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
}

::selection {
  background: #ffe699;
  color: #3d0a17;
}

/* === NAVBAR === */
.nav-fixed {
  background: rgba(61, 10, 23, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(127, 31, 60, 0.3);
}

.nav-fixed.scrolled {
  background: rgba(61, 10, 23, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-line {
  display: block;
  transition: all 0.3s ease;
}

/* Mobile menu open state */
.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-link {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.mobile-menu.open .mobile-link {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }

/* Hamburger animation */
.nav-active .nav-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-active .nav-line:nth-child(2) {
  opacity: 0;
}
.nav-active .nav-line:nth-child(3) {
  width: 24px;
  transform: rotate(-45deg) translate(5px, -5px);
  background: #ffe699;
}

/* === HERO === */
.hero {
  background: linear-gradient(135deg, #3d0a17 0%, #6b1a33 50%, #7f1f3c 100%);
}

.hero-shape {
  opacity: 0;
  animation: heroShapeIn 0.8s ease forwards;
}

.hero-shape:nth-child(2) { animation-delay: 0.1s; }
.hero-shape:nth-child(3) { animation-delay: 0.2s; }
.hero-shape:nth-child(4) { animation-delay: 0.3s; }
.hero-shape:nth-child(5) { animation-delay: 0.4s; }
.hero-shape:nth-child(6) { animation-delay: 0.5s; }

@keyframes heroShapeIn {
  from { opacity: 0; transform: scale(0.8) rotate(15deg); }
  to { opacity: 1; transform: scale(1) rotate(0deg); }
}

.hero-badge {
  opacity: 0;
  animation: fadeUp 0.6s ease 0.3s forwards;
}

.hero-image-stack {
  opacity: 0;
  animation: fadeUp 0.8s ease 0.5s forwards;
}

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

/* === SCROLL REVEAL (below-fold only) === */
.reveal-up,
.reveal-left,
.reveal-right {
  /* Default: visible — JS adds animation class */
}

.reveal-up.animated,
.reveal-left.animated,
.reveal-right.animated {
  animation: revealIn 0.7s ease forwards;
}

.reveal-up { transform: translateY(40px); }
.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }

@keyframes revealIn {
  to {
    opacity: 1;
    transform: translate(0, 0);
  }
}

/* === GALLERY HOVER === */
.rounded-2xl.overflow-hidden,
.rounded-3xl.overflow-hidden {
  overflow: hidden;
}

/* === FORM === */
input:focus,
textarea:focus {
  background: rgba(61, 10, 23, 0.8);
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal-up, .reveal-left, .reveal-right {
    transform: none;
    opacity: 1;
  }
}

/* === MOBILE MENU === */
@media (max-width: 768px) {
  .mobile-menu {
    padding: 2rem;
  }
}

/* === SCROLLBAR === */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #3d0a17;
}
::-webkit-scrollbar-thumb {
  background: #7f1f3c;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #9a2548;
}
