/* Custom styles for Green Sugah Cane Juice Bar */

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

/* Geometric Shape Animations */
.geo-shape {
    position: absolute;
    opacity: 0.1;
    pointer-events: none;
}

/* Circles */
.geo-circle-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    top: 10%;
    right: -100px;
    animation: float-slow 8s ease-in-out infinite;
}

.geo-circle-2 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    bottom: 20%;
    left: 5%;
    animation: float-slow 6s ease-in-out infinite reverse;
}

.geo-circle-3 {
    width: 150px;
    height: 150px;
    border: 3px solid rgba(45, 212, 191, 0.2);
    border-radius: 50%;
    top: 30%;
    left: 15%;
    animation: spin-slow 20s linear infinite;
}

.geo-circle-4 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(148, 163, 184, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    bottom: 10%;
    right: 10%;
    animation: float-slow 10s ease-in-out infinite;
}

.geo-circle-5 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    top: -100px;
    right: -150px;
    animation: float-slow 12s ease-in-out infinite;
}

/* Squares */
.geo-square-1 {
    width: 100px;
    height: 100px;
    border: 3px solid rgba(45, 212, 191, 0.15);
    top: 25%;
    left: 8%;
    transform: rotate(45deg);
    animation: spin-slow 15s linear infinite reverse;
}

.geo-square-2 {
    width: 60px;
    height: 60px;
    background: rgba(45, 212, 191, 0.1);
    bottom: 30%;
    right: 15%;
    transform: rotate(30deg);
    animation: float-slow 7s ease-in-out infinite;
}

.geo-square-3 {
    width: 80px;
    height: 80px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    bottom: -20px;
    left: 10%;
    transform: rotate(60deg);
    animation: spin-slow 18s linear infinite;
}

/* Triangles */
.geo-triangle-1 {
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 86px solid rgba(45, 212, 191, 0.08);
    top: 50%;
    right: 5%;
    animation: float-slow 9s ease-in-out infinite reverse;
}

/* Diamonds */
.geo-diamond-1 {
    width: 120px;
    height: 120px;
    background: rgba(45, 212, 191, 0.08);
    transform: rotate(45deg);
    top: 15%;
    left: 5%;
    animation: spin-slow 25s linear infinite;
}

.geo-diamond-2 {
    width: 80px;
    height: 80px;
    border: 2px solid rgba(45, 212, 191, 0.1);
    transform: rotate(45deg);
    bottom: 20%;
    right: 8%;
    animation: spin-slow 20s linear infinite reverse;
}

/* Dots pattern */
.geo-dots {
    width: 200px;
    height: 200px;
    background-image: radial-gradient(circle, rgba(45, 212, 191, 0.2) 2px, transparent 2px);
    background-size: 20px 20px;
    top: 60%;
    left: 20%;
    opacity: 0.5;
}

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

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

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes float-delayed {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

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

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

/* Mobile menu animations */
.menu-line {
    transition: all 0.3s ease;
}

#mobileMenuBtn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

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

/* Navbar scroll effect */
#navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Scroll reveal animations - progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .reveal.revealed {
        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; }
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #0d9488;
}

/* Selection color */
::selection {
    background: rgba(20, 184, 166, 0.3);
    color: #0f172a;
}
