/* Custom styles for MouthFull Confections & Friends */

/* Smooth scroll offset for fixed navbar */
section[id] {
    scroll-margin-top: 100px;
}

/* Geometric shapes animation */
.geo-shape {
    position: absolute;
    opacity: 0.15;
    animation: float 6s ease-in-out infinite;
}

.shape-circle-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 209, 102, 0.6) 0%, transparent 70%);
    top: 10%;
    left: -5%;
    border-radius: 50%;
    animation-delay: 0s;
}

.shape-circle-2 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 140, 114, 0.5) 0%, transparent 70%);
    bottom: 15%;
    right: -3%;
    border-radius: 50%;
    animation-delay: 2s;
}

.shape-square-1 {
    width: 120px;
    height: 120px;
    background: rgba(184, 230, 200, 0.4);
    top: 25%;
    right: 10%;
    border-radius: 24px;
    transform: rotate(45deg);
    animation-delay: 1s;
}

.shape-square-2 {
    width: 80px;
    height: 80px;
    background: rgba(255, 214, 186, 0.5);
    bottom: 30%;
    left: 8%;
    border-radius: 16px;
    transform: rotate(20deg);
    animation-delay: 3s;
}

.shape-triangle-1 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 100px solid rgba(255, 209, 102, 0.3);
    top: 60%;
    left: 5%;
    animation-delay: 4s;
}

.shape-dots {
    width: 100px;
    height: 100px;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.3) 2px, transparent 2px);
    background-size: 15px 15px;
    top: 15%;
    right: 25%;
    animation-delay: 1.5s;
}

.shape-wave {
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120'%3E%3Cpath fill='rgba(255,255,255,0.05)' d='M0,64L48,69.3C96,75,192,85,288,80C384,75,480,53,576,48C672,43,768,53,864,64C960,75,1056,85,1152,80C1248,75,1344,53,1392,42.7L1440,32L1440,120L1392,120C1344,120,1248,120,1152,120C1056,120,960,120,864,120C768,120,672,120,576,120C480,120,384,120,288,120C192,120,96,120,48,120L0,120Z'%3E%3C/path%3E%3C/svg%3E") no-repeat bottom;
    background-size: cover;
    animation: none;
    opacity: 1;
}

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

/* Scroll reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Mobile menu animations */
#mobile-menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#mobile-menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#mobile-menu-btn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.25rem;
}

/* Navbar scroll state */
#navbar.scrolled {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

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

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

::-webkit-scrollbar-thumb {
    background: #338233;
    border-radius: 5px;
}

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

/* Form focus styles */
input:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(51, 130, 51, 0.15);
}

/* Button press effect */
button:active, a:active {
    transform: scale(0.98) !important;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .geo-shape {
        animation: none;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Tablet adjustments */
@media (max-width: 768px) {
    .geo-shape {
        opacity: 0.1;
    }
    
    .shape-circle-1 {
        width: 200px;
        height: 200px;
    }
    
    .shape-circle-2 {
        width: 120px;
        height: 120px;
    }
}

/* Large screen adjustments */
@media (min-width: 1920px) {
    .max-w-7xl {
        max-width: 80rem;
    }
}
