:root {
  /* Brand Colors - Nature Inspired */
  --primary-color: #2e7d32; /* Forest Green */
  --primary-dark: #1b5e20; /* Deep Canopy */
  --primary-light: #4caf50; /* Fresh Sprout */
  --accent-color: #fdd835; /* Sun Yellow */
  --accent-hover: #fbc02d;

  /* Text Colors */
  --text-main: #1d1d1d;
  --text-muted: #616161;
  --text-light: #f5f5f5;

  /* Background Colors */
  --bg-body: #f1f8e9; /* Very light green hint */
  --bg-surface: #ffffff;
  --bg-secondary: #e8f5e9;

  /* UI Elements */
  --nav-bg: rgba(255, 255, 255, 0.85);
  --border-color: #e0e0e0;
  --card-shadow: 0 4px 20px rgba(46, 125, 50, 0.08);
  --card-hover-shadow: 0 12px 30px rgba(46, 125, 50, 0.15);
  --glass-border: 1px solid rgba(255, 255, 255, 0.3);

  /* Layout */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --container-width: 1200px;
  --header-height: 80px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.dark-mode {
  --primary-color: #66bb6a; /* Lighter Green for Dark Mode */
  --primary-dark: #388e3c;
  --primary-light: #81c784;

  --text-main: #e0e0e0;
  --text-muted: #b0bec5;
  --text-light: #ffffff;

  --bg-body: #0d1610; /* Deep Forest Night */
  --bg-surface: #1e2b23; /* Dark mossy green/grey */
  --bg-secondary: #16201b;

  --nav-bg: rgba(13, 22, 16, 0.95);
  --border-color: #2c3e30;
  --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  --card-hover-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  --glass-border: 1px solid rgba(255, 255, 255, 0.05);
}

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

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

body {
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    sans-serif;
  color: var(--text-main);
  background-color: var(--bg-body);
  line-height: 1.6;
  transition:
    background-color var(--transition-normal),
    color var(--transition-normal);
  overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.2;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1rem;
}

h1 {
  font-size: 3.5rem;
  letter-spacing: -0.02em;
}
h2 {
  font-size: 2.5rem;
  letter-spacing: -0.01em;
}
h3 {
  font-size: 1.75rem;
}
h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Utility Classes */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section-padding {
  padding: 5rem 0;
}
.text-center {
  text-align: center;
}
.bg-light {
  background-color: var(--bg-secondary);
}
.full-width {
  width: 100%;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-normal);
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--primary-light),
    var(--primary-dark)
  );
  color: #fff;
  box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(46, 125, 50, 0.4);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-secondary:hover {
  background: var(--primary-color);
  color: #fff;
}

.btn-text {
  color: var(--primary-color);
  font-weight: 600;
}

/* Header & Navbar */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition-normal);
  padding: 1rem 0;
  background: transparent;
}

header.scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.5rem 0;
  box-shadow: var(--card-shadow);
  border-bottom: var(--glass-border);
}

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

header nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-color);
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo span {
  color: var(--text-main);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-weight: 500;
  font-size: 1rem;
  color: var(--text-muted);
}

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

.nav-container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Mobile Menu */
.hamburger {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-main);
}

/* Theme Toggle */
.theme-toggle {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-main);
  transition: var(--transition-normal);
  font-size: 1.1rem;
}

.theme-toggle:hover {
  background: var(--primary-light);
  color: #fff;
  transform: rotate(15deg);
}

.theme-toggle .fa-sun {
  display: none;
}
body.dark-mode .theme-toggle .fa-moon {
  display: none;
}
body.dark-mode .theme-toggle .fa-sun {
  display: block;
}

/* Hero Section */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  /* Layered background: gentle gradient overlay above the hero image */
  background-size: cover, cover;
  background-position:
    center center,
    center center;
  background-repeat: no-repeat, no-repeat;
  background-blend-mode: overlay;
  overflow: hidden;
}

