/* ==========================================================================
   Base Reset & Global Styles
   ========================================================================== */
   html, body {
    width: 100vw;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    transition: background-color 0.3s, color 0.3s;
    background-color: #ffffff;
    color: #000000;
  }
  
   
  /* Global Link Styles */
  a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.2s ease;
  }
  
  a:hover {
    text-decoration: underline;
  }
  
  /* Smooth transition for all elements */
  * {
    transition: background-color 0.3s, color 0.3s;
  }
  
  /* ==========================================================================
     Dark Mode
     ========================================================================== */
  body.dark-mode {
    background-color: #121212;
    color: #ffffff;
  }
  
  body.dark-mode a {
    color: #80d4ff;
  }
  
  body.dark-mode a:hover {
    text-decoration: underline;
  }
  
  /* Dark Mode: Navbar & Buttons */
  body.dark-mode .navbar {
    background-color: rgba(0, 0, 0, 0.9);
  }
  body.dark-mode .navbar-brand,
  body.dark-mode .nav-link {
    color: #ffffff;
  }
  body.dark-mode .btn-outline-light {
    border-color: #ffffff;
    color: #ffffff;
  }
  body.dark-mode .btn-outline-light:hover {
    background-color: #ffffff;
    color: #121212;
  }
  
  /* Dark Mode: Footer */
  body.dark-mode footer {
    background-color: #1f1f1f;
    color: #e0e0e0;
  }
  body.dark-mode footer a {
    color: #f8f9fa;
    text-decoration: none;
  }
  body.dark-mode footer a:hover {
    color: #ffc107;
  }
  
  /* Dark Mode: Featured Items */
  body.dark-mode .featured-item {
    background-color: #1f1f1f;
    color: #ffffff;
    border: 1px solid #333;
  }
  body.dark-mode .featured-item .featured-icon {
    color: #80d4ff;
  }
  body.dark-mode .featured-item h5 {
    color: #ffffff;
  }
  body.dark-mode .featured-item p {
    color: #cccccc;
  }
  body.dark-mode .featured-item a {
    color: #80d4ff;
  }
  body.dark-mode .featured-item a:hover {
    color: #bb86fc;
  }
  
  /* Dark Mode: Unordered Lists */
  body.dark-mode .list-unstyled li a {
    color: #ffffff;
  }
  body.dark-mode .list-unstyled li a:hover {
    color: #80d4ff;
    /* font-weight: bold;  Consider using font-weight if needed */
  }
  body.dark-mode .list-unstyled li {
    margin-bottom: 10px;
  }
  
  /* ==========================================================================
     Navbar Styles
     ========================================================================== */
  .navbar {
    width: 100%;
    background-color: transparent;
    transition: background-color 0.3s ease-in-out, all 0.3s ease;
  }
  
  .navbar.scrolled,
  .fixed-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
  
  /* Toggle Navbar background on mobile collapse via JS */
  .navbar.bg-dark {
    background-color: rgba(0, 0, 0, 0.9) !important;
  }
  
  /* ==========================================================================
     Dark Mode Toggle Button
     ========================================================================== */
  #darkModeToggle {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
  }
  #darkModeToggle i {
    font-size: 1.5rem;
    color: inherit;
    transition: color 0.3s ease;
  }
  #darkModeToggle:hover i {
    color: #f39c12;
  }
  body.dark-mode #darkModeToggle i {
    color: #ffffff;
  }
  
  .hero-section-home, .hero-section, .contact-hero, .about-hero{
    background-size: 100vw;
    height: 80vh;
    background-repeat: no-repeat no-repeat center center;
    padding: 0;
    margin: 0;
    min-width: 100%;
    margin-top: -6rem;
    margin-left: -7.5rem;
    margin-right: -7rem;
    left: 0;
    padding: 0;
    overflow-x: hidden;
  }
  .contact-hero{
    height: 92vh;
    margin-right: -7.5rem;
  }
  .hero-section h1 {
    font-size: 2.5rem;
    font-weight: bold;
  }
  .hero-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
  }
  .hero-section .btn {
    margin: 5px;
  }
  
  .services-hero {
    margin-top: -3.5rem;
    min-width: 100%;
    overflow-x: hidden;
  }
  .services-hero::after {
    background-color: rgba(0, 0, 0, 0.8);
  }
  
  /* ==========================================================================
     Featured Section
     ========================================================================== */
  .featured-section {
    padding: 40px 20px;
  }
  .featured-item {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: transform 0.2s ease-in-out;
    margin-bottom: 20px;
  }
  .featured-item:hover {
    transform: translateY(-5px);
  }
  .featured-icon {
    font-size: 2rem;
    color: #007bff;
    margin-bottom: 10px;
  }
  
  /* ==========================================================================
     Footer Styles
     ========================================================================== */
  /* Generic Footer */
  footer {
    background-color: #f8f9fa;
    padding: 30px 0 0;
    text-align: center;
    transition: background-color 0.3s, color 0.3s;
  }
  
  footer p {
    font-size: 1rem;
    color: #6c757d;
    margin-bottom: 10px;
  }
  
  footer .footer-links {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
  }
  
  footer .footer-column {
    text-align: center;
  }
  
  footer .footer-column h3 {
    font-size: 1.2rem;
    font-weight: bold;
    color: #343a40;
    margin-bottom: 10px;
  }
  
  footer .footer-column a {
    display: block;
    color: #007bff;
    font-size: 0.9rem;
    text-decoration: none;
    margin-bottom: 5px;
    transition: color 0.2s ease;
  }
  
  footer .footer-column a:hover {
    color: #0056b3;
  }
  
  /* Footer Variants */
  footer.bg-light {
    background-color: #f8f9fa;
    color: #212529;
  }
  footer.bg-light a {
    color: #212529;
    text-decoration: none;
  }
  footer.bg-light a:hover {
    color: #007bff;
  }
  
  footer.bg-dark {
    background-color: #212529;
    color: #f8f9fa;
  }
  footer.bg-dark a,
  footer.bg-dark .list-unstyled a {
    color: #f8f9fa;
    text-decoration: none;
  }
  footer.bg-dark a:hover {
    color: #ffc107;
  }
  
  /* Additional Footer Link Overrides */
  footer a {
    text-decoration: none;
    color: #333;
  }
  footer a:hover {
    color: #007bff;
  }
  footer a.active {
    font-weight: bold;
    color: #007bff;
  }
  footer .list-unstyled {
    text-align: left;
    padding-left: 100px;
  }
  footer .col-lg-3 h5 {
    text-align: left;
    padding-left: 100px;
  }
  
  /* ==========================================================================
     Typography & Special Elements
     ========================================================================== */
  h2.services-hero-h2 {
    color: #000;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    -webkit-text-stroke: 1px #fff;
    font-size: 4rem;
    font-weight: bold;
    position: relative;
    padding-bottom: 5px;
    margin-bottom: 15px;
  }
  h2.services-hero-h2::after {
    content: '';
    display: block;
    width: 55vw;
    height: 2px;
    background-color: #fff;
    margin: 0 auto;
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
  }
  code {
    background-color: #000;
    color: #fff;
  }
  .thumbnail {
    width: 100%;
    height: 12rem;
    border-radius: 8px;
    object-fit: cover;
    display: block;
  }
  
  /* ==========================================================================
     HTMX Swapping Effect
     ========================================================================== */
  .htmx-swapping {
    opacity: 0;
    transition: opacity 1s ease-out;
  }
    
  .inner-hero-content {
    margin-left: 2rem;
    width: 80%;
  }
  /* Default nav link style */
