/* === Base & Utilities === */
*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    overflow-x: hidden;
}

::selection {
    background: #7ED4B8;
    color: #0A1628;
}

/* === Custom Button Styles === */
.btn-primary {
    background: #0A1628;
    color: #fff;
    border: 2px solid #0A1628;
    border-radius: 9999px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary:hover {
    background: #162A45;
    border-color: #162A45;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(10, 22, 40, 0.2);
}

.btn-secondary {
    background: transparent;
    color: #0A1628;
    border: 2px solid rgba(10, 22, 40, 0.2);
    border-radius: 9999px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-secondary:hover {
    border-color: #0A1628;
    transform: translateY(-2px);
}

.btn-dark {
    background: #0A1628;
    color: #fff;
    border: 2px solid #0A1628;
    border-radius: 9999px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-dark:hover {
    background: #0F1F36;
    border-color: #0F1F36;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(10, 22, 40, 0.3);
}

.btn-outline-mint {
    background: transparent;
    color: #0A1628;
    border: 2px solid rgba(10, 22, 40, 0.4);
    border-radius: 9999px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-outline-mint:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(10, 22, 40, 0.6);
    transform: translateY(-2px);
}

/* === Navbar === */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #7ED4B8;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* === Mobile Menu === */
.mobile-menu-link {
    transition: all 0.3s ease;
}

.mobile-menu-link:hover {
    color: #3AB38C;
}

/* === Scroll Animations === */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* === Staggered Card Animations === */
.card-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.card-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === Image Hover Effects === */
img {
    max-width: 100%;
    height: auto;
}

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

/* === Navbar Scrolled State === */
.navbar-scrolled {
    background: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(10, 22, 40, 0.05);
}

/* === Responsive Adjustments === */
@media (max-width: 768px) {
    .btn-primary,
    .btn-secondary,
    .btn-dark,
    .btn-outline-mint {
        width: 100%;
        text-align: center;
    }

    #hero h1 {
        font-size: 3.5rem;
    }
}

@media (min-width: 768px) {
    #hero h1 {
        font-size: 5.5rem;
    }
}

@media (min-width: 1024px) {
    #hero h1 {
        font-size: 6.5rem;
    }
}

/* === Accessibility === */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .reveal,
    .card-reveal {
        opacity: 1;
        transform: none;
    }
}
