/* General Styles */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #1f1f1f;
  background-size: cover;
  background-position: center;
  color: #fff;
  min-height: 100vh;
  position: relative;
  animation: fadeIn 1s ease-in;
}

html {
  scroll-behavior: smooth;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Header */
header {
  background-color: #000;
  color: #fff;
  text-align: center;
  padding: 20px 0;
  width: 100%;
  top: 0;
  z-index: 1000;
  position: relative;
  animation: slideDown 0.8s ease-out;
}

@keyframes slideDown {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

header::after {
  content: '';
  display: block;
  height: 4px;
  background: #f26522;
  margin-top: 10px;
  width: 100px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 2px;
}

/* Navigation */
nav ul {
  list-style-type: none;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

nav ul li {
  margin: 10px;
}

nav ul li a {
  padding: 10px 20px;
  background-color: transparent;
  color: #f26522;
  text-decoration: none;
  border: 2px solid #f26522;
  border-radius: 5px;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

nav ul li a:hover {
  background-color: #f26522;
  color: #fff;
  transform: scale(1.05);
}

/* Sections */
section {
  padding: 20px;
  margin: 20px auto;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
  max-width: 1000px;
  animation: fadeIn 1s ease-in;
}

section h2 {
  color: #f26522;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { color: #f26522; }
  50% { color: #ff7f3f; }
}

.center-text {
  text-align: center;
}

/* Services Animation (On Scroll) */
.service {
  width: calc(50% - 20px);
  margin-bottom: 20px;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 10px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  border: 1px solid #f26522;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.service.animate {
  opacity: 1;
  transform: translateY(0);
}

.service:hover {
  box-shadow: 0 0 10px rgba(242, 101, 34, 0.4);
}

.service h4 {
  margin-bottom: 10px;
  color: #fff;
}

.service p {
  color: #fff;
}

/* Gallery */
.gallery-slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.gallery-slider img {
  scroll-snap-align: start;
  width: 25%;
  flex: 0 0 auto;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery-slider img:hover {
  transform: scale(1.05);
}

.slider-container {
  position: relative;
}

.prev-button,
.next-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  padding: 16px;
  cursor: pointer;
  font-size: 24px;
}

.prev-button:hover,
.next-button:hover {
  background: rgba(0, 0, 0, 0.7);
}

.prev-button { left: 10px; }
.next-button { right: 10px; }

/* Lightbox */
#lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#lightbox.active {
  display: flex !important;
}

#lightbox img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

/* Video */
.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  max-width: 1000px;
  margin: 0 auto;
}

.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Before/After */
.img-comp-container {
  position: relative;
  height: 400px; /* set desired height */
  max-width: 600px; /* desired width */
  margin: 0 auto; /* horizontally centered */
  overflow: hidden; /* clip overflowing images */
}

.img-comp-img {
  position: absolute;
  width: auto;
  height: auto;
  overflow: hidden;
}

.img-comp-img img {
  display: block;
}

.img-comp-slider {
  position: absolute;
  z-index: 9;
  cursor: ew-resize;
  /*set the appearance of the slider:*/
  width: 40px;
  height: 40px;
  background-color: #f26522;
  opacity: 0.7;
  border-radius: 50%;
}

/* Contact & Form */
#sendMessage,
#contact {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  width: 90%;
  margin-top: 40px;
}

#sendMessage form input[type="text"],
#sendMessage form input[type="tel"],
#sendMessage form input[type="email"],
#sendMessage form textarea {
  width: 90%;
  padding: 10px;
  margin: 5px auto;
  display: block;
  border-radius: 5px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  text-align: center;
}

#sendMessage form textarea {
  height: 130px;
}

#sendMessage form button {
  background: #f26522;
  color: white;
  padding: 10px 20px;
  margin-top: 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#sendMessage form button:hover {
  background: #ff7f3f;
}

/* Reviews */
#reviews {
  background-color: rgba(0, 0, 0, 0.7);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  color: #fff;
  width: calc(75% - 20px);
  margin: 20px auto;
  padding: 20px;
  border-radius: 10px;
}

.review {
  margin-bottom: 20px;
  font-style: italic;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.review.animate {
  opacity: 1;
  transform: translateY(0);
}

.review p {
  opacity: 0;
  animation: revealText 1.2s forwards;
  animation-delay: 0.3s;
}

.review.animate p {
  animation-name: revealText;
}

.review p:last-child {
  font-weight: bold;
  margin-top: 10px;
}

@keyframes revealText {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    letter-spacing: 0.05em;
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    letter-spacing: 0;
    filter: blur(0);
  }
}

.rating {
  display: flex;
}

.rating img {
  width: 20px;
  height: 20px;
  margin-right: 5px;
  filter: invert(53%) sepia(81%) saturate(1147%) hue-rotate(6deg) brightness(102%) contrast(101%);
}

/* Footer */
footer {
  text-align: center;
  background: #111;
  color: #fff;
  padding: 20px;
  margin-top: 30px;
}

/* About */
#about {
  margin: 0 auto;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}

/* Social Icons */
.social-icons {
  margin-top: 10px;
}

.social-icons .icon {
  width: 24px;
  height: 24px;
  filter: invert(100%) sepia(0%) saturate(7500%) hue-rotate(340deg) brightness(99%) contrast(105%);
}

h1 {
  margin-top: -10px;
}

@media screen and (max-width: 768px) {

  html, body {
    overflow-x: hidden;
  }
  
  body {
    font-size: 16px; /* consistent text size across desktop & mobile */
  }

  header {
    padding: 10px 0; /* less space above/below logo */
  }

  header img {
    width: 200px; /* bigger logo for mobile */
    height: auto;
    display: block;
    margin: 0 auto 10px auto; /* centered with smaller gap to nav */
  }

  nav ul {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 0;
    margin: 0;
  }

  nav ul li {
    margin: 0;
    width: 100%;
    text-align: center;
  }

  nav ul li a {
    font-size: 18px; /* larger and more readable */
    padding: 14px 24px; /* more touch space */
    display: inline-block;
    width: 80%;
    border-radius: 8px;
  }

  #reviews {
    width: 90% !important;
  }

  .service {
    width: 95% !important;
    margin: 10px auto;
    padding: 20px;
    box-sizing: border-box;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  }

  .services {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 90%;
    margin: 0 auto;
  }
  
  .video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

  html {
    scroll-behavior: smooth;
  }

  .gallery-slider img {
    width: 100% !important;
    flex: 0 0 100% !important;
  }

  .img-comp-container {
    width: 100% !important;
    max-width: 100% !important;
    height: auto;
    aspect-ratio: 4 / 3; /* maintains aspect ratio */
    position: relative;
    overflow: hidden;
  }

  .img-comp-img {
    width: 100%;
    height: 100%;
  }
  
  .video-container {
    width: 100% !important;
    max-width: 100% !important;
  }
}

