/* ============================================
   PREMIUM CONSTRUCTION WEBSITE STYLES
   ============================================ */

/* CSS Variables */
:root {
  --primary-color: #bf3930;
  --primary-dark: #9a2e27;
  --primary-light: #d94b42;
  --secondary-color: #1f2937;
  --secondary-dark: #111827;
  --accent-color: #6b7280;
  --dark-color: #0f172a;
  --light-color: #f9fafb;
  --text-color: #374151;
  --border-color: #e5e7eb;
  --white: #ffffff;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Placeholder - Makes the dynamically loaded header sticky */
#header-placeholder {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

/* Ensure header inside placeholder doesn't override sticky behavior */
#header-placeholder .header {
  position: relative;
  top: auto;
}

/* Preloader */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--white);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s, visibility 0.5s;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader {
  width: 50px;
  height: 50px;
  border: 5px solid var(--border-color);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Header */
.header {
  background: var(--white);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  animation: slideDown 0.5s ease;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 0;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

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

.nav-menu {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  transition: var(--transition);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition);
}

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

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.mobile-menu-btn span {
  width: 28px;
  height: 3px;
  background: var(--dark-color);
  transition: var(--transition);
  border-radius: 3px;
}

/* Hero Carousel */
.hero-carousel {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.carousel-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.carousel-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-bg {
  width: 100%;
  height: 100%;
  position: relative;
}

.carousel-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--white);
  width: 90%;
  max-width: 900px;
  z-index: 2;
}

.carousel-content h1 {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.carousel-content p {
  font-size: 1.3rem;
  margin-bottom: 2.5rem;
  opacity: 0.95;
}

.animate-text {
  animation: fadeInUp 1s ease;
}

.animate-text-delay {
  animation: fadeInUp 1s ease 0.3s both;
}

.animate-btn {
  animation: fadeInUp 1s ease 0.6s both;
}

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

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--primary-color);
  transition: var(--transition);
  z-index: 3;
}

.carousel-btn:hover {
  background: var(--white);
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
  left: 30px;
}

.carousel-btn.next {
  right: 30px;
}

.carousel-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 3;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background: var(--white);
  width: 35px;
  border-radius: 10px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(191, 57, 48, 0.3);
}

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

.btn-secondary:hover {
  background: var(--light-color);
  transform: translateY(-3px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

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

.btn-full {
  width: 100%;
  justify-content: center;
}

/* Stats Section */
.stats-section {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-dark)
  );
  padding: 4rem 2rem;
  margin-top: -80px;
  position: relative;
  z-index: 2;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
}

.stat-box {
  text-align: center;
  color: var(--white);
}

.stat-box i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-box p {
  font-size: 1.1rem;
  opacity: 0.95;
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-tag {
  display: inline-block;
  background: rgba(191, 57, 48, 0.08);
  color: var(--primary-color);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(191, 57, 48, 0.15);
}

.section-header h2 {
  font-size: 2.8rem;
  color: var(--dark-color);
  margin-bottom: 1rem;
  font-weight: 800;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-color);
  max-width: 600px;
  margin: 0 auto;
}

/* Services Preview */
.services-preview {
  padding: 6rem 2rem;
  background: var(--light-color);
}

.services-grid-home {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.service-card-home {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card-home::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--primary-light)
  );
  transform: scaleX(0);
  transition: var(--transition);
}

.service-card-home:hover::before {
  transform: scaleX(1);
}

.service-card-home:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.service-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-dark)
  );
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--white);
  font-size: 2rem;
}

.service-card-home h3 {
  font-size: 1.5rem;
  color: var(--dark-color);
  margin-bottom: 1rem;
}

.service-card-home p {
  color: var(--text-color);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.service-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.service-link:hover {
  gap: 15px;
}

/* Why Choose Us */
.why-choose {
  padding: 6rem 2rem;
}

.why-choose-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 4rem;
  align-items: center;
}

