:root {
  --primary: #952c2d;
  --primary-dark: #7a2425;
  --white: #fff;
  --light: #f8f9fa;
  --dark: #212529;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  scrollbar-width: thin;
}

body {
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero Nav Styles */
.hero-nav {
  width: 100%;
  margin-top: -1.5em;
  padding: 2.5rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 3rem;
  margin: 0;
  padding: 0;
  text-transform: uppercase;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

@media (min-width: 769px) {
  .nav-menu {
    position: absolute;
    transform: translateX(-50%);
    opacity: 1;
    visibility: visible;
    background: none;
    box-shadow: none;
    width: auto;
    height: auto;
    padding: 0;
    flex-direction: row;
  }

  .nav-menu {
    margin-top: 0;
    padding: 0;
  }
}

.nav-menu li {
  position: relative;
}

.nav-menu a {
  color: var(--white);
  font-weight: 500;
  text-decoration: none;
  font-size: 1.1rem;
  letter-spacing: 0.3px;
  padding: 0;
  position: relative;
  transition: all 0.3s ease;
}

.nav-menu a::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: 0;
  left: 0;
  background: linear-gradient(to right, var(--white), var(--white));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-menu a:hover {
  color: var(--light);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.nav-menu a:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-menu li.active a {
  color: var(--light);
  font-weight: 600;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.7);
}

.nav-menu li.active a::before {
  transform: scaleX(1);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  background: linear-gradient(rgba(33, 37, 41, 0.85), rgba(149, 44, 45, 0.95)),
    url("../img/herobg.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  padding: 2rem 0;
  position: relative;
}

/* ============================================
   PREMIUM HERO TEXT GROUP
   ============================================ */

.hero-text-group {
  margin-bottom: 3rem;
}

.welcome-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.welcome-badge:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.welcome-badge i {
  font-size: 1rem;
}

/* Company Name Wrapper */
.company-name-wrapper {
  margin-bottom: 2rem;
}

.company-name {
  margin: 0;
  padding: 0;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.name-main {
  display: block;
  font-size: 5.5rem;
  font-weight: 900;
  color: var(--white);
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  letter-spacing: -2px;
  line-height: 1;
  margin: 0;
}

.company-subtitle {
  display: block;
  font-size: 3.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ffc107, #ff9800);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 2px;
  line-height: 1.1;
  margin: 0.5rem 0;
  padding: 0;
}

.company-description {
  display: block;
  font-size: 1.5rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 1px;
  line-height: 1.4;
  margin: 0;
  padding: 0;
}

.hero-description {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.8;
  margin-top: 2rem;
  margin-bottom: 2.5rem;
  max-width: 600px;
  font-weight: 400;
}

/* Hero Image Enhancement */
.hero-image-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.hero-logo {
  position: relative;
  z-index: 2;
  animation: float 3s ease-in-out infinite;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2));
}

.hero-image-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(255, 193, 7, 0.15), transparent);
  border-radius: 50%;
  filter: blur(40px);
  animation: pulse-glow 3s ease-in-out infinite;
  z-index: 1;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

/* Hero Buttons Enhancement */
.hero-btns {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.hero-btn-primary,
.hero-btn-secondary {
  font-weight: 700;
  font-size: 1rem;
  padding: 0.9rem 2rem;
  transition: all 0.3s ease;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  white-space: nowrap;
}

.hero-btn-primary {
  background: var(--white);
  color: var(--primary);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.hero-btn-primary:hover {
  background: #ffc107;
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(255, 193, 7, 0.3);
}

.hero-btn-secondary {
  border: 2px solid rgba(255, 255, 255, 0.6);
  color: var(--white);
  background: transparent;
}

.hero-btn-secondary:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
  backdrop-filter: blur(10px);
}

.hero h1 {
  font-weight: 800;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  line-height: 75px;
  font-size: 2.4rem;
}

.hero img {
  height: auto;
  width: 500px;
}

.hero p {
  font-size: 1.2rem;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--white);
  color: var(--primary);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: transform 0.3s;
}

.cta-button:hover {
  transform: translateY(-3px);
}

/* About Section */
.about {
  padding: 0;
  background: linear-gradient(to bottom, #f8f9fa, #fff);
  position: relative;
  overflow: hidden;
}

.about::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(135deg, transparent, rgba(149, 44, 45, 0.05));
  clip-path: polygon(100% 0, 100% 100%, 0 100%, 30% 0);
}

.section-header {
  margin-bottom: 5rem;
  position: relative;
}

.section-header::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--primary);
}

.about-content {
  padding-right: 4rem;
  position: relative;
}

.about-description {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #4a4a4a;
  margin-bottom: 3rem;
  position: relative;
  padding-left: 2rem;
  border-left: 4px solid var(--primary);
}

.about-signature {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.about-signature span {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.signature-line {
  flex-grow: 1;
  height: 2px;
  background: linear-gradient(to right, var(--primary), transparent);
}

.leadership-profile {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  text-align: center;
  position: relative;
  padding: 3rem 2rem;
}

.leadership-profile::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent, rgba(149, 44, 45, 0.05));
  z-index: 1;
}

.profile-image {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 0 auto 2rem;
  z-index: 2;
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--primary);
  padding: 5px;
  background: var(--white);
  transition: all 0.4s ease;
}

.leadership-profile:hover {
  transform: translateY(-10px);
}

.leadership-profile:hover .profile-image img {
  transform: scale(1.05);
  border-color: var(--primary-dark);
}

.profile-content {
  position: relative;
  z-index: 2;
}

.profile-content h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.profile-content .position {
  display: inline-block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 0.5rem 1.5rem;
  background: rgba(149, 44, 45, 0.1);
  border-radius: 30px;
}

@media (max-width: 768px) {
  .about {
    padding: 4rem 0;
  }

  .about-content {
    padding-right: 0;
    margin-bottom: 2rem;
    margin-top: -2em !important;
    text-align: center;
  }

  .about-description {
    font-size: 0.9rem !important;
    padding-left: 0;
    border-left: none;
    text-align: center;
    margin-bottom: -3em !important;
  }

  .about-signature {
    justify-content: center;
    margin-top: 2rem;
    font-size: 0.5em !important;
    white-space: nowrap;
    display: none !important;
  }

  .profile-image {
    width: 180px;
    height: 180px;
  }

  .profile-content h3 {
    font-size: 1.3rem !important;
  }

  .profile-content .position {
    font-size: 0.7rem !important;
    padding: 0.4rem 1.2rem;
  }
}

/* ============================================
   RESPONSIVE HERO SECTION WITH FLUID FONTS
   ============================================ */

