/* ================================================================
   AJMI WebPublic — Company Profile Design System
   PT Anugrah Jaya Megah Indonesia
   Version: 2.0 — Full Redesign
   Updated: 2026-05-27
   ================================================================ */

/* ----------------------------------------------------------------
   0. IMPORTS & CUSTOM PROPERTIES
   ---------------------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@600;700;800&display=swap');

:root {
  /* ---- Navy scale ---- */
  --navy:      #0A1628;
  --navy-800:  #111D2E;
  --navy-700:  #17212b;
  --navy-600:  #1E2D3D;

  /* ---- Brand blues ---- */
  --blue-primary: #2B7BB9;
  --blue-light:   #3A9AD9;

  /* ---- Accent: teal ---- */
  --teal:       #2BAAA0;
  --teal-light: #3DCFC4;

  /* ---- Accent: warm ---- */
  --amber:       #F5A623;
  --amber-light: #FFB84D;
  --gold:        #D4A543;

  /* ---- Neutrals ---- */
  --white:     #FFFFFF;
  --off-white: #F5F7F4;
  --gray-100:  #E8ECF0;
  --gray-200:  #D0D7DE;
  --gray-300:  #A3B1BF;
  --gray-500:  #52606D;
  --gray-700:  #2D3A45;

  /* ---- Semantic text ---- */
  --text-dark:  #111820;
  --text-muted: #455461;
  --text-light: #D7DDE0;
}


/* ----------------------------------------------------------------
   1. RESET & BASE
   ---------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  font-family: 'Outfit', sans-serif;
  line-height: 1.1;
}

p {
  margin-top: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
}


/* ----------------------------------------------------------------
   2. SITE HEADER — Sticky glassmorphism navbar
   ---------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 72px;
  padding: 0 clamp(20px, 5vw, 72px);
  background: rgba(10, 22, 40, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header.scrolled {
  background: rgba(10, 22, 40, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

/* — Brand lockup — */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.brand-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
  line-height: 1.2;
}

.brand-sub {
  display: block;
  font-size: 0.65rem;
  color: var(--gray-300);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
}

.brand-logo-partner {
  width: 96px !important;
  height: 48px !important;
  object-fit: contain;
  object-position: left center;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  padding-left: 12px;
  margin-left: 4px;
}

.brand-branch {
  display: block;
  font-size: 0.62rem;
  color: var(--teal-light);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-family: 'Inter', sans-serif;
  margin-top: 1px;
}

/* — Desktop nav — */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav a,
.nav-menu a {
  color: var(--gray-300);
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

nav a:hover,
.nav-menu a:hover {
  color: var(--white);
}

/* — Mobile hamburger toggle — */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}


/* ----------------------------------------------------------------
   3. HERO — Full viewport dark section
   ---------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--navy);
}

/* Background image layer */
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url(./assets/hero-bg.png);
  background-size: cover;
  background-position: center;
  opacity: 0.3;
}

/* Dark gradient overlay for readability */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(10, 22, 40, 0.6) 100%);
}

/* Particle canvas container */
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Main hero content */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: clamp(80px, 12vw, 140px) clamp(20px, 5vw, 72px);
}