.why-choose-content {
  animation: fadeInLeft 1s ease;
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.why-choose-content h2 {
  font-size: 2.5rem;
  color: var(--dark-color);
  margin-bottom: 1.5rem;
  font-weight: 800;
}

.why-choose-content > p {
  color: var(--text-color);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.features-list {
  margin-bottom: 2rem;
}

.feature-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.feature-item i {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-top: 5px;
}

.feature-item h4 {
  color: var(--dark-color);
  margin-bottom: 0.5rem;
}

.feature-item p {
  color: var(--text-color);
  font-size: 0.95rem;
}

.why-choose-images {
  position: relative;
}

.image-stack {
  position: relative;
  height: 500px;
}

.stack-img-1,
.stack-img-2 {
  position: absolute;
  border-radius: 20px;
  width: 80%;
  height: 70%;
  object-fit: cover;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.stack-img-1 {
  top: 0;
  left: 0;
  z-index: 2;
  animation: float 3s ease-in-out infinite;
}

.stack-img-2 {
  bottom: 0;
  right: 0;
  z-index: 1;
  animation: float 3s ease-in-out infinite 1.5s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Recent Projects */
.recent-projects {
  padding: 6rem 2rem;
  background: var(--light-color);
}

.projects-grid-home {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.project-card-home {
  position: relative;
  height: 400px;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
}

.project-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: var(--transition);
}

.project-card-home:hover .project-img {
  transform: scale(1.1);
}

.project-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  color: var(--white);
  padding: 2rem;
  transform: translateY(20px);
  transition: var(--transition);
}

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

.project-cat {
  display: inline-block;
  background: var(--primary-color);
  padding: 0.3rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.gallery-cat {
  display: inline-block;
  background: var(--primary-color);
  padding: 0.4rem 1.2rem;
  border-radius: 20px;
  font-size: 0.85rem;
  margin-bottom: 0.8rem;
}

.project-overlay h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.project-btn {
  display: inline-block;
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  margin-top: 1rem;
  transition: var(--transition);
}

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

/* Testimonials */
.testimonials {
  padding: 6rem 2rem;
  background: var(--dark-color);
  color: var(--white);
}

.testimonials .section-header h2,
.testimonials .section-header p {
  color: var(--white);
}

.testimonial-slider {
  overflow: hidden;
  position: relative;
}

.testimonial-track {
  display: flex;
  gap: 2rem;
  animation: scroll 20s linear infinite;
}

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

.testimonial-track:hover {
  animation-play-state: paused;
}

.testimonial-card {
  min-width: 400px;
  background: rgba(255, 255, 255, 0.1);
  padding: 2.5rem;
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

.stars {
  color: #fbbf24;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.testimonial-card p {
  font-style: italic;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.testimonial-author strong {
  display: block;
  margin-bottom: 0.3rem;
}

.testimonial-author span {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-dark)
  );
  padding: 5rem 2rem;
  text-align: center;
  color: var(--white);
}

.cta-content h2 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  font-weight: 800;
}

.cta-content p {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  opacity: 0.95;
}

.cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Page Header */
.page-header {
  background: linear-gradient(
    135deg,
    var(--secondary-color),
    var(--secondary-dark)
  );
  color: var(--white);
  padding: 5rem 2rem 3rem;
  text-align: center;
  margin-top: -1px;
}

.page-header h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  font-weight: 800;
}

.page-header p {
  font-size: 1.2rem;
  opacity: 0.95;
}

/* About Page */
.about-section {
  padding: 6rem 2rem;
}

.about-grid-main {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 4rem;
  align-items: center;
}

.about-content-main h2 {
  font-size: 2.5rem;
  color: var(--dark-color);
  margin-bottom: 1.5rem;
  font-weight: 800;
}

.about-content-main p {
  color: var(--text-color);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.about-highlights {
  margin: 2rem 0;
}

.highlight-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: start;
}

.highlight-item i {
  color: var(--primary-color);
  font-size: 2rem;
}

.highlight-item h4 {
  color: var(--dark-color);
  margin-bottom: 0.3rem;
}

.about-image-main {
  position: relative;
}

.about-image-main img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.about-badge {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: var(--primary-color);
  color: var(--white);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(191, 57, 48, 0.4);
}

.badge-number {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
}

.badge-text {
  font-size: 1rem;
}

/* Mission Vision */
.mission-vision {
  padding: 6rem 2rem;
  background: var(--light-color);
}

.mv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 3rem;
}

.mv-card {
  background: var(--white);
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: var(--transition);
}

.mv-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.mv-card i {
  font-size: 3.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.mv-card h3 {
  font-size: 1.8rem;
  color: var(--dark-color);
  margin-bottom: 1rem;
}

.mv-card p {
  color: var(--text-color);
  line-height: 1.8;
}

/* Team Section */
.team-section {
  padding: 6rem 2rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem;
}

.team-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  text-align: center;
}

.team-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.team-img {
  height: 300px;
  background-size: cover;
  background-position: center;
}

.team-card h3 {
  padding: 1.5rem 1rem 0.5rem;
  color: var(--dark-color);
  font-size: 1.3rem;
}

.team-card p {
  color: var(--text-color);
  margin-bottom: 1rem;
}

.team-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 0 1rem 1.5rem;
}

.team-social a {
  width: 40px;
  height: 40px;
  background: var(--light-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color);
  transition: var(--transition);
}

.team-social a:hover {
  background: var(--primary-color);
  color: var(--white);
}

/* Services Detailed */
.services-detailed {
  padding: 6rem 2rem;
}

.service-detail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 4rem;
  align-items: center;
  margin-bottom: 6rem;
}

.service-detail.reverse {
  direction: rtl;
}

.service-detail.reverse > * {
  direction: ltr;
}

