/* Base Styles */
:root {
  /* Colors from Figma design */
  --primary-color: #318161; /* Green */
  --secondary-color: #142e38; /* Dark teal/navy */
  --accent-color: #fab65d; /* Orange/peach */
  --background-color: #efebe3; /* Light beige/cream */
  --light-green: #ccd8c8; /* Light mint green */
  --white-color: #ffffff;
  --text-color: #1b291a; /* Dark green text */
  --text-light: #435151; /* Medium teal text */

  /* Typography */
  --font-primary: "Montserrat", sans-serif;
  --font-secondary: "Poppins", sans-serif;

  /* Other variables */
  --transition: all 0.3s ease;
  --transition-cubic: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  --box-shadow-hover: 0 15px 30px rgba(0, 0, 0, 0.1);
  --border-radius: 16px;
  --border-radius-sm: 8px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-secondary);
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: var(--text-color);
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-container {
  max-width: 1440px;
  margin: 20px auto;
  background-color: var(--background-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  position: relative;
}

section {
  padding: 80px 0;
  position: relative;
}

.section-title {
  font-family: var(--font-primary);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 40px;
  text-align: center;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 2px;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  font-size: 16px;
  transition: var(--transition-cubic);
  border: none;
  cursor: pointer;
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: var(--transition);
  z-index: -1;
}

.btn:hover::before {
  left: 0;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white-color);
  box-shadow: 0 5px 15px rgba(49, 129, 97, 0.3);
}

.btn-primary:hover {
  background-color: #266e50;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(49, 129, 97, 0.4);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--white-color);
  box-shadow: 0 5px 15px rgba(20, 46, 56, 0.3);
}

.btn-secondary:hover {
  background-color: #0e222a;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(20, 46, 56, 0.4);
}

/* Preloader */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--background-color);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.loader-circle {
  width: 60px;
  height: 60px;
  border: 3px solid rgba(49, 129, 97, 0.1);
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

.loading-text {
  font-family: var(--font-primary);
  font-weight: 700;
  color: var(--text-color);
  letter-spacing: 1px;
  position: relative;
}

.loading-text::after {
  content: "...";
  position: absolute;
  animation: ellipsis 1.5s infinite;
}

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

@keyframes ellipsis {
  0% {
    content: ".";
  }
  33% {
    content: "..";
  }
  66% {
    content: "...";
  }
}

/* Navigation */
.navbar {
  padding: 20px 40px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.4s ease;
  background-color: rgba(239, 235, 227, 0.95);
  backdrop-filter: blur(10px);
}

.navbar.scrolled {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  padding: 15px 40px;
  background-color: rgba(239, 235, 227, 0.98);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

.logo i {
  font-size: 24px;
  color: var(--primary-color);
  margin-right: 10px;
  transition: var(--transition);
}

.logo span {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-color);
  transition: var(--transition);
}

.logo:hover i {
  transform: rotate(15deg);
}

.nav-links {
  display: flex;
  gap: 40px;
}

.nav-link {
  color: var(--text-color);
  font-weight: 500;
  position: relative;
  padding: 5px 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.icon-btn {
  background: none;
  border: none;
  font-size: 20px;
  color: var(--text-color);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.icon-btn::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.icon-btn:hover {
  color: var(--primary-color);
}

.icon-btn:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  background-color: var(--secondary-color);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: var(--transition);
}

.menu-toggle:hover {
  background-color: var(--primary-color);
  transform: rotate(90deg);
}

/* Hero Slider Section */
.hero-slider-section {
  position: relative;
  height: 100vh;
  min-height: 700px;
  overflow: hidden;
  width: 100%;
  margin-top: 80px; /* Add space for fixed navbar */
}

/* Particles.js Container */
.particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
  pointer-events: none;
}

/* Make sure content appears above particles */
.container {
  position: relative;
  z-index: 2;
}

/* Lightbox Gallery Styling */
.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  grid-gap: 20px;
  margin: 40px 0;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-sm);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-hover);
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(20, 46, 56, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .overlay {
  opacity: 1;
}

.gallery-item .overlay i {
  color: white;
  font-size: 2rem;
}

/* Tilt Effect Enhancement */
.tilt-effect {
  transform-style: preserve-3d;
  transform: perspective(1000px);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.tilt-effect:hover {
  box-shadow: var(--box-shadow-hover);
}

.tilt-inner {
  transform: translateZ(20px);
}

/* Typed.js Cursor Styling */
.typed-text {
  display: inline-block;
  color: var(--primary-color);
  font-weight: 700;
}

.typed-cursor {
  color: var(--primary-color);
  font-weight: 700;
  animation: blink 0.7s infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* Animate.css-like animations */
.animate-bounce {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 
  20%,
  50%,
  80%, 
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-30px);
  }
  60% {
    transform: translateY(-15px);
  }
}

.animate-pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* Footer */
.footer {
  background-color: var(--secondary-color);
  color: var(--white-color);
  padding: 80px 0 20px;
  position: relative;
  width: 100%;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.footer-logo i {
  font-size: 24px;
  color: var(--primary-color);
  margin-right: 10px;
}

.footer-logo span {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--white-color);
}
.footer-logo {
  display: flex;
  align-items: center;
  text-align: left;
  gap: 15px; /* Space between image and text */
  padding: 20px;
  max-width: 400px;
}

.footer-logo img {
  border: 2px solid #fff; /* Optional: adds a subtle border */
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
}

.footer-logo span {
  font-size: 1.2rem;
  font-weight: bold;
  color: #f8f8f8;
}

.footer-logo p {
  font-size: 0.9rem;
  color: #ccc;
  margin-top: 5px;
  line-height: 1.5;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 60px;
}

.footer-links-column h4 {
  font-family: var(--font-primary);
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: var(--white-color);
  position: relative;
  padding-bottom: 10px;
}

.footer-links-column h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary-color);
}