/* Eyebrow label above h1 */
.hero-eyebrow {
  color: var(--amber);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-eyebrow::before {
  content: '';
  width: 40px;
  height: 2px;
  background: var(--amber);
  flex-shrink: 0;
}

/* Hero heading */
.hero h1 {
  color: var(--white);
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 0.95;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero h1 .text-gradient {
  background: linear-gradient(135deg, var(--blue-light), var(--teal-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero description */
.hero-desc {
  color: var(--text-light);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  max-width: 640px;
  margin-bottom: 36px;
  line-height: 1.7;
}

/* CTA buttons row */
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue-primary), var(--teal));
  color: var(--white);
  padding: 14px 32px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(43, 123, 185, 0.3);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(43, 123, 185, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  padding: 14px 32px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 600;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

/* Stats strip below hero CTA */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
}

.stat-number .accent {
  color: var(--amber);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--gray-300);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}


/* ----------------------------------------------------------------
   4. SHARED SECTION UTILITIES
   ---------------------------------------------------------------- */

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: clamp(20px, 5vw, 72px);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-eyebrow {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.1;
  margin-bottom: 0;
}

.section-desc {
  color: var(--text-muted);
  max-width: 640px;
  margin: 16px auto 0;
  font-size: 1.05rem;
}


/* ----------------------------------------------------------------
   5. SECTION PROFIL — Company profile (light bg)
   ---------------------------------------------------------------- */

.section-profil {
  background: var(--off-white);
  padding-block: clamp(80px, 10vw, 140px);
}

.profil-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.profil-content p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
  font-size: 1.02rem;
}

/* 2×2 value cards */
.profil-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
}

.value-card {
  padding: 24px;
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--gray-100);
  transition: box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.value-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.07);
}

.value-card .value-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 12px;
  background: linear-gradient(135deg, rgba(43, 123, 185, 0.1), rgba(43, 170, 160, 0.1));
}

.value-card h4 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-dark);
  margin: 0 0 6px;
}

.value-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

/* Profile image */
.profil-image {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.profil-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profil-image::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  border: 1px solid rgba(43, 123, 185, 0.15);
  pointer-events: none;
}


/* ----------------------------------------------------------------
   6. SECTION LAYANAN — Services grid (white bg)
   ---------------------------------------------------------------- */

.section-layanan {
  background: var(--white);
  padding-block: clamp(80px, 10vw, 140px);
}

.layanan-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.layanan-card {
  background: var(--off-white);
  border-radius: 16px;
  padding: 36px 28px;
  border: 1px solid var(--gray-100);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Top accent bar — visible on hover */
.layanan-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-primary), var(--teal));
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.layanan-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  border-color: transparent;
}

.layanan-card:hover::before {
  opacity: 1;
}

.layanan-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-600) 100%);
  margin-bottom: 20px;
  color: var(--white);
}

.layanan-card h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-dark);
  margin: 0 0 10px;
}

.layanan-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}


/* ----------------------------------------------------------------
   7. SECTION MITRA — Partners / logo strip (off-white)
   ---------------------------------------------------------------- */

.section-mitra {
  background: var(--off-white);
  padding-block: clamp(60px, 8vw, 100px);
}

.mitra-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
  flex-wrap: wrap;
  margin-top: 48px;
}

.mitra-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mitra-item:hover {
  transform: scale(1.08);
}

.mitra-item img {
  height: 80px;
  width: auto;
  object-fit: contain;
  filter: grayscale(30%);
  transition: filter 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mitra-item img.mitra-logo-sks {
  height: 118px;
  max-width: min(320px, 82vw);
}

.mitra-item:hover img {
  filter: grayscale(0%);
}

.mitra-item span {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

.mitra-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #E8453C, #2B7BB9);
  display: flex;
  align-items: center;
  justify-content: center;
  filter: grayscale(30%);
  transition: filter 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mitra-item:hover .mitra-placeholder {
  filter: grayscale(0%);
}

.mitra-placeholder-text {
  color: var(--white);
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
}

.mitra-desc {
  text-align: center;
  max-width: 640px;
  margin: 36px auto 0;
}

.mitra-desc p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Active nav link */
nav a.active,
.nav-menu a.active {
  color: var(--white);
  position: relative;
}

nav a.active::after,
.nav-menu a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-primary), var(--teal));
  border-radius: 1px;
}

.kontak-subtitle {
  color: var(--text-light);
  font-size: 1rem;
  margin-bottom: 32px;
  line-height: 1.7;
}


/* ----------------------------------------------------------------
   8. SECTION LEGALITAS — Legal & compliance (white)
   ---------------------------------------------------------------- */

