:root {
  --primary: #2d6a4f;
  --primary-dark: #1b4332;
  --primary-light: #40916c;
  --secondary: #52b788;
  --accent: #95d5b2;
  --light: #f0f7f4;
  --dark: #081c15;
  --text: #333;
  --text-light: #666;
  --white: #fff;
  --shadow: 0 4px 20px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
  --radius: 12px;
  --transition: all 0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

a { text-decoration: none; color: var(--primary); transition: var(--transition); }
a:hover { color: var(--primary-light); }

/* Top Bar */
.top-bar {
  background: var(--dark);
  color: var(--white);
  padding: 8px 0;
  font-size: 13px;
}
.top-bar a { color: var(--accent); }
.top-bar .social-icons a {
  color: var(--white);
  margin-left: 12px;
  font-size: 15px;
}
.top-bar .social-icons a:hover { color: var(--secondary); }

/* Navbar */
.navbar {
  background: var(--white);
  box-shadow: 0 2px 15px rgba(0,0,0,0.08);
  padding: 12px 0;
  transition: var(--transition);
}
.navbar .navbar-brand img { height: 55px; }
.navbar .nav-link {
  color: var(--dark);
  font-weight: 500;
  padding: 8px 16px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.navbar .nav-link:hover,
.navbar .nav-link.active { color: var(--primary); }
.navbar .nav-link.active { border-bottom: 2px solid var(--primary); }

/* Hero Slider */
.hero-slider { position: relative; overflow: hidden; }
.hero-slider .carousel-item { height: 85vh; min-height: 500px; }
.hero-slider .carousel-item img { object-fit: cover; object-position: top; height: 100%; }
.hero-slider .carousel-item::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(8,28,21,0.85) 0%, rgba(27,67,50,0.7) 50%, rgba(0,0,0,0.3) 100%);
}
.hero-slider .carousel-caption {
  bottom: 50%;
  transform: translateY(50%);
  text-align: left;
  max-width: 800px;
  z-index: 2;
}
.hero-slider .carousel-caption h1 {
  font-size: 3.2rem;
  font-weight: 800;
  margin-bottom: 15px;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}
.hero-slider .carousel-caption p {
  font-size: 1.2rem;
  opacity: 0.95;
  margin-bottom: 25px;
}
.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next {
  width: 50px; height: 50px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  margin: 0 20px;
  backdrop-filter: blur(5px);
}

/* Section Styles */
.section-padding { padding: 90px 0; }
.section-bg-light { background: var(--light); }
.section-bg-dark { background: var(--dark); color: var(--white); }
.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--dark);
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-light);
  margin-bottom: 50px;
}
.section-bg-dark .section-title { color: var(--white); }
.section-bg-dark .section-subtitle { color: var(--accent); }

/* Buttons */
.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  padding: 12px 30px;
  font-weight: 600;
  border-radius: 50px;
  transition: var(--transition);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(45,106,79,0.4);
}
.btn-outline-light:hover {
  transform: translateY(-2px);
}
.btn-success {
  background: var(--primary);
  border-color: var(--primary);
  border-radius: 50px;
  padding: 10px 28px;
  font-weight: 600;
}
.btn-success:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

/* Cards */
.card {
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  overflow: hidden;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.card-img-top { height: 220px; object-fit: cover; }

/* Team Cards */
.team-card {
  text-align: center;
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 20px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.team-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.team-card img {
  width: 150px; height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 18px;
  border: 4px solid var(--accent);
  transition: var(--transition);
}
.team-card:hover img { border-color: var(--primary); }
.team-card h5 { font-weight: 700; margin-bottom: 5px; color: var(--dark); }
.team-card .position {
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 12px;
}
.team-card p { font-size: 14px; color: var(--text-light); }

/* About Section */
.about-section .about-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-section .about-image img { width: 100%; height: 100%; object-fit: cover; }

/* Values */
.value-item {
  text-align: center;
  padding: 30px 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
}
.value-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.value-item .icon {
  width: 65px; height: 65px;
  line-height: 65px;
  background: var(--light);
  border-radius: 50%;
  margin: 0 auto 15px;
  font-size: 26px;
  color: var(--primary);
}
.value-item h5 { font-weight: 700; color: var(--dark); }
.value-item p { font-size: 14px; color: var(--text-light); }

/* Gallery */
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  margin-bottom: 25px;
  aspect-ratio: 4 / 3;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: var(--transition);
}
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item .overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(8,28,21,0.85));
  color: var(--white);
  padding: 20px;
  transform: translateY(100%);
  transition: var(--transition);
}
.gallery-item:hover .overlay { transform: translateY(0); }

/* Lightbox */
.lightbox-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.92);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}
.lightbox-overlay .lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 36px;
  cursor: pointer;
  z-index: 10;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: none;
  transition: background 0.3s;
}
.lightbox-overlay .lightbox-close:hover { background: rgba(255,255,255,0.2); }
.lightbox-overlay .lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  z-index: 10;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: none;
  transition: background 0.3s;
}
.lightbox-overlay .lightbox-nav:hover { background: rgba(255,255,255,0.25); }
.lightbox-overlay .lightbox-nav.prev { left: 20px; }
.lightbox-overlay .lightbox-nav.next { right: 20px; }
.lightbox-overlay .lightbox-counter {
  position: absolute;
  top: 20px;
  left: 30px;
  color: rgba(255,255,255,0.7);
  font-size: 16px;
  z-index: 10;
  font-weight: 500;
}
.lightbox-overlay .lightbox-image-container {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-overlay .lightbox-image-container img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox-overlay .lightbox-caption {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.8);
  font-size: 15px;
  text-align: center;
  max-width: 80%;
}

