/* Variabel CSS untuk kemudahan */
:root {
    --primary-color: #007bff;
    --secondary-color: #f8f9fa;
    --dark-color: #343a40;
    --light-color: #ffffff;
    --border-radius: 8px;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-color: #f4f7f9;
    color: var(--dark-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    overflow: hidden;
}

header {
    background-color: var(--light-color);
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* --- Slider Image --- */
.slider-section {
    height: 500px;
    background: url('https://via.placeholder.com/1200x500.png?text=Slider+Image') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--light-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.slider-content h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.slider-content p {
    font-size: 1.2rem;
}

/* --- Sections Utama --- */
section {
    padding: 60px 0;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
    color: var(--dark-color);
}

/* --- About Section --- */
#about p {
    max-width: 800px;
    margin: auto;
    text-align: center;
}

/* --- Demo Software Section --- */
.software-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.software-card {
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease;
}

.software-card:hover {
    transform: translateY(-10px);
}

.software-logo {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.software-card h3 {
    margin-top: 0;
    color: var(--dark-color);
}

.software-card p {
    font-size: 0.9rem;
    color: #6c757d;
}

/* --- Contact Section --- */
#contact .contact-info {
    max-width: 600px;
    margin: auto;
    text-align: center;
}

#contact .contact-info p {
    margin-bottom: 10px;
}

#contact .contact-info a {
    color: var(--primary-color);
    text-decoration: none;
}

/* --- Footer --- */
footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 40px;
}

/* Sembunyikan tombol hamburger di desktop */
.navbar-toggler {
    display: none;
    border: none;
    background: transparent;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-color);
}

/* Media Query untuk Layar Mobile/Tablet */
@media screen and (max-width: 768px) {
    /* Tampilkan tombol hamburger */
    .navbar-toggler {
        display: block;
    }

    /* Atur menu agar jadi vertikal dan sembunyikan */
    .nav-links {
        display: flex;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 60px; /* Sesuaikan dengan tinggi header */
        left: 0;
        background-color: var(--light-color);
        box-shadow: 0 4px 5px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
        transform: translateY(-150%); /* Sembunyikan menu ke atas */
        transition: transform 0.3s ease-in-out;
    }
    
    .nav-links li {
        text-align: center;
        margin: 10px 0;
    }

    /* Ketika class 'active' ditambahkan, menu akan muncul */
    .nav-links.active {
        transform: translateY(0);
    }
}

/* Atur ukuran gambar logo */
.logo img {
    height: 70px; /* Sesuaikan tinggi gambar logo */
    vertical-align: middle;
}

/* Hapus gaya teks logo yang tidak lagi diperlukan */
.logo {
    /* Hapus font-size, font-weight, color, dll. di sini */
}
/* Atur ukuran gambar di dalam card demo */
.software-card img {
    height: 100px; /* Atur tinggi gambar */
    width: 100px;  /* Atur lebar gambar */
    object-fit: contain; /* Penting! Menjaga rasio aspek gambar agar tidak gepeng */
    margin: 0 auto; /* Otomatis membuat gambar di tengah */
    display: block; /* Memastikan margin auto bekerja dengan baik */
    margin-bottom: 15px; /* Memberi jarak ke teks di bawahnya */
}
