/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #e0e7ff;
  --text: #111827;
  --text-muted: #6b7280;
  --bg: #ffffff;
  --bg-alt: #f9fafb;
  --border: #e5e7eb;
  --card-shadow: 0 4px 24px rgba(0,0,0,.07);
  --card-shadow-hover: 0 12px 40px rgba(99,102,241,.18);
  --radius: 16px;
  --radius-sm: 10px;
  --nav-h: 72px;
  --transition: .25s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ===== UTILITY ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.gradient-text {
  background: linear-gradient(135deg, var(--primary), #a78bfa, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header { text-align: center; margin-bottom: 64px; }
.section-header h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 700; margin: 12px 0 16px; }
.section-header p { color: var(--text-muted); max-width: 520px; margin: 0 auto; }

.section-tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 999px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  font-size: .85rem;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  margin-bottom: 24px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(99,102,241,.4);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(99,102,241,.5); }
.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.5);
}
.btn-outline:hover { background: rgba(255,255,255,.1); }
.btn-nav { background: var(--primary); color: #fff !important; padding: 8px 22px; font-size: .875rem; }
.btn-nav:hover { background: var(--primary-dark); }
.btn-full { width: 100%; }

/* ===== CARD ===== */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  transition: all var(--transition);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--card-shadow-hover); }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  transition: all var(--transition);
}
.navbar.scrolled {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
}
.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { font-size: 1.4rem; font-weight: 800; color: #fff; }
.logo span { color: #a5b4fc; }
.navbar.scrolled .logo { color: var(--text); }
.navbar.scrolled .logo span { color: var(--primary); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links a {
  color: rgba(255,255,255,.85);
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all var(--transition);
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.1); }
.navbar.scrolled .nav-links a { color: var(--text-muted); }
.navbar.scrolled .nav-links a:hover { color: var(--primary); background: var(--primary-light); }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background var(--transition);
  z-index: 2100;
  position: relative;
}
.hamburger:hover { background: rgba(255,255,255,.1); }
.navbar.scrolled .hamburger:hover { background: var(--primary-light); }
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all .3s ease;
  transform-origin: center;
}
.navbar.scrolled .hamburger span { background: var(--text); }

/* Hamburger → X animation */
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== FULL-SCREEN MOBILE MENU ===== */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1999;
  background: linear-gradient(160deg, #1e1b4b 0%, #312e81 60%, #2d1b69 100%);
  flex-direction: column;
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-16px) scale(.98);
  transition: opacity .3s ease, transform .35s cubic-bezier(.4,0,.2,1), visibility .3s;
}
.mobile-menu.open {
  visibility: visible;
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Blobs dekoratif */
.mobile-menu::before {
  content: '';
  position: absolute;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,.3) 0%, transparent 70%);
  top: -80px; right: -60px;
  pointer-events: none;
}
.mobile-menu::after {
  content: '';
  position: absolute;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56,189,248,.18) 0%, transparent 70%);
  bottom: 60px; left: -60px;
  pointer-events: none;
}

