/* ==================================================
   STYLE.CSS — Undangan Pelantikan Gubernur Sumbar
   ================================================== */

/* --- RESET & VARIABLES --- */
:root {
  --primary-dark: #0a2c4b;
  --primary-brand: #1a6fb0;
  --primary-light: #e8f0fe;
  --accent: #f5b042;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --bg-soft: #f8fafc;
  --white: #ffffff;
  --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 40px rgba(0, 0, 0, 0.12);
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg-soft);
  color: var(--text-dark);
  overflow-x: hidden;
}

/* --- PARTICLE CANVAS --- */
#particles-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.page-content {
  position: relative;
  z-index: 1;
}

/* --- LOADING SCREEN --- */
#loading-screen {
  position: fixed;
  inset: 0;
  background: var(--primary-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  color: var(--white);
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

#loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.loading-logo {
  font-size: 3.5rem;
  margin-bottom: 0.5rem;
  animation: pulse 1.5s infinite ease-in-out;
}

.loading-text {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 1.2rem;
  letter-spacing: 1px;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

/* --- NAVBAR --- */
.navbar-portal {
  background: rgba(10, 44, 75, 0.92);
  backdrop-filter: blur(12px);
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: var(--transition);
}

.navbar-portal .container {
  padding: 0 1.5rem;
}

.navbar-brand-portal {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
}

.navbar-brand-portal .brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--primary-dark);
  font-size: 1.4rem;
}

.navbar-brand-portal .brand-text-sub {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 1px;
  margin-top: -2px;
}

.navbar-toggler-portal {
  border: none;
  color: var(--white);
  padding: 0;
}

.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

/* --- HERO GRADIENT WRAP --- */
.hero-gradient-wrap {
  background: linear-gradient(160deg, var(--primary-dark) 0%, var(--primary-brand) 70%, #2c7ebf 100%);
  position: relative;
}

/* --- HERO SECTION --- */
.hero-portal {
  padding: 160px 0 80px 0;
  position: relative;
  overflow: hidden;
  color: var(--white);
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  padding: 0.4rem 1.2rem;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  backdrop-filter: blur(4px);
  margin-bottom: 1.2rem;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.2rem;
}

.hero-title .accent {
  color: var(--accent);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  background: var(--accent);
  color: var(--primary-dark);
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 30px;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 8px 25px rgba(245, 176, 66, 0.3);
}

.btn-hero-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(245, 176, 66, 0.4);
  color: var(--primary-dark);
}

.btn-hero-outline {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 0.75rem 2rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.btn-hero-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
  color: var(--white);
}

/* --- HERO VISUAL --- */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-center-disc {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.15), rgba(255,255,255,0.02));
  border: 2px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 80px rgba(245, 176, 66, 0.15);
}

.center-icon {
  font-size: 8rem;
  color: var(--accent);
  text-shadow: 0 0 40px rgba(245, 176, 66, 0.4);
}

/* --- SECTIONS COMMON --- */
.section-pad {
  padding: 80px 0;
}

.section-on-dark {
  background: transparent;
  color: var(--white);
}

.section-on-dark .section-subtitle {
  color: rgba(255, 255, 255, 0.7);
}

.bg-soft {
  background: var(--bg-soft);
}

.section-header-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
  gap: 1.5rem;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.section-on-dark .section-eyebrow {
  color: var(--accent);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 500px;
}

.section-on-dark .section-title {
  color: var(--white);
}

/* --- BUTTONS --- */
.btn-portal-outline {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.5rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 30px;
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.btn-portal-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
  color: var(--white);
}

.btn-portal-sm {
  font-size: 0.9rem;
}

.btn-portal-primary {
  display: inline-flex;
  align-items: center;
  background: var(--primary-brand);
  color: var(--white);
  padding: 0.7rem 2rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.btn-portal-primary:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* --- COURSE CARD (digunakan untuk Agenda) --- */
.course-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.course-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.section-on-dark .course-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.section-on-dark .course-card h3 {
  color: var(--white);
}

.section-on-dark .course-card p {
  color: rgba(255, 255, 255, 0.7);
}

.course-icon {
  font-size: 2.8rem;
  color: var(--primary-brand);
  margin-bottom: 0.8rem;
}

.section-on-dark .course-icon {
  color: var(--accent);
}

.sks-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-brand);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 1rem;
  border-radius: 20px;
  margin-bottom: 0.8rem;
  letter-spacing: 1px;
}

.section-on-dark .sks-badge {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
}

.course-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.course-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  flex: 1;
}

.card-link {
  color: var(--primary-brand);
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
}

.card-link:hover {
  color: var(--primary-dark);
}

.section-on-dark .card-link {
  color: var(--accent);
}

.section-on-dark .card-link:hover {
  color: var(--white);
}

/* --- COURSE MINI CARD (digunakan untuk Info) --- */
.course-mini-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.2rem 1rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.03);
}

.course-mini-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.mini-num {
  display: inline-block;
  font-size: 1.8rem;
  color: var(--primary-brand);
  margin-bottom: 0.3rem;
}

/* --- GOAL LIST --- */
.goal-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.goal-list li {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}

.goal-check {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.goal-list li strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

/* --- FOOTER --- */
.footer-portal {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 0 1.5rem;
}

.footer-brand {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.8rem;
}

.footer-brand .brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--primary-dark);
  font-size: 1.3rem;
}

.footer-portal h5 {
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 1.2rem;
}

.footer-portal ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-portal ul a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: var(--transition);
}

.footer-portal ul a:hover {
  color: var(--white);
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.2rem;
  transition: var(--transition);
  text-decoration: none;
}

.footer-social a:hover {
  background: var(--accent);
  color: var(--primary-dark);
  transform: translateY(-3px);
}

.footer-divider {
  border-color: rgba(255, 255, 255, 0.1);
  margin: 2rem 0 1.2rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

/* --- BACK TO TOP --- */
#backToTop {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-brand);
  color: var(--white);
  border: none;
  font-size: 1.4rem;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: var(--transition);
  opacity: 0;
  visibility: hidden;
  z-index: 999;
}

#backToTop.show {
  opacity: 1;
  visibility: visible;
}

#backToTop:hover {
  background: var(--primary-dark);
  transform: translateY(-4px);
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2.6rem;
  }
  .hero-center-disc {
    width: 220px;
    height: 220px;
  }
  .center-icon {
    font-size: 5rem;
  }
  .hero-portal {
    padding: 140px 0 60px 0;
  }
  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  .hero-center-disc {
    width: 180px;
    height: 180px;
  }
  .center-icon {
    font-size: 4rem;
  }
  .section-pad {
    padding: 50px 0;
  }
  .section-title {
    font-size: 1.6rem;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
  }
  .footer-brand {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 1.6rem;
  }
  .hero-cta {
    flex-direction: column;
  }
  .btn-hero-primary,
  .btn-hero-outline {
    width: 100%;
    justify-content: center;
  }
  .hero-center-disc {
    width: 140px;
    height: 140px;
  }
  .center-icon {
    font-size: 3rem;
  }
}