/* --- HERO SECTION WRAPPER --- */
.hero-section {
    position: relative;
    width: 100%;
    height: calc(100vh - 64px);
    overflow: hidden;
    color: #fff;
}

/* --- LAYOUT GRID --- */
.hero-section .hero-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 50% 50%;
    z-index: 10;
    pointer-events: none;
}

/* Enable pointer events untuk child elemen yang interaktif */
.hero-section .hero-container>* {
    pointer-events: auto;
}

/* --- BACKGROUND LAYERS --- */
.hero-section .bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    /* Layer Paling Bawah */
    background-size: cover;
    background-position: center;
    will-change: transform;
    transition: opacity 0.3s ease;
}

.hero-section .bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.9) 0%, rgba(17, 24, 39, 0.7) 50%, rgba(97, 11, 13, 0.6) 100%);
    z-index: 1;
    pointer-events: none;
}

/* --- KOLOM KIRI (PRODUCT IMAGE) --- */
.hero-section .left-col {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
}

.hero-section .product-image-big {
    width: 100%;
    max-width: 600px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6));
    transition: transform 0.5s;
}

/* --- KOLOM KANAN (KONTEN) --- */
.hero-section .right-col {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    overflow: hidden;
    padding-left: 4rem;
}

.hero-section .content-wrapper {
    margin-top: 0;
    padding-bottom: 12vh;
    padding-right: 5rem;
    max-width: 800px;
    width: 100%;
}

.hero-section .hero-title {
    font-weight: 800;
    font-size: 2rem;
    line-height: 1.2;
    text-transform: capitalize;
    margin-bottom: 1rem;
    color: var(--hero-text-white);
}

.hero-section .hero-desc {
    font-size: 1rem;
    font-weight: 400;
    color: var(--hero-text-gray);
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 90%;
}

.hero-section .cta-btn {
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: #fff;
    font-weight: 700;
    padding: 12px 30px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(206, 32, 35, 0.3);
}

.hero-section .cta-btn:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(206, 32, 35, 0.4);
}

/* --- SLIDER WRAPPER --- */
.hero-section .card-list-wrapper {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding-bottom: 1rem;
    padding-left: 4rem;
    z-index: 20;
    pointer-events: none;
}

.hero-section .nav-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
    padding-right: 5rem;
    justify-content: flex-end;
    align-items: center;
    pointer-events: auto;
}

.hero-section .progress-track {
    display: none;
    width: 100px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.hero-section .progress-fill {
    height: 100%;
    background: var(--color-primary);
    width: 0%;
    transition: width 0.3s ease;
}

.hero-section .nav-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section .nav-btn:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.hero-section .cards-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-left: 0;
    padding-right: 50vw;
    padding-top: 10px;
    padding-bottom: 20px;
    scrollbar-width: none;
    touch-action: pan-x;
    pointer-events: auto;
}

.hero-section .cards-container::-webkit-scrollbar {
    display: none;
}

.hero-section .product-card {
    flex: 0 0 260px;
    height: 160px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: rgba(17, 24, 39, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s, border-color 0.3s;
}

.hero-section .product-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.5);
}

.hero-section .product-card.active-card {
    border-color: var(--color-primary);
    background: rgba(17, 24, 39, 0.95);
}

.hero-section .card-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    transition: opacity 0.3s;
    filter: grayscale(50%);
}

.hero-section .product-card:hover .card-bg,
.hero-section .product-card.active-card .card-bg {
    opacity: 0.7;
    filter: grayscale(0%);
}

.hero-section .card-info {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.2) 100%);
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.hero-section .card-thumb-img {
    width: auto;
    height: 60px;
    object-fit: contain;
    margin-bottom: 10px;
    align-self: center;
}

