* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  color: #333;
  background-color: #fff;
}

.container {
  width: 90%;
  /* max-width: 1200px; */
  margin: auto;
}

/* ---------------------------------------------
   NAVBAR
--------------------------------------------- */
.navbar {
  background: #ffffff;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 200;
}

.nav-container {
  display: flex;
  align-items: center;
  width: 92%;
  margin: auto;
}

.logo img {
  height: 86px;
}

/* Push nav right */
.nav-menu {
  flex: 1;
}

.nav-links {
  list-style: none;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 20px;
  transition: 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #4B1C7D;
  border-bottom: 2px solid #74B43E;
  padding-bottom: 3px;
}

/* ---------------------------------------------
   DROPDOWN
--------------------------------------------- */
.dropdown {
  position: relative;
}

.dropdown > a i {
  font-size: 14px;
  margin-left: px;
}

.dropdown-menu {
  position: absolute;
  top: 120%;
  left: 0;
  background: #ffffff;
  min-width: 220px;
  padding: 10px 0;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  display: none;
  z-index: 999;
}

.dropdown-menu li {
  list-style: none;
}

.dropdown-menu a {
  display: block;
  padding: 10px 18px;
  font-size: 16px;
  color: #333;
  border: none;
}

.dropdown-menu a:hover {
  background: #f4f6f8;
  color: #4B1C7D;
}

/* Desktop hover */
@media (min-width: 901px) {
  .dropdown:hover .dropdown-menu {
    display: block;
  }
}

/* ---------------------------------------------
   HAMBURGER
--------------------------------------------- */
.menu-toggle {
  display: none;
  font-size: 32px;
  cursor: pointer;
  color: #333;
}

/* ---------------------------------------------
   MOBILE
--------------------------------------------- */
@media (max-width: 900px) {

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    background: #ffffff;
    flex-direction: column;
    display: none;
    padding: 20px 0;
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    width: 100%;
    padding: 12px 20px;
    text-align: right;
  }

  .dropdown-menu {
    position: static;
    display: none;
    box-shadow: none;
    background: #f6f6f6;
    margin-top: 8px;
    border-radius: 6px;
  }

  .dropdown-menu.active {
    display: block;
  }

  .dropdown-menu a {
    padding: 10px 20px;
    font-size: 16px;
  }
}

/* ---------------------------------------------
   HERO SECTION
--------------------------------------------- */
.hero {
  padding: 80px 0;
  display: flex;
  align-items: center;
  position: relative; /* Needed for animation background */
  overflow: hidden;
}

/* CONTENT ABOVE ANIMATION */
.hero-content {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  align-items: center;
  gap: 40px;
}

.hero-text h1 {
  font-size: 3rem;
  color: #4B1C7D;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-text p {
  font-size: 1.3rem;
  color: #555;
  margin-bottom: 25px;
}

.hero-text span {
  color: #4B1C7D;
  font-weight: 600;
}

.btn {
  background-color: #74B43E;
  color: white;
  padding: 13px 27px;
  border: none;
  border-radius: 6px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: 0.3s;
}

.btn:hover {
  background-color: #65a034;
}

.hero-image img {
  width: 100%;
}

/* ---------------------------------------------
   HERO FLOATING SQUARE ANIMATION (BACKGROUND)
--------------------------------------------- */
.hero-animation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.white {
  height: 100%;
  position: relative;
}

.white:before {
  z-index: 1000;
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60vh;
background-image: linear-gradient(-180deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 100%);
}

.white:after {
  z-index: 1000;
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 20vh;
  /* background-image: linear-gradient(0deg, #ebebeb 0%, rgba(235, 235, 235, 0) 100%); */
}

.squares {
  height: 100%;
  display: flex;
  justify-content: space-around;
  overflow: hidden;
}

.square {
  animation: squares 9.5s linear infinite;
  align-self: flex-end;
  width: 1em;
  height: 1em;
  transform: translateY(100%);
  background: #c3c7ce;
}

.squares .square:nth-child(2) {
  height: 1.5em;
  width: 3em;
  animation-delay: 1s;
  animation-duration: 17s;
  filter: blur(5px);
}

.squares .square:nth-child(3) {
  height: 2em;
  width: 1em;
  animation-delay: 1.5s;
  animation-duration: 8s;
}

.squares .square:nth-child(4) {
  height: 1em;
  width: 1.5em;
  animation-delay: 0.5s;
  filter: blur(3px);
  animation-duration: 13s;
}

