/* Base & Typography */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #081018;
}
::-webkit-scrollbar-thumb {
    background: #1ab87a40;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #1ab87a60;
}

/* Selection */
::selection {
    background: #1ab87a40;
    color: #f0fdf4;
}

/* Mint Badge */
.mint-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #33d695;
    background: rgba(26, 184, 122, 0.12);
    border: 1px solid rgba(26, 184, 122, 0.25);
    padding: 0.4rem 1rem;
    border-radius: 100px;
}

/* Hero Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.animate-slide-up {
    animation: slideUp 0.9s ease-out 0.2s both;
}

.animate-slide-up-delay {
    animation: slideUp 0.9s ease-out 0.4s both;
}

.animate-slide-up-delay-2 {
    animation: slideUp 0.9s ease-out 0.6s both;
}

/* Scroll Reveal - Progressive Enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal[data-revealed="false"] {
    opacity: 0;
    transform: translateY(40px);
}

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

/* Navbar transition */
.nav-scrolled {
    background: rgba(4, 8, 14, 0.92) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(51, 214, 149, 0.08);
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.3);
}

.nav-default {
    background: transparent !important;
    border-bottom: 1px solid transparent !important;
    box-shadow: none !important;
}

/* Image loading placeholder */
img {
    background-color: #0d1c2b;
}

/* Smooth focus outlines */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #33d695;
    outline-offset: 3px;
    border-radius: 4px;
}

/* Mobile menu animation */
#mobile-menu {
    animation: menuSlide 0.3s ease-out forwards;
}

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

/* Subtle grain overlay for editorial feel */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.015;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}
