/* ===== Custom Styles for Counce Nutrition ===== */

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

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

/* ===== Navbar ===== */
#navbar {
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

#navbar.scrolled {
    background: rgba(255, 254, 249, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(5, 150, 105, 0.08);
}

/* ===== Hero Animations ===== */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(var(--rotation, 0deg)); }
    50% { transform: translateY(-20px) rotate(var(--rotation, 0deg)); }
}

.floating-shape {
    animation: float 6s ease-in-out infinite;
}

.shape-1 { animation-delay: 0s; --rotation: 12deg; }
.shape-2 { animation-delay: 1.5s; --rotation: 0deg; }
.shape-3 { animation-delay: 3s; --rotation: 0deg; }
.shape-4 { animation-delay: 4.5s; --rotation: -12deg; }

@keyframes circle-drift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 15px) scale(0.95); }
}

.hero-circle {
    animation: circle-drift 12s ease-in-out infinite;
}

.circle-2 { animation-delay: -4s; animation-duration: 15s; }
.circle-3 { animation-delay: -8s; animation-duration: 18s; }

/* ===== Scroll Reveal ===== */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Staggered reveal delays */
.scroll-reveal:nth-child(1) { transition-delay: 0.05s; }
.scroll-reveal:nth-child(2) { transition-delay: 0.12s; }
.scroll-reveal:nth-child(3) { transition-delay: 0.19s; }
.scroll-reveal:nth-child(4) { transition-delay: 0.26s; }
.scroll-reveal:nth-child(5) { transition-delay: 0.33s; }
.scroll-reveal:nth-child(6) { transition-delay: 0.40s; }

/* ===== Mobile Menu ===== */
#mobile-menu {
    animation: slideDown 0.25s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== Button Focus States ===== */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #059669;
    outline-offset: 2px;
}

/* ===== Selection Color ===== */
::selection {
    background: #a7f3d0;
    color: #064e3b;
}

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

::-webkit-scrollbar-track {
    background: #fffef9;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #6ee7b7;
}
