/* Z-index list
 .bg-video : 0
 .header: 5
 #logo: 2
 .navbar: 2
 .separation: 2 
 .separation1: 4 
 .home-content: 2
 .intro-text: 2
 #menu-icon: 100
 */

@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

* {
  margin: 0;
  padding: 0;
  text-decoration: none;
  border: none;
  outline: none;
  scroll-behavior: smooth;
  color: var(--text-color);
  font-family: "Poppins", sans-serif;
  box-sizing: border-box;
  /* overflow-x: hidden; */
}

body {
  background-color: var(--bg-color);
  overflow-x: hidden;
}

:root {
  --bg-color: rgb(249, 244, 246);
  --snd-bg-color: white;
  --text-color: black;
  --text-hover-color: #2ab86c;
  --main-color: #2ab86c; /* #200a75;*/
}

.main {
  width: 100vw;
  height: 100vh;
}
.video-container {
  width: 100vw;
  height: 100vh;
  background: transparent;
  overflow: hidden;
}
.bg-video {
  width: 100vw;
  height: 95vh;
  object-fit: cover;
  position: relative;
  top: 10vh;
  z-index: 2;
  overflow: hidden;
}
.header {
  background-color: var(--snd-bg-color);
  top: 0;
  height: 115px;
  width: 100vw;
  position: fixed;
  z-index: 5;
  display: flex;
  align-items: center;
  /* overflow: hidden; */
  justify-content: space-between;
  padding: 10px;
}
#logo {
  height: 14vh;
  width: 14vw;
  position: relative;
  top: 0px;
  left: 50px;
  object-fit: contain;
  z-index: 2;
  opacity: 1;
  /* filter: hue-rotate(100deg); */
}
.navbar {
  width: 100%;
  height: 12vh;
  font-size: 1.7rem;
  /* margin-left: 4rem; */
  font-weight: 700;
  position: relative;
  bottom: 0px;
  right: 30px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 35px;
  z-index: 2;
}

.navbar a {
  color: var(--text-color);
  transition: color 0.3s ease;
}

.navbar a:hover {
  color: var(--text-hover-color);
}

.navbar a:active {
  color: var(--text-hover-color);
}
.separation1 {
  width: 100%;
  height: 5px;
  position: fixed;
  z-index: 4;
  background-color: red;
  top: 115px;
}
.separation {
  width: 100vw;
  height: 5px;
  position: relative;
  z-index: 2;
  background-color: red;
  top: 0px;
}
#menu-icon {
  font-size: 3.6rem;
  color: var(--text-color);
  display: none;
}
/* .home{
    position: absolute;
    top: 120px;
  } */
.home-content {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100vw;
  height: 90vh;
  position: absolute;
  z-index: 2;
  pointer-events: none;
  top: 115px;
}
.intro-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 220px;
  width: 70vw;
  z-index: 2;
  color: white;
  pointer-events: none;
  background-color: rgba(
    0,
    0,
    0,
    0.5
  ); /* Added background for better contrast */
  padding: 20px;
  text-align: center;
  border-radius: 10px;
  font-size: 1.4rem;
  border: 1px solid rgb(217, 57, 57);
}

.intro-text h2{
  color: white;
}

section {
  height: 100vh;
  width: 100vw;
  /* padding: 10rem 9% 2rem; */
}

.first{
  display:flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}

/* first section */
.first h1 {
  font-size: 60px;
  margin: 15px;
  text-align: center;
  display:flex;
  justify-content: center;
  align-items: center;
}

.first-content {
  /* width: 80vw;
  height: 80vh; */
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  justify-content: center;
  justify-items: center;
  margin: 50px auto;
  font-size: 25px;
  font-weight: bold;
  /* padding: 100px 0px; */
}
.box {
  /* border: 1.4px solid darkgreen; */
  border-radius: 5px;
  height: 200px;
  width: 300px;
  margin: 5px;
  padding: 2px 5px;
  font-family: "Poppins", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
  font-weight: lighter;
}


