/* Global Variables */
:root {
  --primary-navy: #000080;
  --primary-blue: #1e3a8a;
  --accent-color: #ff4d4d;
  --text-color: #677294;
  --heading-color: #000080;
  --bg-white: #ffffff;
  --bg-light: #f4f7f9;
  --font-main: "Cairo", sans-serif;
  --font-body: "Poppins", "Figtree", sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --container-width: 1200px;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  color: var(--text-color);
  line-height: 1.7;
  background-color: var(--bg-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-main);
  color: var(--heading-color);
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

@media (min-width: 768px) {
  .header-actions {
    display: none;
  }
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

/* Layout Containers */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 100px 0;
}

/* Navbar */
/* Navbar */
header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: #fff;
  transition: var(--transition);
  padding: 5px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Optional: if you still want a scroll effect modification, 
   you can keep it, but the base is now white. */
header.scrolled {
  padding: 10px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 80px;
  transition: var(--transition);
}

header.scrolled .logo img {
  height: 45px;
}

.nav-links {
  display: flex;
  gap: 35px;
}

.nav-links a {
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 700;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-navy);
}

/* Optional underline effect for active/hover */
.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--primary-navy);
  transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.btn-toggle {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  display: none;
  color: var(--heading-color);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 34px;
  border-radius: 4px;
  font-weight: 600;
  font-family: var(--font-main);
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

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

.btn-primary:hover {
  background-color: var(--primary-blue);
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 128, 0.2);
}

.btn-outline {
  border: 1px solid var(--primary-navy);
  color: var(--primary-navy);
  margin-left: 15px;
}

.btn-outline:hover {
  background: var(--primary-navy);
  color: #fff;
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  position: relative;
  color: #fff;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(2, 0, 36, 0.85) 0%,
    rgba(9, 9, 121, 0.6) 50%,
    rgba(0, 212, 255, 0.1) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content > * {
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.hero-labels {
  animation-delay: 0.1s;
}
.hero h1 {
  animation-delay: 0.3s;
}
.hero p {
  animation-delay: 0.5s;
}
.hero-btns {
  animation-delay: 0.7s;
}

.hero-shape-logo {
  height: 100px;
  margin-bottom: 20px;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
  animation: slideUpFade 0.8s ease 0.1s forwards;
  opacity: 0;
  z-index: 2;
}

.hero h1 {
  font-size: 72px;
  text-align: center;
  margin: 20px 0 20px;
  color: #fff;
  line-height: 1.1;
  font-weight: 800;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 18px;
  line-height: 1.8;
  text-align: center;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
}

.badge {
  background: var(--accent-color);
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  box-shadow: 0 4px 15px rgba(255, 77, 77, 0.4);
  display: inline-block;
}

/* Specific Hero Buttons override */
.hero .btn {
  padding: 16px 40px;
  border-radius: 50px; /* Pillow shape for modern feel */
}

.hero .btn-outline {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
}

.hero .btn-outline:hover {
  background: #fff;
  color: var(--primary-navy);
  border-color: #fff;
}

/* Stats Section */
.stats-section {
  background-color: var(--bg-light);
  text-align: center;
  padding: 60px 0;
}

.stats-grid {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
}

.stat-item {
  flex: 1;
  min-width: 150px;
}

.counter {
  font-size: 48px;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 5px;
  font-family: var(--font-main);
}

.stat-item p {
  font-size: 18px;
  color: var(--primary-blue);
  font-weight: 500;
  text-transform: capitalize;
}

@media (max-width: 768px) {
  .stats-grid {
    flex-direction: column;
    gap: 30px;
  }
}

/* Partners Section */
.partners {
  background: #fff;
  padding: 80px 0;
  border-bottom: 1px solid #eee;
}

.section-title {
  text-align: center;
  width: 100%;
  margin-bottom: 50px;
  font-size: 32px;
  color: var(--primary-navy);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  width: 60px;
  height: 4px;
  background: var(--accent-color);
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
}

.partners-slider {
  padding: 40px 0;
}

.partner-logo {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  transition: var(--transition);
}

.partner-logo img {
  max-width: 180px; /* Constrain width for wide logos */
  max-height: 90px; /* Constrain height for tall/square logos */
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.8;
  transition: var(--transition);
}

.partner-logo img:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

/* Excellence Section */
.excellence-flex {
  display: flex;
  align-items: stretch;
  gap: 50px;
}

.excellence-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.subtitle {
  color: var(--accent-color);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 14px;
  display: block;
  margin-bottom: 10px;
}

.excellence-text h2 {
  font-size: 42px;
  margin-bottom: 25px;
}

.excellence-text p {
  margin-bottom: 20px;
  text-align: justify !important;
}

.excellence-image {
  flex: 1;
  position: relative;
}

.excellence-image img {
  border-radius: 12px;
  box-shadow: 20px 20px 0 var(--primary-navy);
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Services Section */
.services-preview {
  background: var(--primary-navy);
  color: #fff;
  text-align: center;
}

.services-preview .section-header {
  margin-bottom: 50px;
}

.services-preview .section-header h2 {
  color: #fff;
  font-size: 36px;
  text-transform: uppercase;
  margin-bottom: 25px;
}

.services-preview .service-description {
  color: #fff;
  opacity: 0.9;
  max-width: 900px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.8;
}

.services-icons-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: fit-content;
  margin: 0 auto;
  gap: 30px 40px;
  padding-top: 20px;
}

.service-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 160px;
  cursor: pointer;
}

.service-item i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90px;
  height: 90px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  font-size: 36px;
  color: #fff;
  margin-bottom: 20px;
  transition: var(--transition);
  backdrop-filter: blur(5px);
}

