/* =========================================
   AJC - Cotton Candy Blue Palette Edition
   ========================================= */

:root {
  /* Cotton Candy Color Tokens */
  --primary: #FFA6D5;          
  --primary-hover: #0ea5e9;
  --secondary: #FFA6D5;        
  --bg-main: #818CF8;          
  --periwinkle: #38BDF8;       
  --text-dark: #0F172A;        
  --text-muted: #475569;
  --white: #FFFFFF;
  --border-color: #BAE6FD;
  
  /* Liquid Glass Tokens */
  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-border: rgba(255, 255, 255, 0.8);
  --glass-shadow: 0 8px 32px 0 rgba(56, 189, 248, 0.15);
  --glass-blur: blur(12px);

  /* Typography */
  --font-heading: 'Oswald', sans-serif;
  --font-body: 'Poppins', sans-serif;
  
  /* Transitions */
  --trans: 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--text-dark);
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.bg-light {
  background-color: rgba(255, 255, 255, 0.4);
}

.text-center {
  text-align: center;
}

/* --- BUTTONS --- */
.btn {
  display: inline-block;
  padding: 12px 24px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: var(--trans);
  text-align: center;
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.4);
}

.btn-primary:hover {
  background-color: var(--secondary);
  color: var(--text-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 166, 213, 0.5);
}

.btn-outline {
  background-color: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline:hover {
  background-color: var(--white);
  color: var(--text-dark);
  border-color: var(--white);
  transform: translateY(-3px);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1.1rem;
}

.btn-full {
  display: block;
  width: 100%;
  border-radius: 8px;
}

.btn-text {
  display: inline-block;
  margin-top: 15px;
  font-weight: 600;
  color: var(--primary);
  font-size: 0.95rem;
  transition: var(--trans);
}

.btn-text:hover {
  color: var(--secondary);
  transform: translateX(5px);
}

/* --- NAVBAR & LOGO STYLING --- */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  padding: 20px 0;
  z-index: 1000;
  transition: var(--trans);
  border-bottom: 1px solid var(--glass-border);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  padding: 12px 0;
  box-shadow: var(--glass-shadow);
  border-bottom: 1px solid var(--glass-border);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-dark);
}

.logo-img {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.logo-text-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.logo-year {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  color: var(--text-dark);
  font-size: 0.9rem;
  padding: 3px 10px;
  border-radius: 8px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.15);
}

.nav-list {
  display: flex;
  gap: 30px;
}

.nav-link {
  color: var(--text-dark);
  font-weight: 500;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--trans);
}

.nav-link:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--text-dark);
  transition: var(--trans);
}

/* --- HERO SECTION --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  /* Tambahkan gambar PNG dengan lapisan gradasi transparan */
  background-image: linear-gradient(
      180deg, 
      rgba(186, 230, 253, 0.75) 0%, 
      rgba(129, 140, 248, 0.85) 100%
    ), 
    url('assets/bg-hero.png') !important;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  padding-top: 80px;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(circle at top right, rgba(56, 189, 248, 0.2) 0%, transparent 60%);
  pointer-events: none;
}

.hero-container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-content {
  max-width: 750px;
}

