/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700&display=swap');

/* Global Styles */
:root {
  --primary-color: #e67e22;
  --secondary-color: #34495e; /* dark slate gray  or #000435*/
  --light-color: #f4f4f4;
  --dark-color: #333;
  --max-width: 95%;
}

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

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* Header Styles - Full width navigation */
#main-header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: transparent;
  z-index: 1000;
  transition: all 0.3s ease;
  padding-left: 5%;
}

#main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  position: relative;
  transition: all 0.5s ease;
  max-width: 100%; /* Make container full width by default */
  width: 100%; /* Ensure full width */
}

/* Logo styling - updated for consistency */
.logo {
  flex-shrink: 0;
  margin-right: 40px; /* Add space between logo and nav */
}

.logo img {
  height: 60px;
  transition: opacity 0.3s ease;
  margin-top: 15px;
}

.logo-dark {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
}

.logo-light {
  opacity: 1;
}

/* When scrolled, switch logos */
#main-header.scrolled .logo-dark {
  opacity: 1;
}

#main-header.scrolled .logo-light {
  opacity: 0;
}

/* Main navigation - full width with distributed items */
#main-nav {
  flex: 1; /* Take up all available space */
  display: flex;
  justify-content: flex-end; /* Push nav to the right */
  margin-right: 5%;
}

.nav-menu {
  display: flex;
  justify-content: center; /* Distribute items evenly */
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  flex-wrap: nowrap; /* Prevent wrapping to new line */
  /* max-width: 900px; Limit maximum width to prevent excessive spacing */
  margin-left: auto; /* Push to the right side */
}

.nav-menu > li {
  white-space: nowrap; /* Prevent text wrapping */
  padding: 0 2%; /* Add some padding instead of margin for better spacing control */
}

.nav-menu > li > a {
  text-decoration: none;
  color: white;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  transition: color 0.3s ease;
  font-size: 1.0rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

/* Scrolled header styles */
#main-header.scrolled {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

#main-header.scrolled .container {
  background-color: white;
  max-width: 100%; /* Ensure full width when scrolled */
  margin: 0 auto;
  padding: 10px 20px;
}

#main-header.scrolled .nav-menu > li > a {
  color: var(--dark-color);
}

/* Override any max-width constraints from global container styles */
#main-header .container {
  max-width: 100% !important; /* Force full width */
}

/* Responsive adjustments for desktop sizes */
@media (min-width: 901px) and (max-width: 1200px) {
  .nav-menu > li > a {
    font-size: 0.85rem; /* Further reduce font size on medium screens */
    letter-spacing: 0.3px;
  }
  
  .logo {
    margin-right: 20px; /* Less space on medium screens */
  }
}

/* Dropdown Menu Styles */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  position: relative;
  padding-right: 15px;
}

.dropdown-toggle::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid white;
  transition: transform 0.3s ease;
}

#main-header.scrolled .dropdown-toggle::after {
  border-top-color: var(--dark-color);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background-color: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 100;
}

.dropdown.active .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  display: block;
  margin: 0;
}

.dropdown-menu li a {
  display: block;
  padding: 10px 20px;
  color: var(--dark-color) !important;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.dropdown-menu li a:hover {
  background-color: #f8f8f8;
  color: var(--primary-color) !important;
}

/* Mobile menu toggle */
#mobile-menu-toggle {
  display: none;
}

/* Mobile header specific styles */
@media (max-width: 900px) {
  #main-header .container {
    justify-content: space-between;
    padding: 10px 20px;
  }
  
  .logo {
    margin: 0;
    position: static;
    text-align: left;
  }
  
  .logo img {
    height: 50px;
  }
  
  #mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    margin-left: auto;
  }
  
  #mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 4px 0;
    background-color: white; /* White by default for visibility on video */
    transition: all 0.3s ease;
  }
  
  /* When scrolled, change hamburger color */
  #main-header.scrolled #mobile-menu-toggle span {
    background-color: var(--dark-color); /* Dark when scrolled */
  }
  
  /* Hide the navigation in normal state */
  #main-nav {
    position: relative;
    display: none; /* Hide nav by default on mobile */
  }
  
  /* Dropdown menu when active */
  #main-nav.active {
    display: block;
    position: absolute;
    top: 100%;
    right: 0;
    width: 250px;
    background-color: white;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 0 4px;
  }
  
  #main-nav.active .nav-menu {
    display: block;
    width: 100%;
  }
  
  #main-nav.active .nav-menu > li {
    display: block;
    margin: 0;
    border-bottom: 1px solid #f0f0f0;
  }
  
  #main-nav.active .nav-menu > li:last-child {
    border-bottom: none;
  }
  
  #main-nav.active .nav-menu > li > a {
    display: block;
    padding: 12px 20px;
    color: var(--dark-color);
  }
  
  /* Mobile dropdown styles */
  #main-nav.active .dropdown-toggle::after {
    right: 20px;
    border-top-color: var(--dark-color);
  }
  
  #main-nav.active .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    width: 100%;
    background-color: #f8f8f8;
    display: none; /* Hidden by default in mobile too */
  }
  
  #main-nav.active .dropdown.active .dropdown-menu {
    display: block; /* Only show when active class is added */
  }
  
  #main-nav.active .dropdown-menu li a {
    padding-left: 40px;
  }
  
  /* Hamburger to X animation */
  body.menu-open #mobile-menu-toggle span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
  }
  
  body.menu-open #mobile-menu-toggle span:nth-child(2) {
    opacity: 0;
  }
  
  body.menu-open #mobile-menu-toggle span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
  }
}

