/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* Hero Section */
.hero-section {
    background-color: #d32f2f;
    background: url('Header/Background.png') no-repeat center center/cover;
    height: 50vh;
    position: relative;
}

.hero-overlay {
    background-color: rgba(0, 0, 0, 0);
    color: #fff;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Agar konten ke kiri */
    text-align: left;
    padding: 0 40px;
}

.hero-content {
    max-width: 600px; /* Membatasi lebar teks */
}

.hero-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.hero-logo {
    width: 50px;
    height: auto; /* Menjaga proporsi logo */
    margin-right: 10px; /* Spasi antara logo dan nama perusahaan */
}

.company-name {
    font-size: 2rem;
    margin: 06;
}

.hero-description {
    font-size: 1rem;
    margin-top: 10px;
    color: #cdcdcd;
    box-shadow: 0 4px 6px rgba(0, 0, 0,5, 0.1); /* Efek bayangan */
}
/* Product Section */
.product-section {
    padding: 20px;
    background: #f9f9f9;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Tiga kolom untuk desktop */
    gap: 20px; /* Tambahkan jarak antar kartu */
}

.product-card {
    display: flex;
    border: 1px solid #ddd;
    background: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Efek bayangan */
    transition: box-shadow 0.3s ease; /* Transisi untuk animasi */
}

.product-card img {
    width: 50%;
    object-fit: cover;
}

.product-card-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 50%;
    text-align: left;
}

.product-card h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 10px;
    text-align: left;
}

.product-card p {
    font-size: 0.7rem;
    color: #666;
    margin-bottom: 10px;
    text-align: left;
}

.contact-button {
    background: #d32f2f;
    color: #fff;
    border: none;
    padding: 10px;
    cursor: pointer;
    align-self: flex-start;
}



.contact-button:hover {
    background: #b71c1c;
}
/* General Section Styling */
.contact-section {
    background-color: #272C42;
    color: #ffffff;
    padding: 20px 10px;
    text-align: center;
}

.contact-section a{
color: #ffffff;

}

.contact-container {
    max-width: 900px;
    margin: 0 auto;
}

.contact-container h2 {
    font-size: 2rem;
    margin-bottom: 5px;
}

.contact-container p {
    font-size: 1rem;
    margin-bottom: 20px;
}

/* Row Styling */
.contact-row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

/* Contact Box Styling */
.contact-box {
    background-color: #272C42;
    border: 0;
    border-radius: 5px;
    padding: 20px;
    flex: 1;
    max-width: 30%;
    text-align: left;
}

.contact-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.contact-header img {
    width: 30px;
    height: 30px;
}

.contact-header span {
    font-size: 1.2rem;
    font-weight: bold;
}

.contact-content p {
    margin: 5px 0;
    font-size: 0.9rem;
}

.social-icons {
    display: flex;
    gap: 5px;
}

.social-icons a img {
    width: 100px;
    height: 100px;
}

/* Warehouse Section Styling */
.warehouse {
    margin-top: 20px;
    background-color: #2d3748;
    color: #ffffff;
    padding: 20px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.warehouse-box {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.warehouse-box img {
    width: 60px;
    height: 60px;
}

.warehouse-text h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: left;
}

.warehouse-text p {
    margin: 5px 0 0 0;
    font-size: 0.9rem;
    text-align: left;
}

/* Copyright Section Styling */
.copyright {
    background-color: #1a202c;
    color: #ffffff;
    text-align: center;
    padding: 10px 0;
    font-size: 0.85rem;
    margin-top: 20px;
    border-top: 2px solid #2d3748;
}

.copyright p {
    margin: 0;
    font-weight: 400;
}
.floating-icons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.icon {
    width: 60px;
    height: 60px;
    background-color: #25d366; /* Default WhatsApp color */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.icon:hover {
    transform: scale(1.1);
}

.icon.email {
    background-color: #0078D4; /* Default email color (blue) */
}

.icon img {
    width: 50%;
    height: 50%;
}


/* Responsif untuk Tampilan Mobile */

@media (max-width: 500px) {
    .hero-section {
        height: 30vh; /* Mengurangi tinggi untuk ponsel */
    }
    .hero-overlay {
        padding: 0 20px; /* Mengurangi padding */
    }
    .company-name {
        font-size: 1rem; /* Mengurangi ukuran font */
    }
    .hero-description {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .product-section {
        padding: 10px; /* Mengurangi padding */
    }
    .product-card-content {
        padding: 10px; /* Mengurangi padding dalam kartu */
    }
    .product-card h3 {
        font-size: 1.2rem; /* Ukuran font lebih kecil */
    }
}

@media (max-width: 480px) {
    .floating-icons {
        bottom: 10px;
        right: 10px; /* Kurangi jarak dari tepi layar */
    }
    .icon {
        width: 50px; /* Kurangi ukuran ikon */
        height: 50px;
    }
    .icon img {
        width: 40%; /* Sesuaikan ikon di dalam lingkaran */
        height: 40%;
    }
}

@media (max-width: 400px) {
    .contact-box {
        max-width: 100%; /* Agar tiap box memenuhi layar */
        padding: 10px;
    }
    .warehouse-box img {
        width: 40px; /* Sesuaikan ukuran ikon */
        height: 40px;
    }
    .warehouse-text h3 {
        font-size: 1.2rem; /* Ukuran lebih kecil */
    }
    .warehouse-text p {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .copyright p {
        font-size: 0.75rem; /* Ukuran font lebih kecil */
    }
}

.contact-row {
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr); /* Dua kolom untuk tablet */
        gap: 15px; /* Jarak lebih kecil untuk perangkat kecil */
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr; /* Satu kolom untuk ponsel */
        gap: 10px; /* Jarak lebih kecil */
    }
}
