/* 
   Siap Compro - Hero Split & Refined Styles
*/

/* 1. HERO SPLIT SLIDER */
.hero-split-slider {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    background: var(--bg-color);
}

.slides-wrapper {
    height: 100%;
}

.slide-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease;
}

.slide-item.active {
    opacity: 1;
    visibility: visible;
    z-index: 10;
}

/* Full Background Media */
.slide-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    background: var(--bg-color);
}

.slide-bg-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 6s ease;
}

.slide-item.active .slide-bg-img {
    transform: scale(1.1);
}

.video-background {
    width: 100%;
    height: 100%;
}

.video-background iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    aspect-ratio: 16 / 9;
    transform: translate(-50%, -50%) scale(1.05);
    /* Small scale to avoid edges */
    pointer-events: none;
}

.slide-media-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(to top, color-mix(in srgb, var(--bg-color) 80%, transparent) 0%, transparent 40%),
        linear-gradient(to left, color-mix(in srgb, var(--bg-color) 35%, transparent) 0%, transparent 50%);
    z-index: 1;
}

/* Premium Bottom Right Content */
.hero-bottom-right-container {
    position: relative;
    z-index: 5;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    /* This forces it to the right */
    padding-bottom: 110px;
}

.hero-content-wrapper.slide-info-glass {
    max-width: 480px;
    width: 100%;
    margin-top: 0;
    background: color-mix(in srgb, var(--bg-color) 70%, transparent);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid color-mix(in srgb, var(--heading-color) 15%, transparent);
    border-radius: 20px;
    padding: 36px 40px;
    text-align: left;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.slide-pill-wrap {
    margin-top: 12px;
    margin-bottom: 24px;
}

.slide-tag-pill {
    display: block;
    font-size: var(--button-size);
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-color);
    letter-spacing: 0.3px;
    text-transform: none;
    background: transparent;
    border: none;
    padding: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.slide-title-mega {
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 28px;
    color: var(--heading-color);
    letter-spacing: -1.5px;
}

/* Premium Button Group */
.slide-cta-group {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
}

.btn-premium {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--primary-color);
    color: var(--cta-text-color) !important;
    padding: 13px 30px;
    border-radius: 50px;
    font-size: var(--button-size);
    font-weight: 700;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border: 1px solid transparent;
}

.btn-premium:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px color-mix(in srgb, var(--primary-color) 30%, transparent);
}

/* Global Navigation Floating */
.hero-global-nav {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    width: 100%;
}

.slider-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.slide-dots {
    display: flex;
    gap: 10px;
}

.slide-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--heading-color) 30%, transparent);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slide-dots .dot.active {
    background: var(--primary-color);
    transform: scale(1.3);
}

