*{
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    scroll-behavior: smooth;
}
.banner{
    width: 100%;
    height: 85vh;
    background-image: linear-gradient(rgba(0,0,0,0.75),rgba(0,0,0,0.75)),url(background.jpg);
    background-size: cover;
    background-position: center;
}

nav{
    background: #072640;
    height: 100px;
    width: 100%;
    position: fixed;
    z-index: 500;
    box-shadow: 0 0 30px 2px rgba(0,0,0,0.50);
    overflow: hidden;
  }

  nav ul{
    float: left;
    margin-left: 20px;
  }
  nav ul li{
    display: inline-block;
    line-height: 100px;
    margin: 0 30px;
  }
  nav ul li a{
    color: white;
    font-size: 20px;
    padding: 10px 35px;
    border-radius: 3px;
    text-decoration: none;
  }
  nav a.active, nav a:hover{
    background: #06365e;
    transition: .5s;
  }
  .checkbtn{
    font-size: 40px;
    color: white;
    float: right;
    line-height: 100px;
    margin-right: 40px;
    cursor: pointer;
    display: none;
    margin-top: 25px;
  }
  #check{
    display: none;
  }
.content{
    width: 100%;
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    text-align: center;
    color: #fff;
}
.content h1{
    font-size: 120px;
    margin-top: 80px;
}
.content p{
    font-size: 130%;
    margin: 20px auto;
    font-weight: lighter;
    line-height: 25px;
}
button{
    width: 200px;
    padding: 15px 0;
    text-align: center;
    margin: 20px 10px;
    border-radius: 25px;
    font-size: 110%;
    font-weight: lighter;
    border: 2px solid #0096FF;
    background: transparent;
    color: #fff;
    cursor: pointer;
}
.section1, .section2{
    align-items: center;
}
section:nth-child(even){
    background-color: rgb(243, 242, 242);
}
.cvi{
    text-align: center;
    align-items: center;
    background-color: rgb(243, 242, 242);
    text-transform: uppercase;
    padding-top: 40px;
    padding-bottom: 40px;
}
.teenindus{
    display: inline-block;
    padding-right: 5%;
    font-size: 1.6em;
    letter-spacing: 2px;
}
.uhendus{
    color: white;
    display: inline-block;
    margin-left: 5%;
    border: 25px #0466c8;
    border-style:solid;
    background-color: #0466c8;
    font-weight: bold;
    font-size: 1.3em;
    cursor: pointer;
    text-decoration: none;
}
.section1 h2{
    padding-top: 170px;
    text-align: center;
    font-size: 3em;
    font-family: Arial, Helvetica, sans-serif;
    letter-spacing: 3px;
    color: #000000;
    font-weight: lighter;
    text-transform: uppercase;
}
.section1 h2:after{
    content:"";
    display:block;
    width: 6em;
    max-width:70%;
    border-bottom: 2px solid #023e8a;
    margin: 1em auto 0;
}
.section1{
    align-items: center;
}
.section1 ul{
    padding-top: 100px;
    text-align: center;
    list-style: none;
    justify-content: center;
    display: flex;
    flex-wrap: wrap;
}
.first, .second, .third{
    margin-left: -10px;
    margin-right: -10px;
}
.first img, .second img, .third img{
    background-color: #0096FF;
    border-radius: 90px;
    padding: 50px;
    width: 30%;
    color: white;
    box-shadow: 0 0 30px 2px rgba(0,0,0,0.25);
}
.section1 h3{
    padding-top: 20px;
    font-size: 150%;
}
.first p, .second p, .third p{
    padding-top: 10px;
    padding-bottom: 30px;
    font-size: 125%;
}
.paragraph{
    padding-right: 15%;
    padding-bottom: 20%;
    font-size: 160%;
    padding-top:2%;
    padding-left: 15%;
    word-wrap: break-word
}
.pic{
    padding-left: 15%;
    padding-right: 40px;
    width: 35%;
    float: left;
    display: flex;
}
.side{
    padding-top: 200px;
    word-wrap: break-word
    
}
.side h3{
    font-size: 2.5em;
    color: #00415a;
    padding-right: 15%;
}
.section2 h2{
    padding-top: 100px;
    text-align: center;
    font-size: 4em;
    font-family: Arial, Helvetica, sans-serif;
    color: #000000;
    padding-bottom: 50px;
    font-weight: 10;
    letter-spacing: 3px;
}
.section2 h2:after{
    content:"";
    display:block;
    width: 4em;
    max-width:70%;
    border-bottom: 2px solid #023e8a;
    margin: 1em auto 0;
}
.services {
    margin: 20px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding-bottom: 2%;
  }
  
  .service {
    flex-basis: calc(40% - 20px);
    margin-top: 10px;
    margin-bottom: 50px;
    transition: 0.5s;
    
  }
  
  .service img {
    display: block;
    margin: 0 auto;
    max-width: 60%;
    box-shadow: 0 0 30px 2px rgba(0,0,0,0.35);
    cursor: pointer;
  }
  .service:hover{
    transform: scale(1.1);
    z-index:2
    
  }
  .service h3 {
    margin: 10px 0;
  }
  
  .service p {
    line-height: 1.5;
  }
  .more {
    text-align: center;
    font-size: 1.4em;
    padding-bottom: 7%;
  }
  .footer {
    padding-top: 100px;
    padding-bottom: 80px;
    padding-left: 5%;
    padding-right: 5%;
    background: #00374d;
    color: white;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    box-sizing: border-box;
  }
  
  .footer div {
    text-align: center;
    flex-basis: 50%;
  }
  
  .contact {
    flex-basis: 100%;
    margin-top: 20px;
  }
  
  .footer div h3 {
    font-weight: 300;
    margin-bottom: 30px;
    letter-spacing: 1px;
  }
  
  .links a {
    display: block;
    text-decoration: none;
    color: white;
    margin-bottom: 20px;
  }
  
  .contact p {
    margin-bottom: 20px;
  }

  @media only screen and (max-width: 1790px){
    .first, .second, .third{
        margin: 30px;
    }
    } 


