/* ===== Custom Styles for Adama's Pharmacy ===== */

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

/* Navigation states */
.nav-text {
    transition: color 0.3s ease;
}

nav.scrolled .nav-text {
    color: #6B2F5B;
}

/* Floating card animations */
.floating-card {
    animation: float 6s ease-in-out infinite;
}

.floating-card:nth-child(2) {
    animation-delay: -2s;
}

.floating-card:nth-child(3) {
    animation-delay: -4s;
}

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

/* Card hover effects */
.card-hover {
    transform: translateY(0);
    transition: transform 0.5s ease, box-shadow 0.5s ease, background-color 0.5s ease;
}

.card-hover:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(107, 47, 91, 0.25);
}

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

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

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

/* Mobile menu transitions */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

#mobile-menu.open {
    max-height: 400px;
    padding-top: 0;
}

/* Mobile links */
.mobile-link {
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid rgba(107, 47, 91, 0.1);
}

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

/* Form focus styles */
input:focus,
textarea:focus,
select:focus {
    outline: none;
}

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

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

::-webkit-scrollbar-thumb {
    background: #E8C2DD;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #D79BC7;
}

/* Print styles */
@media print {
    nav, #mobile-menu-btn, .floating-card, footer {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    section {
        page-break-inside: avoid;
    }
}
