/* Custom Styles */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
}

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}

/* Video Header */
.video-header {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

/* .video-header video {
    position: fixed;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: -999;
} */

.video-header video {
  transition: transform 0.3s ease;
  will-change: transform;
}

.header-content {
  transition: all 0.3s ease;
  will-change: transform, opacity;
}


.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

/* .header-content {
    position: relative;
    z-index: 2;
    color: white;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 70px;
} */

.overlay {
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4), transparent);
    margin-top: -50px;
    z-index: 2;
    position: relative;
}

/* Navigation */
.navbar {
    transition: all 0.4s ease;
    padding: 20px 0;
    position: fixed;
    width: 100%;
    z-index: 1000;
    background: transparent !important;
}

.navbar.scrolled {
    background: white !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
}

.navbar.scrolled .nav-link {
    color: #6c757d !important;
}

.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
    color: #3498db !important;
}

.navbar.scrolled .navbar-brand img {
    filter: brightness(0.8);
}

.navbar-brand img {
    height: 100px;
    transition: all 0.3s ease;
}

/* Nav Links */
.nav-link {
    color: white !important;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 6px 20px !important;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #3498db !important;
}

.navbar.scrolled .btn-outline-light {
    color: #6c757d !important;
    border-color: #6c757d !important;
}

.navbar.scrolled .btn-outline-light:hover {
    color: white !important;
    background-color: #6c757d !important;
}

/* Dropdown Menu */
.dropdown-menu {
    border: none;
    border-radius: 8px;
    padding: 10px 0;
    margin-top: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(10px);
    visibility: hidden;
    transition: all 0.3s ease;
    display: block;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.dropdown-item {
    padding: 10px 20px;
    font-weight: 500;
    color: #2c3e50;
    transition: all 0.2s ease;
    position: relative;
}

.dropdown-item::before {
    content: '';
    position: absolute;
    width: 5px;
    height: 0;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background: #3498db;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: transparent;
    color: #3498db;
    padding-left: 30px;
}

.dropdown-item:hover::before {
    height: 60%;
}

/* Mega Menu */
.mega-dropdown {
    position: static !important;
}

.mega-dropdown .dropdown-menu {
    width: 90%;
    left: 5%;
    transform: translateX(-10%);
    padding: 20px 30px;
    background: #f4f4f4;
    border-radius: 10px;
    position: relative;
    border-left: 50px solid #3f0a7f;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Font Settings */
.mega-menu-section h5 {
    font-family: 'Roboto', 'Helvetica Neue', 'Inter', Arial, sans-serif;
    font-weight: 600;
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: #333;
}

.mega-menu-section ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.mega-menu-section ul li {
    margin-bottom: 0px;
}

.mega-menu-section ul li a {
    font-family: 'Roboto', 'Helvetica Neue', 'Inter', Arial, sans-serif;
    font-weight: 400;
    font-size: 1rem;
    color: #555;
    text-decoration: none;
    transition: color 0.3s;
}

.mega-menu-section ul li a:hover {
    color: #3498db;
}

/* Arrow fixed under 'Produk' nav */
.mega-dropdown .dropdown-menu::before {
    content: "";
    position: absolute;
    top: -10px; /* letak panah di atas dropdown */
    left: 42%; /* posisikan di tengah dropdown menu */
    transform: translateX(-42%); /* agar benar-benar center */
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid rgba(255, 255, 255, 0.95); /* warna latar belakang dropdown */
    z-index: 10;
}


.mega-menu-title {
    font-weight: 600;
    color: #3498db;
    padding-bottom: 1px;
    margin-bottom: 1px;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
/* Mobile view navbar and menu styles */
@media (max-width: 992px) {
    .navbar {
        background: transparent !important;
    }

    .navbar-collapse.show {
        background: rgba(255, 255, 255, 0.5);
        border-radius: 10px;
        padding: 20px;
        margin-top: 10px;
    }

    .nav-link {
        color: #2c3e50 !important;
    }

    .navbar-brand img {
        height: 80px;
    }

    /* Mega menu visible as normal dropdown */
    .mega-dropdown .dropdown-menu {
        display: block !important;
        visibility: visible !important;
        position: static !important;
        width: 100% !important;
        transform: none !important;
        box-shadow: none;
        border-left: none;
        background: rgba(255, 255, 255, 0.95);
        padding: 15px;
    }

    .mega-dropdown .dropdown-menu::before {
        display: none;
    }

    .mega-menu-section {
        margin-bottom: 15px;
    }

    .mega-menu-section h5 {
        font-size: 1.2rem;
    }

    .mega-menu-section ul li {
        margin-bottom: 5px;
    }

    .navbar-collapse {
        overflow-y: auto;
        max-height: 80vh;
    }
}

    .navbar-collapse {
        background: transparent;
        padding: 20px;
        border-radius: 10px;
        margin-top: 15px;
    }

    .navbar-brand img {
    height: 100px;
    transition: all 0.3s ease;
    filter: none !important; /* remove brightness/glow */
}

    .nav-link {
        color: white !important;
    }

    .dropdown-menu {
        background: transparent;
        box-shadow: none;
        margin-left: 15px;
    }

    .mega-dropdown .dropdown-menu {
        display: none !important;
        visibility: hidden !important;
    }
}

/* Sections */
.section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    margin-bottom: 50px;
    text-align: center;
}

.section-title h2 {
    font-weight: 700;
    color: var(--primary-color);
}

.section-title:after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    margin: 15px auto;
}

