:root {
  --primary-blue: #004080;
  --accent-blue: #1477ce;
  --dark-grey: #333;
  --light-grey: #f4f4f4;
  --white: #ffffff;
  --transition: all 0.3s ease;
}

/* * {
  outline: 1px solid red;
} */

/* #width-display {
  position: fixed;
  text-align: center;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.7);
  color: red;
  padding: 5px 10px;
  font-size: 2rem;
  z-index: 10000;
} */


html {
  scroll-behavior: smooth;
  scroll-padding-top: 175px;
  overflow-x: hidden;
  }

body {
  font-family: "Inter", sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  color: var(--dark-grey);
  min-width: 390px;
}

.divider-section {
  border-bottom: 1px solid var(--dark-grey);
}

.divider-line {
  border-bottom: 3px double var(--primary-blue);
  width: 100%;
  text-align: center;
}

.row-divider-line{
  border-bottom: 2px solid rgba(0, 0, 0, 0.4);
  margin: auto;
  width: 60%;
  margin-top: -3%;
  margin-bottom: -3%;
}

a{
  font-size: 2vw;
}

  h1{
    font-size: 3vw;
  }
  h2{
    font-size: 2.5vw;
  }
  h3{
    font-size: 2vw;
  }
  h4{
    font-size: 1.8vw;
  }
  p{
    font-size: 1.8vw;
  }

  .menu-btn {
    font-size: 3.0vw;
  }

accent {
  color: var(--accent-blue);
  text-transform: uppercase;
  font-style: normal;
  font-weight: bold;
}

figcaption {
  color: var(--accent-blue);
  font-size: 1.2vw;
}

.arrows {
  color: var(--primary-blue);
  margin: 0;
  padding: 0;
  width: 100%;
}

.arrows ul {
  list-style: none;
  display: flex;
  margin: 0;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
}

.arrows ul li {
  font-size: .9vw;
  border-radius: 10px;
  z-index: 999;
}

/* Header */
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1%;
  padding: 0;
  background-color: var(--dark-grey);
  position: sticky;
  top: 0;
  z-index: 1000;
  max-height: 200px;
}

.header-container a {
  display: flex;
  text-decoration: none;
  align-items: center;
  justify-content: flex-start;
  height: auto;
  padding: 0;
  max-height: 200px;
}

.header-container img {
  width: 7vw;
  height: auto;
  padding: 0;
  max-width: 150px;
}

.header-container h1 {
  color: var(--light-grey);
}

.header-container ul {
  position: fixed;
  top: 0;
  left: 100%;
  display: none;
  background: var(--accent-blue);
  line-height: 1vh;
  width: 25%;
  padding: 0 2%;
  display: block;
  text-align: left;
  list-style: none;
  transition: var(--transition);
  z-index: 1001;
  border-radius: 10px;
}

#click:checked ~ ul {
  transform: translateX(-75%);
  transition: var(--transition);
}

#click:not(:checked) ~ ul {
  transform: translateX(0);
  transition: var(--transition);
}

.header-container ul li {
  margin: 15% 0;
}

/* menus */
.header-container ul li a {
  text-decoration: none;
  display: block;
  color: var(--light-grey);
  font-weight: 600;
  transition: all 0.3s ease;
}

.header-container .menu-btn {
  color: var(--light-grey);
  cursor: pointer;
  display: block;
  padding: 0 8vw;
}

#click {
  display: none; /* hides the checkbox */
}
.hero-container{
  background-image: url(images/misc/hero_bg.webp);
  background-size: 75%;
  background-repeat: no-repeat;
  background-position: right;
  background-position-x: 108%;
  background-position-y: 25%;
}

/* Hero Section */
.hero-content {
  display: flex;
  flex-direction: column;
  align-items:center;
  text-align: center; 
  width: 30%;
  margin: 2%; 
  background-color: var(--dark-grey);
  border: 3px solid rgba(0, 0, 0, 0.4);
  border-radius: 20px;
  padding: 2%;
}

.hero-content h1{
  line-height: 1.2;
  font-weight: 800;
  color: var(--light-grey);
}

.hero-services {
  list-style: none;
  line-height: 1.2;
  font-weight: 400;
  background-color: var(--accent-blue);
  color: var(--light-grey);
  border-radius: 5px;
  border: 1px solid lightgrey;
  padding: 0 4%;
}

.hero-btns {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  width: 100%;
  margin-top: 4%;
  padding: 2%;
}

.btn-primary {
  text-decoration: none;
  background-color: var(--accent-blue);
  color: var(--light-grey);
  padding: 2%;
  border: 2px solid silver;
  border-radius: 3px;
}

