/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* BASE */
body {
  font-family: 'Poppins', sans-serif;
  background: #0b1f2a;
  color: #e6f1f5;
}

/* CONTAINER */
.container {
  max-width: 1100px;
  margin: auto;
  padding: 0 20px;
}

/* ================= NAVBAR ================= */
.navbar {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  border-radius: 50px;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(20px);
  z-index: 1000;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 25px;
}

.logo {
  font-weight: 700;
  font-size: 24px;
}

/* MENU */
nav {
  display: flex;
  gap: 25px;
}

nav a {
  color: #e6f1f5;
  text-decoration: none;
  position: relative;
}

/* underline hover */
nav a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: #22c55e;
  transition: 0.3s;
}

nav a:hover::after {
  width: 100%;
}

/* TOGGLE */
.menu-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
  color: #e6f1f5;
  transition: 0.3s;
}

.menu-toggle:hover {
  transform: scale(1.1);
}

/* MOBILE MENU */
@media (max-width: 768px) {
  nav {
    display: none;
    flex-direction: column;
    background: rgba(11, 31, 42, 0.95);
    backdrop-filter: blur(20px);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 20px;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    gap: 15px;
  }

  nav.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  nav a {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  nav a:last-child {
    border-bottom: none;
  }
}

/* ================= HERO ================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* SLIDER */
.slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4);
}

/* HERO TEXT */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 20px;
}

