/* =====================================================================
   SISTEM PAKAR REKOMENDASI JURUSAN PTN - STYLE UTAMA
   Tema: Sky Blue, Putih, Navy, Orange, Hijau | Glassmorphism Modern
   ===================================================================== */

:root {
    --sky-blue: #38bdf8;
    --sky-blue-dark: #0284c7;
    --navy: #0f172a;
    --navy-light: #1e293b;
    --orange: #fb923c;
    --green: #22c55e;
    --white: #ffffff;
    --gray-bg: #f1f5f9;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 8px;
    --shadow-soft: 0 8px 30px rgba(15, 23, 42, 0.08);
    --shadow-hover: 0 16px 40px rgba(15, 23, 42, 0.14);
    --gradient-main: linear-gradient(135deg, var(--sky-blue) 0%, var(--sky-blue-dark) 100%);
    --gradient-orange: linear-gradient(135deg, #fdba74 0%, var(--orange) 100%);
    --gradient-navy: linear-gradient(135deg, #1e293b 0%, var(--navy) 100%);
}

[data-bs-theme="dark"] {
    --gray-bg: #0b1220;
    --text-dark: #e2e8f0;
    --text-muted: #94a3b8;
    --white: #131c2e;
}

* { box-sizing: border-box; }

body {
    font-family: 'Nunito', sans-serif;
    background: var(--gray-bg);
    color: var(--text-dark);
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6, .brand-title, .fw-poppins {
    font-family: 'Poppins', sans-serif;
}

a { text-decoration: none; }

/* ===== Loading Screen ===== */
#loading-screen {
    position: fixed; inset: 0; z-index: 9999;
    background: var(--gradient-navy);
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
#loading-screen.hide { opacity: 0; visibility: hidden; }
.loader-box { text-align: center; }
.loader-ring {
    width: 60px; height: 60px; margin: 0 auto 16px;
    border: 4px solid rgba(56, 189, 248, 0.2);
    border-top-color: var(--sky-blue);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loader-text { color: white; font-family: 'Poppins', sans-serif; font-weight: 700; letter-spacing: 2px; }

/* ===== Skeleton Loading ===== */
.skeleton {
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius-sm);
}
@keyframes skeleton-loading { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ===== Navbar Glassmorphism ===== */
.navbar-glass {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.05);
    padding: 12px 0;
    transition: all 0.3s ease;
}
[data-bs-theme="dark"] .navbar-glass { background: rgba(19, 28, 46, 0.85); }

.brand-icon {
    width: 44px; height: 44px; border-radius: 12px;
    background: var(--gradient-main);
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 1.3rem;
    box-shadow: 0 6px 16px rgba(56, 189, 248, 0.35);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-title { font-weight: 800; font-size: 1.15rem; color: var(--navy); }
[data-bs-theme="dark"] .brand-title { color: white; }
.brand-sub { font-size: 0.65rem; color: var(--text-muted); font-weight: 600; }

.navbar-nav .nav-link {
    font-weight: 600; color: var(--text-dark) !important;
    padding: 8px 16px !important; border-radius: 30px; margin: 0 2px;
    transition: all 0.25s ease;
}
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active {
    background: rgba(56, 189, 248, 0.12); color: var(--sky-blue-dark) !important;
}

.btn-icon-toggle {
    width: 40px; height: 40px; border-radius: 50%; border: none;
    background: rgba(56, 189, 248, 0.12); color: var(--sky-blue-dark);
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s ease;
}
.btn-icon-toggle:hover { background: var(--gradient-main); color: white; transform: rotate(15deg); }

.btn-gradient {
    background: var(--gradient-main); color: white; border: none;
    font-weight: 700; box-shadow: 0 6px 16px rgba(56, 189, 248, 0.35);
    transition: all 0.3s ease;
}
.btn-gradient:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(56, 189, 248, 0.45); color: white; }

.btn-outline-navy {
    border: 2px solid var(--navy); color: var(--navy); font-weight: 700;
    transition: all 0.3s ease;
}
[data-bs-theme="dark"] .btn-outline-navy { border-color: white; color: white; }
.btn-outline-navy:hover { background: var(--navy); color: white; }

.btn-orange {
    background: var(--gradient-orange); color: white; border: none; font-weight: 700;
    box-shadow: 0 6px 16px rgba(251, 146, 60, 0.35);
}
.btn-orange:hover { color: white; transform: translateY(-2px); }

/* ===== Glass Card ===== */
.glass-card {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    transition: all 0.35s ease;
}
[data-bs-theme="dark"] .glass-card { background: rgba(30, 41, 59, 0.6); border-color: rgba(255,255,255,0.08); }
.glass-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }

.card-modern {
    background: var(--white); border: none; border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft); transition: all 0.3s ease; overflow: hidden;
}
.card-modern:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }

