:root {
    --main-black: rgb(0, 0, 0);
    --main-white: rgb(255, 255, 255);
    --main-logo: "Satisfy", sans-serif;
    --main-font: "Red Hat Display", sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--main-font);
}

/*Nav bar ends here*/
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--main-white);
    position: fixed;
    width: 100%;
    box-shadow: 0px 3px 6px rgba(0,0,0,0.5);
}

.nav-links {
    display: flex;
    list-style: none;
    justify-content: space-between;
    margin-right: 60px;
}

.nav-links li {
    padding: 10px;
    margin: 0px 20px;
    font-size: 2vh;
    cursor: pointer;
}

.nav-links li:hover {
    opacity: 0.7;
}

a {
    text-decoration: none;
    color: initial;
}

.logo {
    margin: 0px 10px;
    font-size: 4.5vh;
    padding: 15px 10px;
    font-family: "Satisfy", cursive;
}

.links {
    font-weight: 400;
}

.menu-bar {
    font-weight: 700;
    padding: 15px 10px;
    margin: 0px 10px;
}


.nav-links > .contact {
    color: var(--main-white);
    margin-right: 20px;
    padding: 10px 20px;
    background-color: var(--main-black);
}

.contact:hover {
    opacity: 0.7;
    transform: scaleX(5px);
}

.nav-links > .join {
    border: 1px solid var(--main-black);
    padding: 10px 20px;
}
  
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--main-white);
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

.dropdown-content a {
  color: var(--main-black);
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
    background-color: var(--main-black);
    color: var(--main-white);
}
  
.dropdown:hover .dropdown-content {
    display: block;
}
  
.dropdown:hover .dropbtn {
    opacity: 0.5;
}

.overlay {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 1;
  top: 0;
  left: 0;
  background-color: var(--main-black);
  overflow-x: hidden;
  transition: 0.5s;
}

.overlay-content {
  position: relative;
  top: 25%;   
  width: 100%;
  text-align: center;
  margin-top: 30px;
}

.overlay a {
  padding: 8px;
  margin-bottom: 30px;
  text-decoration: none;
  font-size: 2.5vh;
  color: var(--main-white);
  display: block;
  transition: 0.3s;
}

.overlay a:hover, .overlay a:focus {
  color: var(--main-black);
  background-color: var(--main-white);
}

.overlay .closebtn {
  position: absolute;
  top: 20px;
  right: 45px;
  font-size: 5vh;
}
/*Nav bar ends here*/
/*Media queries*/
@media (max-width: 700px) {
    .nav-links {
        display: none;
    }
    .menu-bar {
      display: block;
      color: var(--main-black);
      font-size: 2vh;
    }
    .overlay a {
        margin-bottom: 25px;
    }

    .overlay .closebtn {
    font-size: 40px;
    top: 10px;
    right: 35px;
    }

    .feature-section {
        display: flex;
        flex-direction: column; 
        margin: 20px 15px;
    }

    .float-right {
        order: 2;
    }

    .float-right > img {
        width: 100%; 
        height: auto;
    }

    .img-boxes {
        margin: 20px;
    }

    .img-box-1 > img, .img-box-2 > img, .img-box-3 > img {
        width: 100%;
    }

    .side-by-side {
        display: block;
        gap: 10px;
    }
    .why-heading {
        margin: 0px 20px;
    }

    .img-box-1, .img-box-2, .img-box-3 {
        margin-top: 50px ;
    }
    .buttons {
        margin: 20px;
    }

    .contacts {
        margin: 20px;
    }

    .contact-links {
        margin: 20px;
    }

    .sub-contact > input, button {
        padding: 15px;
        margin: 10px 0px;
        border: 1px solid var(--main-black);
        background-color: var(--main-white);
    }

    .sub-contact > button:hover {
        background-color: var(--main-black);
        color: white;
    }

    .social-links {
        margin: 15px;
    }

    .social-logo > i {
        margin: 10px;
    }

    .social-info {
        display: flex;
        flex-direction: column;
    }

    .social-info > a {
        margin-top: 20px;
    }

}

