/* ==============================
   DESIGN SYSTEM — PAMERAN UJI LEVEL
   SMKN 1 CIOMAS
   ============================== */

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

/* --- TOKENS --- */
:root {
  --navy: #2563eb;
  --navy-mid: #1d4ed8;
  --navy-light: #3b82f6;
  --blue-soft: #f0f7ff;
  --blue-line: #dbeafe;
  --white: #ffffff;
  --off-white: #f7f9fc;
  --gray-50: #f0f4f8;
  --gray-200: #cbd5e0;
  --gray-400: #718096;
  --gray-600: #4a5568;
  --gray-800: #1a202c;
  --text-main: #1a202c;
  --text-muted: #5a6a7e;
  --text-faint: #8a9bb0;
  --shadow-xs: 0 1px 3px rgba(13, 59, 102, 0.08);
  --shadow-sm: 0 2px 8px rgba(13, 59, 102, 0.1);
  --shadow-md: 0 4px 20px rgba(13, 59, 102, 0.12);
  --shadow-lg: 0 8px 40px rgba(13, 59, 102, 0.14);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --font-display: "Poppins", sans-serif;
  --font-body: "Poppins", sans-serif;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- RESET --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
  /* KUNCI: cegah overflow horizontal */
  overflow-x: hidden;
}
body {
  font-family: var(--font-body);
  color: var(--text-main);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* KUNCI: cegah overflow horizontal */
  overflow-x: hidden;
  width: 100%;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
}
button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* --- SCROLLBAR --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--gray-50); }
::-webkit-scrollbar-thumb { background: var(--blue-line); border-radius: 3px; }

/* --- LAYOUT --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 80px 0; }
.section--gray { background: var(--off-white); }
.section--navy { background: var(--navy); color: var(--white); }

/* --- TYPOGRAPHY --- */
.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy-light);
  margin-bottom: 10px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 12px;
}
.section-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.7;
}
.text-center { text-align: center; }
.text-center .section-sub { margin: 0 auto; }

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
}
.btn-primary {
  background: var(--navy);
  color: var(--white);
  border: 2px solid var(--navy);
}
.btn-primary:hover {
  background: var(--navy-mid);
  border-color: var(--navy-mid);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.25);
}
.btn:active { transform: scale(0.96); }
.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.5);
}
.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
}
.btn-sm { padding: 8px 16px; font-size: 0.82rem; }

/* ==============================
   NAVBAR
   ============================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-xs);
  /* KUNCI: pastikan navbar tidak overflow */
  width: 100%;
  left: 0;
  right: 0;
}
.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
}
.navbar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  /* Batasi lebar brand agar tidak overflow */
  min-width: 0;
  flex: 1;
}
.navbar__logo {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.navbar__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.navbar__brand-text {
  line-height: 1.2;
  /* Cegah teks meluber */
  min-width: 0;
  overflow: hidden;
}
.navbar__brand-name {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.navbar__brand-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Desktop nav */
.navbar__nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.navbar__link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: var(--transition);
  white-space: nowrap;
}
.navbar__link:hover { color: var(--navy); background: var(--blue-soft); }
.navbar__link.active {
  color: var(--navy);
  background: var(--blue-soft);
  font-weight: 600;
}

/* Hamburger toggle */
.navbar__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: transparent;
  transition: var(--transition);
  flex-shrink: 0;
  cursor: pointer;
  /* Pastikan area tap cukup besar */
  min-width: 40px;
  min-height: 40px;
  align-items: center;
}
.navbar__toggle:hover { background: var(--blue-soft); }
.navbar__toggle span {
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  display: block;
  transition: var(--transition);
  transform-origin: center;
}

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

/* Mobile dropdown nav */
.navbar__mobile {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  padding: 8px 0 12px;
  gap: 2px;
  /* Animasi slide down */
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              padding 0.35s ease;
}
.navbar__mobile.open {
  display: flex;
  max-height: 300px;
  padding: 8px 0 12px;
}
.navbar__mobile .navbar__link {
  display: block;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}
