@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700;900&display=swap');
/*font-family: 'Roboto', sans-serif;*/

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700;900&display=swap');

:root {
  --font-heading: #b68834;
  --para-font: #777777;
  --black: #222222;
  --bg: #b68834;
  --white: #fff;
}

* {
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
  border: none;
  text-decoration: none;
  text-transform: capitalize;
  transition: 0.2s linear;
}

html {
  font-size: 62.5%;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-padding-top: 9rem;
}

section {
  padding: 8rem 7%;
}

/* Container styling for centering content */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Styling untuk Container */
/* Styling untuk Container */
.containeri {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #006400;
    color: #fff;
}

/* Styling untuk Logo */
.logo img {
    max-width: 120px; /* Ukuran logo */
    height: 120px; /* Tentukan tinggi logo agar berbentuk lingkaran */
    border-radius: 50%; /* Membuat logo berbentuk lingkaran */
    object-fit: cover; /* Memastikan gambar tidak terdistorsi */
}

/* Styling untuk Teks Header */
.header-text {
    text-align: left;
}

.header-text h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0;
}

.header-text .slogan {
    font-size: 1.2rem;
    font-style: italic;
}

/* Styling untuk Navigasi */
nav ul {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    margin: 0;
    padding: 0;
}

nav ul li {
    position: relative;
    margin-left: 30px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    padding: 10px;
    transition: color 0.3s ease, transform 0.3s ease;
    position: relative;
    font-family: 'arial', sans-serif; /* tambahkan ini */
}


/* Efek Hover untuk Link */
nav ul li a:hover {
    color: #ff8c00;
    transform: scale(1.1);
}

/* Menambahkan garis bawah animasi */
nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #ff8c00;
    transform: scaleX(0);
    transition: transform 0.3s ease-in-out;
}

/* Animasi garis bawah saat hover */
nav ul li a:hover::after {
    transform: scaleX(1);
}

/* Styling untuk Submenu */
nav ul li .submenu {
    list-style: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #444;
    display: none;
    min-width: 200px;
    border-radius: 5px;
    padding: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

nav ul li:hover .submenu {
    display: block;
}

nav ul li .submenu li {
    text-align: left;
}

nav ul li .submenu li a {
    padding: 10px;
    color: #fff;
    font-size: 1rem;
    display: block;
    text-transform: none;
}

/* Efek Hover untuk Submenu */
nav ul li .submenu li a:hover {
    background-color: #ff8c00;
    transform: scale(1.05);
}
/* Tombol hamburger untuk HP */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
}

.nav-toggle span {
    background: white;
    height: 3px;
    width: 25px;
    margin: 4px 0;
    transition: all 0.3s ease;
}
/* Responsif untuk layar kecil (Tablet dan Ponsel) */
@media (max-width: 768px) {
    .containeri {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .header-text h1 {
        font-size: 1.8rem;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 10px 0;
    }

    nav ul li a {
        font-size: 1rem;
    }

    /* Submenu di layar kecil */
    nav ul li .submenu {
        min-width: 100%;
        top: auto;
        left: 0;
        margin-top: 5px;
    }
}

@media (max-width: 480px) {
    .header-text h1 {
        font-size: 1.5rem;
    }

    .header-text .slogan {
        font-size: 1rem;
    }
}
/* Responsive nav untuk mobile */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #006400;
    }

    nav ul.active {
        display: flex;
    }

    nav ul li {
        margin: 10px 0;
        text-align: center;
    }

    nav ul li .submenu {
        position: static;
        box-shadow: none;
        background-color: #444;
    }

    nav ul li:hover .submenu {
        display: block;
    }
}
/* Umum: submenu disembunyikan */
nav ul li .submenu {
    display: none;
}

/* Tampilkan submenu jika open di HP */
nav ul li.open .submenu {
    display: block;
}


/* Scrollable header effect: remove position sticky */
header {
    background-color: #006400;
    color: white;
    padding: 20px 0;
    position: relative; /* Remove sticky, allowing scroll behavior */
}


/*about style*/

