:root {
  --charcoal-deep: #1a1a1a;
  --charcoal: #242424;
  --charcoal-light: #2e2e2e;
  --charcoal-lighter: #3a3a3a;
  --navy: #1a2744;
  --navy-bright: #2a3f6e;
  --navy-glow: #3d5a9e;
  --white: #f0f0f0;
  --white-muted: #b8b8b8;
  --white-dim: #787878;
  --gold-muted: #b8a080;
  --font-display: "Outfit", sans-serif;
  --font-body: "DM Sans", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  background: var(--charcoal-deep);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ==================== NAVBAR ==================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 48px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(26, 26, 26, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(26, 26, 26, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.75rem;
  color: var(--white);
  letter-spacing: -0.5px;
  text-decoration: none;
  cursor: pointer;
}

.nav-logo span {
  color: var(--navy-glow);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--white-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: color 0.3s;
  text-transform: uppercase;
}

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

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-switch {
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.lang-switch-track {
  width: 56px;
  height: 26px;
  background: var(--white-dim);
  border: 1px solid var(--white-muted);
  border-radius: 999px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s;
}

.lang-switch:hover .lang-switch-track {
  /* border-color: rgba(56, 162, 219, 0.9); */
  border-color: var(--white);
}

.lang-switch-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: var(--white);
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
}

.lang-switch--en .lang-switch-thumb {
  transform: translateX(30px);
  /* background: var(--navy-glow); */
  /* background: var(--gold-muted); */
  background: var(--charcoal);
}

.track-flag {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 12px;
  object-fit: cover;
  border-radius: 2px;
  transition: opacity 0.25s ease;
  z-index: 1;
}

#flagID { right: 5px; opacity: 1; }
#flagEN { left: 5px;  opacity: 0; }

.lang-switch--en #flagID { opacity: 0; }
.lang-switch--en #flagEN { opacity: 1; }


/* ==================== HERO ==================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 48px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(
      ellipse at 70% 50%,
      rgba(26, 39, 68, 0.4) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse at 20% 80%,
      rgba(42, 63, 110, 0.15) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.hero-grain {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero-text {
  max-width: 560px;
}

.hero-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--navy-glow);
  margin-bottom: 24px;
  padding: 6px 16px;
  border: 1px solid rgba(61, 90, 158, 0.3);
  border-radius: 4px;
  animation: fadeInUp 0.8s ease both;
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 20px;
  animation: fadeInUp 0.8s ease 0.1s both;
}

.hero-name .surname {
  opacity: 0.4;
  font-weight: 600;
}

.hero-name .accent {
  background: linear-gradient(135deg, var(--navy-glow), #6b8fd4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--white-muted);
  line-height: 1.7;
  margin-bottom: 40px;
  font-weight: 300;
  max-width: 480px;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  animation: fadeInUp 0.8s ease 0.3s both;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
  padding: 14px 32px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s;
  border: 1px solid var(--navy-bright);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  background: var(--navy-bright);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(61, 90, 158, 0.3);
}

.btn-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
  filter: invert(1);
}

.btn-secondary {
  background: transparent;
  color: var(--white-muted);
  padding: 14px 32px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s;
  border: 1px solid var(--charcoal-lighter);
}

.btn-secondary:hover {
  border-color: var(--white-muted);
  color: var(--white);
}

.hero-photo {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn 1s ease 0.4s both;
}

.photo-frame {
  width: 380px;
  height: 460px;
  background: var(--charcoal);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 80px rgba(26, 39, 68, 0.15);
}

.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.photo-placeholder {
  width: 100%;
  height: 100%;
  background: radial-gradient(
    ellipse at center,
    var(--charcoal-light) 0%,
    var(--charcoal-deep) 100%
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white-dim);
  gap: 12px;
}

.photo-placeholder svg {
  opacity: 0.3;
}

.photo-placeholder span {
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.4;
}

/* ==================== STATS BAR ==================== */
.stats-bar {
  padding: 40px 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(26, 39, 68, 0.08);
}

.stats-grid {
  display: flex;
  justify-content: center;
  gap: 80px;
  max-width: 1200px;
  margin: 0 auto;
}

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

.stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -1px;
}

.stat-number span {
  color: var(--navy-glow);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--white-dim);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 4px;
}

/* ==================== SECTIONS SHARED ==================== */
.section {
  padding: 100px 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--navy-glow);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
  line-height: 1.2;
}

.section-desc {
  color: var(--white-muted);
  font-size: 1.05rem;
  max-width: 560px;
  line-height: 1.8;
  font-weight: 300;
}

