/*GLOBAL BOX-SIZING FOR CONSISTENCY*/
*, *::before, *::after {
  box-sizing: border-box;
}

/*PAGE HERO (STATIC – PROFILE PAGE)*/
.page-hero {
  position: relative;
  min-height: 30vh;
  margin-top: var(--nav-height, 100px);

  display: flex;
  align-items: center;
  justify-content: center;

  color: #ffffff;
  text-align: center;

  background-image: url("../assets/images/header-page.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* OVERLAY */
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(28, 62, 91, 0.85),
    rgba(28, 62, 91, 0.55)
  );
}

/* CONTENT */
.page-hero-content {
  position: relative;
  max-width: 720px;
  padding: 0 24px;

  animation: fadeUp 0.8s ease forwards;
}

.page-hero-content h1 {
  font-size: clamp(32px, 4vw, 42px);
  font-weight: 700;
  margin-bottom: 8px;
}

.page-hero-content p {
  font-size: 14px;
  opacity: 0.9;
}

.page-hero-content p a {
  color: #ffffff;
  text-decoration: none;
  opacity: 0.9;
}

.page-hero-content p span {
  margin: 0 6px;
  opacity: 0.7;
}

/* HERO ANIMATION */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================= SERVICES PAGE ================= */

.services-page {
  padding: 120px 6vw;
  background: #ffffff;
}

.services-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* HEADER */
.services-header {
  margin-bottom: 60px;
  text-align: left;
}

.services-line {
  display: block;
  width: 40px;
  height: 3px;
  background: var(--accent-color, #ff6b35);
  margin-bottom: 16px;
}

.services-header h2 {
  font-size: 32px;
  margin-bottom: 20px;
  color: var(--primary-color, #1c3e5b);
}

/* GRID */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* CARD */
.service-card {
  --ty: 24px;

  background: linear-gradient(135deg, #ff8c42, #ff6b35);
  color: #ffffff;
  padding: 36px 32px;
  border-radius: 6px;
  position: relative;
  cursor: pointer;

  opacity: 0;
  transform: translateY(var(--ty));
  transition:
    opacity 0.7s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}


.service-arrow {
  display: inline-block;
  color: #1c3e5b;
  font-size: 22px;
  margin-bottom: 14px;
  opacity: 0.9;
}


.service-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  line-height: 1.4;
}

.service-card p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.9);
}

.service-link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.service-card.show {
  opacity: 1;
  --ty: 0px;
}

.service-card:hover {
  --ty: -6px;
  box-shadow: 0 20px 50px rgba(255,107,53,0.45);
}

/* sedikit delay bertahap biar cantik */
.service-card:nth-child(1) { transition-delay: 0.05s; }
.service-card:nth-child(2) { transition-delay: 0.12s; }
.service-card:nth-child(3) { transition-delay: 0.18s; }
.service-card:nth-child(4) { transition-delay: 0.24s; }
.service-card:nth-child(5) { transition-delay: 0.30s; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .services-page {
    padding: 80px 4vw;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .services-header h2 {
    font-size: 30px;
  }
}