.about .container
{
	display: flex;
	justify-content: space-between;
}
.about .container .image {
    flex-basis: 50%;
    background: 
                url("img/NASI KOTAK RUMAH LAPAR (AYAM BAKAR).jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 16rem 0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about .container .about-content
{
	flex-basis: 40%;
	padding-top: 4rem;
}
.about .container .about-content h4
{
	color: var(--bg);
	letter-spacing: 2px;
	font-size: 1.2rem;
	font-weight: 400;
}
.about .container .about-content h1
{
	font-size: 4rem;
	color: var(--font-heading);
	padding: 1rem 0;
}
.about .container .about-content h3
{
	color: var(--black);
	font-size: 1.3rem;
	font-weight: 600;
	letter-spacing: 1px;
	padding: 1rem 0;
}
.about .container .about-content p 
{
	font-size: 1.4rem;
	font-weight: 300;
	color: var(--black);
	line-height: 1.5;
}
.about .container .about-content img 
{
	margin: 2rem 0;
}


/*blog style*/
.heading
{
	font-size: 5rem;
	text-align: center;
}
.heading span 
{
	color: var(--font-heading);
}
.heading-description
{
	text-align: center;
	padding: 1.3rem 0;
	font-size: 1.6rem;
	font-weight: 300;
	color: var(--black);
}

.blog .container
{
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(37rem,1fr));
	gap: 2rem;
	padding: 2.5rem 0;
}
.blog .container .post
{
	border: 0.1rem solid var(--black);
	height: auto;
	cursor: pointer;
}
.blog .container .post .blog-img
{
	width: 100%;
	height: auto;
	overflow: hidden;
	position: relative;
}
.blog .container .post .blog-img img 
{
	width: 100%;
	height: auto;
}
.blog .container .post .blog-content
{
	padding: 2rem;
}
.blog .container .post .blog-content h3
{
	font-size: 1.6rem;
	padding: 1.3rem 0;
	letter-spacing: 0.1rem;
}
.blog .container .post .blog-content h3 span 
{
	color: var(--font-heading);
}
.blog .container .post .blog-content h1
{
	font-size: 2rem;
	color: var(--black);
	padding-bottom: 2rem;
}
.blog .container .post:hover img 
{
	transform: scale(1.1);
}
.blog .container .post .blog-img span 
{
	position: absolute;
	background: var(--bg);
	bottom: 5%;right: 5%;
	padding: 1.2rem 1.4rem;
	color: var(--white);
	text-align: center;
	font-size: 1.2rem;
	font-weight: bold;
}

/*service style*/
.service .container
{
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(37rem,1fr));
	gap: 2rem;
	padding: 2.5rem 0;
	grid-row-gap: 4rem;
}
.service .container .service-box
{
	background: var(--white);
	height: auto;
	cursor: pointer;
	box-shadow: 3px 3px 10px rgba(179, 179, 179, .2);
	padding-bottom: 3rem;
}
.service .container .service-box img 
{
	width: 100%;
}
.service .container .service-box .service-content
{
	padding: 1.5rem;
}
.service .container .service-box .service-content h3
{
	font-size: 2.3rem;
	padding: 1.3rem 0;
}
.service .container .service-box .service-content p 
{
	font-size: 1.6rem;
	padding: 1.3rem 0;
	font-weight: 400;
	color: var(--black);
}
.service .container .service-box:hover
{
	transform: translateY(-1rem);
}

.service-box {
    text-decoration: none;
    color: inherit;
}

/*contact style*/

.contact .container
{
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(30rem,1fr));
	gap: 2rem;
	padding: 2.5rem 0;
}
.contact .container .contact-box
{
	border: .1rem solid var(--black);
	border-radius: 1rem;
	padding: 2rem;
	cursor: pointer;
}
.contact .container .contact-box div
{
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1.3rem 0;
}
.contact .container .contact-box div i 
{
	width: 4rem;
	height: 4rem;
	background: var(--bg);
	color: var(--white);
	text-align: center;
	font-size: 1.3rem;
	line-height: 4rem;
	border-radius: 100%;
}
.contact .container .contact-box div h2
{
	font-size: 1.8rem;
}
.contact .container .contact-box div h2 span 
{
	font-weight: 300;
}
.contact .container .contact-box div p 
{
	font-size: 1.5rem;
}
.contact .container .contact-box:hover
{
	background: #686a6f;
	color: var(--white);
}


