/* --- Variables & Reset --- */
:root {
    /* Warna Tema: Red + Green (Light Mode) */
    --primary-red: #c62828;       /* Merah Maroon yang elegan */
    --primary-hover: #b71c1c;
    --accent-green: #2e7d32;      /* Hijau Forest untuk aksen */
    
    --light-bg: #ffffff;          /* Background putih */
    --card-bg: #ffffff;           /* Background kartu putih */
    --section-bg: #f8f9fa;        /* Background seksi abu-abu muda */
    
    --text-dark: #212529;         /* Teks hitam */
    --text-gray: #6c757d;         /* Teks abu-abu */
    
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--light-bg);
    color: var(--text-dark);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-dark);
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding { padding: 80px 0; }
.text-red { color: var(--primary-red); }
.bg-darker { background-color: var(--section-bg); }

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: var(--primary-red);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(198, 40, 40, 0.3);
}

.btn-outline {
    border-color: var(--accent-green);
    color: var(--accent-green);
}

.btn-outline:hover {
    background-color: var(--accent-green);
    color: white;
}

/* --- Navbar --- */
nav {
    background-color: rgba(255, 255, 255, 0.95);
    height: 70px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #dee2e6;
    backdrop-filter: blur(10px);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.brand {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

.nav-links { display: flex; }
.nav-links li { margin-left: 30px; }
.nav-links a { 
    font-size: 0.9rem; 
    font-weight: 600; 
    color: var(--text-dark);
}
.nav-links a:hover { color: var(--primary-red); }

/* Burger Menu */
.burger { display: none; cursor: pointer; }
.burger div {
    width: 25px; height: 3px; background-color: var(--text-dark); margin: 5px; transition: all 0.3s ease;
}

/* --- Hero Section --- */
#hero {
    height: 100vh;
    /* Ganti URL gambar di bawah dengan gambar komputer/server yang keren */
    background: url('https://images.unsplash.com/photo-1518770660439-4636190af475?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 0;
}

.overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(18,18,18,0.6), rgba(18,18,18,0.95));
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    color: #ffffff;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #ffffff;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btns .btn { margin: 10px; }

/* Fix visibility of outline button on dark hero background */
#hero .btn-outline {
    border-color: #ffffff;
    color: #ffffff;
}
#hero .btn-outline:hover { background-color: #ffffff; color: var(--text-dark); }

/* --- Section Titles --- */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 { font-size: 2.2rem; margin-bottom: 15px; }
.section-title .line {
    width: 80px; height: 4px; background-color: var(--primary-red); margin: 0 auto; border-radius: 2px;
}

/* --- Kelebihan (Features) --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--light-bg);
    padding: 40px 30px;
    text-align: center;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #e9ecef;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-color: var(--accent-green);
}

.icon-box {
    font-size: 2.5rem;
    color: var(--accent-green);
    margin-bottom: 20px;
}

.feature-card h3 { margin-bottom: 15px; font-size: 1.3rem; }
.feature-card p { color: var(--text-gray); font-size: 0.95rem; }

/* --- Layanan (Services) --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.service-item {
    background-color: var(--light-bg); /* padding: 35px; */
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    border: 1px solid #e9ecef;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.service-item:hover {
    border-color: var(--primary-red);
}

.service-item:hover .service-image-container img {
    transform: scale(1.05);
}

.service-image-container {
    height: 200px;
    width: 100%;
    overflow: hidden;
}

.service-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.service-content {
    padding: 30px;
    flex-grow: 1;
    text-align: center;
}

.service-content h3 { margin-bottom: 10px; font-size: 1.2rem; }
.service-content p { color: var(--text-gray); font-size: 0.9rem; }

/* --- CTA --- */
#cta {
    background-color: var(--section-bg);
    padding: 80px 0;
    text-align: center;
    border-top: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
}

.cta-content h2 { 
    margin-bottom: 15px;
    font-size: 2.5rem;
}
.cta-content p { margin-bottom: 30px; color: var(--text-gray); font-size: 1.1rem; }

/* --- Testimoni Section --- */
#testimoni {
    overflow-x: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
    margin-top: 40px;
    mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}

.slider-container:hover .slider-track {
    animation-play-state: paused;
}

