/* ===== CUSTOM STYLES FOR MAKO PHARMACY ===== */

/* ---------- Animations ---------- */
@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scroll-line {
    0%, 100% {
        opacity: 0.4;
        transform: scaleY(1);
    }
    50% {
        opacity: 1;
        transform: scaleY(1.3);
    }
}

.animate-fade-up {
    animation: fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.animate-scroll-line {
    animation: scroll-line 1.6s ease-in-out infinite;
}

/* ---------- Scroll-triggered reveals ---------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* ---------- Navbar transition ---------- */
#navbar.scrolled {
    background: rgba(14, 27, 45, 0.95);
    backdrop-filter: blur(16px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

#navbar.scrolled .nav-link {
    color: rgba(255, 255, 255, 0.85);
}

/* ---------- Mobile menu ---------- */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* ---------- Service card stagger ---------- */
.service-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1), transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Smooth focus ---------- */
input:focus,
textarea:focus {
    outline: none;
}

/* ---------- Selection ---------- */
::selection {
    background: rgba(212, 168, 75, 0.25);
    color: #1e3a5f;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #7ca9d0;
}

/* ---------- Back to top ---------- */
#backToTop.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* ---------- Print ---------- */
@media print {
    #navbar, #backToTop, .animate-fade-up {
        display: none !important;
    }
    body {
        color: #1e3a5f;
        background: white;
    }
}