.service-item:hover i {
  background: var(--accent-color);
  border-color: var(--accent-color);
  box-shadow: 0 10px 30px rgba(255, 77, 77, 0.3);
  transform: translateY(-5px) scale(1.1);
}

.service-item span {
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
}

.service-item:hover span {
  color: var(--accent-color);
}

/* How We Work Section */
.how-we-work {
  background-color: var(--bg-light); /* Off-white background for distinction */
  position: relative;
  overflow: hidden;
}

.how-we-work-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 80px;
}

.how-we-work-image {
  flex: 1;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transform: perspective(1000px) rotateY(2deg); /* slight 3D perspective */
  transition: var(--transition);
}

.how-we-work-image:hover {
  transform: perspective(1000px) rotateY(0deg) scale(1.02);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.how-we-work-image img {
  width: 100%;
  height: 350px; /* Fixed height for consistency */
  border-radius: 20px;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.how-we-work-image:hover img {
  transform: scale(1.1);
}

.how-we-work-content {
  flex: 1;
}

.how-we-work-content .section-title-left {
  font-size: 48px;
  color: var(--primary-navy);
  margin-bottom: 30px;
  position: relative;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
}

.how-we-work-content .section-title-left::after {
  content: "";
  display: block;
  width: 80px;
  height: 6px;
  background: var(--accent-color);
  margin-top: 15px;
  border-radius: 3px;
}

.how-we-work-text p {
  font-size: 18px;
  line-height: 1.8;
  color: #444;
  margin-bottom: 25px;
  font-weight: 400;
  text-align: justify;
}

/* Responsive adjustments for How We Work */
@media (max-width: 992px) {
  .how-we-work-flex {
    flex-direction: column;
    gap: 50px;
    text-align: center;
  }

  .how-we-work-image {
    width: 100%;
    transform: none;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  }

  .how-we-work-image img {
    height: 300px;
  }

  .how-we-work-image:hover {
    transform: none;
  }

  .how-we-work-content .section-title-left::after,
  .founder-text .section-title-left::after {
    margin: 15px auto 0;
  }

  .how-we-work-text p {
    text-align: center;
  }
}

/* Founder Section */
.founder-section {
  background: #fff;
  border-top: none;
  padding: 100px 0;
}

.founder-wrapper {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 80px;
}

.founder-text {
  flex: 1;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.founder-text .section-title-left {
  font-size: 30px;
  color: var(--primary-navy);
  margin-bottom: 30px;
  position: relative;
  font-weight: 800;
  line-height: 1.3;
}

.founder-text .section-title-left::after {
  content: "";
  display: block;
  width: 80px;
  height: 6px;
  background: var(--accent-color);
  margin-top: 15px;
  border-radius: 3px;
}

.founder-text .section-title-left .subtitle {
  font-size: 20px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: normal;
  color: var(--primary-blue);
  margin-bottom: 5px;
}

.founder-text .highlight {
  color: var(--primary-blue);
  /* You can make this stronger if desired, e.g., uppercase or darker */
}

.founder-introduction {
  font-size: 15px;
  line-height: 1.8;
  color: #666;
  text-align: justify;
  margin-bottom: 30px;
}

.founder-achievements {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.founder-achievements li {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: #f8f9fc;
  padding: 24px 30px;
  border-radius: 16px;
  box-shadow: none;
  transition: var(--transition);
  border: none;
}

.founder-achievements li:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  background: #fff;
}

.achievement-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  background: #e9ecf6; 
  color: var(--primary-navy);
  font-size: 18px;
  transition: var(--transition);
  margin-top: 2px;
}

.founder-achievements li:hover .achievement-icon {
  background: var(--primary-navy);
  color: #fff;
}

.achievement-text {
  font-size: 14px;
  line-height: 1.7;
  color: #666;
  text-align: justify;
}

.founder-image {
  flex: 1;
  max-width: 500px;
  position: relative;
  margin-top: 20px;
  margin-right: 20px;
}

.founder-image::before {
  content: "";
  position: absolute;
  top: -15px;
  right: -15px;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(255, 77, 77, 0.4);
  border-radius: 16px;
  z-index: 0;
  opacity: 1;
}

.founder-image img {
  width: 100%;
  height: 100%;
  min-height: 550px;
  object-fit: cover;
  object-position: top;
  border-radius: 16px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  position: relative;
  z-index: 1;
  display: block;
}

@media (max-width: 992px) {
  .founder-wrapper {
    flex-direction: column-reverse;
    gap: 50px;
    text-align: center;
  }

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

  .founder-image {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }

  .founder-image img {
    height: auto;
  }

  .founder-image::before {
    display: none;
  }
}

/* Footer */
.site-footer {
  background: #0a0a0a;
  color: #fff;
  padding: 80px 0 30px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-logo {
  height: 50px;
  filter: brightness(0) invert(1);
  margin-bottom: 25px;
}

.footer-nav h3,
.footer-contact h3 {
  color: #fff;
  font-size: 20px;
  margin-bottom: 25px;
}

.footer-nav ul li {
  margin-bottom: 12px;
}

.footer-nav ul a {
  color: #aaa;
}

.footer-nav ul a:hover {
  color: #fff;
  padding-left: 5px;
}

.footer-contact p {
  color: #aaa;
  margin-bottom: 15px;
}

.footer-bottom {
  border-top: 1px solid #222;
  padding-top: 30px;
  text-align: center;
  color: #555;
  font-size: 14px;
}

/* Location Section */
.location-section {
  background-color: var(--bg-light);
  text-align: center;
}

.map-container {
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  margin-top: 30px;
}

/* Responsive */
@media (max-width: 992px) {
  .excellence-flex {
    flex-direction: column;
    gap: 40px;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  header {
    padding: 10px 0;
  }

  .logo img {
    height: 50px !important;
  }

  /* Hero Mobile Enhancements */
  .hero {
    height: auto;
    min-height: 100vh;
    padding: 120px 0 80px;
    background-attachment: scroll; /* Better for mobile performance */
  }

  .hero::before {
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.7) 0%,
      rgba(0, 0, 0, 0.6) 100%
    );
  }

  .hero-content {
    padding: 0 20px;
  }

  .hero h1 {
    font-size: 42px;
    margin-bottom: 25px;
  }

  .hero p {
    font-size: 16px;
    margin-bottom: 40px;
    padding: 0 10px;
  }

  .hero-btns {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 320px;
  }

  .hero .btn {
    width: 100%;
    margin-left: 0 !important;
    text-align: center;
    padding: 16px 30px;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 20px 0 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    align-items: center;
    gap: 15px;
    z-index: 1000;
    border-top: 1px solid #eee;
  }

  .nav-links.active {
    display: flex;
    animation: slideDown 0.3s ease forwards;
  }

  .btn-toggle {
    display: block;
    font-size: 28px;
    color: var(--primary-navy);
    padding: 10px;
  }

  /* Other Sections Mobile Adjustments */
  .services-icons-grid {
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
    max-width: 100%;
    gap: 40px 10px;
  }

  .service-item {
    width: 100%;
    text-transform: uppercase;
  }

  .service-item i {
    width: 80px;
    height: 80px;
    font-size: 32px;
  }

  .section-header p {
    font-size: 14px;
    padding: 0 15px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .how-we-work-flex {
    flex-direction: column;
    gap: 40px;
  }

  .founder-flex {
    flex-direction: column;
    text-align: center;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  /* Mobile Dropdown Styles */
  .dropdown {
    width: 100%;
    text-align: center;
  }

  .dropdown > a {
    justify-content: center;
  }

  .dropdown-content {
    position: static;
    display: block;
    box-shadow: none;
    border: none;
    background: #f9f9f9;
    padding: 10px 0;
    margin-top: 5px;
    transform: none;
    width: 100%;
    min-width: unset;
    animation: none;
  }

  .dropdown-content a {
    padding: 10px;
    color: #666;
    border: none;
    font-size: 14px;
    text-align: center;
  }

  .btn-outline {
    margin-left: 0;
  }

  .dropdown::after {
    display: none;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* About Page - Values Section */
.values-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
}

.value-card {
  background: #fff;
  padding: 40px 30px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: var(--transition);
  flex: 1 1 300px;
  max-width: 350px;
  border: 1px solid #eee;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.value-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--accent-color);
}

.value-icon {
  font-size: 32px;
  color: var(--primary-navy);
  margin-bottom: 25px;
  height: 80px;
  width: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-light);
  border-radius: 50%;
  transition: var(--transition);
}

.value-card:hover .value-icon {
  background: var(--accent-color);
  color: #fff;
  transform: rotateY(180deg);
}

.value-card h3 {
  font-size: 22px;
  margin-bottom: 15px;
  color: var(--primary-navy);
  font-weight: 700;
}

.value-card p {
  color: #666;
  line-height: 1.6;
  font-size: 15px;
}

/* Modern Page Title Section */
.page-title {
  background-color: var(--bg-light);
  padding: 140px 0 100px;
  margin-top: 0; /* Header handling should ideally be global, but for now... */
  position: relative;
  text-align: center;
  overflow: hidden;
}

.shape-logo {
  height: 120px;
  margin-bottom: 0px;
  opacity: 0;
  animation: slideUpFade 0.8s ease forwards;
  display: block;
  margin-left: auto;
  margin-right: auto;
  filter: drop-shadow(0 10px 15px rgba(0, 0, 128, 0.1));
}

/* Ensure padding accounts for fixed header if not handled elsewhere */
body:has(#main-header) .page-title {
  padding-top: 80px; /* 80px header + 80px padding */
}

.page-title .subtitle {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent-color);
  margin-bottom: 20px;
  position: relative;
  opacity: 0;
  animation: slideUpFade 0.6s ease forwards;
}

.page-title h1 {
  font-size: 64px;
  font-weight: 900;
  color: var(--primary-navy);
  letter-spacing: -2px;
  line-height: 1;
  margin: 0;
  opacity: 0;
  animation: slideUpFade 0.6s ease 0.2s forwards;
}

@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Font Sizes */
@media (max-width: 768px) {
  .page-title h1 {
    font-size: 42px;
  }
}

/* Services Page - New Layout */

.service-icons-wrapper {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  text-align: center;
}

.icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100px; /* Adjust based on container width */
}

.icon-item i {
  font-size: 48px;
  color: var(--primary-navy);
  margin-bottom: 15px;
  transition: var(--transition);
}

.icon-item span {
  color: var(--primary-navy);
  font-weight: 600;
  font-size: 14px;
}

.icon-item:hover i {
  color: var(--accent-color);
  transform: translateY(-5px);
}

.service-detail-row {
  padding: 80px 0;
  border-bottom: 1px solid #eee;
}

.service-detail-row.bg-light {
  background-color: #eef3f6; /* Matching the screenshot's light blue-gray */
  border-bottom: none;
}

.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.service-detail-item h3 {
  font-size: 28px;
  color: var(--primary-navy);
  margin-bottom: 20px;
  font-weight: 800;
  text-transform: capitalize;
}

.service-detail-item p {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
}

@media (max-width: 768px) {
  .service-icons-wrapper {
    justify-content: center;
  }

  .service-detail-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .service-detail-row {
    padding: 50px 0;
    text-align: center;
  }
}

/* Refined Services Section Typography */
.service-detail-item h3 {
  font-size: 30px; /* Slightly larger for impact */
  letter-spacing: -0.5px;
  margin-bottom: 24px;
}

.service-detail-item p {
  font-size: 17px; /* Improved readability */
  color: #555; /* Soften the black */
  max-width: 90%;
}

/* Ensure alternating contrast is visible */
.service-detail-row.bg-light {
  background-color: #f0f4f8; /* Slightly deeper tint for better contrast on high-res screens */
}

/* Mobile responsiveness tweak */
@media (max-width: 768px) {
  .service-detail-item p {
    max-width: 100%;
    text-align: center; /* Center text on mobile to match centered headings */
  }
}

/* Enhanced Service Cards */
.service-detail-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  /* "Card" look option: if we wanted full cards, we'd add bg/shadow here. 
     For now, we just enhance the icon/title relationship as requested by "add icons" */
  transition: var(--transition);
}

.service-detail-item h3 i {
  color: var(--accent-color);
  margin-right: 12px;
  font-size: 28px;
  vertical-align: middle;
}

/* Optional: Make the top icon grid items look more like "cards" */
.icon-item {
  background: #fff;
  padding: 20px 15px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid transparent;
  width: 130px; /* Slightly wider for card feel */
  transition: all 0.3s ease;
}

.icon-item:hover {
  border-color: var(--accent-color);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Improved Services Icons Grid */
.service-icons-wrapper {
  display: grid;
  grid-template-columns: repeat(
    4,
    1fr
  ); /* Force 4 columns for 8 items -> 2 nice rows */
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
  justify-items: center;
}

.icon-item {
  width: 100%; /* Fill the grid cell */
  max-width: 200px; /* But don't get too huge */
  aspect-ratio: 1 / 1; /* Make them square tiles */
  justify-content: center;
  padding: 20px;
  background: #fff;
  border-radius: 20px; /* Softer, more modern radius */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03); /* Very subtle, premium shadow */
  border: 2px solid transparent; /* Prepare for hover border */
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy spring transition */
}

.icon-item i {
  font-size: 42px;
  margin-bottom: 20px;
  color: var(--primary-navy);
  transition: color 0.3s ease;
}

.icon-item span {
  font-size: 15px;
  font-weight: 700;
  color: #444;
}

/* Hover Effects */
.icon-item:hover {
  border-color: var(--accent-color);
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(255, 77, 77, 0.15); /* Colored shadow glow */
}

.icon-item:hover i {
  color: var(--accent-color);
  transform: scale(1.1);
}

.icon-item:hover span {
  color: var(--accent-color);
}

/* Responsive */
@media (max-width: 992px) {
  .service-icons-wrapper {
    grid-template-columns: repeat(3, 1fr); /* 3 columns on tablet */
  }
}

@media (max-width: 768px) {
  .service-icons-wrapper {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile */
    gap: 20px;
  }

  .icon-item {
    padding: 15px;
  }
}

/* Contact Page Enhancements */

.contact-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 50px;
  background: #fff;
  padding: 0;
  border-radius: 0;
}

