/* Custom utility mappings to match provided design */
:root {
    --bs-primary: #2563eb;
    --bs-primary-rgb: 37, 99, 235;
    --bs-dark: #0f172a;
    --bs-dark-rgb: 15, 23, 42;
    --bs-secondary: #64748b;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background-color: #dbeafe;
    color: #1d4ed8;
}

.hero-bg {
    background-color: #f8fafc !important;
}

.max-w-7xl {
    max-width: 1280px;
    margin: 0 auto;
}

.tracking-tight {
    letter-spacing: -0.025em;
}

.tracking-wider {
    letter-spacing: 0.05em;
}

.transition-all {
    transition: all 0.3s ease;
}

.transition-colors {
    transition: color 0.3s ease, background-color 0.3s ease;
}

/* Animations */
.fade-in-section {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(-25%);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }
    50% {
        transform: translateY(0);
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

.animate-bounce {
    animation: bounce 1s infinite;
}

/* Specific component styles */
.hero-image-container::before {
    content: '';
    display: block;
    padding-bottom: 100%;
}

@media (min-width: 768px) {
    .hero-image-container::before {
        padding-bottom: 125%;
    }
}

.bg-gradient-hero {
    background: linear-gradient(to top, rgba(15, 23, 42, 0.6), transparent);
}

.bg-blur {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.avatar-circle {
    width: 2.5rem;
    height: 2.5rem;
}

.avatar-circle-sm {
    width: 2.5rem;
    height: 2.5rem;
}

.h-fit-content {
    height: fit-content;
}

/* carousel buttons */
#carouselExampleInterval .carousel-control-prev,
#carouselExampleInterval .carousel-control-next {
    opacity: 0;
    transition: opacity 0.3s ease;
}

#carouselExampleInterval:hover .carousel-control-prev,
#carouselExampleInterval:hover .carousel-control-next {
    opacity: 0.8;
}

#carouselExampleInterval:hover .carousel-control-prev:hover,
#carouselExampleInterval:hover .carousel-control-next:hover {
    opacity: 1;
}


/* Button hover effects */
.btn-hover:hover {
    color: #3b82f6 !important;
}

.active-scale:active {
    transform: scale(0.95);
}

.primary-btn-hover:hover {
    background-color: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
    box-shadow: 0 10px 15px -3px rgba(191, 219, 254, 0.5), 0 4px 6px -4px rgba(191, 219, 254, 0.5) !important;
}

.outline-btn-hover:hover {
    background-color: #f8fafc !important;
}

/* Form Styles */
.bg-dark-subtle {
    background-color: #1e293b !important;
}

.estimate-input:focus {
    background-color: #1e293b !important;
    box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.5) !important;
}
.estimate-input::placeholder {
    color: #94a3b8;
}
/* .mb-3 {
    z-index: 3;
} */
/* Map specific styles */
.min-h-400 {
    min-height: 400px;
}

.map-container {
    background-image: radial-gradient(#2563eb 1px, transparent 0);
    background-size: 40px 40px;
}

/* Footer styles */
.social-icon {
    width: 2.5rem;
    height: 2.5rem;
    text-decoration: none;
}
.social-icon:hover {
    background-color: #2563eb !important;
}
.hover-white:hover {
    color: white !important;
}

/* Scroll to top button */
#scrollToTopBtn {
    width: 30px;
    height: 30px;
    bottom: 100px;
    right: 24px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    #scrollToTopBtn {
        bottom: 30px;
        right: 30px;
    }
}

#scrollToTopBtn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@keyframes flashText {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}

.flashing-text {
    animation: flashText 1.5s infinite ease-in-out;
    color: var(--bs-primary);
    font-weight: 600;
}