/* Parallax */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: white;
}

.parallax-overlay {
    background-color: rgba(44, 62, 80, 0.85);
    padding: 100px 0;
}

/* Services */
.service-card {
    padding: 30px 20px;
    border-radius: 5px;
    transition: all 0.3s ease;
    margin-bottom: 30px;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 50px;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

/* Testimonials */
.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.testimonial-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    display: block;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: white;
    padding: 60px 0 30px;
}

.footer-logo {
    height: 100px;
    margin-bottom: 20px;
}

.social-icons a {
    color: white;
    font-size: 20px;
    margin-right: 15px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    color: var(--secondary-color);
}

.footer-links h5 {
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-links ul {
    list-style: none;
    padding-left: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 40px;
    color: #bdc3c7;
}

/* Animations */
.fade-in {
    opacity: 0;
    transition: opacity 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
}

/* Responsive for Small Screens */
@media (max-width: 768px) {
    .video-header {
        height: auto;
        min-height: 100vh;
    }

    .header-content h1 {
        font-size: 2.5rem;
        margin-top: 40px;
    }

    .section {
        padding: 60px 0;
    }
}

.video-wrapper {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.card-img-top,
.card-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 600;
}

.card-text {
    font-size: 0.9rem;
}

.card-footer {
    text-align: center;
}

.img-fluid {
    width: 100%;
    height: auto;
}

.card-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    pointer-events: none;
    z-index: 10;
}

/* Partner Logo */
.partner-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.partner-logo {
    width: 80%;
    margin: 20px 0;
    transition: transform 0.6s ease;
    filter: none !important;
}

.partner-logo:hover {
    transform: none !important;
    filter: none !important;
}

@media (max-width: 992px) {
    .partner-logo {
        width: 60%;
    }
}

@media (max-width: 576px) {
    .partner-logo {
        width: 80%;
    }
}
/* Toggler icon abu-abu */
.navbar-toggler {
    border: none;
}

.navbar-toggler-icon {
    background-image: none;
    width: 24px;
    height: 2px;
    background-color: grey;
    position: relative;
    display: block;
    transition: background-color 0.3s ease;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: "";
    background-color: grey;
    width: 24px;
    height: 2px;
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.navbar-toggler-icon::before {
    top: -8px;
}

.navbar-toggler-icon::after {
    top: 8px;
}

/* Ukuran logo di mobile dikembalikan */
@media (max-width: 992px) {
    .navbar-brand img {
        height: 100px;
    }
}
/* Custom styling untuk toggle switch */
  /* Perbaikan khusus untuk masalah toggle bahasa */
        .language-toggle-container {
            width: 70px; /* Lebar tetap untuk container */
            display: flex;
            justify-content: center;
        }
        
        .language-toggle-label {
                display: inline-block;
            width: 30px;
            text-align: center;
            color: lightblue !important;
            font-weight: 600;
            text-shadow: 0 0 5px rgba(77, 192, 255, 0.7);
            transition: all 0.3s ease;
        }
        
        /* Perbaikan tambahan untuk navigasi */
        .navbar-nav {
            flex-wrap: nowrap; /* Mencegah wrap pada item navigasi */
        }
        
        .navbar-collapse {
            overflow: visible !important; /* Memastikan dropdown terlihat penuh */
        }
        
        /* Styling tambahan untuk menjaga konsistensi */
        .mega-dropdown .dropdown-menu {
            min-width: 700px; /* Lebar minimum untuk dropdown besar */
        }
        
        /* Animasi smooth untuk perubahan */
        .language-label {
            color: black;
            transition: opacity 0.3s ease;
        }
