/* Global styles */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;

}

body {
  min-height: 100vh;
  background: #18181A;
  padding-left: 2rem;
  padding-right: 2rem;
  color: #EEEEEE;
  font-family: 'Poppins', sans-serif;
  max-width: 1200px;
  margin: auto;
}

.full-height {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.sub-heading {
    font-family: 'Ysabeau', sans-serif;
    font-weight: 200;
    font-size: 2rem;
    color: #EEEEEE;
    margin: 2rem 0;
}

/* Header container */
.header-container {
    height: 15vh;
    display: flex;
    justify-content: space-between; /* Space out logo and menu */
    align-items: center; /* Vertically center items */
    position: relative; /* Needed for absolute positioning of children */
  }

/* Logo positioning for desktop */
.site-logo {
  height: 6rem;
  padding: 1rem;
}

/* Hamburger button styling */
.button-two {
  --button-color: #EEEEEE;
  background: transparent;
  border: none;
  width: 2rem;
  height: 2rem;
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1000;
  display: none; /* Hide by default, will be shown on mobile */
}

/* Animations and transitions for the button */
.button-two[data-state="closed"] :is(.top, .bottom) {
  animation: to-open-icon 1s forwards;
}

.button-two[data-state="opened"] :is(.top, .bottom) {
  animation: to-close-icon 1s forwards;
}

.button-two .hamburger {
  width: 2rem;
  height: 2rem;
  transition: rotate 800ms 100ms;
}

.button-two[data-state="opened"] .hamburger {
  rotate: 1turn;
}

.button-two .line.top {
  --rotation: -45deg;
  transform-origin: 65px 45px;
}

.button-two .line.bottom {
  --rotation: 45deg;
  transform-origin: 60px 55px;
}

@keyframes to-close-icon {
  0% {
    stroke-dashoffset: 0;
  }
  40% {
    stroke-dashoffset: 79.9;
  }
  60% {
    stroke-dashoffset: 79.9;
    rotate: calc(var(--rotation));
  }
  100% {
    stroke-dashoffset: 0;
    rotate: var(--rotation);
  }
}

@keyframes to-open-icon {
  0% {
    stroke-dashoffset: 0;
    rotate: var(--rotation);
  }
  40% {
    stroke-dashoffset: 79.9;
    rotate: var(--rotation);
  }
  60% {
    stroke-dashoffset: 79.9;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

/* Navigation menu styles */

/* List styling */
#navMenu ul {
  list-style: none;
  margin: 0;
  display: flex; /* Align list items horizontally */
}

#navMenu ul li {
  font-family: 'Poppins', sans-serif;
  margin: 0 1rem; /* Spacing between menu items */
  position: relative; /* Needed for positioning the dropdown */
}

#navMenu ul li a {
  text-decoration: none;
  color: #FFFFFF;
  display: block;
  padding: 0.5rem 1rem; /* Add padding for better hover area */
  font-size: 1rem;
  position: relative;
}

/* Underline effect */
#navMenu ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0; /* Start with no width */
  height: 1px; /* Height of the underline */
  background-color: #CBAE76; /* Use the text color for the underline */
  transition: width 0.3s ease; /* Smooth transition for the animation */
}

#navMenu ul li a:hover::after {
  width: 100%; /* Extend the underline to the full width of the text on hover */
}

/* Style the dropdown menu */
#navMenu .dropdown .dropdown-content {
  display: block; /* Changed from none to block */
  position: absolute;
  background-color: #303336; /* Background color of dropdown */
  min-width: max-content; /* Minimum width of dropdown */
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); /* Optional: for dropdown shadow */
  z-index: 1;
  padding: 0;
  opacity: 0; /* Initially invisible */
  transform: translateY(-20px); /* Start above its final position */
  transition: all 0.5s ease; /* Smooth transition for drop-down effect */
  visibility: hidden; /* Initially hidden */
}

#navMenu .dropdown:hover .dropdown-content {
  opacity: 1; /* Make it visible */
  transform: translateY(0); /* Move to final position */
  visibility: visible; /* Make it visible */
}

/* Dropdown item styles */
#navMenu .dropdown .dropdown-content a {
  color: white; /* Text color */
  padding: 1rem; /* Padding inside dropdown */
  text-decoration: none;
  display: block;
  text-align: left;
}

