/* =================================
   BACKGROUND FIXES - FORCEFUL OVERRIDES
   ================================= */

/* Force body background */
html, 
body,
body.keyboard-user,
body.keyboard-user > * {
    background-color: #f8f9fa !important;
    min-height: 100%;
    color: #000000;
}

/* Force Services Section */
#services,
#services.services-section,
#services .container,
#services .section-header,
#services .services-grid,
#services .service-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #f1f3f5 100%) !important;
    background-color: transparent !important;
}

/* Force Testimonials Section */
#testimonials,
#testimonials.testimonials-section,
#testimonials .container,
#testimonials .section-header,
#testimonials .testimonials-grid {
    background: linear-gradient(135deg, #f8f9fa 0%, #f1f3f5 100%) !important;
    background-color: transparent !important;
}

/* Force About Section */
#about,
#about.about-section,
#about .container,
#about .section-header,
#about .about-grid {
    background: linear-gradient(135deg, #f8f9fa 0%, #f1f3f5 100%) !important;
    background-color: transparent !important;
}

/* Common Section Styling */
#services,
#testimonials,
#about {
    padding: 8rem 0 !important;
    position: relative !important;
    overflow: hidden !important;
}

/* Force Header Styling */
header, 
.header, 
.navbar, 
.site-header,
.nav-container,
.nav-menu {
    background-color: #ffffff !important;
    background-image: none !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    border-bottom: 1px solid #e0e0e0 !important;
    position: relative !important;
    z-index: 1000 !important;
}

/* Remove any conflicting gradients or background images */
#services *,
#testimonials *,
#about * {
    background-image: none !important;
}

/* Force card backgrounds to be white */
.service-card,
.testimonial-card,
.about-card {
    background-color: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
    border-radius: 8px !important;
}

/* Card styling */
.card, .content-box, .testimonial-card, .service-card {
    background-color: #ffffff !important;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
}

/* Card hover effect */
.card:hover, .content-box:hover, .testimonial-card:hover, .service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: #000000;
}

/* Buttons */
.btn, button, [type='button'], [type='submit'] {
    background-color: #000000 !important;
    color: #ffffff !important;
    border: 1px solid #000000 !important;
    transition: all 0.3s ease;
}

.btn:hover, button:hover, [type='button']:hover, [type='submit']:hover {
    background-color: #ffffff !important;
    color: #000000 !important;
    border-color: #000000 !important;
}

/* Links */
a {
    color: #000000;
    text-decoration: underline;
}

a:hover {
    color: #333333;
    text-decoration: none;
}

/* Form elements */
input, textarea, select {
    border: 1px solid #e0e0e0 !important;
    background-color: #ffffff !important;
    color: #000000 !important;
}

input:focus, textarea:focus, select:focus {
    border-color: #000000 !important;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1) !important;
}

/* Video Container Styles */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.about-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}

/* Ensure overlay works with video */
.video-container .image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    opacity: 1;
    transition: all 0.3s ease;
}

.video-container:hover .image-overlay {
    background: rgba(0, 0, 0, 0.5);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .video-container {
        margin: 0 auto;
        max-width: 100%;
    }
}
