/* ========== BASE ========== */
*, *::before, *::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  overflow-x: hidden;
}

::selection {
  background: rgba(123, 45, 59, 0.5);
  color: #fdf2f4;
}

/* ========== NAVBAR ========== */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #b85b6e, #f4b5a0);
  transition: width 0.3s ease;
  border-radius: 1px;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link:hover {
  color: #fff !important;
}

/* ========== MOBILE MENU ========== */
.mobile-link {
  position: relative;
  display: block;
  padding: 8px 0;
}

#mobileMenu {
  animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== HERO ANIMATIONS ========== */
.hero-shape {
  animation: float 8s ease-in-out infinite;
}

.hero-shape:nth-child(2) {
  animation-delay: -2s;
  animation-duration: 10s;
}

.hero-shape:nth-child(3) {
  animation-delay: -4s;
  animation-duration: 12s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* Hero entrance — all above the fold, always visible */
.hero-tag {
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.2s;
  opacity: 0;
}

.hero-title {
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.4s;
  opacity: 0;
}

.hero-subtitle {
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.6s;
  opacity: 0;
}

.hero-ctas {
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.8s;
  opacity: 0;
}

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

/* ========== SCROLL REVEAL (below fold only) ========== */
.reveal-tag,
.reveal-text,
.reveal-left,
.reveal-right,
.reveal-grid {
  opacity: 1;
  transform: none;
  transition: none;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal-tag {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .reveal-text {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .reveal-grid {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
}

.reveal-tag.visible,
.reveal-text.visible,
.reveal-left.visible,
.reveal-right.visible,
.reveal-grid.visible {
  opacity: 1;
  transform: none;
}

/* Stagger children */
.reveal-grid > * {
  opacity: 1;
  transform: none;
  transition: none;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal-grid > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }
}

.reveal-grid.visible > * {
  opacity: 1;
  transform: none;
}

/* ========== GALLERY SCROLL ========== */
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.animate-scroll {
  display: flex;
  gap: 1rem;
  animation: scroll 40s linear infinite;
  width: max-content;
}

.animate-scroll:hover {
  animation-play-state: paused;
}

/* ========== FORM STYLES ========== */
input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

input:focus,
textarea:focus,
select:focus {
  border-color: #a11d3c !important;
  box-shadow: 0 0 0 3px rgba(161, 29, 60, 0.15);
}

select option {
  background: #111122;
  color: #fff;
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0a0a14;
}

::-webkit-scrollbar-thumb {
  background: #7B2D3B;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a11d3c;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.75rem;
    line-height: 1.05;
  }

  @media (min-width: 769px) {
    .hero-title {
      font-size: 4.5rem;
    }
  }

  @media (min-width: 1024px) {
    .hero-title {
      font-size: 5.5rem;
    }
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 2.25rem;
  }
}

/* ========== CARD HOVER ========== */
.group:hover .group-hover\:scale-105 {
  transform: scale(1.05);
}
