/* === Custom Styles for On The Go Nutrition === */

/* Base & Scroll */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Selection Color */
::selection {
    background-color: rgba(212, 168, 83, 0.3);
    color: #fef3c7;
}

/* === Navbar === */
#navbar {
    background: transparent;
    transition: background-color 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
    background: rgba(7, 14, 10, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(26, 58, 40, 0.5), 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* === Mobile Menu === */
#mobile-menu.open {
    opacity: 1 !important;
    pointer-events: all !important;
}

.mobile-link {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

#mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.25s; }

/* === Hero Floating Cards Animation === */
@keyframes float1 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

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

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

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

.hero-card-1 { animation: float1 5s ease-in-out infinite; }
.hero-card-2 { animation: float2 4.5s ease-in-out infinite 0.5s; }
.hero-card-3 { animation: float3 5.5s ease-in-out infinite 1s; }
.hero-card-4 { animation: float4 4s ease-in-out infinite 0.3s; }

/* === Gold Shimmer Border Effect on Cards === */
.product-card {
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(212, 168, 83, 0.5), transparent);
    transition: left 0.6s ease;
}

.product-card:hover::before {
    left: 100%;
}

/* === Scroll Reveal Animations === */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }

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

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
}

/* === Button Ripple Effect === */
.btn-gold {
    position: relative;
    overflow: hidden;
}

.btn-gold::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-gold:active::after {
    width: 200px;
    height: 200px;
}

/* === Input Focus Glow === */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 1px rgba(212, 168, 83, 0.3), 0 0 20px rgba(212, 168, 83, 0.08);
}

/* === Testimonial Card Hover === */
.testimonial-card {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
}

/* === Image Hover Zoom === */
.img-zoom {
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.img-zoom:hover {
    transform: scale(1.08);
}

/* === Decorative Divider === */
.gold-divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, rgba(212, 168, 83, 0.6), rgba(212, 168, 83, 0.1));
    border: none;
    margin: 1.5rem 0;
}

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

::-webkit-scrollbar-track {
    background: #070e0a;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #2d5a3e;
}

/* === Responsive Adjustments === */
@media (max-width: 640px) {
    .font-display {
        line-height: 1.15;
    }
}
