/* Power4All — performance & responsive images */

/* Content images only — do NOT apply to header avatars or logo */
.converter-image,
.content-section img,
.feature-box img,
.hero-section img,
main img:not(.site-logo) {
  display: block;
  max-width: 100%;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

/* Header login/profile avatar — always small */
.account-avatar {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  max-width: 36px;
  max-height: 36px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.85);
  background: linear-gradient(135deg, #4f8cff, #7c5cff);
  box-shadow: 0 4px 12px rgba(5, 12, 28, 0.18);
}

.account-avatar img {
  display: block;
  width: 36px !important;
  height: 36px !important;
  max-width: 36px !important;
  max-height: 36px !important;
  min-width: 0;
  object-fit: cover;
  border-radius: 50%;
}

.account-avatar i {
  font-size: 1.25rem;
  line-height: 1;
  color: #fff;
}

.hero-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.site-logo {
  width: auto;
  max-width: 200px;
  height: auto;
  max-height: 65px;
  object-fit: contain;
}

/* Below-fold sections — faster mobile paint */
#about,
#Expertise,
#consultancy,
#reviews,
#contact,
.footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 600px;
}

@media (max-width: 767px) {
  .site-logo {
    max-width: 140px;
    max-height: 45px;
  }

  .account-avatar,
  .account-avatar img {
    width: 32px !important;
    height: 32px !important;
    max-width: 32px !important;
    max-height: 32px !important;
    min-width: 32px;
    min-height: 32px;
  }

  .account-avatar i {
    font-size: 1.1rem;
  }

  .converter-image,
  .content-section img {
    border-radius: 6px;
  }

  /* Smaller hero on mobile — less paint area */
  .hero-clear-section {
    min-height: 380px;
  }

  .hero-bg {
    background-size: cover;
    background-position: center top;
  }
}

@media (max-width: 480px) {
  .site-logo {
    max-width: 120px;
    max-height: 40px;
  }
}
