*,
*:before,
*:after {
  padding: 0;
  margin: 0;
  box-sizing: border-box;

}

html {
  scroll-behavior: smooth;
}

body {
  height: 100vh;
  background-color: #162819;
  font-family: "Poppins", sans-serif;
  color: #fffffa;
}



/* scroll-bar */

body::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  background-color: #202020;
}

body::-webkit-scrollbar {
  width: 5px;
  background-color: #adabab;
}

body::-webkit-scrollbar-thumb {
  border-radius: 10px;
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, .3);
  background-color: #2c634b;
}

/* waves */



.box {
  position: fixed;
  top: 0;
  transform: rotate(80deg);
  left: 0;
  z-index: -2;
}

.wave {
  z-index: -3;
  position: fixed;
  top: 0;
  left: 0;
  opacity: .4;
  position: absolute;
  top: 3%;
  left: 10%;
  background: #709775;
  width: 1500px;
  height: 1300px;
  margin-left: -150px;
  margin-top: -250px;
  transform-origin: 50% 48%;
  border-radius: 43%;
  animation: drift 7000ms infinite linear;
}

.wave.-three {
  animation: drift 7500ms infinite linear;
  position: fixed;
  background-color: #A1CCA5;
}

.wave.-two {
  animation: drift 3000ms infinite linear;
  opacity: .1;
  background: #A1CCA5;
  position: fixed;
}

.box:after {
  content: '';
  display: block;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 11;
  transform: translate3d(0, 0, 0);
}

@keyframes drift {
  from {
    transform: rotate(0deg);
  }

  from {
    transform: rotate(360deg);
  }
}


/*Animation*/
.icon:nth-child(2) img {
  -webkit-animation-delay: 0.2s;
  animation-delay: 0.2s
}

.icon:nth-child(3) img {
  -webkit-animation-delay: 0.3s;
  animation-delay: 0.3s
}

.icon:nth-child(4) img {
  -webkit-animation-delay: 0.4s;
  animation-delay: 0.4s
}

.icon img {
  -webkit-animation: anim 2s ease infinite;
  animation: anim 2s ease infinite;
  -webkit-transform: scale(0, 0) rotateZ(180deg);
  transform: scale(0, 0) rotateZ(180deg);
}

@-webkit-keyframes anim {
  0% {
    -webkit-transform: scale(0, 0) rotateZ(-90deg);
    transform: scale(0, 0) rotateZ(-90deg);
    opacity: 0
  }

  30% {
    -webkit-transform: scale(1, 1) rotateZ(0deg);
    transform: scale(1, 1) rotateZ(0deg);
    opacity: 1
  }

  50% {
    -webkit-transform: scale(1, 1) rotateZ(0deg);
    transform: scale(1, 1) rotateZ(0deg);
    opacity: 1
  }

  80% {
    -webkit-transform: scale(0, 0) rotateZ(90deg);
    transform: scale(0, 0) rotateZ(90deg);
    opacity: 0
  }
}

@keyframes anim {
  0% {
    -webkit-transform: scale(0, 0) rotateZ(-90deg);
    transform: scale(0, 0) rotateZ(-90deg);
    opacity: 0
  }

  30% {
    -webkit-transform: scale(1, 1) rotateZ(0deg);
    transform: scale(1, 1) rotateZ(0deg);
    opacity: 1
  }

  50% {
    -webkit-transform: scale(1, 1) rotateZ(0deg);
    transform: scale(1, 1) rotateZ(0deg);
    opacity: 1
  }

  80% {
    -webkit-transform: scale(0, 0) rotateZ(90deg);
    transform: scale(0, 0) rotateZ(90deg);
    opacity: 0
  }
}



/* header */

header {
    display: flex;
    justify-content: space-between; /* Χώρισε το h2 και το nav με τον διαθέσιμο χώρο */
    align-items: center; /* Κεντράρει τα στοιχεία κατακόρυφα */
    padding: 20px;
    font-size: larger;
    position: fixed;
    width: 100%;
    height: 14vh;
    transition: 0.5s ease-out;
    top: 0;
    z-index: 30;
    /* backdrop-filter: blur(0.5rem) saturate(4); */
    background-color: #324733;
    border-radius: 0px 0px 6px 6px;
}

