/* Custom styles for Hilo Seeds & Snacks */

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

/* Geometric background shapes */
.geo-shape {
    position: absolute;
    pointer-events: none;
    opacity: 0.5;
}

.geo-circle-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(27, 94, 32, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    top: -100px;
    left: -100px;
}

.geo-circle-2 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(212, 165, 116, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    top: 30%;
    right: 5%;
}

.geo-circle-3 {
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(27, 94, 32, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    bottom: 10%;
    left: 15%;
}

.geo-triangle {
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid rgba(27, 94, 32, 0.05);
    top: 20%;
    right: 10%;
    transform: rotate(15deg);
}

.geo-dots {
    width: 120px;
    height: 120px;
    background-image: radial-gradient(circle, rgba(27, 94, 32, 0.15) 2px, transparent 2px);
    background-size: 16px 16px;
    bottom: 20%;
    right: 20%;
    opacity: 0.6;
}

.geo-circle-4 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
    border-radius: 50%;
    top: -150px;
    right: -150px;
}

.geo-square-1 {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.04);
    bottom: 10%;
    left: 5%;
    transform: rotate(45deg);
}

.geo-diamond {
    width: 60px;
    height: 60px;
    background: rgba(129, 199, 132, 0.15);
    top: 30%;
    left: 10%;
    transform: rotate(45deg);
}

.geo-circle-5 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(76, 175, 80, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -200px;
    right: -200px;
}

.geo-circle-6 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(212, 165, 116, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    top: -50px;
    left: 10%;
}

.geo-triangle-2 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 100px solid rgba(129, 199, 132, 0.08);
    top: 15%;
    right: 15%;
    transform: rotate(-20deg);
}

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

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar scroll behavior */
#navbar {
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

#navbar.scrolled {
    background: rgba(254, 253, 248, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

/* Custom selection color */
::selection {
    background: rgba(27, 94, 32, 0.2);
    color: #1B5E20;
}

/* Subtle pattern overlay for hero */
#hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(27, 94, 32, 0.03) 1px, transparent 0);
    background-size: 40px 40px;
    pointer-events: none;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #1B5E20;
    outline-offset: 2px;
    border-radius: 4px;
}

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

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

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #e8f5e9 0%, #f5e6c8 100%);
}

/* Button hover effects */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* Responsive typography adjustments */
@media (max-width: 640px) {
    .font-display {
        line-height: 1.1;
    }
}
