* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #f8f9fa;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  overflow-x: hidden;
}

/* Header Styles */
header {
  background: linear-gradient(135deg, #2c3e50, #1a2530);
  color: white;
  padding: 2rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.menu-toggle {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(52, 152, 219);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s, background 0.3s;
}

.menu-toggle:hover {
  transform: rotate(90deg);
  background: rgba(52, 152, 219, 0.75);
}

header h1 {
  font-size: 2.8rem;
  margin-bottom: 0.5rem;
  overflow: hidden;
  border-right: 0.15em solid #3498db;
  white-space: nowrap;
  margin: 0 auto;
  letter-spacing: 0.15em;
  animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end 3;
  width: fit-content;
  max-width: 100%;
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink-caret {
  from,
  to {
    border-color: transparent;
  }
  50% {
    border-color: #3498db;
  }
}

header p {
  font-size: 1.2rem;
  opacity: 0.9;
  animation: fadeInUp 1s ease-out 1s both;
  margin-bottom: 1.5rem;
  max-width: 100%;
  padding: 0 15px;
}

.header-btn {
  display: inline-block;
  background: #3498db;
  color: white;
  padding: 12px 25px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  animation: fadeInUp 1s ease-out 1.5s both;
  max-width: 100%;
}

.header-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.header-btn:hover::before {
  left: 100%;
}

.header-btn:hover {
  background: #2980b9;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 7px 14px rgba(0, 0, 0, 0.15);
  text-decoration: none;
  color: white;
}

.header-btn:active {
  transform: translateY(1px);
}

/* Side Navigation */
.side-nav {
  position: fixed;
  top: 0;
  left: -300px;
  width: 300px;
  height: 100vh;
  background: #2c3e50;
  z-index: 1000;
  padding: 80px 20px 20px;
  transition: left 0.3s ease;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
  overflow-y: auto;
}

.side-nav.open {
  left: 0;
}

.side-nav ul {
  list-style: none;
}

.side-nav ul li {
  margin-bottom: 15px;
  transform: translateX(-20px);
  opacity: 0;
  transition: transform 0.3s, opacity 0.3s;
}

.side-nav.open ul li {
  transform: translateX(0);
  opacity: 1;
}

.side-nav.open ul li:nth-child(1) {
  transition-delay: 0.1s;
}
.side-nav.open ul li:nth-child(2) {
  transition-delay: 0.2s;
}
.side-nav.open ul li:nth-child(3) {
  transition-delay: 0.3s;
}
.side-nav.open ul li:nth-child(4) {
  transition-delay: 0.4s;
}
.side-nav.open ul li:nth-child(5) {
  transition-delay: 0.5s;
}
.side-nav.open ul li:nth-child(6) {
  transition-delay: 0.6s;
}

.side-nav ul li a {
  color: white;
  text-decoration: none;
  font-size: 1.2rem;
  display: block;
  padding: 10px 15px;
  border-radius: 5px;
  transition: background 0.3s, transform 0.3s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.side-nav ul li a:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(5px);
}

.side-nav .close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  transition: transform 0.3s;
}

.side-nav .close-btn:hover {
  transform: rotate(90deg);
}

/* Services Carousel */
.services-section {
  padding: 3rem 0;
  background: #f1f5f9;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.services-container {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  width: 100%;
  overflow: hidden;
}

.services-slider {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.services-track {
  display: flex;
  transition: transform 0.5s ease;
  width: 100%;
}

.service-item {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  min-width: 100%;
  opacity: 0;
  transform: translateX(50px);
  transition: transform 0.6s, opacity 0.6s, box-shadow 0.3s;
  width: 100%;
  max-width: 100%;
}

.service-item.animate {
  opacity: 1;
  transform: translateX(0);
}

.service-item:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s;
  text-decoration: none;
  cursor: pointer;
}

.service-item:hover .service-img {
  transform: scale(1.1);
}

.service-caption {
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.service-caption h3 {
  margin-bottom: 0.5rem;
  color: #2c3e50;
  transition: color 0.3s;
}

.service-item:hover .service-caption h3 {
  color: #3498db;
  text-decoration: none;
}

.service-caption p {
  color: #7f8c8d;
}

.services-nav {
  text-align: center;
  margin-top: 1.5rem;
}

.services-indicator {
  display: inline-block;
  width: 12px;
  height: 12px;
  background: #bbb;
  border-radius: 50%;
  margin: 0 5px;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.services-indicator:hover {
  transform: scale(1.3);
}

.services-indicator.active {
  background: #3498db;
  transform: scale(1.3);
}

.services-btn {
  display: none !important;
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  background: rgba(52, 152, 219, 0.8);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, transform 0.3s;
  z-index: 10;
}

.services-btn:hover {
  background: rgba(52, 152, 219, 1);
  transform: translateY(-50%) scale(1.1);
}

.services-prev {
  left: 10px;
}

.services-next {
  right: 10px;
}

/* Hide navigation when not needed */
.services-nav:empty {
  display: none !important;
}

/* Contact Form Section */
.contact-section {
  padding: 3rem 0;
  width: 100%;
  overflow: hidden;
}

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
  color: #2c3e50;
  font-size: 2.2rem;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s, transform 0.8s;
  width: 100%;
  padding: 0 15px;
}

.section-title.animate {
  opacity: 1;
  transform: translateY(0);
}

.contact-form {
  background: white;
  border-radius: 10px;
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  max-width: 800px;
  margin: 0 auto;
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s, transform 0.8s;
  width: 100%;
  box-sizing: border-box;
}

.contact-form.animate {
  opacity: 1;
  transform: translateX(0);
}

.form-group {
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.5s, transform 0.5s;
  width: 100%;
}

.contact-form.animate .form-group {
  opacity: 1;
  transform: translateX(0);
}

.contact-form.animate .form-group:nth-child(1) {
  transition-delay: 0.1s;
}
.contact-form.animate .form-group:nth-child(2) {
  transition-delay: 0.2s;
}
.contact-form.animate .form-group:nth-child(3) {
  transition-delay: 0.3s;
}
.contact-form.animate .form-group:nth-child(4) {
  transition-delay: 0.4s;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #2c3e50;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  box-sizing: border-box;
}

.form-control:focus {
  border-color: #3498db;
  outline: none;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
  transform: scale(1.02);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.btn {
  display: inline-block;
  background: #3498db;
  color: white;
  padding: 12px 25px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  background: #2980b9;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 7px 14px rgba(0, 0, 0, 0.15);
}

.btn:active {
  transform: translateY(1px);
}

.btn-center {
  text-align: center;
  width: 100%;
}

/* Project Carousel Section */
.carousel-section {
  padding: 3rem 0;
  background: #f1f5f9;
  width: 100%;
  overflow: hidden;
}

.carousel-container {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  width: 100%;
  overflow: hidden;
}

.carousel-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  width: 100%;
}

.carousel-item {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  opacity: 0;
  transform: translateX(50px);
  transition: transform 0.6s, opacity 0.6s, box-shadow 0.3s;
  width: 100%;
}

.carousel-item:nth-child(even) {
  transform: translateX(-50px);
}

.carousel-item.animate {
  opacity: 1;
  transform: translateX(0);
}

.carousel-item:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.carousel-img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s;
  cursor: pointer;
}

.carousel-item:hover .carousel-img {
  transform: scale(1.1);
}

.carousel-caption {
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.carousel-caption h3 {
  margin-bottom: 0.5rem;
  color: #2c3e50;
  transition: color 0.3s;
  text-decoration: none;
}

.carousel-item:hover .carousel-caption h3 {
  color: #3498db;
  text-decoration: none;
}

.carousel-caption p {
  color: #7f8c8d;
}

.carousel-nav {
  text-align: center;
  margin-top: 1.5rem;
  display: none;
}

.carousel-indicator {
  display: inline-block;
  width: 12px;
  height: 12px;
  background: #bbb;
  border-radius: 50%;
  margin: 0 5px;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.carousel-indicator:hover {
  transform: scale(1.3);
}

.carousel-indicator.active {
  background: #3498db;
  transform: scale(1.3);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(52, 152, 219, 0.8);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, transform 0.3s;
  z-index: 10;
}

.carousel-btn:hover {
  background: rgba(52, 152, 219, 1);
  transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
  left: 10px;
}

.carousel-next {
  right: 10px;
}

/* Building Works Section */
.building-works-section {
  padding: 3rem 0;
  background: white;
  width: 100%;
  overflow: hidden;
}

.building-works-container {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  width: 100%;
  overflow: hidden;
}

.building-works-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  width: 100%;
}

.building-works-item {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  opacity: 0;
  transform: translateX(50px);
  transition: transform 0.6s, opacity 0.6s, box-shadow 0.3s;
  width: 100%;
}

.building-works-item:nth-child(even) {
  transform: translateX(-50px);
}

.building-works-item.animate {
  opacity: 1;
  transform: translateX(0);
}

.building-works-item:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.building-works-img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s;
  cursor: pointer;
}

.building-works-item:hover .building-works-img {
  transform: scale(1.1);
}

.building-works-caption {
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.building-works-caption h3 {
  margin-bottom: 0.5rem;
  color: #2c3e50;
  transition: color 0.3s;
  text-decoration: none;
}

.building-works-item:hover .building-works-caption h3 {
  color: #3498db;
  text-decoration: none;
}

.building-works-caption p {
  color: #7f8c8d;
}

.building-works-nav {
  text-align: center;
  margin-top: 1.5rem;
  display: none;
}

.building-works-indicator {
  display: inline-block;
  width: 12px;
  height: 12px;
  background: #bbb;
  border-radius: 50%;
  margin: 0 5px;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.building-works-indicator:hover {
  transform: scale(1.3);
}

.building-works-indicator.active {
  background: #3498db;
  transform: scale(1.3);
}

.building-works-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(52, 152, 219, 0.8);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, transform 0.3s;
  z-index: 10;
}

.building-works-btn:hover {
  background: rgba(52, 152, 219, 1);
  transform: translateY(-50%) scale(1.1);
}

.building-works-prev {
  left: 10px;
}

.building-works-next {
  right: 10px;
}

/* About Section */
.about-section {
  padding: 3rem;
  background: white;
  width: 100%;
  overflow: hidden;
}

.about-container {
  display: flex;
  align-items: center;
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
}

.about-image {
  flex: 1;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s, transform 0.8s;
  max-width: 100%;
}

.about-image.animate {
  opacity: 1;
  transform: translateX(0);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s;
}

.about-image:hover img {
  transform: scale(1.05);
}

.about-content {
  flex: 1;
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s, transform 0.8s;
  width: 100%;
}

.about-content.animate {
  opacity: 1;
  transform: translateX(0);
}

.about-content h2 {
  color: #2c3e50;
  margin-bottom: 1rem;
  font-size: 2.2rem;
}

.about-content p {
  color: #7f8c8d;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  text-align: justify;
}

/* Footer */
footer {
  background: #2c3e50;
  color: white;
  text-align: center;
  padding: 2rem 0;
  margin-top: 2rem;
  width: 100%;
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 0 15px;
  box-sizing: border-box;
}

.developer {
  font-weight: 600;
  color: #3498db;
  position: relative;
  display: inline-block;
}

.developer::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #3498db;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s;
}

.developer:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Floating Buttons */
.float-buttons {
  position: fixed;
  bottom: 25px;
  right: 25px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 100;
}

.float-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none;
}

.float-btn:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  text-decoration: none;
}

