/* Custom styles that complement Tailwind */

/* Smooth scroll offset for fixed nav */
section[id] {
    scroll-margin-top: 80px;
}

/* Selection color */
::selection {
    background: rgba(58, 157, 120, 0.3);
    color: #0F4C75;
}

/* Focus visible styles */
*:focus-visible {
    outline: 2px solid #3a9d78;
    outline-offset: 2px;
}

/* Navbar text transition */
.nav-text-transition {
    transition: color 0.3s ease;
}

.nav-scrolled .nav-text-transition {
    color: #0F4C75 !important;
}

.nav-scrolled .nav-link {
    color: rgba(15, 76, 117, 0.8) !important;
}

.nav-scrolled .nav-link:hover {
    color: #3a9d78 !important;
}

.nav-scrolled #mobile-menu-btn {
    color: #0F4C75 !important;
}

/* Subtle pattern overlay for sections */
.bg-pattern {
    background-image: radial-gradient(rgba(15, 76, 117, 0.03) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* Custom button ripple effect */
.btn-primary::after,
.btn-mint::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-primary:hover::after,
.btn-mint:hover::after {
    opacity: 1;
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #e2f3ed 0%, #d4dfe8 100%);
}

/* Reduce motion preference */
@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;
    }
    .reveal-hidden {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Print styles */
@media print {
    nav, #mobile-menu-btn, .animate-bounce {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}
