/* ============ PORTFOLIO-SPECIFIC STYLES ============ */
/* Extends and enhances the main styles.css */

/* ============ PORTFOLIO HERO SECTION ============ */
#portfolio-hero {
  /* Reuses homepage hero styles with slight variations */
  animation: fadeIn 0.8s ease-out;
}

/* ============ SCROLL REVEAL ANIMATIONS ============ */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ PORTFOLIO CARD ENHANCEMENTS ============ */
.portfolio-card {
  position: relative;
  overflow: hidden;
}

.portfolio-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--primary-light)
  );
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.portfolio-card:hover::before {
  transform: translateX(0);
}

/* Card image zoom effect */
.portfolio-card img {
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-card:hover img {
  transform: scale(1.08);
}

/* ============ SERVICE SECTION TITLES ============ */
#service-portfolios h3 {
  position: relative;
  padding-bottom: 1rem;
}

#service-portfolios h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--primary-gradient);
  border-radius: 2px;
}

/* ============ CASE STUDY SPECIFIC STYLES ============ */
#featured-case .stats-overlay {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 10px 30px rgba(31, 122, 140, 0.3);
  }
  50% {
    box-shadow: 0 10px 40px rgba(31, 122, 140, 0.5);
  }
}

/* ============ TRUST STRIP ICONS ============ */
#trust-strip .icon-container {
  transition: all 0.3s ease;
}

#trust-strip .icon-container:hover {
  transform: scale(1.1);
  background: var(--primary-color) !important;
}

#trust-strip .icon-container:hover i {
  color: white !important;
}

/* ============ TESTIMONIAL AVATAR GLOW ============ */
#mini-testimonials .avatar {
  position: relative;
}

#mini-testimonials .avatar::after {
  content: "";
  position: absolute;
  inset: -2px;
  background: var(--primary-gradient);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

#mini-testimonials .avatar:hover::after {
  opacity: 0.3;
}

/* ============ FINAL CTA SECTION ENHANCEMENT ============ */
#final-cta {
  position: relative;
  overflow: hidden;
}

#final-cta::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(79, 195, 214, 0.1) 0%,
    transparent 70%
  );
  animation: rotate 20s linear infinite;
}

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

/* ============ RESPONSIVE ADJUSTMENTS ============ */
@media (max-width: 768px) {
  #service-portfolios h3::after {
    width: 40px;
  }

  .portfolio-card {
    margin-bottom: 1rem;
  }

  #trust-strip .grid {
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  #portfolio-hero h1 {
    font-size: 2.5rem;
  }

  #featured-case .grid {
    gap: 2rem;
  }

  #final-cta {
    margin: 0 1rem;
    padding: 3rem 1.5rem;
  }
}

/* ============ PRINT STYLES ============ */
@media print {
  .portfolio-card,
  #final-cta {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  #trust-strip,
  #mini-testimonials {
    display: none;
  }
}
