/* Custom styles for Apothecarium Green */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a2540;
}
::-webkit-scrollbar-thumb {
    background: #00d4aa;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #00b894;
}

/* Selection color */
::selection {
    background: rgba(0, 212, 170, 0.3);
    color: #0a2540;
}

/* Hero animations - only for below-fold or with reduced motion consideration */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Service cards */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00d4aa, #5eead4);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* Product cards */
.product-card {
    position: relative;
}

.product-card .aspect-square {
    transition: transform 0.7s ease;
}

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

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

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(10, 37, 64, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .service-card::before,
    .product-card .aspect-square,
    #back-to-top {
        transition: none;
    }
    @keyframes float {
        0%, 100% { transform: translateY(0px); }
        50% { transform: translateY(-5px); }
    }
}

/* Tablet and up adjustments */
@media (min-width: 768px) {
    .product-card .aspect-square {
        transition: transform 0.7s ease;
    }
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid #00d4aa;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    nav, #back-to-top, .service-card::before {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}