/* Video Header */
.video-header {
  position: relative;
  height: 100vh;
  overflow: hidden;
  background-color: var(--secondary-color); /* Fallback background color */
}

#hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translateX(-50%) translateY(-50%);
  object-fit: cover; /* Ensure video covers the container */
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(230, 126, 34, 0.7); /* Semi-transparent primary color */
  color: white;
  border: none;
  border-radius: 50%;
  width: 80px;
  height: 80px;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
}

.video-play-btn:hover {
  background-color: var(--primary-color);
  transform: translate(-50%, -50%) scale(1.1);
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  padding: 0 20px;
}

.overlay h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.overlay p {
  font-size: 1.5rem;
  margin-bottom: 30px;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: #d35400;
}

/* Section Styles */
.section {
  padding: 30px 0; /* Reduced from likely 80px or 100px */
}

.section h2 {
  text-align: center;
  margin-bottom: 40px;
  color: var(--secondary-color);
  position: relative;
}

.section h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
}

/* Service Showcase Section - Elegant and distinctive */
#service-showcase {
  width: 100%;
  /* padding: 120px 0 100px; */
  background-color: #f8f9fa;
  position: relative;
  overflow: hidden;
}

/* Remove the vision-background class */

/* Enhanced showcase intro with larger text */
.showcase-intro {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 60px;
  position: relative;
  z-index: 2;
}

.showcase-intro h2 {
  font-size: 2.8rem;
  margin-bottom: 25px;
  color: var(--secondary-color);
  position: relative;
  display: inline-block;
}

.showcase-intro h2::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--primary-color);
}

.showcase-intro p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #555;
  max-width: 800px;
  margin: 0 auto;
}

/* Add a large background image for the section */
.vision-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/vision-bg.jpeg');
  background-size: cover;
  background-position: center;
  opacity: 0.05;
  z-index: 0;
}

/* Service cards container with consistent rows */
.service-cards-container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 30px;
  width: 100%;
}

/* Remove staggered second row styling */
.service-cards.second-row {
  margin-top: 30px; /* Standard spacing instead of negative margin */
  margin-left: 0;   /* Remove offset */
  margin-right: 0;  /* Remove offset */
  width: 100%;
}

/* Modern card design with larger images - similar to featured projects */
.service-card {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 500px; /* Increased height for larger image */
  width: 100%;
}

/* Consistent animation timing for all cards */
.service-card:nth-child(1) {
  animation-delay: 0.1s;
}

.service-card:nth-child(2) {
  animation-delay: 0.3s;
}

.service-card:nth-child(3) {
  animation-delay: 0.5s;
}

.service-cards.second-row .service-card:nth-child(1) {
  animation-delay: 0.1s; /* Match first row timing */
}

.service-cards.second-row .service-card:nth-child(2) {
  animation-delay: 0.3s; /* Match first row timing */
}

.service-cards.second-row .service-card:nth-child(3) {
  animation-delay: 0.5s; /* Match first row timing */
}

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

/* Full-height image area like featured projects */
.card-image {
  position: relative;
  height: 100%; /* Full height image */
  width: 100%;
  overflow: hidden;
  clip-path: none; /* Remove diagonal cut */
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.service-card:hover .card-image img {
  transform: scale(1.05);
}

/* Text overlay on image - similar to featured projects */
.card-image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0) 100%);
  color: white;
  z-index: 1;
  transform: translateY(0);
  transition: transform 0.4s ease;
}

