:root {
  --primary-color: #0072ce;
  --secondary-color: #f8f9fa;
  --gradient-bg: linear-gradient(135deg, #0072ce, #00aaff);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  line-height: 0;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
}

/* Navbar Styles */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: background-color 0.3s ease;
}

.navbar-bg {
  background-color: #ffffff;
}

.navbar-brand:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--primary-color) !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.logo-img {
  height: 40px;
}

/* Button Styles */
.btn-primary {
  background: var(--gradient-bg);
  border: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-outline-primary {
  transition: transform 0.3s ease;
}

.btn-outline-primary:hover {
  transform: translateY(-3px);
}

/* Index Page Styles */
.hero-section {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url('../assets/images/hero/hero.jpeg') no-repeat center center scroll;
  background-size: cover;
  margin-top: 70px;
}

.hero-content {
  position: relative;
  max-width: 800px;
  padding: 2rem;
}

.hero-section h1 {
  color: #fff;
  font-weight: 700;
  font-size: 3.5rem;
}

.hero-section h1 span {
  color: var(--primary-color);
}

.hero-section p {
  color: #f8f9fa;
  font-size: 1.25rem;
}

.project-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  border-radius: 15px;
  overflow: hidden;
  background: #fff;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.project-card img {
  height: 250px;
  object-fit: cover;
}

.modal-dialog {
  max-width: 800px;
}

.modal-content {
  border-radius: 15px;
}

.carousel-inner img {
  height: 400px;
  object-fit: cover;
  border-radius: 10px;
}

.testimonial-section {
  padding: 50px 0;
  background: #f8f9fa;
}

.testimonial-card {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 10px 24px rgba(0, 114, 206, 0.15);
}

.testimonial-section .row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

.testimonial-section .col-md-4,
.testimonial-section .col-lg-4 {
  display: flex;
  flex-direction: column;
}

.testimonial-card {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  /* ...other styles remain unchanged... */
}

.featured-carousel {
  width: 100vw;
  position: relative;
}

.featured-carousel .carousel-inner img {
  height: 400px;
  object-fit: cover;
  width: 100%;
}

.featured-carousel .carousel-caption {
  background: rgba(0, 0, 0, 0.6);
  border-radius: 10px;
  padding: 10px 20px;
  bottom: 20px;
  display: inline-block;
  max-width: 100%;
  text-align: center;
  left: 50%;
  transform: translateX(-50%);
  position: absolute;
}

.featured-carousel .carousel-caption h5 {
  font-size: 1.25rem;
  margin: 0;
  color: #fff;
}

.featured-carousel .carousel-caption p {
  font-size: 1rem;
  margin: 0;
  color: #f8f9fa;
}

.featured-carousel .badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
}

#featuredCarousel .carousel-control-prev-icon,
#featuredCarousel .carousel-control-next-icon {
  background-image: none;
  width: 30px;
  height: 30px;
  background-color: transparent;
  border: none;
}

#featuredCarousel .carousel-control-prev-icon::before,
#featuredCarousel .carousel-control-next-icon::before {
content: '';
width: block;
height: 30px;
background-size: contain;
background-repeat: no-repeat;
}

#featuredCarousel .carousel-control-prev-icon::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23000' viewBox='0 0 16 16'%3E%3Cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3E%3C/svg%3E");
}

#featuredCarousel .carousel-control-next-icon::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23000' viewBox='0 0 16 16'%3E%3Cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
}

/* Services Page Styles */
.service-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  border-radius: 15px;
  overflow: hidden;
  background: #fff;
}

.service-card:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0, 114, 206, 0.3);
}

.why-choose-item {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-width: 160px;
  max-width: 180px;
  padding: 15px;
  text-align: center;
}

.why-choose-item:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0, 114, 206, 0.3);
}

.why-choose-item i {
  font-size: 2rem;
}

.why-choose-item h5 {
  font-size: 1.1rem;
  margin: 8px 0;
}

.why-choose-item p {
  font-size: 0.9rem;
  margin: 0;
}

.why-choose-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 15px;
  justify-content: center;
}

/* Projects Page Styles */
.filter-btn {
  transition: transform 0.3s ease;
}

.filter-btn:hover {
  transform: translateY(-3px);
}

.filter-btn.active {
  background-color: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

/* About Page Styles */
.team-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  border-radius: 15px;
  overflow: hidden;
  background: #fff;
}

