/* Custom Styles for Expert Power Washing & Gutter Cleaning */

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

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Selection Color */
::selection {
    background-color: rgba(74, 222, 128, 0.3);
    color: white;
}

/* Navbar Scroll State */
.navbar-scrolled {
    background-color: rgba(10, 26, 50, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Hero Animations */
.hero-eyebrow {
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeInDown 0.8s ease forwards;
}

.hero-headline {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

.hero-subhead {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease 0.4s forwards;
}

.hero-ctas {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease 0.6s forwards;
}

.hero-trust {
    opacity: 0;
    animation: fadeIn 0.8s ease 0.8s forwards;
}

.hero-image-grid {
    opacity: 0;
    transform: translateX(40px);
    animation: slideInRight 1s ease 0.4s forwards;
}

.hero-floating-badge {
    opacity: 0;
    animation: popIn 0.6s ease 1s forwards;
}

/* Section Animations (scroll-triggered via JS) */
.section-header {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.section-header.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* About Section */
.about-image-container {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s ease;
}

.about-image-container.visible {
    opacity: 1;
    transform: translateX(0);
}

.about-experience-badge {
    opacity: 0;
    animation: popIn 0.6s ease 0.6s forwards;
}

/* Gallery */
.gallery-item {
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.6s ease;
}

.gallery-item.visible {
    opacity: 1;
    transform: scale(1);
}

/* Contact Form */
.contact-info-item {
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.5s ease;
}

.contact-info-item.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Form Inputs */
.form-input {
    transition: all 0.3s ease;
}

.form-input:focus {
    background-color: rgba(255, 255, 255, 0.08);
}

.form-submit {
    position: relative;
    overflow: hidden;
}

.form-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.form-submit:hover::before {
    left: 100%;
}

/* Scroll Indicator */
.scroll-indicator {
    animation: bounce 2s infinite;
}

/* Mobile Menu */
.mobile-menu-open {
    overflow: hidden;
}

.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.mobile-link.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Keyframe Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    70% {
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* 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;
    }
    
    .hero-eyebrow,
    .hero-headline,
    .hero-subhead,
    .hero-ctas,
    .hero-trust,
    .hero-image-grid,
    .hero-floating-badge {
        opacity: 1;
        transform: none;
    }
    
    .service-card,
    .section-header,
    .about-image-container,
    .gallery-item,
    .contact-info-item {
        opacity: 1;
        transform: none;
    }
}

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

::-webkit-scrollbar-track {
    background: #0a1a32;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #4ade80;
}

/* Focus Visible for Accessibility */
*:focus-visible {
    outline: 2px solid #4ade80;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    nav,
    .scroll-indicator,
    .hero-floating-badge {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .hero-headline,
    .section-title,
    .font-serif {
        color: black;
    }
}
