/* Advanced Background Designs */

/* Body background with subtle texture */
body {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f1f3f5 100%);
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(79, 195, 247, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 107, 107, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Decorative shapes */
.decorative-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.shape {
    position: absolute;
    opacity: 0.05;
}

.shape-1 {
    top: 10%;
    left: 5%;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #4FC3F7, #FF6B6B);
    border-radius: 50%;
    filter: blur(80px);
    animation: float 20s infinite ease-in-out;
}

.shape-2 {
    bottom: 10%;
    right: 5%;
    width: 400px;
    height: 400px;
    background: linear-gradient(225deg, #FF6B6B, #4FC3F7);
    border-radius: 50%;
    filter: blur(100px);
    animation: float 25s infinite ease-in-out reverse;
}

.shape-3 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(79, 195, 247, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    animation: pulse 15s infinite ease-in-out;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    33% {
        transform: translateY(-30px) translateX(30px);
    }
    66% {
        transform: translateY(30px) translateX(-30px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.05;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.08;
    }
}

/* Section backgrounds with patterns */
.services-overview {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
}

.services-overview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(79, 195, 247, 0.02) 35px, rgba(79, 195, 247, 0.02) 70px);
    pointer-events: none;
}

.why-choose {
    background: linear-gradient(135deg, #f1f3f5 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.why-choose::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(255, 107, 107, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.statistics {
    background: var(--gradient);
    position: relative;
    overflow: hidden;
}

.statistics::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.service-types {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
}

.service-types::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(to top, rgba(79, 195, 247, 0.03), transparent);
    pointer-events: none;
}

.benefits {
    background: linear-gradient(135deg, #ffffff 0%, #f1f3f5 100%);
    position: relative;
}

.benefits::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(30deg, transparent 40%, rgba(255, 107, 107, 0.02) 40%, rgba(255, 107, 107, 0.02) 60%, transparent 60%);
    background-size: 100px 100px;
    pointer-events: none;
}

/* CTA section with animated background */
.cta {
    background: var(--dark-color);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(227, 30, 36, 0.1) 0%, transparent 50%);
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Page header backgrounds */
.page-header {
    background: var(--gradient);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.1));
    pointer-events: none;
}

/* Card backgrounds with subtle gradients */
.service-card,
.type-card,
.benefit-card {
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    position: relative;
}

.service-card::before,
.type-card::before,
.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top left, rgba(79, 195, 247, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 16px;
    pointer-events: none;
}

.service-card:hover::before,
.type-card:hover::before,
.benefit-card:hover::before {
    opacity: 1;
}

/* About page specific backgrounds */
.about-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
}

.core-values {
    background: linear-gradient(135deg, #f1f3f5 0%, #ffffff 100%);
    position: relative;
}

.core-values::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(90deg, transparent, transparent 50px, rgba(255, 107, 107, 0.02) 50px, rgba(255, 107, 107, 0.02) 100px);
    pointer-events: none;
}

.strengths {
    background: linear-gradient(135deg, #ffffff 0%, #f1f3f5 100%);
}

.team {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

/* Contact page backgrounds */
.contact-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.map-section {
    background: linear-gradient(135deg, #f1f3f5 0%, #ffffff 100%);
}

.faq-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
}

.faq-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(227, 30, 36, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

/* Form container enhanced background */
.form-container {
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%) !important;
    position: relative;
}

.form-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient);
    border-radius: 16px;
    z-index: -1;
    opacity: 0.1;
}

/* Hero section enhanced */
.hero::before {
    background: linear-gradient(135deg, rgba(79, 195, 247, 0.95) 0%, rgba(255, 107, 107, 0.95) 100%) !important;
}

/* Waves decoration */
.section-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    overflow: hidden;
}

.section-wave svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
}

/* Dots pattern */
.dots-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(227, 30, 36, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.3;
    pointer-events: none;
}

/* Grid pattern */
.grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(227, 30, 36, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(227, 30, 36, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

/* Ensure content is above backgrounds */
.container {
    position: relative;
    z-index: 1;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .shape,
    .cta::before {
        animation: none;
    }
}