.service-number {
  font-size: 5rem;
  font-weight: 800;
  color: rgba(31, 41, 55, 0.08);
  line-height: 1;
  margin-bottom: 1rem;
}

.service-detail-content h2 {
  font-size: 2.3rem;
  color: var(--dark-color);
  margin-bottom: 1.5rem;
  font-weight: 800;
}

.service-detail-content p {
  color: var(--text-color);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.service-features {
  list-style: none;
  margin-bottom: 2rem;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.service-features i {
  color: var(--primary-color);
  font-size: 1.2rem;
}

.service-detail-img img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* Process Section */
.process-section {
  padding: 6rem 2rem;
  background: var(--light-color);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem;
}

.process-step {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 20px;
  text-align: center;
  position: relative;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.process-step:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.process-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-dark)
  );
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.5rem;
  box-shadow: 0 5px 15px rgba(191, 57, 48, 0.3);
}

.process-step i {
  font-size: 3rem;
  color: var(--primary-color);
  margin: 2rem 0 1.5rem;
}

.process-step h3 {
  color: var(--dark-color);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.process-step p {
  color: var(--text-color);
  line-height: 1.6;
}

/* Projects Filter */
.projects-filter {
  padding: 3rem 2rem;
  background: var(--light-color);
}

.filter-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.8rem 2rem;
  background: var(--white);
  border: 2px solid var(--border-color);
  border-radius: 50px;
  color: var(--text-color);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white);
}

/* Projects Gallery */
.projects-gallery {
  padding: 4rem 2rem 6rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.gallery-item {
  position: relative;
  height: 400px;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  opacity: 1;
  transition: var(--transition);
}

.gallery-item.hide {
  opacity: 0;
  transform: scale(0.8);
  height: 0;
  margin: 0;
  padding: 0;
}

.gallery-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-img {
  transform: scale(1.15);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95), transparent);
  color: var(--white);
  padding: 2.5rem;
  transform: translateY(30px);
  opacity: 0;
  transition: var(--transition);
}

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

.gallery-cat {
  display: inline-block;
  background: var(--primary-color);
  padding: 0.4rem 1.2rem;
  border-radius: 20px;
  font-size: 0.85rem;
  margin-bottom: 0.8rem;
}

.gallery-overlay h3 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.gallery-overlay p {
  margin-bottom: 1rem;
  opacity: 0.9;
}

.gallery-btn {
  display: inline-block;
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  padding: 0.6rem 1.5rem;
  border: 2px solid var(--white);
  border-radius: 50px;
  transition: var(--transition);
}

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

/* Contact Info Section */
.contact-info-section {
  padding: 4rem 2rem;
  background: var(--light-color);
}

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.contact-info-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.contact-info-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.contact-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-dark)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--white);
  font-size: 2rem;
}

.contact-info-card h3 {
  color: var(--dark-color);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.contact-info-card p {
  color: var(--text-color);
  line-height: 1.8;
}

/* Contact Form Section */
.contact-form-section {
  padding: 6rem 2rem;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 4rem;
  align-items: start;
}

.contact-form-left h2 {
  font-size: 2.5rem;
  color: var(--dark-color);
  margin-bottom: 1rem;
  font-weight: 800;
}

.contact-form-left p {
  color: var(--text-color);
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.contact-features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-feature {
  display: flex;
  gap: 1rem;
  align-items: start;
}

.contact-feature i {
  width: 50px;
  height: 50px;
  background: rgba(107, 114, 128, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1.3rem;
  flex-shrink: 0;
}

.contact-feature h4 {
  color: var(--dark-color);
  margin-bottom: 0.3rem;
}

.contact-feature p {
  color: var(--text-color);
  font-size: 0.95rem;
}

/* Modern Form */
.modern-form {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  position: relative;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
  background: var(--white);
}

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

.form-group label {
  position: absolute;
  left: 1rem;
  top: 1rem;
  color: var(--text-color);
  background: var(--white);
  padding: 0 0.5rem;
  transition: var(--transition);
  pointer-events: none;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
  top: -10px;
  font-size: 0.85rem;
  color: var(--primary-color);
}

.form-group select + label {
  top: -10px;
  font-size: 0.85rem;
}

.form-success-msg {
  background: linear-gradient(135deg, #10b981, #059669);
  color: var(--white);
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  animation: slideInDown 0.5s ease;
}

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

.form-success-msg i {
  font-size: 1.5rem;
}

/* Map Section */
.map-section {
  margin-top: 4rem;
}

.map-container iframe {
  width: 100%;
  height: 450px;
  border: none;
}

/* Footer */
.footer {
  background: var(--dark-color);
  color: var(--white);
  padding: 4rem 2rem 2rem;
}

.footer-top {
  margin-bottom: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
}

.footer-logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.footer-logo i {
  color: var(--primary-color);
}

.footer-col p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--primary-color);
  transform: translateY(-5px);
}

.footer-col h4 {
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.8rem;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition);
  display: inline-block;
}

.footer-col ul li a:hover {
  color: var(--primary-color);
  transform: translateX(5px);
}

.footer-col ul.contact-info li {
  display: flex;
  align-items: start;
  gap: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-col ul.contact-info i {
  color: var(--primary-color);
  margin-top: 3px;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.7);
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-color);
}

