/* Global CSS */
@import url("https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css");
@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@300;400;500;600;700&display=swap');

* {
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}

html,
body {
  margin: 0px;
  height: 100%;
  font-family: 'Figtree', Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: #333;
}

/* a blue color as a generic focus style */
button:focus-visible {
  outline: 2px solid #4a90e2 !important;
  outline: -webkit-focus-ring-color auto 5px !important;
}

a {
  text-decoration: none;
}

/* CSS Variables */
:root {
  /* Colors */
  --color-cyan-14: #064034;
  --color-yellow-36: #8EB205;
  --color-grey-20: #333333;
  --color-grey-40: #666666;
  --color-white: #FDFDFD;
  --color-light-bg: #f8f8f8;
  
  /* Font Families */
  --meterbolic-figtree-regular-font-family: "Figtree", Helvetica;
  --meterbolic-figtree-bold-font-family: "Figtree-Bold", Helvetica;
  --meterbolic-arial-bold-font-family: "Arial-Bold", Helvetica;
  
  /* Font Sizes */
  --meterbolic-semantic-heading-1-font-size: 52px;
  --meterbolic-semantic-heading-2-font-size: 42px;
  --meterbolic-semantic-heading-3-font-size: 20px;
  --meterbolic-figtree-regular-font-size: 17px;
  --meterbolic-arial-bold-font-size: 16px;
  
  /* Font Weights */
  --meterbolic-semantic-heading-1-font-weight: 700;
  --meterbolic-semantic-heading-2-font-weight: 700;
  --meterbolic-semantic-heading-3-font-weight: 600;
  --meterbolic-figtree-regular-font-weight: 400;
  --meterbolic-arial-bold-font-weight: 700;
  
  /* Line Heights */
  --meterbolic-semantic-heading-1-line-height: 1.2;
  --meterbolic-semantic-heading-2-line-height: 1.3;
  --meterbolic-semantic-heading-3-line-height: 1.4;
  --meterbolic-figtree-regular-line-height: 1.7;
  --meterbolic-arial-bold-line-height: normal;
}

/* ====== Navbar Styles ====== */
.nav-top-variant2 {
  width: 100%;
  background: #064034;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 40px;
  position: fixed;
  top: 0;
  z-index: 1000;
  transition: transform 0.3s ease;
  box-sizing: border-box;
}

/* Hide navbar when scrolling down */
.nav-top-variant2.hide {
  transform: translateY(-100%);
}

/* Logo */
.nav-top-variant2 .logo {
  height: 1.8rem;
  cursor: pointer;
  z-index: 1001;
  margin-left: 5.6%;
  flex-shrink: 0;
}