.contact-form-side {
  flex: 1;
  padding: 0;
}

.contact-info-side {
  flex: 1;
  padding-left: 30px;
}

.contact-info-side h2 {
  font-size: 36px;
  color: var(--primary-navy);
  margin-bottom: 20px;
  font-weight: 700;
}

.contact-desc {
  color: #555;
  margin-bottom: 40px;
  line-height: 1.6;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 8px;
  font-size: 15px;
}

.form-group .required {
  color: red;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 4px; /* Slightly squarer as per screenshot */
  font-family: inherit;
  font-size: 14px;
  color: #333;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary-navy);
  outline: none;
}

.submit-btn {
  background-color: #000080; /* Deep Navy */
  width: auto;
  min-width: 200px;
  border-radius: 4px;
  padding: 12px 30px;
  font-size: 16px;
  text-transform: capitalize;
  font-weight: 600;
  border: none;
  color: #fff;
}

.submit-btn:hover {
  background-color: #000060;
}

/* Contact Details List */
.contact-details-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 20px;
}

.icon-circle {
  width: 50px;
  height: 50px;
  background-color: #000080;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-circle i {
  color: #fff;
  font-size: 20px;
}

.detail-text h4 {
  color: #000080; /* Navy Blue */
  font-size: 16px;
  margin-bottom: 5px;
  font-weight: 700;
}

