/* Custom styles for Dee's Nutrition */

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1a0a2e;
}
::-webkit-scrollbar-thumb {
    background: #3d2652;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #503068;
}

/* Selection */
::selection {
    background: rgba(200, 150, 12, 0.3);
    color: #f5f0f7;
}

/* Gold shimmer animation for hero */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* Floating animation for decorative elements */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Pulse glow */
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(200, 150, 12, 0.2); }
    50% { box-shadow: 0 0 40px rgba(200, 150, 12, 0.4); }
}

/* Navbar glass effect when scrolled */
.navbar-scrolled {
    background: rgba(26, 10, 46, 0.92) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(61, 38, 82, 0.5);
}

/* Gradient text utility */
.gradient-text {
    background: linear-gradient(135deg, #e8b84b, #c8960c, #d4a017);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card hover glow */
.card-glow:hover {
    box-shadow: 0 0 60px rgba(200, 150, 12, 0.15), 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Image overlay gradient */
.img-overlay {
    position: relative;
}
.img-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 10, 46, 0.5) 0%, transparent 50%);
    pointer-events: none;
}

/* Smooth image loading */
img {
    image-rendering: auto;
    loading: lazy;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
