/* Custom styles for Main Street Mechanics */

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

/* Geometric background shapes */
.geo-shape {
    position: fixed;
    pointer-events: none;
    z-index: 0;
}

.shape-circle-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(22, 101, 52, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    top: -100px;
    right: -150px;
}

.shape-circle-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(22, 101, 52, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    bottom: 20%;
    left: -80px;
}

.shape-square-1 {
    width: 120px;
    height: 120px;
    background: rgba(22, 101, 52, 0.04);
    border-radius: 24px;
    top: 40%;
    right: 5%;
    transform: rotate(45deg);
}

.shape-triangle-1 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(22, 101, 52, 0.03);
    top: 60%;
    left: 3%;
    transform: rotate(-15deg);
}

.shape-arc-1 {
    width: 200px;
    height: 200px;
    border: 3px solid rgba(22, 101, 52, 0.05);
    border-radius: 50%;
    border-bottom-color: transparent;
    border-left-color: transparent;
    top: 30%;
    right: 10%;
    transform: rotate(45deg);
}

/* Floating animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

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

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

.animate-float-delayed {
    animation: float-delayed 4s ease-in-out infinite;
    animation-delay: 1s;
}

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

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

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

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

/* Navbar scroll effect */
.navbar-scrolled {
    background: rgba(250, 250, 245, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

/* Back to top button */
#backToTop.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

/* Intersection observer animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Stagger children animations */
.stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.3s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.4s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.5s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.6s; }

.stagger-children.visible > * {
    opacity: 1;
    transform: translateY(0);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #14532d;
}

/* Input focus styles */
input:focus, textarea:focus {
    border-color: #22c55e !important;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2) !important;
}
