* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Arial Black', sans-serif;
  background: #f4f9fb;
  color: #333;
}
header {
  background: #001f3f;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-size: 1.5em;
  color: white;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 15px;
}
.logo-img {
  height: 60px;
  vertical-align: middle;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}
nav a {
  color: white;
  text-decoration: none;
}
.hero {
  text-align: center;
  padding: 100px 20px;
  background: #003f5f;
  color: white;
}
.hero h1 {
  font-size: 3em;
  margin-bottom: 20px;
}
.btn {
  background: #00bcd4;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 4px;
}
footer {
  text-align: center;
  padding: 20px;
  background: #001f3f;
  color: white;
}
main {
  padding: 40px;
}
section h1 {
  font-size: 2em;
  margin-bottom: 20px;
}
ul {
  padding-left: 20px;
}
form input, form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
}
button {
  padding: 10px 20px;
  background: #00bcd4;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.gallery img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}


.banner-img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: -5px;
}

.before-after-section {
  margin-top: 50px;
}
.ba-slider-wrapper {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.ba-slider {
  position: relative;
  overflow: hidden;
  max-width: 100%;
}
.ba-slider img {
  display: block;
  width: 100%;
}
.ba-slider .resize {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  overflow: hidden;
}
.ba-slider .resize img {
  display: block;
}
.ba-slider .handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #00bcd4;
  cursor: ew-resize;
  z-index: 2;
}


/* General improvements */
main section {
  margin-bottom: 60px;
  padding: 0 20px;
}

footer {
  margin-top: 60px;
}

/* Gallery image spacing */
.gallery {
  margin-top: 20px;
}

/* Fix slider image sizing */
.ba-slider {
  max-width: 100%;
  height: auto;
}
.ba-slider img {
  width: 100%;
  height: auto;
  display: block;
}
.ba-slider .resize {
  height: auto;
}


/* Fix oversized banner */
.banner-img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
  margin-bottom: 0;
}

/* Add section padding and spacing */
main section {
  margin-bottom: 60px;
  padding: 0 20px;
}

section h1, section h2 {
  margin-top: 30px;
  margin-bottom: 20px;
}

footer {
  margin-top: 80px;
  padding: 20px;
}

/* Improve spacing for gallery */
.gallery {
  margin-top: 20px;
  gap: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Responsive slider cleanup */
.ba-slider {
  max-width: 100%;
  position: relative;
  overflow: hidden;
}
.ba-slider img {
  width: 100%;
  height: auto;
  display: block;
}
.ba-slider .resize {
  height: 100%;
}
.ba-slider .handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #00bcd4;
  cursor: ew-resize;
  z-index: 10;
}

/* Responsive stacking for smaller screens */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    gap: 10px;
  }

  .hero h1 {
    font-size: 2em;
  }

  .logo-img {
    height: 40px;
  }

  .ba-slider-wrapper {
    gap: 20px;
  }
}


/* Reduce logo and header size */
header {
  background: #001f3f;
  padding: 10px 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}
.logo-img {
  height: 40px;
}
.logo {
  font-size: 1.2em;
}

/* Form styling */
form {
  margin-top: 20px;
}
form input, form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  font-size: 1em;
}
form button {
  background-color: #00bcd4;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 1em;
  cursor: pointer;
  border-radius: 4px;
}
