/* static/css/styles.css */

/* Reset / Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: url('../assets/background.png') center center fixed no-repeat;
  background-size: cover;
  font-family: 'RoundStyle', Arial, sans-serif; 
  color: white;
  text-align: center; 
}

/* Header */
.header {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-gradient {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(to bottom, black, transparent);
  z-index: 1;
}

.header-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.header-logo {
  max-width: 600px;
  opacity: 0;
  transition: opacity 0.8s ease, transform 1s ease;
}

.email-signup {
  margin-top: 20px;
  display: flex;
  gap: 10px;
}

.email-signup input {
  padding: 10px;
  border: none;
  border-radius: 5px;
  font-size: 1em;
}

.email-signup button {
  padding: 10px 20px;
  background-color: #8B4513;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em;
  transition: background-color 0.3s ease;
}

.email-signup button:hover {
  background-color: #A0522D;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 9999; /* Ensure it's above the overlay */
  transition: background-color 0.5s ease;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px; /* Reduced padding for smaller navbar */
}

.navbar-logo-img {
  width: 150px; /* Reduced size for the new logo */
  opacity: 0; /* Initially hidden */
  transition: opacity 0.5s ease, width 0.3s ease;
}

.navbar-logo-img.visible {
  opacity: 1; /* Visible when scrolled past header halfway */
}

.navbar-logo-img:hover {
  width: 170px; /* Slight increase on hover */
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 15px; /* Reduced gap for smaller navbar */
}

.nav-item {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9em; /* Smaller font size */
  position: relative; /* Needed for pseudo-element positioning */
}

.nav-item:hover {
  color: #ccc;
}

/* Hover Icon Below Nav Items */
.nav-item::after {
  content: "";
  position: absolute;
  top: 100%; /* Position below the nav item */
  left: 50%;
  transform: translateX(-50%);
  width: 20px; /* Width of navbar.png icon */
  height: 20px; /* Height of navbar.png icon */
  background-image: url('../assets/navbar.png');
  background-size: contain;
  background-repeat: no-repeat;
  display: none;
}

.nav-item:hover::after {
  display: block;
}

/* Ensure hover icons do not appear on mobile devices */
@media (max-width: 800px) {
  .nav-item::after {
    display: none;
  }
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px; /* Smaller gap between bars */
}

.bar {
  width: 20px; /* Smaller width for hamburger bars */
  height: 2px; /* Thinner bars */
  background-color: white;
  transition: all 0.3s ease;
}

/* Hamburger Active State */
.hamburger.active .bar:nth-child(2) {
  opacity: 0;
}

.hamburger.active .bar:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.hamburger.active .bar:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

/* Mobile Navbar Active State */
.nav-links.active {
  transform: translateX(0);
}

/* Overlay */
.overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: black;
  z-index: 10000; /* Above the navbar */
  opacity: 1;
  transition: opacity 1s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.overlay-text {
  font-size: 2em;
  color: white;
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* Logo Animation */
.logo {
  position: fixed;
  z-index: 9998; /* Below the overlay */
  top: 50%; /* Initial position */
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  max-width: 600px;
  opacity: 0;
  transition: opacity 0.8s ease, top 1s ease, transform 1s ease;
}

.logo.final-position {
  top: 20px; /* Padding from the top */
  transform: translateX(-50%) scale(1.5); /* Scale up the logo */
  opacity: 1;
}

/* Coming Soon Overlay */
.coming-soon-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  opacity: 0;
  z-index: 10001; /* Above all */
  transition: opacity 0.5s ease;
}

.coming-soon-overlay.show {
  display: block;
}

.coming-soon-content {
  position: absolute;
  top: 50%; left: 50%;
  width: 90%; max-width: 500px;
  transform: translate(-50%, -50%);
  background: rgba(139, 69, 19, 0.9);
  color: #f0f0f0;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 0 25px rgba(0,0,0,0.5);
}

.coming-soon-close {
  position: absolute;
  top: 10px; right: 15px;
  background: none;
  border: none;
  font-size: 1.2em;
  cursor: pointer;
  color: #fff;
}

.coming-soon-content h2 {
  margin-bottom: 10px;
  font-size: 1.5em;
  color: #fff;
}

.coming-soon-content p {
  margin-bottom: 20px;
  font-size: 1.2em;
}

/* Main Content */
.content-wrapper {
  width: 90%; max-width: 1200px;
  margin: 150px auto 0 auto; /* Adjusted top margin to accommodate navbar */
  padding-bottom: 60px; 
}

.main-box {
  margin-bottom: 60px;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.15);
  border: 2px solid #8B4513;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-around;
}

.left-content, .right-content {
  width: 45%;
  text-align: left;
}

.right-content {
  display: flex; justify-content: center; align-items: flex-start;
}

/* Section Boxes */
.section-box {
  margin-bottom: 20px;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.8);
  border: 5px solid #8B4513;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
  font-family: 'Georgia', serif;
  font-size: 1.2em;
  color: #4B371C;
  line-height: 1.6em;
}

.section-box h2 {
  font-family: 'RoundStyle', Arial, sans-serif;
  color: #4B371C;
  font-size: 2em;
  margin-bottom: 0.5em;
  text-align: left;
}

/* Slideshow */
.slideshow-container {
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  width: 400px; height: 600px;
  background-color: transparent;
}

.slideshow-image {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease; 
  object-fit: contain;
}

.slideshow-image.show {
  opacity: 1;
}

/* Contact Button */
.contact-btn {
  margin: 0 auto;
  padding: 10px 30px;
  background-color: rgba(51, 51, 51, 0.75);
  color: white;
  border: none;
  border-radius: 10px;
  font-family: 'RoundStyle', Arial, sans-serif;
  font-size: 1em;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.contact-btn:hover {
  background-color: rgba(85, 85, 85, 0.75);
}

/* Bottom Bar */
.bottom-bar {
  position: fixed; bottom: 0; left: 0; width: 100%; height: 60px;
  background-color: rgba(0,0,0,0.7);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 9998;
  font-size: 0.9em;
}

.bottom-bar-left {}
.bottom-bar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ---------- Mobile Styles (max-width: 800px) ----------- */
@media (max-width: 800px) {
  /* Header adjustments */
  .header {
    height: 60vh;
  }

  /* Navbar adjustments for mobile */
  .nav-links {
    position: fixed;
    right: 0;
    top: 0;
    height: 100vh;
    background-color: rgba(0,0,0,0.9);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 60%;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .nav-links li {
    margin: 20px 0;
  }

  .hamburger {
    display: flex;
  }

  .navbar-logo-img {
    width: 120px;
  }

  .header-logo {
    max-width: 50%;
    margin: 10px auto;
    display: block;
  }

  .main-box {
    flex-direction: column;
    align-items: center;
  }

  .left-content, .right-content {
    width: 100%;
  }

  .bottom-bar {
    font-size: 0.75em;
  }

  /* Hide hover icons on mobile */
  .nav-item::after {
    display: none;
  }
}

/* Even smaller screens (max-width: 480px) */
@media (max-width: 480px) {
  .slideshow-container {
    width: 250px; height: 375px;
  }
  .section-box {
    font-size: 0.9em;
  }
  .section-box h2 {
    font-size: 1.2em;
  }
}
