/* Custom CSS for Star Valley Lawn Care */

:root {
    --forest-green: #1B4332;
    --forest-dark: #0D2818;
    --forest-light: #2D6A4F;
    --off-white: #F8F9F5;
    --lime-accent: #A8E6CF;
    --lime-bright: #D4F5C0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--off-white);
    color: #1a1a1a;
}

/* Custom Color Classes */
.bg-forest-green { background-color: var(--forest-green); }
.bg-forest-dark { background-color: var(--forest-dark); }
.bg-off-white { background-color: var(--off-white); }
.text-forest-green { color: var(--forest-green); }
.text-forest-dark { color: var(--forest-dark); }

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--forest-green);
    transition: width 0.3s ease;
}

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

/* Navbar scroll effect */
nav.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

/* Geometric Background Elements */
.geo-circle {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.circle-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(168, 230, 207, 0.15), rgba(27, 67, 50, 0.05));
    top: 10%;
    right: -100px;
    animation: float 20s ease-in-out infinite;
}

.circle-2 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, rgba(212, 245, 192, 0.2), rgba(168, 230, 207, 0.1));
    bottom: 20%;
    left: -50px;
    animation: float 15s ease-in-out infinite reverse;
}

.geo-square {
    position: fixed;
    pointer-events: none;
    z-index: 0;
}

.square-1 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, rgba(27, 67, 50, 0.08), rgba(45, 106, 79, 0.04));
    top: 50%;
    left: 10%;
    transform: rotate(45deg);
    animation: rotate 30s linear infinite;
}

.geo-triangle {
    position: fixed;
    pointer-events: none;
    z-index: 0;
}

.triangle-1 {
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid rgba(168, 230, 207, 0.1);
    top: 30%;
    right: 5%;
    animation: float 18s ease-in-out infinite;
}

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

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

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

.reveal.hidden {
    opacity: 0;
    transform: translateY(30px);
}

/* Hero Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide-up {
    animation: slideUp 0.8s ease forwards;
}

.animation-delay-200 { animation-delay: 0.2s; }
.animation-delay-400 { animation-delay: 0.4s; }
.animation-delay-600 { animation-delay: 0.6s; }

/* Mobile Menu */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#mobile-menu.open {
    max-height: 400px;
}

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

::-webkit-scrollbar-track {
    background: var(--off-white);
}

::-webkit-scrollbar-thumb {
    background: var(--forest-green);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--forest-dark);
}

/* Form Focus Styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--forest-green) !important;
    box-shadow: 0 0 0 3px rgba(27, 67, 50, 0.1) !important;
}

/* Button Hover Effects */
button, a {
    transition: all 0.3s ease;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .geo-circle,
    .geo-square,
    .geo-triangle {
        display: none;
    }
}
