/* Modern Image and Visual Improvements */

/* Image Optimization */
img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
}

/* Hero Background Images */
.hero-bg-modern {
  background: linear-gradient(135deg, rgba(30, 60, 114, 0.9) 0%, rgba(42, 82, 152, 0.9) 100%),
              url('https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* Service Icons */
.service-icon-svg {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 20px rgba(30, 60, 114, 0.3);
  transition: all 0.3s ease;
}

.service-icon-svg:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 12px 25px rgba(30, 60, 114, 0.4);
}

/* Card Images */
.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  transition: all 0.3s ease;
}

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

/* Gallery Images */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: all 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(30, 60, 114, 0.8) 0%, rgba(42, 82, 152, 0.8) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay h3 {
  color: white;
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
  margin: 0;
}

/* Partner Logos */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  align-items: center;
  justify-items: center;
  margin: 3rem 0;
}

.partner-logo {
  background: white;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  width: 100%;
  max-width: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: grayscale(100%);
  opacity: 0.7;
}

.partner-logo:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  filter: grayscale(0%);
  opacity: 1;
}

.partner-logo img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

/* Team Photos */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.team-member {
  text-align: center;
  background: white;
  padding: 2rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.team-member:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.team-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.5rem;
  border: 4px solid var(--primary-color);
  box-shadow: 0 8px 20px rgba(30, 60, 114, 0.2);
}

/* Testimonial Images */
.testimonial-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--secondary-color);
  margin-right: 1rem;
}

/* Loading Images */
.lazy-load {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lazy-load.loaded {
  opacity: 1;
}

/* Image Placeholders */
.image-placeholder {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  font-size: 3rem;
  min-height: 200px;
}

/* Responsive Images */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .team-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-bg-modern {
    background-attachment: scroll;
  }
}

/* Image Filters */
.image-filter-blur {
  filter: blur(5px);
}

.image-filter-brightness {
  filter: brightness(1.2);
}

.image-filter-contrast {
  filter: contrast(1.1);
}

.image-filter-saturate {
  filter: saturate(1.2);
}

/* Image Overlays */
.image-overlay-dark {
  position: relative;
}

.image-overlay-dark::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  border-radius: var(--radius-lg);
  z-index: 1;
}

.image-overlay-dark > * {
  position: relative;
  z-index: 2;
}

/* Image Captions */
.image-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 1rem;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  font-size: 0.9rem;
  text-align: center;
}