/*footer style*/

.footer
{
	width: 100%;
	height: auto;
	background:
	linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(img/bg.webp);
	background-size: cover;
	background-repeat: no-repeat;
	padding-top: 20rem;
}
.footer .container
{
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(30rem,1fr));
	gap: 2rem;
	padding: 2.5rem 0;
}
.footer .container .footer-box
{
	padding: 1rem;
}
.footer .container .footer-box h3
{
	color: var(--white);
	font-size: 1.8rem;
	letter-spacing: .1rem;
}
.footer .container .footer-box p 
{
	color: var(--white);
	font-size: 1.5rem;
	line-height: 2.5rem;
	font-weight: 300;
	padding: 1.2rem 0;
}
.footer .container .footer-box p a 
{
	color: var(--bg);
}
.footer .container .footer-box form input
{
	width: 70%;
	padding: 1rem;
}
.footer .container .footer-box form button
{
	background: var(--bg);
	color: var(--white);
	padding: 1rem;
	cursor: pointer;
}
.footer .container .footer-box div a 
{
	margin: .5rem;
	color: var(--white);
	display: inline-block;
	width: 3rem;height: 3rem;
	line-height: 3rem;
	text-align: center;
	background: var(--bg);
}










/*media query code*/
@media only screen and (max-width: 991px)
{
	html
	{
		font-size: 55%;
	}
	nav 
	{
		padding: 1rem 3rem;
	}
	.content
	{
		text-align: center;
	}
}
@media only screen and (max-width: 768px)
{
	nav #menu-btn
	{
		display: inline-block;
	}
	nav .links
	{
		position: absolute;
		top: 100%;left: -100%;
		width: 100%;
		height: 100vh;
		background: #eee;
		padding: 1rem;
		transition: .5s;
	}
	nav .links a::after
	{
		display: none;
	}
	nav .links a
	{
		display: block;
		padding: 1.5rem;
		margin: 1rem;
		font-size: 1.2rem;
		background: var(--bg);
	}
	.about .container
	{
		flex-direction: column;
	}
	.about .container .about-content
	{
		text-align: center;
	}
}


/* Galeri Section */
/* Styling for the Gallery Section */
#gallery {
    padding: 50px 0;
    background-color: #f9f9f9;
}

#gallery h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #333;
    font-weight: bold;
}

/* Container */
.container {
    width: 80%;
    margin: 0 auto;
}

/* Styling for Gallery Section */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* Menyesuaikan ukuran grid */
    gap: 20px;
    margin-top: 30px;
    justify-items: center; /* Membuat grid berada di tengah */
    align-items: center; /* Memastikan konten dalam grid juga tengah secara vertikal */
}

/* Styling for individual gallery items */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px; /* Perbaiki sudut dengan border-radius lebih besar */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); /* Shadow lebih besar untuk efek depth */
    transition: transform 0.4s ease, box-shadow 0.4s ease, opacity 0.3s ease;
    background-color: #fff; /* Menambah latar belakang solid untuk gallery item */
    height: 250px; /* Menambah tinggi untuk memberikan ruang lebih pada gambar */
    width: 100%; /* Pastikan gallery item mengisi kontainer */
    max-width: 300px; /* Membatasi ukuran maksimal gallery item */
    text-align: center; /* Centering span text */
    cursor: pointer;
    border: 2px solid #f8f8f8; /* Memberikan garis border tipis */
}

/* Gambar dalam gallery item */
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Memastikan gambar tetap mengisi area secara proporsional */
    transition: transform 0.4s ease, filter 0.4s ease;
}

/* Styling for span (text below image) */
.gallery-item span {
    display: block;
    position: absolute;
    bottom: 15px; /* Posisi span di bagian bawah gambar */
    width: 100%;
    padding: 10px 0;
    background-color: rgba(0, 0, 0, 0.6); /* Background semi-transparan untuk span */
    color: #fff; /* Teks putih */
    font-size: 1.2rem; /* Ukuran font lebih besar agar lebih mudah dibaca */
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: background-color 0.4s ease, color 0.4s ease, transform 0.4s ease;
    opacity: 0; /* Sembunyikan teks sebelum hover */
    transform: translateY(20px); /* Menambahkan animasi saat hover */
}

