/* ================================ */
/* BASE STYLES */
/* ================================ */
body.landing-page-layout {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* ================================ */
/* HEADER */
/* ================================ */
.homepage-header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.homepage-header .container {
    display: flex;
    justify-content: center;
}

.homepage-header .custom-logo {
    max-height: 50px;
    width: auto;
}

/* ================================ */
/* HERO SECTION */
/* ================================ */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.6) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: #fff;
    padding: 20px;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 300px;
    margin: 0 auto;
}

.cta-button {
    display: inline-block;
    padding: 15px 25px;
    background-color: #ff6b6b;
    color: white;
    border-radius: 50px;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    font-size: 1.1rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.cta-button:hover {
    background-color: #ff5252;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.25);
}

.cta-button-secondary {
    background-color: rgba(255,255,255,0.2);
    border: 2px solid white;
    backdrop-filter: blur(5px);
}

.cta-button-secondary:hover {
    background-color: rgba(255,255,255,0.3);
}

/* ================================ */
/* SECTION STYLES */
/* ================================ */
.landing-section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: #333;
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #ff6b6b;
    margin: 15px auto;
    border-radius: 2px;
}

/* ================================ */
/* USPs/SOLUTION SECTION */
/* ================================ */
.usp-item {
    background: white;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    height: 100%;
    transition: transform 0.3s ease;
}

.usp-item:hover {
    transform: translateY(-10px);
}

.usp-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.usp-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #ff6b6b;
}

.usp-text {
    color: #666;
    margin-bottom: 0;
}

/* ================================ */
/* PRODUCT GALLERY */
/* ================================ */
#product-gallery {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.product-image-wrapper {
    position: relative;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    overflow: hidden;
    border-radius: 15px;
}

.product-slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover .product-slide-image {
    transform: scale(1.05);
}

.swiper-button-next, 
.swiper-button-prev {
    color: #ff6b6b !important;
    background: rgba(255, 255, 255, 0.8);
    width: 40px !important;
    height: 40px !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.swiper-button-next:after, 
.swiper-button-prev:after {
    font-size: 20px !important;
    font-weight: bold;
}

.swiper-pagination-bullet-active {
    background: #ff6b6b !important;
}

.button-secondary {
    display: inline-block;
    padding: 12px 25px;
    border: 2px solid #ff6b6b;
    color: #ff6b6b;
    border-radius: 50px;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.button-secondary:hover {
    background-color: #ff6b6b;
    color: white;
}

/* ================================ */
/* STEPS SECTION */
/* ================================ */
.steps-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
}

.step-item {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.step-item:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 8px;
    height: 100%;
    background-color: #ff6b6b;
}

.step-item h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #ff6b6b;
}

.step-item p {
    color: #666;
    margin: 0;
}

/* ================================ */
/* FINAL CTA SECTION */
/* ================================ */
.final-cta-section {
    background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
    color: white;
    text-align: center;
    border-radius: 20px;
    margin: 40px 0;
}

