/* Custom styles for Nutrition Springs */

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

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

::-webkit-scrollbar-track {
    background: #1C1C1C;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #E85A3A;
}

/* Selection color */
::selection {
    background: #FF6B4A;
    color: #FFF;
}

/* Geometric floating shapes */
.geo-shape {
    position: absolute;
    pointer-events: none;
}

/* Fade-in animation for elements */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delay for children */
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

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

/* Image hover zoom effect */
img {
    transition: transform 0.6s ease;
}

/* Button ripple effect */
button, a {
    position: relative;
    overflow: hidden;
}

/* Mobile menu animation */
#mobile-menu.open {
    max-height: 400px;
}

/* Subtle pattern overlay for hero */
#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 25% 25%, rgba(255, 107, 74, 0.08) 0%, transparent 50%),
                      radial-gradient(circle at 75% 75%, rgba(255, 138, 112, 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

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

/* Product card hover glow */
.group:hover {
    box-shadow: 0 20px 60px rgba(255, 107, 74, 0.15);
}

/* Section divider line animation */
.w-12.h-1.bg-coral {
    transition: width 0.3s ease;
}

/* Input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px rgba(45, 45, 45, 1) inset !important;
    -webkit-text-fill-color: #FFF !important;
}

/* Loading animation for buttons */
@keyframes pulse-border {
    0% { box-shadow: 0 0 0 0 rgba(255, 107, 74, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(255, 107, 74, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 107, 74, 0); }
}

button:active {
    animation: pulse-border 0.6s ease;
}
