@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Mynerve&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Indie+Flower&display=swap');

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

p{
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif
}

nav{
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100vw;
}

header{
  width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;
  max-height: 80px;
  background-color: #c5cbff;
  position: fixed;
  
}

.main-content{
  max-width: 1000px;
  display: flex;
  align-items: center;
} 

.menu-links {
  padding: 20px;
}

.menu-links a {
  text-decoration: none;
  color: black;
  font-weight: 600;
  margin-right: 15px;
  position: relative;
  font-size: 1.1em;
  font-family: 'Courier New', Courier, monospace;
}

.menu-links a::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  width: 0px;
  height: 0.2rem;
  background: white;
  transition: all 150ms ease-in-out;
  border-radius: 10px;
}

.menu-links a:hover::after {
  width: 50%;
  left: 25%;
}

.apresentation{
  justify-content: space-around;
  padding: 30px;
}

.description p{
  font-family: 'Indie Flower', cursive;
  font-size: 1.8em;
}

.otherC{
  color: rgb(102, 102, 102);
}

span {
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
  font-size: 1.6em;
}

.btn{
  display: flex;
  margin-top: 30px;
}

.button{
  text-decoration: none;
  margin-top: 10px;
  padding: 10px;
  color: black;
  font-size: 1.2em;
  background-color: #8490ff;
  border: 2px solid #8490ff;
  font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}

.button:hover{
  transform: scale(1.1);
  transition: 200ms;
}

.container{
  box-shadow: inset 3px 3px 3px rgba(0, 0, 0, 0.26);
  height: 70vh;
  padding: 70px;
  background-color: rgb(255, 255, 255);
}

#self{
  width: 80%;
  box-shadow: 4px 4px #3e51ff;
}

.self-content{
  display: flex;
  justify-content: end;
}