.service-card:hover .card-image-overlay {
  transform: translateY(-10px);
}

.card-image-overlay h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 10px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.card-image-overlay p {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 15px;
  max-width: 90%;
}

/* Move card content into the overlay */
.card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px;
  z-index: 2;
  color: white;
}

.card-content p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 20px;
  line-height: 1.6;
  display: none; /* Hide the paragraph on mobile */
}

/* Modern link style with button appearance on hover */
.card-link {
  display: inline-flex;
  align-items: center;
  color: white;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
  padding: 8px 15px;
  border-radius: 5px;
  background-color: transparent;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease, background-color 0.3s ease;
}

.service-card:hover .card-link {
  opacity: 1;
  transform: translateY(0);
  background-color: var(--primary-color);
}

.card-link i {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.card-link:hover {
  background-color: #d35400; /* Darker orange on hover */
}

.card-link:hover i {
  transform: translateX(5px);
}

/* Floating icon with gradient */
.card-icon {
  position: absolute;
  top: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), #f39c12);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 1.5rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  z-index: 2;
  transition: all 0.3s ease;
}

.service-card:hover .card-icon {
  transform: rotate(360deg) scale(1.1);
}

/* Responsive adjustments */
@media (min-width: 992px) {
  .card-content p {
    display: block; /* Show paragraph on larger screens */
    max-width: 90%;
  }
}

@media (max-width: 992px) {
  .service-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .service-card {
    height: 450px;
  }
}

@media (max-width: 768px) {
  .service-cards {
    grid-template-columns: 1fr;
  }
  
  .service-card {
    height: 400px;
  }
}

/* Portfolio Styles */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.portfolio-item:hover {
  transform: translateY(-10px);
}

.portfolio-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.portfolio-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(70, 130, 180, 0.9); /* Deep Steel Blue with opacity */
  padding: 15px;
  color: white;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
  transform: translateY(0);
}

.portfolio-overlay h3 {
  margin-bottom: 5px;
}

.portfolio-overlay p {
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.portfolio-overlay a {
  color: white;
  text-decoration: underline;
}

/* Footer Styles - Enhanced and Reorganized */
#main-footer {
  background-color: var(--secondary-color);
  color: white;
  padding: 50px 0 20px;
  position: relative;
  overflow: hidden;
}

#main-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

/* Logo and contact section */
.footer-logo {
  margin-bottom: 15px;
  display: flex;
}

.footer-logo img {
  height: 65px;
  transition: transform 0.3s ease;
}

.footer-logo img:hover {
  transform: scale(1.05);
}

.footer-contact p {
  margin-bottom: 12px;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
}

.footer-contact p i {
  margin-right: 15px;
  width: 16px;
  color: var(--primary-color);
  text-align: center;
  transition: transform 0.3s ease;
}

.footer-contact p:hover i {
  transform: scale(1.2);
}

.footer-contact p span {
  flex: 1;
  margin-left: 10px;
}


/* Social icons moved under logo */
.footer-social-icons {
  margin-top: 20px;
}

.footer-social-icons h3 {
  margin-bottom: 15px;
  font-size: 1.1rem;
  font-weight: 600;
}

/* Section headings */
.footer-links h3,
.footer-services h3,
.footer-certifications h3,
.footer-social-icons h3 {
  margin-bottom: 20px;
  position: relative;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.footer-links h3::after,
.footer-services h3::after,
.footer-certifications h3::after,
.footer-social-icons h3::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.footer-links:hover h3::after,
.footer-services:hover h3::after,
.footer-certifications:hover h3::after,
.footer-social-icons:hover h3::after {
  width: 70px;
}

/* Links styling */
.footer-links ul,
.footer-services ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li,
.footer-services ul li {
  margin-bottom: 12px;
  transition: transform 0.3s ease;
}

.footer-links ul li:hover,
.footer-services ul li:hover {
  transform: translateX(5px);
}

.footer-links ul li a,
.footer-services ul li a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.95rem;
  position: relative;
  padding-left: 0;
  display: inline-block;
}

.footer-links ul li a::before,
.footer-services ul li a::before {
  content: '›';
  position: absolute;
  left: -10px;
  opacity: 0;
  transition: all 0.3s ease;
}

.footer-links ul li a:hover,
.footer-services ul li a:hover {
  color: var(--primary-color);
  padding-left: 10px;
}

.footer-links ul li a:hover::before,
.footer-services ul li a:hover::before {
  opacity: 1;
  left: 0;
}

/* Social icons */
.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.social-icons a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--primary-color);
  transform: scale(0);
  transition: transform 0.3s ease;
  border-radius: 50%;
  z-index: -1;
}