.navbar__mobile .navbar__link:hover {
  background: var(--blue-soft);
}

/* ==============================
   HERO
   ============================== */
.hero {
  background: linear-gradient(135deg, #2563eb 0%, #4338ca 100%);
  color: var(--white);
  padding: 80px 0 72px;
  position: relative;
  overflow: hidden;
  /* KUNCI: jangan biarkan konten hero overflow */
  width: 100%;
}
.hero::before {
  content: "";
  position: absolute;
  top: -60px; right: -80px;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -100px; left: 10%;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 20px;
  animation: fadeInUp 0.8s 0.1s both;
}
.hero__badge::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #5dbbff;
  flex-shrink: 0;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--white);
  animation: fadeInUp 0.8s 0.2s both;
}
.hero__title span { color: #90cdf4; }
.hero__desc {
  font-size: clamp(0.88rem, 2.5vw, 1.05rem);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.78);
  max-width: 580px;
  margin-bottom: 32px;
  animation: fadeInUp 0.8s 0.3s both;
}
.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s 0.4s both;
}

/* STATS BAR */
.stats-bar {
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}
.stats-bar__inner {
  display: flex;
  align-items: stretch;
}
.stats-bar__item {
  flex: 1;
  padding: 24px 16px;
  border-right: 1px solid var(--gray-200);
  text-align: center;
}
.stats-bar__item:last-child { border-right: none; }
.stats-bar__num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 6px;
}
.stats-bar__label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.3;
}

/* ==============================
   PROJECT CARDS
   ============================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--blue-line);
  transform: translateY(-4px);
}
.card__thumb-container {
  width: 100%;
  height: 160px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue-soft) 0%, #dbeeff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.card__thumb-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.card__thumb-placeholder {
  width: 100%;
  height: 160px;
  background: linear-gradient(135deg, var(--blue-soft) 0%, #dbeeff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
}
.card__thumb-placeholder svg { opacity: 0.45; }
.card__thumb-placeholder span {
  font-size: 0.75rem;
  color: var(--navy-light);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.card__body {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 40px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.badge--blue { background: var(--blue-soft); color: var(--navy-light); }
.badge--gray { background: var(--gray-50); color: var(--gray-600); }
.card__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
  line-height: 1.35;
}
.card__team {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.card__desc {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 12px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card__tech {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 14px;
}
.tech-tag {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--gray-50);
  color: var(--gray-600);
  border: 1px solid var(--gray-200);
}
.card__footer {
  border-top: 1px solid var(--gray-200);
  padding-top: 12px;
  margin-top: auto;
}

/* ==============================
   FILTER BAR
   ============================== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}
.search-wrap {
  position: relative;
  flex: 1;
  min-width: 200px;
}
.search-wrap svg {
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-faint);
  pointer-events: none;
}
.search-input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--text-main);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}
.search-input:focus {
  border-color: var(--navy-light);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.filter-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray-600);
  border: 1px solid var(--gray-200);
  background: var(--white);
  transition: var(--transition);
  white-space: nowrap;
}
.filter-btn:hover { border-color: var(--navy-light); color: var(--navy); }
.filter-btn.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.select-filter {
  padding: 8px 12px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--text-main);
  background: var(--white);
  outline: none;
  cursor: pointer;
  transition: var(--transition);
}
.select-filter:focus { border-color: var(--navy-light); }
.results-info {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.results-info strong { color: var(--navy); }

/* ==============================
   DETAIL PAGE
   ============================== */
