/* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

/* Global Styles */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  font-family: 'Poppins', sans-serif;
  background-color: #f8f9fa;
  overflow-x: hidden;
}

/* Background Image */
body {
  background: url('/background.jpg') no-repeat center center fixed;
  background-size: cover;
  position: relative;
}

/* Dark overlay */
body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: -1;
}

/* Section Styling */
.welcome-section {
  text-align: center;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.85);
  max-width: 850px;
  margin: 4rem auto 2rem;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 1000;
}

/* Headings and Text */
h1 {
  font-size: 2.4rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.8rem;
  font-weight: 600;
  color: #222;
}

p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #444;
  margin-bottom: 1rem;
}

/* Navbar */
.navbar {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.85);
  color: white;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 5000;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.5);
  height: 20px;
}

.logo {
  font-size: 1.3rem;
  font-weight: bold;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

.menu-button {
  font-size: 1.6rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

/* Sidebar */
.side-nav {
  position: fixed;
  top: 0;
  left: -250px;
  width: 250px;
  height: 100%;
  background: rgba(0, 0, 0, 0.98);
  padding-top: 60px;
  transition: 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
  z-index: 5001;
}

.side-nav.open {
  left: 0;
}

.side-nav a {
  color: white;
  text-decoration: none;
  font-size: 1.2rem;
  padding: 15px;
  display: block;
  font-weight: 600;
}

.side-nav a:hover {
  background: rgba(255, 255, 255, 0.2);
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 2rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

/* Button Container */
.button-container {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Modern Buttons */
.button {
  padding: 12px 18px;
  font-size: 1rem;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #007bff, #0056b3);
  border: none;
  border-radius: 8px;
  transition: all 0.3s ease-in-out;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
  display: inline-block;
  font-weight: 500;
}

.button:hover {
  background: linear-gradient(135deg, #0056b3, #003d82);
  transform: translateY(-2px);
  box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.3);
}

/* Scheduling Container */
.scheduling-container {
  text-align: center;
  max-width: 900px;
  margin: 2rem auto;
  padding: 2rem;
  background: white;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  position: relative;
  z-index: 1000;
  margin-top: 20px;
}

/* Embedded Calendar */
iframe {
  max-width: 100%;
  height: 600px;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
  border: none;
}

/* Footer */
footer {
  text-align: center;
  padding: 1rem;
  background-color: rgba(0, 0, 0, 0.85);
  color: white;
  position: relative;
  bottom: 0;
  width: 100%;
  font-size: 0.9rem;
  box-shadow: 0px -2px 6px rgba(0, 0, 0, 0.2);
}

/* Use Request Form */
.use-request-container {
  text-align: center;
  max-width: 700px;
  margin: 2rem auto;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 1000;
}

.use-request-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  max-width: 100%;
  margin: auto;
}

.use-request-form label {
  font-weight: 600;
  text-align: left;
  display: block;
  color: #333;
  font-size: 1rem;
}

.use-request-form input,
.use-request-form textarea {
  width: 100%;
  padding: 12px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0px 2px 4px rgba(0, 0, 0, 0.1);
}

.use-request-form input:focus,
.use-request-form textarea:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0px 0px 8px rgba(0, 123, 255, 0.4);
}

.use-request-form button {
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: white;
  font-size: 1.1rem;
  padding: 12px 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  font-weight: 600;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

.use-request-form button:hover {
  background: linear-gradient(135deg, #0056b3, #003d82);
  transform: translateY(-2px);
  box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.3);
}

/* Items for Sale Section */
.items-for-sale {
  text-align: center;
  padding: 20px;
}

.items-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.item {
  background: rgba(255, 255, 255, 0.9);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.15);
  text-align: center;
  width: 100%;
}

.item h3 {
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.main-product-image {
  width: 250px;
  height: auto;
  margin-bottom: 20px;
}

.thumbnails {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.thumbnails img {
  width: 80px;
  height: 80px; /* Make them square-shaped */
  object-fit: contain; /* This preserves the original aspect ratio */
  background: rgba(255, 255, 255, 0.8); /* soft white background */
  border: 1px solid rgba(0, 0, 0, 0.1); /* subtle border */
  border-radius: 8px;
  padding: 4px;
  box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}

.thumbnails img:hover {
  transform: scale(4.5);
}

/* Gallery Modal */
#gallery-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#gallery-modal:not(.hidden) {
  opacity: 1;
  pointer-events: auto;
}

#gallery-image {
  max-width: 90%;
  max-height: 80%;
}

#close-gallery {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  color: white;
  cursor: pointer;
}

/* Mobile Optimization */
@media (max-width: 768px) {
  .welcome-section {
    padding: 1.5rem;
    margin: 1rem;
    max-width: 95%;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  p {
    font-size: 1rem;
  }
}

@media (max-width: 600px) {
  .use-request-container {
    padding: 1.5rem;
    max-width: 90%;
  }

  .item h3 {
    font-size: 1.3rem;
  }

  .main-product-image {
    width: 200px;
  }

  .thumbnails img {
    width: 60px;
  }

  iframe {
    height: 400px;
  }
}
