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

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

body {
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

/* ── Scroll Reveal (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    .reveal.revealed {
        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; }
}

/* ── Floating Cards Animation ── */
@media (prefers-reduced-motion: no-preference) {
    .floating-card {
        animation: float 6s ease-in-out infinite;
    }
    
    .floating-card:nth-child(1) { animation-delay: 0s; }
    .floating-card:nth-child(2) { animation-delay: -1.5s; }
    .floating-card:nth-child(3) { animation-delay: -3s; }
    .floating-card:nth-child(4) { animation-delay: -4.5s; }
}

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

/* ── Navbar ── */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
    background: rgba(250, 248, 246, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(127, 28, 52, 0.08);
}

.nav-logo-text {
    transition: color 0.3s ease;
}

/* ── Nav Links ── */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #b82747;
    transition: width 0.3s ease;
}

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

/* ── Service Cards ── */
.service-card {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(127, 28, 52, 0.08);
}

/* ── Mobile Menu ── */
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

/* ── Menu Lines Animation ── */
#menuToggle.active .menu-line:nth-child(1) {
    top: 50%;
    transform: rotate(45deg);
}

#menuToggle.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menuToggle.active .menu-line:nth-child(3) {
    top: 50%;
    transform: rotate(-45deg);
}

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

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

::-webkit-scrollbar-thumb {
    background: #d44062;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b82747;
}

/* ── Selection ── */
::selection {
    background: #fce7eb;
    color: #6b1a2e;
}

/* ── Form Styles ── */
select option {
    font-weight: normal;
    color: #1a1a1a;
}

/* ── Mobile Nav Links ── */
.mobile-nav-link {
    font-size: 0.875rem;
}

/* ── Responsive adjustments ── */
@media (max-width: 768px) {
    .floating-card {
        display: none;
    }
}
