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

:root {
  --primary: #2563eb;
  --accent: #8b5cf6;
  --secondary: #7c3aed;
  --cyan: #06b6d4;
  --dark: #0f172a;
  --light: #f8fafc;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Plus Jakarta Sans", sans-serif;
  scroll-behavior: smooth;
}
body {
  background-color: var(--light);
  color: var(--text-main);
  overflow-x: hidden;
}
.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

/* ========================================= */
/* TEXT GRADIENT & ANIMATION CLASSES         */
/* ========================================= */
.text-center {
  text-align: center;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Hero Section Animasi Masuk */
.fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUpAnim 1s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}
@keyframes fadeUpAnim {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-slide-up {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Animasi Mengetik Teks (Typing Wipe) */
.type-wipe {
  display: inline-block;
  clip-path: inset(0 100% 0 0); /* Teks disembunyikan ke arah kanan */
  animation: wipeRight 0.8s steps(20, end) forwards;
}
@keyframes wipeRight {
  to {
    clip-path: inset(0 -5% 0 0);
  } /* Muncul penuh */
}

/* ========================================= */
/* AMBIENT BACKGROUND GLOW                   */
/* ========================================= */
.ambient-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background: #f8fafc;
  overflow: hidden;
}
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.5;
  animation: drift 20s infinite alternate linear;
}
.blob-1 {
  width: 50vw;
  height: 50vw;
  background: #dbeafe;
  top: -20%;
  left: -10%;
}
.blob-2 {
  width: 60vw;
  height: 60vw;
  background: #e0e7ff;
  bottom: -20%;
  right: -10%;
  animation-delay: -5s;
}
.blob-3 {
  width: 40vw;
  height: 40vw;
  background: #f3e8ff;
  top: 30%;
  left: 40%;
  animation-delay: -10s;
}

@keyframes drift {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(120px, -60px) scale(1.1);
  }
}

/* ========================================= */
/* 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: var(--transition);
}

.navbar.scrolled {
  top: 20px;
  left: 5%;
  width: 90%;
  height: 75px;
  padding: 0 4%;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.9);
  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-main);
}
.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-main);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 18px;
  border-radius: 30px;
  transition: var(--transition);
  border: none;
  background: transparent;
  cursor: pointer;
}
.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-main);
  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-main);
  border-radius: 3px;
  transition: 0.3s;
}

/* ========================================= */
/* HERO EDITORIAL                            */
/* ========================================= */

.hero-content {
  padding-top: 30px;
}
.hero-editorial {
  padding: 160px 0 50px;
  text-align: center;
}
.tagline {
  display: inline-block;
  padding: 8px 22px;
  background: white;
  color: var(--primary);
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.1);
  margin-bottom: 25px;
  border: 1px solid rgba(37, 99, 235, 0.1);
}
.huge-title {
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: -2px;
  margin-bottom: 20px;
  color: var(--dark);
}
/* Efek gradient di h1 sekarang dipanggil dari .text-gradient class */

.hero-desc {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ========================================= */
/* HOLOGRAPHIC GLASS PANEL (VISI & MISI)     */
/* ========================================= */
.vision-mission-premium {
  padding: 40px 0 80px;
}
.glass-panel-wrapper {
  position: relative;
  width: 100%;
  border-radius: 40px;
  background: rgba(255, 255, 255, 0.4);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.8);
  overflow: hidden;
  animation: floatPanel 6s ease-in-out infinite;
}
@keyframes floatPanel {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.panel-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  z-index: 0;
  opacity: 0.6;
}
.orb-1 {
  width: 300px;
  height: 300px;
  background: var(--primary);
  top: -50px;
  left: -50px;
  animation: orbMove 10s infinite alternate;
}
.orb-2 {
  width: 400px;
  height: 400px;
  background: var(--secondary);
  bottom: -100px;
  right: -50px;
  animation: orbMove 15s infinite alternate-reverse;
}
@keyframes orbMove {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(100px, 50px) scale(1.2);
  }
}

.glass-panel-inner {
  position: relative;
  z-index: 1;
  padding: 60px;
  display: flex;
  gap: 60px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
}
.vision-side,
.mission-side {
  flex: 1;
}

.super-tag {
  display: block;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
}
.vision-title {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--dark);
}
.vision-text {
  font-size: 1.2rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.mission-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 20px;
}
.mission-list li {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.icon-glow {
  width: 50px;
  height: 50px;
  background: white;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--primary);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.15);
  flex-shrink: 0;
}
.mission-list h4 {
  font-size: 1.2rem;
  color: var(--dark);
  margin-bottom: 5px;
}
.mission-list p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ========================================= */
/* INTERACTIVE FLEX ACCORDION (PILAR)        */
/* ========================================= */
.interactive-competency {
  padding: 60px 0 80px;
}
.section-title {
  text-align: center;
  margin-bottom: 50px;
}
.section-title h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 10px;
}
.section-title p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.title-line-wow {
  width: 100px;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 10px;
  margin-top: 15px;

  /* Tambahkan ini */
  margin-left: auto;
  margin-right: auto;
}

