/* ============================================================
   Custom Styles - Rakernas VIII & PIT Bidan 2026
   Melengkapi Tailwind CSS — Tema: Brand Purple #6f2da9
   ============================================================ */

/* === Smooth Scroll === */
html { scroll-behavior: smooth; }

/* === Selection === */
::selection { background-color: rgba(111, 45, 169, 0.2); color: #6f2da9; }

/* === Scrollbar === */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #6f2da9; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #7e22ce; }

/* === Navbar === */
#navbar { background: transparent; border-bottom: 1px solid transparent; }
#navbar.scrolled { background: linear-gradient(135deg, rgba(107,33,168,0.97), rgba(126,34,206,0.97), rgba(147,51,234,0.97)); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid rgba(255,255,255,0.1); box-shadow: 0 4px 30px rgba(107,33,168,0.3); }
#navbar:not(.scrolled) .nav-link { color: rgba(255,255,255,0.85); }
#navbar:not(.scrolled) .nav-link:hover { color: #fff; background: rgba(255,255,255,0.1); }
#navbar:not(.scrolled) .nav-link.active { color: #fff; background: rgba(255,255,255,0.15); }
#navbar:not(.scrolled) #menu-toggle { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.2); }
#navbar:not(.scrolled) #menu-toggle .menu-bar { background: #fff; }
.nav-link.active { color: #fff !important; background: rgba(255,255,255,0.15); }

/* === Countdown === */
.countdown-item { transition: transform 0.3s ease; }
.countdown-item:hover { transform: translateY(-4px); }

/* === Stats === */
.stat-card { transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.stat-card:hover { transform: translateY(-6px); }

/* === Speaker Card === */
.speaker-card { perspective: 1000px; }
.speaker-card > div { transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.speaker-card:hover > div { transform: translateY(-8px); background: rgba(255, 255, 255, 0.97); }

/* === Form === */
.form-input:focus { outline: none; }
.form-input.error { border-color: #ef4444 !important; background-color: #fef2f2 !important; }
.form-input.success { border-color: #10b981 !important; background-color: #f0fdfa !important; }
.error-message { transition: all 0.3s ease; }

/* === Agenda Tabs === */
.day-tab.active { position: relative; z-index: 1; }
.agenda-content { animation: fadeInUp 0.5s ease forwards; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); }}

/* === Mobile Menu === */
#mobile-menu { animation: slideDown 0.3s ease forwards; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); }}

/* === Button Loading === */
.btn-loading { pointer-events: none; opacity: 0.7; }
.btn-loading .btn-text { visibility: hidden; }
.btn-loading::after { content: ''; position: absolute; width: 20px; height: 20px; border: 2px solid #fff; border-top-color: transparent; border-radius: 50%; animation: spin 0.6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); }}

/* === Radio === */
input[type="radio"]:checked + div { border-color: #6f2da9; }

/* === Glass === */
.glass { background: rgba(255, 255, 255, 0.7); backdrop-filter: blur(12px) saturate(180%); -webkit-backdrop-filter: blur(12px) saturate(180%); border: 1px solid rgba(255, 255, 255, 0.3); }

/* === AOS === */
[data-aos] { pointer-events: none; }
[data-aos].aos-animate { pointer-events: auto; }

/* === Responsive === */
@media (max-width: 640px) {
    #navbar:not(.scrolled) .nav-link { color: rgba(255, 255, 255, 0.9); }
    #navbar:not(.scrolled) h1 { color: #fff !important; }
    #navbar:not(.scrolled) p { color: rgba(255, 255, 255, 0.7) !important; }
}

/* === Print === */
@media print { #navbar, footer { display: none !important; } }

/* === Siluet Bidan Animation === */
@keyframes siluetFloat {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-15px) scale(1.02); }
}