@keyframes SlideInDown {
  from {
    transform: translateY(-20px);
  }

  to {
    transform: translateY(40px);
  }
}

@keyframes fadeInUp {
  from {
    transform: translate3d(0, 40px, 0)
  }

  to {
    transform: translate3d(0, 0, 0);
    opacity: 1
  }
}

@-webkit-keyframes fadeInUp {
  from {
    transform: translate3d(0, 40px, 0)
  }

  to {
    transform: translate3d(0, 0, 0);
    opacity: 1
  }
}

.animated {
  animation-duration: 1s;
  animation-fill-mode: both;
  -webkit-animation-duration: 1s;
  -webkit-animation-fill-mode: both
}

.animatedFadeInUp {
  opacity: 0
}

.fadeInUp {
  opacity: 0;
  animation-name: fadeInUp;
  -webkit-animation-name: fadeInUp;
}


a {
  text-decoration: none;
  color: #cecece;
}

h2 {
  cursor: pointer;
  margin-left: 50px;
  font-weight: bold;
  color: #cecece;
}

.category {
  display: flex;
  gap: 40px;
}



.cat {
  position: relative;
  text-decoration: none;
  font-family: "Poppins", sans-serif;
  color: #a0a0a0;
  letter-spacing: 0.5px;
  padding: 0 10px;
}

.cat::after {
  content: "";
  position: absolute;
  background-color: #456c47;
  height: 3px;
  width: 0%;
  left: 0;
  margin-top: 20px;
  transition: 0.3s ease;
}

.cat:hover {
  color: #fffffa;
}

.cat:hover::after {
  width: 100%;
}

span {
  color: #456c47;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color:#cecece;
  
}

h1 {
  font-size: 4vw;

}

h3 {
  font-size: 2vw;
}

.hello {
  font-size: 3vw;
  color: #456c47;
}

.text {
  max-width: 50vw;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.hire,
.works {
  display: flex;
  justify-content: center;
  align-items: center;
  transition: ease 0.3s;
  font-weight: 700;
  max-width: 30vw;
}

.hire {
  background-color: #4d6c4e;
  width: 110px;
  height: 40px;
  border-radius: 20px;
  border: 3px solid #cecece;
  text-decoration: none;
  color: #cecece;
  transition: ease 0.5s;
}

.works {
  width: 120px;
  height: 40px;
  border-radius: 20px;
  box-shadow: none;
  background-color: #cecece;
  border: 3px solid;
  border-color: #4d6c4e;
  text-decoration: none;
  color: #4d6c4e;

}

.hire:hover {
  transform: translateY(-3px);
  background-color: #3e583f;
  color: #eae9e9;
  border-color:#eae9e9


}

.works:hover {
  transform: translateY(-3px);
  background-color: #bdbdbd;
  color:#325733;
  border-color:#325733;

}

.bouttons {
  gap: 16px;
  display: flex;
  margin-top: 30px;
}

img {
  max-width: 100%;
  display: block;
}

/* Work */
.Work {

  /* margin-top: 200px; */
  display: flex;
  flex-direction: column;
  align-items: center;

}



/* title */
.title {
    max-width: 30rem;
    position: relative;
    margin-left: -30px;
    font-weight: 800;
  }
  
  .title1 {
    font-size: 50px;
    font-weight: bold;
    color: #fffffa;
  }
  
  .title2 {
    font-size: 110px;
    color: #3b3b3b;
    font-weight: bold;
    z-index: -2;
    top: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 30rem;
  }
  
  .title3 {
    font-size: 100px;
    font-weight: bold;
    color: #fffffa;
    z-index: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 30rem;
  }
  
  .title4 {
    font-size: 200px;
    color: #2f2f2f;
    font-weight: bold;
    z-index: -1;
    top: 0;
    position: absolute;
  }
  


.quote {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 74%;
  margin: 70px auto 70px auto;
  font-style: italic;
  text-align: center;
  color: #fffffa;
}


.contactez {
  font-size: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;

}


/* Προσαρμογή για το .project-grid */
.project-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  justify-content: center; /* Κεντράρει τις κάρτες οριζόντια */
}

