:root {
  --portrait-width: 300px;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #fff5ec;
}

.navbar {
  background-color: #331f08;
  color: #fff;
  text-align: center;
  padding: 1rem 2rem 0.5rem;
  position: sticky;
  top: 0;
  z-index: 10;
  transition: all 0.5s ease-in-out;
}

.navbar-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: flex-direction 0.5s ease-in-out, align-items 0.5s ease-in-out;
}

.logo {
  transform: translateX(0);
  transition: transform 0.5s ease-in-out;
}

.logo-img {
  height: 40px;
  max-width: 100%;
  object-fit: contain;
}

.nav-links-wrapper {
  margin-top: 1.5rem;
  transform: translateX(0);
  transition: transform 0.5s ease-in-out, margin-top 0.5s ease-in-out;
}

.nav-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8rem;
  list-style: none;
  padding: 0;
  margin: 0;
  transition: gap 0.5s ease-in-out;
}

.nav-links li a {
  text-decoration: none;
  color: #F7E3BA;
  font-size: 1.1rem;
  font-weight: 500;
}

.nav-links li a:hover {
  color: #fff;
}

.cart-icon {
  font-size: 1.1rem;
  color: #F7E3BA;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
}

.cart-icon:hover {
  color: #fff;
}

.hamburger {
  display: none;
  font-size: 1.5rem;
  color: #F7E3BA;
  cursor: pointer;
  position: absolute;
  top: 1rem;
  right: 2rem;
}

