/* Additional custom styles for The Dollhouse Salon */

/* Smooth scrolling offset for fixed navbar */
section[id] {
    scroll-margin-top: 80px;
}

/* Navbar glass effect when scrolled */
#navbar.scrolled {
    background: rgba(253, 244, 248, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(80, 7, 36, 0.08);
}

/* Hero text animation on load */
#hero h1 {
    animation: fadeUp 0.8s ease forwards;
}

#hero p {
    animation: fadeUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

#hero .flex-col {
    animation: fadeUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

#hero .mt-16 {
    animation: fadeUp 0.8s ease 0.6s forwards;
    opacity: 0;
}

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

/* Service card hover glow */
.group:hover .rounded-2xl {
    box-shadow: 0 0 30px rgba(190, 24, 93, 0.15);
}

/* Button ripple effect */
button, a {
    position: relative;
    overflow: hidden;
}

/* Custom selection color */
::selection {
    background: rgba(190, 24, 93, 0.2);
    color: #500724;
}

/* Image lazy load placeholder */
img {
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Print styles */
@media print {
    #navbar, #back-to-top, .blob {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}

/* High contrast mode support */
@media (forced-colors: active) {
    .rounded-full, .rounded-xl, .rounded-2xl, .rounded-3xl {
        border: 1px solid currentColor;
    }
}
