/* =====================================================
   TAEKWONDO CENTER — Premium Dark Theme
   Spotify Dark × Apple Minimalism × Neo Glassmorphism
   ===================================================== */

:root {
  --bg-deep: #0a0d0f;          /* deep black */
  --bg-charcoal: #12161a;      /* dark charcoal */
  --bg-gunmetal: #1a2026;      /* gunmetal */
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-glass: rgba(255, 255, 255, 0.06);
  --border-glass: rgba(255, 255, 255, 0.09);
  --accent: #10b981;           /* emerald */
  --accent-2: #34d399;
  --accent-blue: #2563eb;      /* taekwondo blue */
  --gold: #f5c542;
  --silver: #c8ccd4;
  --text-main: #f3f5f7;
  --text-muted: #9aa4ad;
  --radius: 18px;
  --shadow-soft: 0 10px 40px rgba(0, 0, 0, .45);
  --glow-accent: 0 0 32px rgba(16, 185, 129, .35);
  --transition: all .3s cubic-bezier(.4, 0, .2, 1);
}

* { -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(37, 99, 235, .12), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(16, 185, 129, .10), transparent 60%),
    var(--bg-deep);
  color: var(--text-main);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, .navbar-brand, .btn { font-family: 'Poppins', sans-serif; }
h1, h2, h3 { font-weight: 700; letter-spacing: -.02em; }

.text-accent  { color: var(--accent) !important; }
.text-gold    { color: var(--gold) !important; }
.text-muted-2 { color: var(--text-muted) !important; }

::selection { background: rgba(16, 185, 129, .4); }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: #2a333b; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ============ NAVBAR ============ */
.main-navbar {
  padding: .9rem 0;
  transition: var(--transition);
  background: transparent;
}
.main-navbar.scrolled {
  background: rgba(10, 13, 15, .82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-glass);
  padding: .55rem 0;
  box-shadow: 0 6px 30px rgba(0, 0, 0, .35);
}
.brand-badge {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-blue));
  color: #fff; font-size: 1.1rem;
  box-shadow: var(--glow-accent);
}
.brand-text { font-weight: 800; font-size: 1.1rem; color: #fff; }
.main-navbar .nav-link {
  color: rgba(255, 255, 255, .78);
  font-weight: 500; font-size: .93rem;
  padding: .5rem .9rem !important;
  border-radius: 10px;
  transition: var(--transition);
  position: relative;
}
.main-navbar .nav-link:hover,
.main-navbar .nav-link.active { color: #fff; background: rgba(255, 255, 255, .07); }

.mobile-nav {
  background: rgba(14, 18, 21, .96);
  backdrop-filter: blur(20px);
  border-left: 1px solid var(--border-glass);
}
.mobile-nav .nav-link { color: rgba(255,255,255,.8); font-weight: 500; border-radius: 10px; padding: .7rem 1rem; }
.mobile-nav .nav-link:hover { background: rgba(255,255,255,.06); color: #fff; }

/* ============ BUTTONS ============ */
.btn { border-radius: 12px; font-weight: 600; transition: var(--transition); }
.btn-accent {
  background: linear-gradient(135deg, var(--accent), #0d9668);
  color: #fff; border: none;
  box-shadow: 0 6px 22px rgba(16, 185, 129, .35);
}
.btn-accent:hover {
  color: #fff; transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(16, 185, 129, .5);
}
.btn-accent:active { transform: translateY(0); }
.btn-outline-light { border-color: rgba(255,255,255,.25); }
.btn-outline-light:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.4); color:#fff; }

/* Ripple effect */
.btn { position: relative; overflow: hidden; }
.ripple {
  position: absolute; border-radius: 50%;
  background: rgba(255, 255, 255, .35);
  transform: scale(0); animation: ripple .55s ease-out;
  pointer-events: none;
}
@keyframes ripple { to { transform: scale(3.2); opacity: 0; } }

/* ============ HERO SLIDER ============ */
.hero { position: relative; height: 100svh; min-height: 620px; overflow: hidden; }
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity 1.1s ease, visibility 1.1s;
  display: flex; align-items: center;
}
.hero-slide.active { opacity: 1; visibility: visible; z-index: 2; }
.hero-slide .slide-bg {
  position: absolute; inset: -6%;
  background-size: cover; background-position: center;
  transform: scale(1.06);
  transition: transform 7s ease;
  will-change: transform;
}
.hero-slide.active .slide-bg { transform: scale(1.14); }
.hero-slide .slide-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(8,10,12,.92) 25%, rgba(8,10,12,.55) 60%, rgba(8,10,12,.35));
}
.hero-slide video.slide-bg { object-fit: cover; width: 112%; height: 112%; }