/* Large Desktop (1400px+) */
@media (min-width: 1400px) {
  .name-main {
    font-size: 6rem;
  }

  .company-subtitle {
    font-size: 3.75rem;
  }

  .company-description {
    font-size: 1.65rem;
  }

  .hero-description {
    font-size: 1.15rem;
  }

  .hero-btn-primary,
  .hero-btn-secondary {
    font-size: 1.05rem;
    padding: 1rem 2.25rem;
  }
}

/* Desktop (1024px - 1399px) */
@media (max-width: 1399px) and (min-width: 1024px) {
  .hero-btns {
    margin-top: 2rem;
    margin-bottom: 3rem;
  }

  .hero-image {
    margin-top: 2rem;
    max-width: 70%;
  }

  .name-main {
    font-size: 5rem;
  }

  .company-subtitle {
    font-size: 3.25rem;
  }

  .company-description {
    font-size: 1.4rem;
  }

  .hero-description {
    font-size: 1.05rem;
  }

  .hero-btn-primary,
  .hero-btn-secondary {
    font-size: 0.95rem;
    padding: 0.85rem 1.9rem;
  }
}

/* iPad Pro Large (1024px - 1366px) - Column Layout */
@media (max-width: 1366px) and (min-width: 1024px) {
  .hero-content {
    text-align: center;
  }

  .hero-content .row {
    flex-direction: column;
    align-items: center;
  }

  .hero-content .col-lg-6 {
    width: 100%;
    flex-basis: 100%;
  }

  .hero-text-group {
    margin: 0 auto 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 700px;
  }

  .welcome-badge {
    font-size: 0.85rem;
    padding: 0.65rem 1.3rem;
    margin-bottom: 1.75rem;
    align-self: center;
  }

  .company-name-wrapper {
    margin-bottom: 1.75rem;
    width: 100%;
  }

  .name-main {
    font-size: 4.25rem;
    line-height: 1.2;
  }

  .company-subtitle {
    font-size: 2.75rem;
    margin: 0.5rem 0;
    line-height: 1.25;
  }

  .company-description {
    font-size: 1.25rem;
    margin: 0.3rem 0 0;
    line-height: 1.4;
  }

  .hero-description {
    font-size: 1rem;
    margin-top: 1.75rem;
    margin-bottom: 2.25rem;
    max-width: 650px;
    line-height: 1.65;
    align-self: center;
  }

  .hero-btns {
    gap: 1rem;
    margin-top: 1.75rem;
    margin-bottom: 2.5rem;
    justify-content: center;
    width: 100%;
  }

  .hero-btn-primary,
  .hero-btn-secondary {
    padding: 0.9rem 2rem;
    font-size: 0.95rem;
  }

  .hero-image-wrapper {
    max-width: 450px;
    margin: 0 auto;
    width: 100%;
  }

  .hero-logo {
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2));
  }
}

