/* ========== 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;
}

/* ========== FLOATING ANIMATIONS ========== */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

@keyframes float-delayed {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float-delayed 5s ease-in-out infinite;
    animation-delay: 1s;
}

/* ========== SCROLL REVEAL ========== */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

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

/* ========== MENU TABS ========== */
.menu-tab {
    background: transparent;
    color: #7e22ce;
    border: none;
    cursor: pointer;
}

.menu-tab.active {
    background: linear-gradient(135deg, #9333ea, #7e22ce);
    color: #fff;
    box-shadow: 0 4px 12px rgba(147, 51, 234, 0.3);
}

.menu-tab:not(.active):hover {
    background: #f3e8ff;
    color: #7e22ce;
}

/* ========== NAVBAR ========== */
.nav-scrolled {
    background: rgba(250, 245, 255, 0.92) !important;
    backdrop-filter: blur(16px);
    box-shadow: 0 1px 20px rgba(147, 51, 234, 0.08);
}

.nav-default {
    background: transparent;
}

/* ========== SELECTION ========== */
::selection {
    background: #e9d5ff;
    color: #581c87;
}

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

::-webkit-scrollbar-track {
    background: #faf5ff;
}

::-webkit-scrollbar-thumb {
    background: #d8b4fe;
    border-radius: 999px;
}

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

/* ========== MOBILE MENU TRANSITION ========== */
#mobileMenu {
    animation: slideDown 0.3s ease;
}

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

/* ========== IMAGE HOVER ========== */
.rounded-2xl.overflow-hidden img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ========== FOCUS VISIBLE ========== */
:focus-visible {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
}