/* ===== Hero Section ===== */
.hero-section {
    position: relative; overflow: hidden;
    background: var(--gradient-navy);
    padding: 120px 0 100px;
    color: white;
}
.hero-section::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(56,189,248,0.25), transparent 40%),
                radial-gradient(circle at 80% 80%, rgba(251,146,60,0.18), transparent 40%);
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(56, 189, 248, 0.15); border: 1px solid rgba(56,189,248,0.4);
    padding: 8px 18px; border-radius: 30px; font-weight: 700; font-size: 0.85rem;
    color: var(--sky-blue);
}
.hero-title { font-size: 3rem; font-weight: 800; line-height: 1.15; }
.hero-title span { color: var(--sky-blue); }
.hero-stats-box {
    background: rgba(255,255,255,0.06); backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-md);
    padding: 20px; text-align: center;
}
.hero-stats-box h3 { font-weight: 800; color: var(--sky-blue); margin-bottom: 4px; }

/* ===== Section ===== */
.section-padding { padding: 90px 0; }
.section-badge {
    display: inline-block; background: rgba(56,189,248,0.1); color: var(--sky-blue-dark);
    font-weight: 700; padding: 6px 16px; border-radius: 30px; font-size: 0.8rem; margin-bottom: 12px;
}
.section-title { font-weight: 800; font-size: 2.2rem; color: var(--navy); }
[data-bs-theme="dark"] .section-title { color: white; }
.section-subtitle { color: var(--text-muted); max-width: 600px; margin: 0 auto; }

/* ===== Fakultas / Jurusan Cards ===== */
.fakultas-icon {
    width: 64px; height: 64px; border-radius: 18px;
    background: var(--gradient-main); color: white;
    display: flex; align-items: center; justify-content: center; font-size: 1.8rem;
    box-shadow: 0 8px 20px rgba(56,189,248,0.3);
}

/* ===== Step Cards (Cara Kerja) ===== */
.step-card { text-align: center; padding: 30px 20px; }
.step-number {
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--gradient-orange); color: white; font-weight: 800; font-size: 1.3rem;
    display: flex; align-items: center; justify-content: center; margin: 0 auto 18px;
    box-shadow: 0 8px 20px rgba(251,146,60,0.35);
}

