/* Nigila Pharmacy — Custom Styles */

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

/* Selection color */
::selection {
    background-color: #7B2D8E;
    color: #fff;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #F5A623;
    outline-offset: 2px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #F9F0FB;
}
::-webkit-scrollbar-thumb {
    background: #A03AA8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #7B2D8E;
}

/* Subtle entrance animation for hero elements (no JS required) */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

#hero > div > div:first-child > div {
    animation: slideInLeft 0.7s ease forwards;
}

#hero > div > div:last-child > div {
    animation: slideInRight 0.7s ease forwards;
}

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

/* Nav shadow on scroll */
nav.scrolled {
    box-shadow: 0 4px 20px rgba(123, 45, 142, 0.1);
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
