/* =========================================
   RESET & VARIABEL GLOBAL
========================================= */
:root {
    /* Brand Colors */
    --merah: #ff0000;
    --jingga-tua: #ff4e00;
    --jingga-muda: #fd8946;
    
    /* Neutral & Text Colors */
    --dark: #050505;
    --text-dark: #141414;
    --text-grey: #666666;
    --text-light: #fce9e0;
    --bg-light: #ffffff;
    
    /* Utilities */
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'IBM Plex Sans', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

/* =========================================
   TIPOGRAFI & UTILITY CLASSES
========================================= */
.sansation-light { font-family: "Sansation", sans-serif; font-weight: 300; font-style: normal; }
.sansation-regular { font-family: "Sansation", sans-serif; font-weight: 400; font-style: normal; }
.sansation-bold { font-family: "Sansation", sans-serif; font-weight: 700; font-style: normal; }
.sansation-light-italic { font-family: "Sansation", sans-serif; font-weight: 300; font-style: italic; }
.sansation-regular-italic { font-family: "Sansation", sans-serif; font-weight: 400; font-style: italic; }
.sansation-bold-italic { font-family: "Sansation", sans-serif; font-weight: 700; font-style: italic; }

h1, h2, h3, .logo { font-weight: 700; }

h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--jingga-tua);
    font-size: 2rem;
}

.product-category, .copyright {
    font-weight: 300;
}

/* =========================================
   NAVIGASI (HEADER)
========================================= */
nav {
    position: sticky;
    top: 0;
    background-color: var(--dark);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.logo {
    color: var(--jingga-tua);
    font-size: 1.5rem;
    letter-spacing: 1px;
    text-decoration: none; 
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 400;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--jingga-tua);
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-light);
    border-radius: 3px;
    transition: var(--transition);
}

/* =========================================
   LAYOUT SECTION UMUM
========================================= */
section,
header,
footer {
    padding: 5rem 10%;
}

/* =========================================
   HERO SECTION (BERANDA) - DENGAN VIDEO & PARALAKS
========================================= */
.hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-light);
    min-height: 100vh;
    overflow: hidden; 
    background-color: #000000; /* Hitam pekat untuk transisi mulus */
}

/* Overlay Gelap agar teks tetap terbaca dengan jelas */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.5));
    z-index: 1; /* Di atas video, di bawah teks */
}

/* KOTAK PEMBUNGKUS VIDEO (Normal) */
.video-wrapper {
    position: absolute;
    top: -25%; 
    left: 0;
    width: 100%;
    height: 150%; 
    z-index: 0;
    will-change: transform;
    transform: translate3d(0, 0, 0); 
}

/* VIDEO */
.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.8s ease-in-out !important;
}

.hero-video.fade-out {
    opacity: 0;
}

/* Teks & Konten Hero */
.hero-content,
.hero-graphic {
    position: relative;
    z-index: 2; /* Menempatkan konten di lapisan teratas (di atas overlay) */
}

.hero-content {
    max-width: 50%;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--jingga-tua);
}

.hero-content p {
    line-height: 1.6;
}

.btn-primary {
    display: inline-block;
    padding: 10px 25px;
    margin-top: 20px;
    background-color: var(--jingga-tua);
    color: var(--text-light);
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: var(--jingga-muda);
    transform: translateY(-3px);
}

.hero-graphic {
    width: 500px;
    height: 500px;
}

.floating-server {
    width: 100%;
    height: 100%;
    background: url('images/hero-img-maximatech1.png') no-repeat center center;
    filter: drop-shadow(0px 10px 8px rgba(0, 0, 0, 0.5));
    background-size: contain;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0); }
}

/* =========================================
   TENTANG KAMI
========================================= */
#tentang p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    color: var(--text-dark);
}

#tentang p:last-child {
    margin-bottom: 0;
}

.keunggulan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.keunggulan-card {
    background-color: var(--bg-light);
    padding: 2.5rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

.keunggulan-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
    border-bottom: 4px solid var(--jingga-tua);
}

.keunggulan-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem auto;
    color: var(--jingga-tua);
}

.keunggulan-icon svg {
    width: 100%;
    height: 100%;
}

.keunggulan-card h3 {
    font-size: 1.2rem;
    color: var(--dark);
    margin-bottom: 1rem;
}

#tentang .keunggulan-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
    max-width: 100%; 
    color: var(--text-grey);
}

/* =========================================
   KATALOG PRODUK
========================================= */
.tabs-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 8px 20px;
    border: 2px solid var(--primary-blue);
    background: transparent;
    color: var(--primary-blue);
    cursor: pointer;
    font-weight: bold;
    border-radius: 20px;
    transition: var(--transition);
}

.tab-btn.active,
.tab-btn:hover {
    background: var(--primary-blue);
    color: var(--text-light);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--bg-light);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.product-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-bottom: 2px solid var(--bg-light);
}

.product-info {
    padding: 1.5rem;
}

.product-category {
    font-size: 0.8rem;
    color: var(--jingga-tua);
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.5rem;
}

