/* =========================================================
   SERVICE PORTFOLIO PAGES (shared)
   Used by: uiux-design-portfolio.html, web-designing-portfolio.html,
   digital-marketing-portfolio.html, video-creation-portfolio.html.

   Same proven system as assets/css/graphic-design-portfolio.css,
   under a neutral filename since these classes aren't specific to
   any one service. Prefixed "svcp-" so nothing here collides with
   shared theme classes in assets/css/style.css.
   ========================================================= */

.svcp-section {
  padding: 60px 0;
}

.svcp-section.svcp-alt {
  background: #f2faf6;
}

.svcp-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.svcp-heading {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.svcp-heading h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  color: #002753;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@media only screen and (max-width: 767px) {
  .svcp-heading h2 {
    font-size: 19px;
  }
}

.svcp-accent {
  flex: 1;
  height: 3px;
  min-width: 40px;
  max-width: 220px;
  border-radius: 3px;
  background: linear-gradient(90deg, #00A481 0%, rgba(0, 164, 129, 0.12) 100%);
}

/* Grid */
.svcp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

@media (max-width: 992px) {
  .svcp-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .svcp-grid {
    grid-template-columns: 1fr;
  }
}

/* Card */
.svcp-card {
  position: relative;
  display: block;
  background: #ffffff;
  border: 1px solid #e6ecf1;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0, 39, 83, 0.06);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.svcp-card:hover,
.svcp-card:focus-visible {
  box-shadow: 0 12px 30px rgba(0, 39, 83, 0.14);
  transform: translateY(-4px);
  border-color: rgba(0, 164, 129, 0.35);
  outline: none;
}

.svcp-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.svcp-card:hover img,
.svcp-card:focus-visible img {
  transform: scale(1.06);
}

.svcp-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 39, 83, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.svcp-card:hover .svcp-overlay,
.svcp-card:focus-visible .svcp-overlay {
  opacity: 1;
}

.svcp-overlay svg {
  width: 38px;
  height: 38px;
  color: #fff;
  transform: scale(0.85);
  transition: transform 0.25s ease;
}

.svcp-card:hover .svcp-overlay svg,
.svcp-card:focus-visible .svcp-overlay svg {
  transform: scale(1);
}

/* Placeholder badge — shown on every image until real work is
   swapped in, so it's obvious these are stand-ins, not finished
   portfolio pieces. Remove the span in the HTML once real images
   are in place. */
.svcp-placeholder-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 39, 83, 0.75);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 20px;
  z-index: 2;
}

/* =========================================================
   SERVICE ROWS (matches the "Graphic Design Packages" section
   on graphic-design-portfolio.html exactly — alternating
   text + rotating image carousel per category, not a static
   grid). This is the primary layout for each category on
   uiux-design-portfolio.html, web-designing-portfolio.html,
   digital-marketing-portfolio.html and video-creation-portfolio.html.
   ========================================================= */

.svcp-pkg-intro {
  max-width: 640px;
  margin: -10px 0 46px;
  font-size: 14.5px;
  line-height: 1.75;
  color: #52565b;
}

.svcp-pkg-row {
  display: flex;
  align-items: center;
  gap: 50px;
  padding: 46px 0;
  border-top: 1px solid #e6ecf1;
}

.svcp-pkg-row:first-of-type {
  border-top: none;
  padding-top: 0;
}

.svcp-pkg-row.reverse {
  flex-direction: row-reverse;
}

.svcp-pkg-text,
.svcp-pkg-carousel {
  flex: 1 1 0;
  min-width: 0;
}

.svcp-pkg-eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  font-size: 11px;
  font-weight: 700;
  color: #267544;
  background: #e7f8ee;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.svcp-pkg-text h3 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 800;
  color: #002753;
}

.svcp-pkg-sub {
  margin: 0 0 16px;
  font-size: 14.5px;
  font-weight: 600;
  color: #267544;
}

.svcp-pkg-accent {
  display: block;
  width: 44px;
  height: 3px;
  background: #00A481;
  border-radius: 2px;
  margin-bottom: 18px;
}