/* Dark mode: slightly darker overlay for better contrast */
body.dark-mode #hero {
  background-blend-mode: multiply;
}

#hero::before {
  content: "";
  position: absolute;
  top: -10%;
  right: -10%;
  width: 60%;
  height: 80%;
  background: linear-gradient(
    135deg,
    var(--primary-light),
    var(--primary-color)
  );
  opacity: 0.1;
  filter: blur(80px);
  border-radius: 50%;
  z-index: -1;
}

.hero-content {
  max-width: 1000px;
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  background: linear-gradient(
    135deg,
    var(--primary-dark) 0%,
    var(--primary-light) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
}

body.dark-mode .hero-content h1 {
  background: linear-gradient(
    135deg,
    var(--primary-light) 0%,
    var(--text-light) 100%
  );
  -webkit-background-clip: text;
}

.hero-content p {
  font-size: 1.25rem;
  margin: 0 auto 2.5rem;
  max-width: 600px;
  color: var(--text-muted);
  text-align: center;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* Section Title */
.section-title {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
}

.section-title h2 {
  font-size: 2.5rem;
  display: inline-block;
  position: relative;
}

.title-underline {
  width: 80px;
  height: 4px;
  background: var(--primary-color);
  margin: 1rem auto 0;
  border-radius: 2px;
  position: relative;
}

.title-underline::before,
.title-underline::after {
  content: "";
  position: absolute;
  background: var(--primary-light);
  height: 4px;
  border-radius: 2px;
  top: 0;
}

.title-underline::before {
  width: 12px;
  left: -20px;
  opacity: 0.6;
}
.title-underline::after {
  width: 12px;
  right: -20px;
  opacity: 0.6;
}
.underline-white {
  background: #fff;
}

/* About Section Cards */
.mission-vision-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.card {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  box-shadow: var(--card-shadow);
  transition: var(--transition-normal);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-hover-shadow);
  border-color: var(--primary-light);
}

.card-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--bg-surface);
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--card-shadow);
  text-align: center;
  transition: var(--transition-normal);
  position: relative;
}

.service-card:hover {
  transform: translateY(-8px);
  background: linear-gradient(
    to bottom,
    var(--bg-surface),
    var(--bg-secondary)
  );
}

.service-card i {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--bg-body);
  border-radius: 50%;
  display: inline-block;
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.product-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
}

.product-card:hover {
  transform: scale(1.02);
  box-shadow: var(--card-hover-shadow);
}

.product-icon {
  height: 200px;
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-body));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: var(--primary-light);
}

.product-info {
  padding: 2rem;
}
.product-info h3 {
  color: var(--primary-dark);
}

body.dark-mode .product-info h3 {
  color: var(--primary-light);
}

/* Features Section (Why Choose Us) - Green Block */
#why-choose-us {
  background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%);
  color: #fff;
  position: relative;
}

#why-choose-us .section-title h2 {
  color: #fff;
}
#why-choose-us .title-underline {
  background: #fff;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-box {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  transition: var(--transition-normal);
}

.feature-box:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
}

.feature-box i {
  font-size: 2.5rem;
  color: #a5d6a7;
  margin-bottom: 1rem;
}

.feature-box h4 {
  color: #fff;
  margin-bottom: 0.5rem;
}
.feature-box p {
  color: #e8f5e9;
}

/* Contact Section */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.contact-info {
  background: var(--bg-secondary);
  padding: 3rem;
  border-radius: var(--radius-lg);
}

.contact-info .info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  gap: 1.5rem;
}

.contact-info .info-item i {
  width: 50px;
  height: 50px;
  background: var(--bg-surface);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  box-shadow: var(--card-shadow);
  flex-shrink: 0;
  margin-top: 5px; /* Visual alignment with H4 */
}

.contact-form {
  background: var(--bg-surface);
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-main);
  transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