.box p{
  font-size: 13px;
  color: rgb(24, 22, 22);
}

.box h3{
  font-size: 16px;
  color: black;
}

.first-icon{
  margin-left: 5px;
}

/* Services section */

.services{
  display:flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  padding: 20px 0px;
  gap: 20px;
}
.services h2 {
  font-size: 60px;
  margin-top: 0px;
}

.services-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 150px;
  margin: 40px;
}

.services-container .services-box {
  position: relative;
  box-shadow: 0 0 1rem rgb(237, 119, 119);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
}

.services-box img {
  width: 40vw;
  border-radius: 20px;
  object-fit: cover;
  transition: 0.5s ease;
  opacity: 0.7;
  height: 40vh;
}

.services-box .services-layer {
  position: absolute;
  border-radius: 20px;
  bottom: 0;
  left: 0;
  width: 40vw;
  height: 40vh;
  background: linear-gradient(rgba(0, 0, 0, 0.1), rgb(45, 83, 46));
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  /* padding: 0 4rem; */
  transform: translateY(100%);
  transform: 0.5s ease;
}

.services-box:hover .services-layer {
  transform: translateY(0);
}

.services-layer h4 {
  font-size: 2.5rem;
  color: white;
}

.services-layer i {
  font-size: 2rem;
  color: var(--snd-bg-color);
}

.footer-container {
  width: 100vw;
  padding: 15px 12vw;
  background-color: var(--snd-bg-color);
  display: flex;
  justify-content: space-between;
}

.footer-first h1{
  font-size: 1.5rem;
}

.footer-sec h2{
  font-size: 0.9rem;
}

.footer-first p{
  font-size: 15px;
}
.footer-sec ul{
  margin-top: 10px;
  font-size: 15px;
  list-style: none
}

.footer-sec ul li a:hover{
  color: var(--text-hover-color);
}

.addressContact i{
  font-size: 30px;
}

.footer-footer{
  display: flex;
  justify-content: space-between;
  padding: 20px;
  font-size: 12px;
}

/* Media queries */


@media (max-width: 1100px){
  .services-layer h4 {
    font-size: 1.5rem;
  }
  
  .services-layer i {
    font-size: 1rem;
    color: var(--snd-bg-color);
  }
  .services-container{
    gap: 25px;
  }
  .first h1{
    margin-top: 50px;
  }
  .services h2{
    margin-top: 40px;
  }
  .content-container {
    display: none;
  }
}
@media (max-width: 960px){
  .first-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    justify-content: center;
    justify-items: center;
    margin: 20px auto;
    font-size: 15px;
    font-weight: bold;
    /* padding: 100px 0px; */
  }
  .box {
    height: 200px;
    width: 200px;
    margin: 5px;
    padding: 2px 5px;
    font-family: "Poppins", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
    font-weight: lighter;
  }

  .box p{
    font-size: 10px;
    color: rgb(24, 22, 22);
  }
  
  .box h3{
    font-size: 13px;
    color: black;
  }
  .services-box img {
    width: 50vw;
    height: 28vh;
  }
  
  .services-box .services-layer {
    width: 50vw;
    height: 28vh;
    
  }
  .services-layer h4 {
    font-size: 1.5rem;
  }
  
  .services-layer i {
    font-size: 1rem;
    color: var(--snd-bg-color);
  }
  .services-container{
    gap: 25px;
  }
  .first h1{
    margin-top: 50px;
  }
  .content-container {
    display: none;
  }
  .auto-first{
    flex-wrap: wrap-reverse;
  }
}