/* ===== Footer ===== */
.footer-modern { background: var(--navy); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; color: #cbd5e1; }
.footer-links a { color: #cbd5e1; transition: color 0.2s ease; }
.footer-links a:hover { color: var(--sky-blue); }
.social-icon {
    width: 38px; height: 38px; border-radius: 50%;
    background: rgba(255,255,255,0.08); color: white;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s ease;
}
.social-icon:hover { background: var(--gradient-main); transform: translateY(-3px); }

.back-to-top {
    position: fixed; bottom: 24px; right: 24px; z-index: 999;
    width: 46px; height: 46px; border-radius: 50%; border: none;
    background: var(--gradient-main); color: white; box-shadow: 0 8px 20px rgba(56,189,248,0.4);
    opacity: 0; visibility: hidden; transform: translateY(20px);
    transition: all 0.3s ease;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }

/* ===== Konsultasi Form ===== */
.question-card {
    border-radius: var(--radius-md); border: none; box-shadow: var(--shadow-soft);
    padding: 24px; margin-bottom: 16px; background: var(--white);
}
.progress-modern { height: 10px; border-radius: 30px; background: #e2e8f0; overflow: hidden; }
.progress-modern .progress-bar { background: var(--gradient-main); }

.answer-btn {
    border: 2px solid #e2e8f0; border-radius: var(--radius-sm); padding: 10px 24px;
    font-weight: 700; background: transparent; transition: all 0.25s ease;
}
.answer-btn.btn-ya.active, .answer-btn.btn-ya:hover { background: var(--green); border-color: var(--green); color: white; }
.answer-btn.btn-tidak.active, .answer-btn.btn-tidak:hover { background: #ef4444; border-color: #ef4444; color: white; }

/* ===== Hasil Konsultasi ===== */
.rank-1 { background: linear-gradient(135deg, #fef3c7, #fde68a); border: 2px solid #f59e0b; }
.rank-badge {
    width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-weight: 800; background: var(--gradient-main); color: white;
}
.step-calc-table th { background: var(--navy); color: white; font-size: 0.8rem; }
.step-calc-table td { font-size: 0.85rem; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero-title { font-size: 2.1rem; }
    .section-title { font-size: 1.6rem; }
    .section-padding { padding: 60px 0; }
}

/* ===== Floating Emoji Illustration (Hero) ===== */
.hero-illustration { overflow: visible; }
.float-emoji {
    position: absolute; font-size: 2.2rem;
    animation: floatEmoji 4s ease-in-out infinite;
    filter: drop-shadow(0 6px 10px rgba(0,0,0,0.15));
}
.fe1 { top: 10%; left: -8%; animation-delay: 0s; }
.fe2 { top: 65%; left: -12%; animation-delay: 0.6s; }
.fe3 { top: -8%; right: 5%; animation-delay: 1.2s; }
.fe4 { bottom: -5%; right: 10%; animation-delay: 1.8s; }
.fe5 { top: 40%; right: -10%; animation-delay: 2.4s; }
@keyframes floatEmoji {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-18px) rotate(8deg); }
}
@media (max-width: 768px) {
    .float-emoji { font-size: 1.5rem; }
}

/* ===== Bounce-in untuk badge rekomendasi terbaik ===== */
@keyframes bounceIn {
    0% { transform: scale(0.7); opacity: 0; }
    60% { transform: scale(1.08); opacity: 1; }
    100% { transform: scale(1); }
}
.rank-1 { animation: bounceIn 0.6s ease-out; }

/* ===== Pulse untuk badge gaji/emoji penting ===== */
@keyframes softPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}
.badge-pulse { animation: softPulse 2s ease-in-out infinite; }

/* ===== AOS fallback ===== */
[data-aos] { transition-property: transform, opacity; }

/* ===== Gradasi Section Bergantian (biar landing page tidak monoton) ===== */
.section-tint-blue {
    background: linear-gradient(180deg, rgba(56,189,248,0.06) 0%, rgba(255,255,255,0) 100%);
    position: relative; overflow: hidden;
}
.section-tint-orange {
    background: linear-gradient(180deg, rgba(251,146,60,0.07) 0%, rgba(255,255,255,0) 100%);
    position: relative; overflow: hidden;
}
.section-tint-green {
    background: linear-gradient(180deg, rgba(34,197,94,0.06) 0%, rgba(255,255,255,0) 100%);
    position: relative; overflow: hidden;
}
[data-bs-theme="dark"] .section-tint-blue,
[data-bs-theme="dark"] .section-tint-orange,
[data-bs-theme="dark"] .section-tint-green {
    background: linear-gradient(180deg, rgba(56,189,248,0.04) 0%, rgba(0,0,0,0) 100%);
}

/* ===== Ornamen Blob Dekoratif (lingkaran blur di pojok section) ===== */
.bg-blob {
    position: absolute; border-radius: 50%; filter: blur(60px);
    opacity: 0.35; pointer-events: none; z-index: 0;
}
.bg-blob-1 { width: 320px; height: 320px; background: radial-gradient(circle, #38bdf8, transparent 70%); top: -100px; right: -80px; }
.bg-blob-2 { width: 280px; height: 280px; background: radial-gradient(circle, #fb923c, transparent 70%); bottom: -90px; left: -70px; }
.bg-blob-3 { width: 240px; height: 240px; background: radial-gradient(circle, #22c55e, transparent 70%); top: 20%; left: -60px; }
.bg-blob-4 { width: 260px; height: 260px; background: radial-gradient(circle, #38bdf8, transparent 70%); bottom: 10%; right: -60px; }
.section-padding > .container { position: relative; z-index: 1; }

@media (max-width: 768px) {
    .bg-blob { display: none; } /* sembunyikan di mobile agar tidak mengganggu performa/layout */
}