.nav-prev-v2,
.nav-next-v2 {
    width: 50px;
    height: 50px;
    border: 1px solid color-mix(in srgb, var(--heading-color) 20%, transparent);
    background: color-mix(in srgb, var(--bg-color) 20%, transparent);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    color: var(--heading-color);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-prev-v2:hover,
.nav-next-v2:hover {
    background: var(--heading-color);
    color: var(--bg-color);
    transform: scale(1.1);
}

/* 2. ABOUT SECTION */
.about-section {
    background: var(--bg-color);
}

.about-image-wrap {
    position: relative;
    padding-right: 40px;
    padding-bottom: 40px;
}

.about-image-wrap img {
    width: 100%;
    border-radius: 20px;
    display: block;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

.experience-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--primary-color);
    color: var(--cta-text-color);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    min-width: 160px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.experience-badge strong {
    display: block;
    font-size: 48px;
    line-height: 1;
    font-weight: 800;
    margin-bottom: 5px;
}

.experience-badge span {
    font-size: var(--xs-size);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

.about-content {
    padding-left: 50px;
}

.about-content p {
    font-size: var(--content-size);
    margin-bottom: 30px;
    opacity: 0.8;
}

.btn-text {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: var(--button-size);
    transition: gap 0.3s ease;
}

.btn-text:hover {
    gap: 15px;
}

@media (max-width: 991px) {
    .about-image-wrap {
        margin-bottom: 60px;
        padding-right: 20px;
        padding-bottom: 20px;
    }

    .about-content {
        padding-left: 0;
    }
}

/* 3. SERVICES & PORTFOLIO COMMON */
.services-section,
.portfolio-section {
    background: var(--bg-color);
    overflow: hidden;
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

.section-header-action {
    display: flex;
    align-items: center;
    gap: 20px;
}

.scroll-nav-group {
    display: flex;
    gap: 10px;
}

.scroll-nav-btn {
    width: 45px;
    height: 45px;
    border: 1px solid rgba(var(--heading-color-rgb), 0.1);
    background: rgba(var(--heading-color-rgb), 0.03);
    border-radius: 50%;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.scroll-nav-btn:hover {
    background: var(--primary-color);
    color: var(--cta-text-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.scroll-nav-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Home Scroll Container & Grid Force */
.site-main .home-scroll-container {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 20px 0 40px;
    scrollbar-width: none;
}

.site-main .home-scroll-container::-webkit-scrollbar {
    display: none;
}

.home-scroll-container .services-grid-inner,
.home-scroll-container .portfolio-grid-inner {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 30px !important;
    width: max-content !important;
}

/* Desktop Item Width (Exactly 3) */
.home-scroll-container .service-archive-item,
.home-scroll-container .portfolio-archive-item {
    flex: 0 0 calc((100vw * 0.9 - 60px) / 3) !important;
    min-width: 320px !important;
    max-width: 450px !important;
}

@media (min-width: 1400px) {

    .home-scroll-container .service-archive-item,
    .home-scroll-container .portfolio-archive-item {
        flex: 0 0 calc((1400px - 60px) / 3) !important;
    }
}

@media (max-width: 991px) {
    .site-main .home-scroll-container {
        margin: 0 -5%;
        width: 110%;
        padding-left: 5%;
        padding-right: 5%;
    }

    .home-scroll-container .service-archive-item,
    .home-scroll-container .portfolio-archive-item {
        flex: 0 0 300px !important;
        min-width: 300px !important;
    }

    .service-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        margin-bottom: 30px;
    }

    .section-header-action {
        width: 100%;
        justify-content: space-between;
        gap: 15px;
    }

    .scroll-nav-group {
        display: flex;
        /* Re-enable for mobile if user wants arrows */
        gap: 8px;
    }

    .scroll-nav-btn {
        width: 40px;
        height: 40px;
    }
}

/* HERO MOBILE */
/* HERO MOBILE REFINEMENT - Fixed Berantakan */
@media (max-width: 991px) {
    .hero-split-slider {
        height: 100vh !important;
        min-height: -webkit-fill-available;
        overflow: hidden;
    }

    .slides-wrapper {
        height: 100%;
    }

    .slide-item {
        position: absolute !important;
        flex-direction: column;
        height: 100%;
        display: none;
        opacity: 1 !important;
        visibility: visible !important;
        transition: none;
    }

    .slide-item.active {
        display: flex;
    }

    .slide-media {
        position: absolute;
        width: 100%;
        height: 100%;
        max-width: 100%;
        order: 1;
    }

    .hero-bottom-right-container {
        padding: 0 15px 100px 15px;
        align-items: flex-end;
        justify-content: center;
        /* Center horizontally in mobile for better UX */
        width: 100%;
        height: 100%;
        order: 2;
    }

    .hero-content-wrapper.slide-info-glass {
        padding: 35px 25px;
        text-align: left;
        /* Keep left aligned for easier reading */
        margin: 0;
        max-width: 100%;
    }

    .slide-cta-group {
        justify-content: flex-start;
    }

    .slide-title-mega {
        font-size: 28px;
        margin-bottom: 0px;
        line-height: 1.2;
    }

    .slide-pill-wrap {
        margin-top: 15px;
        margin-bottom: 25px;
    }

    .slide-tag-pill {
        font-size: 14px;
        line-height: 1.5;
    }

    .btn-premium {
        padding: 12px 20px;
        font-size: 13px;
    }

    .slider-controls {
        flex-direction: column-reverse;
        gap: 20px;
    }

    .nav-prev-v2,
    .nav-next-v2 {
        display: none;
        /* Hide arrows on mobile for cleaner look */
    }

    /* Video Background Fix for Mobile - Proper Cover */
    .video-background iframe {
        position: absolute;
        top: 50%;
        left: 50%;
        min-width: 100%;
        min-height: 100%;
        width: auto;
        height: auto;
        aspect-ratio: 16 / 9;
        transform: translate(-50%, -50%) scale(1.05);
        /* Slight scale to hide player UI if needed */
        pointer-events: none;
    }
}

/* ===== FAQ SECTION ===== */
.faq-section {
    background: color-mix(in srgb, var(--heading-color) 3%, transparent);
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    border: 1px solid rgba(var(--heading-color-rgb), 0.08);
    border-radius: var(--radius-sm, 8px);
    overflow: hidden;
    background: rgba(var(--heading-color-rgb), 0.02);
    transition: border-color var(--transition-normal) var(--ease-default);
}

.faq-item:hover {
    border-color: rgba(var(--primary-color-rgb), 0.2);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: var(--content-size);
    font-weight: 700;
    color: var(--heading-color);
    font-family: var(--heading-font);
    transition: color var(--transition-normal) var(--ease-default);
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 300;
    color: var(--primary-color);
    transition: transform var(--transition-normal) var(--ease-default);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease-default);
}

.faq-answer-inner {
    padding: 0 24px 20px;
    font-size: var(--secondary-size);
    line-height: 1.7;
    color: var(--text-color);
    opacity: 0.85;
}

.faq-answer-inner p {
    margin-bottom: 12px;
}

.faq-answer-inner p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .faq-question {
        padding: 16px 20px;
        font-size: var(--secondary-size);
    }

    .faq-answer-inner {
        padding: 0 20px 16px;
        font-size: var(--small-size);
    }
}