.navbar.scrolled .navbar-content {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.navbar.scrolled .nav-links-wrapper {
  margin-top: 0;
}

.navbar.scrolled .nav-links {
  justify-content: flex-start;
  gap: 2rem;
}

/* Search Bar Styles */
.search-bar {
  display: flex;
  align-items: center;
  background: #4a2f0a;
  border-radius: 25px;
  padding: 5px 10px;
  margin: 0.5rem 0;
  transition: all 0.3s ease;
}

.search-bar input {
  background: transparent;
  border: none;
  outline: none;
  color: #F7E3BA;
  font-size: 1rem;
  padding: 5px 10px;
  width: 200px;
}

.search-bar input::placeholder {
  color: #F7E3BA;
  opacity: 0.7;
}

.search-bar .search-btn {
  background: none;
  border: none;
  color: #F7E3BA;
  font-size: 1rem;
  cursor: pointer;
  padding: 5px;
  transition: color 0.3s ease;
}

.search-bar .search-btn:hover {
  color: #fff;
}

/* Main section with background image */
.main-content {
  position: relative;
  background-image: linear-gradient(rgba(3, 3, 3, 0.5), rgba(3, 3, 3, 0.5)), 
                    url('Image/spacejoy-YI2YkyaREHk-unsplash.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Portrait image inside main section */
.portrait-image {
  width: var(--portrait-width);
  height: 80vh;
  margin-right: 3rem;
  flex-shrink: 0;
}

.portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(51, 31, 8, 0.3);
}

/* Card container positioned next to portrait */
.card-container {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  max-width: 900px;
  flex-wrap: wrap;
  flex: 1;
}

.card {
  background-color: rgba(247, 227, 186, 0.95);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  padding: 0.75rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 250px;
  backdrop-filter: blur(10px);
  margin-top: 20rem;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
}

.card h3 {
  color: #331f08;
  margin: 0.4rem 0;
  font-size: 1rem;
}

.card p {
  color: #555;
  font-size: 0.8rem;
  margin: 0.4rem 0;
}

.card-button {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  background-color: #331f08;
  color: #F7E3BA;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 500;
  font-size: 0.8rem;
  transition: background-color 0.3s ease;
}

.card-button:hover {
  background-color: #4a2f0a;
}

/* Responsive Design */
@media (max-width: 768px) {
  :root {
    --portrait-width: 200px;
  }

  .navbar {
    position: relative;
    padding: 1rem;
  }

  .hamburger {
    display: block;
  }

  .nav-links-wrapper {
    display: none;
    width: 100%;
    margin-top: 0;
  }

  .nav-links-wrapper.active {
    display: block;
  }

  .nav-links {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
  }

  .navbar.scrolled .navbar-content {
    flex-direction: column;
    align-items: center;
  }

  .navbar.scrolled .nav-links {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-links li a {
    font-size: 1rem;
  }

  .main-content {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1rem;
  }

  .portrait-image {
    margin-right: 0;
    margin-bottom: 2rem;
    height: 60vh;
  }

  .card-container {
    justify-content: center;
    max-width: 100%;
  }

  .card {
    width: 100%;
    max-width: 300px;
  }

  .search-bar {
    width: 100%;
    max-width: 300px;
    margin: 0.5rem auto;
  }

  .search-bar input {
    width: 100%;
  }
}

@media (max-width: 480px) {
  :root {
    --portrait-width: 150px;
  }

  .portrait-image {
    height: 40vh;
  }

  .logo-img {
    height: 30px;
  }

  .hamburger {
    font-size: 1.2rem;
  }

  .search-bar input {
    font-size: 0.9rem;
  }
}

    /* Manu section */
    .menu-section {
      display: flex;
      width: 100%;
      min-height: 95vh;
      overflow: hidden;
    }

    /* Left Image Panel */
    .image-panel {
      flex: 1.5;
      overflow: hidden;
      position: relative;
    }

    .image-panel img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      position: absolute;
      top: 0;
      left: 0;
      opacity: 0;
    }

    .image-panel img.active {
      opacity: 1;
    }

    /* Right Menu Panel */
    .menu-panel {
      flex: 1;
      background: #f1f1f1;
      display: flex;
      flex-direction: column;
      justify-content: center;
      padding: 60px 20px;
      gap: 100px;
    }

    /* Each Category Block */
    .menu-category {
      position: relative;
      background: #3a1c01;
      color: #f9eec6;
      padding: 30px 30px;
      cursor: pointer;
      font-size: 20px;
      transition: background 0.3s ease;
      
    }
    .menu-category .category-title a {
  text-decoration: none;
  color: #F7E3BA;
}

    .category-title {
      opacity: 0.9;
    }

    /* Dropdown icon */
    .category-title::after {
      content: '▼';
      float: right;
      font-size: 12px;
      margin-left: 10px;
    }

    /* Dropdown list base */
    .dropdown-list {
      list-style: none;
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      background: #251407;
      display: none;
      z-index: 1000;
      font-size: 15px;
      margin-top: -2px;
    }

    /* Show dropdown on hover */
    .menu-category:hover .dropdown-list {
      display: block;
    }

    /* Link styling inside dropdown */
    .dropdown-list li a {
      display: block;
      color: #fffbd8;
      text-decoration: none;
      padding: 12px 30px;
      transition: background 0.3s ease;
    }

    /* Hover effect for dropdown items */
    .dropdown-list li a:hover {
      background-color: #5a310b;
    }

    /* Subcategory styling */
    .dropdown-list li.subcategory {
      position: relative;
    }

    .dropdown-list li.subcategory > a::after {
      content: '▶';
      float: right;
      font-size: 12px;
      margin-left: 10px;
    }

    .subcategory-list {
      list-style: none;
      position: absolute;
      top: 0;
      left: 100%;
      background: #1a0e05;
      display: none;
      z-index: 1001;
      font-size: 14px;
      min-width: 150px;
    }

    /* Show subcategory list on hover */
    .dropdown-list li.subcategory:hover .subcategory-list {
      display: block;
    }

    /* Link styling inside subcategory */
    .subcategory-list li a {
      padding: 10px 20px;
    }

    /* Hover effect for subcategory items */
    .subcategory-list li a:hover {
      background-color: #4a2a09;
    }

    /* Smooth background change on category hover */
    .menu-category:hover {
      background: #4b2e11;
    }

    /* Responsive adjustments */
    @media (max-width: 768px) {
      .menu-section {
        flex-direction: column;
        min-height: auto;
      }
      .image-panel {
        flex: none;
        height: 50vh;
      }
      .menu-panel {
        flex: none;
        padding: 20px;
      }
      /* Adjust subcategory list for mobile */
      .subcategory-list {
        position: static;
        background: #2d1804;
      }
    }

    footer {
      padding: 40px;
      background-color: #2e1b04;
      display: flex;
      justify-content: space-between;
      flex-wrap: wrap;
    }

    /* Left Side */
    .footer-left {
      flex: 1;
      min-width: 320px;
    }

    .footer-menu {
      list-style: none;
      padding: 0;
      margin-bottom: 30px;
      color: #f5deb3;
    }

    .footer-menu li {
      margin-bottom: 10px;
      cursor: pointer;
      position: relative;
      
    }
    .footer-menu li a{
  text-decoration: none;
  color: #f5deb3;
    }

    .dropdown-menu {
      list-style: none;
      background: #4c3b26;
      position: absolute;
      left: 0;
      top: 100%;
      display: none;
      padding: 10px 0;
      width: 200px;
      z-index: 100;
    }

    .dropdown:hover .dropdown-menu {
      display: block;
    }

    .dropdown-menu li {
      padding: 8px 15px;
      color: #fff;
    }

    .arrow {
      margin-left: 5px;
    }

    /* Contact Row with Icons */
    .footer-contact-row {
      display: flex;
      align-items: center;
      gap: 40px;
      flex-wrap: wrap;
      margin-top: 145px;
    }

    .footer-icons a {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      text-decoration: none;
      width: 36px;
      height: 36px;
      border-radius: 50%;
      transition: background 0.3s ease, color 0.3s ease;
    }

    .footer-icons svg {
      width: 24px;
      height: 24px;
      color: currentColor;
    }

    /* Custom Colors */
    .footer-icons .email {
      color: #f5deb3;
      margin-top: 24px;
    }
    .footer-icons .facebook {
      color: #f5deb3;
    }
    .footer-icons .instagram {
      color: #f5deb3;
    }

    /* Optional Hover */
    .footer-icons a:hover {
      opacity: 0.8;
    }

    .footer-contact {
      display: flex;
      gap: 80px;
      flex-wrap: wrap;
      flex: 1;
    }

    .contact-block {
      text-align: center;
      color: #f5deb3;
    }

    .contact-block .label {
      font-weight: 500;
      margin-bottom: 5px;
    }

    /* Right Side Form */
    .footer-right {
      flex: 1;
      min-width: 350px;
      padding-left: 40px;
    }

    .footer-right h3 {
      font-weight: 400;
      margin-bottom: 20px;
      line-height: 1.5;
      color: #f5deb3;
      text-align: center;
    }

    .footer-right form {
      display: flex;
      flex-direction: column;
      gap: 15px;
    }

    .footer-right input {
      background: #4c3b26;
      border: none;
      padding: 12px;
      border-radius: 25px;
      color: #f5deb3;
    }

    .footer-right button {
      background: #5f3104;
      border: none;
      padding: 14px;
      border-radius: 25px;
      color: #f5deb3;
      font-weight: bold;
      cursor: pointer;
      transition: background 0.3s ease;
    }

    .footer-right button:hover {
      background: #8b4c0e;
    }