.social-icons a:hover {
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.social-icons a:hover::before {
  transform: scale(1);
}

/* Certifications section */
.footer-certifications p {
  margin-bottom: 20px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}

.certification-badges {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 25px;
}

.certification-badge {
  display: flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.08);
  padding: 10px 15px;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.certification-badge:hover {
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateX(5px);
}

.certification-badge i {
  font-size: 1.2rem;
  color: var(--primary-color);
  margin-right: 25px; /* Increased spacing between icon and text */
  width: 20px; /* Fixed width for better alignment */
  text-align: center;
}

.certification-badge span {
  font-size: 0.9rem;
  font-weight: 500;
}

/* Admin login link */
.admin-link {
  margin-top: 30px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-link a {
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.admin-link a i {
  margin-right: 8px;
  font-size: 0.8rem;
}

.admin-link a:hover {
  color: var(--primary-color);
  transform: translateX(5px);
}

/* Footer bottom */
.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Responsive footer with centered elements on mobile */
@media (max-width: 900px) {
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-logo-contact {
    grid-column: 1;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .footer-logo {
    margin: 0 auto 15px;
  }
  
  .footer-contact p {
    justify-content: center;
  }
  
  .footer-contact p i {
    margin-right: 10px;
  }
  
  .footer-social-icons {
    margin-top: 15px;
  }
  
  .social-icons {
    justify-content: center;
  }
  
  .footer-links, 
  .footer-services, 
  .footer-certifications {
    margin-bottom: 20px;
  }
  
  .footer-links ul, 
  .footer-services ul {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .certification-badges {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
}

@media (max-width: 600px) {
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .footer-logo-contact,
  .footer-links,
  .footer-services,
  .footer-certifications {
    grid-column: span 1;
    text-align: center;
  }
  
  .footer-links h3,
  .footer-services h3,
  .footer-certifications h3,
  .footer-social-icons h3 {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .footer-links h3::after,
  .footer-services h3::after,
  .footer-certifications h3::after,
  .footer-social-icons h3::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .certification-badges {
    align-items: center;
  }
  
  .certification-badge {
    width: 80%;
    justify-content: center;
  }
  
  .admin-link {
    text-align: center;
  }
}

/* Page Header */
.page-header {
  background-color: var(--secondary-color);
  color: white;
  padding: 100px 0 50px;
  text-align: center;
}

.page-header h1 {
  margin: 0;
  font-size: 2.5rem;
}

/* Services Styles */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.service-item {
  background-color: white;
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease;
}

.service-item:hover {
  transform: translateY(-10px);
}

.service-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.service-item h3 {
  margin-bottom: 15px;
  color: var(--secondary-color);
}

/* Service Detail Page Styles */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  margin-top: 30px;
}

.service-image img {
  width: 100%;
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.service-content h2 {
  color: var(--secondary-color);
  margin-bottom: 20px;
}

.service-content h3 {
  color: var(--secondary-color);
  margin: 30px 0 15px;
}

.service-content p {
  margin-bottom: 15px;
  line-height: 1.7;
}

.service-content ul {
  margin-left: 20px;
  margin-bottom: 20px;
}

.service-content ul li {
  margin-bottom: 10px;
  line-height: 1.6;
}

.cta-box {
  background-color: #f8f8f8;
  border-left: 4px solid var(--primary-color);
  padding: 25px;
  margin-top: 40px;
  border-radius: 0 5px 5px 0;
}

.cta-box h3 {
  margin-top: 0;
}

.cta-box .btn {
  margin-top: 15px;
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--secondary-color);
  color: white;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

.btn:hover {
  background-color: var(--primary-color);
  transform: translateY(-2px);
}

.btn-primary {
  background-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: #d35400;
}

.btn-sm {
  padding: 8px 15px;
  font-size: 0.9rem;
}

/* Responsive styles for service detail pages */
@media (max-width: 900px) {
  .service-detail {
    grid-template-columns: 1fr;
  }
  
  .service-image {
    margin-bottom: 20px;
  }
}
/* Dropdown Menu Styles - Updated for better visibility */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  position: relative;
  padding-right: 15px;
}

.dropdown-toggle::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--dark-color);
  transition: transform 0.3s ease;
}

/* Dropdown menu - hidden by default */
.dropdown-menu {
  display: none !important;
  position: absolute;
  top: 110%;
  left: 0;
  background-color: rgba(0, 0, 0, 0.8); /* Dark semi-transparent background */
  min-width: 200px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border-radius: 0 0 4px 4px;
  z-index: 1001;
  list-style: none;
  padding: 0;
  flex-direction: column !important;
}

/* Only show dropdown when active class is added */
.dropdown.active .dropdown-menu {
  display: block !important;
}

.dropdown.active .dropdown-toggle::after {
  transform: translateY(-50%) rotate(180deg);
}

/* Dropdown menu items */
.dropdown-menu li {
  margin: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Lighter border */
  display: block !important;
  width: 100% !important;
}

.dropdown-menu li:last-child {
  border-bottom: none;
}

.dropdown-menu li a {
  display: block !important;
  padding: 12px 15px;
  color: white !important; /* Force white text */
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  width: 100% !important;
  text-transform: uppercase;
}

.dropdown-menu li a:hover {
  background-color: rgba(230, 126, 34, 0.8); /* Primary color with opacity */
  color: white !important;
}

/* Mobile dropdown styles - With indentation and square indicator */
@media (max-width: 900px) {
  .dropdown-toggle::after {
    right: 20px;
  }
  
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    width: 100%;
    background-color: #f8f8f8;
    display: none; /* Hidden by default in mobile too */
  }
  
  .dropdown.active .dropdown-menu {
    display: block; /* Only show when active class is added */
  }
  
  /* Add indentation to sub-nav items */
  .dropdown-menu li a {
    padding-left: 40px !important; /* Increased left padding for indentation */
    position: relative;
    color: var(--dark-color) !important; /* Dark text for mobile dropdown */
  }
  
  /* Change the visual indicator for sub-items to a small square */
  .dropdown-menu li a::before {
    content: '■';
    position: absolute;
    left: 20px;
    color: var(--primary-color);
    font-size: 0.7rem;
  }
  
  #main-nav.active .dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}

/* Mobile menu with dropdown */
@media (max-width: 900px) {
  .dropdown-toggle::after {
    right: 20px;
  }
  
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    width: 100%;
    background-color: #f8f8f8;
    display: none; /* Hidden by default in mobile too */
  }
  
  .dropdown.active .dropdown-menu {
    display: block; /* Only show when active class is added */
  }
  
  .dropdown-menu li a {
    padding-left: 30px;
  }
  
  #main-nav.active .dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}

/* Ensure main navigation displays correctly */
#main-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Ensure dropdown menu is a block element with vertical items */
.dropdown-menu {
  display: none;
  flex-direction: column !important; /* Force vertical layout */
}

/* Ensure dropdown menu items are block elements */
.dropdown-menu li {
  display: block !important; /* Force block display */
  width: 100% !important;
}

/* Ensure dropdown menu links are block elements */
.dropdown-menu li a {
  display: block !important; /* Force block display */
  width: 100% !important;
}

/* Media Queries */
@media (max-width: 900px) {
  #main-header .container {
    justify-content: space-between;
    padding: 10px 20px;
  }
  
  .logo {
    margin: 0;
    text-align: left;
  }
  
  #mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    margin-left: auto;
  }
  
  #mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 4px 0;
    background-color: var(--dark-color);
    transition: all 0.3s ease;
  }
  
  /* Hide the navigation in normal state */
  #main-nav {
    position: relative;
  }
  
  .nav-left, .nav-right {
    display: none;
  }
  
  /* Dropdown menu when active */
  #main-nav.active {
    position: absolute;
    top: 100%; /* Position right below the header */
    right: 0;
    width: 250px;
    background-color: white;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 0 4px;
  }
  
  #main-nav.active .nav-left,
  #main-nav.active .nav-right {
    display: block;
    width: 100%;
  }
  
  /* Ensure the logo doesn't appear in the dropdown */
  #main-nav.active .logo {
    display: none;
  }
  
  /* Adjust logo position in mobile header */
  #main-header .logo {
    position: relative;
    left: 0;
    margin: 0;
  }
  
  #main-nav.active ul {
    flex-direction: column;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  
  #main-nav.active ul li {
    margin: 0;
    border-bottom: 1px solid #f0f0f0;
  }
  
  #main-nav.active ul li:last-child {
    border-bottom: none;
  }
  
  #main-nav.active ul li a {
    display: block;
    padding: 12px 20px;
    text-align: left;
    font-size: 0.9rem;
  }
  
  /* Hamburger to X animation */
  body.menu-open #mobile-menu-toggle span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
  }
  
  body.menu-open #mobile-menu-toggle span:nth-child(2) {
    opacity: 0;
  }
  
  body.menu-open #mobile-menu-toggle span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
  }
}