.btn-secondary {
  text-decoration: none;
  background-color: black;
  color: var(--light-grey);
  padding: 2%;
  border: 2px solid silver;
  border-radius: 3px;
}

/* Services Section */
.services-container {
  background-color: var(--light-grey);
  padding: 0 5%;
  padding-bottom: 5%;
}

.services-header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  width: 100%;
}

.services h1 {
  text-align: left;
}

.services-img {
  width: 8vw;
  height: auto;
  padding-right: 2%;
}

.services-container p {
  padding: 0 5%;
}

.services-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  padding: 0 5%;
}

.service-card {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 20px;
}

.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.work-section {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.work-container {
  margin: 0 8%;
  padding-bottom: 5%;
}

.work-header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  width: 100%;
}

.work-header h2 {
  width: 100%;
  text-align: left;
  padding-left: 8%;
}
.work-img {
  width: 8vw;
  height: auto;
  padding-right: 5%;
}

.work-container figcaption {
  text-align: center;
}

.comparison-slider {
  text-align: center;
  margin-left: 1vw;
  position: relative;
  width: 100%;
  max-width: 600px; /* Optional: limit width */
  aspect-ratio: 16 / 9; /* Matches image ratio */
  overflow: hidden;
}

.after-image,
.before-image-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

.before-image-container {
  width: 50%;
  overflow: hidden;
  border-right: 6px solid black;
}

.before-image,
.after-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.comparison-slider img {
  pointer-events: none;
  user-select: none;
}

.slider-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0; /* Hidden but interactive */
  cursor: ew-resize;
  z-index: 10;
}

.label {
  position: absolute;
  bottom: 10px;
  padding: 5px 12px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  text-transform: uppercase;
  border-radius: 4px;
  pointer-events: none;
}

.label.before {
  left: 10px;
}
.label.after {
  right: 10px;
}

.comparison-slider .arrows ul {
  justify-content: space-between;
  padding: 0 2%;
} 

.about-container {
  background-color: var(--light-grey);
  width: 100%;
}

.about-container h1 {
  padding: 2% 8%;
  margin: 0;
}

.about-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  padding: 0 5%;
  align-items: center;
}

.about-image {
  display: flex;
  flex-direction: column;
  padding-right: 5%;
  position: relative;
}

.about-image img {
  box-shadow: 1vw 1vw 0 var(--accent-blue);
  max-height:25vw;
  max-width: 25vw;
}

.experience-badge {
  width: 75%;
  margin-left: 15vw;
  margin-top: -15px;
  background: var(--dark-grey);
  color: white;
  padding: 1%;
  border-radius: 5px;
}

.about-text {
  flex: 1;
  min-width: 300px;
  width: 100%;
  padding: 0 5%;
}

/* Contact Section */
.contact-container {
  padding: 0 5%;
  background: white;
  padding-bottom: 5%;
}

.contact-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.contact-form {
  flex: 2;
  min-width: 300px;
}

.form-group {
  margin-bottom: 15px;
  padding: 0 2%;
}

.form-group input {
  max-width: 98%;
  box-sizing: border-box;
}

.form-group textarea {
  max-width: 95%;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-weight: 500;
}

.submit-btn {
  background: var(--accent-blue);
  color: white;
  padding: 12px 30px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 800;
  font-size: 1.1rem;
}

.contact-info {
  flex: 1;
  min-width: 250px;
  background: var(--light-grey);
  padding: 30px;
  border-radius: 10px;
}

.info-item h4 i {
  color: var(--accent-blue);
  margin-right: 10px;
}

.map-container {
  width: auto;
  height: auto;
  padding: 0 5%;
  border: 0;
}

footer {
  background-color: var(--dark-grey);
  color: var(--light-grey);
  text-align: center;
  padding-bottom: 5%;
}

footer .blurb {
  font-weight: bold;
  margin-top: -1%;
}

footer .copyright {
  margin-top: 5%;
  font-weight: bold;
  margin-bottom: -1%;
}
footer a {
  color: var(--accent-blue);
  font-weight: bold;
}

.version-update {
  color: rgba(255, 255, 255, 0.2);
  text-align: right;
  padding: 0 5%;
}

@media (min-width: 768px) {
  /* *{
    outline: 1px lightgreen solid;
  } */

  .comparison-slider{
    margin-left: 2.25vw;
  }

}

/* Responsive Desktop */
@media (min-width: 1024px) {
  /* *{
    outline: 1px solid yellow;
  } */

  .comparison-slider{
    margin-left: 15vw;
  }
}

@media (min-width: 1200px) {
/* 
  *{
    outline: 1px solid orange;
  } */

  .comparison-slider{
    margin-left: 20vw;
}