/* Header */
.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  padding-top: calc(20px + env(safe-area-inset-top, 0px));
  border-bottom: 1px solid rgba(255,255,255,.08);
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}
.mobile-menu-header .logo { color: #fff; font-size: 1.35rem; }
.mobile-menu-header .logo span { color: #a5b4fc; }

.mobile-menu-close {
  position: relative;
  width: 40px; height: 40px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  flex-shrink: 0;
}
.mobile-menu-close:hover,
.mobile-menu-close:active { background: rgba(255,255,255,.2); }
.mobile-menu-close span {
  position: absolute;
  width: 15px; height: 1.5px;
  background: #fff;
  border-radius: 2px;
}
.mobile-menu-close span:nth-child(1) { transform: rotate(45deg); }
.mobile-menu-close span:nth-child(2) { transform: rotate(-45deg); }

/* Nav items */
.mobile-menu-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16px 24px;
  gap: 0;
  position: relative;
  z-index: 2;
  overflow-y: auto;
}
.mobile-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(14px, 3.5vw, 20px) 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
  color: rgba(255,255,255,.6);
  font-size: clamp(1.5rem, 6vw, 2rem);
  font-weight: 700;
  letter-spacing: -.5px;
  text-decoration: none;
  transition: color .2s, padding-left .2s;
  position: relative;
  will-change: transform;
}
.mobile-menu-item:last-child { border-bottom: none; }
.mobile-menu-item:active,
.mobile-menu-item:hover { color: #fff; padding-left: 8px; }

/* Nomor kecil di kiri */
.mobile-menu-item::before {
  content: attr(data-num);
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: .7rem;
  font-weight: 600;
  color: #818cf8;
  letter-spacing: 1px;
  line-height: 1;
  opacity: .9;
}
.mobile-menu-item-text {
  padding-left: 32px;
}

/* Arrow kanan */
.mobile-menu-item::after {
  content: '→';
  font-size: 1.1rem;
  color: rgba(255,255,255,.2);
  transition: color .2s, transform .2s;
  flex-shrink: 0;
}
.mobile-menu-item:hover::after,
.mobile-menu-item:active::after {
  color: #818cf8;
  transform: translateX(4px);
}

/* Stagger animasi saat open */
.mobile-menu-item { opacity: 0; transform: translateX(-16px); transition: color .2s, padding-left .2s, opacity .35s ease, transform .35s ease; }
.mobile-menu.open .mobile-menu-item:nth-child(1) { opacity: 1; transform: none; transition-delay: .15s; }
.mobile-menu.open .mobile-menu-item:nth-child(2) { opacity: 1; transform: none; transition-delay: .22s; }
.mobile-menu.open .mobile-menu-item:nth-child(3) { opacity: 1; transform: none; transition-delay: .29s; }

/* Footer */
.mobile-menu-footer {
  padding: 20px 24px;
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(255,255,255,.08);
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .3s .35s ease, transform .3s .35s ease;
}
.mobile-menu.open .mobile-menu-footer {
  opacity: 1;
  transform: translateY(0);
}
.mobile-menu-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 15px 24px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #6366f1, #a78bfa);
  box-shadow: 0 6px 20px rgba(99,102,241,.45);
  transition: opacity .2s, transform .2s;
  margin-bottom: 14px;
}
.mobile-menu-cta:active { opacity: .85; transform: scale(.98); }
.mobile-menu-sub {
  text-align: center;
  font-size: .78rem;
  color: rgba(255,255,255,.3);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #312e81 0%, #4f46e5 40%, #7c3aed 100%);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 70% 40%, rgba(167,139,250,.25) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(56,189,248,.2) 0%, transparent 50%);
}
.hero-shape {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--bg);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding-top: var(--nav-h);
  text-align: center;
  padding-bottom: 80px;
}
.hero-content h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero-subtitle {
  color: rgba(255,255,255,.8);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  max-width: 600px;
  margin: 0 auto 36px;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 64px; }
.hero-stats {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(12px);
  border-radius: var(--radius);
  padding: 24px 40px;
  flex-wrap: wrap;
  justify-content: center;
}
.stat { text-align: center; }
.stat-num { display: block; font-size: 1.75rem; font-weight: 800; color: #fff; }
.stat-label { font-size: .8rem; color: rgba(255,255,255,.65); }
.stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,.2); }

/* ===== SERVICES ===== */
.services { background: var(--bg-alt); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.service-card { padding: 32px; }
.card-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--icon-color) 12%, white);
  color: var(--icon-color);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.card-icon svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.service-card p { color: var(--text-muted); font-size: .95rem; }