@media (max-width: 768px) {
  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
  }
  
  .about-image {
    order: -1;
  }
  
  .portfolio-filter {
    flex-direction: column;
    align-items: center;
  }
  
  .filter-btn {
    margin-bottom: 10px;
    width: 200px;
  }
}

/* Additional mobile menu styles */
body.menu-open {
  overflow: hidden;
}

#mobile-menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px 0;
  background-color: var(--dark-color);
  transition: all 0.3s ease;
}

/* Overlay for mobile menu */
.menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

body.menu-open .menu-overlay {
  display: block;
}

/* Add this to your existing CSS */
#main-header.scrolled {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

#main-header.scrolled .container {
  background-color: white;
  max-width: 90%;
  margin: 0 auto;
  border-radius: 10px;
}

#main-header.scrolled #main-nav ul li a {
  color: var(--dark-color);
}

/* Additional styles for service showcase */
.service-cards.second-row {
  margin-top: 20px; /* Reduced from 30px */
}

.mt-40 {
  margin-top: 40px;
}

.text-center {
  text-align: center;
}

/* Responsive adjustments for service cards */
@media (max-width: 1200px) {
  .service-cards {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

@media (max-width: 900px) {
  .service-cards.second-row {
    margin-top: 0;
  }
  
  .service-card {
    margin-bottom: 30px;
  }
}

/* Featured Projects Section */
#featured-projects {
  padding: 20px 0; /* Reduced from 100px */
  background-color: #fff;
  position: relative;
}

#featured-projects::before {
  content: '';
  position: absolute;
  top: -30px; /* Adjusted from -50px */
  left: 0;
  right: 0;
  height: 60px; /* Reduced from 100px */
  background-color: #fff;
  clip-path: polygon(0 0, 100% 50%, 100% 100%, 0% 100%);
  z-index: 1;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin: 50px 0 40px;
}

