@import url("https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css");

:root {
    --primary-color: #023e7d;
    --primary-dark: #0b5ed7;
    --secondary-color: #198754;
    --accent-color: #ffc107;
    --text-dark: #212529;
    --text-muted: #6c757d;
    --light-bg: #f2f5ff;
    --gradient: linear-gradient(135deg, #023e7d 0%, #002855 100%);
}

.btn-outline-primary {
    color: var(--primary-color) !important;
}

.btn-outline-primary:hover {
    background: var(--primary-color) !important;
    color: white !important;
}

.bg-primary {
    color: var(--primary-color);
}

.font-inter {
    font-family: "Inter", sans-serif;
}

.navbar-custom {
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.navbar-custom.scrolled {
    background-color: var(--primary-color);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    padding: 0.5rem 0;
    text-decoration: none !important;
}

.navbar-brand:hover {
    color: rgba(255, 255, 255, 0.9) !important;
}

.brand-container {
    display: flex;
    align-items: center;
    gap: 10px; /* Jarak antara logo dan text */
    height: 100%;
}

.brand-logo {
    height: 40px;
    width: auto;
    max-width: 150px;
    transition: all 0.3s ease;
    flex-shrink: 0; /* Prevent logo from shrinking */
}

.brand-separator {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.2rem;
    margin: 0 8px;
}

.brand-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    letter-spacing: -0.5px;
    line-height: 1;
    margin: 0;
    display: flex;
    align-items: center;
}

.navbar-brand:hover {
    color: rgba(255, 255, 255, 0.9) !important;
}

.navbar-brand:hover .brand-text {
    color: var(--accent-color, #007bff);
    text-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
    transform: translateY(-1px);
}

.navbar-custom.scrolled .brand-text {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.navbar-custom.scrolled .brand-logo {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.navbar-toggler {
    border: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-custom.scrolled .navbar-brand img {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.navbar-custom.scrolled {
    background-color: var(--primary-color);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand-custom {
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-link.active,
.nav-link.active:focus,
.nav-link.active:hover {
    color: var(--accent-color);
    font-weight: 600;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: calc(0.5rem - 2px);
}

.nav-link:hover {
    color: rgba(255, 255, 255, 0.8) !important;
    transition: all 0.3s ease;
}

.nav-link {
    transition: all 0.3s ease;
    position: relative;
}

.btn-login {
    background-color: var(--accent-color);
    position: relative;
    overflow: hidden;
}

.btn-whatsapp {
    background-color: var(--light-bg);
    color: #212529;
    position: relative;
    overflow: hidden;
}

.btn-whatsapp:hover {
    background-color: #002855;
    color: var(--light-bg);
    transform: translateY(-2px);
}

.btn-whatsapp::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s;
}

.btn-whatsapp:hover::before {
    left: 100%;
}

.hero-section {
    background: var(--gradient);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    padding-top: 5rem; /* FIX: biar hero tidak ketiban navbar */
    color: #fff;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,255,255,0.03)" points="0,1000 1000,0 1000,1000"/></svg>');
    background-size: cover;
}

.hero-section .lead {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
}

.hero-highlight {
    color: var(--accent-color);
}

.dashboard-preview {
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: perspective(1000px) rotateY(-15deg) rotateX(10deg);
    transition: transform 0.3s ease;
}

.dashboard-preview:hover {
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
}

.feature-card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

.stats-section {
    background: var(--primary-color);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-color);
}

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-to-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top.show:hover {
    transform: translateY(-2px) scale(1.05);
}

.arrow-up {
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 12px solid white;
    transition: all 0.2s ease;
}

.scroll-to-top:hover .arrow-up {
    transform: translateY(-2px);
    border-bottom-color: white;
}

@media (max-width: 768px) {
    .brand-text {
        font-size: 1.3rem;
    }

    .brand-logo {
        height: 35px;
    }

    .brand-container {
        gap: 8px;
    }

    .hero-section {
        padding-top: 6rem;
    }

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

    .dashboard-preview {
        transform: none;
    }

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

    .hero-section .lead {
        font-size: 1rem;
        line-height: 1.5;
    }

    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .scroll-to-top::before {
        width: 10px;
        height: 10px;
        border-width: 2.5px;
    }
}
