/* ====== GLOBAL STYLES ====== */
:root {
    --primary: #1e3a8a;
    --primary-dark: #1e40af;
    --primary-light: #3e5fbc;
    --accent: #10b981;
    --accent-dark: #059669;
    --light: #f8fafc;
    --dark: #1f2937;
    --gray: #6b7280;
    --gray-light: #f3f4f6;
    --white: #ffffff;
    --black: #000000;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --gradient-primary: linear-gradient(135deg, var(--primary), var(--primary-dark));
    --gradient-accent: linear-gradient(135deg, var(--accent), var(--accent-dark));
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-fast: all 0.15s ease;
    --transition-slow: all 0.5s ease;
}

/* ====== HERO SECTION ====== */
.services-hero {
    position: relative;
    height: 100vh;
    min-height: 800px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.image-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
    color: var(--white);
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.8rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out 0.3s forwards;
    opacity: 0;
}

/* ====== SERVICES GRID ====== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.service-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--gray-light);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.service-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-img {
    transform: scale(1.05);
}

.service-content {
    padding: 2rem;
}

.service-title {
    font-size: 1.6rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.service-description {
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.service-features {
    margin: 1.5rem 0;
}

.service-features li {
    margin-bottom: 0.8rem;
    color: var(--dark);
    position: relative;
    padding-left: 1.8rem;
}

.service-features li::before {
    content: '\f058';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* ====== PROCESS STEPS ====== */
.process-steps {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 4rem;
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    z-index: 1;
}

.process-step {
    flex: 1;
    min-width: 180px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin: 0 auto 1.5rem;
    border: 3px solid var(--primary-light);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.process-step:hover .step-number {
    transform: scale(1.1);
    background: var(--gradient-primary);
    color: var(--white);
    border-color: var(--white);
    box-shadow: var(--shadow-lg);
}

.process-step h3 {
    font-size: 1.3rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.process-step p {
    color: var(--gray);
    line-height: 1.6;
}

/* ====== ANIMATIONS ====== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ====== RESPONSIVE DESIGN ====== */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.6rem;
    }
}

@media (max-width: 992px) {
    .services-hero {
        min-height: 700px;
    }
    
    .hero-title {
        font-size: 3.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.4rem;
    }
    
    .process-steps {
        flex-direction: column;
        align-items: center;
        gap: 3rem;
    }
    
    .process-steps::before {
        display: none;
    }
    
    .process-step {
        max-width: 400px;
        padding: 2rem;
        background: var(--white);
        border-radius: 12px;
        box-shadow: var(--shadow-sm);
    }
}

@media (max-width: 768px) {
    .services-hero {
        min-height: 600px;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .services-hero {
        min-height: 500px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .process-step {
        padding: 1.5rem;
    }
    
    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}