/* Custom styles for Metropolitan Drugs */

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

/* Custom animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(22, 101, 52, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(22, 101, 52, 0.6);
    }
}

/* Floating animation for decorative elements */
.float-animation {
    animation: float 6s ease-in-out infinite;
}

/* Pulse glow for special elements */
.pulse-glow {
    animation: pulse-glow 3s ease-in-out infinite;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #fdf9ed;
}

::-webkit-scrollbar-thumb {
    background: #166534;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: #14532d;
}

/* Input focus styles */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(22, 101, 52, 0.1);
}

/* Button hover effects */
button,
a {
    transition: all 0.2s ease-in-out;
}

/* Image hover effects */
img {
    transition: transform 0.3s ease;
}

/* Mobile menu transitions */
#mobileMenu {
    transition: opacity 0.3s ease, pointer-events 0.3s ease;
}

#mobileMenu.active {
    opacity: 1;
    pointer-events: auto;
}

/* Navbar scroll effect */
#navbar.scrolled {
    background: rgba(22, 101, 52, 0.98);
}

/* Service card hover effect */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* Geometric shapes animation */
@keyframes rotate-slow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.rotate-slow {
    animation: rotate-slow 20s linear infinite;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .shadow-hard {
        box-shadow: 4px 4px 0px #166534;
    }
    
    .shadow-hard-sm {
        box-shadow: 2px 2px 0px #166534;
    }
}

/* Print styles */
@media print {
    #navbar,
    #mobileMenu {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* Reduced 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;
    }
}
