/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { overflow-x: hidden; }
img { display: block; max-width: 100%; }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234A2C5E' stroke-width='1.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; }

/* ── Navbar ── */
#navbar { background: transparent; }
#navbar.scrolled { background: rgba(255,255,255,0.95); backdrop-blur: 12px; box-shadow: 0 1px 0 rgba(74,44,94,0.06); }

/* ── Mobile Menu ── */
.mobile-link { transition: all 0.3s ease; }
#mobileMenu.open { opacity: 1 !important; pointer-events: all !important; }
#mobileMenu.open .mobile-link { animation: fadeUp 0.4s ease forwards; opacity: 0; }
#mobileMenu.open .mobile-link:nth-child(1) { animation-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(2) { animation-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(3) { animation-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(4) { animation-delay: 0.25s; }
#mobileMenu.open .mobile-link:nth-child(5) { animation-delay: 0.3s; }

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

/* ── Menu Button ── */
.menu-line { transition: all 0.35s cubic-bezier(0.4,0,0.2,1); transform-origin: center; }
#menuBtn.active .menu-line:nth-child(1) { transform: translateY(4px) rotate(45deg); }
#menuBtn.active .menu-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
#menuBtn.active .menu-line:nth-child(3) { transform: translateY(-4px) rotate(-45deg); width: 5; }

/* ── Reveal Animations ── */
.reveal-up {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s cubic-bezier(0.4,0,0.2,1), transform 0.8s cubic-bezier(0.4,0,0.2,1);
}
.reveal-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Hero Cards Float ── */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
.reveal-up { animation-fill-mode: both; }
.reveal-up:nth-child(1) { animation-delay: 0.2s; }
.reveal-up:nth-child(2) { animation-delay: 0.4s; }
.reveal-up:nth-child(3) { animation-delay: 0.6s; }
.reveal-up:nth-child(4) { animation-delay: 0.8s; }

.floating-card { animation: float 4s ease-in-out infinite; }
.floating-card:nth-child(2) { animation-delay: 1s; animation-duration: 4.5s; }
.floating-card:nth-child(3) { animation-delay: 2s; animation-duration: 3.5s; }

/* ── Custom Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #F5F0F7; }
::-webkit-scrollbar-thumb { background: #BF9FBF; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #4A2C5E; }

/* ── Selection ── */
::selection { background: rgba(232,168,56,0.2); color: #3D2450; }