.squares .square:nth-child(5) {
  height: 1.25em;
  width: 2em;
  animation-delay: 4s;
  filter: blur(2px);
  animation-duration: 11s;
}

.squares .square:nth-child(6) {
  height: 2.5em;
  width: 2em;
  animation-delay: 2s;
  filter: blur(1px);
  animation-duration: 9s;
}

.squares .square:nth-child(7) {
  height: 5em;
  width: 2em;
  filter: blur(2.5px);
  animation-duration: 12s;
}

.squares .square:nth-child(8) {
  height: 1em;
  width: 3em;
  animation-delay: 5s;
  filter: blur(6px);
  animation-duration: 18s;
}

.squares .square:nth-child(9) {
  height: 3em;
  width: 2.4em;
  animation-delay: 6s;
  filter: blur(0.5px);
  animation-duration: 12s;
}

@keyframes squares {
  from {
    transform: translateY(100%) rotate(-50deg);
  }
  to {
    transform: translateY(calc(-100vh - 100%)) rotate(20deg);
  }
}

/* ---------------------------------------------
   FEATURES
--------------------------------------------- */
.features {
  padding: 50px 0;
  background: #e3e6e9;
  margin-bottom: 1rem;
}

.features-grid {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 30px;
  text-align: center;
}

.feature {
  background: white;
  border-radius: 12px;
  padding: 25px;
  width: 200px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
}

.feature:hover {
  transform: translateY(-5px);
}

.feature i {
  font-size: 40px;
  color: #4B1C7D;
  margin-bottom: 10px;
}

.feature h4 {
  color: #333;
  font-weight: 600;
}




/* ---------------------------------------------
   FOOTER
--------------------------------------------- */
/* ---------------------------------------------
   FOOTER STYLING UPGRADED
--------------------------------------------- */
footer {
  background-color: #4B1C7D;
  color: white;
  padding: 70px 0 30px;
  font-size: 1.05rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 60px;
  max-width: 1400px;
  margin: auto;
  padding: 0 30px;
}

.footer-section {
  flex: 1 1 260px;
  min-width: 260px;
  
}

.footer-logo-box {
  background: #ffffff;
  display: inline-block;
  padding: 18px 25px;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.footer-logo-box img {
  height: 87px; /* Bigger logo */
}

.footer-tagline {
  font-size: 1.1rem; /* bigger text */
  margin-top: 10px;
  line-height: 1.6;
}

.footer-section h4 {
  font-size: 1.3rem;
  margin-bottom: 18px;
  font-weight: 600;
  border-bottom: 3px solid #74B43E;
  display: inline-block;
  padding-bottom: 6px;
 
}

.footer-links a {
  display: block;
  font-size: 1.05rem;
  color: white;
  margin-bottom: 11px;
  text-decoration: none;
  transition: 0.3s;
  
}
.footer-section p{
  margin-bottom: 11px;
}


.footer-links a:hover {
  color: #74B43E;
  transform: translateX(4px);
}

.social-icons a {
  width: 42px;
  height: 42px;
    background: #74B43E;
  color: #4B1C7D;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  margin-right: 12px;
  font-size: 1.2rem;
  transition: 0.3s;
}

.social-icons a:hover {
  background: #74B43E;
  color: #4B1C7D;
  transform: scale(1.1);
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  font-size: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  padding-top: 20px;
}

/* ======= HORIZONTAL SCROLL FIXES ======= */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

/* Prevent background animation overflow */
.squares, .hero-animation {
  overflow: hidden !important;
  width: 100% !important;
}

/* Fix Vision-Mission overflow */
.vision-mission {
  width: 100%;
  overflow: hidden;
}

/* Fix nav width issue on mobile */
.nav-links {
  width: 100%;
  max-width: 100%;
}

/* Ensure feature grid stays inside container */
.features-grid {
  max-width: 100%;
  overflow: hidden;
}

/* Prevent card overflow on small screens */
.cards {
  max-width: 100%;
}

/* Prevent image overflow */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== PAGE LOADER ===== */
#page-loader {
  position: fixed;
    top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#page-loader.hide {
  opacity: 0;
  visibility: hidden;
}

.loader-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #e5e7eb;
  border-top-color: #74B43E;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  margin-bottom: 12px;
}

#page-loader p {
  font-size: 14px;
  color: #475569;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Prevent scroll while loading */
body.loading {
  overflow: hidden;
}