.phone-btn {
  background: #25d366;
}

.whatsapp-btn {
  background: #128c7e;
}

.back-to-top {
  background: #3498db;
  display: none;
}

/* Success Message */
.success-message {
  display: none;
  text-align: center;
  background: #d4edda;
  color: #155724;
  padding: 15px;
  border-radius: 6px;
  margin-top: 20px;
  font-weight: 600;
  animation: pulse 2s infinite;
  scroll-margin-top: 20px;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(52, 152, 219, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(52, 152, 219, 0);
  }
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.show {
  display: block;
  opacity: 1;
}

.modal-content {
  position: relative;
  margin: auto;
  padding: 20px;
  width: 100%;
  max-width: 1200px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}

.modal-slide {
  display: none;
  width: 100%;
}

.modal-slide.active {
  display: block;
}

.modal-images-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  width: 100%;
}

.modal-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s;
}

.modal-image:hover {
  transform: scale(1.02);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  z-index: 2001;
}

.modal-close:hover {
  color: #bbb;
}

.modal-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  transform: translateY(-50%);
  z-index: 2001;
  box-sizing: border-box;
}

.modal-prev,
.modal-next {
  cursor: pointer;
  color: white;
  font-size: 2rem;
  background: rgba(0, 0, 0, 0.5);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.modal-prev:hover,
.modal-next:hover {
  background: rgba(0, 0, 0, 0.8);
}

.modal-caption {
  text-align: center;
  color: #fff;
  padding: 10px 0;
  font-size: 1.2rem;
  width: 100%;
}

/* Touch swipe area for mobile */
.swipe-area {
  position: absolute;
  top: 0;
  width: 20%;
  height: 100%;
  z-index: 2000;
}

.swipe-left {
  left: 0;
}

.swipe-right {
  right: 0;
}

/* Keyframe Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive Design */
@media (min-width: 1200px) {
  .carousel-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .building-works-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .carousel-nav {
    display: block;
  }

  .building-works-nav {
    display: block;
  }

  .services-btn {
    display: flex;
  }
  .carousel-img {
    height: 180px;
  }
  .building-works-img {
    height: 180px;
  }
}

@media (max-width: 1199px) and (min-width: 769px) {
  .carousel-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .building-works-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .carousel-nav {
    display: block;
  }

  .building-works-nav {
    display: block;
  }

  .services-btn {
    display: flex;
  }
  .carousel-img {
    height: 280px;
  }
  .building-works-img {
    height: 280px;
  }
}

@media (max-width: 992px) {
  .service-img {
    height: 300px;
  }
  .carousel-img {
    height: 250px;
  }
  .building-works-img {
    height: 250px;
  }
  .carousel-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .building-works-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-container {
    flex-direction: column;
    text-align: center;
  }

  .about-image {
    max-width: 400px;
    margin: 0 auto;
  }

  .services-prev {
    left: 5px;
  }

  .services-next {
    right: 5px;
  }

  .carousel-prev {
    left: 5px;
  }

  .carousel-next {
    right: 5px;
  }
  .building-works-prev {
    left: 5px;
  }

  .building-works-next {
    right: 5px;
  }
  .modal-image {
    height: 250px;
  }
}
@media (min-width: 768px) {
  .modal-images-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .contact-form {
    padding: 1.5rem;
  }

  .carousel-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .building-works-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  header {
    padding-top: 70px;
  }
  header h1,
  .container h2 {
    font-size: 2rem;
  }

  .side-nav {
    width: 250px;
    left: -250px;
  }
  .carousel-img {
    height: 180px;
  }
  .building-works-img {
    height: 180px;
  }
  .carousel-nav {
    display: block;
  }
  .building-works-nav {
    display: block;
  }

  .modal-images-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .modal-image {
    height: 180px;
  }

  .carousel-btn,
  .services-btn,
  .building-works-btn {
    display: none;
  }

  .services-prev,
  .services-next {
    display: none;
  }

  .carousel-prev,
  .carousel-next {
    display: none;
  }
  .building-works-prev,
  .building-works-next {
    display: none;
  }
}

@media (max-width: 576px) {
  header h1 {
    font-size: 1.4rem;
    animation: none;
    border-right: none;
    white-space: normal;
    padding: 0 15px;
  }
  header p {
    font-size: 1rem;
  }

  .services-section,
  .carousel-section,
  .building-works-section,
  .contact-section,
  .about-section {
    padding: 30px 0 0 0;
  }
  .section-title {
    font-size: 1.8rem;
    margin-bottom: 20px !important;
    padding: 0 15px;
  }
  .service-img {
    height: 300px;
  }
  .carousel-img {
    height: 100px;
  }
  .building-works-img {
    height: 100px;
  }

  .float-btn {
    width: 50px;
    height: 50px;
    font-size: 1.7rem;
  }
  .float-buttons {
    position: fixed;
    bottom: 40px;
    right: 10px;
  }
  .carousel-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0 10px;
  }
  .building-works-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0 10px;
  }

  .modal-images-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 0 10px;
  }

  .modal-image {
    height: 100px;
  }

  .modal-caption {
    font-size: 1rem;
    padding: 0 10px;
  }

  .services-track {
    width: 100%;
  }

  .service-item {
    min-width: 100%;
  }

  .contact-form {
    margin: 0 10px;
    width: calc(100% - 20px);
  }
  .about-section {
    padding-bottom: 2rem;
  }
  .service-item {
    min-width: 100%;
  }

  .carousel-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0 10px;
  }
  .building-works-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0 10px;
  }
}

