/* Custom styles for Kris's Klippers Family Hair */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FFFDFB;
}
::-webkit-scrollbar-thumb {
    background: #FFB3A4;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #FF8A73;
}

/* Selection color */
::selection {
    background: #FFD9D0;
    color: #232323;
}

/* Base transitions */
* {
    transition-property: background-color, border-color, color;
    transition-duration: 200ms;
    transition-timing-function: ease;
}

/* Navbar styles */
#navbar {
    background: rgba(255, 253, 251, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 200, 180, 0.2);
}

#navbar.scrolled {
    background: rgba(255, 253, 251, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
}

/* Mobile menu */
#mobileMenu {
    animation: slideDown 0.3s ease;
}

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

/* Scroll reveal animations */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html {
        scroll-behavior: auto;
    }
    * {
        transition: none !important;
        animation: none !important;
    }
}

/* Hero image hover */
#hero .group:hover img {
    transform: scale(1.02);
}

#hero .group img {
    transition: transform 0.7s ease;
}

/* Floating card animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

/* Only apply float animation if user prefers motion */
@media (prefers-reduced-motion: no-preference) {
    .absolute.-bottom-6.-left-6 {
        animation: float 4s ease-in-out infinite;
    }
}

/* Image hover zoom */
#gallery img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#gallery img:hover {
    transform: scale(1.05);
}

/* Button focus styles */
a:focus-visible, button:focus-visible {
    outline: 2px solid #FF6144;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Service card hover lift */
.group:hover {
    transform: translateY(-4px);
}

.group {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Testimonial cards */
.scroll-reveal:hover {
    border-color: rgba(255, 138, 115, 0.3);
}

/* Contact info cards */
.shadow-sm {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

/* Mobile menu link hover */
.mobile-link {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.mobile-link:last-child {
    border-bottom: none;
}

/* Ensure images don't overflow */
img {
    max-width: 100%;
    height: auto;
}

/* Aspect ratio helpers */
.ratio-4x5 {
    aspect-ratio: 4/5;
}

.ratio-3x4 {
    aspect-ratio: 3/4;
}

/* Gradient text utility */
.text-gradient {
    background: linear-gradient(135deg, #FF6144, #FF8A73);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

@media (prefers-reduced-motion: no-preference) {
    .animate-pulse {
        animation: pulse-dot 2s ease-in-out infinite;
    }
}