.team-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.team-card img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin: 20px auto;
  display: block;
  transition: transform 0.5s ease;
  border: 3px solid var(--primary-color);
}

.team-card:hover img {
  transform: scale(1.1);
}

.team-card .card-body {
  padding: 1.5rem;
}

.timeline-item {
  position: relative;
  padding-left: 40px;
  margin-bottom: 30px;
  opacity: 0;
  transform: translateX(-50px);
  animation: slideInLeft 0.8s ease forwards;
  animation-delay: calc(0.2s * var(--timeline-index));
}

.timeline-marker {
  position: absolute;
  left: 0;
  top: 0;
  width: 15px;
  height: 15px;
  background-color: var(--primary-color);
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 10px rgba(0, 114, 206, 0.5);
}

.timeline-content {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.timeline-content:hover {
  transform: translateY(-5px);
}

.certification-item {
  transition: transform 0.3s ease;
}

.certification-item:hover {
  transform: scale(1.1);
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.team-card .card-text {
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Contact Page Styles */
.contact-info .contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.contact-info .contact-item i {
  font-size: 1.5rem;
  margin-top: 0.2rem;
}

.contact-info .contact-item div {
  flex: 1;
}

#contact-form {
  max-width: 100%;
  margin: auto;
  /* Remove background, border-radius, and box-shadow */
  background: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0; /* Optional: Let the card-body handle padding */
}

#contact-form input,
#contact-form textarea {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
}

#contact-form button {
  margin-top: 15px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
}

#contact-form button:hover {
  background-color: #005bb5;
}

#contact-form h3 {
  text-align: center;
  margin-bottom: 20px;
}

.map-container iframe {
  border: 1px solid #ddd;
  border-radius: 4px;
}

/* Page Header Styles (Shared across Services, Projects, About, Contact) */
.page-header {
  margin-top: 70px;
  padding: 2rem 0;
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.page-header h1 {
  margin-bottom: 0.5rem;
}

.page-header p {
  margin-bottom: 0;
}

/* Contact Page Specific Header Adjustments */
.contact-page-header h1 {
  font-size: 2.5rem;
}

.contact-page-header p.lead {
  font-size: 1rem;
}

/* Footer Styles */
.bg-dark.text-white a.text-white-50 {
  text-decoration: none;
}

/* Media Queries */
@media (max-width: 768px) {
  .hero-section {
    margin-top: 60px;
    min-height: 60vh;
  }

  .hero-section h1 {
    font-size: 2.5rem;
  }

  .hero-section p {
    font-size: 1rem;
  }

  .featured-carousel .carousel-inner img {
    height: 250px;
  }

  .carousel-inner img {
    height: 250px;
  }

  .page-header {
    margin-top: 60px;
  }

  .why-choose-row {
    flex-wrap: wrap;
    justify-content: center;
  }

  .why-choose-item {
    min-width: 30%;
    max-width: 32%;
  }

  .contact-page-header {
    min-height: 120px;
    padding: 1.5rem 0;
  }

  .contact-page-header h1 {
    font-size: 2rem;
  }

  .contact-page-header p.lead {
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .why-choose-item {
    min-width: 100%;
    max-width: 100%;
  }
}

.custom-featured-carousel {
  max-width: 1400px;      /* Decreased width for a more compact look */
  max-height: 520px;     /* Slightly larger than image height for padding */
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.custom-featured-carousel .carousel-item img {
  height: 500px;         /* Increased height */
  object-fit: cover;
  width: 100%;
  border-radius: 0;
}

.testimonial-card p,
.testimonial-card h6 {
  width: 100%;
  text-align: left;
}

.about-card {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
  padding: 32px 20px;
  transition: transform 0.3s cubic-bezier(.4,2,.6,1), box-shadow 0.3s;
  cursor: pointer;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.about-card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 12px 32px rgba(0,114,206,0.13);
  animation: animate__pulse 0.7s;
}

.about-logo {
  max-height: 1000px; /* Adjust as needed */
  height: 100%;
  width: auto;
  display: block;
  margin: 0 auto;
}

.send-btn-wide {
  min-width: 180px;
  padding-left: 32px;
  padding-right: 32px;
  font-size: 1.1rem;
}

.office-cards-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 24px;
}

.office-cards-row > .col-lg-6 {
  flex: 1 1 0;
  display: flex;
}

.office-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 420px; /* Adjust as needed */
}