body {
  font-family: Arial, sans-serif;
  margin: 0;
  line-height: 1.5;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #000;
  color: #fff;
  padding: 10px 20px;
  top: 0;
  flex-wrap: wrap;
  position: relative;
  z-index: 10;
}

.logo img {
  height: 90px;
  max-width: 100%;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  align-items: center;
}

nav a {
  text-decoration: none;
}

.button {
  font-size: 18px;
  padding: 10px 18px;
  color: #e1e1e1;
  font-family: inherit;
  font-weight: 800;
  cursor: pointer;
  position: relative;
  border: none;
  background: none;
  text-transform: uppercase;
  transition: color 400ms cubic-bezier(0.25, 0.8, 0.25, 1);
  white-space: nowrap;
  text-decoration: none;
}

.button:focus,
.button:hover {
  color: #fff;
}

.button:after {
  content: "";
  pointer-events: none;
  bottom: -2px;
  left: 50%;
  position: absolute;
  width: 0%;
  height: 2px;
  background-color: #fff;
  transition: width 400ms, left 400ms;
  transition-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1);
}

.button:focus:after,
.button:hover:after {
  width: 100%;
  left: 0%;
}

.btn-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 50px;
  border-radius: 50px;
  background: rgb(255, 255, 255);
  color: #000000;
  font-size: 18px;
  font-family: sans-serif;
  text-decoration: none;
  border: none;
  transition: transform 200ms;
}

.btn-link:active {
  transform: scale(0.9, 0.9);
}

.arrow-icon {
  margin-left: 10px;
  transition: margin 0.3s;
}

.btn-link:hover .arrow-icon {
  margin-left: 25px;
}

.hero * {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-image: url('../images3/Hero3.png');
  background-size: cover;
  background-position: center;
  padding: 100px 20px 80px; /* remove height 100vh */
}

/* Right-side content */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 2rem;
  margin-left: 5%;
  text-align: left;
}

/* Main heading */
.hero h1 {
  font-size: 3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

/* Subtitle */
.hero p {
  font-size: 1.25rem;
  color: #ccc;
  margin-bottom: 1rem;
  font-weight: 500;
}

/* CTA line */
.hero .cta {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-top: 10px;
}

/* Main title */
.hero h1 {
  color: white;
  font-size: 3.25rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0; /* space between h1 and p */
  line-height: 1.2;
}

/* Subtitle */
.hero p {
  font-size: 1.25rem;
  font-weight: 500;
  color: #ccc;
  margin: 0;
}

/* Social Icons */
.hero-icons {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  padding-top: 0.5rem;
}

.hero-icons a {
  color: #fff;
  font-size: 1.8rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

.hero-icons a:hover {
  color: #ffcc00;
  transform: scale(1.15);
}


#services {
  text-align: center;
  padding: 3rem 1rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.carousel-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  max-width: 100%;
  overflow: hidden;
}

.carousel {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 1rem 0;
  scrollbar-width: none;
  width: 100%;
  max-width: 600px; /* Only show 2 cards at once */
}

.carousel::-webkit-scrollbar {
  display: none;
}

.card {
  flex: 0 0 260px;
  height: auto;
  min-height: 220px;
  border-radius: 12px;
  color: white;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  scroll-snap-align: start;
  transition: transform 0.3s ease;
}

.card p {
  color: white;
  margin: 0.4rem 0;
  font-family:Arial, Helvetica, sans-serif;
  text-align: left;
}

.card b {
  color: white;
  margin: 0.4rem 0;
  font-family:Verdana, Geneva, Tahoma, sans-serif;
  font-size: 1.2rem;
  text-align: center;
}


.dark-card {
  background-color: #4d4d4d;
  background-image: url('../images3/tilecard4.png');
  background-size: cover;      /* makes the image cover the whole card */
  background-position: center; /* centers the image */
  background-repeat: no-repeat;/* prevents tiling */
}

.wood-card {
  background-color: #c8946b;
  background-image: url('../images3/card2.png');
  background-size: cover;      /* makes the image cover the whole card */
  background-position: center; /* centers the image */
  background-repeat: no-repeat;/* prevents tiling */
}

.blue-card {
  background-color: #415f7e;
  background-image: url('../images3/BathroomRenovation.png');
  background-size: cover;      /* makes the image cover the whole card */
  background-position: center; /* centers the image */
  background-repeat: no-repeat;/* prevents tiling */
}

.random-card {
  background-color: #4f2828;
  background-image: url('../images3/fullrenocard.png');
  background-size: cover;      /* makes the image cover the whole card */
  background-position: center; /* centers the image */
  background-repeat: no-repeat;/* prevents tiling */
}

.carousel-btn {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10;
  color: black;
  padding: 0 1rem;
  user-select: none;
}

.left-btn {
  margin-right: 0.5rem;
}

.right-btn {
  margin-left: 0.5rem;
}


#showcase {
  padding: 3rem 1rem;
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 2rem;
}

#showcase .carousel-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 0 40px;
  box-sizing: border-box;
}

#showcase .carousel {
  padding: 0 1rem;
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 16px;
  scrollbar-width: none;
}

