/* Custom Styles for Eco Carpet Cleaning NH */

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Geometric Shapes for Hero */
.geo-shape {
    position: absolute;
    opacity: 0.15;
    pointer-events: none;
}

.shape-circle-1 {
    width: 300px;
    height: 300px;
    background: white;
    border-radius: 50%;
    top: 10%;
    left: -5%;
    animation: float 6s ease-in-out infinite;
}

.shape-circle-2 {
    width: 200px;
    height: 200px;
    background: white;
    border-radius: 50%;
    top: 60%;
    right: 5%;
    animation: float 8s ease-in-out infinite reverse;
}

.shape-circle-3 {
    width: 150px;
    height: 150px;
    background: white;
    border-radius: 50%;
    bottom: 20%;
    left: 10%;
    animation: float 7s ease-in-out infinite;
}

.shape-triangle-1 {
    width: 0;
    height: 0;
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    border-bottom: 173px solid white;
    top: 20%;
    right: 15%;
    transform: rotate(15deg);
    animation: rotate 10s linear infinite;
}

.shape-square-1 {
    width: 120px;
    height: 120px;
    background: white;
    top: 70%;
    left: 20%;
    transform: rotate(45deg);
    animation: rotate 12s linear infinite reverse;
}

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

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

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

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

/* Navbar Scroll Effect */
#navbar.scrolled {
    background: rgba(255, 253, 249, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #A84A2E;
}

/* Focus Styles for Accessibility */
input:focus,
select:focus,
textarea:focus,
button:focus {
    outline: none;
}

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

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

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

/* 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;
    }
}

/* Print Styles */
@media print {
    .geo-shape,
    #back-to-top,
    .animate-bounce {
        display: none !important;
    }
}