.section-description {
    max-width: 600px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* ================================ */
/* FOOTER */
/* ================================ */
.homepage-footer {
    background-color: #333;
    color: #fff;
    padding: 50px 0 30px;
}

.homepage-footer .container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.social-icons a {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 50px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: #ff6b6b;
    transform: translateY(-3px);
}

.contact-info {
    text-align: center;
    line-height: 1.8;
    font-size: 0.95rem;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.footer-nav a {
    padding: 8px 15px;
    background: rgba(255,255,255,0.1);
    border-radius: 50px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-nav a:hover {
    background: #ff6b6b;
}

/* ================================ */
/* RESPONSIVE ADJUSTMENTS */
/* ================================ */
@media (min-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.4rem;
    }
    
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
        max-width: none;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .steps-section {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .step-item {
        flex: 1;
        min-width: 300px;
    }
    
    .homepage-footer .container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    
    .homepage-footer .container > div {
        flex: 1;
        min-width: 300px;
    }
}

@media (min-width: 992px) {
    .hero-content {
        text-align: left;
        max-width: 50%;
        margin-left: 0;
    }
    
    .hero-buttons {
        justify-content: flex-start;
    }
}

/* ================================ */
/* PERBAIKAN SLIDER KEUNGGULAN UNTUK MOBILE */
/* ================================ */
.keunggulan-slider {
    overflow: hidden;
    position: relative;
    width: 100%;
    padding-bottom: 40px; /* Ruang untuk pagination */
}

.keunggulan-slider .swiper-wrapper {
    padding: 10px 0 30px; /* Padding vertikal */
    display: flex; /* Memastikan wrapper menggunakan flex */
}

.keunggulan-slider .swiper-slide {
    width: 85% !important; /* Lebar slide lebih kecil dari container */
    max-width: 320px; /* Batas maksimal lebar */
    margin-right: 15px; /* Jarak antar slide */
    box-sizing: border-box;
    transition: transform 0.3s ease;
    flex-shrink: 0; /* Mencegah slide menyusut */
}

.keunggulan-slider .swiper-slide:last-child {
    margin-right: 0;
}

.usp-item {
    height: 100%;
    padding: 25px 20px;
    border-radius: 20px;
    background: white;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.usp-icon {
    font-size: 2.8rem;
    margin-bottom: 15px;
    line-height: 1;
}

.usp-title {
    font-size: 1.35rem;
    margin-bottom: 12px;
    color: #ff6b6b;
    line-height: 1.3;
}

.usp-text {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

/* Pagination */
.keunggulan-slider .swiper-pagination {
    bottom: 0 !important;
}

.keunggulan-slider .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background-color: #ddd;
    opacity: 1;
    margin: 0 5px !important;
}

.keunggulan-slider .swiper-pagination-bullet-active {
    background-color: #ff6b6b;
    transform: scale(1.2);
}

/* Untuk tablet */
@media (min-width: 768px) {
    .keunggulan-slider .swiper-slide {
        width: calc(33.333% - 20px) !important;
        max-width: none;
        margin-right: 20px;
    }
    
    .usp-icon {
        font-size: 3.2rem;
    }
    
    .usp-title {
        font-size: 1.5rem;
    }
    
    .usp-text {
        font-size: 1rem;
    }
}

/* SWIPER FIXES */
.swiper {
    width: 100%;
    height: 100%;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
}

.swiper-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
}

.swiper-slide {
    flex-shrink: 0;
    width: 100%;
    height: 100%;
    position: relative;
}

/* KEUNGGULAN SLIDER FIXES */
.keunggulan-slider {
    padding-bottom: 40px;
}

.keunggulan-slider .swiper-slide {
    width: 85%;
    max-width: 320px;
    height: auto;
    margin-right: 15px;
    box-sizing: border-box;
}

/* PAGINATION FIX */
.swiper-pagination {
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 10;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #ccc;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: #ff6b6b;
    opacity: 1;
    transform: scale(1.2);
}

/* FALLBACK UNTUK NON-JAVASCRIPT */
.no-js .swiper-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.no-js .swiper-slide {
    width: 100% !important;
    margin-right: 0 !important;
}

.no-js .swiper-pagination,
.no-js .swiper-button-next,
.no-js .swiper-button-prev {
    display: none !important;
}

/* ================================ */
/* CUSTOM SLIDER SOLUTION */
/* ================================ */
.custom-slider-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding-bottom: 40px;
}

.custom-slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    padding: 10px 0;
}

.custom-slide {
    flex: 0 0 auto;
    width: 85%;
    max-width: 320px;
    margin-right: 15px;
    box-sizing: border-box;
}

.custom-slider-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.custom-slider-prev,
.custom-slider-next {
    background: #ff6b6b;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.custom-slider-prev:hover,
.custom-slider-next:hover {
    background: #e55a5a;
    transform: scale(1.1);
}

.custom-pagination {
    display: flex;
    gap: 8px;
}

.custom-pagination-bullet {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-pagination-bullet.active {
    background: #ff6b6b;
    transform: scale(1.2);
}

/* USP Item Styles */
.usp-item {
    height: 100%;
    padding: 25px 20px;
    border-radius: 20px;
    background: white;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.usp-icon {
    font-size: 2.8rem;
    margin-bottom: 15px;
    line-height: 1;
}

.usp-title {
    font-size: 1.35rem;
    margin-bottom: 12px;
    color: #ff6b6b;
    line-height: 1.3;
}

.usp-text {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

/* Responsive Styles */
@media (min-width: 768px) {
    .custom-slide {
        width: calc(33.333% - 20px);
        max-width: none;
        margin-right: 20px;
    }
    
    .usp-icon {
        font-size: 3.2rem;
    }
    
    .usp-title {
        font-size: 1.5rem;
    }
    
    .usp-text {
        font-size: 1rem;
    }
}

/* Mobile Optimization */
@media (max-width: 767px) {
    .custom-slider-container {
        padding-bottom: 30px;
    }
    
    .custom-slide {
        width: 80%;
        margin-right: 10px;
    }
    
    .usp-item {
        padding: 20px 15px;
    }
    
    .usp-icon {
        font-size: 2.5rem;
    }
    
    .usp-title {
        font-size: 1.25rem;
    }
    
    .usp-text {
        font-size: 0.9rem;
    }
    
    .custom-slider-prev,
    .custom-slider-next {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .custom-pagination-bullet {
        width: 10px;
        height: 10px;
    }
}

/* Touch support for mobile */
.custom-slider-track {
    scroll-snap-type: x mandatory;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

.custom-slide {
    scroll-snap-align: start;
}