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

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

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(123, 45, 59, 0.15);
    color: #5a1e28;
}

/* ── Navbar ── */
#navbar {
    background: rgba(254, 252, 251, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(123, 45, 59, 0.06);
}

#navbar.scrolled {
    background: rgba(254, 252, 251, 0.95);
    box-shadow: 0 4px 30px rgba(123, 45, 59, 0.06);
}

/* ── Hero Animations ── */
.hero-content {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.9s ease forwards;
    animation-delay: 0.2s;
}

.hero-image-wrapper {
    opacity: 0;
    transform: translateY(40px) scale(0.97);
    animation: fadeUpScale 1s ease forwards;
    animation-delay: 0.4s;
}

.floating-card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.7s ease forwards;
    animation-delay: 1s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeUpScale {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

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

.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }

/* ── Service Cards ── */
.service-card {
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── About Images ── */
.about-images {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-images.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ── Mobile Menu ── */
.mobile-link {
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#mobile-menu.open .mobile-link:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(5) { opacity: 1; transform: translateY(0); transition-delay: 0.25s; }

/* ── Form Inputs ── */
input:focus, select:focus, textarea:focus {
    box-shadow: 0 0 0 4px rgba(123, 45, 59, 0.08);
}

/* ── Button Ripple ── */
button, a {
    cursor: pointer;
}

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

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

::-webkit-scrollbar-thumb {
    background: rgba(123, 45, 59, 0.2);
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(123, 45, 59, 0.4);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .hero-image-wrapper img {
        height: 400px;
    }

    .floating-card {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 16px;
        max-width: 100%;
    }

    .about-images {
        transform: translateY(30px);
    }

    .about-images.visible {
        transform: translateY(0);
    }
}

@media (max-width: 640px) {
    .hero-image-wrapper img {
        height: 320px;
    }
}
