/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

:root {
  --primary-color: #1a1d21;
  --secondary-color: #25292e;
  --accent-color: #3aaf45;
  --text-color: #f0f4f8;
  --dark-overlay: rgba(0, 0, 0, 0.7);
}

body {
  background-color: var(--primary-color);
  color: var(--text-color);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation Bar */

.navbar {
  position: fixed;
  width: 100%;
  padding: 1.5rem 0;
  background: rgba(26, 29, 33, 0.079); /* Dark color with opacity */
  backdrop-filter: blur(10px); /* Glassmorphism effect */
  z-index: 1000;
  transition: transform 0.3s ease, background 0.3s ease, padding 0.3s ease;
}

.site-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-color);
  margin-left: 0.5rem;
  display: block;
}

/* Navbar hidden on scroll down */
.navbar.hidden {
  transform: translateY(-100%);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

.logo-img {
  height: 50px;
  width: auto;
}

.logo span {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-color);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
/* General Navigation Link Styling */
.nav-links a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  font-size: 1.2rem;
}

/* Hover and Active Effect for All Links Except Contact */
.nav-links a:not(.cta-nav):hover,
.nav-links a:not(.cta-nav).active {
  color: var(--accent-color);
}

/* Prevent Contact Button from Changing Color */
.cta-nav {
  color: var(--text-color) !important;
  background: var(--accent-color);
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  transition: background 0.3s ease;
}

/* Keep the Contact Button the Same on Hover */
.cta-nav:hover,
.cta-nav.active {
  background: var(--accent-color) !important;
  color: var(--text-color) !important;
}
/* Mobile Menu */
.mobile-menu {
  display: none;
  cursor: pointer;
  z-index: 1001;
}

.bar {
  width: 25px;
  height: 3px;
  background: var(--text-color);
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  background: linear-gradient(var(--dark-overlay), var(--dark-overlay)),
    url("../images/hero-3.jpg") center/cover;
  display: flex;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: 1.3rem;
  margin-top: 1rem;
  opacity: 0.8;
}

/* Services Section */
.services {
  position: relative;
  padding: 8rem 0;
  background: linear-gradient(rgba(26, 29, 33, 0.9), rgba(26, 29, 33, 0.9)),
    url("../images/section.jpg") center/cover fixed;
}

.services-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    rgba(26, 29, 33, 0.95) 0%,
    rgba(58, 175, 69, 0.1) 100%
  );
  z-index: 0;
}

.services .container {
  position: relative;
  z-index: 1;
  text-align: center;
}

.section-header h2 {
  font-size: 2.8rem;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: "";
  width: 60px;
  height: 3px;
  background: var(--accent-color);
  display: block;
  margin: 10px auto;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
  margin-top: 4rem;
}

/* Service Cards */
.service-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.service-image {
  height: 200px;
  background-size: cover;
  background-position: center;
}

.service-content {
  padding: 1.5rem;
  text-align: center;
}

.service-content h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.service-content p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

/* CTA Button */
.cta-btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background: var(--accent-color);
  color: var(--text-color);
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(58, 175, 69, 0.3);
}

/* Footer */
.footer {
  position: relative;
  padding: 5rem 0;
  background: linear-gradient(rgba(26, 29, 33, 0.9), rgba(26, 29, 33, 0.9)),
    url("../images/section-2.jpg") center/cover fixed;
  color: var(--text-color);
}

/* Dark overlay to improve text readability */
.footer-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    rgba(26, 29, 33, 0.95) 0%,
    rgba(58, 175, 69, 0.1) 100%
  );
  z-index: 0;
}

.footer .container {
  position: relative;
  z-index: 1;
}

/* Footer Content Layout */
.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  text-align: left;
  align-items: start;
}

/* Logo & About */
.footer-about {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-logo img {
  height: 60px;
  width: auto;
}

.footer-about h4 {
  font-size: 1.4rem;
  font-weight: 700;
}

.footer-about p {
  font-size: 1rem;
  opacity: 0.8;
  max-width: 300px;
}

/* Footer Sections */
.footer-links ul,
.footer-services ul,
.footer-contact ul {
  list-style: none;
  padding: 0;
}

.footer-links h4,
.footer-services h4,
.footer-contact h4 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  position: relative;
}

/* Footer Links Styling */
.footer-links ul li,
.footer-services ul li,
.footer-contact ul li {
  margin-bottom: 0.6rem;
  font-size: 1rem;
  opacity: 0.8;
  transition: color 0.3s ease;
}

.footer-links a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

/* Contact Icons */
.footer-contact ul li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-contact i {
  color: var(--accent-color);
}

/* Footer Bottom */
.footer-bottom {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom p {
  font-size: 1rem;
  opacity: 0.8;
}

.footer-legal {
  margin-top: 1rem;
}

.footer-legal a {
  color: var(--text-color);
  text-decoration: none;
  margin: 0 15px;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.footer-legal a:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

/* Responsive Footer */
@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-logo {
    justify-content: center;
  }

  .footer-about p {
    max-width: 80%;
    margin: 0 auto;
  }

  .footer-links,
  .footer-services {
    display: none;
  }

  .footer-contact ul {
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 768px) {
  /* NAVIGATION */
  .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: -100%; /* Initially hidden */
    width: 75%;
    height: 100vh; /* Full screen height */
    background: var(--primary-color);
    text-align: center;
    padding: 6rem 0;
    transition: right 0.3s ease;
    z-index: 1000;
  }

  .nav-links.active {
    right: 0; /* Slide in from right */
  }

  .nav-links a {
    display: block;
    padding: 1.5rem 0;
    font-size: 1.2rem;
    font-weight: 600;
  }

  .logo span {
    font-size: 1.5rem;
  }

  /* Ensure the mobile menu icon is visible */
  .mobile-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    /* height: 24px; */
    cursor: pointer;
    position: absolute;
    right: 20px; /* Adjust position */
    top: 50%;
    transform: translateY(-50%);
    z-index: 1100;
  }

  .bar {
    width: 100%;
    height: 3px;
    background: var(--text-color);
    transition: all 0.3s ease;
  }

  /* TYPOGRAPHY */
  .hero h1 {
    font-size: 3rem; /* Adjusting for mobile */
  }
  .section-header h2 {
    font-size: 2rem; /* Adjusting for mobile */
  }
}
