/* Custom styles for Son & Garden */

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

/* Geometric shapes in hero */
.geo-shape {
    position: absolute;
    opacity: 0.12;
    pointer-events: none;
}

.shape-circle-1 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: #dcedc8;
    top: -100px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.shape-circle-2 {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: #a5d6a7;
    bottom: 10%;
    left: 5%;
    animation: float 6s ease-in-out infinite reverse;
}

.shape-circle-3 {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: #c5e1a5;
    top: 30%;
    right: 10%;
    animation: float 10s ease-in-out infinite;
}

.shape-square-1 {
    width: 120px;
    height: 120px;
    background: #81c784;
    top: 20%;
    left: 8%;
    transform: rotate(45deg);
    animation: spin 20s linear infinite;
}

.shape-triangle-1 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid #a5d6a7;
    bottom: 20%;
    right: 15%;
    animation: float 7s ease-in-out infinite;
}

.shape-dots {
    width: 200px;
    height: 200px;
    background-image: radial-gradient(circle, #dcedc8 2px, transparent 2px);
    background-size: 20px 20px;
    top: 60%;
    left: 15%;
    opacity: 0.2;
}

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

@keyframes spin {
    from { transform: rotate(45deg); }
    to { transform: rotate(405deg); }
}

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

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

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

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

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

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

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(254, 253, 248, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

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

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

::-webkit-scrollbar-thumb {
    background: #a5d6a7;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #81c784;
}

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

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .shape-circle-1 {
        width: 200px;
        height: 200px;
    }
    .shape-circle-2 {
        width: 120px;
        height: 120px;
    }
    .shape-circle-3 {
        display: none;
    }
    .shape-square-1 {
        width: 60px;
        height: 60px;
    }
    .shape-triangle-1 {
        display: none;
    }
    .shape-dots {
        width: 100px;
        height: 100px;
    }
}