/* Contact Form */
.contact-form .form-control {
  border-radius: 8px;
  padding: 14px 18px;
  border: 2px solid #e0e0e0;
  transition: var(--transition);
}
.contact-form .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(45,106,79,0.15);
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 25px;
}
.contact-info-item .icon {
  width: 50px; height: 50px;
  line-height: 50px;
  text-align: center;
  background: var(--light);
  border-radius: 50%;
  color: var(--primary);
  font-size: 20px;
  margin-right: 15px;
  flex-shrink: 0;
}
.contact-info-item h6 { font-weight: 700; margin-bottom: 3px; }
.contact-info-item p { color: var(--text-light); margin-bottom: 0; }

/* Footer */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.85);
  padding: 60px 0 0;
}
.footer h5 {
  color: var(--white);
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}
.footer h5::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 40px; height: 3px;
  background: var(--secondary);
}
.footer a { color: rgba(255,255,255,0.7); }
.footer a:hover { color: var(--secondary); }
.footer .social-links a {
  display: inline-block;
  width: 40px; height: 40px;
  line-height: 40px;
  text-align: center;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  margin-right: 8px;
  color: var(--white);
  transition: var(--transition);
}
.footer .social-links a:hover { background: var(--primary); transform: translateY(-3px); }
.footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  margin-top: 40px;
  text-align: center;
  font-size: 14px;
}

/* Stats Counter */
.stats-section {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
  padding: 60px 0;
}
.stat-item { text-align: center; }
.stat-item .number {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 5px;
}
.stat-item .label { font-size: 1rem; opacity: 0.9; }

/* Project Proposal Page */
.proposal-section { padding: 60px 0; }
.proposal-section h3 {
  color: var(--primary);
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 15px;
}
.proposal-section .budget-table th {
  background: var(--primary);
  color: var(--white);
}
.proposal-section .budget-table td,
.proposal-section .budget-table th { padding: 12px; }
.budget-table { width: 100%; }
.budget-table th { background: var(--primary); color: var(--white); }
.budget-table td, .budget-table th { padding: 12px; }

/* Jobs Page */
.job-card {
  border: 1px solid #e8e8e8;
  border-radius: var(--radius);
  padding: 25px;
  margin-bottom: 20px;
  transition: var(--transition);
  background: var(--white);
}
.job-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}
.job-card h4 { color: var(--dark); font-weight: 700; }
.job-card .meta { color: var(--text-light); font-size: 14px; margin-bottom: 12px; }
.job-card .meta i { margin-right: 5px; color: var(--primary); }

/* Page Header */
.page-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
  padding: 80px 0 50px;
  text-align: center;
}
.page-header h1 { font-size: 2.8rem; font-weight: 800; }
.page-header p { font-size: 1.1rem; opacity: 0.9; }

/* Responsive */
@media (max-width: 991px) {
  .hero-slider .carousel-item { height: 60vh; }
  .hero-slider .carousel-caption h1 { font-size: 2.2rem; }
  .section-title { font-size: 1.8rem; }
}

@media (max-width: 767px) {
  .hero-slider .carousel-item { height: 50vh; min-height: 350px; }
  .hero-slider .carousel-caption h1 { font-size: 1.6rem; }
  .hero-slider .carousel-caption p { font-size: 0.95rem; }
  .section-padding { padding: 50px 0; }
  .page-header { padding: 60px 0 35px; }
  .page-header h1 { font-size: 2rem; }
}

/* Captcha styles */
.g-recaptcha { margin-bottom: 15px; }

/* Page content styles */
.page-content { overflow-x: auto; }
.page-content h2 { color: var(--primary); font-weight: 700; margin-top: 30px; margin-bottom: 15px; }
.page-content h3 { color: var(--primary-dark); font-weight: 600; margin-top: 25px; margin-bottom: 12px; }
.page-content ul { padding-left: 20px; }
.page-content ul li { margin-bottom: 8px; }
.page-content table { width: 100%; max-width: 100%; }
.page-content .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.page-content .table-responsive table { margin-bottom: 0; }

/* Apply modal */
.modal-content { border-radius: var(--radius); border: none; }
.modal-header { background: var(--primary); color: var(--white); border-radius: var(--radius) var(--radius) 0 0; }
.modal-header .btn-close { filter: invert(1); }

/* Toast notification */
.toast-container { position: fixed; top: 20px; right: 20px; z-index: 9999; }

/* Preloader */
#preloader {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--white);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
}
#preloader .spinner-border { width: 3rem; height: 3rem; color: var(--primary); }

/* Scroll to top */
#scrollTop {
  position: fixed;
  bottom: 30px; right: 30px;
  width: 45px; height: 45px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: none;
  z-index: 999;
  transition: var(--transition);
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}
#scrollTop:hover { background: var(--primary-dark); transform: translateY(-3px); }