/* Tablet/iPad (768px - 1023px) */
@media (max-width: 1023px) and (min-width: 768px) {
  .hero-content {
    text-align: center;
  }

  .hero-text-group {
    margin: 0 auto 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .welcome-badge {
    font-size: 0.8rem;
    padding: 0.6rem 1.2rem;
    margin-bottom: 1.5rem;
    align-self: center;
  }

  .company-name-wrapper {
    margin-bottom: 1.5rem;
    width: 100%;
  }

  .name-main {
    font-size: 3.5rem;
    line-height: 1.2;
  }

  .company-subtitle {
    font-size: 2.25rem;
    margin: 0.5rem 0;
    line-height: 1.25;
  }

  .company-description {
    font-size: 1.1rem;
    margin: 0.3rem 0 0;
    line-height: 1.4;
  }

  .hero-description {
    font-size: 0.95rem;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
    max-width: 600px;
    line-height: 1.6;
    align-self: center;
  }

  .hero-btns {
    gap: 0.85rem;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
    justify-content: center;
  }

  .hero-btn-primary,
  .hero-btn-secondary {
    padding: 0.8rem 1.6rem;
    font-size: 0.9rem;
  }

  .hero-image-wrapper {
    max-width: 350px;
    margin: 0 auto;
  }
}

/* Small Tablet/Large Phone (576px - 767px) */
@media (max-width: 767px) and (min-width: 576px) {
  .hero-content {
    text-align: center;
  }

  .hero-text-group {
    margin: 0 auto 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .welcome-badge {
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
    margin-bottom: 1.25rem;
    align-self: center;
  }

  .company-name-wrapper {
    margin-bottom: 1.25rem;
    width: 100%;
  }

  .name-main {
    font-size: 2.75rem;
    line-height: 1.15;
  }

  .company-subtitle {
    font-size: 1.75rem;
    margin: 0.4rem 0;
    line-height: 1.2;
  }

  .company-description {
    font-size: 1rem;
    margin: 0.25rem 0 0;
    line-height: 1.35;
  }

  .hero-description {
    font-size: 0.9rem;
    margin-top: 1.2rem;
    margin-bottom: 1.5rem;
    max-width: 550px;
    line-height: 1.55;
    align-self: center;
  }

  .hero-btns {
    gap: 0.7rem;
    margin-top: 1.2rem;
    margin-bottom: 1.5rem;
    justify-content: center;
  }

  .hero-btn-primary,
  .hero-btn-secondary {
    padding: 0.75rem 1.4rem;
    font-size: 0.85rem;
  }

  .hero-btn-primary i,
  .hero-btn-secondary i {
    font-size: 0.9rem;
  }

  .hero-image-wrapper {
    max-width: 280px;
    margin: 0 auto;
  }
}

/* Mobile Phone (320px - 575px) */
@media (max-width: 575px) {
  .hero-content {
    text-align: center;
  }

  .hero-text-group {
    margin: 0 auto 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .welcome-badge {
    font-size: 0.7rem;
    padding: 0.45rem 0.9rem;
    margin-bottom: 1rem;
    align-self: center;
  }

  .company-name-wrapper {
    margin-bottom: 1rem;
    width: 100%;
  }

  .name-main {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
    line-height: 1.1;
  }

  .company-subtitle {
    font-size: clamp(1.25rem, 4.5vw, 1.75rem);
    margin: 0.3rem 0;
    letter-spacing: 0.5px;
    line-height: 1.15;
  }

  .company-description {
    font-size: clamp(0.9rem, 3vw, 1rem);
    margin: 0.2rem 0 0;
    line-height: 1.3;
  }

  .hero-description {
    font-size: clamp(0.8rem, 2.8vw, 0.9rem);
    margin-top: 0.9rem;
    margin-bottom: 1.25rem;
    max-width: 100%;
    line-height: 1.5;
    align-self: center;
  }

  .hero-btns {
    gap: 0.5rem;
    margin-top: 1rem;
    margin-bottom: 1.25rem;
    flex-wrap: nowrap;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    padding: 0;
  }

  .hero-btn-primary,
  .hero-btn-secondary {
    padding: 0.7rem 1rem;
    font-size: clamp(0.75rem, 2.5vw, 0.85rem);
    gap: 0.4rem;
    flex: 1;
    min-width: 0;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    margin: 0;
  }

  .hero-btn-primary i,
  .hero-btn-secondary i {
    font-size: clamp(0.75rem, 2vw, 0.85rem);
  }

  .hero-image-wrapper {
    max-width: 240px;
    margin: 0 auto;
  }

  .hero-logo {
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.15));
  }
}

/* Enhanced About Section Responsive Styles for Tablets */
@media (max-width: 1024px) {
  .about-content {
    padding-right: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .about-description {
    font-size: 1rem;
    padding: 0 2rem;
    border-left: none;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2rem;
  }

  .section-header {
    text-align: center;
  }

  .leadership-profile {
    max-width: 600px;
    margin: 0 auto;
  }
}

/* Additional iPad-specific adjustments */
@media (min-width: 768px) and (max-width: 1024px) {
  .about {
    padding: 4rem 2rem;
  }

  .about-description {
    font-size: 1.1rem;
    line-height: 1.7;
  }

  .profile-image {
    width: 200px;
    height: 200px;
  }

  .profile-content h3 {
    font-size: 1.8rem;
  }
}

/* Remove old styles */
.achievement-grid,
.achievement-item,
.achievement-number,
.achievement-label,
.stats-container,
.stats,
.stat-item,
.stat-circle {
  display: none;
}

/* Services Section */
.services {
  padding: 5rem 0;
  background: linear-gradient(rgba(33, 37, 41, 0.85), rgba(149, 44, 45, 0.95)),
    url("../img/herobg.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--white);
}

.services h2 {
  text-align: center;
  color: var(--white);
  margin-bottom: 3rem;
  text-transform: uppercase;
  font-weight: 800;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--white);
  border-radius: 15px;
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.1);
  text-align: center;
}

.service-card p {
  color: var(--dark);
}

.service-card h3 {
  color: var(--dark);
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  transition: height 0.3s ease;
  z-index: 0;
  opacity: 0.1;
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-card:hover::before {
  height: 100%;
}

.icon-box {
  width: 80px;
  height: 80px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  transition: all 0.3s ease;
}

.icon-box i {
  font-size: 2rem;
  color: var(--white);
  transition: transform 0.3s ease;
}

.service-card:hover .icon-box {
  background: var(--white);
  box-shadow: 0 0 20px rgba(149, 44, 45, 0.3);
}

.service-card:hover .icon-box i {
  color: var(--primary);
  transform: scale(1.1);
}

.service-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  display: inline-flex;
  align-items: center;
}

.service-link i {
  transition: transform 0.3s ease;
}

.service-link:hover i {
  transform: translateX(5px);
}

/* Projects Section */
.projects {
  padding: 5rem 0;
  background: #f9f9f9;
}

.projects h2 {
  text-align: center;
  color: var(--primary);
  margin-bottom: 3rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.project-carousel {
  position: relative;
  overflow: hidden;
}

.project-card {
  position: relative;
  overflow: hidden;
  height: 500px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.project-image {
  position: relative;
  overflow: hidden;
  height: 100%;
  width: 100%;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.1);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(149, 44, 45, 0.9), rgba(33, 37, 41, 0.95));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-info {
  text-align: center;
  padding: 20px;
  color: var(--white);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s ease;
}

.project-card:hover .project-info {
  transform: translateY(0);
  opacity: 1;
}

.project-info h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.project-info p {
  margin-bottom: 20px;
}

.project-info .btn {
  transition: all 0.3s ease;
  font-weight: 500;
  padding: 8px 25px;
}

.project-info .btn:hover {
  background: var(--primary);
  color: var(--white);
}

.project-category {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  backdrop-filter: blur(5px);
}

/* Contact Section */
.contact {
  padding: 5rem 0;
}

.contact h2 {
  text-align: center;
  color: var(--primary);
  margin-bottom: 3rem;
}

.contact {
  background: var(--light);
}

.contact-subtitle {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: block;
}

.contact-card {
  background: var(--white);
  padding: 3rem 2rem;
  border-radius: 15px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-card:hover,
.contact-card.active {
  background: var(--primary);
  transform: translateY(-10px);
}

.contact-icon {
  width: 80px;
  height: 80px;
  background: rgba(149, 44, 45, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  transition: all 0.4s ease;
}

.contact-icon i {
  font-size: 2rem;
  color: var(--primary);
  transition: all 0.4s ease;
}

.contact-card:hover .contact-icon,
.contact-card.active .contact-icon {
  background: rgba(255, 255, 255, 0.2);
}

.contact-card:hover .contact-icon i,
.contact-card.active .contact-icon i {
  color: var(--white);
}

.contact-card h4 {
  margin-bottom: 1rem;
  font-weight: 600;
  transition: all 0.4s ease;
}

.contact-card p {
  color: var(--dark);
  margin-bottom: 1.5rem;
  transition: all 0.4s ease;
}

.contact-card:hover h4,
.contact-card:hover p,
.contact-card.active h4,
.contact-card.active p {
  color: var(--white);
}

.contact-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.4s ease;
}

.contact-card:hover .contact-link,
.contact-card.active .contact-link {
  color: var(--white);
}

.contact-form-wrapper {
  background: var(--white);
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--dark);
}

.form-control {
  height: 50px;
  padding: 0.75rem 1.25rem;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: none;
}

textarea.form-control {
  height: auto;
  min-height: 150px;
}

.btn-primary {
  background: var(--primary);
  border: none;
  font-weight: 600;
  padding: 15px 40px;
  border-radius: 10px;
  transition: all 0.4s ease;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

.btn-primary i {
  transition: transform 0.4s ease;
}

.btn-primary:hover i {
  transform: translateX(5px);
}

.submit-button {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 12px 30px;
  font-weight: 600;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.submit-button:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* Footer */
.footer {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  padding: 3rem 0 1rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
  text-align: center;
}

.footer-brand {
  max-width: 600px;
  margin: 0 auto 2rem;
}

.footer-logo {
  width: 180px;
  height: auto;
  border-radius: 10px;
  padding: 10px;
  transition: transform 0.3s ease;
  margin: 0 auto 1.5rem;
  display: block;
}

.social-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.social-links a {
  width: 60px;
  height: 60px;
  font-size: 1.5rem;
}

.footer-brand p {
  font-size: 1.3rem;
  line-height: 1.6;
  opacity: 0.9;
  text-align: center;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 5px;
  transition: all 0.3s ease;
  color: var(--white);
  text-decoration: none;
}

.social-links a:hover {
  background: var(--white);
  color: var(--primary);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
  .footer {
    padding: 0.5rem 0.5em 0.5rem !important;
  }

  .footer-logo {
    width: 150px;
    margin-bottom: -0.2em;
  }

  .footer-brand p {
    font-size: 0.9rem;
    margin-bottom: -1em;
  }

  .hero h1 {
    font-size: 1em;
  }

  .about p {
    font-size: 0.9em;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .social-links {
    margin-top: 1rem;
  }

  .contact-form-wrapper {
    padding: 2rem 1.5rem;
  }

  .contact-card {
    padding: 2rem 1.5rem;
    margin-bottom: 1rem;
  }

  .contact-icon {
    width: 60px;
    height: 60px;
  }

  .contact-icon i {
    font-size: 1.5rem;
  }

  .contact h2 {
    font-size: 2rem !important;
  }

  .btn-primary {
    width: 100%;
    padding: 15px 20px !important;
    font-size: 1em !important;
  }

  .project-card {
    height: 400px;
    border-radius: 15px;
  }

  .project-info {
    padding: 1.5rem;
  }

  .project-info h3 {
    font-size: 1.3rem !important;
  }

  .project-info p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }

  .project-category {
    font-size: 0.8rem;
    padding: 0.3rem 1rem;
    margin-bottom: 0.5rem;
  }

  .btn-lg {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
  }

  .carousel-indicators {
    bottom: 1rem;
  }

  .project-overlay {
    padding: 2rem 1rem;
  }

  .project-card {
    height: 450px;
    border-radius: 20px;
    margin: 0 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  }

  .project-image img {
    object-position: center;
  }

  .project-overlay {
    background: linear-gradient(rgba(149, 44, 45, 0.9), rgba(33, 37, 41, 0.95));
    padding: 2rem;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
  }

  .project-info {
    padding: 2rem;
    text-align: center;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
  }

  .project-card:hover .project-overlay,
  .project-card:active .project-overlay {
    opacity: 1;
  }

  .project-card:hover .project-info,
  .project-card:active .project-info {
    transform: translateY(0);
    opacity: 1;
  }

  .project-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
  }

  .project-info p {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    line-height: 1.6;
  }
  .project-category {
    font-size: 0.75rem;
    padding: 0.25rem 1rem;
    margin-bottom: 0.75rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
  }

  .project-info .btn-lg {
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary);
    border: none;
    transition: all 0.3s ease;
  }

  /* .project-info .btn-lg:hover {
    background: var(--white);
    transform: translateY(-2px);
  } */

  .carousel-indicators {
    bottom: 0.5rem;
    margin-bottom: 0.5rem;
  }

  .carousel-indicators button {
    width: 8px;
    height: 8px;
    /* border-radius: 50%; */
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    margin: 0 4px;
  }

  .carousel-indicators button.active {
    width: 24px;
    border-radius: 4px;
    background-color: var(--white);
  }

  .carousel-control-prev,
  .carousel-control-next {
    width: 40px;
    height: 40px;
    /* background: rgba(255, 255, 255, 0.2); */
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    backdrop-filter: blur(5px);
  }

  .carousel-control-prev {
    left: 1rem;
  }

  .carousel-control-next {
    right: 1rem;
  }

  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    width: 1.2rem;
    height: 1.2rem;
  }
}

@media (min-width: 769px) {
  .navbar {
    padding: 0.8rem 0;
  }

  .navbar > .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
  }

  .nav-menu {
    width: auto;
    position: relative;
    left: auto;
    transform: none;
    margin: 0 auto;
  }

  .hamburger {
    display: none;
  }
}