.detail-text p {
  color: #666;
  font-size: 14px;
  margin: 0;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .contact-wrapper {
    flex-direction: column;
    padding: 0;
  }
  .contact-form-side {
    width: 100%;
  }
  .contact-info-side {
    padding-left: 0;
    margin-top: 50px;
  }
  .form-group {
    margin-bottom: 25px;
  }
  .submit-btn {
    width: auto;
    padding: 12px 60px;
    display: inline-block;
  }
}

/* Form Enhancements and Typography Refinement */
.contact-info-side h2 {
  font-family: "Poppins", sans-serif;
  letter-spacing: -0.5px;
}

.submit-btn {
  transition: all 0.3s ease;
  cursor: pointer;
  letter-spacing: 0.5px;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 128, 0.2);
}

/* Map Section Adjustment */
.location-section.section-padding {
  padding-top: 0; /* Tighten up spacing after the form */
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
  font-size: 32px;
  color: var(--primary-navy);
  font-weight: 700;
  position: relative;
  display: inline-block;
  width: 100%;
}

.map-container iframe {
  border-radius: 12px;
  filter: grayscale(0%); /* Ensure full color map */
}

/* Project Page Enhancements */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 30px;
}

.project-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.4s ease;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.project-image {
  position: relative;
  overflow: hidden;
  height: 260px;
}

