/* Import a modern Google Font */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: #f0f2f5;
  color: #333;
  line-height: 1.6;
}

/* Header & Navigation */
header {
  background: #000;
  padding: 20px;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header .logo {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
}

header nav ul {
  list-style: none;
  display: flex;
  margin: 0;
}

header nav ul li {
  margin-left: 20px;
}

header nav ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  transition: color 0.3s;
}

header nav ul li a:hover,
header nav ul li a.active {
  color: #f0f2f5;
}

/* Banner */
.banner {
  margin-top: 80px; /* offset fixed header */
  background: url('../assets/images/banner.jpg') no-repeat center center/cover;
  height: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.banner::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
}

.banner h1 {
  position: relative;
  color: #fff;
  font-size: 48px;
  text-align: center;
  padding: 20px 40px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
}

/* Categories Section */
.categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 40px 20px;
  gap: 20px;
}

.category {
  position: relative;
  width: 300px;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.category:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.category img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.category .overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: #fff;
  padding: 10px;
  text-align: center;
  font-size: 20px;
  letter-spacing: 1px;
}

/* Subcategories Overlay */
.subcategories {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 200;
}

.subcategories.hidden {
  display: none;
}

.subcategories-content {
  background: #fff;
  padding: 30px 40px;
  border-radius: 12px;
  text-align: center;
  min-width: 300px;
  max-width: 90%;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
}

/* Ordering Guidelines Styling */
.ordering-guidelines {
  font-size: 16px;
  margin: 15px 0;
}

/* Subcategory Button */
.subcategories-content .sub-btn {
  margin: 10px;
  padding: 12px 24px;
  border: none;
  background: #000;
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.3s;
}

.subcategories-content .sub-btn:hover {
  background: #444;
}

#closeSubcategories {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 36px;
  cursor: pointer;
  transition: color 0.3s;
}

#closeSubcategories:hover {
  color: #ddd;
}

/* Main Content for About & Contact Pages */
main.content {
  padding: 100px 20px 40px;
  max-width: 800px;
  margin: 0 auto;
}

.about, .contact {
  background: #fff;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.about h1, .contact h1 {
  font-size: 36px;
  margin-bottom: 20px;
}

.about p, .contact p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 15px;
}

.contact-info {
  list-style: none;
  font-size: 18px;
  margin-top: 20px;
}

.contact-info li {
  margin-bottom: 10px;
}

.contact-info a {
  color: #000;
  text-decoration: underline;
}

/* Footer */
footer {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}

footer p {
  margin: 5px 0;
}

/* Brands Grid Section */
.brands-grid {
    text-align: center;
    padding: 100px 20px;
  }
  
  .brands-grid h1 {
    font-size: 36px;
    margin-bottom: 40px;
  }
  
  /* Center the grid container */
  .brands-grid .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto; /* Centers the grid container */
    justify-items: center; /* Center items horizontally within each grid cell */
  }
  
  /* Center each brand item and its image */
  .brand-item {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(20px);
    opacity: 0;
    animation: fadeInUp 0.8s forwards;
    animation-delay: calc(var(--i) * 0.1s);
  }
  
  .brand-item img {
    max-width: 100%;
    height: auto;
    display: block;
  }
  
  /* Fade In Up Animation */
  @keyframes fadeInUp {
    from {
      transform: translateY(20px);
      opacity: 0;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }

 /* Inside HOB Page Styles */
.inside-banner {
  position: relative;
  height: 400px;
  overflow: hidden;
  margin-bottom: 40px;
}

.inside-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
}

.banner-overlay h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

.office-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Ensures exactly 3 columns */
  gap: 20px;
  justify-content: center; /* Centers the grid */
  align-items: center;
  margin: 30px auto; /* Centers the section horizontally */
  max-width: 900px; /* Limits the width to keep images centered */
}

@media (max-width: 960px) {
  .office-gallery {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Adjusts for smaller screens */
  }
}


.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.caption {
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 10px;
  position: absolute;
  bottom: 0;
  width: 100%;
  text-align: center;
}

.team-photo-container {
  position: relative;
  margin: 30px 0;
  border-radius: 8px;
  overflow: hidden;
}

.team-group-photo {
  width: 100%;
  height: auto;
}

.team-overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 15px;
  text-align: center;
}

.culture-values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.value-item {
  padding: 20px;
  background: #f5f5f5;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.value-item h3 {
  margin-bottom: 15px;
  color: #333;
}
/* Responsive Adjustments */
@media (max-width: 768px) {
  .categories {
    flex-direction: column;
    align-items: center;
  }
  .banner h1 {
    font-size: 36px;
    padding: 15px 30px;
  }
}

/* Custom Themed Scrollbar for Webkit Browsers */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #f0f2f5;
}
::-webkit-scrollbar-thumb {
  background-color: #000;
  border-radius: 10px;
  border: 2px solid #f0f2f5;
}

/* Firefox Scrollbar */
html {
  scrollbar-width: thin;
  scrollbar-color: #000 #f0f2f5;
}
