/* Import font dari Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;1,300&display=swap');

/* Variabel CSS untuk kemudahan perubahan tema */
:root {
    --bg-color: #2b2b2b;
    --text-color: #c8c8c8;
    --heading-color: #b7b7b7;
    --primary-color: #007bff;
    --secondary-bg: #333;
    --gold-color: #FFD700;
}

body {
    font-family: "Montserrat", sans-serif;
    margin: 0;
    line-height: 1.6;
    background-color: var(--bg-color);
    color: var(--text-color);
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 3dvh;
}

a:hover {
    text-decoration: underline;
}

h1, h2, h3 {
    color: var(--heading-color);
    text-align: center;
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    background: #3d0937;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background: #1c1c1c;
    text-decoration: none;
}

/* Navbar Styling */
.navbar {
    background: #3d0937;
    color: #fff;
    position: sticky;
    padding: 3dvh;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .brand {
    font-size: 1.8em;
    font-weight: bold;
    color: #fff;
}

.navbar .nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.navbar .nav-links li {
    margin-left: 20px;
}

.navbar .nav-links a {
    color: #fff;
    font-weight: bold;
    padding: 5px 0;
    transition: color 0.3s ease;
    font-size: inherit;
}

.navbar .nav-links a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* Hamburger Menu Styling */
.hamburger-menu {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1001;
}

.hamburger-menu .bar {
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 5px;
    transition: all 0.9s ease;
}

/* Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    text-align: center;
    padding: 30dvh 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-content-overlay {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: 3em;
    margin-bottom: 10px;
    color: #fff;
}

.hero-section p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

/* Section Common Styling */
.section-padding {
    padding: 60px 0;
    background-color: var(--bg-color);
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: rgba(233, 195, 228, 0.2);
    border-radius: 2px;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

@media (min-width: 769px) {
    .about-grid {
        grid-template-areas: "image text";
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    .about-item.about-image-item {
        order: 1;
    }
    .about-item.about-text-item {
        order: 2;
        text-align: left;
    }
    .about-item.about-image-item img {
        width: 100%;
        height: auto;
    }
}

.about-item {
    background-color: var(--secondary-bg);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: center;
    font-style: oblique;
    color: var(--text-color);
}

.about-item img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}
.about-item p {
    text-align: left;
}

/* Services Section */
.services-section {
    background-color: var(--secondary-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.service-item {
    background-color: var(--bg-color);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.service-item:hover {
    transform: translateY(-10px);
}

.service-item .icon {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-item h3 {
    margin-top: 0;
}

/* Portfolio Section */
.products-section {
    background: #2b2b2b;
    border-bottom: 1px solid #ddd;
    color: #b7b7b7;
}

.product-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.product-card {
    background: #333;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card h3 {
    margin-top: 0;
    color: var(--heading-color);
}

.product-card img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin-top: 15px;
}

/* Testimonials Section */
.testimonials-section {
    background-color: var(--bg-color);
    overflow: hidden;
    white-space: nowrap;
}

.testimonial-wrapper {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 20px;
    cursor: grab; /* Mengubah kursor saat hover untuk menandakan bisa ditarik */
}
/* Menyembunyikan scrollbar untuk testimonial-wrapper */
.testimonial-wrapper::-webkit-scrollbar {
    display: none; /* Menyembunyikan scrollbar di Chrome, Safari, dan Edge */
}
.testimonial-wrapper {
    -ms-overflow-style: none;  /* Menyembunyikan scrollbar di IE dan Edge */
    scrollbar-width: none;  /* Menyembunyikan scrollbar di Firefox */
}

.testimonial-grid {
    display: flex;
    animation: scrollTestimonials 40s linear infinite;
    gap: 30px;
    margin-top: 30px;
    padding-bottom: 20px;
    white-space: nowrap;
    width: fit-content;
}

.testimonial-item {
    flex: 0 0 300px;
    scroll-snap-align: center;
    background-color: var(--secondary-bg);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    font-style: italic;
    color: var(--text-color);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    display: inline-block;
    white-space: normal;
}

.testimonial-item p {
    font-size: 1.1em;
    margin-bottom: 15px;
}

.testimonial-author {
    font-weight: bold;
    color: var(--heading-color);
}

@keyframes scrollTestimonials {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Berita Section */
/* Berita Section */
.berita-section {
    background-color: #000;
    padding: 60px 0;
    color: #fff;
}

.berita-container {
    position: relative;
}

.berita-container .btn-selengkapnya {
    position: absolute;
    top: -60px;
    right: 20px;
    font-size: 16px;
    padding: 8px 16px;
    background-color: #3d0937;
    color: #fff;
    border-radius: 5px;
}

.berita-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.berita-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.berita-item img {
    width: 100px;
    height: 70px;
    object-fit: cover;
}

.berita-item.berita-utama {
    flex-direction: column;
    align-items: flex-start;
}

.berita-item.berita-utama img {
    width: 100%;
    height: auto;
}

.berita-item .berita-tanggal {
    font-size: 0.8em;
    color: #ccc;
    margin-bottom: 5px;
}

.berita-item h3, .berita-item h4 {
    text-align: left;
    margin: 0;
    color: #fff;
}

/* Contact Section (New) */
.contact-section-new {
    background: #000;
    color: #fff;
    padding: 60px 0;
}

.contact-content-new {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
}

.contact-text {
    text-align: center;
    margin-bottom: 20px;
    flex: 1;
    min-width: 300px;
    padding-right: 20px;
}
.contact-text h2 {
    color: #fff;
    font-size: 2.5em;
    margin-bottom: 10px;
    text-align: left;
}
.contact-text p {
    color: #ccc;
    font-size: 1.1em;
    text-align: justify;
}

.contact-form-new {
    max-width: 400px;
    width: 100%;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 300px;
}

.contact-form-new input {
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid var(--gold-color);
    background-color: #222;
    color: #fff;
    border-radius: 5px;
    font-size: 1em;
}

.btn-submit-gold {
    background-color: #000;
    color: var(--gold-color);
    padding: 12px 20px;
    border: 1px solid var(--gold-color);
    border-radius: 8px; /* Slightly rounded border */
    cursor: pointer;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-submit-gold:hover {
    background-color: var(--gold-color);
    color: #000;
}
.gold-text {
    color: var(--gold-color);
}
.justify-text {
    text-align: justify;
}
.justify-text h2 {
    text-align: left;
}

/* Footer Styling */
footer {
    background: #333;
    color: #fff;
    padding: 30px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    flex-wrap: wrap;
    text-align: left;
}

.footer-content > div {
    flex: 1;
    min-width: 200px;
    margin: 10px;
}

.footer-content h3 {
    color: #fff;
    margin-bottom: 15px;
    text-align: left;
}

.footer-nav ul,
.footer-social ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav ul li,
.footer-social ul li {
    margin-bottom: 10px;
}

.footer-nav a,
.footer-social a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 1em;
}

.footer-nav a:hover,
.footer-social a:hover {
    color: var(--primary-color);
}

.footer-social a i {
    margin-right: 8px;
    font-size: 1.2em;
}

footer p {
    margin-top: 20px;
    text-align: center;
    width: 100%;
}
/* New Image Gallery Section */
.image-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.image-item {
    background-color: var(--secondary-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.image-item:hover {
    transform: translateY(-5px);
}

.image-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.image-info {
    padding: 15px;
    text-align: left;
    color: var(--text-color);
}

.image-info h3 {
    margin: 0;
    color: var(--heading-color);
}

.image-tanggal {
    font-size: 0.9em;
    color: #ccc;
    margin-bottom: 5px;
}

/* Media query for responsive gallery */
@media (max-width: 768px) {
    .image-gallery-grid {
        grid-template-columns: 1fr;
    }
}
/* --- Media Queries for Responsiveness --- */
@media (max-width: 768px) {
    .container {
        width: 90%;
    }

    /* Navbar on Mobile */
    .navbar .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        min-height: 40px;
    }

    .hamburger-menu {
        display: flex;
    }

    .navbar .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 70px;
        left: 0;
        text-align: center;
        width: 100vw;
        background: #202020;
        z-index: 2000;
        box-shadow: 0 8px 24px rgba(0,0,0,0.08);
        padding: 0;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-16px);
        transition: opacity 0.25s ease-in-out, transform 0.25s ease-in-out;
    }

    .navbar .nav-links.active {
        display: flex;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .navbar .nav-links li {
        margin: 15px 0;
    }

    .navbar .nav-links a {
        padding: 10px 0;
        display: block;
    }

    /* Hero Section on Mobile */
    .hero-section {
        padding: 80px 0;
    }

    .hero-section h1 {
        font-size: 2.2em;
    }

    .hero-section p {
        font-size: 1em;
    }

    /* About Section on Mobile */
    .about-grid {
        grid-template-columns: 1fr;
    }

    /* Services Grid on Mobile */
    .services-grid {
        grid-template-columns: 1fr;
    }

    /* Portfolio Grid on Mobile */
    .product-categories {
        grid-template-columns: 1fr;
    }

    /* Testimonials Grid on Mobile */
    .testimonial-grid {
        flex-direction: row;
        width: 200%;
    }

    /* Berita Section on Mobile */
    .berita-grid {
        grid-template-columns: 1fr;
    }
    @media (max-width: 768px) {
    /* ... (bagian kode sebelumnya) ... */
    .berita-container .btn-selengkapnya {
        position: static;
        margin-top: 20px;
        display: block;
        width: fit-content;
        margin-left: auto;
        margin-right: auto;
    }
}
    /* Contact Form on Mobile */
    .contact-content-new {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .contact-text {
        padding-right: 0;
        text-align: center;
    }
    .contact-text h2 {
        text-align: center;
    }
    .contact-text p {
        text-align: justify;
    }

    /* Footer on Mobile */
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-content > div {
        margin: 20px 0;
    }

    .footer-content h3 {
        text-align: center;
    }

    .footer-nav ul,
    .footer-social ul {
        text-align: center;
    }
}

/* Hamburger animation when active */
.hamburger-menu.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-menu.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}
.company-section {
    background-color: var(--secondary-bg);
}

.company-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.company-info-item {
    background-color: var(--bg-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    color: var(--text-color);
    text-align: left;
    overflow: hidden;
}
.company-info-item img{
    display: flex;
    width: 140px;
    position: relative;
}
.company-info-item h3 {
    text-align: left;
    margin-top: 0;
    color: var(--primary-color);
}

.company-info-item .vision-mission h4 {
    margin-top: 15px;
    margin-bottom: 5px;
    color: var(--heading-color);
}

.company-info-item ul {
    list-style: none;
    padding: 0;
}

.company-info-item ul li {
    margin-bottom: 8px;
}

.company-info-item.contact-details h3 {
    color: #fff;
    margin-bottom: 15px;
}

.company-info-item.contact-details a {
    font-size: 1em;
}

/* Styling Modal (Popup) */
.modal {
    display: none; 
    position: fixed; 
    z-index: 9999; 
    padding-top: 100px; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgb(0,0,0); 
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    margin: auto;
    display: block;
    width: auto;
    max-width: 90vw; 
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px; /* Tambahkan sedikit sudut membulat agar lebih estetik */
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

.modal-content, #caption {
    animation-name: zoom;
    animation-duration: 0.1s;
}

@keyframes zoom {
    from {transform:scale(0)}
    to {transform:scale(1)}
}

/* Tombol Tutup */
.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Responsiveness */
@media only screen and (max-width: 700px){
    .modal-content {
        width: 100%;
    }
}