.detail-hero {
  background: linear-gradient(135deg, #2563eb 0%, #4338ca 100%);
  color: var(--white);
  padding: 56px 0 44px;
}
.detail-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 20px;
  transition: var(--transition);
}
.detail-hero__back:hover { color: white; }
.detail-hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 10px;
}
.detail-hero__team {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 16px;
}
.detail-body { padding: 48px 0; }
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 36px;
  align-items: start;
}
.detail-main h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  margin-top: 24px;
}
.detail-main h3:first-child { margin-top: 0; }
.detail-main p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 10px;
}
.detail-screenshot {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  margin-bottom: 24px;
  background: var(--gray-50);
  max-height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.detail-screenshot img {
  max-width: 100%;
  max-height: 450px;
  object-fit: contain;
  display: block;
  cursor: pointer;
}
.detail-screenshot .card__thumb-placeholder { height: 240px; }
.detail-sidebar-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 16px;
}
.detail-sidebar-card h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 12px;
}
.member-list { display: flex; flex-direction: column; gap: 10px; }
.member-item { display: flex; align-items: center; gap: 10px; }
.member-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1.5px solid var(--blue-line);
}
.member-name { font-size: 0.85rem; font-weight: 600; color: var(--text-main); }
.member-role { font-size: 0.72rem; color: var(--text-faint); }
.detail-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-200);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
  transition: var(--transition);
}
.detail-link:hover { background: var(--blue-soft); border-color: var(--blue-line); }
.detail-link svg { flex-shrink: 0; color: var(--navy-light); }

/* ==============================
   ABOUT PAGE
   ============================== */
.about-hero { background: var(--navy); color: white; padding: 64px 0 48px; }
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.info-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 20px;
}
.info-card__icon {
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  background: var(--blue-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  color: var(--navy);
}
.info-card__title { font-size: 0.9rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.info-card__desc { font-size: 0.82rem; color: var(--text-muted); line-height: 1.65; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}
.gallery-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--gray-50);
  aspect-ratio: 4/3;
  border: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  font-size: 0.78rem;
  font-weight: 500;
  text-align: center;
  padding: 8px;
}

/* ==============================
   WELCOME / QUOTE
   ============================== */
