/* Services Showcase - Premium Zigzag Layout */

.services-showcase {
  background: #0a0a0a;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.services-showcase .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Service Card Base */
.service-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 80px;
  position: relative;
}

.service-card:last-child {
  margin-bottom: 0;
}

/* Alternating Layout */
.service-card--left {
  grid-template-areas: "image content";
}

.service-card--left .service-card__image {
  grid-area: image;
}

.service-card--left .service-card__content {
  grid-area: content;
  border-left: 4px solid #FDB714;
  padding-left: 0;
}

.service-card--right {
  grid-template-areas: "content image";
}

.service-card--right .service-card__image {
  grid-area: image;
}

.service-card--right .service-card__content {
  grid-area: content;
  border-right: 4px solid #FDB714;
  padding-right: 0;
}

/* Card Image */
.service-card__image {
  position: relative;
  width: 100%;
  height: 400px;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.service-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-card__image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Card Content - Premium Glassmorphic Style */
.service-card__content {
  background: rgba(26, 26, 26, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 40px;
  position: relative;
  box-shadow: 
    0 0 30px rgba(253, 183, 20, 0.15),
    0 8px 32px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
}

.service-card__content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 12px;
  padding: 2px;
  background: linear-gradient(135deg, #FDB714 0%, rgba(253, 183, 20, 0.3) 100%);
  mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.service-card:hover .service-card__content::before {
  opacity: 1;
}

/* Card Title */
.service-card__title {
  font-size: 32px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 16px 0;
  letter-spacing: -0.5px;
}

/* Card Description */
.service-card__description {
  font-size: 18px;
  line-height: 1.6;
  color: #e0e0e0;
  margin: 0 0 24px 0;
  opacity: 0.9;
}

/* CTA Button */
.service-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FDB714;
  color: #000000;
  font-size: 16px;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(253, 183, 20, 0.3);
}

.service-card__cta::after {
  content: '→';
  transition: transform 0.3s ease;
}

.service-card__cta:hover {
  background: #ffca3a;
  box-shadow: 0 6px 25px rgba(253, 183, 20, 0.5);
  transform: translateY(-2px);
}

.service-card__cta:hover::after {
  transform: translateX(4px);
}

/* Hover Effects */
.service-card:hover .service-card__content {
  box-shadow: 
    0 0 40px rgba(253, 183, 20, 0.25),
    0 12px 40px rgba(0, 0, 0, 0.5);
  transform: translateY(-4px);
}

.service-card:hover .service-card__image {
  transform: scale(1.02);
}

/* Responsive Design */
@media (max-width: 968px) {
  .service-card {
    gap: 30px;
    margin-bottom: 60px;
  }

  .service-card__content {
    padding: 32px;
  }

  .service-card__title {
    font-size: 28px;
  }

  .service-card__description {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .services-showcase {
    padding: 60px 0;
  }

  .service-card,
  .service-card--left,
  .service-card--right {
    grid-template-columns: 1fr;
    grid-template-areas: 
      "image"
      "content";
    gap: 24px;
    margin-bottom: 50px;
  }

  .service-card--left .service-card__content,
  .service-card--right .service-card__content {
    border-left: 4px solid #FDB714;
    border-right: none;
    padding-left: 0;
    padding-right: 0;
  }

  .service-card__image {
    height: 300px;
  }

  .service-card__content {
    padding: 28px;
  }

  .service-card__title {
    font-size: 24px;
  }

  .service-card__description {
    font-size: 15px;
  }

  .service-card__cta {
    padding: 10px 24px;
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .services-showcase {
    padding: 40px 0;
  }

  .service-card {
    margin-bottom: 40px;
  }

  .service-card__image {
    height: 250px;
  }

  .service-card__content {
    padding: 24px;
  }

  .service-card__title {
    font-size: 22px;
  }

  .service-card__description {
    font-size: 14px;
  }
}

/* Optional: Add subtle animation on scroll */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.service-card {
  animation: fadeInUp 0.6s ease-out;
  animation-fill-mode: both;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }

/* === Fix padding next to yellow border on all cards === */

/* Desktop & tablet */
.service-card--left .service-card__content,
.service-card--right .service-card__content {
  padding-left: 40px;
  padding-right: 40px;
}

/* Mobile: a bit tighter but never 0 */
@media (max-width: 768px) {
  .service-card--left .service-card__content,
  .service-card--right .service-card__content {
    padding-left: 24px;
    padding-right: 24px;
  }
}
/* =========================================================
   Service detail layout (individual service reading page)
   ========================================================= */

.service-detail {
  background: #020306;
  padding-top: 160px;  /* keeps content clear of fixed header */
  padding-bottom: 80px;
}

.service-detail .container {
  max-width: 1100px;
}

/* HERO WRAPPER */
.service-detail__hero-wrapper {
  margin-bottom: 48px;
}

/* HERO CARD */
.service-detail__hero {
  position: relative;
  min-height: 320px;
  border-radius: 24px;
  overflow: hidden;
  background: radial-gradient(circle at 0 0, #202020 0, #050505 55%, #020306 100%);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.8),
    0 0 40px rgba(255, 209, 0, 0.12);
}

/* Background image on the right, similar to reference */
.service-detail__hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center right;
  transform: scale(1.03);
  filter: saturate(1.1) contrast(1.1);
}

/* Dark gradient overlay so text stays readable */
.service-detail__hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.6) 40%, rgba(0, 0, 0, 0.15) 70%, rgba(0, 0, 0, 0) 100%);
}

/* Hero content (left side) */
.service-detail__hero-content {
  position: relative;
  z-index: 2;
  padding: 40px 42px;
  max-width: 540px;
}

/* Eyebrow / small label above title */
.service-detail__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 10px;
}

