/* ------------------------------Base------------------------------ */
body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    background-color: #f9f5f0;
    color: #333;
    scroll-behavior: smooth;
}

/* ------------------------------Header------------------------------ */
header {
    background-color: #5c4033;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* ------------------------------logo------------------------------ */
.logo {
    font-family: 'Pacifico', cursive;
    font-size: 24px;
}
nav a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
    font-weight: 600;
}
nav a:hover {
    text-decoration: underline;
}

/* ------------------------------Hero------------------------------  */
.hero {
    height: 40vh;
    background: url('cafe.jpg') center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 0 20px;
}
.hero-text h1 {
    font-size: 48px;
    margin-bottom: 10px;
}

/* ----------------------------Anak--------------------------- */
.anak {
    height: 40vh;
    background: url('npo.jpg') center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: black;
    padding: 0 20px;
}
.anak-text h1 {
    font-size: 48px;
    margin-bottom: 10px;
}

/* ----------------------------NM--------------------------- */
.anak1 {
    height: 40vh;
    background: url('nmn.jpg') center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: black;
    padding: 0 20px;
}
.anak1-text h1 {
    font-size: 48px;
    margin-bottom: 10px;
}

/* ----------------------------Kotak Menu baru--------------------------- */
.btn {
    background-color: #d4a373;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
}
.btn:hover {
    background-color: #c68b59;
}.btn {
    background-color: #d4a373;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
}
.btn:hover {
    background-color: #c68b59;
}

/* ------------------------------Menu------------------------------ */
.menu {
    padding: 50px 5%;
    text-align: center;
}
.menu-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}
.menu-category {
    font-size: 1.0em;
    margin-top: 40px;
    margin-bottom: 20px;
    color: #5c4033;
    text-align: center;
    font-weight: bold;
    border-left: 4px solid #d4a373;
    padding-left: 10px;
}

.card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    width: 200px;
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s;*/
}
.card:hover {
    transform: translateY(-5px);
}
.card img {
    width: 100%;
  height: 100px;
    object-fit: cover;
}
.card h3 {
    margin: 10px;
}
.card p {
    margin: 0 10px 15px;
}


.kartu {
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    width: 200px;
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s;
}
.kartu:hover {
    transform: translateY(-5px);
}
.kartu img {
    width: 100%;
  height: 100px;
    object-fit: cover;
}
.kartu h3 {
    margin: 10px;
}
.kartu p {
    margin: 0 10px 15px;
}


/* ------------------------------Gallery------------------------------ */
.gallery {
    background-color: #fff8f0;
    padding: 50px 5%;
    text-align: center;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.gallery-item {
    position: relative;
    overflow: hidden;
}
.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    filter: brightness(90%) sepia(10%);
    transition: transform 0.4s ease, filter 0.4s ease;
    cursor: pointer;
}
.gallery-item:hover img {
    transform: scale(1.05);
    filter: brightness(100%) sepia(0%);
}
.caption {
    text-align: center;
    font-style: italic;
    margin-top: 5px;
    color: #5c4033;
    font-size: 0.9em;
    opacity: 1;
    transition: opacity 0.4s ease;
}
.gallery-item:hover .caption {
    opacity: 1;
}



/* ------------------------------Lightbox------------------------------ */
#lightbox {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
    z-index: 2000;
}
#lightbox img {
    max-width: 90%;
    max-height: 80%;
    border-radius: 8px;
}
#close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}

/* ------------------------------About & Contact------------------------------ */
.about, .contact {
    padding: 50px 5%;
    text-align: center;
}

.contact {
    background-color: #f1e0d6;
}

/* ------------------------------Footer------------------------------ */
footer {
    background-color: #5c4033;
    color: white;
    text-align: center;
    padding: 10px;
}

/* ------------------------------Animation------------------------------ */
.fade-in {
    opacity: 1;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}
.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}

/* ------------------------------Responsive------------------------------ */
@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 32px;
    }
    .menu-items {
        flex-direction: column;
        align-items: center;
    }
}

.caption {
  text-align: center;
  font-style: italic;
  margin-top: 5px;
  color: #666;
  font-size: 0.9em;
}

