/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

img {
    max-width: 100%;
    height: auto;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    background-image: url("../assets/paketassets5.png");
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    color: white;
}

.hero-title span {
    color: #ffd700;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.cta-button {
    padding: 1rem 2rem;
    background: #ffd700;
    color: #000;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s;
}

.cta-button:hover {
    background: #e6c200;
}

/* About Section */
.about {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px;
    background-color: #ffffff;
    overflow: hidden;
}

.about-image {
    width: 500px;
    position: relative;
    z-index: 2;
    top: 100px;
    right: -50px;
}

.about-image img {
    width: 500px;
    position: relative;
}

.about-content {
    max-width: 50%;
}

.about-content h1 {
    font-size: 110px;
    color: #3d4750;
}

.about-content p {
    font-size: 18px;
    margin: 20px 0;
    color: #3d4750;
}

.about-content .btn-shop {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    border: 2px solid #2c2c77;
    color: #2c2c77;
    font-weight: bold;
    transition: background-color 0.3s;
}

.about-content .btn-shop:hover {
    background-color: #1a1a5c;
}

.background-curve {
    position: absolute;
    bottom: 0;
    right: 50px;
    z-index: 1;
    top: -400px;
    right: 10%;
    width: 100%;
    height: 100%;
}

/* Menu Section */
.menu-section {
    padding: 40px;
    background-color: #fff;
    overflow: hidden;
}

/* ✅ UPDATE: Section title dengan variasi alignment ✅ */
.section-title {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    margin-bottom: 30px;
    text-align: center; /* Default tetap center */
}

/* ✅ NEW: Class untuk section title yang align kiri ✅ */
.section-title-left {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    margin-bottom: 30px;
    text-align: left; /* Align kiri untuk Paket Nasi Box dan Prasmanan */
    padding-left: 0; /* Tambahkan padding jika diperlukan */
}

/* ✅ NEW: Style khusus untuk Menu Baru dengan dekorasi ✅ */
.section-title-menu-baru {
    font-size: 48px; /* Lebih besar dari section title biasa */
    font-weight: bold;
    color: #4B3E2F; /* Warna coklat seperti category title */
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    font-family: 'Poppins', serif;
}

/* ✅ OPTIONAL: Tambahkan dekorasi garis bawah untuk Menu Baru ✅ */
.section-title-menu-baru::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, #D38524, #FFB800);
    border-radius: 2px;
}

/* Menu Section - EXISTING, JANGAN DIUBAH */
.menu-section {
    padding: 40px;
    background-color: #fff;
    overflow: hidden;
}

.section-title {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
}

.menu-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    overflow-x: hidden;
    padding: 20px 0;
    position: relative;
    width: 100%;
    cursor: default;
    pointer-events: none;
}

.menu-item,
.menu-item-p {
    flex: 0 0 300px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    animation: slideIn 20s linear infinite;
    margin: 10px;
}

@keyframes slideIn {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.menu-item:hover,
.menu-item-p:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.menu-item-button {
    pointer-events: none;
    cursor: default;
    opacity: 0.7;
}

.menu-grid::after {
    content: "";
    display: block;
    clear: both;
}

.menu-grid::-webkit-scrollbar {
    height: 8px;
}

.menu-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.menu-grid::-webkit-scrollbar-thumb {
    background: #2c2c77;
    border-radius: 4px;
}

.menu-grid::-webkit-scrollbar-thumb:hover {
    background: #1a1a5c;
}

.menu-item img,
.menu-item-p img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.menu-item-content {
    padding: 20px;
}

.menu-item-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.menu-item h4 {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.menu-item-price {
    color: #2c2c77;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 15px;
}

.menu-item-button {
    display: inline-block;
    padding: 8px 20px;
    background-color: #D38524;
    color: white;
    border-radius: 25px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.menu-item-button:hover {
    background-color: #D38524;
}

.menu-item-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Counter Styles */
.counter {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #ddd;
    padding: 5px 10px;
    border-radius: 5px;
    background: #fff;
}

.counter button {
    background-color: #2c2c77;
    border: none;
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.counter button:hover {
    background-color: #1a1a5c;
}

.counter button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.counter input.count {
    width: 50px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px;
    font-size: 14px;
    -moz-appearance: textfield;
}

.counter input.count::-webkit-outer-spin-button,
.counter input.count::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Features Section */
.features-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 40px 20px;
    max-width: 100%;
    margin-top: 100px;
    margin: 50px 100;
    background-color: #4B3E2F;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.feature-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    background: #FFFFFF;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    object-fit: contain;
}

.feature-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin: 0;
}

/* Category Section */
.category-section {
    padding: 40px;
    text-align: center;
    background-color: #f8f8f8;
}

.category-title {
    font-family: 'Poppins', serif;
    font-size: 48px;
    color: #4B3E2F;
    text-align: center;
    margin-bottom: 40px;
}

.category-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px; /* Perbesar gap untuk memberi ruang shadow */
    padding: 20px; /* Tambahkan padding pada container */
}

.category-card {
    background: #683E0C;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    position: relative;
    margin: 10px;
    z-index: 2; /* Naikkan z-index card utama */
}

/* Perbaiki pseudo-element untuk layer belakang */
.category-card::before {
    content: '';
    position: absolute;
    top: 0px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    background: white;
    border-radius: 15px;
    z-index: -1; /* Pastikan layer belakang benar-benar di bawah */
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background-color: #f8f8f8;
    z-index: 3; /* Naikkan z-index saat hover */
}

/* Efek hover pada layer belakang */
.category-card:hover::before {
    top: 12px;
    left: 12px;
    right: -12px;
    bottom: -12px;
}

/* Pastikan konten card tetap di atas dengan z-index yang lebih tinggi */
.category-icon,
.category-name,
.category-desc,
.category-menu-count {
    position: relative;
    z-index: 10; /* Z-index yang sangat tinggi untuk konten */
}

.category-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.1);
}