.hero h1 {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero p {
  margin: 0 auto;
  max-width: 600px;
  color: #cbd5f5;
  font-size: 18px;
  line-height: 1.6;
  text-shadow: 0 1px 5px rgba(0,0,0,0.3);
}

/* BUTTON */
.btn {
  display: inline-block;
  margin-top: 25px;
  padding: 15px 35px;
  border-radius: 50px;
  text-decoration: none;
  background: linear-gradient(135deg, #22c55e, #3b82f6);
  color: white;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(34, 197, 94, 0.4);
  background: linear-gradient(135deg, #16a34a, #2563eb);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(34, 197, 94, 0.3);
}

/* ================= PROGRAM ================= */
.program {
  padding: 100px 20px;
  text-align: center;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.05), rgba(59, 130, 246, 0.05));
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 50px;
  color: #e6f1f5;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  padding: 30px 25px;
  border-radius: 20px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.3s ease;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.card:hover {
  transform: translateY(-10px);
  background: rgba(255,255,255,0.12);
  box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #22c55e;
}

.card p {
  color: #cbd5f5;
  line-height: 1.6;
  font-size: 16px;
}

/* ================= CTA ================= */
.cta {
  padding: 80px 20px;
  text-align: center;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(34, 197, 94, 0.1));
  margin: 50px 0;
}

.cta h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 30px;
  color: #e6f1f5;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* ================= FOOTER ================= */
footer {
  text-align: center;
  padding: 30px 20px;
  background: linear-gradient(135deg, #08141d, #0b1f2a);
  border-top: 1px solid rgba(255,255,255,0.1);
}

footer p {
  color: #cbd5f5;
  font-size: 14px;
  margin: 0;
}

/* UTILITY CLASSES */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.d-flex { display: flex; }
.d-block { display: block; }
.d-none { display: none; }

.justify-center { justify-content: center; }
.align-center { align-items: center; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
.p-5 { padding: 3rem; }

/* ACCESSIBILITY */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* FOCUS STYLES */
.btn:focus,
nav a:focus {
  outline: 2px solid #22c55e;
  outline-offset: 2px;
}

/* SMOOTH SCROLLING */
html {
  scroll-behavior: smooth;
}

/* MOBILE SMALL (320px - 480px) */
@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .navbar {
    width: 95%;
    top: 10px;
  }

  .nav-content {
    padding: 12px 20px;
  }

  .logo {
    font-size: 20px;
  }

  .hero h1 {
    font-size: 28px;
    line-height: 1.2;
  }

  .hero p {
    font-size: 14px;
    margin-top: 15px;
  }

  .btn {
    padding: 10px 24px;
    font-size: 14px;
  }

  .program {
    padding: 60px 15px;
  }

  .section-title {
    font-size: 24px;
    margin-bottom: 30px;
  }

  .program-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .card {
    padding: 20px;
  }

  .card h3 {
    font-size: 16px;
  }

  .card p {
    font-size: 14px;
  }

  .cta {
    padding: 50px 15px;
  }

  .cta h2 {
    font-size: 20px;
  }

  footer {
    padding: 15px;
    font-size: 12px;
  }
}

/* MOBILE LARGE (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  .navbar {
    width: 92%;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero p {
    font-size: 16px;
  }

  .program-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .card {
    padding: 22px;
  }

  .section-title {
    font-size: 28px;
  }

  .cta h2 {
    font-size: 24px;
  }
}

/* TABLET (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .container {
    max-width: 900px;
    padding: 0 25px;
  }

  .navbar {
    width: 88%;
  }

  .nav-content {
    padding: 16px 30px;
  }

  .logo {
    font-size: 26px;
  }

  nav {
    gap: 20px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero p {
    font-size: 18px;
  }

  .program {
    padding: 80px 25px;
  }

  .program-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .card {
    padding: 25px;
  }

  .cta {
    padding: 70px 25px;
  }

  .cta h2 {
    font-size: 28px;
  }
}

/* DESKTOP SMALL (1025px - 1200px) */
@media (min-width: 1025px) and (max-width: 1200px) {
  .container {
    max-width: 1000px;
  }

  .hero h1 {
    font-size: 44px;
  }

  .program-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* DESKTOP LARGE (1201px+) */
@media (min-width: 1201px) {
  .container {
    max-width: 1200px;
  }

  .hero h1 {
    font-size: 48px;
  }

  .hero p {
    font-size: 20px;
  }

  .program-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }

  .card {
    padding: 30px;
  }
}

/* IPAD PRO LANDSCAPE */
@media (min-width: 1024px) and (max-width: 1366px) and (orientation: landscape) {
  .hero h1 {
    font-size: 42px;
  }

  .hero p {
    font-size: 18px;
  }
}

/* HIGH RESOLUTION SCREENS */
@media (min-resolution: 2dppx) {
  .hero h1 {
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  }

  .card {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  }
}

/* TOUCH DEVICES */
@media (hover: none) and (pointer: coarse) {
  .btn:hover {
    transform: none;
  }

  .card:hover {
    transform: none;
  }

  nav a:hover::after {
    width: 0;
  }

  .btn:active {
    transform: scale(0.98);
  }

  .card:active {
    transform: translateY(-5px);
  }
}

/* PRINT STYLES */
@media print {
  .navbar,
  .menu-toggle {
    display: none !important;
  }

  .hero {
    height: auto;
    padding: 50px 0;
  }

  .slide img {
    max-width: 100%;
    height: auto;
  }

  .btn {
    background: #333;
    color: white;
  }
}

/* HEADER PAGE */
.page-header {
  padding: 140px 20px 60px;
  text-align: center;
}

.page-header h1 {
  font-size: 36px;
}

/* PROGRAM PAGE */
.program-page {
  padding: 40px 20px 80px;
}

/* SECTION TITLE */
.section-title {
  margin-top: 60px;
  margin-bottom: 25px;
  font-size: 26px;
  color: #22c55e;
}

/* ================= THEME TOKENS ================= */
:root {
  --bg: #0b1f2a;
  --surface: rgba(255,255,255,0.06);
  --text: #e6f1f5;
  --muted: #9fb3bd;
  --primary: #22c55e;   /* green */
  --accent: #3b82f6;    /* blue */
  --border: rgba(255,255,255,0.12);
}

/* LIGHT MODE */
body.light {
  --bg: #f6f9fc;
  --surface: rgba(0,0,0,0.04);
  --text: #0f172a;
  --muted: #64748b;
  --primary: #16a34a;
  --accent: #2563eb;
  --border: rgba(0,0,0,0.08);
}

/* BASE */
body {
  background: var(--bg);
  color: var(--text);
  transition: background 0.4s ease, color 0.4s ease;
}

/* NAVBAR */
.navbar {
  background: var(--surface);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
}

/* CARD */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

/* TEXT */
nav a {
  color: var(--text);
}

/* HERO TEXT */
.hero p {
  color: var(--muted);
}

/* BUTTON */
.btn {
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

/* ================= TOGGLE STYLE ================= */
.theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  cursor: pointer;

  background: var(--surface);
  border: 1px solid var(--border);

  display: flex;
  align-items: center;
  justify-content: center;

  transition: 0.3s ease;
}

.theme-toggle:hover {
  transform: scale(1.1);
}

.theme-toggle .icon {
  font-size: 18px;
  transition: transform 0.4s ease;
}

/* animasi rotasi */
body.light .theme-toggle .icon {
  transform: rotate(180deg);
}

* {
  transition: background 0.3s ease, color 0.3s ease, border 0.3s ease;
}