/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background-color: #0b132b;
    color: #e0e6f0;
    overflow-x: hidden; /* Mencegah scroll horizontal */
}

/* NAVBAR */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%; /* Menggunakan % agar fleksibel */
    background-color: #0a0f2c;
}

.logo {
    font-size: clamp(18px, 5vw, 24px); /* Ukuran logo dinamis */
    font-weight: bold;
    color: #4cc9f0;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: clamp(10px, 3vw, 25px);
}

.nav-links a {
    text-decoration: none;
    color: #e0e6f0;
    transition: 0.3s;
    font-size: clamp(12px, 3.5vw, 16px);
}

.nav-links a:hover {
    color: #4cc9f0;
}

/* HERO TITLE */
.hero-title {
    text-align: center;
    padding: clamp(60px, 10vh, 100px) 20px 40px;
}

.hero-title h1 {
    font-size: clamp(28px, 8vw, 42px);
    color: #4cc9f0;
    line-height: 1.2;
}

.hero-title p {
    opacity: 0.8;
    font-size: clamp(14px, 4vw, 18px);
    margin-top: 10px;
}

/* SLIDER */
.slider-section {
    display: flex;
    justify-content: center;
    padding: 10px 20px;
}

.slider {
    position: relative;
    width: 100%; /* Lebar penuh di HP */
    max-width: 900px;
    overflow: hidden;
    border-radius: 16px;
    aspect-ratio: 16 / 9; /* Menjaga proporsi gambar di semua layar */
}

.slides {
    position: relative;
    width: 100%;
    height: 100%; /* Mengikuti aspect ratio slider */
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    border-radius: 16px;
}

.slide.active {
    opacity: 1;
}

/* BUTTON SLIDER */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(10,15,44,0.7);
    border: none;
    color: #fff;
    font-size: clamp(18px, 5vw, 24px);
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 8px;
    z-index: 10;
}

.prev { left: 10px; }
.next { right: 10px; }

/* DETAIL */
.service-detail {
    padding: 60px 5%; /* Padding fleksibel */
    text-align: center;
}

.service-detail h2 {
    font-size: clamp(24px, 7vw, 32px);
    margin-bottom: 20px;
    color: #4cc9f0;
}

.service-detail p {
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 15px;
}

.detail-grid {
    display: grid;
    /* Grid otomatis jadi 1 kolom di HP, 2 atau lebih di PC */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.detail-card {
    background-color: #1c2541;
    padding: 25px;
    border-radius: 12px;
    transition: 0.3s;
}

.detail-card:hover {
    transform: translateY(-5px);
    background-color: #3a86ff;
}

/* CTA */
.cta {
    text-align: center;
    padding: 40px 20px 80px;
}

.cta-button {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 35px;
    background: linear-gradient(135deg, #3a86ff, #4cc9f0);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    transition: 0.3s;
    font-weight: bold;
}

/* FOOTER */
footer {
    background-color: #0a0f2c;
    padding: 25px 20px;
    text-align: center;
    font-size: 13px;
    opacity: 0.7;
}

/* MEDIA QUERIES UNTUK HP KECIL */
@media (max-width: 480px) {
    .navbar {
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
    }
    
    .slider {
        aspect-ratio: 4 / 3; /* Slider lebih kotak di HP agar gambar tidak terlalu tipis */
    }
}