@import url('https://fonts.googleapis.com/css2?family=PT+Serif:ital,wght@0,400;0,700;1,400;1,700&display=swap');

*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body{
  font-family: "PT Serif", serif;
  background-color:#F2F3F5;
  line-height: 1.6;
}

/* Header */

header{
  display: flex;
  flex-direction: column;
  position: static;
  top: 0;
  width: 100%;
  z-index: 10000;
}
.up-header{
  background-color: #17003d;
  padding: 0.5rem;
  color: white;
  text-align: center;
  cursor: pointer;
  transition: color 0.3s ease-in-out;
}
.up-header i{
  font-size: 25px;
  margin-right: 15px;
}

.up-header i:hover{
  color: #f6be00;
}

.sub-header{
  background-color:whitesmoke ;
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  align-items: center;
  padding: 1rem;
}
.logo{
  width: 190px;
}

.menu ul{
  list-style: none;
  display: flex;
}
.menu ul li{
  padding: 10px 20px;
}
.menu ul li a{
  color:#17003d;
  text-decoration: none;
  transition:color 0.3s ease-in-out;
}
.menu ul li a:hover{
  color:#f6be00;
}

/* Slider */

.main{
  width: 100%;
  min-height: 100px;
}
.slider{
  position: relative;
}
.slider img{
  width: 100%;
  height: auto;
  filter: brightness(40%);
  object-fit: cover;
  
}
.buttons{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px;

}
.buttons i{
  font-size: 25px;
  color: whitesmoke;
  background-color: #17003d;
  padding: 10px;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease-in-out;
}
.buttons i:hover{
  background-color: #f6be00;
}

.title{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: whitesmoke;
  flex-direction: column;
}

.title h1{
  font-size: 2.5rem;
  margin-bottom: 10px;
  z-index: 4;
}
.title p{
  font-size: 1.1rem;
  margin-bottom: 20px;

}

.btn-slider{
  display: inline-block;
  padding: 13px 23px;
  background-color: #f6be00;
  
  color: white;
  text-decoration: none;
  font-size: 20px;
  border: none;
  border-radius: 10px;
  cursor:pointer;
  transition: background-color 0.3s ease-in-out;
  z-index: 5;
}

.btn-slider:hover {
  background-color: #17003d;
}


/* section */

.section-title{
  text-align: center;
  font-size: 40px;
  font-weight: 700;
  color: #17003d;
  margin-bottom: 5px;
  margin-top: 20px;
}

.line{
  border-bottom: 2px solid #17003d;
  width: 180px;
  margin: 0 auto;
  margin-top: 10px;
  margin-bottom: 40px;
}

.col-50{
  width: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
}

.section-description{
  width: 80%;
  display: flex;
  flex-direction: row;
  align-items: stretch; 
  justify-content: space-between;
  margin: 0 auto;
  margin-bottom: 50px;
}


/* About */

#about{
  background-color:#F2F3F5;
  padding: 30px 60px;
}


.col-50 p{
  font-size: 18px;
  text-align:justify;
}

.col-50 img{
  max-width: 80%;
  border-radius: 50%;
  transition: box-shadow 0.3s ease-in-out;
}
.col-50 img:hover{
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

/* Services */

#services{
  background-color:#17003d;
  padding: 30px 60px;
}

#services .section-title{
  color: whitesmoke;
}
#services .line{
  border-bottom: 2px solid whitesmoke;
}

#services .section-description{
  width: 85%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap:20px;
  margin: 50px auto;
}

.col-20{
  min-height: 350px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px 20px;
  margin: 0px 10px;
  background-color:whitesmoke;
  color: #024959;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(222, 222, 222, 0.4);
  cursor: pointer;
  transition: box-shadow 0.3s ease-in-out;
}

.col-20:hover{
   box-shadow: none;
}

.col-20 h2,p{
  text-align: center;
  margin-bottom: 10px;
}
.col-20 p{
  font-size: 18px;
}
.col-20 ul{
  list-style: none;;
  margin-top: 20px;
  text-align: left;
}
.col-20 li{
  margin-bottom: 3px;
}

/* Work */

#work{
  padding: 40px 60px;
}

#work .section-description{
  margin-top: 70px;
}
#work .col-50 img{
  box-shadow: none;
  border-radius:0;
}

/* contact */

#contact{
  padding: 30px 60px;
  background-color: #17003d;
}
#contact .section-title{
  color: whitesmoke;
}

#contact .line{
  border-bottom: 2px solid whitesmoke;
}
#contact .section-description{
  color: whitesmoke;
  flex-direction: column;
}

#contact .section-description p{
  font-size: 18px;
  padding: 20px 0;
}

form{
  width: 60%;
  display:flex;
  flex-direction: column;
  align-items: stretch; 
  justify-content: center;
  margin: 0 auto;
 
}
form input,textarea{
  margin-bottom: 10px;
  padding: 10px;
  border: none;
  border-radius: 10px;
  outline: none;
}
form ::placeholder{
  color: gray;
  font-size: 15px;
}

