/* style.css - Desain modern dan elegan dengan tema Hijau Botol & Krem */

/* Variabel untuk Light Mode */
:root {
    --background-color: #eaf7e4;
    --text-color: #e0ebe1dc;
    --header-bg: rgba(101, 109, 99, 0.387);
    --nav-link-color: #aff5b4;
    --nav-link-hover-color: #fbc903;
    --section-bg: rgba(255, 255, 255, 0.275);
    --footer-bg: rgba(25, 2, 2, 0.8);
    --footer-text: #e0e2e5;
    --accent-color: #736a3018;
    --background-image: url('img/dua.PNG');
}

/* Variabel untuk Dark Mode */
[data-theme="dark"] {
    --background-color: #1a1a1a55;
    --text-color: #f9f6f6;
    --header-bg: rgba(26, 26, 26, 0.321);
    --nav-link-color: #e0e0e0;
    --nav-link-hover-color: #ff6b6b;
    --section-bg: rgba(40, 40, 40, 0.456);
    --footer-bg: #2c3e50;
    --footer-text: #ffffff;
    --accent-color: #f4e5e5;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --background-image: url('img/tig.PNG');
}

/* Body dengan Background Image */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background: var(--background-color) var(--background-image) no-repeat center center fixed;
    background-size: cover;
    color: var(--text-color);
    transition: background 0.5s, color 0.5s;
}

/* Header */
header {
    background: var(--header-bg);
    box-shadow: var(--box-shadow);
    padding: 15px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background 0.3s ease;
}

/* Logo di Navbar */
nav .logo {
    width: 60px;
    height: auto;
    transition: transform 0.3s;
}

nav .logo:hover {
    transform: rotate(360deg) scale(1.1);
}

/* Navbar */
nav {
    background-color: var(--header-bg);
    box-shadow: var(--box-shadow);
    padding: 10px 20px;
    position: fixed;
    width: 100%;
    z-index: 1000;
}
/* Visi Misi Section */
.visi-misi {
    text-align: center;
    padding: 80px 20px;
    margin-top: 100px;
    background: rgba(0, 0, 0, 0.6); /* Overlay untuk section */
    border-radius: 10px;
    margin: 100px auto;
    width: 80%;
}

/* Prestasi Section */
.prestasi {
    padding: 60px 20px;
    text-align: center;
    background: rgba(0, 0, 0, 0.6);
}

.prestasi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.prestasi-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.prestasi-item:hover {
    transform: translateY(-10px);
    transform: scale(1.05);
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.3);
}

.prestasi-item i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #ffcc00;
}

/* Galeri Section */
.galeri {
    padding: 80px 20px;
    text-align: center;
    background: rgba(0, 0, 0, 0.6);
}

.galeri-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.galeri-item img {
    width: 100%;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.galeri-item img:hover {
    transform: scale(1.05);
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.3);
}

/* Menu navigasi */
.navbar-nav {
    display: flex;
    gap: 20px;
    flex-direction: row;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--nav-link-color);
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    transition: color 0.3s, transform 0.3s;
}

.nav-link:hover {
    color: var(--nav-link-hover-color);
    transform: translateY(-2px);}
.nav ul li a:hover {
        color: #ffcc00;
        text-shadow: 0px 0px 10px #ffcc00;
}

/* Responsif: Menyembunyikan menu di layar kecil */
.navbar-toggler {
    border: none;
    background-color: transparent;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 30 30' width='30' height='30'%3E%3Cpath stroke='%23333' stroke-width='2' d='M5 7h20M5 15h20M5 23h20'/%3E%3C/svg%3E");
}

@media (max-width: 768px) {
    .navbar-nav {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        text-align: center;
    }
}

/* Hero Section */
.hero {
    background-image: url('img/almamun.jpg'); /* Ganti dengan path gambar yang sesuai */
    background-size: cover; /* Membuat gambar menutupi seluruh area */
    background-position: center; /* Menjaga gambar tetap terpusat */
    background-repeat: no-repeat; /* Tidak mengulang gambar */
    height: 100vh; /* Mengatur tinggi hero section agar menutupi seluruh layar */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.hero-content {
    z-index: 2; /* Agar konten tetap di atas gambar */
}

/* Responsif untuk Hero Section */
@media (max-width: 768px) {
    .hero {
        background-size: cover; /* Pastikan gambar tetap menutupi layar kecil */
        background-position: center center; /* Menjaga gambar tetap terpusat */
    }
}


.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-content .btn {
    padding: 12px 25px;
    background: var(--accent-color);
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 1px;
    transition: background 0.3s, transform 0.3s;
}

.hero-content .btn:hover {
    background: #2980b9;
    transform: scale(1.1);
}

/* Visi Misi Section */
.visi-misi, .prestasi, .galeri {
    background: var(--section-bg);
    box-shadow: var(--box-shadow);
    border-radius: 15px;
    padding: 50px 30px;
    margin: 40px auto;
    width: 90%;
    max-width: 1200px;
    transition: background 0.3s ease;
}

/* Prestasi Section */
.prestasi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.prestasi-item {
    background: rgba(255, 255, 255, 0.7);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.prestasi-item:hover {
    transform: translateY(-10px);
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.2);
}

/* Galeri Section */
.galeri-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.galeri-item img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.galeri-item img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Footer */
footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    text-align: center;
    padding: 10px 0;
    animation: fadeIn 2s ease-in;
    box-shadow: 0px -5px 15px rgba(0, 0, 0, 0.3);
}

footer .social-media {
    margin-top: 0px;
}

footer .social-media a {
    color: white;
    font-size: 1.5rem;
    margin: 0 10px;
    transition: color 0.3s;
}

footer .social-media a:hover {
    color: #ffcc00;
}

/* Media Queries untuk Responsif */
@media (max-width: 1024px) {
    nav ul {
        gap: 15px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 20px;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .prestasi-grid, .galeri-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .prestasi-grid, .galeri-grid {
        grid-template-columns: 1fr;
    }
}
