/* General Styles */
body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Playfair Display', serif;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative; /* Necessary for overlay positioning */
  overflow-y: auto;
  scroll-behavior: smooth;
}

/* Background Image with Overlay */
body::before {
  content: "";
  position: fixed; /* Keeps the background fixed while scrolling */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../assets/images/bg.jpg') no-repeat center center fixed;
  background-size: cover;
  opacity: 0.4; /* Adjust opacity for the background image */
  z-index: -1; /* Places the background behind all content */
}

/* Mobile Frame */
#mobile-frame {
  width: 375px;
  height: 667px;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  background: url('../assets/images/bgfivevine.jpg') no-repeat center center;
  background-size: cover; 
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
  margin: 20px auto;
  position: relative;
}

/* Dimmer Overlay for Mobile Frame */
#mobile-frame::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 620px;
  border-radius: inherit; /* Matches parent's border radius */
  background: rgba(0, 31, 77, 0.8); /* Increased opacity for a dimmer effect */
  z-index: 0;
}

/* Ensure all content appears above the overlay */
#mobile-frame > * {
  position: relative;
  z-index: 1;
}

/* Hamburger Menu */
#navbar {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 1000;
}

.hamburger {
  font-size: 30px;
  cursor: pointer;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
  padding: 8px 12px;
  border-radius: 5px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  transition: background 0.2s ease-in-out;
}

.hamburger:hover {
  background: rgba(255, 255, 255, 0.4);
}

/* Dropdown Menu */
#menu {
  display: none;
  list-style: none;
  background-color: #8B1E3F;
  border-radius: 5px;
  position: absolute;
  top: 50px;
  left: 0;
  width: 160px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  padding: 0;
  z-index: 999;
}

#menu li {
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

#menu li:last-child {
  border-bottom: none;
}

#menu li a {
  text-decoration: none;
  color: #ffffff;
  font-weight: bold;
  font-family: 'Cormorant Garamond', serif;
  display: block;
  transition: background 0.3s ease-in-out;
}

#menu li:hover {
  background-color: #B03A58;
}

/* Logo Styling */
#logo-container img {
  width: 150px;
  height: auto;
  margin: 20px auto;
  display: block;
  opacity: 0;
  animation: fadeInUp 1s ease-out forwards 0.5s;
  transition: transform 0.3s ease-in-out;
}

#logo-container img:hover {
  transform: scale(1.1);
}

/* Main Content */
#content {
  text-align: center;
  padding: 20px;
  opacity: 0;
  animation: fadeInUp 1s ease-out forwards 0.8s;
}

#main-image {
  width: 90%;
  max-width: 300px;
  border-radius: 10px;
  margin: 15px auto;
  display: block;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  opacity: 0;
  animation: fadeInUp 1s ease-out forwards 1s;
}

/* Go to Home Button Styling */
#home-button {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(255, 255, 255, 0.2);
  padding: 6px 10px;
  border-radius: 5px;
  text-decoration: none;
  color: #ffffff;
  font-size: 16px;
  font-weight: bold;
  z-index: 1000;
  transition: background 0.2s ease, transform 0.3s ease;
}

#home-button:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: scale(1.05);
}


/* Info Section */
#info {
  background: rgba(255, 255, 255, 0.15);
  padding: 15px;
  border-radius: 10px;
  margin: 15px auto;
  color: #F5E6E8;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
  opacity: 0;
  animation: fadeInUp 1s ease-out forwards 1.2s;
}

/* Footer */
/* Footer Section */
footer {
  background: linear-gradient(90deg, #f4bceb, #f4bceb);
  color: #ffffff;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 15px 0;
  position: sticky;
  bottom: 0;
  font-family: 'Lora', serif;
  font-weight: 700;
  transition: background 0.5s ease-in-out;
  border-radius: 0 0 20px 20px;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.5);
}

/* Footer Buttons */
.footer-button {
  text-decoration: none;
  display: inline-block;
  margin: 0 10px;
  transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out;
}

/* Footer Icons */
.footer-button img {
  width: 40px;
  height: 40px;
  transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out;
}

/* Typography Enhancements */
/* Headings */
h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  text-transform: capitalize;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
  color: #F5E6E8;
  opacity: 0;
  animation: fadeInUp 1s ease-out forwards 1.6s;
}

/* Other Text Elements */
p, label, a, button {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 18px;
  color: #F5E6E8;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
  opacity: 0;
  animation: fadeInUp 1s ease-out forwards 1.8s;
}

/* Fade-in Animation Keyframes */
@keyframes fadeInUp {
  from {
      opacity: 0;
      transform: translateY(50px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  #mobile-frame {
      width: 100%;
      height: auto;
      border-radius: 0;
  }

  #logo-container img {
      width: 100px;
  }
}