/* Προσαρμογή για το .card */
.card, .card1 {
  flex: 1 1 200px; /* Επιτρέπει την προσαρμογή των καρτών, με ελάχιστο πλάτος 200px */
  max-width: 250px; /* Ορίζει το μέγιστο πλάτος για τις κάρτες */
  height: 220px; /* Ορίζει το ύψος για τις κάρτες ώστε να είναι πιο τετράγωνες */
  padding: 1rem;
  border-radius: 10px;
  outline: var(--TEXT-SECONDARY) solid 1px;
  background: rgb(46, 92, 46); /* Σκούρο πράσινο χρώμα */
  background: linear-gradient(0deg, rgb(19, 20, 19) 0%, rgb(46, 56, 46) 100%); /* Σκούρο πράσινο gradient */
  -webkit-box-shadow: 0px 0px 30px 0px rgba(0, 0, 0, 0.3); /* Μειωμένη σκιά */
  -moz-box-shadow: 0px 0px 30px 0px rgba(0, 0, 0, 0.3); /* Μειωμένη σκιά */
  box-shadow: 0px 0px 30px 0px rgba(0, 0, 0, 0.3); /* Μειωμένη σκιά */
  /* transition: transform 900ms cubic-bezier(0.3, 0.01, 0.53, 0.86),
              box-shadow 900ms cubic-bezier(0.3, 0.01, 0.53, 0.86),
              background 900ms cubic-bezier(0.3, 0.01, 0.53, 0.86);  */
  transition: transform 0.5s ease, box-shadow 0.5s ease;;
}

.card:hover, .card1:hover {
  transform: scale(1.02);
  cursor: pointer;
  outline: rgba(97, 218, 251, 0.9) solid 1px;
  -webkit-box-shadow: 0px 0px 15px 1px rgba(97, 218, 251, 0.5); /* Μειωμένη σκιά κατά το hover */
  -moz-box-shadow: 0px 0px 15px 1px rgba(97, 218, 251, 0.5); /* Μειωμένη σκιά κατά το hover */
  box-shadow: 0px 0px 15px 1px rgba(97, 218, 251, 0.5); /* Μειωμένη σκιά κατά το hover */
}


.heading-container {
  color:#cecece;
  display: flex;
  align-items: center;
  justify-content: space-between;
  column-gap: 1.2rem;
  margin-bottom: 0.5rem;
}
/*#card2 .heading-container {*/
/*  column-gap: 5.2rem;*/
/*}*/

h3 {
  display: inline-block;
  font-size: 2rem;
}

.heading-icon {
  font-size: 2rem;
}

.card > p, .card1 > p {
  
  line-height: 1.4;
  font-size: 0.8rem;
  padding-top: 10px;
}

.cards {
  display: flex;
  justify-content: center;
  column-gap: 4rem;
  row-gap: 5rem;
  flex-wrap: wrap;
}


.card:hover .heading-icon {
  transform: rotateY(360deg); /* Ρυθμίστε την γωνία της περιστροφής όπως επιθυμείτε */
}

/* Πρόσθεσε αυτά τα στυλ στο CSS σου */

.heading-icon {
  font-size: 2rem;
  display: inline-block; /* Εξασφαλίζει ότι το transformation θα εφαρμοστεί σωστά */
}

/* Flip animation μόνο για το εικονίδιο της δεύτερης κάρτας */
.flip-icon {
  transition: transform 0.6s linear; /* Ομαλή μετάβαση για το flip */
}

.flip-icon:hover {
  animation: flip 0.6s linear;
}

@keyframes flip {
  0% {
    transform: rotateY(0deg);
  }
  100% {
    transform: rotateY(360deg);
  }
}




/* contact */

.reseaux {
  display: flex;
  justify-content: center;
  gap: 40px;
  align-items: center;
  margin-top: 50px;

}

