/* ========================================
   Background Image Enhancements
======================================== */

/* About Section - Subtle Background */
.about {
    position: relative;
    background: linear-gradient(135deg, 
                rgba(249, 250, 251, 0.95) 0%, 
                rgba(243, 244, 246, 0.98) 100%);
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/office-building.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.05;
    z-index: 0;
    filter: grayscale(100%);
}

.about > * {
    position: relative;
    z-index: 1;
}

/* Services Section - Gradient Overlay */
.services {
    position: relative;
    background: var(--bg-white);
}

.services::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, 
                rgba(10, 71, 159, 0.02) 0%, 
                transparent 50%),
                radial-gradient(circle at bottom left, 
                rgba(76, 180, 76, 0.02) 0%, 
                transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.services > * {
    position: relative;
    z-index: 1;
}

/* Contact Section - Professional Background */
.contact {
    position: relative;
    background: linear-gradient(135deg, 
                rgba(243, 244, 246, 0.98) 0%, 
                rgba(249, 250, 251, 0.95) 100%);
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/consulting.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.04;
    z-index: 0;
    filter: blur(3px) grayscale(80%);
}

.contact > * {
    position: relative;
    z-index: 1;
}

/* Testimonials Section - Soft Background Pattern */
.testimonials {
    position: relative;
    background: var(--bg-white);
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(45deg, 
            transparent, 
            transparent 35px, 
            rgba(10, 71, 159, 0.01) 35px, 
            rgba(10, 71, 159, 0.01) 70px);
    z-index: 0;
}

.testimonials > * {
    position: relative;
    z-index: 1;
}

/* Team Section - Clean with Accent */
.team {
    position: relative;
    background: linear-gradient(135deg, 
                var(--bg-light) 0%, 
                var(--bg-white) 100%);
}

.team::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, 
                rgba(76, 180, 76, 0.03) 0%, 
                transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.team > * {
    position: relative;
    z-index: 1;
}

/* Footer - Professional Gradient Background */
.footer {
    background: linear-gradient(135deg, 
                #0f172a 0%, 
                #0A479F 50%, 
                #083d8a 100%);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/office-building.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.03;
    filter: grayscale(100%);
}

/* Section Title Enhancements */
.section-title::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, 
                var(--primary-color) 0%, 
                var(--secondary-color) 100%);
    border-radius: 2px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, 
                transparent 0%, 
                var(--primary-color) 20%, 
                var(--secondary-color) 80%, 
                transparent 100%);
    border-radius: 2px;
}

/* Decorative Background Elements */
.section-bg-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 0;
}

.section-bg-decoration::before,
.section-bg-decoration::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.1;
}

.section-bg-decoration::before {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    top: -250px;
    right: -250px;
    animation: float 20s infinite ease-in-out;
}

.section-bg-decoration::after {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--secondary-color) 0%, transparent 70%);
    bottom: -200px;
    left: -200px;
    animation: float 25s infinite ease-in-out reverse;
}

/* Parallax Effect for Background Images */
@media (min-width: 768px) {
    .hero {
        background-attachment: fixed;
    }
    
    .about::before,
    .contact::before,
    .footer::before {
        transform: translateZ(0);
        will-change: transform;
    }
}

/* Loading State for Images */
.about::before,
.contact::before,
.footer::before {
    animation: fadeIn 1s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 0.05;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .about::before,
    .contact::before,
    .footer::before {
        opacity: 0.1;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .hero {
        background-attachment: scroll;
    }
    
    .section-bg-decoration::before,
    .section-bg-decoration::after {
        animation: none;
    }
}