/* Footer */
footer {
  background: #0d1610;
  color: #fff;
  padding-top: 5rem;
  border-top: 5px solid var(--primary-color);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h3 {
  font-size: 1.8rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-col h3 span {
  color: var(--primary-light);
}

.footer-col h4 {
  color: #fff;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

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

.footer-col ul li {
  margin-bottom: 0.8rem;
}
.footer-col ul li a {
  color: #b0bec5;
}
.footer-col ul li a:hover {
  color: var(--primary-light);
  padding-left: 5px;
}

.social-links {
  display: flex;
  gap: 1rem;
}
.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  color: #fff;
}

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

.footer-bottom {
  text-align: center;
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #78909c;

  .copyright {
    margin: 0;
  }
}

/* Career Page Enhancements */
.job-card {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--card-shadow);
  border-left: 6px solid var(--primary-light);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.job-card:hover {
  transform: translateX(5px);
  box-shadow: var(--card-hover-shadow);
}

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 1rem;
}

.job-header h3 {
  margin-bottom: 0;
  font-size: 1.8rem;
  color: var(--text-main);
  background: none;
  -webkit-text-fill-color: initial;
}

.job-meta {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  text-align: leftt;
}

.job-body p {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0;
}

.job-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
  margin-top: 0.5rem;
}

.job-actions .btn {
  padding: 0.6rem 2rem;
  font-size: 0.95rem;
  min-width: 120px;
}

/* Secondary button (Details) styling to match image */
.job-actions .btn-secondary {
  border: 1px solid var(--primary-light);
  color: var(--primary-light);
  background: transparent;
}

.job-actions .btn-secondary:hover {
  background: rgba(76, 175, 80, 0.1);
  color: var(--primary-light);
}

/* Primary button (Apply) styling */
.job-actions .btn-primary {
  background: var(--primary-light);
  color: #fff;
  box-shadow: none;
}

.job-actions .btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

/* Dark Mode Specific adjustments */
body.dark-mode .job-card {
  background: #111e14; /* Darker card bg */
  border: 1px solid #1e2b23;
  border-left: 6px solid var(--primary-light);
}

body.dark-mode .job-header h3 {
  color: #e0e0e0;
}

body.dark-mode .job-meta {
  color: #a5d6a7; /* Light green text for meta */
}

body.dark-mode .job-body p {
  color: #b0bec5;
}

/* Modal Styling */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
}

.modal {
  background: var(--bg-surface);
  width: 90%;
  max-width: 700px;
  max-height: 85vh;
  border-radius: var(--radius-lg);
  box-shadow: var(--card-hover-shadow);
  display: flex;
  flex-direction: column;
  transform: translateY(20px);
  transition: var(--transition-normal);
  overflow: hidden;
}

.modal-overlay.open .modal {
  transform: translateY(0);
}

/* Show overlay when open */
.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-header {
  padding: 2rem;
  border-bottom: 1px solid var(--border-color);
  position: relative;
  background: var(--bg-secondary);
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: var(--text-muted);
  cursor: pointer;
}

.modal-body {
  padding: 2rem;
  overflow-y: auto;
  line-height: 1.7;
}

.modal-footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--border-color);
  background: var(--bg-secondary);
  display: flex;
  justify-content: flex-end;
}

.modal-actions {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-up {
  animation: fadeInUp 1s ease-out forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Responsive Adjustments */
@media (max-width: 992px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  h2 {
    font-size: 2rem;
  }

  .navbar .nav-links {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 100%;
    background: var(--bg-surface);
    display: flex;
    flex-direction: column;
    padding: 2rem;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
    transition: 0.3s ease;
  }

  .navbar .nav-links.active {
    right: 0;
  }

  .hamburger {
    display: block;
  }

  .hero-content {
    text-align: center;
    margin: 0 auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-col h3,
  .footer-col h4 {
    justify-content: center;
  }

  .footer-col h4::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .social-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {

  .hero-content h1 {
    font-size: 2.8rem;
  }
  .hero-content p {
      font-size: 1rem;
    }
  .contact-info {
    padding: 0.5rem;
  }

  .contact-form {
    padding: 1rem;
  }
}
