@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #7c3aed;
    /* Deep Violet / Purple */
    --primary-light: #a78bfa;
    --primary-dark: #5b21b6;
    --secondary: #9333ea;
    /* Rich Purple */
    --secondary-light: #c084fc;
    --accent: #f43f5e;
    /* Coral Accent */
    --bg-light: #fdf9ff;
    --bg-card: #ffffff;
    --text-dark: #0f172a;
    /* Deep Slate */
    --text-muted: #64748b;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(124, 58, 237, 0.08);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(124, 58, 237, 0.05), 0 4px 6px -4px rgba(124, 58, 237, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(124, 58, 237, 0.1), 0 8px 10px -6px rgba(124, 58, 237, 0.05);
    --shadow-premium: 0 25px 50px -12px rgba(124, 58, 237, 0.18);
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    margin: 0;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Soft Dim / Remang Ambient Web Background */
.site-bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('hero_bg.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.09;
    filter: blur(2px);
    pointer-events: none;
    z-index: -2;
}

/* Background Gradients decoration */
.bg-gradient-decoration {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(168, 85, 247, 0.05) 50%, rgba(255, 255, 255, 0) 70%);
    top: -200px;
    right: -100px;
    z-index: -2;
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
}

.bg-gradient-decoration-left {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.1) 0%, rgba(99, 102, 241, 0.03) 50%, rgba(255, 255, 255, 0) 70%);
    top: 600px;
    left: -200px;
    z-index: -2;
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
}

/* Navbar */
.navbar {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1.2rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
    padding: 0.8rem 0;
    box-shadow: var(--shadow-sm);
    background: rgba(255, 255, 255, 0.95);
}

.navbar-brand {
    font-weight: 800;
    color: var(--text-dark) !important;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    letter-spacing: -0.5px;
}

.navbar-brand span.brand-title {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.brand-text {
    border-left: 2px solid #e2e8f0;
    padding-left: 12px;
    margin-left: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    line-height: 1.2;
    display: inline-block;
    max-width: 180px;
}

.nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    margin: 0 0.8rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover {
    color: var(--primary) !important;
}

.nav-link:hover::after {
    width: 100%;
}

.btn-portal {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white !important;
    padding: 0.75rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-portal:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(99, 102, 241, 0.3);
    opacity: 0.95;
}

/* Hero Section */
.hero-section {
    padding: 60px 0 80px;
    position: relative;
}

.tag-badge {
    background: rgba(99, 102, 241, 0.08);
    color: var(--primary-dark);
    padding: 0.6rem 1.2rem;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.tag-badge i {
    color: var(--secondary);
    animation: pulse 2s infinite;
}

.hero-title {
    font-weight: 800;
    font-size: 3.8rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    letter-spacing: -1.5px;
}

.hero-title span {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.btn-hero-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 14px;
    font-weight: 600;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 16px rgba(99, 102, 241, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.35);
    color: white;
}

.btn-hero-secondary {
    background-color: #f1f5f9;
    color: var(--text-dark);
    padding: 1rem 2.5rem;
    border-radius: 14px;
    font-weight: 600;
    border: 1px solid #e2e8f0;
    margin-left: 1.2rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-hero-secondary:hover {
    background-color: #e2e8f0;
    transform: translateY(-2px);
}

.hero-image-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.hero-image {
    width: 100%;
    height: 100%;
    min-height: 380px;
    max-height: 420px;
    object-fit: cover;
    object-position: center 30%;
    border-radius: 28px;
    box-shadow: var(--shadow-premium);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    display: block;
    background: #ffffff;
    padding: 8px;
    border: 3px solid rgba(255, 255, 255, 0.9);
}

.hero-image:hover {
    transform: scale(1.015) rotate(0.5deg);
}

.hero-decoration {
    position: absolute;
    top: -10px;
    bottom: -10px;
    left: -10px;
    right: -10px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.14), rgba(147, 51, 234, 0.14));
    z-index: -1;
    border-radius: 36px;
}

/* Feature Cards */
.card-feature {
    padding: 2.5rem 2rem;
    border-radius: 24px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    background: var(--bg-card);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    height: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.card-feature:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(99, 102, 241, 0.2);
}

.feature-card-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.05), transparent 60%);
    pointer-events: none;
    border-radius: 24px;
}

.icon-box {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    background: rgba(99, 102, 241, 0.08);
    color: var(--primary);
    font-size: 1.4rem;
    transition: all 0.3s ease;
}

