/* Image Styles and Enhancements */

/* About Section Image */
.about-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(0, 102, 204, 0.8) 0%, 
        rgba(0, 128, 255, 0.7) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
}

.image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.image-wrapper:hover .about-main-image {
    transform: scale(1.05);
}

/* Services Hero Image */
.services-hero-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.services-hero-image {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.services-hero-image .hero-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.services-hero-image:hover .hero-image {
    transform: scale(1.02);
}

/* Works Hero Image */
.works-hero-content {
    text-align: center;
}

.works-hero-image {
    width: 100%;
    max-width: 800px;
    height: 250px;
    object-fit: cover;
    border-radius: var(--radius-xl);
    margin: 0 auto 2rem;
    display: block;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.works-hero-image:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* Careers Hero Image */
.careers-hero-image {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 2rem;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.careers-hero-image .hero-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.careers-hero-image:hover .hero-image {
    transform: scale(1.03);
}

/* Case Study Images */
.case-study-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin: 1rem 0;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.case-study-image:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

/* Lazy Loading Effect */
.hero-image,
.about-main-image,
.case-study-image {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.hero-image.loaded,
.about-main-image.loaded,
.case-study-image.loaded {
    opacity: 1;
}

/* Image Skeleton Loader */
.image-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius-md);
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Responsive Image Adjustments */
@media (max-width: 992px) {
    .services-hero-image,
    .works-hero-content,
    .careers-hero-image {
        max-width: 100%;
        margin: 0 auto;
    }
    
    .services-hero-image .hero-image,
    .works-hero-image,
    .careers-hero-image .hero-image {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .services-hero-image,
    .works-hero-content,
    .careers-hero-image {
        padding: 0 1rem;
    }
    
    .services-hero-image .hero-image,
    .works-hero-image,
    .careers-hero-image .hero-image {
        height: 200px;
        border-radius: var(--radius-lg);
    }
    
    .about-main-image {
        height: 250px;
    }
    
    .image-overlay {
        opacity: 0.95;
    }
    
    .case-study-image {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .services-hero-image .hero-image,
    .works-hero-image,
    .careers-hero-image .hero-image {
        height: 180px;
        border-radius: var(--radius-md);
    }
    
    .about-main-image {
        height: 200px;
    }
    
    .case-study-image {
        height: 120px;
    }
}

@media (max-width: 320px) {
    .services-hero-image .hero-image,
    .works-hero-image,
    .careers-hero-image .hero-image {
        height: 150px;
    }
    
    .about-main-image {
        height: 180px;
    }
    
    .case-study-image {
        height: 100px;
    }
}

/* Image Performance Optimizations */
.hero-image,
.about-main-image,
.works-hero-image,
.case-study-image {
    image-rendering: crisp-edges;
    image-rendering: -webkit-optimize-contrast;
}

/* Parallax Effect for Hero Images */
@media (min-width: 1024px) {
    .services-hero-image,
    .works-hero-content,
    .careers-hero-image {
        transform: translateZ(0);
        will-change: transform;
    }
}