/* ========================================
   RESET & BASE
   ======================================== */
@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;600;700;800&display=swap");

:root {
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --secondary: #7c3aed;
  --bg: #ffffff;
  --text-dark: #1e293b;
  --text-light: #64748b;
  --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --soft-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

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

body {
  font-family: "Plus Jakarta Sans", sans-serif;
  background-color: var(--bg);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ========================================= */
/* MESH BACKGROUND                           */
/* ========================================= */
.mesh-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background-color: #f8fafc;
}
.mesh-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  animation: floatBlobs 20s infinite alternate ease-in-out;
}
.blob-blue {
  width: 600px;
  height: 600px;
  background: #bfdbfe;
  top: -10%;
  left: -10%;
}
.blob-purple {
  width: 500px;
  height: 500px;
  background: #e9d5ff;
  bottom: 20%;
  right: -5%;
  animation-delay: -5s;
}
.blob-cyan {
  width: 400px;
  height: 400px;
  background: #cffafe;
  top: 40%;
  left: 30%;
  animation-delay: -10s;
}

@keyframes floatBlobs {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(50px, -50px) scale(1.1);
  }
}

/* ========================================
   PAGE HEADER DOKUMENTASI
   ======================================== */
.page-wrapper {
  padding: 80px 10%;
  min-height: 100vh;
}
.page-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: var(--primary);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.1);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.page-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin: 20px 0;
  letter-spacing: -1px;
}
.gradient-text {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.page-subtitle {
  color: var(--text-light);
  font-size: 1.15rem;
  line-height: 1.7;
}

/* ========================================
   ASYMMETRICAL BENTO GALLERY
   ======================================== */
.bento-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 260px;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.bento-item {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  background: #000;
  cursor: pointer;
}

.bento-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  z-index: 5;
  transition: 0s;
}
.bento-item:hover::before {
  animation: shine 0.8s;
}
@keyframes shine {
  100% {
    left: 200%;
  }
}

.featured-large {
  grid-column: span 2;
  grid-row: span 2;
}
.featured-wide {
  grid-column: span 2;
  grid-row: span 1;
}
.featured-small {
  grid-column: span 1;
  grid-row: span 1;
}

.bento-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.8s cubic-bezier(0.2, 1, 0.3, 1),
    opacity 0.5s;
  opacity: 0.8;
}
.item-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to top,
    rgba(15, 23, 42, 0.95) 0%,
    rgba(15, 23, 42, 0.4) 40%,
    transparent 100%
  );
  opacity: 0.6;
  transition: 0.5s;
}

.bento-item:hover img {
  transform: scale(1.08);
  opacity: 0.4;
}
.bento-item:hover .item-overlay {
  opacity: 1;
  background: linear-gradient(
    to top,
    rgba(37, 99, 235, 0.9) 0%,
    rgba(15, 23, 42, 0.6) 100%
  );
}

.item-tag {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  color: white;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.3);
  z-index: 2;
  transition: 0.4s;
}
.bento-item:hover .item-tag {
  background: var(--primary);
  border-color: var(--primary);
}

.item-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px;
  color: white;
  z-index: 2;
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.bento-item:hover .item-content {
  transform: translateY(0);
  opacity: 1;
}
.item-content h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.2;
}
.featured-small .item-content h3 {
  font-size: 1.1rem;
}
.item-content p {
  font-size: 0.9rem;
  color: #cbd5e1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.detail-btn {
  display: inline-block;
  margin-top: 15px;
  text-decoration: none;
  color: white;
  font-size: 0.85rem;
  font-weight: 700;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: 0.3s;
}
.detail-btn:hover {
  border-color: white;
  gap: 10px;
}

/* ========================================
   ANIMASI MASUK (FADE UP)
   ======================================== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: obsFadeIn 0.8s ease forwards;
}

@keyframes obsFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================= */
/* WOW NAVBAR (FLOATING CAPSULE)             */
/* ========================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 85px;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* State ketika discroll: Kapsul Melayang */
.navbar.scrolled {
  top: 20px;
  left: 5%;
  width: 90%;
  height: 75px;
  padding: 0 4%;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 1);
}

