/*--------------------------------------
  Global Resets & Variables
--------------------------------------*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #141414;
  --gold-primary: #d4af37;
  --gold-light: #f5deb3;
  --gold-dark: #b8860b;
  --text-light: #f8f8f8;
  --text-muted: #a0a0a0;
  --animation-speed: 0.3s;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-light);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

/* Decorative animated gradients */
body::before,
body::after {
  content: '';
  position: fixed;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(
    circle,
    rgba(212, 175, 55, 0.08) 0%,
    transparent 70%
  );
  z-index: -1;
  animation: pulse 15s infinite alternate;
}
body::before { top: 0; right: 0; }
body::after {
  bottom: 0; left: 0;
  animation-direction: alternate-reverse;
}

@keyframes pulse {
  0% { opacity: 0.5; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.05); }
}

/*--------------------------------------
  Header Section
--------------------------------------*/
.services-header {
  text-align: center;
  padding: 120px 30px;
  opacity: 0;
  animation: fadeIn 0.8s ease-out 0.2s forwards;
}

.services-header .services-main-title {
  font-size: 42px;
  color: var(--gold-primary);
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}
.services-header .services-main-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--gold-primary),
    transparent
  );
}

.services-header p {
  max-width: 700px;
  margin: 25px auto 0;
  color: var(--text-muted);
  font-size: 16px;
}

/*--------------------------------------
  Services Grid & Last‑Row Container
--------------------------------------*/
/* Mobile‑first: single column */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 30px;
  margin-bottom: 60px;
}

/* Wrap last two cards in a full‑width flex row */
.last-row-container {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px; /* mobile gap */
}
/* Remove auto‑margins inside the last row so flex gap takes effect */
.last-row-container .service-card {
  margin: 0;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .last-row-container {
    flex-direction: row;
    justify-content: center;
    gap: 20px; /* reduced gap for desktop */
  }
}

/* Desktop: three columns */
@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/*--------------------------------------
  Service Card
--------------------------------------*/
.service-card {
  width: 100%;
  max-width: 350px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-secondary);
  border-radius: 16px;
  overflow: visible;
  position: relative;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  opacity: 0;
  animation: cardAppear 0.8s ease-out forwards;
}
.service-card:nth-child(1) { animation-delay: 0.3s; }
.service-card:nth-child(2) { animation-delay: 0.5s; }
.service-card:nth-child(3) { animation-delay: 0.7s; }

.service-card:hover {
  transform: translateY(-10px);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.4),
    0 0   20px rgba(212, 175, 55, 0.2);
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 5px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-primary));
  opacity: 0;
}
.service-card:hover::before {
  opacity: 1;
}

/* Icon */
.service-icon {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold-primary));
  width: 80px; height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 40px auto 20px;
  position: relative;
  z-index: 2;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.4s ease;
}
.service-card:hover .service-icon {
  transform: rotateY(180deg);
}
.service-icon i {
  font-size: 32px;
  color: var(--bg-primary);
}

/* Content */
.service-content {
  padding: 0 30px 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.service-title {
  color: var(--gold-light);
  font-size: 22px;
  margin-top: 0;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}
.service-title::after {
  content: '';
  position: absolute;
  bottom: -8px; left: 0;
  width: 0; height: 2px;
  background-color: var(--gold-primary);
  transition: width 0.4s ease;
}
.service-card:hover .service-title::after {
  width: 100%;
}

.service-description {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 25px;
}

.service-features {
  text-align: left;
  margin-bottom: 25px;
  flex: 1;
}
.feature-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 12px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.service-card:hover .feature-item {
  opacity: 1;
  transform: translateY(0);
}
.service-card:hover .feature-item:nth-child(1) { transition-delay: 0.1s; }
.service-card:hover .feature-item:nth-child(2) { transition-delay: 0.2s; }
.service-card:hover .feature-item:nth-child(3) { transition-delay: 0.3s; }
.feature-icon {
  color: var(--gold-primary);
  margin-right: 10px;
  font-size: 14px;
  margin-top: 5px;
}
.feature-text {
  color: var(--text-light);
  font-size: 14px;
}

/* Button */
.service-btn {
  background: transparent;
  color: var(--gold-primary);
  border: 1px solid var(--gold-primary);
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
  margin-top: auto;
  align-self: center;
}
.service-btn::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 100%;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold-primary));
  transition: width 0.4s ease;
  z-index: -1;
}
.service-btn:hover::before {
  width: 100%;
}
.service-btn:hover {
  color: var(--bg-primary);
  border-color: transparent;
}

/*--------------------------------------
  Process Section
--------------------------------------*/
.process-section {
  margin-top: 80px;
  animation: fadeUp 0.8s ease-out 0.9s forwards;
}