/* ==================== ABOUT ==================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-top: 48px;
  align-items: start;
}

.about-text {
  color: var(--white-muted);
  font-size: 1.05rem;
  line-height: 1.9;
  font-weight: 300;
}

.about-text p + p {
  margin-top: 20px;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.about-tag {
  padding: 8px 18px;
  background: var(--charcoal-light);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  font-size: 0.8rem;
  color: var(--white-muted);
  font-weight: 500;
  letter-spacing: 0.5px;
}

.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.highlight-card {
  padding: 28px;
  background: var(--charcoal);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  transition: all 0.3s;
}

.highlight-card:hover {
  border-color: rgba(61, 90, 158, 0.2);
  transform: translateX(4px);
}

.highlight-icon {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.highlight-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 6px;
}

.highlight-desc {
  font-size: 0.85rem;
  color: var(--white-dim);
  line-height: 1.6;
}

/* ==================== SERVICES ==================== */
#layanan {
  padding-top: 100px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.service-card {
  padding: 40px;
  background: var(--charcoal);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  transition: all 0.4s;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--navy-glow),
    transparent
  );
  opacity: 0;
  transition: opacity 0.4s;
}

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

.service-card:hover {
  border-color: rgba(61, 90, 158, 0.15);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

.service-icon {
  width: 48px;
  height: 48px;
  background: var(--navy);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 1.2rem;
  border: 1px solid var(--navy-bright);
}

.service-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.service-desc {
  color: var(--white-dim);
  font-size: 0.9rem;
  line-height: 1.7;
}

.services-cta {
  margin-top: 48px;
  text-align: center;
}

/* ==================== PORTFOLIO ==================== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 400px));
  gap: 24px;
  margin-top: 48px;
  justify-content: center;
}

.project-card {
  background: var(--charcoal);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s;
}

.project-card:hover {
  border-color: rgba(61, 90, 158, 0.2);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.project-image {
  width: 100%;
  height: 200px;
  background: var(--charcoal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  position: relative;
  overflow: hidden;
}

.project-image::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(transparent, var(--charcoal));
}

.project-image span {
  font-size: 0.75rem;
  color: var(--white-dim);
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.5;
}

.project-info {
  padding: 28px;
}

.project-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.project-desc {
  color: var(--white-dim);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-tag {
  padding: 4px 12px;
  background: rgba(26, 39, 68, 0.4);
  border: 1px solid rgba(61, 90, 158, 0.2);
  border-radius: 6px;
  font-size: 0.7rem;
  color: var(--navy-glow);
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* ==================== CONTACT ==================== */
.contact-section {
  padding: 100px 48px;
  background: var(--charcoal);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  margin-top: 40px;
}

.contact-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.2;
  margin-bottom: 16px;
}

.contact-subtitle {
  color: var(--white-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 40px;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--charcoal-deep);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  text-decoration: none;
  color: var(--white);
  transition: all 0.3s;
}

.contact-method:hover {
  border-color: rgba(61, 90, 158, 0.3);
  transform: translateX(4px);
}

.contact-method-icon {
  width: 44px;
  height: 44px;
  background: #ffffff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-method-label {
  font-size: 0.75rem;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.contact-method-value {
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 2px;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 40px;
}

.social-link {
  width: 48px;
  height: 48px;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white-dim);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
  transition: all 0.3s;
  letter-spacing: 0.5px;
}

.social-link:hover {
  border-color: var(--navy-glow);
  color: var(--white);
  transform: translateY(-4px);
}

.contact-icon-wa {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}

.contact-icon-email {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
}

.social-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
}

.social-icon-2 {
  width: 26px;
  height: 26px;
  object-fit: contain;
  display: block;
}

.contact-cta-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  background: var(--charcoal-deep);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  text-align: center;
}

.cta-emoji {
  font-size: 3rem;
  margin-bottom: 24px;
}

.cta-text {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.cta-subtext {
  color: var(--white-dim);
  font-size: 0.9rem;
  margin-bottom: 32px;
}

/* ==================== FOOTER ==================== */
.footer {
  padding: 32px 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  text-align: center;
  color: var(--white-dim);
  font-size: 0.8rem;
}

.footer span {
  color: var(--navy-glow);
}

/* ==================== MOBILE MENU ==================== */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: rgba(26, 26, 26, 0.98);
  backdrop-filter: blur(20px);
  padding: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 999;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 14px 0;
  color: var(--white-muted);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fade-section {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.fade-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 900px) {
  .navbar {
    padding: 0 24px;
  }
  .nav-links {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }

  .hero {
    padding: 120px 24px 60px;
  }
  .hero-content {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  .hero-text {
    max-width: 100%;
  }
  .hero-subtitle {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero-photo {
    order: -1;
  }
  .photo-frame {
    width: 280px;
    height: 340px;
  }

  .stats-grid {
    gap: 32px;
    flex-wrap: wrap;
  }

  .section {
    padding: 60px 24px;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .contact-section {
    padding: 60px 24px;
  }
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}
