/* ===== Custom Styles for Columbia Nutrition ===== */

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

/* Geometric animations */
@keyframes float-slow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes float-medium {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(-3deg); }
}

@keyframes float-fast {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-25px) rotate(8deg); }
}

@keyframes rotate-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes drift {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(10px, -15px); }
    50% { transform: translate(-5px, -25px); }
    75% { transform: translate(-15px, -10px); }
}

.geo-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
}

.geo-circle-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(253, 249, 243, 0.8) 0%, transparent 70%);
    top: 10%;
    left: -5%;
    animation: float-slow 8s ease-in-out infinite;
}

.geo-circle-2 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(217, 157, 98, 0.6) 0%, transparent 70%);
    top: 60%;
    right: 5%;
    animation: float-medium 6s ease-in-out infinite;
}

.geo-circle-3 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
    bottom: 15%;
    left: 20%;
    animation: float-fast 7s ease-in-out infinite;
}

.geo-square {
    position: absolute;
    opacity: 0.1;
    background: white;
}

.geo-square-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    right: 15%;
    border-radius: 16px;
    animation: rotate-slow 20s linear infinite;
}

.geo-square-2 {
    width: 50px;
    height: 50px;
    bottom: 25%;
    left: 10%;
    border-radius: 12px;
    animation: rotate-slow 15s linear infinite reverse;
}

.geo-triangle {
    position: absolute;
    opacity: 0.12;
}

.geo-triangle-1 {
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid white;
    top: 40%;
    left: 8%;
    animation: float-medium 9s ease-in-out infinite;
}

.geo-dots {
    position: absolute;
    top: 30%;
    right: 10%;
    width: 120px;
    height: 120px;
    background-image: radial-gradient(circle, rgba(255,255,255,0.5) 2px, transparent 2px);
    background-size: 20px 20px;
    animation: drift 12s ease-in-out infinite;
}

/* Reveal animations (below the fold only) */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Mobile menu */
.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.mobile-link:last-child {
    border-bottom: none;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .geo-circle,
    .geo-square,
    .geo-triangle,
    .geo-dots,
    .animate-bounce {
        animation: none;
    }

    html {
        scroll-behavior: auto;
    }

    .reveal {
        transition: none;
    }
}

/* Navbar scroll state */
nav.scrolled {
    background: rgba(253, 249, 243, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

nav.scrolled .font-serif,
nav.scrolled .text-gray-700 {
    color: #1a1a1a;
}