.section-title {
  text-align: center;
  color: var(--gold-primary);
  font-size: 32px;
  margin-top: 0;
  margin-bottom: 50px;
  position: relative;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

.process-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  gap: 20px;
}
.process-wrapper::before {
  content: '';
  position: absolute;
  top: 50px; left: 30px;
  width: calc(100% - 60px); height: 3px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-primary), var(--gold-dark));
  opacity: 0.3;
  z-index: 0;
}

.process-step {
  flex: 1 1 250px;
  max-width: 300px;
  margin: 0 10px 30px;
  text-align: center;
  position: relative;
  z-index: 1;
}
.step-number {
  width: 60px; height: 60px;
  border-radius: 50%;
  background-color: var(--bg-secondary);
  border: 3px solid var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 24px;
  font-weight: 700;
  color: var(--gold-primary);
  transition: all 0.4s ease;
}
.process-step:hover .step-number {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.step-title {
  color: var(--gold-light);
  font-size: 18px;
  margin-top: 0;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}
.step-title::after {
  content: '';
  position: absolute;
  bottom: -5px; left: 0;
  width: 0; height: 2px;
  background-color: var(--gold-primary);
  transition: width 0.4s ease;
}
.process-step:hover .step-title::after {
  width: 100%;
}

.step-description {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}

/*--------------------------------------
  Global Delivery Section
--------------------------------------*/
.global-delivery-section {
  margin-top: 80px;
  padding: 40px 30px;
  background: linear-gradient(135deg, rgba(20, 20, 20, 0.92), rgba(10, 10, 10, 0.92));
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 16px;
}

.global-delivery-intro {
  max-width: 1000px;
  margin: 0 auto 30px;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.9;
  text-align: center;
}

.global-delivery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.global-delivery-card {
  background-color: rgba(20, 20, 20, 0.9);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 14px;
  padding: 24px;
  text-align: center;
}

.global-delivery-card-title {
  color: var(--gold-light);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  margin-top: 0;
  margin-bottom: 14px;
}

.global-delivery-card p {
  color: var(--text-light);
  font-size: 15px;
  line-height: 1.8;
}

.global-delivery-checklist {
  list-style: none;
  max-width: 980px;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
}

.global-delivery-checklist li {
  color: var(--text-light);
  font-size: 15px;
  line-height: 1.7;
  position: relative;
  padding-left: 22px;
}

.global-delivery-checklist li::before {
  content: '\2713';
  color: var(--gold-primary);
  position: absolute;
  left: 0;
  top: 0;
}

.global-delivery-summary {
  max-width: 1000px;
  margin: 24px auto 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.8;
  text-align: center;
}

@media (max-width: 1024px) {
  .global-delivery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/*--------------------------------------
  CTA Section
--------------------------------------*/
.cta-section {
  margin-top: 80px;
  margin-bottom: 60px;
  background:
    linear-gradient(135deg, rgba(20, 20, 20, 0.9), rgba(10, 10, 10, 0.9)),
    url('/images/hero_section.jpg')
      center/cover;
  padding: 80px 0;
  border-radius: 16px;
  text-align: center;
  position: relative;
  overflow: hidden;
  opacity: 0;
  animation: fadeUp 0.8s ease-out 1.1s forwards;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 5px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-primary), var(--gold-dark));
}

.cta-title {
  color: var(--gold-primary);
  font-size: 32px;
  margin-top: 0;
  margin-bottom: 20px;
}
.cta-description {
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto 30px;
  font-size: 16px;
}
.cta-btn {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold-primary));
  color: var(--bg-primary);
  border: none;
  padding: 15px 40px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.4s ease;
  display: inline-block;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.cta-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: 0.5s;
}
.cta-btn:hover::before {
  left: 100%;
}
.cta-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
}

/*--------------------------------------
  Responsive Overrides
--------------------------------------*/
@media (max-width: 767px) {
  .services-header .services-main-title { font-size: 32px; }
  .service-content          { padding: 0 20px 25px; }
  .service-title            { font-size: 20px; }
  .section-title            { font-size: 28px; }
  .cta-title                { font-size: 28px; }
  .process-step             { margin: 0 10px 30px; }
  .global-delivery-section  { padding: 30px 20px; }
  .global-delivery-grid     { grid-template-columns: 1fr; }
  .global-delivery-checklist { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .container                { padding: 30px 15px; }
  .services-header .services-main-title { font-size: 28px; }
  .services-header p        { font-size: 14px; }
  .service-icon {
    width: 70px;
    height: 70px;
    margin: 40px auto 15px;
  }
  .service-icon i           { font-size: 28px; }
  .service-title            { font-size: 18px; }
  .service-description      { font-size: 14px; }
  .cta-section              { padding: 60px 0; }
  .cta-title                { font-size: 24px; }
  .cta-description          { font-size: 14px; }
  .cta-btn                  { padding: 12px 30px; font-size: 14px; }
}

/*--------------------------------------
  Animations
--------------------------------------*/
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes cardAppear {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
