/* Custom styles for Rhema Nutrition */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0d1b2a;
}
::-webkit-scrollbar-thumb {
    background: #1e2e4d;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #304a76;
}

/* Selection color */
::selection {
    background: rgba(61, 168, 94, 0.3);
    color: #f0f4f8;
}

/* Base font improvements */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Hero text animation - only for below-fold content via JS */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal {
        transition: none;
    }
    .group img {
        transition: none;
    }
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(8, 15, 24, 0.95) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(30, 46, 77, 0.5);
}

/* Image hover zoom wrapper */
.group:hover img {
    transform: scale(1.05);
}

/* Subtle glow effect for cards */
.glow-hover {
    transition: box-shadow 0.3s ease;
}
.glow-hover:hover {
    box-shadow: 0 0 40px rgba(61, 168, 94, 0.1);
}

/* Fade in animation for hero elements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-animate {
    animation: fadeInUp 0.8s ease forwards;
}

.hero-animate-delay-1 { animation-delay: 0.1s; opacity: 0; }
.hero-animate-delay-2 { animation-delay: 0.3s; opacity: 0; }
.hero-animate-delay-3 { animation-delay: 0.5s; opacity: 0; }
.hero-animate-delay-4 { animation-delay: 0.7s; opacity: 0; }