/* Project Swiper Enhancements */
.project-card-slider {
  width: 100%;
  height: 100%;
}

.project-card-slider .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card .swiper-pagination {
  bottom: 80px !important; /* Move above the content zone */
}

.project-card .swiper-pagination-bullet {
  background: #fff;
  opacity: 0.5;
}

.project-card .swiper-pagination-bullet-active {
  background: var(--accent-color);
  opacity: 1;
}

/* Ensure overlay is above slider but pagination is still clickable if needed */
.project-card:hover .swiper-pagination {
  opacity: 0;
}

/* Modal Styling */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.85); /* Black w/ opacity */
  backdrop-filter: blur(8px);
  animation: fadeIn 0.3s;
  align-items: center; /* For flex display */
  justify-content: center;
}

.modal-content {
  background-color: #fff;
  margin: auto;
  padding: 0;
  border-radius: 20px;
  width: 95%;
  max-width: 1100px;
  position: relative;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  overflow: hidden;
}

.close-modal {
  color: #fff;
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
  z-index: 100;
  background: rgba(0, 0, 0, 0.5);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.close-modal:hover {
  background: var(--accent-color);
  transform: rotate(90deg);
}

.modal-body {
  display: flex;
  flex-direction: column;
}

.modal-slider-container {
  width: 100%;
  position: relative;
  background: #000;
}

.modal-project-slider {
  width: 100%;
  height: 400px;
}

.modal-project-slider .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Keep aspect ratio for various image sizes in modal */
}