.footer-links-column ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-column a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
  position: relative;
  padding-left: 0;
}

.footer-links-column a::before {
  content: "→";
  position: absolute;
  left: -20px;
  opacity: 0;
  transition: var(--transition);
}

.footer-links-column a:hover {
  color: var(--white-color);
  padding-left: 20px;
}

.footer-links-column a:hover::before {
  left: 0;
  opacity: 1;
}

.footer-links-column li {
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-links-column li i {
  color: var(--primary-color);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.footer-social {
  display: flex;
  gap: 15px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white-color);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition-cubic);
  position: relative;
  overflow: hidden;
}

.footer-social a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-color);
  border-radius: 50%;
  transform: scale(0);
  transition: var(--transition);
}

.footer-social a:hover {
  transform: translateY(-5px);
}

.footer-social a:hover::before {
  transform: scale(1);
}
/* Make the hamburger menu visible */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  margin-right: auto;
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .container {
    max-width: 960px;
  }

  .section-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 992px) {
  .navbar {
    padding: 15px 20px;
  }

  .navbar.scrolled {
    padding: 10px 20px;
  }

  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .footer-top {
    flex-direction: column;
    gap: 30px;
  }

  .footer-links {
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }

  .menu-toggle {
    display: block; /* Show the menu icon */
}
  .footer-links {
    flex-direction: column;
    gap: 30px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  
  .nav-container .logo span {
    font-size: 1.2rem; /* Slightly smaller for mobile */
    text-align: center;
    display: block; /* Ensures proper alignment */
    margin-top: 5px;
}
}

@media (max-width: 576px) {
  .site-container {
    margin: 0;
    border-radius: 0;
  }

  .menu-toggle {
    display: block; /* Show the menu icon */
}
  section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 1.8rem;
  }
  .nav-container .logo span {
    font-size: 1rem; /* Even smaller for very small screens */
}
}


/* Responsive adjustments */
@media (max-width: 768px) {
  .nav-container .logo span {
      font-size: 1.2rem; /* Reduce size for better fit */
      display: block; /* Stack text in smaller screens */
      text-align: center;
      word-wrap: break-word; /* Ensures text breaks properly */
  }
}

@media (max-width: 480px) {
  .nav-container .logo span {
      font-size: 1rem; /* Further reduce size */
      line-height: 1.3; /* Improve readability */
      text-align: center;
  }
}