/* Import Fonts */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Oleo+Script:wght@400;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
  scroll-behavior: smooth;
}

/* ==================== HOME STYLING ================== */

/* body styling */
.home {
  background: url(../images/home_bg_updated.png), lightgray 50% / cover no-repeat;
  background-repeat: no-repeat;
  background-attachment: fixed;


}

#logo {
  text-shadow: 0px 6px 20px #00293A;
  font-style: normal;
  font-weight: 900;
  text-decoration: none;
}



.nav-item {
  transition: all 0.3s ease-in-out;
  border-bottom: 2px solid transparent; /* Prepare for underline */
  padding-bottom: 5px; /* Add some space for the underline */
}

.nav-item:hover,
.nav-item:focus, /* Grouping focus state for similar visual feedback */
.nav-item.active {
  text-shadow: 0px 4px 8px #005b79; /* Slightly more pronounced shadow */
  transform: translateY(-3px); /* Adjusted translate for a subtle lift */
  border-bottom-color: white; /* Make underline visible */
  color: #a7f3f8; /* Light cyan for hover/active text */
}

.fa-solid {
  text-shadow: 0px 6px 20px #00293A;
  cursor: pointer;
}

.navbar {
  padding: 5px 2rem;

}

.sticky {
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(20px);

  z-index: 200;
  border: 1px solid #bfdfff3e;
}

/* Styles for smooth mobile menu animation - applied only on smaller screens */
@media (max-width: 767px) { /* Tailwind's md breakpoint is 768px. These styles apply below that. */
  .nav { /* This is the menuItems element in JS */
    max-height: 500px; /* Adjust as needed to fit content when open */
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
    /* Ensure display is block or similar if not flex, to allow max-height to work.
       Tailwind's default or other classes might already handle this.
       The .nav element in HTML has text-center, w-full which implies block-like behavior.
    */
  }

  .mobile-menu-closed {
    max-height: 0 !important; /* Use !important to ensure override if necessary, though ideally not needed */
    /* overflow: hidden; is already on .nav, but can be re-stated if specific to closed state */
  }
}
/* End of styles for smooth mobile menu animation */

p,
h1,
svg {
  text-shadow: 0px 3px 10px rgba(0, 41, 58, 0.5); /* Reduced spread, blur, and opacity */


}

/* Specific heavier shadow for larger headings if needed, can be applied via class */
.heading-shadow {
  text-shadow: 0px 4px 15px rgba(0, 41, 58, 0.6);
}


best-beach-lg {
  margin-right: -20px;
}

.glass {
  border: solid 1px #b2f1fb28;
}

.marginy {
  margin-top: 20px;
}

@keyframes slideInLeft {
  from {
    transform: translateX(1000px);
    opacity: 0%;
  }

  to {
    transform: translateX(0);
    opacity: 100%;
  }
}

@keyframes slideInLeft {
  from {
    transform: translateX(1000px);
    opacity: 0; /* Start with opacity 0 */
  }

  to {
    transform: translateX(0);
    opacity: 1; /* End with opacity 1 */
  }
}

@keyframes slideFromDown {
  from {
    transform: translateY(800px);
    opacity: 0; /* Start with opacity 0 */
  }

  to {
    transform: translateY(0);
    opacity: 1; /* End with opacity 1 */
  }
}

.hero-title {
  animation: slideInLeft 1s ease-out; /* Removed transition, animation includes timing and delay if needed */
  /* transition-delay: 1s; /* This can be added to animation shorthand: 1s ease-out 1s */
}

.hero_p {
  animation: slideFromDown 1s ease-out 0.5s; /* Added 0.5s delay for sequential animation */
  animation-fill-mode: backwards; /* Ensures element is styled with opacity 0 before animation starts if delayed */
  /* transition: all 2s ease-in-out; /* Redundant with animation */
  /* transition-delay: 1s; /* Redundant with animation */
}

p {
  text-shadow: 0px 6px 20px #00293A;
}

/* Scroll-triggered animation classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  will-change: opacity, transform; /* Optimization for browsers */
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  transition-delay: 0.2s; /* Slight delay to make animation more noticeable */
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* End of scroll-triggered animation classes */

/* Subtle image hover effect */
.image-hover-effect {
  transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
  border-radius: inherit; /* Ensures the hover effect respects existing border-radius if applied on parent */
}

.image-hover-effect:hover {
  transform: scale(1.03);
  box-shadow: 0px 8px 20px rgba(0, 41, 58, 0.15);
}
/* End of image hover effect */

/* Interactive card for Green-Spaces section */
.interactive-card-green {
  transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
  /* Existing styles like border, backdrop-filter, rounded-xl are applied via Tailwind in HTML */
}

.interactive-card-green:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0px 10px 25px rgba(0, 60, 80, 0.2); /* Enhanced shadow for pop-out effect */
}

.interactive-card-green h3, /* Targeting h3 within the card */
.interactive-card-green p {  /* Targeting p within the card */
  transition: color 0.3s ease-out;
}

.interactive-card-green:hover h3,
.interactive-card-green:hover p {
  color: #e0f7fa; /* Subtle brightening of text color on hover */
}
/* End of interactive card for Green-Spaces section */

/* ==================== ABOUT STYLING ================== */

.about-bg {
  background: radial-gradient(82.41% 70.71% at 50% 50%, #003040 0%, #001420 100%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: contain;
  flex-shrink: 0;
  padding: 5rem 0;
}


.about-text {
  z-index: 0;
}

nav,
a {
  z-index: 100;
}

header {
  z-index: 10000;
}


/*===================================== green section =====================================*/

/* green background */

.bg-green {
  background: url(../images/green_space_bg_comp.png);
}

footer {
  background: #011C26;
  height: 120px;
  flex-shrink: 0;
}

/* .text-width{
  width: 30ch;
} */

/*===================================== map section =====================================*/

.map {
  background-image: url(../images/map.png);
  background-position: center top;
  height: 1481px;
  flex-shrink: 0;
}

/* Web Page Loader */

.loader {
  position: relative;
  display: block;
  width: 44px;
  height: 44px;
  font-size: 15px;
  box-shadow: 9px 9px 33px #d1d1d1, -9px -9px 33px #ffffff;
}

.loader::before,
.loader::after {
  content: '';
  position: absolute;
  display: block;
}

.loader_bubble::before {
  top: 10px;
  left: 10px;
  width: 10px;
  height: 10px;
  background: #ffffff;
  border-radius: 50%;
}

.loader_bubble {
  background: linear-gradient(180deg, rgb(0, 91, 228) 10%, rgb(75, 127, 240) 100%);
  border-radius: 50%;
  transform-origin: 50% 50%;
  animation: bubble7234 1200ms cubic-bezier(0.645, 0.045, 0.355, 1) infinite;
}

@keyframes bubble7234 {
  0% {
    transform: translate3d(0, 0, 0) rotate(0);
  }

  100% {
    transform: translate3d(0, 0, 0) rotate(360deg);
  }
}

#preloader{
  z-index: 20000;
  height: 100vh;
  width: 100%;
  position: fixed;
  z-index: 1000000;
}


