/* === BASE === */
html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

::selection {
  background: #E8C2EF;
  color: #3D1344;
}

/* === NAVBAR SCROLL === */
#navbar {
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 24px rgba(123, 45, 142, 0.08);
}

/* === MOBILE MENU === */
#mobile-menu.open .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
#mobile-menu.open .bar:nth-child(2) {
  opacity: 0;
}
#mobile-menu.open .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* === REVEAL ANIMATIONS === */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

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

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* === MOBILE LINKS === */
.mobile-link {
  position: relative;
}
.mobile-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #F0A500;
  transition: width 0.3s ease;
}
.mobile-link:hover::after {
  width: 100%;
}

/* === MENU ITEMS HOVER === */
.group:hover .bg-plum-50 {
  background: #F3E0F7;
}
.group:hover .bg-amber-50 {
  background: #FFF3CC;
}

/* === CUSTOM SCROLLBAR === */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #F9F0FC;
}
::-webkit-scrollbar-thumb {
  background: #D797E2;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #C26BD3;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  #hero h1 {
    font-size: 2.75rem;
  }
  .reveal-left,
  .reveal-right {
    transform: translateY(30px);
  }
}