/* Mobile Menu Styles */
.hamburger {
  display: none;
  cursor: pointer;
  z-index: 1001;
  padding: 8px;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  transition: all 0.3s ease;
  background-color: var(--white);
}

.hamburger.active .bar:nth-child(2) {
  opacity: 0;
}

.hamburger.active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 768px) {
  .navbar {
    padding: 0.5rem 1rem;
  }

  .hamburger {
    display: block;
    position: absolute;
    top: 25px;
    right: 25px;
    z-index: 1002;
    background: transparent;
    padding: 8px;
    border-radius: 5px;
    transition: all 0.3s ease;
  }

  .nav-menu {
    position: fixed;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 1.5rem;
    background: linear-gradient(
      45deg,
      rgba(33, 37, 41, 0.98),
      var(--primary-dark)
    );
    padding: 4.5rem 1.25rem 2rem;
    width: 280px;
    height: 100%;
    max-height: 100vh;
    overflow-y: auto; /* Add scroll when content is too tall */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    transition: all 0.4s ease-in-out;
    z-index: 1001;
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    transform: translateX(-100%);
    visibility: hidden;
    opacity: 0;
  }

  .nav-menu.active {
    transform: translateX(0);
    visibility: visible;
    opacity: 1;
  }

  .nav-menu li {
    margin: 0;
    width: 100%;
  }

  .nav-menu a {
    font-size: 0.85rem;
    padding: 0.75rem 1rem;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    font-weight: 500;
    letter-spacing: 0.3px;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-menu a:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  }

  .nav-menu a.active {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    font-weight: 600;
  }

  /* section {
    padding: 3rem 10px !important;
  } */

  .hero-content {
    padding: 80px 10px;
  }

  .services,
  .projects,
  .contact {
    padding: 3rem 0 !important;
  }

  .contact-form,
  .contact-info {
    margin: 0;
  }

  /* Fix hero section margin and font sizes */
  .hero {
    text-align: center;
    min-height: 90vh;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: calc(90vh - 4rem);
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 15px;
  }

  .hero-content .row {
    width: 100%;
    align-items: center;
    justify-content: center;
  }

  .hero h1 {
    font-size: clamp(1.5rem, 4vw, 2.5rem) !important;
    line-height: 1.8;
    margin: 0 auto;
    max-width: 800px;
  }

  .hero p {
    font-size: clamp(0.9rem, 2vw, 1.1rem) !important;
    margin: 1rem auto;
  }

  .hero-btns {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-btns .btn {
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    padding: 0.8rem 1.8rem;
    margin: 0;
  }

  .hero-image {
    margin-top: 2rem;
    max-width: 70%;
    height: auto;
    display: flex;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-image img {
    max-width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
  }

  .container {
    padding: 0;
    max-width: 100%;
    margin: 0;
    width: 100%;
  }

  .row {
    margin: 0;
  }

  .col-lg-6,
  .col-lg-4,
  .col-lg-3,
  .col-md-6,
  .col-12 {
    padding: 0 15px;
  }

  section {
    overflow-x: hidden;
  }

  /* Adjust other mobile font sizes */
  .display-5 {
    font-size: 1.8rem !important;
  }

  .h4 {
    font-size: 1.2rem !important;
  }

  p {
    font-size: 0.9rem;
  }

  .nav-logo {
    height: 40px;
  }

  .nav-menu a::before {
    background: none;
  }

  /* About */

  .about h2 {
    text-align: center;
    margin-bottom: 2rem;
    text-transform: uppercase;
    font-weight: 800;
  }

  .about p {
    text-align: center;
  }

  .stats {
    display: flex;
    justify-content: space-around;
    margin-top: 3rem;
  }

  .stat-item {
    text-align: center;
  }

  .number {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: bold;
    display: block;
  }

  /* OUR SERVICES */

  .service-card {
    text-align: center;
  }

  .our-services {
    margin-bottom: -1em !important;
  }

  .welcome-text {
    margin-bottom: 1em !important;
  }
}

/* Mobile Logo */
.mobile-logo {
  display: none;
  text-align: center;
  margin-bottom: 1rem;
  margin-top: -1em;
}

.mobile-logo img {
  width: 100px;
  height: auto;
}

@media (max-width: 768px) {
  .mobile-logo {
    display: block;
  }
}

/* Return to top button */
.return-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--primary);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transform-origin: center;
}