.featured-item {
  position: relative;
  height: 400px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.featured-item:hover {
  transform: translateY(-15px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.featured-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.featured-item:hover img {
  transform: scale(1.1);
}

.featured-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
  padding: 30px;
  color: white;
  transform: translateY(0);
  transition: transform 0.4s ease;
}

.featured-item:hover .featured-overlay {
  transform: translateY(-10px);
}

.featured-overlay h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.featured-overlay p {
  margin-bottom: 15px;
  opacity: 0.9;
}

.featured-overlay .btn {
  background-color: var(--primary-color);
  border: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.featured-item:hover .featured-overlay .btn {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .featured-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .featured-grid {
    grid-template-columns: 1fr;
  }
  
  .featured-item {
    height: 350px;
  }
  
  #featured-projects {
    padding: 70px 0;
  }
}

/* Split Content Sections (CEO and Approach) */
.split-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
}

.split-content.reverse {
  direction: rtl;
}

.split-content.reverse > * {
  direction: ltr;
}

.split-image {
  position: relative;
  z-index: 1;
}

.split-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  transition: transform 0.5s ease;
}

.split-content:hover .split-image img {
  transform: scale(1.02);
}

.image-accent {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 20px;
  left: 20px;
  border: 3px solid var(--primary-color);
  border-radius: 10px;
  z-index: -1;
  transition: transform 0.5s ease;
}

.split-content.reverse .image-accent {
  left: auto;
  right: 20px;
}

.split-content:hover .image-accent {
  transform: translate(-5px, -5px);
}

.split-content.reverse:hover .image-accent {
  transform: translate(5px, -5px);
}

.split-text {
  padding: 20px 0;
}

.section-subtitle {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-color);
  letter-spacing: 2px;
  margin-bottom: 15px;
  position: relative;
}

.section-subtitle:after {
  content: '';
  display: block;
  width: 50px;
  height: 2px;
  background-color: var(--primary-color);
  margin-top: 10px;
}

.split-text h2 {
  font-size: 2.5rem;
  margin-bottom: 25px;
  color: var(--secondary-color);
}

.lead-text {
  font-size: 1.4rem;
  font-style: italic;
  color: var(--secondary-color);
  margin-bottom: 20px;
  line-height: 1.5;
}

.split-text p {
  margin-bottom: 20px;
  line-height: 1.8;
}

.signature {
  display: flex;
  align-items: center;
  margin-top: 30px;
}

.signature img {
  height: 60px;
  margin-right: 20px;
}

.signature p {
  margin: 0;
  font-weight: 600;
}

.signature p span {
  font-weight: normal;
  color: #666;
}

