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

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

body {
    overflow-x: hidden;
}

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

/* ===== Hero Circle Animations ===== */
.hero-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
}

.circle-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #f2c044, transparent 70%);
    top: -150px;
    right: -150px;
    animation: float-slow 8s ease-in-out infinite;
}

.circle-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #e9a817, transparent 70%);
    bottom: -100px;
    left: -100px;
    animation: float-slow 10s ease-in-out infinite reverse;
}

.circle-3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, #f7db85, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse-slow 6s ease-in-out infinite;
}

@keyframes float-slow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -30px) scale(1.05); }
}

@keyframes pulse-slow {
    0%, 100% { opacity: 0.06; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.12; transform: translate(-50%, -50%) scale(1.1); }
}

/* ===== Floating Emojis ===== */
.floating-emoji {
    position: absolute;
    font-size: 2rem;
    opacity: 0.6;
    animation: float-emoji 4s ease-in-out infinite;
    pointer-events: none;
    user-select: none;
}

.floating-emoji:nth-child(2) { animation-delay: 0.5s; animation-duration: 5s; }
.floating-emoji:nth-child(3) { animation-delay: 1s; animation-duration: 4.5s; }
.floating-emoji:nth-child(4) { animation-delay: 1.5s; animation-duration: 5.5s; }
.floating-emoji:nth-child(5) { animation-delay: 2s; animation-duration: 4s; }
.floating-emoji:nth-child(6) { animation-delay: 0.8s; animation-duration: 5s; }

@keyframes float-emoji {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

/* ===== Scroll Reveal ===== */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal[data-reveal] {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
}

/* ===== Navbar ===== */
#navbar.scrolled {
    background: rgba(14, 29, 51, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(212, 144, 10, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ===== Mobile Menu ===== */
#mobileMenu {
    animation: slideDown 0.3s ease;
}

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

/* ===== Button Focus States ===== */
a:focus-visible, button:focus-visible {
    outline: 2px solid #f2c044;
    outline-offset: 2px;
    border-radius: 0.5rem;
}

/* ===== Selection ===== */
::selection {
    background: rgba(242, 192, 68, 0.3);
    color: #f0f4fa;
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
    .floating-emoji {
        animation: none;
    }
    .hero-circle {
        animation: none;
    }
}
</style>