.section-legalitas {
  background: var(--white);
  padding-block: clamp(80px, 10vw, 140px);
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.legal-card {
  text-align: center;
  padding: 36px 24px;
  border-radius: 16px;
  background: var(--off-white);
  border: 1px solid var(--gray-100);
  transition: box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.legal-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.legal-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, rgba(245, 166, 35, 0.1), rgba(212, 165, 67, 0.15));
}

.legal-card h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-dark);
  margin: 0 0 8px;
}

.legal-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

.legal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--teal);
  background: rgba(43, 170, 160, 0.08);
}


/* ----------------------------------------------------------------
   9. SECTION KONTAK — Contact / CTA (dark navy)
   ---------------------------------------------------------------- */

.section-kontak {
  background: var(--navy);
  color: var(--white);
  padding-block: clamp(80px, 10vw, 120px);
}

.kontak-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(40px, 6vw, 80px);
}

.kontak-info h2 {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 24px;
  color: var(--white);
}

.kontak-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.kontak-item .ki-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  color: var(--teal-light);
}

.kontak-item h4 {
  font-weight: 600;
  margin: 0 0 4px;
  font-size: 0.95rem;
  color: var(--white);
}

.kontak-item p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin: 0;
}

.kontak-coordinate {
  display: block;
  margin-top: 6px;
  color: var(--teal-light);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.kontak-item a {
  color: var(--teal-light);
  text-decoration: none;
  transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.kontak-item a:hover {
  color: var(--amber-light);
}

/* Map embed wrapper */
.kontak-map {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  min-height: 300px;
  background: var(--navy-800);
}

.map-frame {
  width: 100%;
  height: 100%;
  min-height: 300px;
  display: block;
  border: 0;
  filter: saturate(0.92) contrast(1.02);
}

.map-direct-link {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(10, 22, 40, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
  font-size: 0.8rem;
  font-weight: 700;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.map-direct-link:hover {
  transform: translateY(-1px);
  border-color: rgba(61, 207, 196, 0.48);
}


/* ----------------------------------------------------------------
   10. FOOTER — Bottom bar
   ---------------------------------------------------------------- */

.footer {
  background: var(--navy-800);
  padding: 24px clamp(20px, 5vw, 72px);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 1400px;
  margin: 0 auto;
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--gray-500);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-size: 0.82rem;
  color: var(--gray-500);
  transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-links a:hover {
  color: var(--teal-light);
}


/* ----------------------------------------------------------------
   11. SCROLL REVEAL ANIMATIONS (toggled by JS)
   ---------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-scale.active {
  opacity: 1;
  transform: scale(1);
}

/* Staggered delay for children in a container */
.stagger > *:nth-child(1) { transition-delay: 0s; }
.stagger > *:nth-child(2) { transition-delay: 0.1s; }
.stagger > *:nth-child(3) { transition-delay: 0.2s; }
.stagger > *:nth-child(4) { transition-delay: 0.3s; }
.stagger > *:nth-child(5) { transition-delay: 0.4s; }
.stagger > *:nth-child(6) { transition-delay: 0.5s; }


/* ----------------------------------------------------------------
   12. GLASSMORPHISM & GLOW UTILITIES
   ---------------------------------------------------------------- */

.glass {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
}

.glow-blue {
  box-shadow: 0 0 40px rgba(43, 123, 185, 0.15);
}

.glow-teal {
  box-shadow: 0 0 40px rgba(43, 170, 160, 0.15);
}

.glow-amber {
  box-shadow: 0 0 30px rgba(245, 166, 35, 0.12);
}


/* ----------------------------------------------------------------
   13. GRADIENT TEXT UTILITY
   ---------------------------------------------------------------- */

.text-gradient {
  background: linear-gradient(135deg, var(--blue-light), var(--teal-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}


/* ----------------------------------------------------------------
   14. KEYFRAME ANIMATIONS
   ---------------------------------------------------------------- */

@keyframes float {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

@keyframes pulse-glow {
  0%   { box-shadow: 0 0 0 0 rgba(43, 123, 185, 0.4); }
  70%  { box-shadow: 0 0 0 20px rgba(43, 123, 185, 0); }
  100% { box-shadow: 0 0 0 0 rgba(43, 123, 185, 0); }
}

@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* Apply helpers */
.animate-float  { animation: float 6s ease-in-out infinite; }
.animate-pulse  { animation: pulse-glow 2s ease-in-out infinite; }
.animate-shimmer {
  background-size: 200% auto;
  animation: shimmer 3s linear infinite;
}


/* ----------------------------------------------------------------
   15. RESPONSIVE — Tablet (≤ 1024px)
   ---------------------------------------------------------------- */

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

  .profil-grid {
    grid-template-columns: 1fr;
  }

  .profil-image {
    order: -1;            /* image first on smaller screens */
    max-height: 400px;
  }
}


/* ----------------------------------------------------------------
   16. RESPONSIVE — Mobile (≤ 768px)
   ---------------------------------------------------------------- */

@media (max-width: 768px) {
  .site-header {
    padding-inline: 16px;
  }

  .header-inner {
    gap: 14px;
  }

  .brand {
    gap: 8px;
    min-width: 0;
  }

  .brand-logo-partner {
    width: 74px !important;
    height: 42px !important;
    padding-left: 9px;
    margin-left: 0;
  }

  .brand-name {
    font-size: 1rem;
  }

  .brand-sub {
    max-width: 170px;
    font-size: 0.58rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* — Header collapses to hamburger — */
  .mobile-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 85vw);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 80px 32px 32px;
    background: var(--navy);
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    overflow-y: auto;
  }

  .nav-menu a,
  .nav-menu li {
    width: 100%;
  }

  .nav-menu a {
    display: block;
    padding: 14px 0;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  /* Active state — toggled by JS adding .nav-active to body */
  .nav-active .nav-menu {
    transform: translateX(0);
  }

  /* Hamburger transforms to X */
  .nav-active .mobile-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-active .mobile-toggle span:nth-child(2) {
    opacity: 0;
  }
  .nav-active .mobile-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* — Hero stats collapse to 2 columns — */
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 40px;
    padding-top: 28px;
  }

  /* — Legal grid stacks — */
  .legal-grid {
    grid-template-columns: 1fr;
  }

  /* — Contact grid stacks — */
  .kontak-grid {
    grid-template-columns: 1fr;
  }

  .kontak-map {
    min-height: 260px;
  }

  .mitra-item img.mitra-logo-sks {
    height: 104px;
  }

  /* — Footer stacks centered — */
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}


/* ----------------------------------------------------------------
   17. RESPONSIVE — Small phone (≤ 480px)
   ---------------------------------------------------------------- */

@media (max-width: 480px) {
  .brand-logo-partner {
    width: 64px !important;
    height: 40px !important;
    padding-left: 8px;
  }

  .brand-sub {
    display: none;
  }

  .brand-branch {
    max-width: 92px;
    font-size: 0.52rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Stats stay 2-column but tighter */
  .hero-stats {
    gap: 12px;
  }

  .stat-number {
    font-size: clamp(1.4rem, 8vw, 2rem);
  }

  /* Fonts scale down slightly */
  .hero h1 {
    font-size: clamp(2.2rem, 9vw, 3.2rem);
  }

  .hero-desc {
    font-size: 1rem;
  }

  .section-title {
    font-size: clamp(1.6rem, 6vw, 2.4rem);
  }

  /* Cards get tighter padding */
  .layanan-card {
    padding: 28px 20px;
  }

  .layanan-grid {
    grid-template-columns: 1fr;
  }

  /* Buttons go full-width */
  .hero-actions {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}


/* ----------------------------------------------------------------
   18. ACCESSIBILITY — Reduced motion
   ---------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