/* Optional: Style for hover state of dropdown items */
.dropdown-content a:hover {
  background-color: #545455; /* Change as needed */
}


/* Show the dropdown menu on hover */
#navMenu .dropdown:hover .dropdown-content {
  display: block;
}

/* Optional: Style for hover state of dropdown items */
.dropdown-content a:hover {
  background-color: #545455; /* Change as needed */
}

/* hero section start */
.hero {
    display: grid; /* Use CSS Grid */
    grid-template-columns: 1fr 1fr; /* Two columns of equal width */
    gap: 1rem; /* Space between columns */
    align-items: center;
    justify-items: center;
    height: 65vh;
  }
  
  .hero-column1, .image-carousel {
    padding: 2rem;
    
  }

  .hero-column1 h1 {
    font-family: 'Ysabeau', sans-serif;
    font-size: 6rem;
    font-weight:100;
    color: #EEEEEE;
    padding: 0;
  }

  .hero-column1 h2 {
    font-family: 'Ysabeau', sans-serif;
    font-weight: 100;
    line-height: 1.5;
  }

  .product-hero {
    display: grid;
    grid-template-columns: 70% 30%; /* Two columns of equal width */
    grid-template-rows: 12rem 25rem; /* Two rows, height adjusted to content */
    padding: 1rem;
  }

  .product-column1 {
    align-self: center;
    font-family: 'Ysabeau', sans-serif;
  }

  .product-column1 h3 {
    margin: 0.5rem 0;
    font-size: 1.3rem;
  }

  .hero-headline {
    grid-column: 1 / -1; /* Span across all columns */
    justify-self: center;
    align-self: center;
    font-family: 'Ysabeau', sans-serif;
    font-weight: 200;
    font-size: 5rem;
    text-shadow: 4px 4px 4px rgba(50, 50, 50, 0.25);
  }

  .image-carousel {
    position: relative;
    width: 100%;
    height: 100%; 
    overflow: hidden;
  }
  
  .carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
  }
  
  .carousel-image.active {
    opacity: 1;
  }
  

/* hero section end */

/* card section start */

.cards-holder {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    margin-top: 10rem;
}

.card {
    flex-basis: calc(22% - 10px);
    border-radius: 1rem;
    background-color: #303336;
    margin: 1rem;
    filter: drop-shadow(4px 4px 4px rgba(0, 0, 0, 0.25));
    opacity: 0;
    transform: translateX(-100px);
    transition: transform 0.5s, opacity 0.5s;
}

.card-visible {
    opacity: 1;
    transform: translateX(0);
}


.card-headline {
    position: relative;
    color: #ffffff;
    font-family: 'Ysabeau', sans-serif;
    font-weight: 200;
    letter-spacing: 0.05rem;
    padding: 1rem;
}

.card-headline::after {
    content: '';
    position: absolute;
    bottom: -10px; /* Adjust as needed */
    left: 1rem; /* Match the padding of the .card-text */
    right: 5rem; /* Match the padding of the .card-text */
    height: 1px;
    background-color: #CBAE76;
    transform: scaleX(0); /* Start with the line scaled down to 0 */
    transform-origin: left center;
    transition: transform 0.5s ease-in-out;
}

.card-animate .card-headline::after {
    transform: scaleX(1); /* Scale to full width */
}

.card-description {
  height: 20rem;
}

.card-text {
    margin-top: 1rem;
    padding: 1rem;
}


/* Styles to hide all card descriptions by default */

/* Styles to show a card description */

