/* Bootstrap-First Custom CSS for NCFD Floors */

:root {
    --bs-primary: #d22f25;
    --bs-primary-rgb: 210, 47, 37;
    --ncfd-dark: #161616;
}

/* Fixed navbar compensation - only for hero sections without background images */
.hero-section:not([style*="background-image"]) {
    background: linear-gradient(135deg, var(--ncfd-dark) 0%, #2c2c2c 100%);
    padding-top: 80px;
}

.about-hero {
    background: linear-gradient(135deg, var(--ncfd-dark) 0%, #2c2c2c 100%);
    padding: 120px 0 80px;
}

/* Brand gradient for service icons */
.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--bs-primary) 0%, #e74c3c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: white;
    font-size: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

/* Image placeholders (temporary) */
.hero-image-placeholder,
.feature-image-placeholder {
    background: linear-gradient(135deg, var(--bs-primary) 0%, #e74c3c 100%);
    color: white;
    text-align: center;
    padding: 4rem 2rem;
    margin-top: 2rem;
}

.hero-image-placeholder i,
.feature-image-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
}

/* Form branding */
.form-control:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.25);
}

/* About page images - natural sizing, no forced dimensions */
.about-image {
    width: 100%;
    height: auto;
}

/* Button Styles - Professional Animation Enhancement */
.btn-primary {
    padding: 12px 30px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(var(--bs-primary-rgb), 0.3);
}

.btn-outline-primary {
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-outline-primary:hover {
    transform: translateY(-2px);
}

.btn-outline-light {
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-outline-light:hover {
    transform: translateY(-2px);
}

.btn-danger {
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(var(--bs-primary-rgb), 0.3);
}

/* Service Icon Animations */
.service-icon:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(var(--bs-primary-rgb), 0.3);
    background: linear-gradient(135deg, #c82333 0%, var(--bs-primary) 100%);
}

/* Card Animations */
.card {
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: none;
}

.card:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

/* Contact Section Hover Effects */
#contact .bg-light {
    transition: all 0.3s ease;
}

#contact .bg-light:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

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

/* Animation for elements coming into view */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card, .service-icon {
    animation: fadeInUp 0.6s ease-out;
}

/* General button hover enhancement */
.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

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

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

::-webkit-scrollbar-thumb {
    background-color: var(--bs-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #c82333;
}

/* Enhanced shadows for depth */
.shadow-lg {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding-top: 100px;
    }
    
    .hero-image-placeholder,
    .feature-image-placeholder {
        margin-top: 1.5rem;
        padding: 2.5rem 1.5rem;
    }
    
    .hero-image-placeholder i,
    .feature-image-placeholder i {
        font-size: 2.5rem;
    }
}