.slider-track {
    display: flex;
    width: calc(400px * 8); /* Lebar slide * jumlah slide (asli + duplikat) */
    animation: scroll 40s linear infinite;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-400px * 4)); /* Lebar slide * jumlah slide asli */
    }
}

.slide {
    width: 380px;
    flex-shrink: 0;
    padding: 30px;
    margin: 0 10px;
    background: var(--light-bg);
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.slide .quote-icon {
    font-size: 1.8rem;
    color: var(--accent-green);
    opacity: 0.4;
}

.slide blockquote {
    font-style: italic;
    color: var(--text-gray);
    border: none;
    margin: 15px 0;
}

.slide .author h4 { margin-bottom: 2px; font-size: 1rem; }
.slide .author p { font-size: 0.85rem; color: var(--text-gray); margin: 0; }

/* --- FAQ Section --- */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.faq-item {
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: 0.3s;
}

.faq-item:hover {
    border-color: var(--primary-red);
    transform: translateY(-5px);
}

.faq-item h3 { font-size: 1.1rem; margin-bottom: 10px; color: var(--primary-red); }
.faq-item h3 i { margin-right: 10px; }
.faq-item p { font-size: 0.95rem; color: var(--text-gray); }

/* --- Kontak --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-form input, 
.contact-form select, 
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    background-color: #ffffff;
    border: 1px solid #ced4da;
    color: var(--text-dark);
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.3s;
}

.contact-form input:focus, 
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-red);
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.info-item i {
    font-size: 1.4rem;
    color: var(--accent-green);
    margin-right: 20px;
    margin-top: 5px;
    width: 25px;
    text-align: center;
}

.info-item h4 { margin-bottom: 5px; font-size: 1.1rem; }
.info-item p { color: var(--text-gray); }

.map-container {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #dee2e6;
    margin-top: 20px;
}

/* --- Client Logos Section --- */
#clients {
    overflow-x: hidden;
}

.client-slider-container {
    position: relative;
    width: 100%;
    margin-top: 40px;
    mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}

.client-slider-container:hover .client-slider-track {
    animation-play-state: paused;
}

.client-slider-track {
    display: flex;
    width: calc(200px * 14); /* Lebar slide * jumlah slide (asli + duplikat) */
    animation: client-scroll 40s linear infinite;
}

@keyframes client-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-200px * 7)); /* Lebar slide * jumlah slide asli */
    }
}

.client-slide {
    width: 200px;
    flex-shrink: 0;
    padding: 20px;
    text-align: center;
}

.client-slide img {
    max-width: 100%;
    height: 60px; /* Atur tinggi logo agar seragam */
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.client-slide:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* --- Footer --- */
footer {
    background-color: var(--section-bg);
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid #dee2e6;
}

footer p { font-size: 0.9rem; color: var(--text-gray); }

/* --- Responsive --- */
@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: 0px;
        height: 100vh;
        top: 70px;
        background-color: var(--light-bg);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 60%;
        transform: translateX(100%);
        transition: transform 0.4s ease-in;
        border-left: 1px solid #dee2e6;
        padding-top: 50px;
    }
    
    .nav-links li { margin: 25px 0; }
    .burger { display: block; }
    .nav-active { transform: translateX(0%); }
    
    /* Burger Animation Class */
    .toggle .line1 { transform: rotate(-45deg) translate(-5px, 6px); }
    .toggle .line2 { opacity: 0; }
    .toggle .line3 { transform: rotate(45deg) translate(-5px, -6px); }
    
    .hero-content h1 { font-size: 2rem; }
    .contact-wrapper { grid-template-columns: 1fr; }
    
    .section-padding { padding: 60px 0; }
}

/* --- Scroll Reveal Animation --- */
.reveal {
    position: relative;
    transform: translateY(50px);
    opacity: 0;
    transition: all 1s ease;
}

.reveal.active {
    transform: translateY(0);
    opacity: 1;
}

/* --- Floating WhatsApp Button --- */
.floating-wa {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 1000; /* Pastikan di atas elemen lain */
    transition: all 0.3s ease;
    text-decoration: none;
    animation: pulse-green 2s infinite;
}

.floating-wa:hover {
    transform: scale(1.1);
    background-color: #128c7e;
    animation-play-state: paused; /* Hentikan animasi saat hover */
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}