:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --bg-color: #ffffff;
    --text-color: #212529;
    --card-bg: #ffffff;
    --border-color: #dee2e6;
    --shadow: rgba(0, 0, 0, 0.1);
    --navbar-bg: rgba(255, 255, 255, 0.95);
    --footer-bg: #f8f9fa;
    --burger: #000000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Navbar Styling */
.navbar {
    background-color: var(--navbar-bg) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px var(--shadow);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

.navbar-brand img {
    height: 40px;
    margin-right: 10px;
}

.nav-link {
    color: var(--text-color) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.nav-link:hover {
    background-color: var(--primary-color);
    color: white !important;
    transform: translateY(-2px);
}

.nav-link.active {
    background-color: var(--primary-color);
    color: white !important;
}

/* Hamburger Menu */
.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    cursor: pointer;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background-color: var(--burger);
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}

/* Untuk mobile devices, nonaktifkan background-attachment fixed */
@media (max-width: 768px) {
    .hero-section {
        background-attachment: scroll;
    }
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 2;
    animation: fadeInUp 1s ease;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

.hero-subtitle {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.hero-subtitle span {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    font-weight: 600;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 2rem;
}

.social-icons a {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    text-decoration: none;
}

.social-icons a:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-5px) scale(1.1);
    text-decoration: none;
}

/* Animated Background */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Styling */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 1rem auto;
    border-radius: 2px;
}

/* Card Styling */
.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    box-shadow: 0 4px 15px var(--shadow);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px var(--shadow);
}

.card-img-top {
    border-radius: 15px 15px 0 0;
    height: 250px;
    object-fit: cover;
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.card-text {
    color: var(--text-color);
}

/* Button Styling */
.btn-primary {
    background-color: var(--primary-color);
    border: none;
    border-radius: 25px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}

/* Logo Slider Animation */
.logo-slider {
    position: relative;
    overflow: hidden;
    padding: 40px 0;
    background-color: var(--card-bg);
    border-radius: 15px;
    margin-bottom: 30px;
}

/* Efek gradasi pudar kiri dan kanan */
.logo-slider::before,
.logo-slider::after {
    content: "";
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.logo-slider::before {
    left: 0;
    background: linear-gradient(to right, var(--card-bg) 0%, transparent 100%);
}

.logo-slider::after {
    right: 0;
    background: linear-gradient(to left, var(--card-bg) 0%, transparent 100%);
}

/* Track dan item logo */
.logo-track {
    display: flex;
    gap: 50px;
    animation: scroll 30s linear infinite;
}

.logo-track.reverse {
    animation: scroll-reverse 30s linear infinite;
}

.logo-item {
    min-width: 150px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background-color: var(--bg-color);
    border-radius: 10px;
    box-shadow: 0 2px 10px var(--shadow);
}

.logo-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.logo-item:hover img {
    filter: grayscale(0%);
    transform: scale(1.1);
}

/* Animasi scroll */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes scroll-reverse {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

/* Table Styling */
.table {
    background-color: var(--card-bg);
    color: var(--text-color);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px var(--shadow);
}

.table thead {
    background-color: var(--primary-color);
    color: white;
}

.table tbody tr {
    transition: background-color 0.3s ease;
}

.table tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.1);
}

/* Form Styling */
.form-control, .form-select {
    border-radius: 10px;
    border: 2px solid var(--border-color);
    padding: 0.75rem;
    background-color: var(--card-bg);
    color: var(--text-color);
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

textarea.form-control {
    min-height: 150px;
}

/* Footer Styling */
footer {
    background-color: var(--footer-bg);
    color: var(--text-color);
    padding: 40px 0 20px;
    margin-top: 80px;
    border-top: 3px solid var(--primary-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

/* Map Container */
.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px var(--shadow);
    height: 400px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Dropdown styling */
.navbar .dropdown-menu {
    border-radius: 10px;
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 15px var(--shadow);
    background-color: var(--card-bg);
    transition: all 0.3s ease;
}

.navbar .dropdown-item {
    color: var(--text-color);
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.navbar .dropdown-item:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Hanya tampilkan dropdown di desktop */
.dropdown-desktop {
    display: none;
}

/* Sembunyikan versi mobile di desktop */
.mobile-dropdown {
    display: block;
}

/* Desktop view */
@media (min-width: 992px) {
    .dropdown-desktop {
        display: block;
    }
    .mobile-dropdown {
        display: none;
    }

    /* Hover dropdown on desktop */
    .navbar .dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
    }

    .navbar .dropdown-menu {
        border-radius: 10px;
        border: 1px solid var(--border-color);
        box-shadow: 0 5px 15px var(--shadow);
        background-color: var(--card-bg);
    }

    .navbar .dropdown-item:hover {
        background-color: var(--primary-color);
        color: white;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .hero-subtitle {
        flex-direction: column;
        gap: 10px;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .navbar-nav {
        padding: 1rem 0;
    }

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

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Alert Custom */
.alert {
    border-radius: 10px;
    border: none;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0b5ed7;
}