.modal-project-slider .swiper-button-next,
.modal-project-slider .swiper-button-prev {
  color: #fff;
  background: rgba(0, 0, 0, 0.3);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.modal-project-slider .swiper-button-next:hover,
.modal-project-slider .swiper-button-prev:hover {
  background: var(--accent-color);
}

.modal-text {
  padding: 40px;
}

.modal-category {
  display: block;
  font-size: 13px;
  text-transform: uppercase;
  color: var(--accent-color);
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

#modal-title {
  font-size: 32px;
  color: var(--primary-navy);
  margin-bottom: 20px;
  font-weight: 800;
}

#modal-description {
  font-size: 16px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 30px;
}

/* Responsive Modal Tablet/Desktop */
@media (min-width: 992px) {
  .modal-body {
    flex-direction: row;
    min-height: 600px;
  }
  
  .modal-slider-container {
    width: 60%;
  }
  
  .modal-project-slider {
    height: 100%;
  }
  
  .modal-project-slider .swiper-slide img {
    object-fit: cover;
  }
  
  .modal-text {
    width: 40%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 1px solid #eee;
  }
}

@media (max-width: 767px) {
  .modal-project-slider {
    height: 300px;
  }
  
  .modal-text {
    padding: 30px 20px;
  }
}

/* Restoring "Modern" Project Card structural styles that might have been overshadowed */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 40px;
}

