/* ========== BASE & RESET ========== */
*, *::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; }

/* ========== NAVBAR ========== */
#navbar {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}
#navbar.scrolled {
  background: rgba(255, 252, 248, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 20px rgba(123, 45, 59, 0.08);
}
.nav-link { position: relative; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #7B2D3B;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}
.nav-link:hover::after { width: 60%; }

/* ========== MOBILE MENU ========== */
#mobile-menu {
  animation: slideDown 0.3s ease;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
.mobile-link { display: block; }

/* ========== HERO ANIMATIONS ========== */
.hero-anim {
  opacity: 0;
  transform: translateY(30px);
  animation: heroIn 0.8s ease forwards;
}
.hero-anim:nth-child(1) { animation-delay: 0.1s; }
.hero-anim:nth-child(2) { animation-delay: 0.3s; }
.hero-anim:nth-child(3) { animation-delay: 0.5s; }
.hero-anim:nth-child(4) { animation-delay: 0.7s; }
.hero-anim:nth-child(5) { animation-delay: 0.9s; }

@keyframes heroIn {
  to { opacity: 1; transform: translateY(0); }
}

/* ========== GEOMETRIC SHAPES ========== */
.geo-shape {
  position: absolute;
  opacity: 0.12;
  pointer-events: none;
}
.shape-circle-1 {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, #FFAD B8, transparent 70%);
  top: -100px;
  right: -100px;
  animation: float1 8s ease-in-out infinite;
}
.shape-circle-2 {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff, transparent 70%);
  bottom: 10%;
  left: 5%;
  animation: float2 10s ease-in-out infinite;
}
.shape-circle-3 {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 3px solid rgba(255, 173, 184, 0.4);
  top: 30%;
  left: 10%;
  animation: float1 6s ease-in-out infinite reverse;
}
.shape-square-1 {
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  top: 20%;
  right: 15%;
  transform: rotate(45deg);
  animation: spin 20s linear infinite;
}
.shape-square-2 {
  width: 80px;
  height: 80px;
  background: rgba(255, 173, 184, 0.15);
  border-radius: 12px;
  bottom: 25%;
  right: 25%;
  transform: rotate(30deg);
  animation: spin 15s linear infinite reverse;
}
.shape-triangle-1 {
  width: 0;
  height: 0;
  border-left: 60px solid transparent;
  border-right: 60px solid transparent;
  border-bottom: 104px solid rgba(255, 255, 255, 0.06);
  top: 45%;
  left: 3%;
  animation: float2 7s ease-in-out infinite;
}
.shape-dots {
  width: 200px;
  height: 200px;
  background-image: radial-gradient(circle, rgba(255,255,255,0.2) 1px, transparent 1px);
  background-size: 20px 20px;
  bottom: 15%;
  right: 8%;
  opacity: 0.5;
}

@keyframes float1 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-30px) rotate(5deg); }
}
@keyframes float2 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(20px) rotate(-3deg); }
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

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

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .shape-circle-1 { width: 200px; height: 200px; }
  .shape-circle-2 { width: 120px; height: 120px; }
  .shape-square-1 { width: 60px; height: 60px; }
  .shape-square-2 { display: none; }
  .shape-triangle-1 { display: none; }
  .shape-dots { display: none; }
}

/* ========== SELECTION ========== */
::selection {
  background: #7B2D3B;
  color: white;
}

/* ========== CUSTOM SCROLLBAR ========== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #fffcf8; }
::-webkit-scrollbar-thumb { background: #7B2D3B; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #5a1f2a; }
