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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(13, 148, 136, 0.2);
    color: #0f766e;
}

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

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

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

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

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

#navbar.scrolled .text-slate-900 {
    color: #0f172a !important;
}

/* ===== Spark Particles ===== */
.spark {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #fbbf24;
    opacity: 0;
    pointer-events: none;
}

@keyframes sparkFloat {
    0% {
        opacity: 0;
        transform: translateY(0) scale(1);
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        opacity: 0;
        transform: translateY(-200px) scale(0);
    }
}

.spark-1 {
    top: 30%;
    left: 20%;
    animation: sparkFloat 3s ease-in-out infinite;
}

.spark-2 {
    top: 50%;
    left: 70%;
    animation: sparkFloat 2.5s ease-in-out 0.5s infinite;
    width: 3px;
    height: 3px;
}

.spark-3 {
    top: 60%;
    left: 40%;
    animation: sparkFloat 3.5s ease-in-out 1s infinite;
}

.spark-4 {
    top: 40%;
    left: 85%;
    animation: sparkFloat 2.8s ease-in-out 1.5s infinite;
    width: 5px;
    height: 5px;
    background: #f59e0b;
}

.spark-5 {
    top: 70%;
    left: 15%;
    animation: sparkFloat 3.2s ease-in-out 0.8s infinite;
}

/* ===== Mobile Menu ===== */
.mobile-link {
    display: block;
    padding: 0.5rem 0;
    font-size: 0.95rem;
}

/* ===== Button Hover Effects ===== */
a, button {
    transition: all 0.3s ease;
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ===== Focus Styles ===== */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* ===== Smooth Image Loading ===== */
img {
    display: block;
    max-width: 100%;
}

/* ===== Selection ===== */
::selection {
    background: rgba(13, 148, 136, 0.15);
    color: #0f172a;
}
