/* Custom styles — beyond Tailwind */

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

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

/* Hero floating shapes */
.hero-shapes .shape-circle-1 {
    position: absolute;
    top: 12%;
    left: 5%;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 3px solid rgba(255, 251, 230, 0.15);
    animation: float 8s ease-in-out infinite;
}

.hero-shapes .shape-circle-2 {
    position: absolute;
    bottom: 20%;
    right: 8%;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 251, 230, 0.06);
    animation: float 6s ease-in-out infinite reverse;
}

.hero-shapes .shape-circle-3 {
    position: absolute;
    top: 40%;
    right: 15%;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(110, 231, 183, 0.15);
    animation: float 5s ease-in-out infinite;
}

.hero-shapes .shape-square-1 {
    position: absolute;
    top: 25%;
    right: 5%;
    width: 80px;
    height: 80px;
    border: 3px solid rgba(255, 251, 230, 0.12);
    transform: rotate(45deg);
    animation: spin 12s linear infinite;
}

.hero-shapes .shape-square-2 {
    position: absolute;
    bottom: 30%;
    left: 10%;
    width: 50px;
    height: 50px;
    background: rgba(110, 231, 183, 0.1);
    transform: rotate(30deg);
    animation: spin 8s linear infinite reverse;
}

.hero-shapes .shape-triangle-1 {
    position: absolute;
    top: 60%;
    left: 3%;
    width: 0;
    height: 0;
    border-left: 35px solid transparent;
    border-right: 35px solid transparent;
    border-bottom: 60px solid rgba(255, 251, 230, 0.08);
    animation: float 7s ease-in-out infinite;
}

.hero-shapes .shape-dots {
    position: absolute;
    bottom: 15%;
    right: 25%;
    width: 100px;
    height: 100px;
    background-image: radial-gradient(circle, rgba(255, 251, 230, 0.2) 2px, transparent 2px);
    background-size: 16px 16px;
    animation: float 9s ease-in-out infinite reverse;
}

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

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Navbar scroll state */
#navbar.scrolled {
    background: rgba(255, 251, 230, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(6, 78, 59, 0.1);
}

/* Mobile menu */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

.mobile-link {
    opacity: 1;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Selection color */
::selection {
    background: rgba(6, 95, 70, 0.2);
    color: #064e3b;
}