.flex-accordion {
  display: flex;
  width: 100%;
  height: 400px;
  gap: 15px;
}
.flex-panel {
  position: relative;
  flex: 1;
  border-radius: 30px;
  overflow: hidden;
  transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Background Gradients */
.panel-1 {
  background: linear-gradient(135deg, #1d4ed8, #3b82f6);
}
.panel-2 {
  background: linear-gradient(135deg, #6d28d9, #a855f7);
}
.panel-3 {
  background: linear-gradient(135deg, #0369a1, #06b6d4);
}

.panel-title-vertical {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-90deg);
  font-size: 1.8rem;
  font-weight: 800;
  color: white;
  letter-spacing: 5px;
  transition: 0.4s;
  white-space: nowrap;
  text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.panel-content {
  position: absolute;
  bottom: 30px;
  left: 30px;
  color: white;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.5s ease;
  width: 500px;
}
.panel-content h3 {
  font-size: 2rem;
  margin-bottom: 15px;
  font-weight: 800;
}
.panel-content p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.panel-icon {
  position: absolute;
  top: 30px;
  left: 30px;
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
}

.flex-panel:hover {
  flex: 4;
}
.flex-panel:hover .panel-title-vertical {
  opacity: 0;
}
.flex-panel:hover .panel-content {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}

/* ========================================= */
/* THE ULTIMATE: 3D AURORA FLIP CARDS        */
/* ========================================= */
.character-flip {
  padding: 40px 0 100px;
  perspective: 1000px;
}
.flip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.flip-card {
  background-color: transparent;
  width: 100%;
  height: 350px;
  perspective: 1000px;
}
.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;
}
.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 30px;
}

/* Front Face */
.flip-card-front {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.04);
}
.front-icon {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 20px;
}
.flip-card-front h4 {
  font-size: 1.4rem;
  color: var(--dark);
  font-weight: 800;
}
.flip-hint {
  position: absolute;
  bottom: 20px;
  right: 20px;
  font-size: 1.2rem;
  color: var(--text-muted);
  opacity: 0.5;
  animation: bounceHint 2s infinite;
}
@keyframes bounceHint {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-5px);
  }
}

/* Back Face with Aurora Gradients */
.flip-card-back {
  color: white;
  transform: rotateY(180deg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}
.aurora-blue {
  background: linear-gradient(135deg, #1e3a8a, #3b82f6);
}
.aurora-pink {
  background: linear-gradient(135deg, #be185d, #f43f5e);
}
.aurora-orange {
  background: linear-gradient(135deg, #c2410c, #f97316);
}
.aurora-teal {
  background: linear-gradient(135deg, #0f766e, #14b8a6);
}

.back-icon {
  font-size: 3.5rem;
  opacity: 0.2;
  position: absolute;
  top: 20px;
  right: 20px;
}
.back-content {
  position: relative;
  z-index: 2;
  text-align: left;
}
.back-content h4 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 15px;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.back-content p {
  font-size: 1rem;
  line-height: 1.6;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* ========================================= */
/* 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;
}
.f-orb-1 {
  width: 400px;
  height: 400px;
  background: var(--primary);
  top: -200px;
  left: -100px;
}
.f-orb-2 {
  width: 500px;
  height: 500px;
  background: var(--secondary);
  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) {
  .huge-title {
    font-size: 3rem;
  }
  .glass-panel-inner {
    flex-direction: column;
    gap: 40px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@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;
    display: flex;
  }
  .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;
  }
  .dropdown-content a:hover {
    transform: translateY(-2px);
  }

  /* --- KONTEN HALAMAN MOBILE --- */
  .hero-editorial {
    padding: 120px 0 20px;
  }
  .huge-title {
    font-size: 2.2rem;
  }
  .glass-panel-inner {
    padding: 30px;
    border-radius: 30px;
  }
  .mission-list li {
    flex-direction: column;
    gap: 15px;
  }

  .flex-accordion {
    flex-direction: column;
    height: 600px;
  }
  .flex-panel {
    width: 100%;
  }
  .flex-panel:hover {
    flex: 3;
  }
  .panel-title-vertical {
    transform: translate(-50%, -50%) rotate(0deg);
    letter-spacing: 2px;
  }

  /* --- FOOTER MOBILE --- */
  .footer-cta h2 {
    font-size: 2rem;
  }
  .footer-grid,
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .footer-brand .footer-desc {
    margin: 0 auto 30px;
  }
  .social-neon,
  .social-links {
    justify-content: center;
  }
}