.card-feature:hover .icon-box {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.feature-title {
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.card-feature p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
}

/* Alur Bimbingan (Panduan/Methodology) Section */
.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline-line {
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    border-radius: 2px;
    opacity: 0.3;
}

.timeline-item {
    position: relative;
    padding-left: 80px;
    margin-bottom: 3rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-icon {
    position: absolute;
    left: 12px;
    top: 4px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    z-index: 2;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.15);
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-icon {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-color: transparent;
    transform: scale(1.15) rotate(15deg);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.timeline-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.timeline-card::after {
    content: '';
    position: absolute;
    left: -10px;
    top: 15px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 10px solid white;
}

.timeline-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(99, 102, 241, 0.15);
}

.timeline-step-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    background: rgba(99, 102, 241, 0.08);
    border-radius: 100px;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    letter-spacing: 0.5px;
}

.timeline-title {
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.timeline-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}


/* Stats Section */
.stats-section {
    background: #0f172a;
    /* Slate 900 for modern dark mode card */
    padding: 80px 40px;
    color: white;
    border-radius: 36px;
    margin: 80px 0;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.stats-section::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 60%);
    top: -50px;
    left: -50px;
    pointer-events: none;
}

.stats-section::after {
    content: '';
    position: absolute;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.12) 0%, transparent 60%);
    bottom: -100px;
    right: -100px;
    pointer-events: none;
}

.stat-item {
    text-align: center;
    position: relative;
    z-index: 2;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #ffffff 30%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.8;
    font-weight: 500;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* CTA Section */
.cta-box {
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary));
    padding: 70px 40px;
    border-radius: 36px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-premium);
}

.cta-box::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    top: -150px;
    right: -100px;
    pointer-events: none;
}

.cta-box h2 {
    font-weight: 800;
    font-size: 2.8rem;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.cta-box p {
    font-size: 1.15rem;
    max-width: 650px;
    margin: 0 auto 2.5rem;
    opacity: 0.9;
}

/* Form Input Styling inside CTA */
.cta-input-group {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    max-width: 500px;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.cta-input-group:focus-within {
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1);
}

.cta-input-group input {
    background: transparent !important;
    border: none !important;
    color: white !important;
    padding: 0.8rem 1.2rem;
    font-size: 1rem;
}

.cta-input-group input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.cta-input-group button {
    background: white !important;
    color: var(--primary-dark) !important;
    border: none !important;
    border-radius: 12px !important;
    font-weight: 700;
    padding: 0.8rem 1.8rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.cta-input-group button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    background: #f8fafc !important;
}

/* Contact Section */
.contact-card {
    background: white;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 24px;
    padding: 2.5rem;
    height: 100%;
    box-shadow: var(--shadow-sm);
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 1.5rem;
}

.contact-icon-box {
    width: 44px;
    height: 44px;
    background: rgba(99, 102, 241, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-text h5 {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 4px;
    color: var(--text-dark);
}

.contact-text p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Footer styling */
footer {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 1.5rem;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--primary);
}

/* Animations */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive fixes */
@media (max-width: 991px) {
    .navbar-collapse {
        background: white;
        padding: 1.5rem;
        border-radius: 16px;
        box-shadow: var(--shadow-lg);
        margin-top: 1rem;
        border: 1px solid #e2e8f0;
    }

    .nav-link {
        margin: 0.5rem 0;
    }

    .btn-portal {
        display: block;
        text-align: center;
        margin-top: 1rem;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-section {
        padding: 40px 0 60px;
    }

    .btn-hero-secondary {
        margin-left: 0.8rem;
        padding: 1rem 1.8rem;
    }

    .btn-hero-primary {
        padding: 1rem 1.8rem;
    }
}

@media (max-width: 575px) {
    .hero-title {
        font-size: 2.3rem;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        display: flex;
        width: 100%;
        justify-content: center;
        margin-left: 0;
        margin-top: 0.8rem;
    }

    .hero-section .d-flex {
        flex-direction: column;
    }

    .stats-section {
        padding: 40px 20px;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .cta-box {
        padding: 40px 20px;
    }

    .cta-box h2 {
        font-size: 2rem;
    }

    .cta-input-group {
        flex-direction: column;
        background: transparent;
        border: none;
        gap: 12px;
        padding: 0;
    }

    .cta-input-group input {
        background: rgba(255, 255, 255, 0.1) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        border-radius: 12px !important;
        width: 100%;
    }

    .cta-input-group button {
        width: 100%;
    }
}