/* ── Base & Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

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

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

@keyframes bounce-slow {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(6px); }
}

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

.card-stat-2 {
    animation: float-delayed 5s ease-in-out infinite;
    animation-delay: 1s;
}

.animate-bounce-slow {
    animation: bounce-slow 2s ease-in-out infinite;
}

/* ── Hero Shape Animations ── */
@keyframes drift-1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -20px) scale(1.05); }
}

@keyframes drift-2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-15px, 15px); }
}

@keyframes drift-3 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
}

@keyframes rotate-slow {
    0% { transform: rotate(45deg); }
    100% { transform: rotate(405deg); }
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

.hero-shape.shape-1 { animation: drift-1 8s ease-in-out infinite; }
.hero-shape.shape-2 { animation: drift-2 10s ease-in-out infinite; }
.hero-shape.shape-3 { animation: drift-3 12s ease-in-out infinite; }
.hero-shape.shape-4 { animation: rotate-slow 20s linear infinite; }
.hero-shape.shape-5 { animation: pulse-dot 3s ease-in-out infinite; }
.hero-shape.shape-6 { animation: drift-2 7s ease-in-out infinite reverse; }

/* ── Card Hover ── */
.service-card {
    will-change: transform;
}

/* ── Navbar Scroll State ── */
.nav-scrolled {
    background: rgba(255, 253, 249, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    box-shadow: 0 1px 20px rgba(26, 20, 16, 0.08) !important;
}

/* ── Mobile Menu ── */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

.menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.menu-open .menu-line:nth-child(2) {
    opacity: 0;
}
.menu-open .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ── Scroll Reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
    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; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ── Hero Badge ── */
.hero-badge {
    animation: float 4s ease-in-out infinite;
}

/* ── Custom Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #fdf6e8; }
::-webkit-scrollbar-thumb { background: #e3512a; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #c93818; }

/* ── Selection ── */
::selection { background: #f9cfc3; color: #6a2113; }

/* ── Focus Visible ── */
:focus-visible {
    outline: 2px solid #e3512a;
    outline-offset: 2px;
}

/* ── Responsive Tweaks ── */
@media (max-width: 640px) {
    .hero-float {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        margin-bottom: 12px;
    }
}
