/* ========================================
   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;
  --primary-light: #60a5fa;
  --secondary: #7c3aed;
  --cyan: #06b6d4;
  --bg: #f8fafc;
  --text-dark: #0f172a;
  --text-light: #475569;
}

* {
  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.7;
  overflow-x: hidden;
}
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ========================================= */
/* BACKGROUND MESH & CYBER GRID              */
/* ========================================= */
.mesh-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}
.mesh-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.5;
  animation: breathe 15s 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: 0%;
  right: -10%;
  animation-delay: -5s;
}
.blob-cyan {
  width: 500px;
  height: 500px;
  background: #cffafe;
  top: 40%;
  left: 20%;
  animation-delay: -10s;
}

/* Garis-garis kotak transparan seperti Blueprint Teknologi */
.cyber-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

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

/* ========================================= */
/* IMMERSIVE STICKY STORYTELLING LAYOUT      */
/* ========================================= */
.page-wrapper {
  padding: 140px 5% 100px;
  max-width: 1300px;
  margin: 0 auto;
}

.sticky-container {
  display: flex;
  gap: 80px;
  align-items: flex-start;
  margin-bottom: 80px;
  position: relative;
}

/* Kolom Kiri: Tetap menempel di layar saat discroll */
.sticky-left {
  position: sticky;
  top: 140px;
  width: 40%;
  padding-bottom: 50px;
}

.badge-modern {
  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: 25px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.page-title {
  font-size: 4.5rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 20px;
  line-height: 1.1;
  letter-spacing: -2px;
}
.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.page-subtitle {
  font-size: 1.15rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 40px;
  text-align: justify;
}

/* Animasi Reactor */
.reactor-container {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.reactor-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--primary);
  border-bottom-color: var(--cyan);
  animation: spinRing linear infinite;
}
.ring-1 {
  animation-duration: 3s;
}
.ring-2 {
  width: 80%;
  height: 80%;
  border-top-color: var(--secondary);
  border-bottom-color: var(--primary);
  animation-duration: 4s;
  animation-direction: reverse;
}
.ring-3 {
  width: 60%;
  height: 60%;
  border-top-color: var(--cyan);
  border-bottom-color: var(--secondary);
  animation-duration: 2s;
}
.reactor-core {
  font-size: 1.5rem;
  color: var(--primary);
  background: rgba(255, 255, 255, 0.8);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.5);
}
@keyframes spinRing {
  100% {
    transform: rotate(360deg);
  }
}

/* Kolom Kanan */
.scroll-right {
  width: 60%;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

/* ========================================= */
/* KARTU SPOTLIGHT INTERAKTIF                */
/* ========================================= */
#cards-container:hover > .spotlight-card::after {
  opacity: 1;
}

.spotlight-card {
  background-color: rgba(255, 255, 255, 0.4);
  border-radius: 30px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}
.spotlight-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(37, 99, 235, 0.15);
}

/* Senter Border & Background */
.spotlight-card::before,
.spotlight-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.5s;
  z-index: 1;
  pointer-events: none;
}
.spotlight-card::before {
  background: radial-gradient(
    800px circle at var(--mouse-x) var(--mouse-y),
    rgba(37, 99, 235, 0.4),
    transparent 40%
  );
  z-index: 1;
}
.spotlight-card::after {
  background: radial-gradient(
    600px circle at var(--mouse-x) var(--mouse-y),
    rgba(255, 255, 255, 0.8),
    transparent 40%
  );
  z-index: 0;
}
.spotlight-card:hover::before {
  opacity: 1;
}

