:root {
  /* Brand colors updated to match logo */
  --brand-1: #80cc29; /* primary bright */
  --brand-2: #8cc63f; /* secondary */
  --brand-3: #73aa26; /* darker accent */

  --primary-color: var(--brand-1);
  --primary-dark: var(--brand-3);
  --accent-color: var(--brand-2);
  --dark-color: #1a252f;
  --text-color: #444;
  --light-bg: #f9fbfd;
  --white: #ffffff;
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: 1px solid rgba(255, 255, 255, 0.5);
  --gradient-primary: linear-gradient(
    135deg,
    var(--brand-1) 0%,
    var(--brand-2) 100%
  );
  --gradient-overlay: linear-gradient(
    135deg,
    rgba(115, 170, 38, 0.92) 0%,
    rgba(140, 198, 63, 0.9) 100%
  );
  --gradient-dark: linear-gradient(135deg, #2c3e50 0%, #000000 100%);
  --shadow-sm: 0 5px 15px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.1);
  --transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
  --nav-gap: 22px;
  --navbar-height: 70px;
}

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

body {
  font-family: "Poppins", sans-serif;
  font-size: 14px; /* Reduced font size for formal look */
  line-height: 1.8;
  color: var(--text-color);
  background-color: var(--light-bg);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--dark-color);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.5px;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Glassmorphism Navbar --- */
.navbar {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px; /* More compact */
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark-color);
  text-decoration: none;
  display: flex;
  align-items: center;
  letter-spacing: -0.5px;
}

.logo-img {
  height: 50px;
  width: auto;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: var(--nav-gap);
  align-items: center;
}

.nav-links li {
  margin: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--dark-color);
  font-weight: 500;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition);
  position: relative;
  padding: 5px 0;
}

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

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

.hamburger {
  display: none;
  cursor: pointer;
  font-size: 1.4rem;
  color: var(--dark-color);
}

/* --- Modern Hero Section --- */
.hero {
  background: linear-gradient(
      135deg,
      rgba(46, 204, 113, 0.85) 0%,
      rgba(26, 37, 47, 0.9) 100%
    ),
    url("https://images.unsplash.com/photo-1518173946687-a4c8892bbd9f?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80")
      no-repeat center center/cover;
  height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  padding-top: 70px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(to top, var(--light-bg), transparent);
}

.hero-content {
  position: relative;
  z-index: 1;
  animation: fadeUp 1s ease-out;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  color: var(--white);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.9;
  font-weight: 300;
}

/* --- Buttons with Gradients --- */
.btn {
  display: inline-block;
  /* reduced internal padding for a tighter look */
  padding: 10px 22px;
  /* softer rounded rectangle (Apple-like) */
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  transition: var(--transition);
  margin: 0 10px 0 0; /* no top gap from button itself */
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.primary-btn {
  background: var(--gradient-primary);
  color: var(--white);
  /* softer shadow, tuned to brand */
  box-shadow: 0 8px 18px rgba(128, 204, 41, 0.18);
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(128, 204, 41, 0.22);
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--white);
}

.secondary-btn:hover {
  background: var(--white);
  color: var(--primary-dark);
}

/* --- Sections & Animations --- */
.section {
  padding: 100px 0;
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 15px;
  color: var(--dark-color);
  position: relative;
  display: inline-block;
  width: 100%;
}

.section-title::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background: var(--gradient-primary);
  margin: 15px auto 0;
  border-radius: 2px;
}

.section-title-left {
  text-align: left;
  font-size: 2.2rem;
  margin-bottom: 30px;
  color: var(--dark-color);
  position: relative;
  display: inline-block;
  width: 100%;
}

.section-title-left::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background: var(--gradient-primary);
  margin: 15px 0 0 0;
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
  color: #777;
  font-size: 0.95rem;
}

.bg-light {
  background: var(--white);
}

/* --- Glassmorphism Cards --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.service-card {
  background: var(--white);
  padding: 50px 30px;
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(46, 204, 113, 0.05) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  z-index: -1;
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 80px;
  height: 80px;
  background: rgba(46, 204, 113, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: var(--gradient-primary);
  transform: scale(1.1) rotate(5deg);
}

.service-icon i {
  font-size: 2rem;
  color: var(--primary-dark);
  transition: var(--transition);
}

.service-card:hover .service-icon i {
  color: var(--white);
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
}

.service-card p {
  color: #666;
  margin-bottom: 25px;
  font-size: 0.9rem;
}

.service-link {
  color: var(--primary-dark);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  font-size: 0.9rem;
}

.service-link i {
  margin-left: 8px;
  transition: var(--transition);
  font-size: 0.8rem;
}

.service-link:hover i {
  margin-left: 12px;
}

/* --- About Section --- */
.about-content {
  display: flex;
  flex-wrap: wrap;
  gap: 60px;
  align-items: center;
}