/* Keyframes for sliding in sub-heading from left */
@keyframes slideInSubHeading {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Keyframes for sliding up description text */
@keyframes slideUpDescription {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Initial state for description containers */
.card-description > div {
    visibility: hidden; /* Initially hidden */
    opacity: 0;
    max-height: 0; /* Collapse the element */
    padding-left: 2rem;
    transition: opacity 0.5s, max-height 0.5s ease-in-out;
    overflow: hidden; /* Prevent content overflow during transition */
}

/* State when a description is shown */
.card-description-show.card-description-show {
    visibility: visible; /* Make it visible */
    opacity: 1;
    max-height: 700px; /* Adjust to the maximum height required */
}

/* Animation triggers */
.card-description > div.animate-description .sub-heading {
    animation: slideInSubHeading 0.5s ease forwards;
}

.card-description > div.animate-description .description-text {
    animation: slideUpDescription 0.5s ease forwards 0.5s;
}

.description-text {
    width: 80%;
    line-height: 1.4rem;
}

.line-break {
    display: block; /* Make the span behave like a block element */
    margin-bottom: 10px; /* Adjust the space after the line break */
}
/* card section end */
/* About Us section start */

.about-section {
    padding: 2rem;
}

.about-text {
    margin: 1rem 0;
    width: 80%;
}
/* About us section end */

.product-description {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-content: center;
  justify-content: space-around;
  align-items: center;
  margin-top: 8rem;
  position: relative; /* Needed for absolute positioning of the line */
}

.product-description ul {
  position: relative; /* Needed for the pseudo-element */
  padding: 2rem;
}

.product-description ul::after {
  content: '';
  position: absolute;
  top: 1rem;
  bottom: 1.5rem;
  right: -1.5rem; /* Adjust this value to move the line left or right */
  width: 1px; /* Width of the line */
  background-color: #CBAE76; /* Color of the line */
}

.product-description ul li {
  padding: 1rem;
  font-size: 1.2rem;
}

/* Contact form section */

.contact-form {
    max-width: 500px;
    margin: 0 auto;
    padding: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    height: auto;
    padding: 0.5rem;
    border: 1px solid #CBAE76;
    border-radius: 4px;
    resize: vertical;
    background-color: #303336;
    color: #EEEEEE;
}

.submit-button {
    display: block;
    margin: 1rem auto;
    background-color: #303336;
    color: #CBAE76;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
}

.submit-button:hover {
    background-color: #545455;
}

.fas {
    margin-left: 0.5rem;
}

/* Contact form section end */

.bee-badge {
  margin: 5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.bee-badge img {
  height: 13rem;
}
/* Footer */
footer {
    display: flex; /* Use Flexbox */
    flex-direction: column; /* Stack items vertically */
    align-items: center; /* Center items horizontally */
    text-align: center; /* Ensure text is centered */
    padding: 1rem; /* Add some padding */
}

.line {
    width: 80%; /* Set line width */
    height: 1px; /* Line thickness */
    background-color: #CBAE76; /* Line color */
    margin-bottom: 1rem; /* Space between line and text */
}

/* Optional: Style for the copyright text */
.copyright {
    font-family: 'Ysabeau', sans-serif;
    font-size: 0.9rem;
    color: #666; /* Example color */
}
/* Media queries for mobile devices */
@media screen and (max-width: 768px) {

  body {
        padding-left: 1rem;
        padding-right: 1rem;
  }

  /* Show the hamburger menu */
  .button-two {
    display: block;
  }

  /* Adjust navigation menu for mobile */
  #navMenu {
    position: fixed;
    top: 0;
    right: -100%; /* Off-screen by default */
    width: 250px; /* Adjust as needed */
    height: 100%;
    background-color: #303336;
    transition: right 1s ease;
    z-index: 999;
  }

  #navMenu.open {
    right: 0; /* Slide in when open */
  }

  /* Adjust list styles for mobile */
  #navMenu ul {
    display:block;
    padding: 1rem;
    margin-top: 4rem; /* Adjust as needed for mobile */
  }

  #navMenu ul li {
    margin-top: 2rem;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .product-hero {
    grid-template-columns: 1fr;
    grid-template-rows: 25% 35% 40%;
    height: 700px;
  }
  .hero-headline {
    font-size: 2.5rem;
    font-weight: 200;
  }

  .product-column1 h3 {
    font-size: 1.2rem;
  }

  .hero-column1 {
    align-self: baseline;
  }

  .cards-holder {
    flex-direction: column;
    align-content: center;
  }

  .card-description, .card-description-show.card-description-show {
    max-height: none;
    height: auto;
  }

  .card {
    height: auto;
  }
  .card-description {
    height: 35rem;
  }

  .contact-form {
    margin-top: 10rem;
  }
  .about-section {
    margin-top: 10rem;
  }

  footer {
    height: 6rem;
  }
}