.Contact {

  margin-top: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.formSection {
  display: flex;
  margin-top: 100px;
}


.end {
  position: absolute;
  bottom: 0px;
  height: 170px;
  width: 100%;
  background-color: #202020;
}


.right {
  grid-column: 1/-1;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  padding-top: 90px;
}


/* social media */

.social-menu {
  position: relative;
  top: 100px;
  z-index: 10;
}

.social-menu ul {
  gap: 80px;
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  margin-top: 30px;

}

.social-menu ul li {
  list-style: none;
  margin: 0 15px;
}

.social-menu ul li .fab {
  font-size: 30px;
  line-height: 60px;
  transition: .3s;
  color: #000;
}

.social-menu ul li .fab:hover {
  color: #fff;
}

.social-menu ul li a {
  position: relative;
  display: block;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #fffffa;
  text-align: center;
  transition: .6s;
  box-shadow: 0 5px 4px rgba(0, 0, 0, .5);
}

.social-menu ul li a:hover {
  transform: translate(0, -10%);
}

.social-menu ul li:nth-child(1) a:hover {
  background-color: rgba(0, 0, 0, 0.829);
}

.social-menu ul li:nth-child(2) a:hover {
  background-color: #E4405F;
}

.social-menu ul li:nth-child(3) a:hover {
  background-color: #0077b5;
}

.social-menu ul li:nth-child(4) a:hover {
  background-color: #000ecd;
}

/* form */

.contenaire {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 100px;
}

h5 {
  font-size: larger;
  color: #000;
}

.form {
  background: #c8eccc;
  display: flex;
  flex-direction: column;
  padding: 2vw 4vw;
  width: 90%;
  max-width: 600px;
  border-radius: 10px;
  text-align: center;

}

form h2 {
  color: #415D43;
  font-weight: 800;
  margin-bottom: 20px;
  margin-left: 0px;
  cursor:default;
}

form input,
form textarea {

  border: 0;
  margin: 10px 0;
  padding: 20px;
  outline: none;
  resize: none;
  border-radius: 10px;
  font-family: "Poppins", sans-serif;
  font-weight: 550;
  background-color:#fffffa ;

}


form button {
  padding: 15px;
  background: #415D43;
  color: #cecece;
  font-size: 18px;
  font-weight: bold;
  border: 0;
  outline: none;
  cursor: pointer;
  transition: 0.5s;
  width: 150px;
  margin: 20px auto 0;
  border-radius: 30px;
}
form button:hover{
    cursor:pointer;
    background-color:#354c37 ;
    transform: translateY(-2px);
    
}
.error {
  color: rgb(237, 57, 57);
  font-size: 0.875em;
  margin-top: 5px;
  font-weight: bold;
}


footer {
    display: flex;
    justify-content: center;
    align-items: end;
    margin: 70px auto auto auto;
    padding-bottom: 20px;
    font-weight: bold;
    font-size: large;
}

/* Mobile Styles for Hero Section */
@media only screen and (max-width: 600px) {
    header h2{
        font-size: 1.5rem;
        margin-left: 0px;
    }
    .category{
        display:none;
    }

    .hero {
      padding: 20px; /* Προσθέτει padding γύρω από το περιεχόμενο */
      text-align: center; /* Κεντράρει το κείμενο */
      
    }
  
    .hero h1 {
      font-size: 8vw; /* Αυξάνει το μέγεθος της γραμματοσειράς για το h1 */
      line-height: 1.2; /* Ρυθμίζει το ύψος της γραμμής για καλύτερη ανάγνωση */
    }
  
    .hero h3 {
      font-size: 4vw; /* Αυξάνει το μέγεθος της γραμματοσειράς για το h3 */
      line-height: 1.2; /* Ρυθμίζει το ύψος της γραμμής */
    }
  
    .text .hello {
      font-size: 4vw; /* Αυξάνει το μέγεθος της γραμματοσειράς για το hello */
    }
  
    .bouttons {
      display: flex; /* Χρησιμοποιεί flexbox για τα κουμπιά */
      flex-direction: column; /* Τακτοποιεί τα κουμπιά σε στήλη */
      gap: 10px; /* Δημιουργεί απόσταση μεταξύ των κουμπιών */
      margin-top: 20px; /* Προσθέτει περιθώριο από πάνω */
    }
  
    .hire, .works {
      font-size: 3vw; /* Ρυθμίζει το μέγεθος της γραμματοσειράς για τα κουμπιά */
      padding: 10px 20px; /* Ρυθμίζει το padding για καλύτερη εμφάνιση */
      width: auto; /* Καθορίζει το πλάτος για να είναι προσαρμόσιμο */
    }
    
    .hire:hover, .works:hover {
      transform: translateY(-2px); /* Ελαφριά ανύψωση των κουμπιών όταν περνάει ο δείκτης */
    }


   
    .title1 {
        font-size: 24px; /* Μειώστε το μέγεθος για κινητά */
    }
    
    .title2 {
        font-size: 40px; /* Μειώστε το μέγεθος για κινητά */
    }
    
    .title3 {
        font-size: 55px; /* Μειώστε το μέγεθος για κινητά */
    }
    
    .title4 {
        font-size: 90px; /* Μειώστε το μέγεθος για κινητά */
    }

    .quote {
        font-size: 14px; /* Μειώστε το μέγεθος γραμματοσειράς για κινητά */
        width: 90%; /* Επέκταση του πλάτους */
        margin: 20px auto; /* Μειώστε το margin */
    }

    .contactez {
        font-size: 14px; /* Μειώστε το μέγεθος γραμματοσειράς για κινητά */
    }

    .social-menu {
        top: 30px; /* Μειώστε την απόσταση από την κορυφή */
      }
      .cards {
        flex-direction: column; /* Αλλάζει την κατεύθυνση σε στήλες */
        align-items: center; /* Κεντράρει τις κάρτες κατακόρυφα */
        
      }
      .card .card1{
        margin-top: 30px;
      }
      .cards h3{
        font-size: 18px;
      }
      .cards p{
        font-size: 14px;
      }
      .card .heading-container{
        column-gap: 5.5rem;
      }
      /*#card2 .heading-container {*/
      /*  column-gap: 8rem;*/
      /*}*/
    
      .social-menu ul {
        gap: 40px; /* Μειώστε το κενό μεταξύ των εικονιδίων */
        margin-top: 10px; /* Μειώστε την απόσταση από την κορυφή */
        transform: none; /* Αφαιρέστε τη μετατόπιση */
        position: relative; /* Ορίστε τη θέση ως σχετική για σωστή ευθυγράμμιση */
        flex-wrap: nowrap; /* Επιτρέψτε την τυλίξη για μικρές οθόνες */
      }
    
      .social-menu ul li {
        margin: 0; /* Αφαιρέστε το margin για μικρότερες οθόνες */
      }
    
      .social-menu ul li a {
        width: 50px; /* Μειώστε το πλάτος των κυκλικών κουμπιών */
        height: 50px; /* Μειώστε το ύψος των κυκλικών κουμπιών */
      }
    
      .social-menu ul li .fab {
        font-size: 24px; /* Μειώστε το μέγεθος των εικονιδίων */
        line-height: 50px; /* Ευθυγραμμίστε το μέγεθος των εικονιδίων με τα κουμπιά */
      }
      .formSection {
       
        margin-top: 0px;
      }
      .form{
        width: 95%;
      }

      footer{
        margin-top:20px;
      }

    
  
 
  }



/*=======================modal==========================*/
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}

.modal-content {
  position: relative;
  background-color: transparent;
  border: none;
  padding: 0;
}

.video-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  aspect-ratio: 16 / 9; /* Default για landscape */
}

@media (orientation: portrait) {
  .video-container {
    aspect-ratio: 9 / 16; /* Για portrait βίντεο */
    max-height: 90vh;
  }
}

video {
  width: 100%;
  height: auto;
  max-height: 90vh;
  object-fit: contain;
}

.close {
  position: absolute;
  top: 10px;
  right: 10px;
  color: white;
  font-size: 24px;
  font-weight: bold;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 5px 10px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1000;
}

.close:hover,
.close:focus {
  background-color: rgba(0, 0, 0, 0.8);
}

@media (max-width: 768px) {
  .video-container {
    max-width: 90%;
    max-height: 80vh;
    display: contents;
  }
}