.hero-section .card-title-small {
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- ANIMATION & GHOST --- */
.hero-section .anim-element {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
    opacity: 1;
    transform: translateY(0);
}

.hero-section .anim-element.out {
    opacity: 0;
    transform: translateY(-20px);
    transition: transform 0.3s ease-in, opacity 0.3s ease-in;
}

.hero-section .anim-element.prepare {
    opacity: 0;
    transform: translateY(20px);
    transition: none;
}

/* GHOST DIUPDATE Z-INDEX NYA */
.transition-ghost {
    position: absolute;
    /* Changed from fixed to absolute */
    z-index: 5;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    pointer-events: none;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    transition: all 0.7s cubic-bezier(0.65, 0, 0.35, 1);
}

.transition-ghost::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.9) 0%, rgba(17, 24, 39, 0.7) 50%, rgba(97, 11, 13, 0.6) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.transition-ghost.expanded {
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    /* Changed from 100vw */
    height: 100% !important;
    /* Changed from 100vh */
    border-radius: 0;
}

.transition-ghost.expanded::after {
    opacity: 1;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
    .hero-section {
        height: calc(100vh - 120px);
    }

    .hero-section .hero-container {
        grid-template-columns: 1fr;
        grid-template-rows: 40vh 1fr;
    }

    .hero-section .left-col {
        width: 100%;
        height: 100%;
        padding: 1rem;
        align-items: flex-end;
        justify-content: center;
    }

    .hero-section .product-image-big {
        max-width: 70%;
        max-height: 90%;
    }

    .hero-section .right-col {
        padding-left: 0;
        padding-right: 0;
        justify-content: flex-start;
        padding-top: 1rem;
        display: flex;
    }

    .hero-section .content-wrapper {
        padding: 0 2rem;
        padding-bottom: 0;
        margin-top: 0;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .hero-section .hero-title {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .hero-section .hero-desc {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
        text-align: center;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .hero-section .card-list-wrapper {
        padding-left: 0;
        padding-bottom: 0;
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 80px;
        margin: 0;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
        pointer-events: none;
    }

    .hero-section .cards-container {
        display: none !important;
    }

    .hero-section .nav-controls {
        width: 100%;
        padding: 0 2rem;
        margin: 0;
        height: 100%;
        justify-content: space-between;
        gap: 1rem;
    }

    .hero-section .progress-track {
        display: block;
        flex-grow: 1;
        max-width: 200px;
        margin: 0 10px;
    }

    .hero-section .bg-overlay,
    .transition-ghost::after {
        background: linear-gradient(0deg, rgba(17, 24, 39, 0.95) 0%, rgba(17, 24, 39, 0.7) 40%, rgba(97, 11, 13, 0.8) 100%);
    }
}

@media (max-width: 576px) {
    .hero-section .hero-title {
        font-size: 1.4rem;
        line-height: 1.3;
    }

    .hero-section .hero-desc {
        font-size: 0.85rem;
    }
}


/* Feature Card (Used for Why Trust Us) */
.feature-card {
    border: 1px solid rgba(0, 0, 0, 0.08);
    /* More subtle border */
    border-radius: 16px;
    /* Slightly more rounded */
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    text-align: center;
    background-color: #ffffff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    /* Softer initial shadow */
    padding: 40px 30px;
    /* More padding */
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    /* Sophisticated shadow */
    border-color: transparent;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    height: 64px;
    width: 64px;
    margin-bottom: 20px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    stroke: var(--color-primary);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: visible;
}

.feature-card:hover .feature-icon svg {
    transform: translateY(-8px);
    filter: drop-shadow(0 10px 15px rgba(206, 32, 35, 0.25));
}

.feature-card:hover .svg-draw {
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    animation: svgDraw 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.feature-card:hover .svg-pop {
    opacity: 0;
    transform: scale(0.5);
    transform-origin: center;
    animation: svgPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s forwards;
}

.feature-card:hover .svg-float {
    transform-origin: center;
    animation: svgFloat 2s ease-in-out infinite alternate;
}

@keyframes svgDraw {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes svgPop {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes svgFloat {
    from {
        transform: translateY(0) scale(1);
    }

    to {
        transform: translateY(-3px) scale(1.03);
    }
}

.feature-title {
    color: var(--color-heading);
    font-weight: 700;
}

/* Our Focus Section */
.focus-card {
    background-color: #fff;
    border-radius: 15px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    border: 1px solid #f0f0f0;
}

.focus-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.08);
    border-color: var(--color-primary);
}

.focus-icon {
    height: 64px;
    width: 64px;
    flex-shrink: 0;
    margin-right: 20px;
}

.focus-icon i {
    font-size: 3rem;
    color: var(--color-primary);
}

.focus-title {
    color: var(--color-heading);
    font-weight: 700;
}


/* About Us Section Image */
.about-image-wrapper {
    position: relative;
    min-height: 400px;
}

.about-image-main {
    position: absolute;
    top: 0;
    left: 0;
    width: 85%;
    height: 85%;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.about-image-secondary {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50%;
    height: 50%;
    object-fit: cover;
    border: 5px solid #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Solutions Section */
.solution-card {
    display: block;
    text-decoration: none;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    aspect-ratio: 4 / 3;
    /* Taller for better impact */
    transform: translateZ(0);
    /* Hardware accel */
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.solution-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.solution-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 24px;
    z-index: 2;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
    transition: padding-bottom 0.4s ease;
}

.solution-title {
    color: #fff;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Animated underline on hover */
.solution-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--color-primary);
    margin-top: 8px;
    transition: width 0.3s ease;
}

/* Hover States */
.solution-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.solution-card:hover img {
    transform: scale(1.1);
}

.solution-card:hover .solution-title::after {
    width: 80px;
}

/* Optional: Shine effect can be kept or removed for cleaner look. keeping it subtle */
.solution-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    transition: none;
    z-index: 3;
    pointer-events: none;
}

.solution-card:hover::after {
    left: 200%;
    transition: left 0.8s ease;
}

/* partner */

.partner-card {
    height: 80px;
    overflow: hidden;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 1);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

@media screen and (max-width: 768px) {
    .partner-card {
        height: 60px;
        padding: 8px;
    }
}

.partner-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


/* Trusted By & Availability Logos */

.client-card {
    height: 70px;
    overflow: hidden;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 1);
    border-radius: 8px;
    padding: 8px 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    width: auto;
    min-width: 120px;
}

@media screen and (max-width: 768px) {
    .client-card {
        height: 50px;
        padding: 5px 10px;
    }
}

.client-card img {
    width: auto;
    height: auto;
    max-height: 100%;
    max-width: 150px;
    object-fit: contain;
}

/* Platform Section */
.platform-logo {
    display: block;
    text-decoration: none;
    background-color: #fff;
    aspect-ratio: 16 / 9;
    padding: 16px;
    transition: transform 0.3s ease;
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.platform-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.platform-logo:hover {
    transform: scale(1.05);
}

/* Articles Section */
.article-card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    /* Sophisticated shadow */
}

.article-img {
    height: 220px;
    width: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.article-card:hover .article-img {
    transform: scale(1.05);
    /* Subtle zoom */
}

.article-card .card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-category {
    background-color: rgba(206, 32, 35, 0.1);
    color: var(--color-primary);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-bottom: 15px;
}

.article-excerpt {
    /* max 3 lines */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    font-size: 0.95rem;
    color: #6c757d;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.article-title {
    color: var(--color-heading);
    font-weight: 700;
    text-decoration: none;
    font-size: 1.25rem;
    line-height: 1.4;
    transition: color 0.3s ease;
    margin-bottom: 0.75rem;
    display: block;
}

.article-title:hover {
    color: var(--color-primary);
}

.read-more-btn {
    margin-top: auto;
    color: var(--color-primary);
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    transition: gap 0.3s ease;
}

.read-more-btn i {
    transition: transform 0.3s ease;
}

.read-more-btn:hover {
    gap: 12px;
    color: var(--color-primary-dark);
}