/* Hover effects for gallery items */
.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2); /* Perbesar shadow dan efek zoom */
}

/* Hover effect for images */
.gallery-item:hover img {
    transform: scale(1.1); /* Zoom in gambar saat hover */
    filter: blur(3px); /* Menambahkan blur saat hover */
}

/* Hover effect for span */
.gallery-item:hover span {
    background-color: rgba(0, 0, 0, 0.8); /* Lebih gelap saat hover */
    color: #ff8c00; /* Ubah warna teks saat hover */
    opacity: 1; /* Menampilkan teks saat hover */
    transform: translateY(0); /* Mengubah posisi span agar muncul dari bawah */
}

/* Responsiveness */
@media (max-width: 768px) {
    #gallery h2 {
        font-size: 2rem;
        text-align: center; /* Menambahkan center pada judul */
    }

    .gallery {
        grid-template-columns: 1fr 1fr; /* Dua kolom pada ukuran layar lebih kecil */
    }
}

@media (max-width: 480px) {
    .gallery {
        grid-template-columns: 1fr; /* Satu kolom pada ukuran layar lebih kecil */
    }
}
/* Testimoni Section */
#testimonials h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #333;
}

.testimonial {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    text-align: center;
}

.testimonial p {
    font-size: 1.1rem;
    color: #555;
    font-style: italic;
}


/* Styling untuk Button Container */
.button-container {
    padding: 50px 0;
    background-color: #f9f9f9;
}

.container {
    width: 80%;
    margin: 0 auto;
    text-align: center;
}

/* Styling untuk Tombol Hijau */
.btn-green {
    background-color: #28a745; /* Warna hijau */
    color: #fff; /* Teks berwarna putih */
    font-size: 1.2rem;
    padding: 15px 30px; /* Ukuran padding untuk tampilan lebih besar */
    border: none; /* Menghapus border default */
    border-radius: 50px; /* Membuat sudut melengkung */
    cursor: pointer; /* Menunjukkan pointer ketika hover */
    transition: all 0.3s ease; /* Animasi transisi */
    text-transform: uppercase; /* Mengubah teks menjadi huruf kapital */
}

/* Hover Effect untuk Tombol */
.btn-green:hover {
    background-color: #218838; /* Warna hijau lebih gelap saat hover */
    transform: translateY(-5px); /* Efek terangkat saat hover */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); /* Menambahkan bayangan saat hover */
}

/* Efek Fokus */
.btn-green:focus {
    outline: none; /* Menghapus outline default */
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.7); /* Menambahkan efek fokus dengan bayangan hijau */
}

/* Responsiveness untuk Tombol */
@media (max-width: 768px) {
    .btn-green {
        font-size: 1rem;
        padding: 12px 24px; /* Ukuran tombol lebih kecil di layar kecil */
    }
}

@media (max-width: 480px) {
    .btn-green {
        font-size: 0.9rem;
        padding: 10px 20px; /* Ukuran tombol lebih kecil di layar ponsel */
    }
}
/* RESPONSIVE UMUM */

@media (max-width: 1024px) {
  html {
    font-size: 58%;
  }

  .about .container {
    flex-direction: column;
  }

  .about .container .image,
  .about .container .about-content {
    flex-basis: 100%;
    padding: 2rem 0;
    text-align: center;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 55%;
  }

  .service .container,
  .blog .container,
  .contact .container,
  .footer .container {
    grid-template-columns: 1fr;
  }

  .about .container .about-content h1 {
    font-size: 3rem;
  }

  .about .container .about-content h4,
  .about .container .about-content h3,
  .about .container .about-content p {
    font-size: 1.2rem;
  }

  .heading {
    font-size: 3rem;
  }

  .heading-description {
    font-size: 1.4rem;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 50%;
  }

  .about .container .image {
    padding: 10rem 0;
  }

  .service .container .service-box,
  .blog .container .post,
  .contact .container .contact-box {
    width: 100%;
    margin: 0 auto;
  }
}
.about .container .image {
  padding: 12rem 0;
  min-height: 300px;
}
img {
  max-width: 100%;
  height: auto;
}

h1, h2, h3, h4, p {
  word-wrap: break-word;
}
