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

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

body {
    margin: 0;
    overflow-x: hidden;
}

/* Floating card animations */
@keyframes float-1 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

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

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

.floating-card:nth-child(1) {
    animation: float-1 4s ease-in-out infinite;
}

.floating-card:nth-child(2) {
    animation: float-2 5s ease-in-out infinite 0.5s;
}

.floating-card:nth-child(3) {
    animation: float-3 4.5s ease-in-out infinite 1s;
}

/* Feature card hover */
.feature-card {
    will-change: transform;
}

/* Scroll reveal (progressive enhancement — only when JS runs and motion is preferred) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(253, 248, 240, 0.92) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: #e3e4e6;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #c7c8cc;
}

/* Selection color */
::selection {
    background: #ffd5c9;
    color: #1e1f23;
}
