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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ===== GEOMETRIC SHAPES ===== */
.geo-shape {
  position: absolute;
  pointer-events: none;
}

.geo-circle-1 {
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 173, 175, 0.18) 0%, transparent 70%);
  top: -80px;
  right: -100px;
  animation: float-slow 12s ease-in-out infinite;
}

.geo-circle-2 {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 126, 146, 0.15) 0%, transparent 70%);
  bottom: 15%;
  left: -60px;
  animation: float-slow 16s ease-in-out infinite reverse;
}

.geo-circle-3 {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255, 208, 215, 0.12);
  top: 30%;
  left: 8%;
  animation: float-slow 10s ease-in-out infinite;
}

.geo-square-1 {
  width: 100px;
  height: 100px;
  background: rgba(255, 173, 175, 0.1);
  border-radius: 20px;
  top: 20%;
  right: 12%;
  transform: rotate(45deg);
  animation: float-slow 14s ease-in-out infinite;
}

.geo-square-2 {
  width: 60px;
  height: 60px;
  background: rgba(255, 208, 215, 0.15);
  border-radius: 12px;
  bottom: 25%;
  right: 25%;
  transform: rotate(20deg);
  animation: float-slow 11s ease-in-out infinite reverse;
}

.geo-triangle {
  width: 0;
  height: 0;
  border-left: 55px solid transparent;
  border-right: 55px solid transparent;
  border-bottom: 95px solid rgba(255, 126, 146, 0.1);
  top: 60%;
  left: 5%;
  animation: float-slow 13s ease-in-out infinite;
}

.geo-dot-group {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  top: 45%;
  right: 6%;
}

.geo-dot-group span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 208, 215, 0.25);
}

.geo-dot-group span:nth-child(odd) {
  background: rgba(255, 173, 175, 0.3);
}

.geo-circle-4 {
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 173, 175, 0.1) 0%, transparent 70%);
  bottom: -200px;
  right: -150px;
  animation: float-slow 15s ease-in-out infinite;
}

.geo-square-3 {
  width: 80px;
  height: 80px;
  background: rgba(255, 208, 215, 0.08);
  border-radius: 16px;
  top: 10%;
  left: 5%;
  transform: rotate(30deg);
  animation: float-slow 12s ease-in-out infinite reverse;
}

.geo-circle-5 {
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
  top: -100px;
  left: -80px;
  animation: float-slow 13s ease-in-out infinite;
}

.geo-square-4 {
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  bottom: -30px;
  right: 10%;
  transform: rotate(15deg);
  animation: float-slow 10s ease-in-out infinite reverse;
}

.geo-circle-6 {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 173, 175, 0.08) 0%, transparent 70%);
  bottom: -80px;
  left: -60px;
  animation: float-slow 14s ease-in-out infinite;
}

.geo-triangle-2 {
  width: 0;
  height: 0;
  border-left: 45px solid transparent;
  border-right: 45px solid transparent;
  border-bottom: 78px solid rgba(255, 126, 146, 0.08);
  top: 15%;
  right: 8%;
  animation: float-slow 11s ease-in-out infinite reverse;
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0) rotate(var(--rotation, 0deg)); }
  50% { transform: translateY(-20px) rotate(var(--rotation, 0deg)); }
}

.geo-square-1 { --rotation: 45deg; }
.geo-square-2 { --rotation: 20deg; }
.geo-square-3 { --rotation: 30deg; }
.geo-square-4 { --rotation: 15deg; }

/* ===== HERO ANIMATIONS ===== */
#hero .hero-subtitle {
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.2s;
  opacity: 0;
}

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

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

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

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

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

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== NAVBAR SCROLL STATE ===== */
#navbar.scrolled {
  background: rgba(255, 248, 245, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(107, 15, 26, 0.08);
}

#navbar.scrolled .font-display a {
  color: rgb(107, 15, 26);
}

/* ===== MOBILE MENU ===== */
.mobile-link {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

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

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

/* ===== MENU TOGGLE ANIMATION ===== */
.menu-line {
  transform-origin: center;
}

#menu-toggle.active .menu-line:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}

#menu-toggle.active .menu-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

#menu-toggle.active .menu-line:nth-child(3) {
  width: 1.5rem;
  transform: translateY(-4px) rotate(-45deg);
}

/* ===== ACCESSIBILITY ===== */
:focus-visible {
  outline: 2px solid rgb(255, 126, 146);
  outline-offset: 2px;
}

/* ===== SELECTION ===== */
::selection {
  background: rgb(255, 173, 175);
  color: rgb(107, 15, 26);
}
