/* Custom styles for Pinellas Farmers Market */

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

/* Geometric shape animations */
.geo-shape {
    position: absolute;
    opacity: 0.08;
    pointer-events: none;
}

.shape-circle-1 {
    width: 400px;
    height: 400px;
    background: #C45B3B;
    border-radius: 50%;
    top: -100px;
    right: -100px;
    animation: float-slow 20s ease-in-out infinite;
}

.shape-circle-2 {
    width: 200px;
    height: 200px;
    background: #D4976A;
    border-radius: 50%;
    bottom: 20%;
    left: 5%;
    animation: float-slow 15s ease-in-out infinite reverse;
}

.shape-circle-3 {
    width: 120px;
    height: 120px;
    background: #C45B3B;
    border-radius: 50%;
    top: 40%;
    right: 10%;
    animation: float-slow 12s ease-in-out infinite;
}

.shape-rect-1 {
    width: 150px;
    height: 150px;
    background: #D4976A;
    top: 60%;
    left: 3%;
    transform: rotate(45deg);
    animation: float-slow 18s ease-in-out infinite reverse;
}

.shape-triangle-1 {
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid #C45B3B;
    top: 15%;
    left: 8%;
    opacity: 0.06;
    animation: float-slow 22s ease-in-out infinite;
}

@keyframes float-slow {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(20px, -30px) rotate(5deg); }
    50% { transform: translate(-10px, 20px) rotate(-3deg); }
    75% { transform: translate(15px, 10px) rotate(2deg); }
}

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

.animate-float {
    animation: float 4s ease-in-out infinite;
}

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

.nav-scrolled .nav-link {
    color: #374151 !important;
}

.nav-scrolled .font-display {
    color: #111827 !important;
}

/* Mobile menu */
#mobileMenu {
    animation: slideDown 0.3s ease-out;
}

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

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

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Active nav link */
.nav-link.active {
    color: #C45B3B !important;
}

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

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

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

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

/* Selection color */
::selection {
    background: #F9C4AA;
    color: #592617;
}

/* Form styles */
input:focus, textarea:focus {
    outline: none;
    border-color: #C45B3B;
    box-shadow: 0 0 0 3px rgba(196, 91, 59, 0.1);
}

/* Image loading placeholder */
img {
    background: linear-gradient(90deg, #F5E0C8 25%, #EDC9A8 50%, #F5E0C8 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

img[src] {
    animation: none;
    background: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .shape-circle-1 {
        width: 200px;
        height: 200px;
    }
    
    .shape-circle-2 {
        width: 100px;
        height: 100px;
    }
    
    .shape-circle-3 {
        display: none;
    }
    
    .shape-rect-1 {
        width: 80px;
        height: 80px;
    }
    
    .shape-triangle-1 {
        display: none;
    }
}
