/* Custom styles for Fountain City Nutrition */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a1628;
}
::-webkit-scrollbar-thumb {
    background: #1a3a6b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #f5a623;
}

/* Selection color */
::selection {
    background: #f5a623;
    color: #0a1628;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Staggered animation delays */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* Intersection observer animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Geometric pattern overlay for sections */
.geometric-pattern {
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(245, 166, 35, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(26, 58, 107, 0.1) 0%, transparent 50%);
}

/* Image hover zoom effect */
.img-zoom {
    overflow: hidden;
}
.img-zoom img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.img-zoom:hover img {
    transform: scale(1.05);
}

/* Button ripple effect */
.btn-ripple {
    position: relative;
    overflow: hidden;
}
.btn-ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}
.btn-ripple:active::after {
    width: 200px;
    height: 200px;
}

/* Navbar glass effect on scroll */
.nav-scrolled {
    background: rgba(10, 22, 40, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Floating animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}
.float {
    animation: float 3s ease-in-out infinite;
}

/* Pulse glow for gold elements */
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(245, 166, 35, 0.3); }
    50% { box-shadow: 0 0 40px rgba(245, 166, 35, 0.6); }
}
.pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Mobile menu transition */
#mobile-menu {
    transition: max-height 0.3s ease, opacity 0.3s ease;
}
#mobile-menu.hidden {
    max-height: 0;
    opacity: 0;
}
#mobile-menu:not(.hidden) {
    max-height: 400px;
    opacity: 1;
}

/* Form input focus styles */
input:focus, textarea:focus {
    outline: none;
}

/* Ensure all images have smooth loading */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .font-display {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
}
