:root {
  --primary-green: #2e7d32;
  --secondary-green: #4caf50;
  --accent-yellow: #ffc107;
  --dark-green: #1b5e20;
  --pure-white: #ffffff;
  --light-gray: #f8f9fa;
  --dark-gray: #343a40;
  --text-dark: #212529;
}

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

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

/* Navigation Styles */
.navbar {
  background: rgba(46, 125, 50, 0.95) !important;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  padding: 1rem 0;
  height: 80px; /* Fixed height for consistent spacing */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--pure-white) !important;
  letter-spacing: 1px;
}

.navbar-nav .nav-link {
  color: var(--pure-white) !important;
  font-weight: 500;
  margin: 0 0.5rem;
  transition: all 0.3s ease;
  position: relative;
}

.navbar-nav .nav-link:hover {
  color: var(--accent-yellow) !important;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-yellow);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}
/* Add background to mobile navbar dropdown */
/* Ensure mobile navbar dropdown is visible and scrollable */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(46, 125, 50, 0.97); /* Your green, nearly opaque */
    position: fixed;
    top: 72px; /* Adjust to your navbar height */
    left: 0;
    right: 0;
    width: 100vw;
    z-index: 1050; /* Above most content */
    max-height: calc(100vh - 72px); /* Prevent overflow */
    overflow-y: auto;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    padding-bottom: 2rem;
    transition: background 0.3s;
  }
  .navbar-toggler {
    z-index: 1100;
  }
  body {
    overflow-x: hidden;
  }
}
.navbar-nav .nav-link:hover::after {
  width: 100%;
}
.navbar-brand svg { height: 40px; width: 40px; }
/* Hero Sections */
.hero-section {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 80px; /* Account for fixed navbar */
}

.hero-main {
  background: linear-gradient(135deg, rgba(46, 125, 50, 0.8), rgba(27, 94, 32, 0.9)), 
              url('../images/background1.jpg 2025-06-17\ 193246.png') center/cover no-repeat;
}

.hero-welcome {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(255, 193, 7, 0.1)), 
              var(--light-gray);
}

.hero-services {
  background: var(--light-gray);
}

.hero-technology {
  background: linear-gradient(135deg, rgba(46, 125, 50, 0.95), rgba(27, 94, 32, 0.9)), 
              url('../images/IMG-20250625-WA0033.jpg') center/cover no-repeat;
}

.hero-contact {
  background: linear-gradient(135deg, rgba(46, 125, 50, 0.9), rgba(27, 94, 32, 0.95)), 
              url('../images/BSFegg.jpg') center/cover no-repeat;
  padding-bottom: 80px; /* Prevent footer overlap */
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--pure-white);
  animation: fadeInUp 1s ease-out;
}

.hero-main .hero-content,
.hero-technology .hero-content,
.hero-contact .hero-content {
  color: var(--pure-white);
}

.hero-welcome .hero-content {
  color: var(--text-dark);
}

.hero-badge {
  display: inline-block;
}

.badge-text {
  background: var(--accent-yellow);
  color: var(--text-dark);
  padding: 0.5rem 1.5rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: bold;
  line-height: 1.2;
  margin: 1rem 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-description {
  font-size: 1.2rem;
  line-height: 1.8;
  margin: 1.5rem 0;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-primary {
  background: var(--primary-green);
  border: none;
  border-radius: 50px;
  padding: 1rem 1.5rem;
  transition: all 0.3s ease;
}
.discover-btn {
  margin-bottom: 5rem; /* Adjust as needed */
}
.btn-primary:hover {
  background: var(--dark-green);
  transform: translateY(-2px);
}

.btn-outline-light {
  border: 2px solid var(--pure-white);
  border-radius: 50px;
  padding: 1rem 2rem;
  transition: all 0.3s ease;
}

.btn-outline-light:hover {
  background: var(--pure-white);
  color: var(--primary-green) !important;
  transform: translateY(-2px);
}

.btn-warning {
  background: var(--accent-yellow);
  border: none;
  color: var(--text-dark);
  border-radius: 50px;
  padding: 1rem 2rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-warning:hover {
  background: #ffb300;
  transform: translateY(-2px);
}

/* Hero Image Styles */
.hero-image-container img {
  border-radius: 15px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.hero-image-container img:hover {
  transform: scale(1.05);
}

/* Services Section */
.section-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--primary-green);
  margin-bottom: 1rem;
}

.title-underline {
  width: 100px;
  height: 4px;
  background: var(--accent-yellow);
  margin: 0 auto 3rem;
}

.service-card {
  background: var(--pure-white);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: all 0.3s ease;
  height: 100%;
  animation: fadeInUp 0.8s ease-out;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-icon {
  background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--pure-white);
  font-size: 2rem;
}

.service-card h4 {
  color: var(--primary-green);
  font-weight: bold;
  margin-bottom: 1rem;
}

.service-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-top: 1rem;
}

/* Technology Section */
.tech-image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  height: 500px;
}

