*, html {
  /* scroll-behavior: smooth; */
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Barlow', sans-serif;
}
html, body {
  overflow-x: hidden;
}

/* Navbar styling */
.navbar {
  position: relative;
  text-transform: uppercase;
  font-size: 1.2rem;
  z-index: 1000; /* Ensures the navbar is above subsequent sections */
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  position: fixed;
  width: 100%;
  top: 0;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
}
.navbar-nav {
  margin: 0 auto;
}
/* Desktop logo styling (embedded in the nav list) */
.nav-logo {
  width: 208px;
  height: 262px;
  margin-bottom: -131px; /* Lower half overlaps the hero image */
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.nav-logo,
.navbar-brand.d-lg-none img {
  opacity: 0; /* Start hidden */
  animation: fadeIn 1.5s ease-in-out forwards;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3); /* 3D effect */
  transition: all 0.3s ease;
}


/* Mobile logo: always present, positioned like the desktop version */
.navbar-brand.d-lg-none {
  position: absolute;
  left: 50%;
  bottom: -40px; /* Lower half overlaps the hero container */
  transform: translateX(-50%);
  z-index: 9999; /* High z-index to appear on top of the hero container */
}
.navbar-brand.d-lg-none img {
  width: 150px; /* Adjust size as desired for mobile */
  height: auto;
}

@media (min-width: 1600px) {
  #stats-section {
    height: 60vh;
    min-height: 500px;
  }
  .image-gallery {
    padding-top: 20rem;
  }
}

/* Desktop logo resized for large screens */
@media (min-width: 992px) {
  .nav-logo {
    width: 80px; /* Restore appropriate size */
    height: 110px;
    margin-bottom: -45px; /* Half of height */
  }
  #stats-section {
    height: 70vh; /* Reduced from 100vh */
    min-height: 600px; /* Minimum height for large screens */
  }

  .counters {
    padding: 2rem 0; /* Reduce vertical spacing */
  }

  /* Image column adjustments */
  #stats-section .col-md-9 {
    height: 70vh; /* Match container height */
    overflow: hidden;
  }

  #stats-section img {
    height: 100%;
    object-position: center 25%; /* Focus on interesting part of image */
  }

  /* Text column adjustments */
  #stats-section .col-md-3 {
    height: 70vh; /* Match container height */
    font-size: 1.1rem;
    padding: 2rem !important;
  }
    .image-gallery {
    padding-top: 20rem;
  }
}
/* Mobile adjustments */
@media (max-width: 991px) {
  .navbar-collapse {
    position: relative;
    z-index: 20;
    /* background: #fff; */
    margin-bottom: 4rem; /* Using your original margin */
    font-size: 1.2rem;
  }

  .navbar-brand.d-lg-none img {
    width: 70px !important; /* Reduced from 150px */
    height: auto;
    bottom: -44px; /* Adjust this value to match half of the new logo height */
  }

  .nav-logo {
    width: 70px !important; /* Fix typo from 20x */
    height: 88px !important;
    margin-bottom: -44px !important; /* Half of height */
  }

  .hero-image {
    margin-top: 0px;
  }

  .hero-container {
    margin-top: 0px; /* Account for fixed navbar + logo */
  }
  .image-gallery {
    height: 100%;
  }

  .gallery-item {
    height: auto;
    padding: 15px; /* Add spacing between mobile rows */
  }
  
  .gallery-item img {
    height: 400px; /* Fixed mobile height */
    position: static;
    transform: none;
  }

  .gallery-column {
    height: 50vh !important;
  }
  
  .gallery-column:hover {
    transform: none;
  }
}
.hero-container {
  width: 90%;
  /* height: calc(100vh - 180px); */
  /* min-height: calc(100vh - 130px); Ensures a 50px gap at the bottom while taking at least full viewport height */
  margin: 0 auto;
  overflow: hidden; /* Clips the animated image */
  position: relative;
  /* margin-top: 100px; Compensate for fixed navbar */
  /* height: calc(100vh - 130px); */
  margin-top: 80px; /* Account for fixed navbar + logo */
  height: calc(100vh - 110px);
  min-height: 500px; /* Prevent collapse on mobile */
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: zoomFade 15s ease-in-out infinite;
  margin-bottom: -20px;
}

.counter-label {
    font-family: 'Barlow', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
  }
.counter-txt {
  display: inline-block;
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.counter-item {
padding: 1rem;
text-align: center;
border-right: 1px solid #eee;
}

.counter-item:last-child {
border-right: none;
}

@keyframes zoomFade {
  0% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0.9;
  }
}

