/* Reset dan penataan dasar */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    box-sizing: border-box;
}

/* Header styles */
header {
    background-color: #111;
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between; /* Logo kiri dan menu kanan */
    align-items: center;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.header-container .logo a {
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
    color: red; /* Set HIK CCTV text color to red */
}

.header-container .logo a:hover,
.header-container .logo a:focus,
.header-container .logo a:active {
    color: red; /* Keep the color red for hover, focus, and active */
}

.header-container .logo .medan {
    color: white; /* Set Medan text color to white */
    font-weight: normal;
}

/* Navigation Styles */
nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin: 0 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    padding: 10px;
    transition: color 0.3s ease, transform 0.3s ease;
}

/* Menu toggle for small screens (Hamburger menu) */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    width: 30px;
    height: 25px;
    background-color: transparent;
    border: none;
    position: absolute; /* Positioning menu button at the top right */
    right: 20px; /* Aligning it to the right */
    top: 20px; /* Aligning it to the top */
}

.menu-toggle div {
    width: 25px;
    height: 3px;
    background-color: #fff;
}

/* Hero Section */
.hero {
    background: url('IMG/utama.jpg') no-repeat center center;
    background-size: cover;
    color: white;
    height: 100vh; /* Full height of the viewport */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 24px;
    margin-bottom: 20px;
}

.cta-button {
    background-color: #0071e3;
    padding: 12px 24px;
    font-size: 18px;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

/* Footer */
footer {
    background-color: #111;
    color: #fff;
    padding: 40px 20px;
    text-align: center;
}

/* Container untuk footer */
.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

/* Bagian Links Footer */
.footer-links {
    flex: 1;
    min-width: 200px; /* Agar tidak terlalu kecil */
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links ul li a:hover {
    color: #0071e3; /* Hover color untuk link */
}

/* Bagian Social Media */
.social-media {
    flex: 1;
    min-width: 200px; /* Agar tidak terlalu kecil */
    margin-bottom: 20px;
}

.social-media a {
    color: #fff;
    margin: 0 10px;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.social-media a:hover {
    color: #0071e3; /* Hover color untuk social media link */
}

/* Bagian Informasi Tambahan */
.footer-info {
    flex: 1;
    min-width: 200px; /* Agar tidak terlalu kecil */
    margin-bottom: 20px;
}

.footer-info p {
    font-size: 14px;
    color: #bbb;
}

.footer-info a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    display: block;
    margin-bottom: 10px;
}

.footer-info a:hover {
    color: #0071e3;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-links,
    .social-media,
    .footer-info {
        flex: 1 1 100%; /* Membuat setiap bagian full width */
        margin-bottom: 20px;
    }

    .footer-links ul li,
    .social-media a,
    .footer-info a {
        font-size: 16px; /* Ukuran font sedikit lebih besar di perangkat mobile */
    }

    /* Mengubah menu responsif menjadi kolom dan di kanan */
    nav ul {
        flex-direction: column;
        display: none; /* Initially hide the menu */
        width: 100%;
        position: absolute; /* Menu di posisi absolut */
        top: 60px; /* Memberikan jarak dari hamburger */
        right: 0; /* Menu muncul dari sisi kanan */
        background-color: #111;
    }

    nav ul li {
        margin: 10px 0;
    }

    .menu-toggle {
        display: flex;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .hero-content p {
        font-size: 18px;
    }

    .cta-button {
        padding: 10px 20px;
        font-size: 16px;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }
}

/* Small screens (Mobile phones) */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 28px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .cta-button {
        font-size: 14px;
        padding: 8px 16px;
    }
}

/* Show the menu when the hamburger icon is clicked */
nav ul.show {
    display: flex;
}