/* 3D layer entrance */
.hero-content { position: relative; z-index: 3; perspective: 900px; }
.hero-content .layer { opacity: 0; transform: translateY(46px) rotateX(12deg); transition: all .9s cubic-bezier(.22,1,.36,1); }
.hero-slide.active .layer { opacity: 1; transform: none; }
.hero-slide.active .layer-1 { transition-delay: .25s; }
.hero-slide.active .layer-2 { transition-delay: .45s; }
.hero-slide.active .layer-3 { transition-delay: .65s; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .45rem 1.1rem;
  border-radius: 999px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(10px);
  color: var(--accent-2);
  font-weight: 600; font-size: .85rem;
}
.hero h1 {
  font-size: clamp(2.1rem, 5.2vw, 4rem);
  font-weight: 800; line-height: 1.12;
  margin: 1.1rem 0;
}
.hero h1 .grad {
  background: linear-gradient(120deg, var(--accent-2), #60a5fa, var(--accent-2));
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradShift 5s linear infinite;
}
@keyframes gradShift { to { background-position: 200% center; } }
.hero p.lead { color: rgba(255,255,255,.75); max-width: 560px; font-size: 1.05rem; }

/* Slider controls */
.hero-dots {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  z-index: 5; display: flex; gap: 10px;
}
.hero-dots button {
  width: 34px; height: 5px; border: none; border-radius: 4px;
  background: rgba(255,255,255,.25); cursor: pointer;
  transition: var(--transition);
}
.hero-dots button.active { background: var(--accent); width: 52px; box-shadow: var(--glow-accent); }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 5;
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg-glass); border: 1px solid var(--border-glass);
  backdrop-filter: blur(10px);
  color: #fff; font-size: 1.2rem; cursor: pointer;
  transition: var(--transition);
}
.hero-arrow:hover { background: var(--accent); box-shadow: var(--glow-accent); }
.hero-arrow.prev { left: 22px; }
.hero-arrow.next { right: 22px; }
@media (max-width: 576px) { .hero-arrow { display: none; } }

/* Scroll hint */
.scroll-hint {
  position: absolute; bottom: 70px; left: 50%; transform: translateX(-50%);
  z-index: 5; color: rgba(255,255,255,.5); font-size: 1.4rem;
  animation: floatY 8s ease-in-out infinite;   /* super pelan & halus */
}
@keyframes floatY {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 7px); }
}

/* ============ SECTIONS ============ */
section.page-section { padding: 96px 0; position: relative; }
.section-eyebrow {
  color: var(--accent); font-weight: 700; font-size: .85rem;
  letter-spacing: .18em; text-transform: uppercase;
}
.section-title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin: .5rem 0 1rem; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(36px); transition: all .8s cubic-bezier(.22,1,.36,1); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .12s; }
.reveal-delay-2 { transition-delay: .24s; }
.reveal-delay-3 { transition-delay: .36s; }

/* ============ CARDS ============ */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
}
.glass-card:hover {
  transform: translateY(-6px);
  border-color: rgba(16, 185, 129, .35);
  box-shadow: 0 18px 50px rgba(0,0,0,.5), 0 0 0 1px rgba(16,185,129,.15);
}
.glass-alert {
  background: var(--bg-glass); border: 1px solid var(--border-glass);
  color: var(--text-main); backdrop-filter: blur(10px); border-radius: 14px;
}
.alert-success.glass-alert { border-color: rgba(16,185,129,.5); }
.alert-danger.glass-alert  { border-color: rgba(239,68,68,.5); }
.alert-warning.glass-alert { border-color: rgba(245,197,66,.5); }