/* ===== ABOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-visual { position: relative; }
.about-img-wrap { position: relative; }
.about-img-inner {
  position: relative;
  background: linear-gradient(135deg, #eef2ff 0%, #ede9fe 100%);
  border-radius: var(--radius);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}
.about-illustration { position: relative; width: 220px; height: 220px; display: flex; align-items: center; justify-content: center; }
.ill-circle {
  position: absolute;
  border-radius: 50%;
  opacity: .5;
}
.ill-c1 { width: 220px; height: 220px; background: linear-gradient(135deg, #c7d2fe, #ddd6fe); animation: pulse 3s ease-in-out infinite; }
.ill-c2 { width: 160px; height: 160px; background: linear-gradient(135deg, #a5b4fc, #c4b5fd); animation: pulse 3s ease-in-out infinite .5s; }
.ill-c3 { width: 100px; height: 100px; background: linear-gradient(135deg, #818cf8, #a78bfa); animation: pulse 3s ease-in-out infinite 1s; }
.ill-icon { position: relative; z-index: 1; }
.ill-icon svg { width: 80px; height: 80px; filter: drop-shadow(0 4px 12px rgba(99,102,241,.4)); }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); } }

.about-badge-float {
  position: absolute;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-size: .8rem;
  font-weight: 600;
  box-shadow: var(--card-shadow);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}
.badge-float-1 { top: 20px; right: -20px; animation: float 4s ease-in-out infinite; }
.badge-float-2 { bottom: 30px; left: -20px; animation: float 4s ease-in-out infinite 1s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.about-text h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; margin: 12px 0 20px; }
.about-text p { color: var(--text-muted); margin-bottom: 16px; }
.about-list { margin: 24px 0 32px; display: flex; flex-direction: column; gap: 12px; }
.about-list li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.check { width: 24px; height: 24px; background: var(--primary-light); color: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 700; flex-shrink: 0; }

/* ===== TEAM ===== */
.team { background: var(--bg-alt); }
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.team-card { padding: 32px 24px; text-align: center; }
.team-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--avatar-bg);
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.team-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; }
.team-role { color: var(--primary); font-size: .85rem; font-weight: 600; display: block; margin-bottom: 12px; }
.team-card p { color: var(--text-muted); font-size: .88rem; margin-bottom: 20px; }
.team-social { display: flex; gap: 10px; justify-content: center; }
.team-social a {
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition);
}
.team-social a svg { width: 16px; height: 16px; }
.team-social a:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 28px; }
.info-item { display: flex; gap: 16px; align-items: flex-start; }
.info-icon {
  width: 44px; height: 44px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.info-icon svg { width: 20px; height: 20px; }
.info-item strong { display: block; font-weight: 600; margin-bottom: 4px; }
.info-item p { color: var(--text-muted); font-size: .9rem; }

.contact-form { padding: 36px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-size: .875rem; font-weight: 600; color: var(--text); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .95rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  transition: border-color var(--transition);
  outline: none;
  resize: vertical;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99,102,241,.15);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }

.form-success {
  margin-top: 16px;
  padding: 14px 18px;
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  border-radius: var(--radius-sm);
  color: #065f46;
  font-weight: 500;
  font-size: .9rem;
  text-align: center;
}

/* ===== FOOTER ===== */
.footer {
  background: #111827;
  color: rgba(255,255,255,.7);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 64px;
  padding: 64px 24px 48px;
}
.footer-brand .logo { color: #fff; margin-bottom: 12px; }
.footer-brand p { font-size: .9rem; max-width: 280px; line-height: 1.7; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.footer-links strong { display: block; color: #fff; font-weight: 600; margin-bottom: 14px; font-size: .9rem; }
.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: .875rem; transition: color var(--transition); }
.footer-links a:hover { color: #a5b4fc; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 24px;
  text-align: center;
  font-size: .85rem;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 16px rgba(99,102,241,.5);
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition);
  z-index: 999;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* ===== ANIMATIONS ===== */
[data-aos] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}
[data-aos].aos-visible {
  opacity: 1;
  transform: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-visual { max-width: 400px; margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .hamburger { display: flex; }
  .nav-links { display: none; }
  .mobile-menu { display: flex; }
  .hero-stats { gap: 20px; padding: 20px 24px; }
  .stat-divider { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }
  .footer-links { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: center; }
  .badge-float-1, .badge-float-2 { display: none; }
}
