/* Custom Base Styles */
:root {
  /* Updated Cakrawala Palette */
  --color-primary: #149FC4;   /* Cakrawala Teal */
  --color-secondary: #1E293B; /* Text Dark */
  --color-accent: #F6901E;    /* Brand Orange */
  --color-success: #25D366;   /* WhatsApp Green */
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* Offset for sticky navbar */
}

body {
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
}

/* Navbar state (versi 2) */
.nav-scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 25px -15px rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid #e2e8f0;
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
}

/* Animations */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

.stagger-delay-1 { transition-delay: 0.1s; }
.stagger-delay-2 { transition-delay: 0.2s; }
.stagger-delay-3 { transition-delay: 0.3s; }
.stagger-delay-4 { transition-delay: 0.4s; }

.animate-bounce-slow {
    animation: bounce 3s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(-5%); }
    50% { transform: translateY(0); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Utilities */
.text-gradient {
  background: linear-gradient(135deg, var(--color-primary), #4ccdf0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Sliders */
.hide-scroll::-webkit-scrollbar {
  display: none;
}
.hide-scroll {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.contact-gradient {
  background: radial-gradient(circle at 80% 20%, rgba(20, 159, 196, 0.25) 0%, transparent 35%),
              radial-gradient(circle at 10% 80%, rgba(11, 177, 203, 0.2) 0%, transparent 40%),
              linear-gradient(135deg, #0f7a98 0%, #149fc4 45%, #0bb1cb 100%);
}

.icon-chip {
  background: linear-gradient(135deg, #f6901e, #f7a940);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 12px;
  border-radius: 14px;
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 25px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 0, 0, 0.04);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mikrotik-badge {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #ffffff;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 30px -18px rgba(0, 0, 0, 0.6);
}
.mikrotik-badge i {
  color: #f6901e;
}

.single-instructor {
  display: flex !important;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.instructor-card-simple {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  padding: 24px;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 12px 30px -18px rgba(0,0,0,0.25);
  text-align: center;
}
.instructor-card-simple:hover {
  box-shadow: 0 16px 38px -18px rgba(0,0,0,0.3);
  transform: translateY(-2px);
}

.lab-feature {
  text-align: center;
  padding: 16px;
  background: #111827;
  border-radius: 14px;
  border: 1px solid #1f2937;
  min-width: 96px;
  transition: all 0.2s ease;
}
.lab-feature:hover {
  border-color: rgba(246, 144, 30, 0.6);
  box-shadow: 0 12px 24px -14px rgba(0,0,0,0.6);
  transform: translateY(-2px);
}

.lab-card {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0;
  box-shadow: 0 24px 60px -30px rgba(0,0,0,0.5);
  background: linear-gradient(90deg, #0b1324 0%, #0f172a 45%, rgba(20, 159, 196, 0.12) 100%);
}

@media (min-width: 1024px) {
  .lab-card {
    flex-direction: row;
  }
}

/* Accordion Transition */
.accordion-content {
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}
.accordion-item.active .accordion-content {
    max-height: 200px; /* Approximate max height */
    opacity: 1;
}
.accordion-icon {
    transition: transform 0.3s ease;
}
.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

/* Co-Branding Styles */
.brand-divider {
  opacity: 0.6;
}

/* Mobile Menu */
.mobile-link:active {
    background-color: #eff6ff;
}

/* Certificate Modal */
.cert-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.55);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.cert-modal.show {
  opacity: 1;
  pointer-events: auto;
}
.cert-card {
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 20px 40px -22px rgba(0,0,0,0.55);
  width: min(520px, 92vw);
  text-align: center;
  border: 1px solid #e2e8f0;
}
.cert-title {
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 12px;
}
.cert-image {
  max-height: 360px;
  width: 100%;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}
.cert-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: transparent;
  border: none;
  font-size: 22px;
  color: #475569;
  cursor: pointer;
  line-height: 1;
}