.project-card {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: 30px; /* Smooth rounded corners from image */
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  background: #fff;
  transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  border: none;
}

.project-image {
  height: 100%;
  width: 100%;
  position: relative;
}

/* Base state: Dark Black Overlay for clarity */
.project-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.95) 0%,
    rgba(0, 0, 0, 0.6) 40%,
    transparent 100%
  );
  z-index: 1;
  transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
  pointer-events: none;
}

.project-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 35px; /* Generous padding */
  z-index: 3;
  transform: translateY(20px);
  transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  text-align: left;
}

.project-category {
  display: block;
  color: #ff5e57; /* Light red/orange accent from image */
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.project-content h3 {
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 5px;
  line-height: 1.2;
}

.project-content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
  opacity: 0;
  height: 0;
  overflow: hidden;
  transition: all 0.4s ease;
}

/* Floating Action Button from image */
.btn-view {
  position: absolute;
  top: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: #fff;
  border-radius: 50%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  color: #000080; /* Primary navy arrow */
  font-size: 20px;
  z-index: 10;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-view i {
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-10px);
}

.project-card:hover::after {
  height: 80%; /* Gradient expands on hover */
  background: linear-gradient(
    to top,
    rgba(0, 0, 128, 0.95) 0%,
    rgba(0, 0, 128, 0.7) 50%,
    transparent 100%
  );
}

.project-card:hover .project-content {
  transform: translateY(0);
}

.project-card:hover .project-content p {
  opacity: 1;
  height: auto;
  margin-top: 10px;
}

.btn-view:hover {
  background: var(--accent-color);
  color: #fff;
  transform: scale(1.1);
}

.btn-view:hover i {
  transform: translateX(3px);
}

/* Pagination dot placement for modern card */
.project-card .swiper-pagination {
  bottom: auto !important;
  top: 30px !important;
  left: 30px !important;
  width: auto !important;
  display: flex;
  gap: 5px;
}

.project-card .swiper-pagination-bullet {
  margin: 0 !important;
  background: #fff;
  opacity: 0.5;
}

