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

body {
    overflow-x: hidden;
}

/* Floating dots animation */
@keyframes float {
    0%, 100% { transform: translateY(0px) scale(1); opacity: 0.4; }
    50% { transform: translateY(-20px) scale(1.1); opacity: 0.7; }
}

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

/* Card float animation */
@keyframes cardFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.card-float:nth-child(1) { animation: cardFloat 5s ease-in-out infinite; }
.card-float:nth-child(2) { animation: cardFloat 5s ease-in-out infinite 0.5s; }
.card-float:nth-child(3) { animation: cardFloat 5s ease-in-out infinite 1s; }
.card-float:nth-child(4) { animation: cardFloat 5s ease-in-out infinite 1.5s; }

/* Service card hover */
.service-card {
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-4px);
}

/* Scroll reveal - progressive enhancement via JS */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .floating-dot,
    .card-float { animation: none; }
    .reveal { transition: none; }
}

/* Header scroll state */
.header-scrolled {
    background: rgba(253, 248, 245, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

/* Nav link underline effect */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #E86A5A;
    transition: all 0.2s ease;
    transform: translateX(-50%);
}

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

/* Mobile nav link */
.mobile-nav-link {
    border-radius: 0.75rem;
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FDF8F5;
}
::-webkit-scrollbar-thumb {
    background: #C9C9CD;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #9A9AA0;
}

/* Selection color */
::selection {
    background: #FFD5CF;
    color: #1A1B1F;
}