/* Links container - Desktop - CENTERED */
.nav-top-variant2 .nav-links {
  display: flex;
  gap: 28px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-top-variant2 .nav-links a {
  text-decoration: none;
  color: #ffffff;
  font-weight: 500;
  font-size: 16px;
  transition: all 0.3s ease;
  position: relative;
  padding: 8px 4px;
  white-space: nowrap;
}

.nav-top-variant2 .nav-links a:hover {
  color: #8EB205;
}

/* Active link styling - NEW */
.nav-top-variant2 .nav-links a.active {
  color: #8EB205;
  font-weight: 600;
}

.nav-top-variant2 .nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #8EB205;
  border-radius: 2px;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

/* Buttons - Desktop */
.nav-top-variant2 .nav-buttons {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.nav-top-variant2 .nav-button {
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  white-space: nowrap;
}

/* Login Button */
.nav-top-variant2 .login-btn {
  background: transparent;
  color: #8EB205;
  border: 1px solid #8EB205;
}

.nav-top-variant2 .login-btn:hover {
  background: #8EB205;
  color: #064034;
}

/* Get Started Button - UPDATED HOVER EFFECT */
.nav-top-variant2 .get-started-btn {
  background: #8EB205;
  color: #064034;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.nav-top-variant2 .get-started-btn:hover {
  background: #7a9e04;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

/* Hamburger Toggle (hidden by default on desktop) */
.hamburger-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.hamburger-toggle span {
  width: 100%;
  height: 3px;
  background-color: #ffffff;
  border-radius: 3px;
  transition: all 0.3s ease;
  transform-origin: center;
}

/* Active state for hamburger */
.hamburger-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.hamburger-toggle.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Menu Container (hidden on desktop) */
.nav-top-variant2 .mobile-menu {
  display: none;
}

/* ====== Responsive ====== */
@media (max-width: 1000px) {
  .nav-top-variant2 {
    padding: 12px 20px;
  }

  /* Show hamburger toggle on mobile */
  .hamburger-toggle {
    display: flex;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
  }

  /* Hide desktop nav items on mobile */
  .nav-top-variant2 .nav-links,
  .nav-top-variant2 .nav-buttons {
    display: none;
  }

  /* Show mobile menu container */
  .nav-top-variant2 .mobile-menu {
    display: block;
    position: fixed;
    margin-top: 60px;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background: #064034;
    padding: 80px 30px 30px;
    transition: right 0.4s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 999;
    overflow-y: auto;
  }

  /* Mobile menu overlay */
  .nav-top-variant2.menu-active::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
  }

  /* Show mobile menu when active */
  .nav-top-variant2.menu-active .mobile-menu {
    right: 0;
  }

  /* Mobile menu links */
  .nav-top-variant2 .mobile-menu .nav-links {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 30px;
    position: static;
    transform: none;
    left: auto;
  }

  .nav-top-variant2 .mobile-menu .nav-links a {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 18px;
    width: 100%;
    display: block;
    position: relative;
    transition: all 0.3s ease;
  }

  .nav-top-variant2 .mobile-menu .nav-links a:last-child {
    border-bottom: none;
  }

  /* Mobile active link styling - NEW */
  .nav-top-variant2 .mobile-menu .nav-links a.active {
    color: #8EB205;
    font-weight: 600;
    background: rgba(142, 178, 5, 0.1);
    border-left: 3px solid #8EB205;
    padding-left: 15px;
  }

  /* Mobile menu buttons */
  .nav-top-variant2 .mobile-menu .nav-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: auto;
  }

  .nav-top-variant2 .mobile-menu .nav-button {
    width: 100%;
    text-align: center;
    padding: 12px;
  }

  /* Mobile Get Started Button - UPDATED HOVER EFFECT */
  .nav-top-variant2 .mobile-menu .get-started-btn {
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  }

  .nav-top-variant2 .mobile-menu .get-started-btn:hover {
    background: #7a9e04;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  }
}

@media (max-width: 600px) {
  .nav-top-variant2 .mobile-menu {
    width: 85%;
  }
  
  .nav-top-variant2 .logo {
    height: 40px;
  }
}

/* Footer Styles */
.footer {
  width: 100%;
  background: #064034;
  padding: 70px 0 20px;
}

.footer-container {
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  padding: 0 10%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}

.footer-list {
  display: flex;
  flex-direction: column;
}

.footer-heading3 {
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-heading-text {
  color: white;
  font-size: 18px;
  font-weight: 600;
}

.footer-divider {
  position: absolute;
  bottom: 0;
  height: 2px;
  background: #8EB205;
}

.footer-divider.left {
  width: 83px;
}

.footer-divider.middle {
  width: 58px;
}

.footer-divider.right {
  width: 124px;
  gap: 10px;
}

.footer-component3 {
  margin-bottom: 15px;
}

.footer-text {
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  transition: color 0.2s ease;
}

.footer-text:hover {
  color: #8EB205;
}

.footer-input {
  padding: 12px 15px;
  background: rgba(255, 255, 255, 0.10);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.20);
  margin-bottom: 1.3rem;
}

.footer-input-text {
  color: rgba(255, 255, 255, 0.60);
  font-size: 15px;
}

.footer-subscribe-btn {
  padding: 12px 24px;
  background: #8EB205;
  border-radius: 6px;
  color: white;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.footer-subscribe-btn:hover {
  background: #7a9e04;
}

.footer-social-icons {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 40px;
}

.footer-social-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.10);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FDFDFD;
  font-size: 20px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.footer-social-icon:hover {
  background: rgba(255, 255, 255, 0.20);
}

.footer-copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  padding: 30px 0;
  text-align: center;
}

.footer-copyright-text {
  color: #FDFDFD;
  font-size: 14px;
  opacity: 0.8;
}

/* ================ SCROLL TO TOP BUTTON ================ */
.scrollToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--primary);
  color: var(--text-light);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: var(--box-shadow);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.scrollToTop.show {
  opacity: 1;
  visibility: visible;
}

.scrollToTop:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
}

/* Active Navigation States */
.nav-top-variant2 .nav-links a.active {
  color: #8EB205;
  font-weight: 600;
  position: relative;
}

.nav-top-variant2 .nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #8EB205;
  border-radius: 2px;
  animation: slideIn 0.3s ease;
}

/* Mobile active states */
.nav-top-variant2 .mobile-menu .nav-links a.active {
  color: #8EB205;
  font-weight: 600;
  background: rgba(142, 178, 5, 0.1);
  border-left: 3px solid #8EB205;
  padding-left: 15px;
}