.project-card .swiper-pagination-bullet-active {
  background: #fff;
  opacity: 1;
}

/* Dropdown Menu Styles - Modernized */
.nav-links {
  align-items: center;
}

.dropdown {
  position: relative;
  display: inline-block;
  height: 100%; /* Ensure it takes full height of nav for better hover area */
}

/* Ensure link inside dropdown aligns like others */
.dropdown > a {
  display: flex; /* Or inline-block */
  align-items: center;
  height: 100%;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #fff;
  min-width: 240px; /* Slightly wider */
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
  z-index: 1000;
  border-radius: 12px; /* Smoother corners */
  top: 100%; /* Position right below */
  left: 50%;
  transform: translateX(-50%); /* Center it relative to parent */
  padding: 15px 0;
  animation: slideUpFade 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);

  /* The "Sandwich" Border Look */
  border-top: 4px solid var(--primary-navy);
  border-bottom: 4px solid var(--primary-navy);
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content a {
  color: #555;
  padding: 15px 30px;
  text-decoration: none;
  display: block;
  font-size: 15px;
  font-weight: 500;
  text-transform: capitalize;
  border-bottom: 1px solid rgba(0, 0, 0, 0.03); /* Vey subtle divider */
  transition: all 0.2s ease;
  letter-spacing: 0.5px;
  text-align: left; /* Keep left alignment for list */
}

.dropdown-content a:last-child {
  border-bottom: none;
}

.dropdown-content a:hover {
  background-color: #f8f9fa;
  color: var(--primary-navy);
  padding-left: 35px; /* Slide effect */
  font-weight: 600;
}

/* Animation */
@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Ensure parent link keeps active state style on hover */
.dropdown:hover > a {
  color: var(--primary-navy);
}
.dropdown:hover > a::after {
  width: 100%;
}

/* Project Filtering Styles */
.projects-filter {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 25px;
  border: 2px solid var(--primary-navy);
  border-radius: 30px;
  background: transparent;
  color: var(--primary-navy);
  font-family: var(--font-main);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary-navy);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 128, 0.2);
}

/* Hide filtered items */
.project-card.hidden {
  display: none;
}

/* Animation for filtering */
.project-card {
  animation: fadeIn 0.5s ease;
}

/* Fallback Message & Grid Adjustment */
.projects-grid {
  grid-template-columns: repeat(
    auto-fill,
    minmax(280px, 1fr)
  ); /* Adjusted for 3-4 columns */
}

.no-projects-message {
  text-align: center;
  padding: 40px;
  width: 100%;
  grid-column: 1 / -1; /* Span all columns */
  display: none; /* Hidden by default */
}

.no-projects-message p {
  font-size: 18px;
  color: #777;
}

.no-projects-message i {
  font-size: 40px;
  color: var(--primary-navy);
  margin-bottom: 20px;
  opacity: 0.5;
}

/* Revised Bridge Strategy */
.dropdown-content {
  top: 100%; /* Start exactly at bottom of link */
  margin-top: 15px; /* Create visual gap */
}

/* 
   The pseudo-element attached to the dropdown-content (or the dropdown itself) 
   must cover the gap created by margin-top.
*/
.dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 25px; /* Covers the 15px margin + some buffer */
  background: transparent;
  display: block; /* Always helpful to be there, or show on hover */
}
/* And the bridge needs to cover that 15px gap */
.dropdown::after {
  height: 20px; /* Covers the 15px gap + 5px overlap */
}

/* Add a subtle arrow pointing up? No, the image didn't have one */
.dropdown-content {
  top: 100%;
  margin-top: 15px;
}
/* Footer Social Links */
.social-links {
  display: flex;
  gap: 15px;
  margin-top: 25px;
}

.social-links a {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  border-radius: 50%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
  background: var(--accent-color);
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(255, 77, 77, 0.3);
  border-color: var(--accent-color);
}

.social-links a i {
  font-size: 20px;
}
