html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Construction Site Styles */
.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.hero-section {
  position: relative;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-section h1 {
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-section .lead {
  font-size: 1.25rem;
}

.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card img {
  height: 200px;
  object-fit: cover;
}

/* Service card images - show more of the image */
.row .card-img-top {
  height: 350px;
  object-fit: cover;
}

.services-overview h2,
.featured-projects h2,
.why-choose-us h2,
.testimonials h2,
.image-gallery h2 {
  font-weight: 700;
  color: #ffffff;
  position: relative;
  padding-bottom: 1rem;
}

.services-overview h2::after,
.featured-projects h2::after,
.why-choose-us h2::after,
.testimonials h2::after,
.image-gallery h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: #007bff;
  border-radius: 2px;
}

/* Services Overview Card Styles */
.services-overview {
  background: linear-gradient(135deg, #0a1628 0%, #0f1f2e 100%);
  padding: 4rem 0 !important;
}

.services-overview .card {
  border: 2px solid transparent;
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.services-overview .card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ffc107 0%, #0d6efd 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.services-overview .card:hover {
  border-color: #ffc107;
  box-shadow: 0 15px 40px rgba(255, 193, 7, 0.2) !important;
  transform: translateY(-8px);
}

.services-overview .card:hover::before {
  transform: scaleX(1);
}

.services-overview .card-body {
  padding: 2.5rem 2rem;
}

.services-overview .card-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #ffffff;
}

.services-overview .card-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #d0d0d0;
}

.service-icon-wrapper {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 1.5rem;
  overflow: hidden;
  border-radius: 50%;
  box-shadow: 0 8px 25px rgba(13, 110, 253, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-icon-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.service-icon-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
  border-radius: 50%;
  pointer-events: none;
}

.services-overview .card:hover .service-icon-wrapper {
  transform: scale(1.1);
  box-shadow: 0 12px 35px rgba(13, 110, 253, 0.5);
}

.services-overview .card:hover .service-icon-wrapper img {
  transform: scale(1.05);
}

.badge {
  font-size: 0.85rem;
  padding: 0.5rem 0.75rem;
}

.filter-btn.active {
  background-color: #0d6efd;
  color: white;
}

.project-card {
  transition: opacity 0.3s ease;
}

footer {
  margin-top: auto;
  padding-top: 3rem;
  padding-bottom: 1rem;
}

footer a:hover {
  color: #ffc107 !important;
}

.cta-section {
  border-radius: 8px;
  background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
}

/* Theme Selector Styling */
#themeSelector {
  font-size: 0.9rem;
  font-weight: 500;
}

#themeSelector option {
  color: #222;
  background-color: #fff;
}

#themeSelector optgroup {
  font-weight: 600;
  color: #555;
}

.text-warning {
    color: #0066ff !important;
}

@media (max-width: 768px) {
  .hero-section {
    min-height: 350px !important;
  }

  .hero-section h1 {
    font-size: 2rem;
  }

  .display-4 {
    font-size: 2rem;
  }
}

/* Image Gallery Carousel Styles */
.image-gallery h2 {
  font-weight: 700;
  color: #ffffff;
  position: relative;
  padding-bottom: 1rem;
}

.image-gallery h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: #007bff;
  border-radius: 2px;
}

.gallery-carousel-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.gallery-slide {
  position: relative;
  height: 500px;
}

.gallery-carousel-img {
  height: 500px;
  object-fit: cover;
  display: block;
}

.carousel.slide {
  background-color: #f0f0f0;
}

.carousel-item {
  transition: opacity 0.4s ease-in-out;
  position: relative;
}

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

.carousel-item:not(.active) {
  opacity: 0;
}

.gallery-view-btn {
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s ease;
  z-index: 10;
  background-color: rgba(255, 255, 255, 0.9);
  border: none;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
}

.carousel-item:hover .gallery-view-btn {
  opacity: 1;
  transform: scale(1);
}

.carousel-control-prev,
.carousel-control-next {
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  top: 50%;
  transform: translateY(-50%);
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background-color: rgba(0, 0, 0, 0.6);
}

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

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

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 1.5rem;
  height: 1.5rem;
}

.carousel-indicators {
  bottom: 15px;
  display: flex;
  gap: 8px;
  justify-content: center;
}

.carousel-indicators button {
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  border-radius: 50%;
  width: 12px;
  height: 12px;
  padding: 0;
  margin: 0;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.carousel-indicators button.active {
  background-color: rgba(255, 255, 255, 1);
  width: 30px;
  border-radius: 6px;
}

.carousel-indicators button:hover {
  background-color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 768px) {
  .gallery-slide {
    height: 350px;
  }

  .gallery-carousel-img {
    height: 350px;
  }

  .carousel-control-prev,
  .carousel-control-next {
    width: 40px;
    height: 40px;
  }

  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    width: 1.2rem;
    height: 1.2rem;
  }

  .team-member-img {
    height: 600px;
  }
}

/* Team Member Card Images */
.team-member-img {
  height: 600px;
  object-fit: contain;
  background-color: #f8f9fa;
}