@media only screen and (max-width: 1100px){
    .content h1{
      font-size: 120px;
    }
    .content p{
      font-size: 30px;
      line-height: 1.2;
    }
    .pic{
        padding-left: 0;
        padding-right: 0;
        width: 80%;
        float: none;
        display: block;
        margin-left: auto;
        margin-right: auto;
    }
    .side{
        padding-top: 200px;
        text-align: center;
        
    }
    .side h3{
        font-size: 2.5em;
        color: #00415a;
        padding-left: 10%;
        padding-right: 10%;
        
    }
} 
  @media only screen and (max-width: 980px){
    .services {
      flex-direction: column; /* Stack items vertically */
      align-items: center; /* Center the items horizontally */
  }
    .service {
        flex-basis: 100%; /* Make each service take up the full width */
        text-align: center; /* Align content to the center */
    }
  
    .content h1{
      font-size: 100px;
    }
    .content p{
      font-size: 20px;
      line-height: 1.2;
    }
    .checkbtn{
      display: block;
      margin-right: 40px;
    }
    .checkbtn i{
      font-size: 40px;
      margin-right: 20px;
    }
    nav{
      height: 90px;
    }
    nav ul{
      position: fixed;
      width: 100%;
      height: 100vh;
      background: #00374d;
      top: 90px;
      left: -100%;
      text-align: center;
      transition: all .5s;
      z-index:2;
      margin-right: 20px;
      margin-left: 0px;
    }
    nav ul li{
      display: block;
      margin: 100px 0;
      line-height: 30px;
    }
    nav ul li a{
      font-size: 25px;
    }
    nav a:hover, nav a.active{
      background: none;
      color: white;
    }
    #check:checked ~ ul{
      left: 0;
    }
}
@media only screen and (max-width: 790px){
  .teenindus{
    display: block; /* Change to block to make it appear above the button */
    font-size: 1.6em;
    letter-spacing: 2px;
    margin-bottom: 20px; /* Add some space between the text and the button */
    padding: 0;
    text-align: center;
}
.uhendus{
  display: inline-block; /* Ensures the button is centered with its text */
  text-align: center; /* Center the button text */
  align-items: center;
  margin: 0 auto; /* Center the button horizontally */
}
}

@media only screen and (max-width: 700px){
  .content h1{
    font-size: 90px;
  }
  .side h3{
    font-size: 35px;
  }

}
@media only screen and (max-width: 620px){
.content h1{
  font-size: 70px;
}
}
@media only screen and (max-width: 490px){
  .checkbtn{
    margin-right: 10px;
  }
  .uhendus{
    width: 50%;
    font-size: 15px;
  }
  .content h1{
    font-size: 50px;
  }
  .content p{
    font-size: 17px;
    padding: 0 10px;
  }
  .footer{
    font-size: 12px;
  }
  .section1 h2{
    font-size: 40px;
  }
  .section2 h2{
    font-size: 40px;
  }
  .side h3{
    font-size: 25px;
    margin-bottom: 10px;
  }
  .side p{
    font-size: 20px
  }
  }
  @media only screen and (max-width: 350px){
    .side{
      padding-top: 120px;
    }
    .side h3{
      font-size: 23px;
    }
    .content h1{
      font-size: 35px;
     }
    .section1 h2{
      font-size: 30px;
    }
    .cvi p{
      margin-bottom: 45px;
      font-size: 20px;
    }
    .section2 h2{
      font-size: 30px;
    }
    .side p{
      font-size: 18px;
      padding: 20 18px;
      margin-bottom: 40px;
    }
    button{
      width: 150px;
      font-size: 15px;
    }
    .first img, .second img, .third img{
      width: 25%;
  }
    .first p, .second p, .third p{
      font-size: 18px;
  }
  .footer {
    display: block;
  }
  .links{
    margin-bottom: 60px;
  }
  .more{
    font-size: 15px;
    margin-bottom: 80px;
  }
  .checkbtn i{
    font-size: 30px;
  }
  nav{
    height: 80px;
  }
  nav ul{
    top: 80px;

  }
  
  }
  @media only screen and (max-width: 250px){
    .content h1{
      font-size: 27px;
    }
    .content p{
      font-size: 15px;
    }
    .side h3{
      font-size: 18px;
    }
    .side p{
      font-size: 15px;
    }
    button{
      width: 100px;
      font-size: 12px;
    }
    .uhendus{
      font-size: 12px;
    }
    .first p, .second p, .third p{
      font-size: 15px;
    }
    .first h3, .second h3, .third h3{
      font-size: 20px;
    }
    .section1 h2{
      font-size: 25px;
    }
    .section2 h2{
      font-size: 22px;
    }
  }
  @media only screen and (max-width: 200px){
    .side h3{
      font-size: 15px;
    }
  }