/* ── Base & Utilities ── */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
}

/* ── Floating Animations ── */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(1deg); }
}

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

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

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

/* ── Scroll Animations ── */
.scroll-anim {
    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);
}

.scroll-anim[data-delay="1"] { transition-delay: 0.1s; }
.scroll-anim[data-delay="2"] { transition-delay: 0.2s; }
.scroll-anim[data-delay="3"] { transition-delay: 0.3s; }
.scroll-anim[data-delay="4"] { transition-delay: 0.4s; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .scroll-anim {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .animate-float,
    .animate-float-delayed {
        animation: none !important;
    }
}

/* ── Mobile Menu Transitions ── */
#mobile-menu {
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

#mobile-menu.open {
    max-height: 400px;
    opacity: 1;
}

/* ── Navbar Scrolled State ── */
#navbar.scrolled {
    background: rgba(253, 248, 240, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

/* ── Custom Scrollbar ── */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FDF8F0;
}
::-webkit-scrollbar-thumb {
    background: #a7f3d0;
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #6ee7b7;
}

/* ── Selection ── */
::selection {
    background: #d1fae5;
    color: #064e3b;
}

/* ── Focus Visible ── */
*:focus-visible {
    outline: 2px solid #059669;
    outline-offset: 2px;
    border-radius: 8px;
}

/* ── Select Arrow ── */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem !important;
}

/* ── Service Card Hover Tilt ── */
.group:hover {
    transform: translateY(-2px);
}

.group {
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Image Hover Zoom ── */
.group img {
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.group:hover img {
    transform: scale(1.03);
}
