/* Custom styles for Spotless Cleaning Services */

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

/* Navigation styles */
nav {
    transition: all 0.3s ease-in-out;
    top: 0;
    left: 0;
    right: 0;
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

nav .bg-blue-600 {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Navigation hover effects */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: #3b82f6;
    transition: all 0.3s ease-in-out;
    transform: translateX(-50%);
}

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

/* Hero section animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 1s ease-out forwards;
}

.animate-fade-in-delay {
    animation: fadeIn 1s ease-out 0.3s forwards;
    opacity: 0;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 1s ease-out 0.6s forwards;
    opacity: 0;
}

/* Hero Section Animations */
@keyframes blob {
    0% {
        transform: translate(0px, 0px) scale(1);
    }
    33% {
        transform: translate(30px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
    100% {
        transform: translate(0px, 0px) scale(1);
    }
}

@keyframes fade-in-up {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-blob {
    animation: blob 7s infinite;
}

.animate-fade-in-up {
    animation: fade-in-up 0.6s ease-out forwards;
}

.animation-delay-200 {
    animation-delay: 200ms;
}

.animation-delay-400 {
    animation-delay: 400ms;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

/* Hero Section Hover Effects */
.hero-button {
    transition: all 0.3s ease;
}

.hero-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Custom form styles */
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    border: 1px solid #e2e8f0;
    padding: 0.5rem;
    width: 100%;
    border-radius: 0.375rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Custom button hover effect */
button:hover {
    transform: translateY(-1px);
    transition: transform 0.2s ease-in-out;
}

/* Custom link hover effect */
a {
    transition: color 0.2s ease-in-out;
}

/* Custom card hover effect */
.shadow-lg {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.shadow-lg:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Custom map container */
#map {
    border-radius: 0.5rem;
    overflow: hidden;
}

/* Mobile menu animation */
.mobile-menu {
    transition: opacity 0.2s ease-in-out;
}

.mobile-menu.hidden {
    opacity: 0;
    pointer-events: none;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #2563eb;
}

/* Hero section overlay */
.hero-overlay {
    background: linear-gradient(rgba(59, 130, 246, 0.8), rgba(59, 130, 246, 0.8));
}

/* Custom focus styles */
*:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

/* Custom selection color */
::selection {
    background-color: #3b82f6;
    color: white;
}

/* Adjust content padding to account for fixed navigation */
body {
    padding-top: 120px; /* Adjust this value based on the combined height of the call to action bar and navigation */
} 