.brand-name {
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--text-dark);
}
.brand-name .highlight {
  color: var(--primary);
}
.logo-img {
  width: 35px;
  margin-right: 12px;
  transition: 0.3s;
}
.navbar.scrolled .logo-img {
  width: 30px;
}

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

/* Menu Links Hover Pill */
.nav-link,
.dropbtn {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 18px;
  border-radius: 30px;
  transition: 0.3s;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}
.nav-link:hover,
.nav-link.active,
.dropdown:hover .dropbtn {
  background: var(--primary);
  color: white;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
  transform: translateY(-2px);
}

/* WOW Dropdown Animation (DESKTOP) */
.dropdown {
  position: relative;
}
.dropdown-content {
  position: absolute;
  top: 130%;
  left: 50%;
  transform: translateX(-50%) scale(0.9);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  min-width: 220px;
  border-radius: 20px;
  padding: 12px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
  border: 1px solid white;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) scale(1);
  top: 115%;
}
.dropdown-content a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  text-decoration: none;
  color: var(--text-dark);
  border-radius: 12px;
  transition: 0.2s;
  font-weight: 600;
  font-size: 0.9rem;
}
.dropdown-content a i {
  color: var(--primary);
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}
.dropdown-content a:hover {
  background: #f1f5f9;
  color: var(--primary);
  transform: translateX(5px);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  z-index: 1001;
}
.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--text-dark);
  border-radius: 3px;
  transition: 0.3s;
}

/* PASTIKAN KONTEN HALAMAN TURUN (Karena Navbar Fixed) */
.page-wrapper,
.model-guru-wrapper,
.refleksi-page {
  padding-top: 140px;
}

/* ========================================= */
/* EPIC GLOW FOOTER (DARK MODE)              */
/* ========================================= */
.epic-footer {
  position: relative;
  background: #020617;
  color: white;
  padding: 100px 0 30px;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.footer-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  z-index: 0;
  opacity: 0.3;
  pointer-events: none;
}
.f-orb-1 {
  width: 400px;
  height: 400px;
  background: var(--primary);
  top: -200px;
  left: -100px;
}
.f-orb-2 {
  width: 500px;
  height: 500px;
  background: #7c3aed;
  bottom: -200px;
  right: -200px;
}

.footer-container {
  position: relative;
  z-index: 1;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}
