/* --- Basic Reset --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Tektur", sans-serif;
}

html {
  scroll-behavior: smooth;
  /* CHANGE: Use 'padding' instead of 'margin' for the global html container */
  scroll-padding-top: 100px;
  overflow-anchor: auto;
}

.logo-group {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
    cursor: pointer;
}

.logo-icon {
    height: 1.8rem;
    width: auto;
    margin-right: 8px;
}

.logo {
    font-size: 1.8rem; 
    font-weight: 700;
    margin: 0;
}

body {
  background: #ededed;
  color: #333;
}

body.no-scroll {
  overflow: hidden;
}

/* Layout Container */
.container {
  width: 90%;
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #111;
  box-shadow: 0px 2px 5px rgba(0,0,0,0.3);
}

/* --------------------------- */
/*       DESKTOP NAVBAR        */
/* --------------------------- */
.navbar {
  display: grid;
  grid-template-columns: auto 0.6fr auto;   /* LOGO | SEARCH | NAV LINKS */
  align-items: center;
  padding: 20px;
  background: #111;
  color: #fff;
  position: relative;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
}

/* Desktop search block */ 
.desktop-search {
  width: 100%;
  max-width: 200px;
  margin: 0 auto; 
}

.desktop-search-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #222;
  padding: 8px 15px;
  border-radius: 8px;
}

.desktop-search-input {
  background: transparent;
  border: none;
  color: #fff;
  width: 100%;
  outline: none;
}

/* Nav Links */
.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 30px;                /* spacing between nav items */
}

.nav-links li {
  position: relative;
}

/* Parent links */
.nav-links > li > a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  position: relative;
  padding-bottom: 10px;
  transition: all 0.3s ease;
}

/* Hover underline */
.nav-links > li > a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 6px;
  background-color: #098317;
  transition: width 0.3s ease;
}

.nav-links > li > a:hover::after {
  width: 100%;
}

/* Dropdown menu */
.dropdown-menu {
  list-style: none;
  position: absolute;
  top: 150%;
  left: 0;
  background: #111;
  padding: 5px 0;
  min-width: 200px;
  border-radius: 5px;
  display: none;
  z-index: 999;
}

@media screen and (min-width: 901px) {
    .nav-links li:hover .dropdown-menu {
        display: block;
    }
}

/* Submenu links */
.dropdown-menu li a {
  display: block;
  padding: 10px 20px;
  color: #fff;
  text-decoration: none;
}

.dropdown-menu li a:hover {
  background-color: #098317;
}

/* Hide hamburger on desktop */
.hamburger {
  display: none;
}

/* --------------------------- */
/*         HERO SECTION        */
/* --------------------------- */

.hero {
  position: relative;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.650);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 20px;
  font-family: "Tomorrow", sans-serif;
  animation: bounce 1s ease;
}

.hero-content .button2 {
    /* FIX 1: Allow the button to move/animate */
    display: inline-block; 
    
    /* FIX 2: Remove the blue link underline */
    text-decoration: none; 

    background: #000000;
    color: #ffffff;
    border: 2px solid #098317;
    outline: none;
    padding: 16px 32px;
    font-size: 20px;       /* Matches your main button */
    border-radius: 5px;    /* Matches your main button */
    cursor: pointer;
}

.hero-content .button2:hover {
    background: #098317;
    color: #fff;
    border-color: #0ba41d;
}

/* --- Hero Button Hover Animation --- */

/* 1. Add smooth transition to base state so the movement isn't jerky */
#bookBtn, 
#btn2 {
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

/* 2. The Hover Effect: Lift up and add shadow */
#bookBtn:hover, 
#btn2:hover {
    transform: translateY(-4px); /* Moves the button up by 5 pixels */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); /* Adds a soft shadow behind it */
}

@keyframes bounce {
  0% { transform: scale(1); }
  20% { transform: scale(1.03); }
  40% { transform: scale(1); }
  60% { transform: scale(1.02); }
  80% { transform: scale(1); }
  100% { transform: scale(1); }
}

.hero-content h2 {
  font-size: 3rem;
  font-weight: 700;
}

.hero-content p {
  font-size: 1.2rem;
  margin-top: 15px;
  opacity: 0.9;
}

button {
  padding: 18px 35px;
  background: #098317;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  margin-top: 20px;
  border-radius: 5px;
}

button:hover {
    background: #0ba41d;
}

/* --------------------------- */
/*      SERVICES / CONTACT     */
/* --------------------------- */

.services {
  padding: 50px 20px;
}

.service-cards {
  display: flex;
  justify-content: space-around;
  margin-top: 30px;
  flex-wrap: wrap;
}

.card {
  background: #fff;
  width: 280px;
  padding: 25px;
  margin: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.card h3 {
  margin-bottom: 10px;
}

.counter-section {
  text-align: center;
  padding: 100px 20px;
}

#counterDisplay {
  font-size: 6rem;
  font-weight: 700;
  color: #098317;
}

/* --- PRELOADER STYLE --- */
#preloader {
    position: fixed;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%;
    background: #111; /* Matches your navbar dark theme */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Ensures it stays on top of everything */
    transition: opacity 0.5s ease, visibility 0.5s;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.spinner {
    position: relative;
    width: 100px; 
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.inner-circle {
    position: absolute;
    width: 100%; 
    height: 100%;
    border: 3px solid rgba(255, 255, 255, 0.05); /* Faint background ring */
    border-top: 3px solid #098317; /* Your brand green */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader-logo {
    width: 40px;
    height: auto;
    z-index: 10;
    filter: drop-shadow(0 0 5px rgba(9, 131, 23, 0.5));
}

#preloader p {
    font-family: 'Tomorrow', sans-serif;
    color: #888;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.8rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}