@media (max-width: 768px) {
  #menu-icon {
    display: block;
    z-index: 100;
    margin: 20px;
  }

  .navbar {
    position: absolute;
    top: 0px;
    left: 0vw;
    width: 100%;
    padding: 1rem 3%;
    background: var(--snd-bg-color);
    border-top: 0.1rem solid rgba(0, 0, 0, 0.2);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
    display: none;
    z-index: 90;
    height: 50vh;
    margin-top: 115px;
  }

  .navbar.active {
    display: block;
    z-index: 90;
  }

  .navbar a {
    display: block;
    font-size: 2rem;
    margin: 3rem 0;
    text-align: center;
    z-index: 90;
  }

  .intro-text{
    display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: absolute;
  width: 40vw;
  height: 30vh;
  z-index: 2;
  color: white;
  pointer-events: none;
  background-color: rgba(
    0,
    0,
    0,
    0.5
  ); /* Added background for better contrast */
  padding: 10px;
  text-align: center;
  border-radius: 10px;
  font-size: 0.8rem;
  border: 1px solid rgb(211, 67, 67);
  margin-top: 8px;
  }
  .bg-video{
    z-index: 2;
  }

  .first h1{
    margin-top: 50px;
  }
  .services h2 {
    margin-top: 50px;
  }
  .services-box .services-layer {
    transform: translateY(0);
  }
  .footer-first h1{
    font-size: 18px;
  }
  
  .footer-sec h2{
    font-size: 12px;
  }
  
  .footer-first p{
    font-size: 12px;
  }
  .footer-sec ul{
    font-size: 10px;
  }
  .content-container {
    display: none;
  }
  .auto-first{
    flex-wrap: wrap-reverse;
  }
  #auto-care-img{
    width: 40vw;
    padding: 10px;
}
#second-content {
  padding: 10px;
  font-size: 20px;
}
}

@media (max-width: 650px){


  .bg-video{
    z-index: 2;
  }
  .first-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    justify-content: center;
    justify-items: center;
    margin: 15px auto;
    font-size: 15px;
    font-weight: bold;
    /* padding: 100px 0px; */
  }
  .box {
    height: 200px;
    width: 150px;
    margin: 5px;
    padding: 2px 5px;
    font-family: "Poppins", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
    font-weight: lighter;
  }

  .box p{
    display: none;
  }
  
  .box h3{
    font-size: 20px;
    color: black;
  }

  .first h1{
    font-size: 50px;
    margin-top: 30px;
  }
  .services h2 {
    font-size: 50px;
    margin-top: 30px;
  }
  .services-box .services-layer {
    transform: translateY(0);
  }
  .footer-first h1{
    font-size: 18px;
  }
  
  .footer-sec h2{
    font-size: 12px;
  }
  
  .footer-first p{
    font-size: 12px;
  }
  .footer-sec ul{
    font-size: 10px;
  }
  .content-container {
    display: none;
  }
  .auto-first{
    flex-wrap: wrap-reverse;
  }
  #auto-care-img{
    width: 45vw;
    padding: 10px;
}
#second-content {
  padding: 10px;
  font-size: 15px;
}
}

@media (max-width: 480px)
{

  .box {
    height: 200px;
    width: 115px;
    margin: 5px;
    padding: 2px 5px;
    font-family: "Poppins", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
    font-weight: lighter;
  }

  .box h3{
    font-size: 17px;
    color: black;
  }


  .first h1{
    font-size: 40px;
    margin-top: 50px;
  }
  .services h2 {
    font-size: 40px;
  }

  .services-box .services-layer {
    transform: translateY(0);
  }
  .footer-first h1{
    font-size: 18px;
  }
  
  .footer-sec h2{
    font-size: 12px;
  }
  
  .footer-first p{
    font-size: 12px;
  }
  .footer-sec ul{
    font-size: 10px;
  }
  
  .content-container {
    display: none;
  }
  .auto-first{
    flex-wrap: wrap-reverse;
  }
  #auto-care-img{
      width: 45vw;
      padding: 10px;
  }
  #second-content {
    padding: 10px;
    font-size: 15px;
  }
}