.badge {
  display: inline-block;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  color: var(--text-dark);
  padding: 8px 20px;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 20px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

.hero-title {
  font-size: 4.5rem;
  margin-bottom: 15px;
  letter-spacing: 1px;
}

.hero-title span {
  background: linear-gradient(135deg, var(--primary), var(--periwinkle));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.hero .btn-outline {
  color: var(--text-dark);
  border-color: var(--primary);
}
.hero .btn-outline:hover {
  background-color: var(--primary);
  color: var(--white);
}

/* --- STATS SECTION --- */
.stats-section {
  margin-top: -60px;
  position: relative;
  z-index: 3;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* --- LUXURY LIQUID GLASS CARDS & SPOTLIGHT EFFECT --- */
.stat-card, .cabor-card, .timeline-card, .cp-card {
  position: relative;
  overflow: hidden;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease;
}

/* Efek Spotlight Gradient yang Mengikuti Kursor */
.stat-card::before, .cabor-card::before, .timeline-card::before, .cp-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(600px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(255, 255, 255, 0.6), transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.stat-card:hover::before, .cabor-card:hover::before, .timeline-card:hover::before, .cp-card:hover::before {
  opacity: 1;
}

/* Memastikan konten di dalam kartu tetap di atas layer spotlight */
.stat-card > *, .cabor-card > *, .timeline-card > *, .cp-card > * {
  position: relative;
  z-index: 2;
}

.stat-card {
  padding: 30px 20px;
  text-align: center;
  border-bottom: 4px solid var(--primary);
}

.stat-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 20px 40px rgba(56, 189, 248, 0.25);
}

.stat-num {
  font-size: 2.5rem;
  color: var(--text-dark);
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* --- GENERAL SECTIONS --- */
.section-title {
  font-size: 2.5rem;
  color: var(--text-dark);
  margin-bottom: 15px;
}

.section-title span {
  background: linear-gradient(135deg, var(--primary), var(--periwinkle));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}

/* --- ABOUT SECTION & MASCOT STYLING --- */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-text p {
  margin-bottom: 15px;
  color: var(--text-muted);
}

.about-features {
  margin-top: 20px;
}

.about-features li {
  margin-bottom: 10px;
  font-weight: 600;
  color: var(--text-dark);
}

.mascot-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mascot-wrapper::before {
  content: '';
  position: absolute;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(255, 166, 213, 0.4) 0%, rgba(56, 189, 248, 0.2) 60%, transparent 80%);
  border-radius: 50%;
  z-index: 1;
  filter: blur(20px);
}

@keyframes floating {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(1deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

.mascot-img {
  position: relative;
  z-index: 2;
  max-width: 100%;
  max-height: 700px;
  object-fit: contain;
  filter: drop-shadow(0 15px 25px rgba(56, 189, 248, 0.2));
  animation: floating 4s ease-in-out infinite;
}

/* --- CABANG OLAHRAGA --- */
.cabor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.cabor-card {
  padding: 40px 30px;
  text-align: center;
  border-bottom: 4px solid transparent;
  display: flex;
  flex-direction: column;
}

.cabor-card:hover {
  transform: translateY(-8px);
  border-bottom-color: var(--primary);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 20px 40px rgba(56, 189, 248, 0.25);
}

.cabor-icon {
  background: rgba(56, 189, 248, 0.15);
  backdrop-filter: blur(4px);
  color: var(--primary);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: var(--trans);
}

.cabor-card:hover .cabor-icon {
  background: var(--primary);
  color: var(--white);
  transform: scale(1.1) rotate(5deg);
}

.cabor-icon svg {
  width: 40px;
  height: 40px;
}

.cabor-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.cabor-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  flex-grow: 1;
}

/* --- TIMELINE SECTION --- */
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.timeline-card {
  padding: 30px 20px;
  text-align: center;
}

.timeline-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 20px 40px rgba(56, 189, 248, 0.25);
}

.timeline-date {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text-dark);
  display: inline-block;
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 20px;
  border: 1px solid var(--glass-border);
}

.timeline-title {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.timeline-card p {
  color: var(--text-muted);
}

/* --- CONTACT PERSON SECTION --- */
.cp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.cp-card {
  padding: 30px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.cp-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 20px 40px rgba(56, 189, 248, 0.25);
  border-color: var(--primary);
}

.cp-icon {
  background: rgba(56, 189, 248, 0.15);
  backdrop-filter: blur(4px);
  color: var(--primary);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
}

.cp-icon svg {
  width: 30px;
  height: 30px;
}

.cp-card h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
  color: var(--text-dark);
}

.cp-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex-grow: 1;
}

/* --- CONTACT SECTION --- */
.contact-section {
  padding: 0 0 80px 0;
}

.contact-box {
  background: linear-gradient(135deg, rgba(255, 166, 213, 0.85), rgba(56, 189, 248, 0.85));
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  background-image: radial-gradient(circle at bottom left, rgba(255, 166, 213, 0.4) 0%, transparent 60%);
  padding: 60px;
  border-radius: 24px;
  text-align: center;
  color: var(--white);
  box-shadow: 0 20px 40px rgba(56, 189, 248, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.contact-box h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--white);
}

.contact-box p {
  font-size: 1.1rem;
  color: rgba(240, 249, 255, 0.95);
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.contact-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-box .btn-outline {
  color: var(--white);
  border-color: var(--white);
}
.contact-box .btn-outline:hover {
  background-color: var(--white);
  color: var(--text-dark);
}

/* --- FOOTER --- */
.footer {
  background: var(--text-dark);
  color: #94A3B8;
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.footer h4 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a:hover {
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #1E293B;
  padding-top: 20px;
  font-size: 0.9rem;
}

/* --- ANIMATIONS & REVEAL --- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 992px) {
  .hero-title { font-size: 3.5rem; }
  .grid-2 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .cabor-grid { grid-template-columns: 1fr; } 
  .timeline-grid { grid-template-columns: repeat(2, 1fr); }
  .cp-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
}

@media (max-width: 768px) {
  .nav-actions .btn { display: none; }
  .hamburger { display: flex; z-index: 1001; }
  
  .nav-menu {
    position: fixed;
    top: 0; right: -100%;
    width: 250px; height: 100vh;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: var(--glass-blur);
    border-left: 1px solid var(--glass-border);
    padding-top: 100px;
    transition: var(--trans);
  }
  
  .nav-menu.active { right: 0; }
  .nav-list { flex-direction: column; align-items: center; }
  
    .hero-title { font-size: 2.5rem; }
  .stats-section { margin-top: 40px; }
  .stats-grid { grid-template-columns: 1fr; }
  .timeline-grid { grid-template-columns: 1fr; }
  .cp-grid { grid-template-columns: 1fr; }
  .contact-box { padding: 40px 20px; }
}

/* --- TRANSISI GRADASI HALUS ANTAR SECTION --- */
body {
  font-family: var(--font-body);
  color: var(--text-dark);
  /* Membuat background utama mengalir dari biru muda ke periwinkle secara gradasi panjang */
  background: linear-gradient(180deg, #BAE6FD 0%, #818CF8 30%, #C084FC 70%, #818CF8 100%);
  background-attachment: fixed; /* Supaya gradasinya tetap stabil saat di-scroll */
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Membuat latar belakang setiap section menjadi transparan agar gradasi body terlihat menyatu */
.section, .stats-section, .hero {
  background: transparent !important;
}

/* Jika ingin kotak pembatas (seperti bg-light) juga bernuansa kaca cair yang menyatu */
.bg-light {
  background: rgba(255, 255, 255, 0.15) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

/* =========================================
   EFEK AWAN COTTON CANDY MELAYANG (FLOATING CLOUDS)
   ========================================= */

.clouds-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none; /* Supaya tidak mengganggu klik mouse */
  z-index: 1;
}

/* Bentuk Dasar Awan Lembut */
.cloud {
  position: absolute;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 100px;
  box-shadow: 0 8px 32px rgba(56, 189, 248, 0.1);
}

/* Awan 1 (Kiri Atas) */
.cloud-1 {
  width: 180px;
  height: 60px;
  top: 15%;
  left: -10%;
  animation: driftCloud 35s linear infinite;
}

/* Awan 2 (Kanan Tengah) */
.cloud-2 {
  width: 250px;
  height: 80px;
  top: 45%;
  right: -15%;
  animation: driftCloudSlow 45s linear infinite;
  animation-delay: -5s;
}

/* Awan 3 (Bawah) */
.cloud-3 {
  width: 200px;
  height: 70px;
  bottom: 10%;
  left: 20%;
  animation: driftCloud 40s linear infinite;
  animation-delay: -15s;
}

/* Animasi Bergeser Menyamping (Drift) */
@keyframes driftCloud {
  0% {
    transform: translateX(0) translateY(0);
  }
  50% {
    transform: translateX(60vw) translateY(-15px);
  }
  100% {
    transform: translateX(120vw) translateY(0);
  }
}

@keyframes driftCloudSlow {
  0% {
    transform: translateX(0) translateY(0);
  }
  50% {
    transform: translateX(-50vw) translateY(20px);
  }
  100% {
    transform: translateX(-110vw) translateY(0);
  }
}

/* MATCH RESULT */
.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 300px));
  gap: 24px;
  justify-content: center;
}

.result-card {
  display: block;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: var(--glass-shadow);
  backdrop-filter: var(--glass-blur);
  overflow: hidden;
  text-decoration: none;
  transition: transform var(--trans), box-shadow var(--trans);
}

.result-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(56, 189, 248, 0.3);
}

.result-card img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  display: block;
}

.result-label {
  display: block;
  padding: 12px;
  text-align: center;
  font-family: var(--font-heading);
  color: var(--text-dark);
  letter-spacing: 0.5px;
}