/* Custom Styles for Ocean Fruit and Supermarket */

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

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

.circle-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(253, 253, 248, 0.8) 0%, rgba(253, 253, 248, 0) 70%);
    border-radius: 50%;
    top: 10%;
    left: -5%;
    animation-delay: 0s;
}

.circle-2 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(253, 253, 248, 0.6) 0%, rgba(253, 253, 248, 0) 70%);
    border-radius: 50%;
    top: 60%;
    right: 5%;
    animation-delay: 2s;
}

.circle-3 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(241, 215, 110, 0.8) 0%, rgba(241, 215, 110, 0) 70%);
    border-radius: 50%;
    top: 30%;
    right: 15%;
    animation-delay: 4s;
}

.triangle-1 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 100px solid rgba(253, 253, 248, 0.3);
    top: 20%;
    right: 25%;
    transform: rotate(15deg);
    animation-delay: 1s;
}

.square-1 {
    width: 80px;
    height: 80px;
    background: rgba(253, 253, 248, 0.2);
    top: 70%;
    left: 10%;
    transform: rotate(45deg);
    animation-delay: 3s;
}

.dot-pattern {
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(253, 253, 248, 0.3) 2px, transparent 2px);
    background-size: 40px 40px;
    opacity: 0.5;
    animation-delay: 0s;
}

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

/* Navbar Scroll Effect */
.nav-scrolled {
    background: rgba(253, 248, 240, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Intersection Observer Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Mobile Menu Animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

#mobile-menu.open {
    max-height: 400px;
}

/* Product Card Hover Effect */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

.group:hover .group-hover\:rotate-12 {
    transform: rotate(12deg);
}

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

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

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

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

/* Responsive Adjustments */
@media (max-width: 768px) {
    .geo-shape {
        opacity: 0.1;
    }
    
    .circle-1 {
        width: 200px;
        height: 200px;
    }
    
    .circle-2 {
        width: 150px;
        height: 150px;
    }
    
    .circle-3 {
        width: 100px;
        height: 100px;
    }
}