.icon-tile {
  width: 56px; height: 56px; border-radius: 16px;
  display: grid; place-items: center; font-size: 1.5rem;
  background: linear-gradient(135deg, rgba(16,185,129,.18), rgba(37,99,235,.18));
  border: 1px solid var(--border-glass);
  color: var(--accent-2);
}

/* Program card */
.program-card .price { font-family: 'Poppins'; font-weight: 800; font-size: 1.35rem; color: var(--accent-2); }
.badge-soft {
  background: rgba(37, 99, 235, .16); color: #93c5fd;
  border: 1px solid rgba(37, 99, 235, .3);
  border-radius: 999px; padding: .3rem .8rem; font-size: .78rem; font-weight: 600;
}

/* Coach card */
.coach-photo {
  width: 108px; height: 108px; border-radius: 50%;
  object-fit: cover; border: 3px solid var(--accent);
  box-shadow: var(--glow-accent);
}

/* Achievement medals */
.medal { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 1.25rem; }
.medal-Emas     { background: linear-gradient(135deg, #fbbf24, #b45309); color: #fff; box-shadow: 0 0 22px rgba(245,197,66,.4); }
.medal-Perak    { background: linear-gradient(135deg, #e5e7eb, #6b7280); color: #fff; }
.medal-Perunggu { background: linear-gradient(135deg, #d97706, #7c2d12); color: #fff; }
.medal-Lainnya  { background: linear-gradient(135deg, var(--accent), var(--accent-blue)); color: #fff; }

/* Stats counter */
.stat-number { font-family: 'Poppins'; font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 800; color: var(--accent-2); }

/* Gallery */
.gallery-item {
  border-radius: var(--radius); overflow: hidden; position: relative;
  aspect-ratio: 4 / 3; cursor: pointer; display: block;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,10,12,.85), transparent 55%);
  display: flex; align-items: flex-end; padding: 1rem;
  opacity: 0; transition: var(--transition);
}
.gallery-item:hover .overlay { opacity: 1; }

/* Testimonial */
.testi-card .stars { color: var(--gold); }
.testi-card blockquote { color: rgba(255,255,255,.82); font-size: .98rem; }

/* FAQ accordion */
.accordion-dark .accordion-item {
  background: var(--bg-card); border: 1px solid var(--border-glass);
  border-radius: 14px !important; margin-bottom: .8rem; overflow: hidden;
}
.accordion-dark .accordion-button {
  background: transparent; color: #fff; font-weight: 600;
  box-shadow: none; padding: 1.1rem 1.3rem;
}
.accordion-dark .accordion-button:not(.collapsed) { color: var(--accent-2); }
.accordion-dark .accordion-button::after { filter: invert(1) brightness(1.6); }
.accordion-dark .accordion-body { color: var(--text-muted); }

/* Schedule table */
.table-dark-glass { --bs-table-bg: transparent; color: var(--text-main); }
.table-dark-glass thead th {
  background: rgba(255,255,255,.05); color: var(--accent-2);
  border-color: var(--border-glass); font-family: 'Poppins'; font-size: .85rem;
  text-transform: uppercase; letter-spacing: .06em;
}
.table-dark-glass td { border-color: var(--border-glass); vertical-align: middle; }
.table-dark-glass tbody tr { transition: var(--transition); }
.table-dark-glass tbody tr:hover { background: rgba(16,185,129,.06); }

/* News card */
.news-card img { aspect-ratio: 16/9; object-fit: cover; }
.news-card .card-title a { color: #fff; text-decoration: none; }
.news-card .card-title a:hover { color: var(--accent-2); }

/* Sponsor strip */
.sponsor-logo {
  filter: grayscale(1) brightness(1.6); opacity: .55;
  transition: var(--transition); max-height: 44px;
}
.sponsor-logo:hover { filter: none; opacity: 1; }

/* ============ FORMS ============ */
.form-control, .form-select {
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border-glass);
  color: #fff; border-radius: 12px; padding: .7rem 1rem;
  transition: var(--transition);
}
.form-control:focus, .form-select:focus {
  background: rgba(255,255,255,.07); color: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 0 .2rem rgba(16,185,129,.18);
}
.form-control::placeholder { color: rgba(255,255,255,.35); }
.form-select option { background: var(--bg-charcoal); }
.form-label { font-weight: 500; font-size: .9rem; color: rgba(255,255,255,.85); }
.input-group-text { background: rgba(255,255,255,.06); border-color: var(--border-glass); color: var(--text-muted); }

/* Auth pages */
.auth-wrapper {
  min-height: 100svh; display: flex; align-items: center;
  padding: 110px 0 60px;
}
.auth-card { max-width: 480px; margin: 0 auto; padding: 2.4rem; }
.auth-card.wide { max-width: 860px; }

/* ============ DASHBOARD (user) ============ */
.dash-wrapper { padding: 110px 0 60px; min-height: 100svh; }
.stat-tile { padding: 1.4rem; display: flex; align-items: center; gap: 1rem; }
.stat-tile .icon-tile { flex-shrink: 0; }
.stat-tile h3 { font-size: 1.6rem; font-weight: 800; margin: 0; }
.stat-tile small { color: var(--text-muted); }

.file-thumb {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; font-size: 1.2rem;
  background: rgba(37,99,235,.15); color: #93c5fd;
}
.file-thumb.pdf { background: rgba(239,68,68,.15); color: #fca5a5; }
.file-thumb.img { background: rgba(16,185,129,.15); color: var(--accent-2); }
.file-thumb.zip { background: rgba(245,197,66,.15); color: var(--gold); }

/* Upload dropzone */
.dropzone {
  border: 2px dashed rgba(255,255,255,.2);
  border-radius: var(--radius);
  padding: 2.4rem 1rem; text-align: center;
  cursor: pointer; transition: var(--transition);
  color: var(--text-muted);
}
.dropzone:hover, .dropzone.dragover {
  border-color: var(--accent); color: var(--accent-2);
  background: rgba(16,185,129,.06);
}

/* Progress bar */
.progress { background: rgba(255,255,255,.08); border-radius: 99px; height: 10px; }
.progress-bar { background: linear-gradient(90deg, var(--accent), var(--accent-blue)); }

/* Skeleton loading */
.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,.05) 25%, rgba(255,255,255,.12) 50%, rgba(255,255,255,.05) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 10px;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* Footer */
.site-footer { background: rgba(8,10,12,.85); border-top: 1px solid var(--border-glass); margin-top: 40px; }
.footer-title { font-weight: 700; color: #fff; margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: .92rem; transition: var(--transition); }
.footer-links a:hover { color: var(--accent-2); padding-left: 4px; }
.footer-links li { color: var(--text-muted); font-size: .92rem; }
.footer-bottom { border-top: 1px solid var(--border-glass); }
.social-btn {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--bg-glass); border: 1px solid var(--border-glass);
  color: #fff; text-decoration: none; transition: var(--transition);
}
.social-btn:hover { background: var(--accent); color: #fff; transform: translateY(-3px); box-shadow: var(--glow-accent); }
.map-frame { border: 1px solid var(--border-glass); }

/* Pagination */
.pagination .page-link {
  background: var(--bg-card); border-color: var(--border-glass);
  color: var(--text-main); border-radius: 10px; margin: 0 3px;
}
.pagination .page-item.active .page-link { background: var(--accent); border-color: var(--accent); }
.pagination .page-link:hover { background: rgba(16,185,129,.2); color: #fff; }

/* Toast */
.toast { background: rgba(20,25,30,.95); border: 1px solid var(--border-glass); backdrop-filter: blur(10px); color: #fff; }

/* Back to top */
.back-top {
  position: fixed; bottom: 26px; right: 26px; z-index: 50;
  width: 46px; height: 46px; border-radius: 14px; border: none;
  background: var(--accent); color: #fff; font-size: 1.2rem;
  display: grid; place-items: center;
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: var(--transition); box-shadow: var(--glow-accent);
}
.back-top.show { opacity: 1; visibility: visible; transform: none; }

/* Motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;   /* animasi infinite berhenti, tidak flicker */
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
}