.ctn-button{
  border: none;
  padding: 10px 20px;
  border-radius: 10px;
  color: whitesmoke;
  background-color: #f6be00;
  font-size: 18px;
  transition: background-color 0.3s ease-in-out;
  cursor: pointer;
  margin-top: 10px;
  width: 30%;
}
.ctn-button:hover{
  background-color:whitesmoke;
  color: #f6be00;
}


.hidden{
  display: none;
}

.success,.error{
  display: flex;
  align-items: center;
  text-align: start;
  color: white;
  width: 60%;
  margin: 0 auto;
  border: none;
  border-radius: 10px;
  margin-bottom: 10px;
  padding: 10px;
}

.success{
  background-color: #22bb2c;
}
.error {
  background-color:darkred;
}

/* footer */

.footer-description{
  padding: 50px 60px;
  text-align: center;
}
.footer-description .logo a{
  margin-bottom: 10px;
}
.footer-description p{
  margin-top: 10px;
  margin-bottom: 10px;
  color: #17003d;
}
.footer-description a{
  text-decoration: none;
  color: #17003d;
}
.footer-logo{
  width: 200px;
  margin-bottom: 5px;
}


/* Responsive */


@media (max-width: 480px) {
  .sub-header{
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0.2rem;
  }
  .logo{
    margin-top: 5px;
  }
  .menu ul li{
    padding: 10px 12px;
  }
  .menu ul li a{
    font-size: 14px;
  }
  .up-header i{
    font-size: 20px;
  }
  .slider img{
    object-fit: contain;
    height: auto;
  }
  .title h1{
    font-size: 0.8rem;
  }
  .title p{
    font-size: 0.3rem;
  }
  .buttons{
    padding: 10px;
  }
  .buttons i{
    font-size: 10px;
  }
  .btn-slider{
    padding: 5px 10px;
    font-size: 10px;
  }
  .section-description{
    flex-direction: column;
    width: 100%;
    margin-bottom: 20px;
  }
  .col-50{
    width: 100%;
  }
  .section-title{
    font-size: 30px;
  }
  .line{
    width: 100px;
    margin-bottom: 50px;
  }
  #services .section-description {
    width: 100%;
    grid-template-columns: 1fr; 
  }
  .col-20 {
    padding: 10px;
  }
  form{
    width: 100%;
  }
  .ctn-button {
    width: 50%; 
  }
  .success,.error{
    width: 90%;
  }
 
}


@media (max-width: 767px) and (min-width: 481px) {
  .sub-header{
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0.2rem;
  }
  .logo{
    margin-top: 5px;
  }
  .up-header i{
    font-size: 20px;
  }
  .slider img{
    object-fit: contain;
    height: auto;
  }
  .title h1{
    font-size: 1.3rem;
  }
  .title p{
    font-size: 0.6rem;
  }
  .buttons{
    padding: 20px;
  }
  .buttons i{
    font-size: 15px;
  }

  .section-description{
    flex-direction: column;
    width: 100%;
    margin-bottom: 20px;
  }
  .col-50{
    width: 100%;
  }
  #services .section-description {
    width: 100%;
    grid-template-columns: repeat(2, 1fr); 
    gap: 15px;
  }
  .col-20 {
    padding: 15px; 
  }
  form {
    width: 80%; 
  }

  .ctn-button {
    width: 40%;
  }  
  .menu ul li,
  .btn-slider {
    padding: 10px 20px;
  }
  .menu ul li a,
  .btn-slider {
    font-size: 15px;
  }
  .success,.error{
    width: 80%;
  }
 
}


@media (max-width: 1024px) and (min-width:768px) {
  .slider img{
    object-fit: contain;
    height: auto;
  }
  .title h1{
    font-size: 1.5rem;
  }
  .title p{
    font-size: 0.6rem;
  }
  .buttons i{
    font-size: 20px;
  }
  .btn-slider{
    padding: 10px 20px;
    font-size: 15px;
  }
  .section-description{
    width: 100%;
    margin-bottom: 20px;
  }
  #services .section-description {
    width: 100%;
    grid-template-columns: repeat(2, 1fr); 
    gap: 15px; 
  }
  .col-20 {
    padding: 15px; 
  }
}

@media (max-width: 1279px) and (min-width:1025px) {
  .slider img{
    object-fit: contain;
    height: auto;
  }
  .title h1{
    font-size: 2.0rem;
  }
  .title p{
    font-size: 0.9rem;
  }
  .buttons i{
    font-size: 25px;
  }
  #about,#contact{
    padding: auto;
  }
  .section-description{
    width: 100%;
    margin-bottom: 20px;
  }
  #services .section-description {
    width: 100%;
  }
 

}

