/* =========================================================
   Root Variables
========================================================= */
:root {
  --primary: #7ac943;
  --secondary: #2e8b57;
  --accent: #4caf50;

  --bg: #ffffff;
  --soft-bg: #f6fff9;

  --text: #1e293b;
  --muted: #64748b;
}

/* =========================================================
   Base / Reset
========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* =========================================================
   Loader
========================================================= */
#loader {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: #ffffff;
  z-index: 9999;
}

#loader img {
  width: 80px;
  animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

/* =========================================================
   Scroll Progress Bar
========================================================= */
#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  z-index: 10000;
}

/* =========================================================
   Header & Navigation
========================================================= */
.header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  padding: 14px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  z-index: 1000;
}

.logo {
  height: 40px;
  width: auto;
}

.nav a {
  margin: 0 12px;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  position: relative;
}

.nav a.active {
  color: var(--primary);
  font-weight: 600;
}

.nav a.active::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -6px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 10px;
}

/* =========================================================
   Hero Section
========================================================= */
.hero {
  min-height: 100vh;
  padding: 0 8%;
  display: flex;
  align-items: center;
  color: #ffffff;
  position: relative;
  overflow: hidden;

  background: linear-gradient(
    -45deg,
    #7ac943,
    #4caf50,
    #2e8b57,
    #7ac943
  );
  background-size: 400% 400%;
  animation: gradientMove 14s ease infinite;
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-content {
  max-width: 650px;
  position: relative;
  z-index: 2;
  animation: fadeUp 1s ease;
}

.hero h1 {
  font-size: clamp(34px, 5vw, 48px);
  margin-bottom: 20px;
}

.hero p {
  font-size: 18px;
  margin-bottom: 30px;
}

#particles,
.mesh-bg {
  position: absolute;
  inset: 0;
}

#particles {
  z-index: 0;
}

.mesh-bg {
  z-index: 1;
  background:
    radial-gradient(circle at 20% 30%, rgba(122,201,67,0.35), transparent 45%),
    radial-gradient(circle at 80% 40%, rgba(76,175,80,0.25), transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(46,139,87,0.35), transparent 45%);
  animation: meshMove 18s ease-in-out infinite alternate;
}

@keyframes meshMove {
  from { transform: translateY(0); }
  to { transform: translateY(-30px); }
}

/* =========================================================
   Buttons
========================================================= */
.btn {
  display: inline-block;
  padding: 14px 34px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--secondary);
  font-weight: 600;
  text-decoration: none;
  border: 2px solid rgba(255, 255, 255, 0.4);
  transition: background 0.3s ease, color 0.3s ease;
}

.btn:hover {
  background: var(--accent);
  color: #ffffff;
}

/* =========================================================
   Sections
========================================================= */
.section {
  padding: 100px 8%;
}

.section.alt {
  background: var(--soft-bg);
}

.section h2 {
  text-align: center;
  font-size: clamp(28px, 4vw, 36px);
  margin-bottom: 50px;
}

/* =========================================================
   Services
========================================================= */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.card {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 20px;
  padding: 35px 25px;
  text-align: center;
  border: 1px solid rgba(122,201,67,0.25);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(46,139,87,0.25);
}

.card i {
  font-size: 42px;
  color: var(--accent);
  margin-bottom: 15px;
}

/* =========================================================
   Why Vazhai
========================================================= */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.why-card {
  text-align: center;
  padding: 30px;
}

.why-card i {
  font-size: 46px;
  color: var(--primary);
  margin-bottom: 20px;
}

.why-card h4 {
  font-size: 20px;
  margin-bottom: 10px;
}

.why-card p {
  color: var(--muted);
}

/* =========================================================
   Contact
========================================================= */
.center {
  text-align: center;
  max-width: 700px;
  margin-inline: auto;
}

.contact-card {
  max-width: 720px;
  margin: 50px auto 0;
  padding: 30px;
  border-radius: 18px;
  background: linear-gradient(
    145deg,
    rgba(122,201,67,0.12),
    rgba(46,139,87,0.12)
  );
}

.contact-row {
  display: flex;
  gap: 16px;
  margin-bottom: 22px;
}

.contact-row i {
  font-size: 22px;
  color: var(--accent);
  margin-top: 4px;
  min-width: 24px;
}

/* =========================================================
   Email Link Styling 
========================================================= */
.contact-row a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.25s ease;
}

.contact-row a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.contact-row a:focus-visible {
  outline: 2px dashed rgba(122, 201, 67, 0.6);
  outline-offset: 3px;
}

/* =========================================================
   Footer
========================================================= */
.footer {
  text-align: center;
  padding: 16px 10px;
  font-size: 14px;
  color: var(--text);

  background: linear-gradient(
    145deg,
    rgba(122, 201, 67, 0.10),
    rgba(46, 139, 87, 0.10)
  );

  border-top: 1px solid rgba(122, 201, 67, 0.25);
  letter-spacing: 0.3px;
}


/* =========================================================
   Animations
========================================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   Hamburger Menu (Mobile)
========================================================= */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  width: 26px;
  height: 3px;
  background: var(--text);
  border-radius: 3px;
  transition: 0.3s ease;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 70px;
    right: 20px;
    padding: 20px;
    background: #ffffff;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 200px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
    transition: 0.3s ease;
  }

  .nav.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav a {
    margin: 0;
    font-size: 16px;
  }
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* =========================================================
   Reduced Motion Support (Accessibility)
========================================================= */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  /* Stop animated backgrounds */
  .hero {
    animation: none !important;
    background-size: cover;
  }

  .mesh-bg,
  #wavePath {
    animation: none !important;
  }
}