@media (min-width: 700px) and (max-width: 1100px){
    .logo {
        margin-left: 40px;
    }

    .nav-links {
        display: none;
    }

    .hero {
        width: 70%;
        margin-left: 40px;
    }

    .hero > h1 {
        font-size: 6vh;
    }

    .feature-section {
        flex-direction: column;
        margin: 20px 30px;
    }

    .float-right > img {
        width: 100%; 
        height: auto;
        float: none; 
    }

    .side-by-side {
        display: flex;
    }

    .about {
        display: flex;
    }

    .heading-left {
        width: 50%;
    }
    
    .para-right {
        width: 50%;
    }

    .boxes {
        display: flex;
        gap: 20px;
    }

    .img-boxes {
        display: flex;
        justify-content: center;
        gap: 30px;
        margin: 20px;
    }

    .img-box-1 > img, .img-box-2 > img, .img-box-3 > img {
        width: 200px;
    }

    .why-heading {
        margin: 0px 40px;
        padding: 0px 20px;
    }

    .buttons {
        margin: 40px;
    }

    .contacts-content {
        display: flex;
        gap: 30px;
        margin: 20px;
    }

    .contacts {
        margin: 40px;
    }

    .contacts-content {
        display: flex;
        gap: 40px;
        margin: 20px;
    }

    .contacts {
        margin: 50px;
    }

    .contact-links {
        margin: 50px;
    }

    .contact-links {
        display: flex;
        gap: 25px;
    }

    .contact-links > .sub-contact {
        width: 20%;
    }

    .contact-links > .more-width {
        width: 50%;
    }

    .sub-contact > button, input {
        padding: 15px;
        margin: 10px;
        color: var(--main-black);
        border: 1px solid var(--main-black);
    }

    .sub-contact > button {
        background-color: var(--main-white);
    }

    .sub-contact > button:hover {
        background-color: var(--main-black);
        color: white;
    }

    .sub-contact > a {
        margin-top: 15px;
    }


    .social-logo > i {
        margin: 0px 10px;
    }

    .social-info > a {
        margin: 0px 15px;
    }

    .social-links > div, h5 {
        margin: 50px;
    }

    .social-links {
        margin: 10px 25px;
    }

    .social-logo > i {
        font-size: 3vh;
    }
}

@media (min-width: 1100px) {
    .menu-bar {
        display: none;
    }

    .hero {
        width: 40%;
        margin-left: 40px;
    }

    .hero > h1 {
        font-size: 6vh;
    }

    .logo {
        margin-left: 60px;
    }

    .feature-section {
        padding: 80px;
    }

    .float-right > img {
        width: 600px;
        height: auto;
    }

    .side-by-side {
      display: flex;
      gap: 20px;
    }

    .about {
        display: flex;
        gap: 20px;
        padding: 20px 80px;
    }

    .heading-left {
        width: 50%;
    } 

    .para-right {
        width: 50%;
    }

    .boxes {
        display: flex;
        gap: 70px;
        padding: 0px 100px;
        justify-content: center;
    }

    .box-1, .box-2, .box-3 {
        width: 30%;
    }

    .img-boxes {
        display: flex;
        justify-content: center;
        gap: 70px;
    }

    .img-box-1 > img, .img-box-2 > img, .img-box-3 > img {
        width: 400px;
    }

    .why-heading {
        margin: 0px 30px;
        padding: 20px 80px;
        width: 50%;
    }

    .buttons {
        margin: 70px;
    }

    .contacts-content {
        display: flex;
        gap: 50px;
        margin: 20px;
    }

    .contacts {
        margin: 60px;
    }

    .contact-links {
        margin: 70px;
    }

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

    .contact-links > .sub-contact {
        width: 15%;
    }

    .contact-links > .more-width {
        width: 40%;
    }

    .sub-contact > button, input {
        padding: 15px;
        margin: 10px;
        color: var(--main-black);
        border: 1px solid var(--main-black);
    }

    .sub-contact > button {
        background-color: var(--main-white);
    }

    .sub-contact > button:hover {
        background-color: var(--main-black);
        color: white;
    }

    .sub-contact > a {
        margin-top: 15px;
    }

    .social-links {
        display: flex;
        flex-direction: row-reverse;
    }

    .social-logo > i {
        margin: 0px 10px;
    }

    .social-info > a {
        margin: 0px 15px;
    }

    .social-links > div, h5 {
        margin: 60px;
    }

    .social-links {
        margin: 10px 30px;
    }

}
/*Media queries*/
/*Start of Home section*/
.hero-section {
  display: flex;
  align-items: center;
  padding: 20px;
  color: var(--main-white);
  background-color: gray;
  height: 100vh;
}

button {
    font-family: var(--main-font);
    padding: 15px;
}

.button-1 {
    background-color: var(--main-black);
    border: transparent;
    color: var(--main-white);
}

.button-1:hover {
    background-color: var(--main-white);
    color: black;
}

.button-2 {
    background-color: transparent;
    border: 1px solid var(--main-white);
    color: var(--main-white);
    margin-left: 10px;
    transition: 0.3s;
}

.button-2:hover {
    background-color: var(--main-white);
    color: var(--main-black);
}
/*End of Home section*/
/*feature-section*/
.feature-section {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.button-3 {
  padding: 10px;
  background-color: transparent;
  border: 1px solid var(--main-black);
  transition: 0.5s ease;
}

.button-4 {
  margin-left: 20px;
  background-color: transparent;
  border: none;
}

.button-3:hover {
  background-color: var(--main-black);
  color: var(--main-white);
}

.button-4:hover {
  border: 1ps solid var(--main-black);
}
/*feature-section*/
/*About section*/
.about {
    margin: 60px 20px;
}

.boxes {
    margin: 10px;
}

.box-1, .box-2, .box-3 {
    margin-top: 50px;
    padding: 10px;
}

.why {
    margin-top: 50px;
}

.contact-element {
    margin-top: 50px;
}

.sub-contact {
    display: flex;
    flex-direction: column;
}