.svcp-pkg-text p {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.75;
  color: #52565b;
}

.svcp-pkg-text .btn {
  margin-top: 8px;
}

/* --- Image carousel (per row) --- */
.carousel-frame {
  position: relative;
  border-radius: 12px;
  border: 1px solid #e6ecf1;
  box-shadow: 0 14px 30px rgba(0, 39, 83, 0.08);
  overflow: hidden;
}

.carousel-viewport {
  position: relative;
  overflow: hidden;
  touch-action: pan-y;
}

.carousel-track {
  display: flex;
  transition: transform 0.6s ease;
}

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
}

.image-trigger {
  position: relative;
  display: block;
  width: 100%;
}

.image-trigger img {
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  max-height: 420px;
  object-fit: cover;
}

/* Video slides (video-creation-portfolio.html) — native controls,
   no lightbox needed since the video plays inline. */
.carousel-slide video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  background: #000;
}

/* Portrait reels (1080x1350, 4:5) — shown uncropped in a narrower,
   centred frame instead of the landscape 16:10 box. */
.svcp-pkg-carousel.portrait .carousel-frame,
.svcp-pkg-carousel.portrait .carousel-dots {
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}

.svcp-pkg-carousel.portrait .carousel-slide video {
  aspect-ratio: 4 / 5;
  max-height: none;
  object-fit: contain;
}

.video-sample-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 39, 83, 0.75);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 20px;
  z-index: 2;
  pointer-events: none;
}

.image-zoom-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 39, 83, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease, background 0.25s ease;
}

.image-trigger:hover .image-zoom-overlay,
.image-trigger:focus-visible .image-zoom-overlay {
  opacity: 1;
  background: rgba(0, 39, 83, 0.4);
}

.image-zoom-overlay svg {
  width: 32px;
  height: 32px;
  color: #fff;
  transform: scale(0.85);
  transition: transform 0.25s ease;
}

.image-trigger:hover .image-zoom-overlay svg { transform: scale(1); }

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  color: #002753;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease, color 0.2s ease;
  z-index: 2;
}

.carousel-frame:hover .carousel-arrow { opacity: 1; }

.carousel-arrow:hover { background: #00A481; color: #fff; }
.carousel-arrow.prev { left: 10px; }
.carousel-arrow.next { right: 10px; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 14px;
}

.carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d5dbde;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.carousel-dot.active {
  background: #00A481;
  transform: scale(1.25);
}

@media (max-width: 860px) {
  .svcp-pkg-row,
  .svcp-pkg-row.reverse {
    flex-direction: column;
    gap: 24px;
    padding: 36px 0;
  }

  .image-trigger img { max-height: 320px; }
  .carousel-slide video { max-height: 320px; }

  .svcp-pkg-carousel.portrait .carousel-frame,
  .svcp-pkg-carousel.portrait .carousel-dots { max-width: 300px; }
  .svcp-pkg-carousel.portrait .carousel-slide video { max-height: none; }
}

/* =========================================================
   FEATURE GRID
   Used by domain-hosting-portfolio.html, which has no category
   list to build an image gallery from (it's a single hosting
   offer, not six categorised services) — a feature highlight
   grid fits that content better than a forced image gallery.
   ========================================================= */

.svcp-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

@media (max-width: 992px) {
  .svcp-feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .svcp-feature-grid {
    grid-template-columns: 1fr;
  }
}

.svcp-feature-card {
  background: #ffffff;
  border: 1px solid #e6ecf1;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0, 39, 83, 0.06);
  padding: 30px 26px;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.svcp-feature-card:hover {
  box-shadow: 0 12px 30px rgba(0, 39, 83, 0.14);
  transform: translateY(-4px);
  border-color: rgba(0, 164, 129, 0.35);
}

.svcp-feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #e7f8ee;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.svcp-feature-icon svg {
  width: 24px;
  height: 24px;
  color: #00A481;
}

.svcp-feature-card h4 {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 700;
  color: #002753;
}

.svcp-feature-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #52565b;
}
