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

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* ========== NAVBAR ========== */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(11, 29, 58, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(52, 211, 153, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ========== HERO GEOMETRIC SHAPES ========== */
.hero-shape {
    position: absolute;
    opacity: 0.08;
    pointer-events: none;
}

.shape-circle-1 {
    top: 12%;
    right: 5%;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    border: 3px solid #34D399;
    animation: float-slow 8s ease-in-out infinite;
}

.shape-circle-2 {
    bottom: 20%;
    right: 15%;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: #34D399;
    animation: float-slow 6s ease-in-out infinite reverse;
}

.shape-square-1 {
    top: 25%;
    left: 52%;
    width: 80px;
    height: 80px;
    background: #34D399;
    transform: rotate(45deg);
    animation: spin-slow 12s linear infinite;
}

.shape-square-2 {
    bottom: 30%;
    left: 48%;
    width: 50px;
    height: 50px;
    border: 2px solid #86efac;
    transform: rotate(30deg);
    animation: spin-slow 8s linear infinite reverse;
}

.shape-triangle-1 {
    top: 60%;
    left: 10%;
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid #34D399;
    opacity: 0.06;
    animation: float-slow 7s ease-in-out infinite;
}

/* ========== FLOATING CARD ANIMATIONS ========== */
.floating-card {
    animation: float-card 4s ease-in-out infinite;
}

.card-1 {
    animation-delay: 0s;
}

.card-2 {
    animation-delay: -1.3s;
}

.card-3 {
    animation-delay: -2.6s;
}

/* ========== KEYFRAMES ========== */
@keyframes float-slow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

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

@keyframes spin-slow {
    from { transform: rotate(45deg); }
    to { transform: rotate(405deg); }
}

/* ========== MENU CARDS ========== */
.menu-card {
    will-change: transform;
}

/* ========== SCROLL REVEAL (progressive enhancement) ========== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

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

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
}

/* Mobile menu transition */
#mobile-menu {
    animation: slideDown 0.25s ease;
}

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

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #34D399;
    outline-offset: 2px;
    border-radius: 4px;
}
