/* Base styles and custom components */

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

body {
    overflow-x: hidden;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf4f6;
}
::-webkit-scrollbar-thumb {
    background: #f5a5b8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #ed6e90;
}

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

/* Navbar scroll state */
nav.scrolled {
    background: rgba(253, 244, 246, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(111, 31, 57, 0.08);
}

nav.scrolled .font-display {
    color: #6f1f39;
}

/* Service card hover glow */
.service-card:hover {
    border-color: rgba(251, 191, 36, 0.4);
}

/* Smooth image loading */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Fade-in animations for below-fold sections */
.fade-in-section {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile menu animation */
#mobileMenu {
    animation: slideDown 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pulse dot animation */
@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.3);
    }
}

.animate-pulse {
    animation: pulse-dot 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .fade-in-section {
        transition: none;
    }
    .service-card,
    .why-card {
        transition: none;
    }
    a, button {
        transition: none;
    }
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(220, 68, 104, 0.1);
}

/* Ensure map iframe is responsive */
iframe {
    min-height: 256px;
}

/* Print styles */
@media print {
    nav, #contact, footer, .fade-in-section {
        display: none;
    }
    body {
        color: #000;
        background: #fff;
    }
}