.welcome-section {
  background: linear-gradient(135deg, #1d4ed8 0%, #4338ca 100%);
  padding: 72px 0;
}
.welcome-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.welcome-text { color: white; }
.welcome-text .section-label { color: #90cdf4; }
.welcome-text .section-title { color: white; }
.welcome-text .section-sub { color: rgba(255, 255, 255, 0.72); max-width: 100%; }
.welcome-quote {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  padding: 28px;
}
.welcome-quote__text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
  margin-bottom: 18px;
}
.welcome-quote__author { font-size: 0.82rem; color: rgba(255, 255, 255, 0.55); font-weight: 600; }

/* ==============================
   PAGE HEADER
   ============================== */
.page-hero {
  background: linear-gradient(135deg, #2563eb 0%, #4338ca 100%);
  color: white;
  padding: 56px 0 44px;
}
.page-hero .section-label { color: #90cdf4; }
.page-hero .section-title { color: white; }
.page-hero .section-sub { color: rgba(255, 255, 255, 0.7); }

/* ==============================
   FOOTER
   ============================== */
.footer {
  background: var(--gray-800);
  color: rgba(255, 255, 255, 0.75);
  padding: 48px 0 0;
}
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer__brand { display: flex; align-items: flex-start; gap: 14px; }
.footer__logo {
  width: 56px; height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.footer__logo img { width: 100%; height: 100%; object-fit: contain; }
.footer__brand-name { font-size: 0.95rem; font-weight: 700; color: white; margin-bottom: 4px; }
.footer__brand-desc { font-size: 0.8rem; line-height: 1.6; max-width: 300px; }
.footer__heading {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 12px;
}
.footer__links { display: flex; flex-direction: column; gap: 8px; }
.footer__links a { font-size: 0.85rem; transition: var(--transition); }
.footer__links a:hover { color: white; }
.footer__bottom {
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  gap: 12px;
  flex-wrap: wrap;
}

/* ==============================
   EMPTY STATE
   ============================== */
.empty-state {
  text-align: center;
  padding: 80px 24px;
  color: var(--text-muted);
}
.empty-state svg { margin: 0 auto 16px; opacity: 0.35; }
.empty-state h3 { font-size: 0.95rem; font-weight: 700; color: var(--gray-600); margin-bottom: 6px; }
.empty-state p { font-size: 0.85rem; }

/* ==============================
   PAGE TRANSITIONS
   ============================== */
.page { display: none; }
.page.active { display: block; animation: fadeIn 0.25s ease; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==============================
   RESPONSIVE — TABLET  (≤ 900px)
   ============================== */
@media (max-width: 900px) {
  /* Tampilkan hamburger, sembunyikan desktop nav */
  .navbar__nav { display: none; }
  .navbar__toggle { display: flex; }

  .welcome-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 28px; }
  .detail-layout { grid-template-columns: 1fr; }
}

/* ==============================
   RESPONSIVE — MOBILE  (≤ 640px)
   ============================== */
@media (max-width: 640px) {
  /* Kurangi padding section */
  .section { padding: 48px 0; }
  .container { padding: 0 16px; }

  /* Navbar: lebih ringkas */
  .navbar__inner { height: 64px; gap: 10px; }
  .navbar__logo { width: 40px; height: 40px; }
  .navbar__brand-name { font-size: 0.82rem; }
  .navbar__brand-sub { font-size: 0.65rem; }

  /* Hero: lebih kompak di mobile */
  .hero { padding: 48px 0 44px; }
  .hero__title { font-size: clamp(1.5rem, 7vw, 2rem); margin-bottom: 14px; }
  .hero__desc { font-size: 0.88rem; margin-bottom: 24px; }
  .hero__badge { font-size: 0.68rem; padding: 5px 12px; margin-bottom: 16px; }
  .hero__actions { flex-direction: column; gap: 10px; }
  .hero__actions .btn { width: 100%; justify-content: center; }

  /* Stats bar: 2 kolom di mobile */
  .stats-bar__inner { flex-wrap: wrap; }
  .stats-bar__item {
    flex: none;
    width: 50%;
    padding: 18px 12px;
  }
  .stats-bar__item:nth-child(2) { border-right: none; }
  .stats-bar__item:nth-child(3) { border-top: 1px solid var(--gray-200); border-right: 1px solid var(--gray-200); }
  .stats-bar__item:nth-child(4) { border-top: 1px solid var(--gray-200); border-right: none; }
  .stats-bar__num { font-size: 1.5rem; }

  /* Grid project: 1 kolom */
  .projects-grid { grid-template-columns: 1fr; gap: 16px; }

  /* Filter bar: vertikal */
  .filter-bar { flex-direction: column; align-items: stretch; gap: 10px; }
  .search-wrap { min-width: unset; }
  .filter-group { justify-content: flex-start; gap: 6px; }
  .filter-btn { font-size: 0.78rem; padding: 7px 12px; }
  .select-filter { width: 100%; }

  /* About page intro grid */
  .about-intro-grid { grid-template-columns: 1fr !important; gap: 24px !important; }

  /* Footer: 1 kolom */
  .footer__inner { grid-template-columns: 1fr; gap: 24px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 6px; }

  /* Welcome section */
  .welcome-section { padding: 48px 0; }
  .welcome-quote { padding: 20px; }
  .welcome-quote__text { font-size: 0.9rem; }

  /* Page hero */
  .page-hero { padding: 40px 0 32px; }
  .detail-hero { padding: 40px 0 32px; }
  .detail-body { padding: 32px 0; }

  /* Tombol detail full width */
  .detail-layout { gap: 24px; }
}

/* ==============================
   RESPONSIVE — SMALL MOBILE (≤ 380px)
   ============================== */
@media (max-width: 380px) {
  .container { padding: 0 12px; }
  .navbar__brand-sub { display: none; }
  .hero { padding: 40px 0 36px; }
  .hero__title { font-size: 1.4rem; }
  .stats-bar__num { font-size: 1.3rem; }
  .stats-bar__label { font-size: 0.7rem; }
}