.navbar .nav-link {
  color: #007bff;
  text-decoration: none;
  transition: color 0.2s ease;
}

/* Style for active link */
.navbar .nav-link.active {
  font-weight: bold;
  color: #007bff; /* Customize active color if needed */
}
.col-lg-8r {
  flex: 0 0 70%;
}
  /* ==========================================================================
     Responsive Styling
     ========================================================================== */
  @media (max-width: 768px) {
    .hero-section-home, .hero-section, .contact-hero, .about-hero{
      background-size: 100vw;
      background-repeat: no-repeat no-repeat center center;
      padding: 0;
      margin: 0;
      min-width: 100%;
      margin-top: -6.5rem;
      margin-left: -2.2rem;
      margin-right: -2.2rem;
      left: 0;
      padding: 0;
      overflow-x: hidden;
    }
    .hero-section h1 {
      font-size: 2rem;
    }
    .hero-section p {
      font-size: 1rem;
    }
    .featured-item {
      padding: 15px;
    }
    footer .list-unstyled {
      text-align: left;
      padding-left: 80px;
    }
    .thumbnail {
      height: 10rem;
    }
    .col-md-8r {
      flex: 0 0 60%;
    }
    h2.services-hero-h2::after {
      content: '';
      display: block;
      width: 65vw;
      height: 2px;
      background-color: #fff;
      margin: 0 auto;
      position: absolute;
      bottom: -5px;
      left: 50%;
      transform: translateX(-50%);
    }
    .services-hero-p{
      padding: auto 1rem;
      text-align: center;
      width: 95vw;
      font-weight: 600;
    }
  }
  
  @media (max-width: 576px) {
    .hero-section-home, .hero-section, .contact-hero, .about-hero{
      background-size: 100vw;
      background-repeat: no-repeat no-repeat center center;
      margin: 0;
      min-width: 100%;
      margin-top: -6.5rem;
      margin-left: -0.9rem;
      margin-right: -2rem;
      left: 0;
      overflow-x: hidden;
    }
    .hero-section h1 {
      font-size: 1.8rem;
    }
    .hero-section p {
      font-size: 0.9rem;
    }
    .contact-hero {
      padding: auto 6rem;
      margin-top: -3.5rem;
      height: 95vh;
    }
    .contact-hero > h2 {
      margin-top: 6rem;
    }
    .featured-item {
      padding: 6px;
    }
    footer .list-unstyled {
      text-align: left;
      padding-left: 80px;
    }
    .thumbnail {
      height: 10rem;
    }
    .col-sm-8r {
      flex: 0 110%;
      padding: 0;
      margin: 0;
    }

  }

  @media (max-width: 480px) {
    /* Hero Section Adjustments */
    .hero-section-home, .hero-section, .contact-hero, .about-hero{
      background-size: 100vw;
      background-repeat: no-repeat no-repeat center center;
      margin: 0;
      min-width: 100%;
      margin-top: -6.5rem;
      margin-left: -0.7rem;
      margin-right: -2.1rem;
      left: 0;
      padding: 0;
      overflow-x: hidden;
    }
    .contact-hero, .about-hero{
      padding: 0 2rem;
      margin-top: -8rem;
      height: 90vh;
    }
    .hero-section h1 {
      font-size: 1.6rem;  /* Slightly smaller heading */
    }
    .hero-section p {
      font-size: 0.85rem; /* Reduced paragraph size */
    }
    
    /* Contact Hero Adjustments */
    .contact-hero {
      padding: 0 4rem;  /* Reduced side padding */
      margin-top: -4rem;
    }
    .contact-hero > h2 {
      margin-top: 6rem; /* Adjust header margin */
    }
    
    /* Featured Item Adjustments */
    .featured-item {
      padding: 4px;  /* Reduced padding for a more compact layout */
    }
    
    /* Footer Adjustments */
    footer .list-unstyled {
      text-align: left;
      padding-left: 60px; /* Reduced left padding */
    }
    
    /* Thumbnail Adjustments */
    .thumbnail {
      height: 8rem; /* Smaller thumbnail height */
    }   
    .col-sm-8r {
      flex: 0 110%;
      padding: 0;
      margin: 0;
    }
  }

  @media (max-width: 400px) {
    .hero-section-home{
      height: 95vh;
    }
    .contact-hero{
      height: 90vh;
    }
    .contact-hero > h1 {
      margin-top: 8rem;
    }
  }
  
  @media (max-width: 380px) {
    .hero-section-home{
      height: 95vh;
    }
    .contact-hero{
      height: 90vh;
    }
    .services-hero-h1 {
      margin-top: 8rem;
    }
    .services-hero-h2{
      font-size: 2rem;
    }
  }