html, body {
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* General styles */
body {
  margin: 0;
  font-family: 'Helvetica Neue', sans-serif;
  background-color: #f9f5ef;
  color: #333;
  line-height: 1.6;
}

/* Navbar Styles */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: #f5eee4;
  padding: 10px 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  z-index: 1000;
}

.navbar ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap; /* allows wrapping on very small screens */
  margin: 0;
  padding: 0;
}

.navbar li {
   margin: 10px 15px; /* moderate spacing */
}

.navbar a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background-color 0.3s;
  font-family: Georgia;
  white-space: nowrap; /* Prevents text breaking */
}

.navbar a.active, .navbar a:hover {
  background-color: #e0d3c2;
}

/* Video Header Section */
.video-header {
  position: relative;
  width: 100%;
  height: 60vh;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.4);
}

.header-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

@media (max-width: 600px) {
  .video-header {
    height: 40vh;
  }
}

/* About Section */
#about p {
  margin: 0 auto;
  padding: 20px;
  width: 55%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.three-columns {
  display: flex;
  gap: 20px;
}

.column {
  flex: 1;
  padding: 1rem;
  text-align: justify;
  background: #e8dfd2;
  border-radius: 8px;
  font-family: Palatino Linotype;
}

#about h2 {
  font-family: helvetica;
}

/* Hero Section */
.hero {
  background-color: #e8dfd2;
  text-align: center;
  padding: 120px 20px 100px;
}

.hero h1 {
  font-size: 3em;
  margin-bottom: 0.5em;
}

.hero p {
  font-size: 1.5em;
}

/* Section Styling */
section {
  padding: 60px 20px;
  text-align: center;
}

section img {
  max-width: 100%;
  height: auto;
  margin-top: 20px;
  border-radius: 10px;
}

/* Product List */
#products h1 {
  font-family: helvetica;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 15px;
  max-width: 1000px;
  margin: auto;
}

.gallery img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.gallery img:hover {
  transform: scale(1.03);
}

/* Lightbox Styles */
.lightbox {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0,0,0,0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.lightbox.show {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  z-index: 1010;
}

.nav {
  position: absolute;
  top: 50%;
  font-size: 3rem;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  transform: translateY(-50%);
  z-index: 1010;
}

.nav.left { 
  left: 30px; 
}
.nav.right { 
  right: 30px; 
}

/* Contact Section */
.contact p {
  margin: 10px 0;
}

#contact {
  font-family: 'Segoe UI', sans-serif;
  padding: 2rem;
  max-width: 900px;
  margin: auto;
}

#contact-us h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  color: #333;
}

.map-container {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.contact-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 0;
  list-style: none;
}

.contact-info li {
  display: flex;
  align-items: center;
  font-size: 1.1rem;
  color: #444;
  background: #e8dfd2;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  transition: background 0.2s;
}

.contact-info li:hover {
  background-color: #eef2f7;
}

.contact-info i {
  font-size: 1.3rem;
  margin-right: 0.75rem;
  color: #0073e6;
  min-width: 24px;
  text-align: center;
}

.contact-info a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

/* Responsive Grid */
@media (min-width: 600px) {
  .contact-info {
    grid-template-columns: 1fr 1fr;
  }
}

/* Animations */
.blink {
    font-size: 1rem;
    line-height: 1.4;
    padding: 10px;
    animation: blink 1s step-start infinite;
    color: #94692c;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* Footer */
footer {
  background-color: #e8dfd2;
  text-align: center;
  padding: 20px;
  font-size: 0.9em;
}

/* Back to Top Button */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #d8c8b0;
  color: #333;
  border: none;
  padding: 10px 15px;
  border-radius: 50px;
  font-size: 18px;
  cursor: pointer;
  display: none;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: background-color 0.3s;
}

#backToTop:hover {
  background-color: #c0b0a0;
}

/* Fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* General Fixes */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
  .product-list {
    flex-direction: column;
    align-items: center;
  }

  .hero {
    padding: 80px 20px;
  }

  .hero h1 {
    font-size: 2.5em;
  }

  .hero p {
    font-size: 1.2em;
  }

  .navbar ul {
    align-items: center;
  }

  .navbar li {
    margin: 10px 0;
  }

  .video-header {
    height: 40vh;
  }

  .gallery {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px;
  }

  .products h1 {
    font-size: 1.5rem;
    text-align: center;
  }

  .three-columns {
    flex-direction: column;
  }

  .column {
    margin: 0 auto;
  }

  #about p {
    width: 90%;
  }
}