/* Main hero title */
.service-detail__title {
  font-size: clamp(2rem, 3vw, 2.75rem);
  line-height: 1.2;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 16px 0;
}

/* Subtitle / short description */
.service-detail__subtitle {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(230, 232, 238, 0.9);
  margin: 0 0 24px 0;
}

/* CTA area */
.service-detail__cta .cta-btn {
  border-radius: 50px;
  padding: 12px 28px;
  font-size: 0.95rem;
}

/* MAIN BODY (Markdown) */
.service-detail__body {
  max-width: 820px;
  margin: 0 auto;
  font-size: 1.02rem;
  line-height: 1.75;
  color: #e2e4ea;
  text-align: center;
  padding-top: 100px;
}

/* Headings inside the article */
.service-detail__body h1,
.service-detail__body h2,
.service-detail__body h3 {
  margin-top: 2.3rem;
  margin-bottom: 1rem;
  font-weight: 700;
  color: #ffffff;
}

.service-detail__body h2 {
  font-size: 1.6rem;
}

.service-detail__body h3 {
  font-size: 1.3rem;
}

/* Paragraphs & lists */
.service-detail__body p {
  margin-bottom: 1rem;
}

.service-detail__body ul {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.service-detail__body li {
  margin-bottom: 0.25rem;
}

/* Emphasis on strong text */
.service-detail__body strong {
  color: #ffffff;
}

/* Horizontal rules for section breaks */
.service-detail__body hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 2.5rem 0;
}

/* Links inside content */
.service-detail__body a {
  color: var(--primary-color);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.service-detail__body a:hover {
  color: #ffd33b;
}

/* ---------------------------------------------------------
   Responsive tweaks
   --------------------------------------------------------- */

@media (max-width: 991px) {
  .service-detail {
    padding-top: 150px;
    padding-bottom: 60px;
  }

  .service-detail__hero-content {
    padding: 32px 26px;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .service-detail {
    padding-top: 140px;
  }

  .service-detail__hero {
    border-radius: 20px;
    min-height: 260px;
  }

  .service-detail__hero-overlay {
    background:
      linear-gradient(150deg, rgba(0, 0, 0, 0.9) 10%, rgba(0, 0, 0, 0.7) 40%, rgba(0, 0, 0, 0.4) 70%, rgba(0, 0, 0, 0.1) 100%);
  }

  .service-detail__title {
    font-size: 1.9rem;
  }

  .service-detail__subtitle {
    font-size: 0.95rem;
  }

  .service-detail__body {
    padding: 0 24px;
  }
}

@media (max-width: 576px) {
  .service-detail__hero-content {
    padding: 26px 20px;
  }

  .service-detail__eyebrow {
    font-size: 0.72rem;
  }

  .service-detail__title {
    font-size: 1.7rem;
  }

  .service-detail__subtitle {
    font-size: 0.9rem;
  }
}