.tech-image {
  border-radius: 15px;
  object-fit: cover;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  width: 100%;
}

.tech-image-1 {
  grid-row: 1 / 3;
  height: 100%;
}

.tech-image-2 {
  height: 100%;
}

.tech-image:hover {
  transform: scale(1.05);
}

.feature-list {
  margin: 2rem 0;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2rem;
  gap: 1rem;
}

.feature-item i {
  background: var(--accent-yellow);
  color: var(--text-dark);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.feature-item h5 {
  color: var(--pure-white);
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.feature-item p {
  opacity: 0.9;
  line-height: 1.6;
}

/* Contact Section */
.contact-info {
  margin-top: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  gap: 1rem;
}

.contact-item i {
  background: var(--accent-yellow);
  color: var(--text-dark);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.contact-form-container {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-bg-image {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1;
  border-radius: 1.2rem;
}

.contact-form-overlay {
  position: relative;
  z-index: 2;
  background: rgba(34, 70, 34, 0.85); /* deep green, semi-transparent */
  padding: 2.5rem 2rem 2rem 2rem;
  border-radius: 1.2rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
  max-width: 480px;
  margin: 0 auto;
}

.contact-form .form-control {
  border-radius: 0.7rem;
  border: 1.5px solid #bdbdbd;
  font-size: 1.15rem;
  padding: 1.1rem 1.2rem;
  margin-bottom: 0.7rem;
  background: rgba(255,255,255,0.08);
  color: #fff;
  box-shadow: none;
  transition: border-color 0.2s, background 0.2s;
}

.contact-form .form-control:focus {
  border-color: #ffd600;
  background: rgba(255,255,255,0.18);
  color: #fff;
  box-shadow: 0 0 0 2px rgba(255,214,0,0.08);
}

.contact-form .form-control::placeholder {
  color: #e0e0e0;
  opacity: 1;
}

.contact-form .btn {
  border-radius: 0.7rem;
  font-size: 1.15rem;
  font-weight: 600;
  padding: 1rem 0;
  margin-top: 0.5rem;
}

/* Contact Form Responsive Styles */
@media (max-width: 991.98px) {
  .contact-form-container {
    padding: 1.5rem 0 0 0;
    min-height: 400px;
  }
  .contact-form-overlay {
    padding: 2rem 1rem 1rem 1rem;
    border-radius: 1.2rem;
    background: rgba(34,70,34,0.92);
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    max-width: 100%;
    margin: 0 auto;
  }
  .contact-bg-image {
    display: none;
  }
}

@media (max-width: 575.98px) {
  .contact-form-overlay {
    padding: 1.2rem 0.5rem 0.5rem 0.5rem;
    border-radius: 0.8rem;
  }
  .contact-form .form-control {
    font-size: 1rem;
    padding: 0.7rem 0.9rem;
  }
  .contact-form .btn {
    font-size: 1.1rem;
    padding: 0.7rem 0;
  }
}
/* Make modal header sticky so close button is always visible */
.modal-content {
  position: relative;
}

.modal-header {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(34,34,34,0.95); /* matches modal bg, adjust as needed */
  border-bottom: 1px solid #222;
}

/* Ensure modal body scrolls if content is too tall */
.modal-body {
  max-height: 70vh;
  overflow-y: auto;
}

/* Footer */
.footer {
  background: var(--dark-green);
  color: var(--pure-white);
  padding: 3rem 0 1rem;
  margin-top: 0;
}

.social-links a {
  color: var(--pure-white);
  font-size: 1.5rem;
  margin: 0 0.5rem;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: var(--accent-yellow);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .hero-section {
    padding-top: 100px; /* Extra padding on mobile for navbar */
  }
  
  .tech-image-grid {
    grid-template-columns: 1fr;
    height: auto;
  }
  
  .tech-image-1 {
    grid-row: auto;
    height: 250px;
  }
  
  .tech-image-2 {
    height: 250px;
  }
  
  .service-card {
    margin-bottom: 2rem;
  }
  
  .contact-form-container {
    height: 400px;
    margin-top: 2rem;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
  }
  
  .btn-outline-light,
  .btn-warning {
    width: 100%;
    text-align: center;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Additional animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}