/* Custom styles for De Olla Cafe */

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

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

.circle-1 {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8bbf70 0%, #b8d4a0 100%);
    top: 10%;
    right: -50px;
    animation-delay: 0s;
}

.circle-2 {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: linear-gradient(135deg, #dce9cc 0%, #f0f5e8 100%);
    bottom: 15%;
    left: 5%;
    animation-delay: -5s;
}

.circle-3 {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #f0f5e8;
    top: 40%;
    left: 10%;
    animation-delay: -10s;
}

.triangle-1 {
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid #8bbf70;
    top: 20%;
    left: -30px;
    opacity: 0.1;
    animation-delay: -7s;
    transform: rotate(15deg);
}

.square-1 {
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, #b8d4a0, #dce9cc);
    bottom: 25%;
    right: 10%;
    opacity: 0.12;
    animation-delay: -3s;
    transform: rotate(45deg);
}

.dot-grid {
    width: 200px;
    height: 200px;
    background-image: radial-gradient(circle, #f0f5e8 2px, transparent 2px);
    background-size: 20px 20px;
    top: 60%;
    right: 5%;
    opacity: 0.2;
    animation-delay: -12s;
}

/* CTA section shapes */
.cta-circle-1 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2d7022 0%, #3d8b2e 100%);
    top: -100px;
    right: -100px;
    opacity: 0.3;
}

.cta-circle-2 {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1c4816 0%, #235a1c 100%);
    bottom: -80px;
    left: -50px;
    opacity: 0.4;
}

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

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

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

/* Navigation styles */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(254, 253, 248, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(28, 72, 22, 0.1);
}

.navbar-scrolled .nav-brand-text {
    color: #1c4816;
}

.navbar-scrolled .nav-link {
    color: #1c4816;
}

/* Mobile menu */
.mobile-link {
    position: relative;
    display: block;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #3d8b2e;
    transition: width 0.3s ease;
}

.mobile-link:hover::after {
    width: 100%;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #2d7022;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .geo-shape,
    .reveal {
        animation: none;
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
    outline: 3px solid #8bbf70;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Image loading placeholder */
img {
    background: linear-gradient(90deg, #f0f5e8 25%, #dce9cc 50%, #f0f5e8 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;
}