.line{
  display: flex;
  width: 100%;
  height: 8px;
  background: linear-gradient(to left, #8490ff 0%, #62bdfc 100%);
  margin-top: 4px;
  justify-content: center;
  border-radius: 8px;
}

.line2{
  display: flex;
  width: 85%;
  height: 8px;
  background: linear-gradient(to left, #8490ff 0%, #62bdfc 100%);
  margin-top: 4px;
  justify-content: center;
  border-radius: 8px;
}

.line3{
  display: flex;
  width: 20%;
  height: 8px;
  background: linear-gradient(to left, #8490ff 0%, #62bdfc 100%);
  margin-top: 4px;
  justify-content: center;
  border-radius: 8px;
}

.habilityBox{
  width: 200px;

}

.habilityContent{
  padding: 15px;
}

.back-line{
    background-color: rgb(206, 206, 206);
    border-radius: 8px;
}

.hability{
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: 1000px;
}

.hability-container{
  background-color: #f4f5ff;
  height: 70vh;
}

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

.habilitySection h2{
  margin-bottom: 15px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.7em;
  color: #5f6fff;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.692);
  text-align: center;
}

.otherP{
  margin-bottom: 30px;
  font-family: 'Indie Flower', cursive;
  font-size: 1.6em;
  color: rgb(102, 102, 102);
  text-align: center;
}

section{
    display: flex;
    justify-content: center;
}

.block{
    display: flex;
    justify-content: center;
    margin: 30px;
    margin-bottom: 50px;
}

.titleHability{
  margin-top: 10px;
  text-align: end;
}

.section-cards{
  display: flex;
  width: 1000px;
  justify-content: space-around;
}

#project-title{
  margin: 50px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.7em;
  color: #5f6fff;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.692);
  text-align: center;
}

.projects{
  height: 60vh;
  flex-direction: column;
}

.project-card{
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
  width: 250px;
  height: 300px;
}

.project-card img {
  margin: 10px 0px;
  width: 200px;
}

.project-card h3{
  margin: 10px;
}

.project-card p{
  text-align: center;
}

.project-card-a{
  text-decoration: none;
  color: rgb(55, 55, 55);
}

.project-card-a:hover{
  transform: scale(1.1);
  transition: 200ms;
}

.btn-projects{
  margin-top: 40px;
  padding: 10px;
  width: 100vw;
  display: flex;
  justify-content: center;
}


footer{
  background-color: #c5cbff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

footer p {
  font-size: 1em;
}

footer a {
  text-decoration: none;
  color: black;
  text-shadow: 0px 0px 9px rgb(73, 73, 73);
  margin-top: 5px;
  font-size: 1em;
}

footer div{
  margin: 5px;
}

footer div a:hover {
  color: rgb(174, 33, 255);
  text-shadow: 0px 0px 9px fuchsia;
}

@media screen and (max-width: 630px) {
  
  h1{
    font-size: 17px;
  }
  
  .menu-links a {
    display: none;
  }
  
  .description p{
    font-size: 20px;
  }
  .hability{
    flex-direction: column;
    width: 100vw;
  }

  .habilityBox{
    width: 250px;
    margin-bottom: 20px;
  }
  
  nav{
    justify-content: space-around;
  }

  span {
    font-size: 15px;
  }

  .apresentation{
    flex-direction: column;
  }

  .btn{
    justify-content: center;
    margin-top: 40px;
  }

  .self-content{
    justify-content: center;
  }

  .container{
    height: 100vh;
    padding: 20px;
  }

  #h2-hability{
    font-size: 22px;
  }

  .projects{
    height: 100vh;
  }

  .section-project{
    height: 900px;
  }

  .section-cards{
    flex-direction: column;
    width: 100vw;
    align-items: center;
    height: 100vh;
  }
  
  #card1{
    margin-bottom: 40px;
  }
  .habilityDescription {
    width: 100vw;
  }

  .otherP{
    padding: 0px;
    font-size: 17px;
  }

  .hability-container{
    background-color: #f4f5ff;
    height: 100vh;
  }

}

@media screen and (max-width: 990px) {
  span {
    font-size: 1.4em;
  }
}

.modal-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.7);
            z-index: 1000;
            justify-content: center;
            align-items: center;
        }
        
        .modal-content {
            background-color: #fff;
            width: 80%;
            max-width: 800px;
            max-height: 80vh;
            border-radius: 10px;
            padding: 30px;
            overflow-y: auto;
            position: relative;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        }
        
        .close-modal {
            position: absolute;
            top: 15px;
            right: 15px;
            font-size: 24px;
            cursor: pointer;
            color: #5f6fff;
        }
        
        .modal-header {
            margin-bottom: 20px;
            border-bottom: 1px solid #eee;
            padding-bottom: 10px;
        }
        
        .modal-header h2 {
            color: #5f6fff;
            font-family: 'Courier New', Courier, monospace;
            margin-bottom: 5px;
        }
        
        .modal-header .project-date {
            color: #777;
            font-style: italic;
        }
        
        .modal-body {
            margin-bottom: 20px;
        }
        
        .modal-section {
            margin-bottom: 20px;
        }
        
        .modal-section h3 {
            color: #5f6fff;
            font-family: 'Courier New', Courier, monospace;
            margin-bottom: 10px;
            font-size: 1.2em;
        }
        
        .skills-list {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }
        
        .skill-tag {
            background-color: #c5cbff;
            padding: 5px 10px;
            border-radius: 15px;
            font-size: 0.9em;
        }
        
        .modal-footer {
            text-align: center;
            margin-top: 20px;
        }
        
        .project-link {
            display: inline-block;
            background-color: #8490ff;
            color: white;
            padding: 10px 20px;
            border-radius: 5px;
            text-decoration: none;
            font-weight: bold;
            transition: all 0.3s ease;
        }
        
        .project-link:hover {
            background-color: #5f6fff;
            transform: scale(1.05);
        }
        
        .section-cards {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 30px;
            width: 100%;
            max-width: 1000px;
        }
        
        .project-card-a {
            text-decoration: none;
            color: rgb(55, 55, 55);
            width: calc(50% - 15px);
            max-width: 400px;
        }
        
        .project-card {
            display: flex;
            flex-direction: column;
            text-align: center;
            align-items: center;
            width: 100%;
            height: 100%;
            background-color: white;
            border-radius: 10px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
            overflow: hidden;
        }
        
        .project-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
        }
        
        .project-card img {
            margin: 0;
            width: 100%;
            height: 200px;
            object-fit: cover;
        }
        
        .project-card h3 {
            margin: 15px 10px 10px;
            font-family: 'Courier New', Courier, monospace;
            color: #5f6fff;
        }
        
        .project-card p {
            text-align: center;
            padding: 0 15px 15px;
            font-size: 0.9em;
            flex-grow: 1;
            display: -webkit-box;
            -webkit-line-clamp: 4;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        @media screen and (max-width: 768px) {
            .project-card-a {
                width: 100%;
            }
            
            .modal-content {
                width: 95%;
                padding: 20px;
            }
        }