.category-name {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.category-desc {
    font-size: 16px;
    color: #666;
    margin-bottom: 15px;
}

.category-menu-count {
    color: #FF8C00;
    font-size: 14px;
    font-weight: 500;
}

/* Comments Section */
.comments-section {
    padding: 40px;
    margin: 40px 0;
    background-color: #fff;
}

.comments-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.comment-card {
    flex: 1;
    min-width: 300px;
    background: #FFFFFF;
    border-radius: 15px;
    padding: 10px;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
    height: 280px;
    display: flex;
    flex-direction: column;
}

.rating {
    color: #FFD700;
    font-size: 24px;
    margin-bottom: 20px;
    justify-content: center;
    align-items: center;
}

.comment-text {
    font-size: 16px;
    color: #333;
    line-height: 1.6;
    font-style: italic;
    flex-grow: 1;
    margin-bottom: 80px;
}

.commenter-info {
    display: flex;
    align-items: center;
    gap: 15px;
    position: absolute;
    bottom: 25px;
    left: 30px;
    z-index: 1;
}

.commenter-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.commenter-name {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.comment-curve {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20px;
    background: #FFB800;
    border-radius: 0 0 15px 15px;
    z-index: 0;
}

/* Promo Banner */
.promo-banner {
    background-color: #FFFFFF;
    border-radius: 15px;
    padding: 40px;
    margin: 40px auto;
    max-width: 1200px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.promo-image {
    width: 300px;
    height: 300px;
    object-fit: cover;
}

.promo-image.left {
    transform: rotate(-5deg);
}

.promo-image.right {
    transform: rotate(5deg);
}

.promo-content {
    text-align: center;
    padding: 0 40px;
    flex: 1;
}

.promo-title {
    font-size: 36px;
    font-weight: bold;
    color: #C17F3B;
    margin-bottom: 20px;
}

.promo-description {
    font-size: 16px;
    color: #9F7E6B;
    margin-bottom: 30px;
    line-height: 1.6;
}

.promo-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: #E6C9B3;
    color: #7B5E4B;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.promo-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Animation Classes */
.animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.animate.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.hero-content.animate {
    transform: translateX(-50px);
}

.hero-image.animate {
    transform: translateX(50px);
}

.feature-card.animate {
    transform: translateY(40px);
    transition-delay: calc(var(--delay) * 0.2s);
}

.category.animate {
    transform: scale(0.9);
}

.menu-item.animate,
.menu-item-p.animate {
    transform: translateY(30px);
    transition-delay: calc(var(--delay) * 0.15s);
}

.promo-banner.animate {
    transform: scale(0.95);
}

.hero-content.animate.fade-in,
.hero-image.animate.fade-in {
    transform: translateX(0);
}

.feature-card.animate.fade-in {
    transform: translateY(0);
}

.category.animate.fade-in {
    transform: scale(1);
}

.menu-item.animate.fade-in,
.menu-item-p.animate.fade-in {
    transform: translateY(0);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .features-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }

    .footer-divider {
        display: none;
    }

    .footer-section {
        padding: 0;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .features-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .features {
        grid-template-columns: 1fr;
    }
}