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

html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Scroll Reveal (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }

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

/* ── Floating Cards Animation ── */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

@keyframes float-delayed {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.floating-card {
    animation: float 4s ease-in-out infinite;
}

.floating-card:nth-child(2) {
    animation-name: float-delayed;
    animation-duration: 5s;
}

.floating-card:nth-child(3) {
    animation-name: float;
    animation-duration: 4.5s;
    animation-delay: 0.5s;
}

.floating-card:nth-child(4) {
    animation-name: float-delayed;
    animation-duration: 5.5s;
    animation-delay: 1s;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #f4b942, #e8a020);
    border-radius: 9999px;
    transition: width 0.3s ease;
}

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

/* ── Mobile Menu ── */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

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

.mobile-link {
    position: relative;
}

/* ── Focus Styles ── */
input:focus,
textarea:focus,
button:focus {
    outline: none;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid #f4b942;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ── Scrollbar Styling ── */
::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #db2777, #e8a020);
    border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #be185d, #d4880a);
}

/* ── Selection Color ── */
::selection {
    background-color: #fbcfe8;
    color: #500724;
}

/* ── Print Styles ── */
@media print {
    .floating-card,
    .scroll-reveal {
        animation: none;
        opacity: 1;
        transform: none;
    }
}