/* Counters styling */
.counters {
  text-align: center;
  padding: 0 0 2rem 0;
}
.counter-title {
  font-size: 1.4rem;
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
/* .counter-value {
  font-size: 1.4rem;
  font-weight: 600;
} */

.wines-selection:hover {
  background-color: rgb(240, 240, 240);
  /* border-right: 1px solid rgb(182, 182, 182); */
  /* border-bottom: 1px solid rgb(182, 182, 182); */
  /* padding: -20px 0; */
}
/* .about-img {
  width: 400px;
  max-width: 100%;
  height: 600px;
  margin-left: 12%;
  object-fit: cover;
}
.about-text {
  padding-right: 100px;
  font-family: 'Barlow', sans-serif;
}

.about-text h2 {
  padding-right: 100px;
  font-size: 2.2rem;
  font-weight: 400;
} */
/* About Section */
.about-section {
min-height: 100vh; /* Allows the section to grow if needed */
display: flex;
align-items: center;
/* background-color: #f8f9fa; Customize as needed */
padding: 50px 0; /* Some vertical padding */
}


/* About image remains as before */
.about-img {
width: 100%;
/* max-width: 100%; */
/* height: 500px; */
/* margin-left: 12%; */
object-fit: cover;
transform: scale(1.2);
transition: transform 0.4s ease;
}

.about-img:hover {
  transform: scale(1.05); /* Adjust scale value as needed (1.1 = 10% zoom) */
}

#stats-section {
  min-height: 100vh;
  height: auto; /* Change from fixed height */
  display: flex;
  flex-direction: column;
}

.contact-section {
min-height: 60vh; /* Ensures the section is at least 60% of the viewport height */
display: flex;
align-items: center;
}

#contact {
  position: relative;
  z-index: 2; /* Ensure contact section stays above */
  padding: 4rem 0;
}

#stats-section {
  position: relative;
  z-index: 1;
  margin-bottom: -1px; /* Prevent gap between sections */
}

/* About text styling can remain as-is or be adjusted */
.about-text {
font-family: 'Barlow', sans-serif;
}

@media (max-width: 991px) {

  html, body {
    overflow-x: hidden;
  }

  .about-section {
    min-height: auto;
    padding: 50px 0;
  }
  /* Remove the flex display from the container to let rows stack naturally */
  .about-section .container {
    display: block;
    height: auto;
  }
  /* Force the row to stack vertically */
  .about-section .row {
    flex-direction: column;
  }
  .about-img {
    /* max-width: 80%;  Make the image smaller on mobile */
    margin: 0 auto;  /* Center the image */
    display: block;
  }
  .about-text {
    padding: 0 50px;
    text-align: center; /* Center text on mobile for better readability */
  }
  /* .contact-section {
    padding-top: 220px; /* Adjust vertical padding as necessary 
  } */
}

.image-gallery {
  padding: 4rem 0;
  height: 100%;
  /* margin-bottom: 30px; Add 30px to total height */
  /* background-color: #f8f9fa; */
}

.gallery-item {
  height: 80vh; /* Increase height by 30px */
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  transition: transform 0.4s ease;
}

/* #vine-imgs {
  margin-top: 100px;
} */

#vine-imgs .gallery-item {
  height: calc(80vh - 100px);
}
#vine-imgs .gallery-item img {
  height: calc(80vh - 100px);
}

.gallery-column {
  display: flex;
  align-items: center; /* Vertical centering */
  justify-content: center; /* Horizontal centering */
  overflow: hidden;
  transition: transform 0.4s ease;
}

/* .gallery-item:hover {
  transform: translateY(-5px);
} */

.gallery-item img {
  width: 100%;
  height: 80vh; /* Image height increase */
  object-fit: cover;
  position: absolute;
  /* top: 50%;
  left: 50%; */
  transform: scale(1.2);
  transition: transform 0.4s ease;
}

.gallery-column:hover {
  transform: scale(1.02);
  z-index: 2;
}

 .gallery-item:hover img {
  transform: scale(1.05);
  z-index: 2;
}

@media (max-width: 768px) {
  .image-gallery {
    padding: 2rem 0;
  }
  
  /* /* .gallery-item img {
    height: 300px; /* Reduced height for mobile
  }  */
  
  /* .gallery-item {
    margin-bottom: 1.5rem;
  } */
}

@media (max-width: 767px) {
  #stats-section .row {
    flex-direction: column;
  }
  
  #stats-section .col-md-9,
  #stats-section .col-md-3 {
    width: 100% !important;
    flex: 0 0 auto;
  }
  
  #stats-section .col-md-3 {
    height: auto !important;
    padding: 2rem !important;
  }

  .counters .col-md-4 {
    margin-bottom: 2rem;
  }
  
  .counter-title {
    font-size: 1.1rem;
  }
  
  /* .counter-value {
    font-size: 1.2rem;
  } */

  .hero-container {
    margin-top: 80px;
    height: calc(100vh - 80px);
    min-height: 400px;
  }
  
  .navbar-brand.d-lg-none img {
    width: 60px !important;
    bottom: -30px !important;
  }
  
  #stats-section .col-md-3 {
    font-size: 1rem !important;
  }
}

@media (max-height: 560px) {
  /* Allow contact section to size naturally on very short viewports */
  .contact-section {
    min-height: auto;
    padding-top: 200px; /* Adjust as needed */
  }
  
}