/* Approach Highlights */
.approach-highlights {
  margin: 30px 0;
}

.approach-item {
  display: flex;
  margin-bottom: 25px;
}

.approach-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background-color: rgba(230, 126, 34, 0.1);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 20px;
  color: var(--primary-color);
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.approach-item:hover .approach-icon {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-5px);
}

.approach-content h3 {
  margin-bottom: 8px;
  color: var(--secondary-color);
}

.approach-content p {
  margin: 0;
  color: #666;
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  padding: 12px 30px;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Section spacing and backgrounds */
#ceo-intro {
  padding: 80px 0 0;
  background-color: #f9f9f9;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}

#approach-intro {
  padding: 0 0 80px;
  background-color: #f9f9f9;
  margin-top: 0;
  position: relative;
  z-index: 1;
}

/* Create the diagonal connection between sections */
.split-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  padding: 40px 0;
}

.split-content.reverse {
  direction: rtl;
}

.split-content.reverse > * {
  direction: ltr;
}

/* Image styling for the connected effect */
.split-image {
  position: relative;
  z-index: 2;
}

.split-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  transition: transform 0.5s ease;
}

/* Create diagonal connection with pseudo-elements */
#ceo-intro::after {
  content: '';
  position: absolute;
  bottom: -50px;
  left: 0;
  width: 100%;
  height: 100px;
  background-color: #f9f9f9;
  clip-path: polygon(0 0, 100% 0, 100% 0, 0 100%);
  z-index: 0;
}

#approach-intro::before {
  content: '';
  position: absolute;
  top: -50px;
  left: 0;
  width: 100%;
  height: 100px;
  background-color: #f9f9f9;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 0);
  z-index: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .split-content, 
  .split-content.reverse {
    grid-template-columns: 1fr;
    gap: 30px;
    direction: ltr;
    padding: 30px 0;
  }
  
  .split-image {
    order: -1;
  }
  
  .split-content.reverse .split-image {
    order: -1;
  }
  
  #ceo-intro {
    padding: 60px 0 30px;
  }
  
  #approach-intro {
    padding: 30px 0 60px;
  }
  
  /* Remove diagonal connection on mobile */
  #ceo-intro::after,
  #approach-intro::before {
    display: none;
  }
}

/* Connected Sections with properly aligned images and text */
.connected-sections {
  position: relative;
  background-color: #f9f9f9;
  padding: 30px 0; /* Reduced from 80px */
  overflow: hidden;
}

.connected-content {
  position: relative;
}

/* Left side (CEO) */
.connected-left {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px; /* Reduced from 60px */
  align-items: center;
  position: relative;
  z-index: 2;
}

.connected-left .connected-image {
  grid-column: 1;
  grid-row: 1;
  position: relative;
}

.connected-left .connected-text {
  grid-column: 2;
  grid-row: 1;
}

/* Right side (Approach) */
.connected-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px; /* Reduced from 60px */
  position: relative;
  z-index: 1;
  margin-top: -500px; /* Move entire right section up */
}

.connected-right .connected-image {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  margin-left: 60px; /* Move right to position correctly */
  align-self: start; /* Align to top of grid cell */
  margin-top: 520px; /* Match the padding-top of the text */
}

.connected-right .connected-text {
  grid-column: 1;
  grid-row: 1;
  align-self: start; /* Align to top of grid cell */
  padding-top: 520px; /* Add padding to push content down */
}

/* Image styling */
.connected-image {
  position: relative;
}

.connected-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  transition: transform 0.5s ease;
}

.image-accent {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 20px;
  left: 20px;
  border: 3px solid var(--primary-color);
  border-radius: 10px;
  z-index: -1;
  transition: transform 0.5s ease;
}

.connected-right .image-accent {
  left: auto;
  right: 20px;
}

/* Text styling */
.connected-text {
  padding: 20px 0;
}

.section-subtitle {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-color);
  letter-spacing: 2px;
  margin-bottom: 15px;
  position: relative;
}

.section-subtitle:after {
  content: '';
  display: block;
  width: 50px;
  height: 2px;
  background-color: var(--primary-color);
  margin-top: 10px;
}

.connected-text h2 {
  font-size: 2.5rem;
  margin-bottom: 25px;
  color: var(--secondary-color);
  text-align: left;
}

.connected-text h2::after {
  display: none;
}

/* Connected Sections - Approach section button */
.connected-right .btn-outline {
  background-color: var(--primary-color);
  border: 2px solid var(--primary-color);
  color: white;
  padding: 12px 30px;
  transition: all 0.3s ease;
  margin-top: 20px;
  display: inline-block;
  font-weight: 600;
}