@media (min-width: 577px) and (max-width: 992px) {
  .service-item {
    min-width: 50%;
  }
}

@media (min-width: 993px) {
  .service-item {
    min-width: 33.333%;
  }
}

@media (max-width: 360px) {
  .carousel-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 0 5px;
  }
  .building-works-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 0 5px;
  }
  h2 {
    font-size: 1.75rem !important;
  }
  .service-img {
    height: 200px;
  }
  .carousel-img {
    height: 90px;
  }
  .building-works-img {
    height: 90px;
  }
  .service-caption,
  .carousel-caption,
  .building-works-caption {
    padding: 10px;
  }

  .service-caption h3 {
    font-size: 1.15rem;
  }
  .carousel-caption h3 {
    font-size: 0.75rem;
  }
  .building-works-caption h3 {
    font-size: 0.75rem;
  }
  .service-caption p {
    font-size: 0.9rem;
  }
  .carousel-caption p {
    font-size: 0.75rem;
  }
  .building-works-caption p {
    font-size: 0.75rem;
  }
  .carousel-btn {
    top: 40%;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    font-size: 0.85rem;
  }
  .building-works-btn {
    top: 40%;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    font-size: 0.85rem;
  }
  .carousel-btn:hover {
    background: rgba(52, 152, 219, 0.8);
  }
  .building-works-btn:hover {
    background: rgba(52, 152, 219, 0.8);
  }
  .modal-images-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
    padding: 0 5px;
  }

  .modal-image {
    height: 90px;
  }

  .modal-close {
    top: 10px;
    right: 15px;
    font-size: 30px;
  }

  .modal-prev,
  .modal-next {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
  .about-section {
    padding-bottom: 2rem;
  }
  .about-image {
    max-width: 100%;
  }

  .about-content h2 {
    font-size: 1.8rem;
  }

  .container {
    padding: 0 20px;
  }

  .contact-form {
    padding: 1rem;
    margin: 0 5px;
    width: calc(100% - 10px);
  }

  .services-track {
    width: 100%;
  }
}