.product-info h3 {
    font-size: 1.2rem;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.product-info p {
    font-size: 0.75rem;
    line-height: 1.4;
    color: var(--text-grey);
    white-space: pre-wrap; 
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* =========================================
   TESTIMONI KLIEN (DENGAN IMAGE PARALLAX)
========================================= */
#testimoni {
    position: relative;
    color: var(--text-light);
    
    /* Pengaturan Background Paralaks */
    background-image: url('images/hero-bg-maximatech1.jpg');
    background-attachment: fixed; /* Kunci rahasia paralaks mulus via CSS */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    
    z-index: 1;
}

/* Lapisan Gelap (Overlay) agar teks tetap terbaca */
#testimoni::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Diubah ke warna hitam transparan */
    z-index: -1;
}

#testimoni h2 {
    color: var(--text-light); /* Memastikan judul berwarna terang */
}

.testimoni-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimoni-card {
    /* Background kartu dibuat agak buram/transparan agar menyatu dengan latar belakang */
    background: rgba(255, 255, 255, 0.08); 
    backdrop-filter: blur(5px); /* Efek kaca kekinian (Glassmorphism) */
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--jingga-tua);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.testimoni-card p {
    font-style: italic;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.testimoni-card h4 {
    color: var(--jingga-tua);
    font-weight: bold;
}

/* =========================================
   BRAND MITRA
========================================= */
.brand-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.brand-item {
    background: var(--bg-light);
    width: 160px;
    height: 100px;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
}

.brand-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.brand-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* =========================================
   FAQ
========================================= */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-light);
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    overflow: hidden; 
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 1.2rem 1.5rem;
    background: none;
    border: none;
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--primary-blue);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--jingga-tua);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.faq-question.active::after {
    transform: rotate(45deg);
    color: var(--jingga-tua);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease; 
    background: var(--bg-light);
}

.faq-answer p {
    padding: 0 1.5rem 1.2rem 1.5rem;
    color: var(--text-grey);
    line-height: 1.6;
}

/* =========================================
   FOOTER & KONTAK MAP
========================================= */
footer {
    background-color: var(--text-dark);
    color: var(--text-light);
    padding-top: 5rem;
    padding-bottom: 2rem; 
}

footer h2 {
    color: var(--text-light);
    margin-bottom: 3rem;
}

.kontak-container {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem; 
    max-width: 1100px;
    margin: 0 auto;
    align-items: stretch; 
}

.kontak-info {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.kontak-info h3 {
    color: var(--jingga-tua);
    font-size: 1.4rem;
    margin-bottom: 2rem;
    letter-spacing: 1px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 1.5rem;
}

.info-item svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 2px; 
}

.info-item p {
    line-height: 1.6;
    margin: 0;
    color: #d1d5db; 
}

.kontak-map {
    flex: 1.2; 
    min-width: 300px;
    border-radius: 12px; 
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); 
    border: 1px solid rgba(255, 255, 255, 0.05); 
}

.kontak-map iframe {
    display: block; 
    width: 100%;
    height: 100%;
    min-height: 300px;
}

.footer-bottom {
    max-width: 1100px;
    margin: 4rem auto 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1); 
    text-align: center;
}

.copyright {
    font-size: 0.85rem;
    opacity: 0.5;
    color: var(--text-light);
    margin: 0;
}

/* =========================================
   FLOATING WHATSAPP BUTTON
========================================= */
.wa-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    transition: var(--transition);
}

.wa-float:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

.wa-float svg {
    width: 35px;
    height: 35px;
}

/* =========================================
   MEDIA QUERIES (RESPONSIF MOBILE)
========================================= */
@media (max-width: 768px) {
    .hamburger { display: flex; }

    .nav-links {
        position: absolute;
        top: 100%;
        left: -100%; 
        width: 100%;
        background-color: var(--text-dark);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        transition: left 0.3s ease-in-out; 
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active { left: 0; }
    .nav-links li { margin: 1rem 0; }

    .hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .hero-section {
        flex-direction: column;
        text-align: center;
        justify-content: center;
        padding: 6rem 5% 3rem 5%; 
    }
    
    .hero-content {
        max-width: 100%;
        width: 80%;
        padding: 0;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 1rem;
        margin: 0 auto 1rem auto;
        text-align: center;
    }
    
    .hero-content p {
        font-size: 0.95rem; 
        line-height: 1.6;
        margin: 0 auto 2rem auto;
        width: 100%;
        text-align: center;
    }

    .hero-graphic {
        margin-top: 2rem;
        width: 100%;       
        max-width: 350px;  
        height: 350px;     
        margin-left: auto; 
        margin-right: auto;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr); 
        gap: 10px;
    }

    .product-info { padding: 1rem; }
    .product-image img { height: 150px; }
    .product-category { font-size: 0.7rem; }

    .product-info h3 {
        font-size: 0.9rem;
        line-height: 1.3;
        margin-bottom: 0.3rem;
    }

    .brand-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .brand-item {
        width: 100%; 
        height: 70px;
        padding: 8px;
    }
    
    .wa-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    
    .wa-float svg { width: 28px; height: 28px; }
}