.card-content {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  border-radius: inherit;
  margin: 2px;
  padding: 50px 40px;
  position: relative;
  z-index: 2;
  height: calc(100% - 4px);
}
.watermark-number {
  position: absolute;
  top: -20px;
  right: 20px;
  font-size: 12rem;
  font-weight: 900;
  line-height: 1;
  color: rgba(37, 99, 235, 0.05);
  z-index: -1;
  font-family: Impact, sans-serif;
  pointer-events: none;
  user-select: none;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
}
.icon-glass {
  width: 65px;
  height: 65px;
  border-radius: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.8rem;
  color: white;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.spotlight-card:hover .icon-glass {
  transform: scale(1.15) rotate(10deg);
}

.icon-blue {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}
.icon-purple {
  background: linear-gradient(135deg, var(--secondary), #581c87);
}
.icon-cyan {
  background: linear-gradient(135deg, var(--cyan), #0369a1);
}

.card-content h3 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.3;
}
.card-content p {
  font-size: 1.1rem;
  color: var(--text-light);
  text-align: justify;
  line-height: 1.8;
}
.text-highlight {
  background: linear-gradient(
    120deg,
    rgba(37, 99, 235, 0.15) 0%,
    transparent 100%
  );
  padding: 0 5px;
  border-radius: 4px;
  font-weight: 700;
  color: var(--primary-dark);
  transition: 0.3s;
}
.text-highlight:hover {
  background: var(--primary);
  color: white;
}

/* ========================================= */
/* LANDASAN LITERATUR (3D FLIP CARDS)        */
/* ========================================= */
.literatur-section {
  width: 100%;
  margin: 0 auto 100px;
  perspective: 1000px;
  padding-top: 20px;
}
.literatur-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.flip-card {
  background-color: transparent;
  height: 380px;
  perspective: 1000px;
  cursor: pointer;
}
.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
  border-radius: 30px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}

/* Saat di-hover, putar 180 derajat ke sumbu Y */
.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
  box-shadow: 0 25px 50px rgba(37, 99, 235, 0.2);
}

/* Posisi Depan dan Belakang saling menutupi */
.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 30px;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

/* --- Desain Depan Kaca Putih --- */
.flip-card-front {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
}

.lit-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2.5rem;
  color: white;
  margin-bottom: 25px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}
.card-blue-front .lit-icon {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}
.card-purple-front .lit-icon {
  background: linear-gradient(135deg, var(--secondary), #581c87);
}
.card-cyan-front .lit-icon {
  background: linear-gradient(135deg, var(--cyan), #0369a1);
}

.flip-card-front h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 15px;
  line-height: 1.3;
}
.lit-author {
  font-size: 0.95rem;
  color: var(--text-light);
  font-weight: 700;
  padding: 6px 18px;
  background: #f1f5f9;
  border-radius: 50px;
}

/* --- Desain Belakang Solid/Gradien --- */
.flip-card-back {
  transform: rotateY(180deg);
  color: white;
  border: none;
}
.card-blue-back {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}
.card-purple-back {
  background: linear-gradient(135deg, var(--secondary), #581c87);
}
.card-cyan-back {
  background: linear-gradient(135deg, var(--cyan), #0369a1);
}

.flip-card-back p {
  font-size: 1.05rem;
  line-height: 1.7;
  text-align: justify;
}
.flip-card-back strong {
  color: #fff;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.2);
  padding: 2px 6px;
  border-radius: 4px;
}
.flip-card-back em {
  color: rgba(255, 255, 255, 0.8);
  font-style: italic;
  font-weight: 600;
}

/* ========================================= */
/* ANIMASI GLOBAL & NAVBAR                   */
/* ========================================= */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 1s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}
.reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: all 1s cubic-bezier(0.25, 1, 0.5, 1);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.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);
}
.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;
}
.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);
}
.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 {
  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;
}

/* EPIC GLOW FOOTER */
.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 DESIGN                         */
/* ========================================= */
@media (max-width: 1024px) {
  .sticky-container {
    gap: 40px;
  }
  .page-title {
    font-size: 3.5rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .literatur-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 850px) {
  /* Hancurkan efek sticky di Tablet / HP */
  .sticky-container {
    flex-direction: column;
    align-items: center;
    gap: 60px;
    margin-bottom: 60px;
  }
  .sticky-left {
    position: relative;
    top: 0;
    width: 100%;
    text-align: center;
    padding-bottom: 0;
  }
  .page-title {
    font-size: 3rem;
  }
  .page-subtitle {
    text-align: center;
  }
  .reactor-container {
    margin: 0 auto;
  }
  .scroll-right {
    width: 100%;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .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 {
    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;
  }

  .card-content {
    padding: 40px 25px;
  }
  .watermark-number {
    font-size: 8rem;
    right: 10px;
    top: 10px;
  }

  /* Literatur Fix Mobile */
  .literatur-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .flip-card {
    height: 420px;
  } /* Memperbesar ruang teks di HP */

  .footer-grid,
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .footer-brand .footer-desc {
    margin: 0 auto 30px;
  }
  .social-neon,
  .footer-links a,
  .footer-contact p {
    justify-content: center;
  }
}
