* {
    scroll-behavior: smooth;
    font-family: "Poppins", sans-serif;
    margin: 0;
    box-sizing: border-box;
    padding: 0;
}

/* Body */
body {
    background: #e8dfd0;
    color: #4a3b2f;
    transition: background 0.3s ease, color 0.3s ease;
}


/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    background: #6b4f3c;
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    border-bottom: 3px solid #c19a6b;
}

header h5 {
    color: #fff;
    font-weight: 600;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-logo i {
    font-size: 2.2rem;
    color: #d2a679;
}

.hero {
    margin-top: 71px;
    text-align: center;
    padding: 3rem 1rem 2rem;
    background: url('https://images.unsplash.com/photo-1504754524776-8f4f37790ca0') center/cover;
    color: white;
    position: relative;
}

.hero::after {
    content: "☕";
    font-size: 5rem;
    position: absolute;
    top: 14rem;
    z-index: 1;
    left: 15rem;
    opacity: 0.2;
}

.hero h1 {
    font-size: 2.5rem;
}

@keyframes pulse {
    0% {
        background-color: #ffecb3;
    }

    50% {
        background-color: #ffe082;
    }

    100% {
        background-color: #ffecb3;
    }
}

/* .categories {
    width: 100%;
    margin-bottom: 20px;
    border-radius: 10px;
    margin-left: 20%;
    display: flex;
    overflow-x: auto;
    padding: 1rem;
    background: #e4c5a1;
    gap: 1rem;
    justify-content: center;
} */

.categories {
  width: 80%;
  overflow-x: auto;
  padding: 0.5rem;
  background: #e4c5a1;
  border-radius: 10px;
  display: flex;
  gap: 0.5rem;
  margin: 0 auto 1rem;
  justify-content: center;
}
.categories::-webkit-scrollbar {
  display: none;
}

.categories button {
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: #a1887f;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.categories button:hover,
.categories button.active {
    background: #ff7043;
}

.menu {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  padding: 2rem;
  max-width: 1200px;
  margin: auto;
  align-items: stretch;
}

.menu-card {
  background: white;
  width: 250px;
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  position: relative;
  overflow: hidden;
  min-height: 160px;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeIn 0.5s ease-in-out forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.menu-card h3 {
    margin-top: 0;
    color: #6d4c41;
}

.menu-card .price {
    color: #e65100;
    font-weight: bold;
}

.menu-card .tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff7043;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 5px;
    font-size: 0.75rem;
}

@media (max-width: 768px) {
 nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        right: 5%;
        background: rgba(175, 147, 147, 0.9);
        backdrop-filter: blur(8px);
        color: #5c4534;
        border-radius: 8px;
        box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
        width: 200px;
        text-align: center;
        z-index: 1001;
    }

    nav a {
        display: block;
        padding: 12px;
        margin: 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    nav a:last-child {
        border-bottom: none;
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        cursor: pointer;
        gap: 5px;
        position: absolute;
        top: 20px;
        right: 5%;
        z-index: 1002;
    }

    .menu-toggle div {
        width: 30px;
        height: 3px;
        background: rgba(175, 147, 147, 0.9);
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    /* Rotate bars for active menu */
    .menu-active .menu-toggle div:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .menu-active .menu-toggle div:nth-child(2) {
        opacity: 0;
    }
    .menu-active .menu-toggle div:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .menu-active nav {
        display: flex;
    }

    .menu {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .menu-card {
    width: 100%;
    max-width: 100%;
    margin: auto;
  }
}

#menu {
    text-align: center;
    padding: 50px 5%;
    background: #ede0d1;
    backdrop-filter: blur(10px);
    border-radius: 12px;
    width: 80%;
    margin: 80px auto;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.menu-container h2 {
    font-size: 2rem;
    font-weight: bold;
    color: #5c4534;
    margin-bottom: 10px;
}

.menu-container p {
    font-size: 1.1rem;
    color: #3b2f28;
    margin-bottom: 20px;
}

.menu-buttons {
    margin: 20px 0;
}

.menu-buttons button:hover {
    background: #A0522D;
}

.menu-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    padding: 20px;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.price {
    display: block;
    font-weight: bold;
    color: #8B4513;
}

.back-button {
    display: block;
    margin: 30px auto;
    padding: 12px 20px;
    background: #944b18;
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background 0.3s;
    max-width: 190px;
}

.back-button:hover {
    background: #A0522D;
}

h1 {
    font-size: 2rem;
    font-weight: bold;
    margin: 0;
    color: #f4eee3;
}

nav a {
    text-decoration: none;
    color: #f4eee3;
    font-weight: 600;
    margin: 0 15px;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #f4c27d;
}


#active-filter {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 500;
  margin-top: 1rem;
  margin-bottom: 1rem;
  color: #6d4c41;
  font-style: italic;
  opacity: 0.9;
}

.category-active {
  background-color: #ff6f43be;
  color: white;
  padding: 0.2rem 0.5rem;
  border-radius: 5px;
  font-weight: bold;
}


/* Footer */
#footer {
    background: #4A2F21;
    color: #F5EFE6;
    padding: 30px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-top: 2px solid #A67C52; 
}

#contactFooter h3, .social-links h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.contact-info p {
    margin: 5px 0;
    font-size: 1rem;
}

.contact-info a {
    color: #c9af1e; 
    text-decoration: none;
    font-weight: bold;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Social Links */
.social-links {
    margin-top: 20px;
}

.social-links a {
    color: white;
    font-size: 1rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #FFD700;
}


/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 2rem;
  }

  .categories {
    margin-left: 5%;
    justify-content: flex-start;
  }

  .menu-card {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 15px;
  }

  header h5 {
    font-size: 0.9rem;
  }

  .header-logo {
    margin-bottom: 10px;
  }

  .hero {
    padding: 2rem 1rem;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero::after {
    top: 12rem;
    left: 50%;
    transform: translateX(-50%);
  }

  .categories {
    flex-wrap: wrap;
    margin-left: 0;
    padding: 0.5rem;
    justify-content: center;
  }

  .categories button {
    font-size: 0.9rem;
  }

  .menu {
    padding: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  #menu {
    padding: 30px 5%;
    width: 90%;
  }

  .back-button {
    width: 100%;
    max-width: 100%;
  }

  nav a {
    display: block;
    margin: 5px 0;
  }

  .social-links {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  /* Header title scaling */
  header h5 {
    font-size: 0.9rem;
  }

  /* Hero section scaling */
  .hero h1 {
    font-size: 1.5rem;
  }

  .hero::after {
    top: 8rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 3rem;
  }

  /* Categories cleanup */
  .categories {
    width: 100%;
    padding: 0.5rem;
    margin: 0 auto 1rem;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }

  .categories button {
    font-size: 0.8rem;
    padding: 0.4rem 0.7rem;
    white-space: nowrap;
  }

  /* "Weergegeven: Alles" spacing */
  #active-filter {
    font-size: 1rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
  }

  /* Menu card spacing and scaling */
  .menu {
    padding: 1rem;
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .menu-card {
    padding: 1rem;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }

  .menu-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }

  .menu-card .price {
    font-size: 0.9rem;
  }

  /* Adjust container width */
  #menu {
    width: 95%;
    padding: 1.5rem 1rem;
  }

  /* Back button full width */
  .back-button {
    width: 50%;
    max-width: 100%;
    text-align: center;
    font-size: 0.9rem;
    padding: 10px 15px;
  }
}