.return-to-top i {
  font-size: 1.2rem;
  transform: rotate(45deg);
  transition: transform 0.3s ease;
}

.return-to-top:hover i {
  transform: rotate(45deg) translateY(-3px);
}

.return-to-top.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.return-to-top:hover {
  background: var(--primary-dark);
  transform: scale(1.1);
}

/* Animations */
[data-aos] {
  pointer-events: none;
}

[data-aos].aos-animate {
  pointer-events: auto;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

.welcome-text {
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.9;
}

.company-name {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
  .welcome-text {
    font-size: 1.2rem;
  }

  .company-name {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .welcome-text {
    font-size: 1.2rem;
  }

  .company-name {
    font-size: 2rem;
  }
}

/* CEO Profile Styles */
.ceo-profile {
  padding: 2rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(149, 44, 45, 0.1);
  transition: all 0.3s ease;
}

.ceo-profile:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.ceo-image {
  width: 250px;
  height: 250px;
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid var(--primary);
  box-shadow: 0 10px 20px rgba(149, 44, 45, 0.2);
}

.ceo-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.ceo-profile:hover .ceo-image img {
  transform: scale(1.1);
}

.ceo-info h3 {
  color: var(--primary);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.ceo-info .position {
  color: var(--dark);
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.ceo-quote {
  font-style: italic;
  color: var(--dark);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-top: 1rem;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .ceo-profile {
    padding: 1.5rem;
    margin-top: 2rem;
  }

  .ceo-image {
    width: 200px;
    height: 200px;
  }

  .ceo-info h3 {
    font-size: 1.5rem;
  }

  .ceo-info .position {
    font-size: 1rem;
  }

  .ceo-quote {
    font-size: 0.9rem;
  }
}

/* Modern About Section */
.about {
  padding: 3rem 0;
  background: linear-gradient(to bottom, #f8f9fa, #fff);
  position: relative;
  overflow: hidden;
}

.about::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(135deg, transparent, rgba(149, 44, 45, 0.05));
  clip-path: polygon(100% 0, 100% 100%, 0 100%, 30% 0);
}

.section-header {
  margin-bottom: 4rem;
  position: relative;
}

.section-title {
  font-weight: bold !important;
}

.section-header::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--primary);
}

.about-content {
  padding-right: 4rem;
  position: relative;
}

.about-description {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #4a4a4a;
  margin-bottom: 3rem;
  position: relative;
  padding-left: 2rem;
  border-left: 4px solid var(--primary);
}

.about-signature {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.about-signature span {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.signature-line {
  flex-grow: 1;
  height: 2px;
  background: linear-gradient(to right, var(--primary), transparent);
}

.leadership-profile {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  text-align: center;
  position: relative;
  padding: 3rem 2rem;
}

.leadership-profile::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent, rgba(149, 44, 45, 0.05));
  z-index: 1;
}

.profile-image {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 0 auto 2rem;
  z-index: 2;
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--primary);
  padding: 5px;
  background: var(--white);
  transition: all 0.4s ease;
}

.leadership-profile:hover {
  transform: translateY(-10px);
}

.leadership-profile:hover .profile-image img {
  transform: scale(1.05);
  border-color: var(--primary-dark);
}

.profile-content {
  position: relative;
  z-index: 2;
}

.profile-content h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.profile-content .position {
  display: inline-block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 0.5rem 1.5rem;
  background: rgba(149, 44, 45, 0.1);
  border-radius: 30px;
}

@media (max-width: 768px) {
  .about {
    padding: 3rem 0;
  }

  .about-content {
    padding-right: 0;
    margin-bottom: 3rem;
    text-align: center;
  }

  .about-description {
    font-size: 1rem;
    padding-left: 0;
    border-left: none;
    text-align: center;
  }

  .about-signature {
    justify-content: center;
    margin-top: 2rem;
  }

  .profile-image {
    width: 180px;
    height: 180px;
  }

  .profile-content h3 {
    font-size: 1.6rem;
  }

  .profile-content .position {
    font-size: 0.9rem;
    padding: 0.4rem 1.2rem;
  }
}

/* Enhanced Hero Section Responsive Styles */
@media (max-width: 1024px) {
  .hero-btns {
    margin-top: 2rem;
    margin-bottom: 3rem; /* Added margin below CTA buttons */
  }

  .hero-image {
    margin-top: -0.5rem;
    max-width: 70%;
    justify-content: center;
    margin-left: 15%;
  }
}

/* Enhanced About Section Responsive Styles for Tablets */
@media (max-width: 1024px) {
  .about-content {
    padding-right: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .about-description {
    font-size: 1rem;
    padding: 0 2rem;
    border-left: none;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2rem;
  }

  .section-header {
    text-align: center;
  }

  .leadership-profile {
    max-width: 600px;
    margin: 0 auto;
    margin-top: 2em !important;
  }
}

/* Additional iPad-specific adjustments */
@media (min-width: 768px) and (max-width: 1024px) {
  .about {
    padding: 4rem 2rem;
  }

  .about-description {
    font-size: 1.1rem;
    line-height: 1.7;
  }

  .profile-image {
    width: 200px;
    height: 200px;
  }

  .profile-content h3 {
    font-size: 1.8rem;
  }
}

/* Remove old styles */
.achievement-grid,
.achievement-item,
.achievement-number,
.achievement-label,
.stats-container,
.stats,
.stat-item,
.stat-circle {
  display: none;
}

/* Services Section */
.services {
  padding: 5rem 0;
  background: linear-gradient(rgba(33, 37, 41, 0.85), rgba(149, 44, 45, 0.95)),
    url("../img/herobg.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--white);
}

.services h2 {
  text-align: center;
  color: var(--white);
  margin-bottom: 3rem;
  text-transform: uppercase;
  font-weight: 800;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--white);
  border-radius: 15px;
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.1);
  text-align: center;
}

.service-card p {
  color: var(--dark);
}

.service-card h3 {
  color: var(--dark);
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  transition: height 0.3s ease;
  z-index: 0;
  opacity: 0.1;
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-card:hover::before {
  height: 100%;
}

.icon-box {
  width: 80px;
  height: 80px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  transition: all 0.3s ease;
}

.icon-box i {
  font-size: 2rem;
  color: var(--white);
  transition: transform 0.3s ease;
}

.service-card:hover .icon-box {
  background: var(--white);
  box-shadow: 0 0 20px rgba(149, 44, 45, 0.3);
}

.service-card:hover .icon-box i {
  color: var(--primary);
  transform: scale(1.1);
}

.service-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  display: inline-flex;
  align-items: center;
}

.service-link i {
  transition: transform 0.3s ease;
}

.service-link:hover i {
  transform: translateX(5px);
}

/* Projects Section */
.projects {
  padding: 5rem 0;
  background: #f9f9f9;
}

.projects h2 {
  text-align: center;
  color: var(--primary);
  margin-bottom: 3rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.project-carousel {
  position: relative;
  overflow: hidden;
}

.project-card {
  position: relative;
  overflow: hidden;
  height: 500px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.project-image {
  position: relative;
  overflow: hidden;
  height: 100%;
  width: 100%;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.1);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(149, 44, 45, 0.9), rgba(33, 37, 41, 0.95));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-info {
  text-align: center;
  padding: 20px;
  color: var(--white);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s ease;
}

.project-card:hover .project-info {
  transform: translateY(0);
  opacity: 1;
}

.project-info h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.project-info p {
  margin-bottom: 20px;
}

.project-info .btn {
  transition: all 0.3s ease;
  font-weight: 500;
  padding: 8px 25px;
}

.project-info .btn:hover {
  background: var(--primary);
  color: var(--white);
}

.project-category {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  backdrop-filter: blur(5px);
}

/* Contact Section */
.contact {
  padding: 5rem 0;
}

.contact h2 {
  text-align: center;
  color: var(--primary);
  margin-bottom: 3rem;
}

.contact {
  background: var(--light);
}

.contact-subtitle {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: block;
}

.contact-card {
  background: var(--white);
  padding: 3rem 2rem;
  border-radius: 15px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-card:hover,
.contact-card.active {
  background: var(--primary);
  transform: translateY(-10px);
}

.contact-icon {
  width: 80px;
  height: 80px;
  background: rgba(149, 44, 45, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  transition: all 0.4s ease;
}

.contact-icon i {
  font-size: 2rem;
  color: var(--primary);
  transition: all 0.4s ease;
}

.contact-card:hover .contact-icon,
.contact-card.active .contact-icon {
  background: rgba(255, 255, 255, 0.2);
}

.contact-card:hover .contact-icon i,
.contact-card.active .contact-icon i {
  color: var(--white);
}

.contact-card h4 {
  margin-bottom: 1rem;
  font-weight: 600;
  transition: all 0.4s ease;
}

.contact-card p {
  color: var(--dark);
  margin-bottom: 1.5rem;
  transition: all 0.4s ease;
}

.contact-card:hover h4,
.contact-card:hover p,
.contact-card.active h4,
.contact-card.active p {
  color: var(--white);
}

.contact-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.4s ease;
}

.contact-card:hover .contact-link,
.contact-card.active .contact-link {
  color: var(--white);
}

.contact-form-wrapper {
  background: var(--white);
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--dark);
}

.form-control {
  height: 50px;
  padding: 0.75rem 1.25rem;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: none;
}

textarea.form-control {
  height: auto;
  min-height: 150px;
}

.btn-primary {
  background: var(--primary);
  border: none;
  font-weight: 600;
  padding: 15px 40px;
  border-radius: 10px;
  transition: all 0.4s ease;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

.btn-primary i {
  transition: transform 0.4s ease;
}

.btn-primary:hover i {
  transform: translateX(5px);
}

.submit-button {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 12px 30px;
  font-weight: 600;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.submit-button:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* Footer */
.footer {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  padding: 3rem 0 1rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
  text-align: center;
}

.footer-brand {
  max-width: 600px;
  margin: 0 auto 2rem;
}

.footer-logo {
  width: 180px;
  height: auto;
  border-radius: 10px;
  padding: 10px;
  transition: transform 0.3s ease;
  margin: 0 auto 1.5rem;
  display: block;
}

.social-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.social-links a {
  width: 60px;
  height: 60px;
  font-size: 1.5rem;
}

.footer-brand p {
  font-size: 1.3rem;
  line-height: 1.6;
  opacity: 0.9;
  text-align: center;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 5px;
  transition: all 0.3s ease;
  color: var(--white);
  text-decoration: none;
}

.social-links a:hover {
  background: var(--white);
  color: var(--primary);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
  .footer {
    padding: 0.5rem 0.5em 0.5rem !important;
  }

  .footer-logo {
    width: 150px;
    margin-bottom: -0.2em;
  }

  .footer-brand p {
    font-size: 0.9rem;
    margin-bottom: -1em;
  }

  .hero h1 {
    font-size: 1em;
  }

  .about p {
    font-size: 0.9em;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .social-links {
    margin-top: 1rem;
  }

  .contact-form-wrapper {
    padding: 2rem 1.5rem;
  }

  .contact-card {
    padding: 2rem 1.5rem;
    margin-bottom: 1rem;
  }

  .contact-icon {
    width: 60px;
    height: 60px;
  }

  .contact-icon i {
    font-size: 1.5rem;
  }

  .contact h2 {
    font-size: 2rem !important;
  }

  .btn-primary {
    width: 100%;
    padding: 15px 20px !important;
    font-size: 1em !important;
  }

  .project-card {
    height: 400px;
    border-radius: 15px;
  }

  .project-info {
    padding: 1.5rem;
  }

  .project-info h3 {
    font-size: 1.3rem !important;
  }

  .project-info p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }

  .project-category {
    font-size: 0.8rem;
    padding: 0.3rem 1rem;
    margin-bottom: 0.5rem;
  }

  .btn-lg {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
  }

  .carousel-indicators {
    bottom: 1rem;
  }

  .project-overlay {
    padding: 2rem 1rem;
  }

  .project-card {
    height: 450px;
    border-radius: 20px;
    margin: 0 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  }

  .project-image img {
    object-position: center;
  }

  .project-overlay {
    background: linear-gradient(rgba(149, 44, 45, 0.9), rgba(33, 37, 41, 0.95));
    padding: 2rem;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
  }

  .project-info {
    padding: 2rem;
    text-align: center;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
  }

  .project-card:hover .project-overlay,
  .project-card:active .project-overlay {
    opacity: 1;
  }

  .project-card:hover .project-info,
  .project-card:active .project-info {
    transform: translateY(0);
    opacity: 1;
  }

  .project-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
  }

  .project-info p {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    line-height: 1.6;
  }
  .project-category {
    font-size: 0.75rem;
    padding: 0.25rem 1rem;
    margin-bottom: 0.75rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
  }

  .project-info .btn-lg {
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary);
    border: none;
    transition: all 0.3s ease;
  }

  /* .project-info .btn-lg:hover {
    background: var(--white);
    transform: translateY(-2px);
  } */

  .carousel-indicators {
    bottom: 0.5rem;
    margin-bottom: 0.5rem;
  }

  .carousel-indicators button {
    width: 8px;
    height: 8px;
    /* border-radius: 50%; */
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    margin: 0 4px;
  }

  .carousel-indicators button.active {
    width: 24px;
    border-radius: 4px;
    background-color: var(--white);
  }

  .carousel-control-prev,
  .carousel-control-next {
    width: 40px;
    height: 40px;
    /* background: rgba(255, 255, 255, 0.2); */
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    backdrop-filter: blur(5px);
  }

  .carousel-control-prev {
    left: 1rem;
  }

  .carousel-control-next {
    right: 1rem;
  }

  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    width: 1.2rem;
    height: 1.2rem;
  }
}

/* Enhanced Admin Icon Styles */
.admin-desktop-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  right: 2rem;
  top: 0;
  width: 48px;
  height: 48px;
  font-size: 1.4rem;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  z-index: 1100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.admin-desktop-icon:hover {
  transform: translateY(-2px) scale(1.05);
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
  box-shadow: 0 8px 25px rgba(149, 44, 45, 0.25);
}

.admin-desktop-icon i {
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease;
}

.admin-desktop-icon:hover i {
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .admin-desktop-icon {
    display: none !important;
  }
  .admin-mobile-link {
    display: block !important;
  }
}

/* Hide admin menu item on desktop, show only on mobile sidebar */
.admin-mobile-link {
  display: none;
}

/* ============================================ */
/* EMPTY STATE STYLES - Services Section */
/* ============================================ */
.empty-state {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: linear-gradient(
    135deg,
    rgba(149, 44, 45, 0.08) 0%,
    rgba(149, 44, 45, 0.03) 100%
  );
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 2px dashed rgba(149, 44, 45, 0.3);
  position: relative;
  overflow: hidden;
}

.empty-state::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(149, 44, 45, 0.1) 0%,
    transparent 70%
  );
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.empty-state-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary) 0%, #7a2425 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  box-shadow: 0 8px 25px rgba(149, 44, 45, 0.3);
  position: relative;
  z-index: 1;
  animation: float 3s ease-in-out infinite;
}

