:root {
  --color-primary: #8b0000; /* Deep Chili Red */
  --color-secondary: #436625; /* Authentic Banana Leaf Green */
  --color-accent: #ffc107; /* Warm Turmeric Yellow */
  --color-dark: #121212; /* Charcoal Black */
  --color-light: #f5f5f5; /* Off-white */
  --color-gold: #ffd700; /* Gold */
  --color-text: #333333;
  --color-text-light: #e0e0e0;

  --font-heading: "Playfair Display", serif;
  --font-body: "Poppins", sans-serif;

  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;

  --border-radius: 8px;
  --transition: all 0.3s ease;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 10px 15px rgba(0, 0, 0, 0.2);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-light);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--color-dark);
  margin-bottom: var(--spacing-md);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--color-primary);
  color: white;
}

.btn-primary:hover {
  background-color: #600000;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-secondary {
  background-color: var(--color-accent);
  color: var(--color-dark);
}

.btn-secondary:hover {
  background-color: #e0a800;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

section {
  padding: var(--spacing-xl) 0;
   scroll-margin-top: 120px;
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-xl);
  font-size: 2.5rem;
  color: var(--color-primary);
  position: relative;
  display: inline-block;
  width: 100%;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--color-gold);
  margin: var(--spacing-sm) auto 0;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeIn 1s ease forwards;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.5rem 5%;
    background-color: transparent;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar-container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar.scrolled {
    background-color: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    padding: 0.5rem 5%;
}

.logo img {
    height: 100px; /* Default Desktop Size */
    width: auto;
    transition: var(--transition);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: white;
    font-weight: 500;
    font-size: 1rem;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--color-gold);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1002; /* Ensure it's above the menu overlay */
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: var(--transition);
    background-color: white;
}

/* Hamburger active state (Close icon) */
.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}


/* Hero Carousel */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 15px;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.7));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 1rem;
    max-width: 800px;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s ease-out 0.5s; /* Delay content appearance */
}

.hero-slide.active .hero-content {
    transform: translateY(0);
    opacity: 1;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero .highlight {
    color: var(--color-gold);
}

.tagline {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 300;
    font-style: italic;
    color: #eee;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Carousel Navigation */
.carousel-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.nav-dot.active {
    background-color: var(--color-gold);
    transform: scale(1.2);
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(0,0,0,0.3);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    font-size: 1.2rem;
    transition: var(--transition);
}

.carousel-arrow:hover {
    background-color: var(--color-primary);
}

.prev { left: 20px; }
.next { right: 20px; }

/* About Section */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.about-text p {
    margin-bottom: 1rem;
    color: #555;
    font-size: 1.1rem;
}

/* Menu Section */
.menu {
    background-color: #fff;
    padding-bottom: var(--spacing-xl);
}

.menu-categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.category-btn {
    padding: 0.5rem 1.5rem;
    border: 2px solid var(--color-secondary);
    background: transparent;
    color: var(--color-secondary);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.category-btn.active, .category-btn:hover {
    background: var(--color-secondary);
    color: white;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.menu-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    border: 1px solid #eee;
}

.menu-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.menu-img {
    height: 200px;
    overflow: hidden;
}

.menu-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.menu-card:hover .menu-img img {
    transform: scale(1.1);
}

.menu-info {
    padding: 1.5rem;
    position: relative;
}

.menu-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

.menu-info p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.menu-info .price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-dark);
}

.add-to-cart {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--color-secondary);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.add-to-cart:hover {
    background: var(--color-primary);
}

/* Signature Dishes (Carousel) */
.signature {
    background-color: var(--color-dark);
    color: white;
    overflow: hidden;
    padding: 4rem 0;
}

.signature .section-title {
    color: var(--color-gold);
}

.carousel-container {
    width: 100%;
    overflow-x: auto; /* Temporarily allow manual scroll too */
    padding: 1rem 0;
    scrollbar-width: none; /* Firefox */
}
.carousel-container::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.carousel-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    animation: marquee 20s linear infinite;
}

.carousel-track:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } 
    /* Ideally we need duplicate content for seamless loop, but this is a start */
}

.carousel-item {
    min-width: 250px;
    text-align: center;
}

.carousel-item img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--color-gold);
    margin-bottom: 1rem;
    margin-left: auto;
    margin-right: auto;
}

.carousel-item h4 {
    color: white;
    font-size: 1.2rem;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.gallery-item {
    height: 250px;
    overflow: hidden;
    border-radius: var(--border-radius);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Testimonials */
.testimonials {
    background-color: var(--color-light);
    text-align: center;
}

.testimonial-slider {
    display: flex;
    justify-content: center; /* Center for now */
    gap: 2rem;
    flex-wrap: wrap;
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    max-width: 500px;
    text-align: left;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    font-size: 4rem;
    color: var(--color-primary);
    opacity: 0.1;
    position: absolute;
    top: 0;
    left: 1rem;
    font-family: serif;
}

.stars {
    color: var(--color-gold);
    margin-bottom: 1rem;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 1rem;
    color: #555;
}

.testimonial-card h4 {
    color: var(--color-primary);
    font-weight: 700;
    margin: 0;
}

/* Footer */
.footer {
    background-color: #0a0a0a;
    color: #bbb;
    padding: 1rem 0 0;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.footer-info p {
    margin-bottom: 1.5rem;
}

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: #222;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-right: 0.5rem;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--color-primary);
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-contact i {
    color: var(--color-primary);
}

.footer-bottom {
    background: #000;
    text-align: center;
    padding: 1rem;
    border-top: 1px solid #222;
}

/* Animations */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, visibility;
}

.fade-in-section.visible {
    opacity: 1;
    transform: none;
}

/* Responsive */
@media (max-width: 768px) {
    .logo img {
        height: 90px; /* Mobile Logo Size */
    }

    .hamburger {
        display: block;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background-color: rgba(18, 18, 18, 0.98);
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: 0.3s;
        padding-top: 120px; /* More space for top bar */
        z-index: 999;
        justify-content: flex-start;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 1rem 0;
    }

    .navbar {
        padding: 0.5rem 5%; /* Adjust padding for mobile */
    }

    .hero h1 {
        font-size: 2.2rem; /* Smaller Font for Mobile */
    }
    
    .tagline {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 80%;
        margin: 0 auto;
        gap: 1rem;
    }

    .about-container {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }
    
    .carousel-arrow {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}



/* Contact Section */
.contact-section {
  background: #fff;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.contact-map {
  width: 100%;
  height: 400px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.9rem;
  border-radius: var(--border-radius);
  border: 1px solid #ddd;
  font-family: var(--font-body);
  font-size: 1rem;
}

.contact-form textarea {
  resize: none;
  min-height: 120px;
}

.contact-form button {
  width: fit-content;
}

/* Desktop Layout */
@media (min-width: 768px) {
  .contact-wrapper {
    grid-template-columns: 1fr 1fr; /* 6 cols + 6 cols */
  }

  .contact-map {
    height: auto;
    min-height: 100%;
  }
}