/* Custom styles for Pharmhouse */

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

/* Navbar scroll effect */
header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

/* Hero image hover effect */
#hero .rounded-3xl:hover img {
    transform: scale(1.02);
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#hero .rounded-3xl img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Floating card animation */
.absolute.-bottom-6.-left-6 {
    animation: float 4s ease-in-out infinite;
}

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

/* Scroll reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        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.visible {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* Service card hover */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* Custom focus styles */
input:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(255, 122, 107, 0.15);
}

/* Mobile menu transition */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

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

/* Subtle gradient overlay for hero text area */
@media (min-width: 1024px) {
    #hero {
        background: linear-gradient(135deg, #fafaf9 0%, #f5f5f4 50%, #fef2f0 100%);
    }
}

/* Selection color */
::selection {
    background-color: rgba(255, 122, 107, 0.2);
    color: #1f262e;
}

/* Button ripple effect */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* Image aspect ratio preservation */
img {
    max-width: 100%;
    height: auto;
}

/* Reduce motion preference */
@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;
    }
}

/* Print styles */
@media print {
    header, footer, #contact-form {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