#showcase .carousel::-webkit-scrollbar {
  display:none;
}

#showcase .carousel img {
  flex: 0 0 calc(50% - 8px); /* 2 images per view with 16px gap split */
  height: 600px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

#showcase .carousel-btn {
  background: none;
  border: none;
  font-size: 3rem;
  cursor: pointer;
  z-index: 10;
  color: black;
  padding: 0 4rem;
  user-select: none;
}

.left-showcase {
  left: 0.5rem;
}

.right-showcase {
  right: 0.5rem;
}

#about {
  padding: 3rem 1rem;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
  text-align: left; /* Left-align the paragraph text */
}

.about-text p {
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 2rem;
}


#contact {
  background-color: #000;
  color: #fff;
  padding: 4rem 1rem 2rem;
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.subheading {
  font-size: 1rem;
  margin-bottom: 2rem;
  color: #ccc;
}

.contact-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  justify-content: center;
  align-items: center;
}



.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 400px;
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem;
  border: none;
  border-radius: 4px;
  background-color: #111;
  color: white;
  border: 1px solid #444;
}

.contact-form textarea {
  height: 150px;
  resize: vertical;
}

.contact-form button {
  background-color: white;
  color: black;
  padding: 0.7rem 1.5rem;
  border: none;
  border-radius: 999px;
  font-weight: bold;
  cursor: pointer;
  align-self: center;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: #ccc;
}

.contact-info {
  text-align: left;
  font-size: 1.5rem; /* big size for desktop */
}

.contact-info p {
  margin: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-logo {
  margin-top: 1.5rem;
  max-width: 250px; /* big size for desktop */
}

footer {
  margin-top: 3rem;
  font-size: 0.9rem;
  color: #888;
}

/* === Responsive Styles === */
@media (max-width: 767px) {
  header {
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem;
  }

  .logo {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 1rem; /* gap between logo and buttons */
  }

  nav {
    display: flex;
    flex-direction: column; /* inline buttons */
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px; /* gap between buttons */
    width: 100%;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .logo {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
  }

}

@media (max-width: 1024px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p,
  .hero .cta {
    font-size: 1.1rem;
  }
}


@media (max-width: 768px) {
   .hero {
    height: 45vh;
    justify-content: center; /* centers text on mobile */
  }

  .hero-content {
    margin-right: 0;
    text-align: center;
    
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p,
  .hero .cta {
    font-size: 1rem;
  }

  .hero-content {
    margin-right: 0;
  }

  .hero-icons {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero {
    height: 60vh;
    justify-content: center; /* centers text on mobile */
  }

  .hero-content {
    margin-right: 0;
    text-align: center;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p,
  .hero .cta {
    font-size: 1rem;
  }

  .hero-content {
    margin-right: 0;
  }

  .hero-icons {
    justify-content: center;
  }
}


@media (max-width: 1024px) {
  #showcase .carousel img {
    flex: 0 0 calc(50% - 5px); /* Show 2 images on tablets */
    height: 400px;
  }

  .carousel-btn {
    font-size: 2rem;
    padding: 0 1rem;
  }
}

@media (max-width: 768px) {
  #showcase .carousel img {
    flex: 0 0 100%; /* Show 1 image on smaller devices */
    height: 580px;
  }

  .carousel-btn {
    display: none;
  }

}

@media (max-width: 480px) {
  #showcase .carousel img {
    height: 500px;
    padding: 0 0.1rem;
    max-width: 100%;
  }

  .carousel-btn {
    display: none;
  }

}

/* Mobile-first: Phones (up to 599px) */
@media (max-width: 599px) {
  .contact-form input,
  .contact-form textarea {
    width: 80%;
    margin: 0 auto;
  }

  .contact-info {
    text-align: center;
    font-size: 1rem;
    margin-top: 2rem;
  }

  .contact-logo {
    max-width: 160px;
    margin-top: 1rem;
  }

  .copyright {
    margin-top: 2rem;
    font-size: 0.875rem;
    color: #888;
  }
}

/* Tablets (600px to 767px) */
@media (min-width: 600px) and (max-width: 767px) {
  .contact-form input,
  .contact-form textarea {
    width: 90%;
    margin: 0 auto;
  }

  .contact-info {
    text-align: center;
    font-size: 1.2rem;
    margin-top: 2rem;
  }

  .contact-logo {
    max-width: 200px;
    margin-top: 1rem;
  }

  .copyright {
    margin-top: 2rem;
    font-size: 1rem;
    color: #aaa;
  }
}

/* Desktop (768px and up) */
@media (min-width: 768px) {
  .contact-container {
    flex-direction: row;
    justify-content: space-around;
    align-items: flex-start;
  }

  .contact-form input,
  .contact-form textarea {
    width: 100%;
    margin: 0;
  }

  .contact-info {
    text-align: left;
    font-size: 1.5rem;
    margin-top: 0;
  }

  .contact-logo {
    max-width: 250px;
  }

  .copyright {
    text-align: center;
    margin-top: 3rem;
  }
}

section {
  padding: 50px 20px;
  margin: auto;
}

form input, form textarea, form button {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
}