/* Scroll to Top */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  box-shadow: 0 5px 20px rgba(191, 57, 48, 0.3);
}

.scroll-top.show {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background: var(--primary-dark);
  transform: translateY(-5px);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .carousel-content h1 {
    font-size: 3rem;
  }

  .why-choose-grid,
  .about-grid-main,
  .service-detail,
  .contact-form-grid {
    grid-template-columns: 1fr;
  }

  .image-stack {
    height: 400px;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    padding: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
  }

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

  .nav-link {
    padding: 1rem;
    width: 100%;
    text-align: center;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .carousel-content h1 {
    font-size: 2.2rem;
  }

  .carousel-content p {
    font-size: 1rem;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .carousel-btn.prev {
    left: 15px;
  }

  .carousel-btn.next {
    right: 15px;
  }

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

  .section-header h2 {
    font-size: 2rem;
  }

  .services-grid-home,
  .projects-grid-home,
  .gallery-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .testimonial-card {
    min-width: 300px;
  }

  .filter-buttons {
    gap: 0.5rem;
  }

  .filter-btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 480px) {
  .logo {
    font-size: 1.5rem;
  }

  .carousel-content h1 {
    font-size: 1.8rem;
  }

  .page-header h1 {
    font-size: 2rem;
  }

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

  .stat-number {
    font-size: 2.5rem;
  }
}

/* Animations */
.fade-in {
  animation: fadeIn 1s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mb-2 {
  margin-bottom: 2rem;
}

.mt-2 {
  margin-top: 2rem;
}

/* Additional Brand Color Accents */
.logo i {
  color: var(--primary-color);
}

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

.highlight-item i,
.feature-item i,
.service-features i {
  color: var(--primary-color);
}

.contact-feature i {
  background: rgba(191, 57, 48, 0.08);
  border: 2px solid rgba(191, 57, 48, 0.15);
}

.footer-col ul.contact-info i,
.social-links a:hover,
.footer-links a:hover {
  color: var(--primary-color);
}

.team-social a:hover {
  background: var(--primary-color);
  color: var(--white);
}

/* Enhanced hover states */
.service-link:hover,
.project-btn:hover {
  color: var(--primary-light);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white);
}

/* Form focus states */
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(191, 57, 48, 0.1);
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
  color: var(--primary-color);
}

/* Loader customization */
.loader {
  border-top-color: var(--primary-color);
}

/* Enhanced project overlays */
.project-overlay,
.gallery-overlay {
  background: linear-gradient(to top, rgba(31, 41, 55, 0.95), transparent);
}

/* Accent lines and borders */
.mv-card:hover,
.contact-info-card:hover {
  border-top: 3px solid var(--primary-color);
}

/* Number accents in service details */
.service-number {
  font-size: 5rem;
  font-weight: 800;
  color: rgba(191, 57, 48, 0.06);
  line-height: 1;
  margin-bottom: 1rem;
}
/* ============================================
   ENHANCED MOBILE RESPONSIVE DESIGN
   ============================================ */

/* Add spacing between the two layouts in about section */
.about-section .about-grid-main + .about-grid-main {
  margin-top: 6rem;
}

/* Reverse layout for photo left, text right */
.about-grid-main.reverse {
  direction: ltr;
}

.about-grid-main.reverse .about-image-main {
  order: 1;
}

.about-grid-main.reverse .about-content-main {
  order: 2;
}

/* Make sure the grid supports flex order */
.about-grid-main {
  display: flex;
  gap: 4rem;
  align-items: center;
  flex-wrap: wrap;
}

.about-content-main,
.about-image-main {
  flex: 1;
  min-width: 400px;
}

/* ============================================
   TABLET RESPONSIVE (max-width: 1024px)
   ============================================ */
@media (max-width: 1024px) {
  /* Container adjustments */
  .container {
    padding: 0 30px;
  }

  /* Carousel adjustments */
  .carousel-content h1 {
    font-size: 3rem;
    line-height: 1.2;
  }

  .carousel-content p {
    font-size: 1.1rem;
  }

  /* Section padding adjustments */
  .about-section,
  .services-preview,
  .why-choose,
  .recent-projects,
  .testimonials,
  .team-section,
  .services-detailed,
  .process-section,
  .projects-gallery,
  .contact-form-section {
    padding: 4rem 2rem;
  }

  /* Grid adjustments */
  .why-choose-grid,
  .about-grid-main,
  .service-detail,
  .contact-form-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-content-main,
  .about-image-main {
    min-width: 100%;
  }

  .about-section .about-grid-main + .about-grid-main {
    margin-top: 4rem;
  }

  /* Image stack adjustments */
  .image-stack {
    height: 400px;
  }

  /* Service detail adjustments */
  .service-detail.reverse {
    direction: ltr;
  }

  /* Stats adjustments */
  .stat-number {
    font-size: 3rem;
  }

  .stat-box i {
    font-size: 2.5rem;
  }

  /* Team grid */
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  /* Process grid */
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================
   MOBILE RESPONSIVE (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {
  /* Container */
  .container {
    padding: 0 20px;
  }

  /* Header and Navigation */
  .nav-wrapper {
    padding: 1rem 0;
  }

  .logo img {
    max-height: 70px !important;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    padding: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
  }

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

  .nav-link {
    padding: 1rem;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
  }

  .nav-link:last-child {
    border-bottom: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  /* Hero Carousel */
  .hero-carousel {
    height: 70vh;
    min-height: 500px;
  }

  .carousel-content {
    width: 95%;
    padding: 0 15px;
  }

  .carousel-content h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
  }

  .carousel-content p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .carousel-btn.prev {
    left: 10px;
  }

  .carousel-btn.next {
    right: 10px;
  }

  .carousel-dots {
    bottom: 20px;
  }

  .dot {
    width: 10px;
    height: 10px;
  }

  .dot.active {
    width: 25px;
  }

  /* Page Headers */
  .page-header {
    padding: 3rem 2rem 2rem;
  }

  .page-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }

  .page-header p {
    font-size: 1rem;
  }

  /* Section Headers */
  .section-header {
    margin-bottom: 3rem;
  }

  .section-tag {
    font-size: 0.85rem;
    padding: 0.4rem 1.2rem;
  }

  .section-header h2 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
  }

  .section-header p {
    font-size: 1rem;
  }

  /* Stats Section */
  .stats-section {
    padding: 3rem 1.5rem;
    margin-top: -50px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .stat-box {
    padding: 1rem;
  }

  .stat-box i {
    font-size: 2rem;
    margin-bottom: 0.8rem;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .stat-box p {
    font-size: 0.95rem;
  }

  /* Services Grid */
  .services-grid-home,
  .projects-grid-home,
  .gallery-grid,
  .team-grid,
  .mv-grid,
  .contact-info-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .service-card-home,
  .project-card-home,
  .gallery-item {
    min-width: 100%;
  }

  .service-card-home {
    padding: 2rem;
  }

  .service-icon {
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
  }

  /* About Section */
  .about-section,
  .why-choose,
  .services-detailed {
    padding: 3rem 1.5rem;
  }

  .about-grid-main {
    gap: 2.5rem;
  }

  .about-content-main h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }

  .about-content-main p,
  .about-content-main ul li {
    font-size: 0.95rem;
  }

  .about-content-main ul {
    margin: 1.5rem 0;
  }

  .about-highlights {
    margin: 1.5rem 0;
  }

  .highlight-item {
    flex-direction: row;
    align-items: start;
    gap: 1rem;
  }

  .highlight-item i {
    font-size: 1.5rem;
  }

  .about-badge {
    width: 100px;
    height: 100px;
    bottom: 15px;
    right: 15px;
  }

  .badge-number {
    font-size: 2rem;
  }

  .badge-text {
    font-size: 0.9rem;
  }

  .about-image-main img {
    border-radius: 15px;
  }

  /* Image Stack */
  .image-stack {
    height: 350px;
  }

  .stack-img-1,
  .stack-img-2 {
    width: 90%;
    height: 75%;
  }

  /* Projects and Gallery */
  .project-card-home,
  .gallery-item {
    height: 350px;
  }

  .project-overlay,
  .gallery-overlay {
    padding: 2rem;
  }

  .project-overlay h3,
  .gallery-overlay h3 {
    font-size: 1.3rem;
  }

  /* Testimonials */
  .testimonials {
    padding: 3rem 1.5rem;
  }

  .testimonial-card {
    min-width: 280px;
    padding: 2rem;
  }

  .testimonial-card p {
    font-size: 0.95rem;
  }

  /* CTA Section */
  .cta-section {
    padding: 3rem 1.5rem;
  }

  .cta-content h2 {
    font-size: 2rem;
    margin-bottom: 0.8rem;
  }

  .cta-content p {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .btn {
    padding: 0.9rem 2rem;
    font-size: 0.95rem;
  }

  /* Mission Vision */
  .mission-vision {
    padding: 3rem 1.5rem;
  }

  .mv-card {
    padding: 2rem;
  }

  .mv-card i {
    font-size: 3rem;
  }

  .mv-card h3 {
    font-size: 1.5rem;
  }

  /* Team Section */
  .team-section {
    padding: 3rem 1.5rem;
  }

  .team-img {
    height: 250px;
  }

  /* Service Details */
  .service-detail {
    margin-bottom: 4rem;
    gap: 2.5rem;
  }

  .service-number {
    font-size: 4rem;
  }

  .service-detail-content h2 {
    font-size: 1.8rem;
  }

  .service-detail-img img {
    border-radius: 15px;
  }

  /* Process Section */
  .process-section {
    padding: 3rem 1.5rem;
  }

  .process-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .process-step {
    padding: 2rem;
  }

  .process-step i {
    font-size: 2.5rem;
  }

  /* Projects Filter */
  .projects-filter {
    padding: 2rem 1.5rem;
  }

  .filter-buttons {
    gap: 0.5rem;
  }

  .filter-btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
  }

  /* Contact Info Section */
  .contact-info-section {
    padding: 3rem 1.5rem;
  }

  .contact-info-card {
    padding: 2rem;
  }

  .contact-icon {
    width: 70px;
    height: 70px;
    font-size: 1.8rem;
  }

  /* Contact Form */
  .contact-form-section {
    padding: 3rem 1.5rem;
  }

  .contact-form-grid {
    gap: 3rem;
  }

  .contact-form-left h2 {
    font-size: 1.8rem;
  }

  .modern-form {
    padding: 2rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .form-group input,
  .form-group textarea,
  .form-group select {
    padding: 0.9rem;
    font-size: 0.95rem;
  }

  /* Map Section */
  .map-container iframe {
    height: 350px;
  }

  /* Footer */
  .footer {
    padding: 3rem 1.5rem 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-logo img {
    max-height: 150px !important;
  }

  .footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    padding-top: 1.5rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }

  /* Scroll to Top */
  .scroll-top {
    width: 45px;
    height: 45px;
    bottom: 20px;
    right: 20px;
    font-size: 1.1rem;
  }
}

/* ============================================
   SMALL MOBILE RESPONSIVE (max-width: 480px)
   ============================================ */
@media (max-width: 480px) {
  /* Container */
  .container {
    padding: 0 15px;
  }

  /* Logo */
  .logo {
    font-size: 1.3rem;
  }

  .logo img {
    max-height: 60px !important;
  }

  /* Hero Carousel */
  .hero-carousel {
    height: 60vh;
    min-height: 450px;
  }

  .carousel-content h1 {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
  }

  .carousel-content p {
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
  }

  .btn {
    padding: 0.8rem 1.8rem;
    font-size: 0.9rem;
  }

  /* Page Headers */
  .page-header h1 {
    font-size: 1.6rem;
  }

  .page-header p {
    font-size: 0.9rem;
  }

  /* Section Headers */
  .section-header h2 {
    font-size: 1.5rem;
  }

  .section-header p {
    font-size: 0.9rem;
  }

  /* Stats Grid */
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .stat-number {
    font-size: 2.2rem;
  }

  .stat-box p {
    font-size: 0.9rem;
  }

  /* About Section */
  .about-content-main h2 {
    font-size: 1.5rem;
  }

  .about-content-main p,
  .about-content-main ul li {
    font-size: 0.9rem;
  }

  .about-badge {
    width: 90px;
    height: 90px;
  }

  .badge-number {
    font-size: 1.8rem;
  }

  .badge-text {
    font-size: 0.85rem;
  }

  /* Service Cards */
  .service-card-home {
    padding: 1.5rem;
  }

  .service-icon {
    width: 55px;
    height: 55px;
    font-size: 1.6rem;
  }

  .service-card-home h3 {
    font-size: 1.3rem;
  }

  /* Projects and Gallery */
  .project-card-home,
  .gallery-item {
    height: 300px;
  }

  /* CTA Section */
  .cta-content h2 {
    font-size: 1.6rem;
  }

  .cta-content p {
    font-size: 0.95rem;
  }

  /* Mission Vision Cards */
  .mv-card {
    padding: 1.5rem;
  }

  .mv-card i {
    font-size: 2.5rem;
  }

  .mv-card h3 {
    font-size: 1.3rem;
  }

  /* Team Cards */
  .team-img {
    height: 220px;
  }

  .team-card h3 {
    font-size: 1.1rem;
  }

  /* Service Detail */
  .service-number {
    font-size: 3rem;
  }

  .service-detail-content h2 {
    font-size: 1.5rem;
  }

  /* Process Steps */
  .process-step {
    padding: 1.5rem;
  }

  .process-number {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
    top: -22px;
  }

  .process-step i {
    font-size: 2.2rem;
    margin: 1.5rem 0 1rem;
  }

  .process-step h3 {
    font-size: 1.1rem;
  }

  /* Filter Buttons */
  .filter-btn {
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
  }

  /* Contact Cards */
  .contact-info-card {
    padding: 1.5rem;
  }

  .contact-icon {
    width: 60px;
    height: 60px;
    font-size: 1.6rem;
  }

  .contact-info-card h3 {
    font-size: 1.1rem;
  }

  /* Contact Form */
  .modern-form {
    padding: 1.5rem;
  }

  /* Map */
  .map-container iframe {
    height: 300px;
  }

  /* Footer */
  .footer-logo {
    font-size: 1.5rem;
  }

  .footer-col h4 {
    font-size: 1rem;
  }

  .footer-col p,
  .footer-col ul li,
  .footer-bottom p {
    font-size: 0.9rem;
  }

  .social-links a {
    width: 40px;
    height: 40px;
  }
}

/* ============================================
   LANDSCAPE MOBILE OPTIMIZATION
   ============================================ */
@media (max-width: 900px) and (max-height: 500px) {
  .hero-carousel {
    height: 100vh;
  }

  .carousel-content h1 {
    font-size: 2rem;
  }

  .carousel-content p {
    font-size: 0.95rem;
  }

  .carousel-btn {
    width: 35px;
    height: 35px;
  }
}

/* ============================================
   TOUCH DEVICE OPTIMIZATIONS
   ============================================ */
@media (hover: none) and (pointer: coarse) {
  /* Remove hover effects on touch devices */
  .service-card-home:hover,
  .project-card-home:hover,
  .team-card:hover,
  .mv-card:hover,
  .contact-info-card:hover,
  .process-step:hover {
    transform: none;
  }

  /* Always show gallery overlay on mobile */
  .gallery-overlay {
    opacity: 1;
    transform: translateY(0);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
  }

  .project-overlay {
    opacity: 1;
    transform: translateY(0);
  }

  /* Make buttons larger for easier tapping */
  .btn {
    min-height: 48px;
    padding: 0.9rem 2rem;
  }

  .filter-btn {
    min-height: 44px;
  }

  .carousel-btn {
    min-width: 44px;
    min-height: 44px;
  }
}

/* ============================================
   ACCESSIBILITY IMPROVEMENTS
   ============================================ */

/* Focus visible for keyboard navigation */
*:focus-visible {
  outline: 3px solid var(--primary-color);
  outline-offset: 2px;
}

/* Ensure text remains readable */
@media (max-width: 768px) {
  body {
    font-size: 16px;
  }

  p {
    line-height: 1.7;
  }
}

/* Prevent text from being too small */
@media (max-width: 480px) {
  body {
    font-size: 15px;
  }
}

/* ============================================
   LOGO FIXES FOR MOBILE - SQUARE ASPECT RATIO
   ============================================ */

/* Ensure logo images maintain square aspect ratio on all devices */
.logo img,
.footer-logo img {
  width: auto;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  aspect-ratio: 1 / 1;
}

/* Header logo - desktop */
.logo img {
  max-height: 100px;
  max-width: 100px;
}

/* Footer logo - desktop */
.footer-logo img {
  max-height: 200px;
  max-width: 200px;
}

/* Tablet adjustments */
@media (max-width: 1024px) {
  .logo img {
    max-height: 80px;
    max-width: 80px;
  }

  .footer-logo img {
    max-height: 160px;
    max-width: 160px;
  }
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .logo img {
    max-height: 70px !important;
    max-width: 70px !important;
  }

  .footer-logo img {
    max-height: 150px !important;
    max-width: 150px !important;
  }
}

/* Small mobile adjustments */
@media (max-width: 480px) {
  .logo img {
    max-height: 60px !important;
    max-width: 60px !important;
  }

  .footer-logo img {
    max-height: 120px !important;
    max-width: 120px !important;
  }
}

/* Extra small devices */
@media (max-width: 375px) {
  .logo img {
    max-height: 50px !important;
    max-width: 50px !important;
  }

  .footer-logo img {
    max-height: 100px !important;
    max-width: 100px !important;
  }
}

/* Fix for flex container */
.logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 1rem;
}

/* Ensure logo container doesn't stretch */
@media (max-width: 768px) {
  .nav-wrapper .logo {
    flex-shrink: 0;
  }
}

/* ============================================
   ABOUT SECTION MOBILE FIX
   Remove reverse layout on mobile for consistent flow
   ============================================ */

/* On mobile, always show text first, then image */
@media (max-width: 768px) {
  /* Reset reverse layout on mobile */
  .about-grid-main.reverse {
    direction: ltr;
  }

  .about-grid-main.reverse .about-image-main {
    order: 2;
  }

  .about-grid-main.reverse .about-content-main {
    order: 1;
  }

  /* Make about grid flex column on mobile */
  .about-grid-main {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
  }

  /* Ensure all content comes before images */
  .about-content-main {
    order: 1;
    min-width: 100%;
  }

  .about-image-main {
    order: 2;
    min-width: 100%;
  }

  /* For reverse layout, keep same order as normal */
  .about-grid-main.reverse .about-content-main {
    order: 1;
  }

  .about-grid-main.reverse .about-image-main {
    order: 2;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .stat-box {
    padding: 1.5rem 1rem;
  }

  .stat-box i {
    font-size: 2rem;
    margin-bottom: 0.8rem;
  }

  .stat-number {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
  }

  .stat-box p {
    font-size: 0.9rem;
    line-height: 1.4;
  }
}

/* Small mobile adjustments */
@media (max-width: 480px) {
  .about-section .about-grid-main + .about-grid-main {
    margin-top: 3rem;
  }

  .about-grid-main {
    gap: 2rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
  }

  .stat-box {
    padding: 1.2rem 0.8rem;
  }

  .stat-box i {
    font-size: 1.8rem;
    margin-bottom: 0.6rem;
  }

  .stat-number {
    font-size: 2.2rem;
    margin-bottom: 0.4rem;
  }

  .stat-box p {
    font-size: 0.85rem;
    line-height: 1.3;
  }
}

/* Extra small devices - maintain 2x2 */
@media (max-width: 375px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .stat-box {
    padding: 1rem 0.6rem;
  }

  .stat-box i {
    font-size: 1.6rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .stat-box p {
    font-size: 0.8rem;
  }
}

/* ============================================
   DROPDOWN MENU STYLES
   ============================================ */

.nav-dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

.dropdown-toggle i {
  font-size: 12px;
  transition: transform 0.3s ease;
}

.nav-dropdown:hover .dropdown-toggle i {
  transform: rotate(180deg);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 220px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  padding: 10px 0;
  margin-top: 5px;
  z-index: 1000;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.nav-dropdown:hover .dropdown-menu {
  display: block;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Keep dropdown open when hovering over it */
.dropdown-menu:hover {
  display: block;
  opacity: 1;
}

.dropdown-item {
  display: block;
  padding: 12px 20px;
  color: var(--text-color);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 14px;
}

.dropdown-item:hover {
  background: var(--light-color);
  color: var(--primary-color);
  padding-left: 25px;
}

/* Mobile Dropdown */
@media (max-width: 768px) {
  .nav-dropdown {
    display: block;
    width: 100%;
  }

  .dropdown-toggle {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 1rem;
  }

  .dropdown-menu {
    position: static;
    display: none;
    box-shadow: none;
    margin-top: 0;
    padding-left: 0;
    background: var(--light-color);
    border-radius: 0;
    width: 100%;
  }

  .dropdown-item {
    text-align: center;
    padding: 12px 20px;
  }

  .dropdown-item:hover {
    padding-left: 20px;
  }

  .nav-dropdown.active .dropdown-menu {
    display: block;
    opacity: 1;
    transform: none;
  }
}

/* ============================================
   GALLERY STYLES
   ============================================ */

.gallery-section {
  padding: 80px 0;
  background: var(--light-color);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  width: 100%;
  padding-bottom: 75%; /* 4:3 aspect ratio */
  background: var(--white);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

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

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(191, 57, 48, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay i {
  color: var(--white);
  font-size: 48px;
}

/* ============================================
   LIGHTBOX STYLES
   ============================================ */

.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  overflow: auto;
}

.lightbox-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 85vh;
  position: relative;
  top: 50%;
  transform: translateY(-50%);
  animation: zoom 0.3s;
}

@keyframes zoom {
  from {
    transform: translateY(-50%) scale(0.8);
  }
  to {
    transform: translateY(-50%) scale(1);
  }
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 45px;
  color: #f1f1f1;
  font-size: 50px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  z-index: 10000;
}

.lightbox-close:hover,
.lightbox-close:focus {
  color: var(--primary-color);
}

.lightbox-caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 20px 0;
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 18px;
}

.lightbox-prev,
.lightbox-next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: auto;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 40px;
  transition: 0.3s;
  user-select: none;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 4px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background-color: rgba(191, 57, 48, 0.8);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

/* ============================================
   INTRO SECTION STYLES
   ============================================ */

.intro-section {
  padding: 80px 0;
  background: var(--white);
}

.intro-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.intro-content h2 {
  font-size: 36px;
  color: var(--secondary-color);
  margin-bottom: 20px;
}

.intro-content p {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-color);
  margin-bottom: 20px;
}

.intro-content .btn {
  margin-top: 20px;
}

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

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .lightbox-content {
    max-width: 95%;
    max-height: 80vh;
  }

  .lightbox-close {
    top: 15px;
    right: 25px;
    font-size: 35px;
  }

  .lightbox-prev,
  .lightbox-next {
    font-size: 30px;
    padding: 12px;
  }

  .intro-content h2 {
    font-size: 28px;
  }

  .intro-content p {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .gallery-section {
    padding: 60px 0;
  }
}