.about-text {
  flex: 1;
  min-width: 300px;
}

.about-text h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  background: var(--gradient-primary);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Tighten paragraph spacing in the about block so buttons sit closer to content */
.about-text p {
  margin-bottom: 8px;
}

.about-text .btn {
  margin-top: 0; /* ensure no extra gap above the button */
}

.about-image {
  flex: 1;
  min-width: 300px;
  position: relative;
}

.about-image img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

.about-image::after {
  content: "";
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 200px;
  height: 200px;
  background: var(--gradient-primary);
  border-radius: 20px;
  z-index: -1;
  opacity: 0.2;
}

/* --- Contact Form --- */
.contact-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
}

.contact-info {
  flex: 1;
  min-width: 300px;
}

.contact-item {
  display: flex;
  margin-bottom: 35px;
  padding: 20px;
  background: var(--white);
  border-radius: 15px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.contact-item a {
  display: flex;
  align-items: center;
  gap: 18px;
  color: inherit;
  text-decoration: none;
}

.contact-item a .contact-icon {
  flex-shrink: 0;
}

.contact-item:hover {
  transform: translateX(10px);
  box-shadow: var(--shadow-lg);
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  color: var(--white);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  font-size: 1.2rem;
  box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
}

.contact-form-container {
  flex: 1.2;
  min-width: 260px;
  background: var(--white);
  padding: 28px; /* reduced padding to make form more compact */
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.02);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: var(--dark-color);
  font-size: 0.85rem; /* smaller label font */
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 12px; /* smaller internal padding */
  border: 1px solid #eee;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.88rem; /* slightly smaller text */
  transition: var(--transition);
  background: #fcfcfc;
}

/* Make contact form button smaller and match compact form */
.contact-form .btn {
  padding: 10px 14px;
  font-size: 0.92rem;
  border-radius: 10px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary-color);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(46, 204, 113, 0.1);
  outline: none;
}

/* --- Modern Footer --- */
footer {
  background: var(--gradient-dark);
  color: var(--white);
  padding: 80px 0 30px;
  font-size: 0.9rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 50px;
  margin-bottom: 60px;
}

.footer-col h3 {
  font-size: 1.2rem;
  margin-bottom: 25px;
  color: var(--white);
  position: relative;
  padding-bottom: 10px;
}

.footer-logo {
  height: 60px;
  width: auto;
  margin-bottom: 20px;
  display: block;
}

.footer-col h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--primary-color);
}

.footer-col p {
  color: #a0aab5;
  line-height: 1.8;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #a0aab5;
  text-decoration: none;
  transition: var(--transition);
  display: inline-block;
}

.footer-links a:hover {
  color: var(--primary-color);
  transform: translateX(5px);
}

.footer-links i {
  margin-right: 10px;
  color: var(--primary-color);
  width: 20px;
  text-align: center;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
  border-radius: 10px;
  text-decoration: none;
  transition: var(--transition);
  backdrop-filter: blur(5px);
}

.social-links a:hover {
  background: var(--gradient-primary);
  transform: translateY(-3px);
}

.social-links {
  display: flex;
  align-items: center;
  gap: 12px; /* even spacing between icons */
  margin-top: 18px;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: #7f8c8d;
  font-size: 0.85rem;
}

/* --- Animations --- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 20px 0;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
  }

  .nav-links.active {
    display: flex;
    animation: fadeUp 0.3s ease-out forwards;
  }

  .nav-links li {
    margin: 15px 0;
    text-align: center;
  }

  .hamburger {
    display: block;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .section {
    padding: 60px 0;
  }

  /* Hide quick links column on small screens for a cleaner footer */
  .footer-content .footer-col:nth-child(2) {
    display: none;
  }

  /* Adjust footer grid to 2 columns when quick links hidden */
  .footer-content {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
  }

  .about-content {
    flex-direction: column;
  }

  .about-image::after {
    display: none;
  }
}