.footer-cta {
  text-align: center;
  margin-bottom: 80px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-cta h2 {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 15px;
}
.footer-cta span {
  background: linear-gradient(90deg, #60a5fa, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.footer-cta p {
  font-size: 1.2rem;
  color: #94a3b8;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}
.footer-brand .footer-logo {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 15px;
}
.footer-brand .footer-logo span {
  color: #60a5fa;
}
.footer-brand .footer-desc {
  color: #94a3b8;
  max-width: 350px;
  line-height: 1.8;
  margin-bottom: 30px;
}

.social-neon {
  display: flex;
  gap: 15px;
}
.neon-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: white;
  text-decoration: none;
  transition: 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.neon-btn:hover {
  background: var(--primary);
  box-shadow: 0 0 20px var(--primary);
  transform: translateY(-5px);
  border-color: var(--primary);
}

.footer-links h4,
.footer-contact h4 {
  font-size: 1.2rem;
  margin-bottom: 25px;
  color: white;
  font-weight: 700;
}
.footer-links ul {
  list-style: none;
}
.footer-links li {
  margin-bottom: 15px;
}
.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: 0.3s;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}
.footer-links a i {
  font-size: 0.8rem;
  opacity: 0;
  transform: translateX(-10px);
  transition: 0.3s;
  color: #60a5fa;
}
.footer-links a:hover {
  color: white;
  transform: translateX(5px);
}
.footer-links a:hover i {
  opacity: 1;
  transform: translateX(0);
}

.footer-contact p {
  color: #94a3b8;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-contact p i {
  color: #60a5fa;
}
.map-glass {
  width: 100%;
  height: 120px;
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
}

.footer-copyright {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #64748b;
  font-size: 0.9rem;
}

/* ========================================= */
/* RESPONSIVE NAVBAR, GALLERY & FOOTER       */
/* ========================================= */

@media (max-width: 1024px) {
  /* --- FOOTER --- */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* --- BENTO GALLERY (Dari Kode Bawah) --- */
  .bento-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  .featured-large {
    grid-column: span 2;
    grid-row: span 2;
  }
  .featured-wide {
    grid-column: span 2;
    grid-row: span 1;
  }
  .featured-small {
    grid-column: span 1;
    grid-row: span 1;
  }
  .page-title {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  /* --- NAVBAR MOBILE --- */
  .navbar.scrolled {
    width: 96%;
    left: 2%;
    top: 10px;
    padding: 0 5%;
  }
  .hamburger {
    display: flex;
    z-index: 1100;
  }

  .nav-right {
    position: absolute;
    top: 95px;
    left: -120%;
    width: 100%;
    background: #ffffff !important;
    flex-direction: column;
    padding: 20px 0;
    transition: 0.4s ease-in-out;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    align-items: center;
    border-radius: 20px;
    opacity: 0;
    visibility: hidden;
  }
  .navbar.scrolled .nav-right {
    top: 80px;
  }

  .nav-right.active {
    left: 0;
    opacity: 1;
    visibility: visible;
  }

  .nav-link,
  .dropbtn {
    width: 90%;
    justify-content: center;
    margin: 5px 0;
    text-align: center;
  }

  /* DROPDOWN MENU MOBILE */
  .dropdown {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .dropdown-content {
    position: relative;
    top: 0;
    left: 0;
    transform: none !important;
    width: 90%;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.03);
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    display: none;
    margin-top: 5px;
    padding: 10px;
    opacity: 1;
    visibility: visible;
  }
  .dropdown:hover .dropdown-content,
  .dropdown:focus-within .dropdown-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: none !important;
  }
  .dropdown-content a {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 10px; /* Ditambahkan dari kode bawah */
  }
  .dropdown-content a:hover {
    transform: translateY(-2px);
  }

  /* Ditambahkan dari kode bawah */
  .dropdown:hover .chevron {
    margin-bottom: 0;
  }

  /* --- BENTO GALLERY MOBILE (Dari Kode Bawah) --- */
  .bento-gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: 300px;
  }
  .featured-large,
  .featured-wide,
  .featured-small {
    grid-column: span 1;
    grid-row: span 1;
  }

  /* Supaya di HP tulisan selalu terlihat (tidak perlu hover) */
  .item-content {
    transform: translateY(0);
    opacity: 1;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  }
  .bento-item img {
    opacity: 0.6;
  }

  /* --- FOOTER MOBILE --- */
  .footer-cta h2 {
    font-size: 2rem;
  }

  /* Class footer-grid (dari atas) & footer-container (dari bawah) digabung */
  .footer-grid,
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .footer-brand .footer-desc {
    margin: 0 auto 30px;
  }

  /* Ditambahkan dari kode bawah */
  .footer-col h4::after {
    left: 50%;
    transform: translateX(-50%);
  }

  /* Class social-neon (dari atas) & social-links (dari bawah) digabung */
  .social-neon,
  .social-links {
    justify-content: center;
  }
  .footer-links a {
    justify-content: center;
  }
  .footer-contact p {
    justify-content: center;
  }
}

/* ========================================= */
/* RESPONSIVE (HP KECIL)                     */
/* Ditambahkan dari kode bawah               */
/* ========================================= */
@media (max-width: 600px) {
  .blob-blue,
  .blob-purple,
  .blob-cyan {
    transform: scale(0.6);
  }
}
