/* ===== BASE & RESET ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Outfit', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* ===== FLOATING GEOMETRIC ANIMATION ===== */
@keyframes geo-float {
    0%, 100% { transform: translateY(0px) rotate(var(--rotate, 45deg)); }
    50% { transform: translateY(-12px) rotate(var(--rotate, 45deg)); }
}

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

/* ===== SCROLL REVEAL (progressive enhancement) ===== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    .reveal-left {
        opacity: 0;
        transform: translateX(-40px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    .reveal-right {
        opacity: 0;
        transform: translateX(40px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    .reveal.visible,
    .reveal-left.visible,
    .reveal-right.visible {
        opacity: 1;
        transform: translate(0, 0);
    }
}

/* ===== NAVBAR SCROLL STATE ===== */
#navbar.scrolled {
    background: rgba(59, 7, 100, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(126, 34, 206, 0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

#navbar.scrolled .logo-text {
    color: #fbbf24;
}

/* ===== SECTION SPACING ===== */
section {
    position: relative;
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #3b0764;
}
::-webkit-scrollbar-thumb {
    background: #7e22ce;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #9333ea;
}

/* ===== FOCUS STYLES ===== */
a:focus-visible, button:focus-visible {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===== MOBILE MENU TRANSITION ===== */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
#mobile-menu.open {
    max-height: 500px;
}

/* ===== SELECTION ===== */
::selection {
    background: rgba(251, 191, 36, 0.3);
    color: #fbbf24;
}
</style>