.empty-state-icon.loading {
  background: linear-gradient(135deg, var(--primary) 0%, #7a2425 100%);
  box-shadow: 0 8px 25px rgba(149, 44, 45, 0.3);
}

.empty-state-icon i {
  font-size: 2rem;
  color: white;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

.empty-state-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #212529;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.empty-state-text {
  font-size: 0.95rem;
  color: #495057;
  max-width: 500px;
  margin: 0 auto 1rem;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

/* Pulse Ring Animation */
.empty-state-animation {
  position: relative;
  width: 50px;
  height: 50px;
  margin: 1rem auto 0;
}

.pulse-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  border: 2px solid rgba(255, 193, 7, 0.8);
  border-radius: 50%;
  animation: pulse 2s cubic-bezier(0.455, 0.03, 0.515, 0.955) infinite;
}

.pulse-ring.delay-1 {
  animation-delay: 0.5s;
}

.pulse-ring.delay-2 {
  animation-delay: 1s;
}

@keyframes pulse {
  0% {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0;
  }
}

/* Loading Dots Animation */
.empty-state-footer {
  margin-top: 1rem;
  position: relative;
  z-index: 1;
}

.loading-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.loading-dots span {
  width: 8px;
  height: 8px;
  background: #ffc107;
  border-radius: 50%;
  display: inline-block;
  animation: bounce 1.4s infinite ease-in-out both;
}

.loading-dots span:nth-child(1) {
  animation-delay: -0.32s;
}

.loading-dots span:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes bounce {
  0%,
  80%,
  100% {
    transform: scale(0);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Responsive Empty State */
@media (max-width: 768px) {
  .empty-state {
    padding: 2rem 1rem;
  }

  .empty-state-icon {
    width: 70px;
    height: 70px;
  }

  .empty-state-icon i {
    font-size: 1.75rem;
  }

  .empty-state-title {
    font-size: 1.1rem;
  }

  .empty-state-text {
    font-size: 0.875rem;
  }

  .empty-state-animation {
    width: 40px;
    height: 40px;
  }

  .pulse-ring {
    width: 40px;
    height: 40px;
  }
}

/* ============================================
   MAP MODAL STYLES
   ============================================ */

.map-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  height: 100dvh; /* Dynamic viewport height for mobile browsers */
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  overflow-y: auto;
}

.map-modal.active {
  opacity: 1;
  visibility: visible;
}

.map-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.map-modal-content {
  position: relative;
  width: 90%;
  max-width: 1400px;
  height: 85vh;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform 0.3s ease;
  z-index: 10001;
  display: flex;
  flex-direction: column;
}

.map-modal.active .map-modal-content {
  transform: scale(1);
  animation: mapModalSlideUp 0.4s ease;
}

@keyframes mapModalSlideUp {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.map-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border: none;
  background: rgba(149, 44, 45, 0.95);
  color: white;
  font-size: 1.5rem;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10002;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.map-modal-close:hover {
  background: #7a2425;
  transform: rotate(90deg) scale(1.1);
}

.map-modal-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem 2.5rem;
  background: linear-gradient(135deg, #952c2d 0%, #7a2425 100%);
  color: white;
}

.map-modal-header i {
  font-size: 2.5rem;
  opacity: 0.9;
}

.map-modal-header h3 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0;
  margin-bottom: 0.25rem;
}

.map-modal-header p {
  margin: 0;
  opacity: 0.9;
  font-size: 1rem;
}

.map-modal-body {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: #f8f9fa;
  min-height: 300px;
}

.map-modal-body iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.map-modal-footer {
  padding: 1.5rem 2.5rem;
  background: white;
  border-top: 2px solid #f1f1f1;
  display: flex;
  justify-content: center;
}

.map-directions-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, #952c2d 0%, #7a2425 100%);
  color: white;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(149, 44, 45, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.map-directions-btn:hover {
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(149, 44, 45, 0.4);
}

.map-directions-btn i {
  font-size: 1.2rem;
}

/* ============================================
   MAP MODAL RESPONSIVE
   ============================================ */

/* Large Desktop */
@media (min-width: 1400px) {
  .map-modal-content {
    max-width: 1600px;
  }
}

/* Desktop to Laptop */
@media (max-width: 1200px) {
  .map-modal-content {
    width: 92%;
    height: 85vh;
  }

  .map-modal-header {
    padding: 1.85rem 2.25rem;
  }
}

/* Tablet Landscape */
@media (max-width: 992px) {
  .map-modal-content {
    width: 94%;
    height: 87vh;
  }

  .map-modal-header {
    padding: 1.75rem 2rem;
  }

  .map-modal-header i {
    font-size: 2.2rem;
  }

  .map-modal-header h3 {
    font-size: 1.6rem;
  }

  .map-modal-header p {
    font-size: 0.95rem;
  }

  .map-modal-footer {
    padding: 1.25rem 2rem;
  }

  .map-directions-btn {
    padding: 0.95rem 2.25rem;
    font-size: 0.95rem;
  }
}

/* Tablet Portrait */
@media (max-width: 768px) {
  .map-modal-content {
    width: 96%;
    height: 90vh;
    border-radius: 16px;
  }

  .map-modal-close {
    width: 46px;
    height: 46px;
    top: 16px;
    right: 16px;
    font-size: 1.3rem;
  }

  .map-modal-header {
    padding: 1.5rem;
    padding-top: 4.5rem;
    gap: 0.75rem;
  }

  .map-modal-header i {
    font-size: 2rem;
  }

  .map-modal-header h3 {
    font-size: 1.4rem;
  }

  .map-modal-header p {
    font-size: 0.9rem;
    line-height: 1.4;
  }

  .map-modal-footer {
    padding: 1.15rem 1.5rem;
  }

  .map-directions-btn {
    padding: 0.9rem 2rem;
    font-size: 0.9rem;
    width: 100%;
    justify-content: center;
  }
}

/* Mobile Landscape & Large Phones */
@media (max-width: 640px) {
  .map-modal-content {
    width: 98%;
    height: 92vh;
    border-radius: 12px;
  }

  .map-modal-close {
    width: 44px;
    height: 44px;
    top: 14px;
    right: 14px;
    font-size: 1.25rem;
  }

  .map-modal-header {
    padding: 1.35rem;
    padding-top: 4.25rem;
  }

  .map-modal-header i {
    font-size: 1.85rem;
  }

  .map-modal-header h3 {
    font-size: 1.25rem;
  }

  .map-modal-header p {
    font-size: 0.875rem;
  }

  .map-modal-footer {
    padding: 1rem 1.35rem;
  }

  .map-directions-btn {
    padding: 0.85rem 1.75rem;
    font-size: 0.875rem;
  }
}

/* Mobile Portrait */
@media (max-width: 576px) {
  .map-modal {
    padding: 0;
  }

  .map-modal-content {
    width: 100%;
    height: 100vh;
    height: 100dvh; /* Use dynamic viewport height */
    max-height: 100vh;
    border-radius: 0;
  }

  .map-modal-close {
    width: 42px;
    height: 42px;
    top: 12px;
    right: 12px;
    font-size: 1.2rem;
  }

  .map-modal-header {
    padding: 1.2rem;
    padding-top: 4rem;
  }

  .map-modal-header i {
    font-size: 1.75rem;
  }

  .map-modal-header h3 {
    font-size: 1.15rem;
    line-height: 1.3;
  }

  .map-modal-header p {
    font-size: 0.85rem;
    line-height: 1.4;
  }

  .map-modal-body {
    min-height: 250px;
  }

  .map-modal-footer {
    padding: 0.95rem 1.2rem;
  }

  .map-directions-btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.85rem;
  }

  .map-directions-btn i {
    font-size: 1.1rem;
  }
}

/* Small Mobile Devices */
@media (max-width: 400px) {
  .map-modal-close {
    width: 40px;
    height: 40px;
    top: 10px;
    right: 10px;
    font-size: 1.15rem;
  }

  .map-modal-header {
    padding: 1rem;
    padding-top: 3.75rem;
  }

  .map-modal-header i {
    font-size: 1.6rem;
  }

  .map-modal-header h3 {
    font-size: 1.05rem;
  }

  .map-modal-header p {
    font-size: 0.8rem;
  }

  .map-modal-body {
    min-height: 200px;
  }

  .map-modal-footer {
    padding: 0.85rem 1rem;
  }

  .map-directions-btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.8rem;
  }
}

/* Extra Small Mobile & iPhone SE */
@media (max-width: 375px) {
  .map-modal-close {
    width: 38px;
    height: 38px;
    top: 10px;
    right: 10px;
    font-size: 1.1rem;
  }

  .map-modal-header {
    padding: 0.9rem;
    padding-top: 3.5rem;
  }

  .map-modal-header i {
    font-size: 1.5rem;
  }

  .map-modal-header h3 {
    font-size: 1rem;
  }

  .map-modal-header p {
    font-size: 0.75rem;
  }

  .map-modal-body {
    min-height: 180px;
  }

  .map-modal-footer {
    padding: 0.8rem 0.9rem;
  }

  .map-directions-btn {
    padding: 0.7rem 1rem;
    font-size: 0.75rem;
    letter-spacing: 0.3px;
  }

  .map-directions-btn i {
    font-size: 1rem;
  }
}

/* Landscape Mode Optimization */
@media (max-height: 600px) and (orientation: landscape) {
  .map-modal {
    padding: 0.5rem;
  }

  .map-modal-content {
    height: 96vh;
    max-height: 96vh;
  }

  .map-modal-header {
    padding: 0.75rem 2rem;
    padding-top: 0.75rem;
  }

  .map-modal-header i {
    font-size: 1.4rem;
  }

  .map-modal-header h3 {
    font-size: 1rem;
    line-height: 1.2;
  }

  .map-modal-header p {
    font-size: 0.75rem;
    line-height: 1.3;
  }

  .map-modal-body {
    min-height: 150px;
  }

  .map-modal-footer {
    padding: 0.65rem 2rem;
  }

  .map-directions-btn {
    padding: 0.65rem 1.5rem;
    font-size: 0.8rem;
  }

  .map-modal-close {
    width: 36px;
    height: 36px;
    top: 8px;
    right: 8px;
    font-size: 1.05rem;
  }
}

/* Very Short Screens (Landscape) */
@media (max-height: 450px) and (orientation: landscape) {
  .map-modal {
    padding: 0;
  }

  .map-modal-content {
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
  }

  .map-modal-header {
    padding: 0.5rem 1.5rem;
  }

  .map-modal-header i {
    font-size: 1.2rem;
  }

  .map-modal-header h3 {
    font-size: 0.9rem;
  }

  .map-modal-header p {
    font-size: 0.7rem;
  }

  .map-modal-body {
    min-height: 120px;
  }

  .map-modal-footer {
    padding: 0.5rem 1.5rem;
  }

  .map-directions-btn {
    padding: 0.55rem 1.25rem;
    font-size: 0.75rem;
  }
}

/* Mobile - Empty State Width Adjustment for Projects */
@media (max-width: 576px) {
  .project-carousel .empty-state {
    width: 95%;
    margin: 2rem auto;
  }
}
