/* =========================================
   1. VARIABLES & GLOBAL STYLES
   ========================================= */
:root {
    --zigzag-blue: #003366;          /* Biru gelap utama */
    --zigzag-red: #ffc107;           /* Kuning cerah (Sesuai permintaan) */
    --zigzag-white: #ffffff;
    --zigzag-gray: #f4f4f4;
    --zigzag-yellow: #ffcc00;        /* Kuning terang untuk highlight */
}

body { 
    font-family: 'Source Sans 3', sans-serif; 
    color: #333; 
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--zigzag-white);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--zigzag-blue);
}

p { margin-bottom: 1.2rem; }

/* =========================================
   2. NAVBAR & NAVIGATION (Desktop & Common)
   ========================================= */
.navbar { 
    border-bottom: 3px solid var(--zigzag-red); 
    padding: 15px 0;
    position: relative;
}

.navbar-brand img {
    height: 55px;
    transition: 0.3s;
}

.nav-link { 
    color: var(--zigzag-blue) !important; 
    font-weight: 600; 
    transition: 0.3s;
    font-size: 1.05rem;
}

.nav-link:hover { 
    color: var(--zigzag-red) !important; 
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Dropdown Desktop Effect */
@media (min-width: 992px) {
    .navbar .container {
        display: flex;
        align-items: center;
    }

    .navbar-brand {
        flex-shrink: 0;
        margin-right: 30px;
        z-index: 1001;
    }

    .navbar-nav {
        margin-left: auto;
    }

    .nav-link {
        padding: 0.5rem 1.2rem;
    }

    .dropdown-menu { 
        display: block; 
        opacity: 0; 
        visibility: hidden; 
        transition: all 0.3s ease; 
        transform: translateY(10px);
        border-top: 3px solid var(--zigzag-red);
        border-radius: 0 0 8px 8px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        padding: 0;
        overflow: hidden;
    }

    .nav-item:hover .dropdown-menu { 
        opacity: 1; 
        visibility: visible; 
        transform: translateY(0); 
    }
}

.dropdown-item {
    padding: 12px 20px;
    font-weight: 500;
    transition: all 0.2s ease;
    color: var(--zigzag-blue);
}

.dropdown-item:hover, 
.dropdown-item:active {
    background-color: var(--zigzag-red) !important;
    color: #c21922 !important; /* Teks merah gelap saat hover di BG kuning */
}

/* =========================================
   3. CAROUSEL & HERO SECTION
   ========================================= */
.carousel-container {
    max-width: 1320px;
    margin: 20px auto;
    padding: 0 15px;
}

/* Merger Redundansi Slider */
#mainSlider, 
#mainSlider .carousel-inner, 
#mainSlider .carousel-item,
#mainSlider .carousel-item img {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.carousel-item img {
    width: 100%;
    height: 500px; 
    object-fit: contain;
    border-radius: 15px;
    filter: none !important; 
}

.hero-interior {
    height: 450px;
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    position: relative;
    color: white;
}

.hero-overlay {
    position: absolute; 
    inset: 0;
    background: linear-gradient(to right, rgba(0, 31, 63, 0.9), rgba(0, 51, 102, 0.4));
}

/* =========================================
   4. COMPONENTS (Zoom, Buttons, Feature Box)
   ========================================= */
.zoom-container {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    overflow: hidden;
}

.custom-size {
    width: 60% !important;
    height: auto; 
    object-fit: contain;
    display: block;
    margin: 0 auto;
    transition: transform 0.5s ease;
}

.zoom-container:hover .custom-size {
    transform: scale(1.1);
}

.btn-zigzag {
    background-color: var(--zigzag-blue);
    color: white;
    border-radius: 5px;
    transition: 0.4s;
    border: none;
    padding: 10px 25px;
}

.btn-zigzag:hover {
    background-color: var(--zigzag-red);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
    color: var(--zigzag-blue); /* Menyesuaikan teks tombol saat hover */
}

.feature-box {
    background-color: #ffffff;
    transition: all 0.4s ease;
    border: 1px solid #eee;
    position: relative;
    z-index: 1;
}

.feature-box:hover {
    background-color: var(--zigzag-blue) !important;
    transform: translateY(-10px);
}

.feature-box:hover h5, 
.feature-box:hover p {
    color: #ffffff !important;
}

.feature-box:hover .feature-icon {
    filter: brightness(0) invert(1) !important;
    transform: scale(1.1);
}

/* =========================================
   5. BLOG SLIDER
   ========================================= */
.card-hover-effect { transition: transform 0.3s ease; }
.card-hover-effect:hover { transform: translateY(-5px); }

.blog-ctrl {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    opacity: 0.8;
    border: none;
    position: absolute;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-ctrl:hover {
    opacity: 1;
    background: var(--zigzag-red);
    color: white !important;
}

.blog-ctrl.carousel-control-prev { left: -20px; }
.blog-ctrl.carousel-control-next { right: -20px; }

/* =========================================
   6. CTA SECTION & ANIMATIONS
   ========================================= */
.cta-section {
    background-attachment: fixed;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.cta-text-blink {
    animation: colorChange 3s infinite;
    font-weight: 800;
}

@keyframes colorChange {
    0%, 100% { color: #ffffff; }
    50% { color: var(--zigzag-yellow); }
}

/* =========================================
   7. FOOTER & SOCIALS
   ========================================= */
footer { background: #1a1a1a; color: white; padding: 40px 0; }

.social-icon-hover {
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

.social-link:hover .social-icon-hover {
    filter: invert(72%) sepia(85%) saturate(1458%) hue-rotate(358deg) brightness(103%) contrast(106%);
}

.address-list a {
    text-decoration: none;
    transition: transform 0.2s ease;
    display: inline-block;
    color: inherit;
}

.address-list a:hover {
    transform: translateX(3px);
    color: var(--zigzag-red);
}

/* =========================================
   8. ALL RESPONSIVE LOGIC (Merger)
   ========================================= */
@media (max-width: 991px) {
    /* Mencegah bug background fixed */
    .hero-interior, .cta-section { background-attachment: scroll !important; }
    
    .navbar { padding: 10px 0 !important; }
    
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        border-top: 1px solid #ddd;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        padding: 15px;
        z-index: 999;
    }

    .navbar-nav {
        flex-direction: column !important;
        align-items: center !important;
    }

    .nav-item {
        width: 100%;
        text-align: center;
        margin: 8px 0;
    }

    .navbar-collapse .dropdown-menu {
        display: none; 
        position: static !important;
        width: 100%;
        box-shadow: none;
        border: none;
        background: #f8f9fa;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }

    .navbar-collapse .dropdown-menu.show { 
        display: block !important; 
    }

    .carousel-item img { height: 250px !important; }
}

@media (max-width: 768px) {
    .custom-size { width: 80% !important; }
    .blog-ctrl { display: none; }
}

@media (max-width: 400px) {
    .navbar-brand img { height: 35px !important; }
    .navbar-toggler img { height: 20px !important; }
    
    .navbar .container {
        display: flex;
        flex-wrap: nowrap;
        justify-content: space-between;
        padding: 0 10px;
    }
}