.connected-right .btn-outline:hover {
  background-color: transparent;
  color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(230, 126, 34, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .connected-sections {
    padding: 60px 0;
  }
  
  .connected-left,
  .connected-right {
    grid-template-columns: 1fr;
    gap: 30px;
    margin: 0;
  }
  
  .connected-left .connected-image,
  .connected-right .connected-image,
  .connected-left .connected-text,
  .connected-right .connected-text {
    grid-column: 1;
    margin: 0;
    align-self: auto;
  }
  
  .connected-right .connected-text {
    padding-top: 0;
  }
  
  .connected-right .connected-image {
    margin-top: 0;
  }
  
  .connected-left .connected-image,
  .connected-right .connected-image {
    grid-row: 1;
  }
  
  .connected-left .connected-text,
  .connected-right .connected-text {
    grid-row: 2;
  }
}

/* Back to Top Button */
#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
}

#back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

#back-to-top:hover {
  background-color: #d35400;
  transform: translateY(-5px);
}

@media (max-width: 768px) {
  #back-to-top {
    width: 40px;
    height: 40px;
    bottom: 20px;
    right: 20px;
    font-size: 1rem;
  }
}

/* Full Width Showcase Section */
#full-width-showcase {
  padding: 0;
  margin: 40px 0; /* Reduced from 80px */
  position: relative;
}

.showcase-image {
  position: relative;
  height: 600px;
  overflow: hidden;
}

.showcase-image img {
  width: 100%;
  height: 100%;
}

/* Stats Counter Section */
#stats-counter {
  background-color: var(--secondary-color);
  color: white;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

#stats-counter::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../images/pattern-bg.jpeg');
  opacity: 0.1;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.stat-item {
  position: relative;
  padding: 20px;
  transition: transform 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
}

.stat-item::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 70%;
  width: 1px;
  background-color: rgba(255, 255, 255, 0.2);
}

.stat-item:last-child::after {
  display: none;
}

/* New icon styling */
.stat-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 15px;
  height: 60px;
  width: 60px;
  line-height: 60px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

.stat-item:hover .stat-icon {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(10deg);
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--primary-color);
  font-family: 'Montserrat', sans-serif;
  position: relative;
  display: inline-block;
}

/* Add a subtle underline to numbers */
.stat-number::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background-color: var(--primary-color);
  opacity: 0.7;
}

.stat-label {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stat-item:nth-child(2)::after {
    display: none;
  }
}

@media (max-width: 576px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .stat-item::after {
    display: none;
  }
  
  .stat-number {
    font-size: 3rem;
  }
  
  .stat-icon {
    font-size: 2rem;
    height: 50px;
    width: 50px;
    line-height: 50px;
  }
}

/* Partners Section */
#partners {
  padding: 20px 0;
  background-color: #f9f9f9;
  text-align: center;
}

#partners h2 {
  margin-bottom: 50px;
}

.partners-slider {
  position: relative;
  overflow: hidden;
  padding: 20px 0;
}

.partners-track {
  display: flex;
  animation: slidePartners 20s linear infinite;
}

.partner-logo {
  flex: 0 0 16.666%;
  min-width: 150px;
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.partner-logo:hover {
  filter: grayscale(0);
  opacity: 1;
}

.partner-logo img {
  max-width: 100%;
  max-height: 80px;
}

@keyframes slidePartners {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* Call to Action Section */
#cta {
  background: linear-gradient(to right, rgba(52, 73, 94, 0.9), rgba(26, 42, 58, 0.9));
  color: white;
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

#cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(52, 73, 94, 0.85), rgba(26, 42, 58, 0.85));
  z-index: 1;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  font-size: 2.3rem;
  margin-bottom: 20px;
  color: white; /* Explicitly set to white */
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); /* Add text shadow for better visibility */
}

.cta-content p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  opacity: 0.9;
  color: white; /* Explicitly set to white */
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stat-item:nth-child(2)::after {
    display: none;
  }
}

@media (max-width: 768px) {
  .cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  
  .cta-buttons .btn {
    width: 100%;
    max-width: 300px;
  }
  
  .partner-logo {
    min-width: 120px;
    padding: 0 20px;
  }
}

@media (max-width: 576px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .stat-item::after {
    display: none;
  }
  
  .stat-number {
    font-size: 3rem;
  }
  
  #cta {
    padding: 70px 0;
  }
  
  .cta-content h2 {
    font-size: 2rem;
  }
}
