/* === BASE === */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

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

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

#navbar.scrolled {
    background: rgba(255, 250, 245, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(128, 0, 32, 0.08);
}

/* === HERO FLOATING CARDS === */
.floating-card-1 {
    animation: float-card-1 4s ease-in-out infinite;
}

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

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

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

/* === GEOMETRIC ANIMATIONS === */
@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes float-slow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -20px) scale(1.05); }
}

@keyframes float-medium {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-15px, 15px) scale(1.03); }
}

@keyframes pulse-slow {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

@keyframes scroll-line {
    0% { top: -12px; }
    100% { top: 32px; }
}

.animate-spin-slow {
    animation: spin-slow 20s linear infinite;
}

.animate-float-slow {
    animation: float-slow 8s ease-in-out infinite;
}

.animate-float-medium {
    animation: float-medium 6s ease-in-out infinite;
}

.animate-pulse-slow {
    animation: pulse-slow 4s ease-in-out infinite;
}

.animate-scroll-line {
    animation: scroll-line 1.5s ease-in-out infinite;
}

/* === SCROLL REVEAL === */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal[data-reveal="hidden"] {
    opacity: 0;
    transform: translateY(30px);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal[data-reveal="hidden"] {
        opacity: 1;
        transform: none;
    }
    .floating-card-1,
    .floating-card-2 {
        animation: none;
    }
    .animate-spin-slow,
    .animate-float-slow,
    .animate-float-medium,
    .animate-pulse-slow {
        animation: none;
    }
    html {
        scroll-behavior: auto;
    }
}

/* === SERVICE CARDS === */
.service-card {
    opacity: 1;
}

/* === MOBILE MENU === */
.mobile-link {
    display: block;
}

/* === FOCUS STYLES === */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #800020;
    outline-offset: 2px;
    border-radius: 4px;
}

/* === SELECTION === */
::selection {
    background: #f9d0d9;
    color: #800020;
}

/* === SCROLLBAR === */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FFFAF5;
}
::-webkit-scrollbar-thumb {
    background: #f3a5b8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #b8184e;
}
