/* Custom Styles for No Fuss Carpet Cleaning */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
}

/* Selection color */
::selection {
    background-color: #C06C54;
    color: white;
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fadeUp 0.8s ease forwards;
}

/* Hero animations */
.hero-eyebrow {
    animation-delay: 0s;
}

.hero-title {
    animation-delay: 0.1s;
}

.hero-subtitle {
    animation-delay: 0.2s;
}

/* Scroll-triggered animations */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Navbar styles */
#navbar {
    background: transparent;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(250, 246, 242, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(230, 213, 195, 0.5);
}

/* Mobile menu */
.mobile-link {
    transition: transform 0.3s ease;
}

.mobile-link:hover {
    transform: translateX(8px);
}

/* Service cards */
.service-card {
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
}

/* Form styles */
select option {
    background-color: #2C2C2C;
    color: white;
}

/* Smooth transitions for all interactive elements */
a, button {
    transition: all 0.3s ease;
}

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

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

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

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

/* Responsive adjustments */
@media (max-width: 767px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-title br {
        display: none;
    }
    
    .hero-title::after {
        content: ".";
    }
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 4.5rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 5rem;
    }
}

/* Print styles */
@media print {
    #navbar,
    #contact-form,
    .scroll-indicator {
        display: none;
    }
}
