/* Variables */
:root {
  --white: #ffffff;
  --grey: #888888;
  --light-grey: #b4b4b4;
  --fade_white: #cfcfcf;
}

.container{
  padding-left: 50px;
  padding-right: 50px;
}

.row{
  margin: 0px;
  padding: 0px;
}


.header{
  margin-top: 100px;
}



#language-flag {
  cursor: pointer;
  transition: transform 0.3s ease;
}

#language-flag:hover {
  transform: scale(1.1) translateY(-5px);
}





.menu .text{
  margin-left: 7%;
  position: absolute;
  display: block;
  position: absolute;
  top:20%;
  z-index: 2;
}

.menu .text .top_text{
  font-size: 19px;
  text-transform: uppercase; 
  font-weight: bold;
  letter-spacing: 2px;
}

.menu .text .center_text{
  font-size: 61px;
  font-weight: bold;
  letter-spacing: 5px; 
}

.menu .text .bottom_text{
  font-size: 30px;
}

/* my_info */
.menu .my_info{
  z-index: 2;
  margin-right: 50px;
  position: absolute; 
}

.photo_frame{
  position: relative;
  border: 8px solid;
  height: 75vh;
  border-radius: 10px;
}

.photo_frame .photo img{
  width: 101%;
  height: 74vh;
  object-fit: cover;
  object-position: 40%;
  position: absolute;
  right: 0vw;
  top: -0.1%;
  transform: scale(1.009);
  bottom: 2vh;
  z-index: -2;
  border-radius: 10px;
}

.my_info{
  margin-top: 20px;  
}

.my_info button{
  margin-right: 20px;
  border-radius: 0;
  padding: 3px;
  background: transparent;
  border-bottom: 1px solid black;
}

.my_info button:hover{
  color: white;
  background: rgba(0,0,0,0.8);
  padding: 3px;
  border-radius: 3px;
  border-bottom: none;
}

/*About me*/
.about_me{
  margin-top: 60px;
}

.about_me .title{
  margin-bottom: 30px;
}

.about_me .portfolio{
  border-left: 1px solid;
  padding-left: 35px;
}

.about_text{
  padding-left: 5px;
  padding-right: 35px;
  text-align: justify;
}

.size_32{
  font-size:32px;
}

.size_24{
  font-size: 24px;
}

.size_26{
  font-size: 26px;
}

.size_34{
  font-size: 34px;
}

.size_22{
  font-size: 22px;
}

.size_25{
  font-size: 25px;
}

.size_45{
    font-size: 45px;
  }

/* My skills */
.my_skills{
  margin-top: 100px;
}

.my_skills .col-4{
  max-width: 31%;
}
.my_skills .title{
  margin-bottom: 50px;
}

.my_skills .row {
  column-gap: 20px;
  justify-content: space-between;
}

.my_skills .row .skill{
  margin-right: 0px;
  border-radius: 20px;
  box-shadow: 4px 0px 6px -2px rgba(0, 0, 0, 0.1);
  border-right: 2px solid rgba(0, 0, 0, 0.3);
  border-top: none;
  border-bottom: none;
  border-left: none;
}

.my_skills .row .skill_body {
  padding: 2px;

  margin: 0px;
  min-height: 135px;

}


.my_skills .row .skill .row .image{
  padding: 0px;
}

.my_skills .row .skill .row .image img{
  padding: 2px;
  width: 120%;
}

.my_skills .row .skill .row .desc{
  padding: 0px 4px 4px 4px;
  padding-top: 15px;
  font-size: 14px;
}

/* button holder */

.load_more_buttons{
  text-align: center;
}


/* Portfolio */

.works{
  margin-top: 100px;
  padding: 0px;
}

.works .labels{
  margin-top: 50px;
  color: rgba(0,0,0,0.6);
}

.works .labels .row .label_name{
  font-weight: bold;
}

.works .labels .row .label{
  margin: 0px;
}

.works .labels .row .label_name:hover{
  text-decoration: underline;
  cursor: pointer;
}

.works .labels .row .label_count{
  font-size: 10px;
  font-weight: bold;
  position: absolute;
  top: -10px;
  margin-left: 6px;
}

.works .display_box{
  margin-top: 25px;
}

.works .display_box .display_menu{
  text-align: right;
  margin-top: -25px;
  margin-bottom: 20px;
}

.works .display_box .projects_holder{
  padding: 0px;
}

.works .display_box .projects_holder .project{
  background-size: contain;
  height: 180px;
  border-radius: 5px;
  margin-bottom: 30px;
}

.works .display_box .projects_holder .project .project_body{
  height: 180px;
  border-radius: 5px;
}

.works .display_box .projects_holder .project .project_info{
  color: #fff;
  top: auto;
  bottom: auto;
  width: 90%;
  margin-left: 5%;
  margin-right: 5%;
  padding: 10px;
  z-index: 2;
}

.works .display_box .projects_holder .project .project_info .title a{
  color: #fff;
}

.works .display_box .projects_holder .project:hover .project_body{
  box-shadow: 2px 5px 20px 8px rgba(145, 145, 145, .8);
}



/* Contact me */
.get_in_touch{
  padding: 0px;
  margin-top: 100px;
}

.get_in_touch textarea{
  width: 100%;
  border-radius: 5px;
  border: 1px solid rgba(0,0,0,.2)
}

.social-list {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.social {
  display: flex;
  justify-content: center;
  align-items: center;
}

.social-list li {
  margin: 0 15px;
}

.social-list li a img {
  transition: transform 0.3s ease;  
}

.social-list li a:hover img {
  transform: scale(1.1) translateY(-5px);  
}

#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.5s ease;
  pointer-events: none; /* Initially block clicks */
}

#overlay.active {
  background-color: rgba(0,0,0,0.8);
  pointer-events: auto; /* Enable clicks when active */
}

#videoContainer {
  transform: translateY(-100%);
  transition: transform 0.5s ease;
}

#videoContainer.active {
  transform: translateY(0);
}

body.no-scroll {
  overflow: hidden;
}






/* Portfolio Section */
.portfolio-section {
  background-color: var(--white);
  padding: 40px 0;
}

.filter-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.filter-btn {
  background-color: transparent;
  border: 2px solid var(--grey);
  color: var(--grey);
  padding: 10px 20px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.filter-btn:hover {
  background-color: var(--fade_light_blue);
}

.filter-btn.active {
  background-color: var(--grey);
  color: var(--white);
}


.project-link, .project-link:hover {
  text-decoration: none; /* Remove underline */
  color: inherit; /* Use inherited color, preventing blue or other default link colors */
}

.projects-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.project-card {
  width: 70%;
  background: #4b4b4b;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease;
}


.project-card:hover {
  transform: translateY(-10px);
}

.project-header {
  display: flex;
  justify-content: space-between;
  padding: 10px 20px;
  background-color: rgb(37, 32, 21);
  color: var(--white);
}

.project-title {
  padding: 10px 20px;
  color: var(--white);
  font-weight: bold;
  font-size: 24px;
}

.project-img {
  width: 100%;
  display: block;
}

.project-description {
  padding: 15px 20px;
  color: var(--fade_white);
}

.tag {
  background-color: var(--white);
  border: 1px solid var(--grey);
  color: var(--grey);
  padding: 5px 10px;
  border-radius: 5px;
  margin: 5px;
}

.project-actions {
  display: flex;
  justify-content: space-around;
  padding: 20px;
}

.action-btn {
  border: none;
  background: none;
  font-size: 1.5em;
  color: var(--grey);
  cursor: pointer;
}


.get_in_touch input{
  border-radius: 5px;
  width: 100%;
  border: 1px solid rgba(0,0,0,.3);
}

/* footer */
.footer{
  padding: 3px;
  margin-top: 120px;
  border-top: 1px solid rgba(0,0,0,0.2);  
  text-align: center;
  font-size: 14px;
}

.header {
  opacity: 0;
  transition: opacity 2s ease-in-out;
  animation: fadeIn 2s forwards;
}

.section {
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.about_me, .my_skills, .works, .get_in_touch {
  opacity: 0;
  transition: opacity 1s ease-in-out;
}


@keyframes fadeIn {
  to {
    opacity: 1;
  }
}


/* Mobile Optimization */
@media(max-width: 812px){
  
  .container{
    padding: 1%;
  }
  
  .photo_frame .photo img{
    height: 30vh;
  }
  
  .photo_frame{
    height: 30vh;
    border: 5px solid;
  }
  
  .menu{
    padding: 0px;
  }
  
  .menu .text{
    padding: 0px;
    margin-left: 1%;
  }
  
  .menu .text .top_text{
    font-size: 13px;
  }
  
  .menu .text .center_text{
    font-size: 28px;
  }
  
  .menu .text .bottom_text{
    font-size: 15px;
  }
  
  .my_info button{
    font-size: 11px;
    font-weight:bold;
  }
  
  .about_me .about_text{
    font-size: 12px;
  }
  
  .skill_body .title h4{
    font-size: 12px;
  }
  
  .my_skills .row .skill .row .desc {
    font-size: 10px;
  }
  
  .my_skills .row .skill_body {
    min-height: 140px;
  }
  
  .my_skills .row .skill .row .image img{
    width: 30px;
    height: 30px;
  }
  
  .works .display_box .projects_holder .project .project_body .project_info{
    padding: 2px;
  }
  
  .works .display_box .projects_holder .project .project_info .title h3{
    font-size: 1rem;
  }
  
  .works .display_box .projects_holder .project .project_info .date{
    font-size: 11px;
  }
  
  .works .display_box .projects_holder .project .project_info .desc{
    font-size: 10px;
  }
  
  .size_32{
    font-size:22px;
  }

  .size_24{
    font-size: 14px;
  }

  .size_26{
    font-size: 16px;
  }

  .size_34{
    font-size: 24px;
  }

  .size_22{
    font-size: 12px;
  }

  .size_25{
    font-size: 15px;
  }

  .size_45{
      font-size: 25px;
   }
  
  .about_me .portfolio{
    border-left: none;
    margin-top: 20px;
  }
  
}

@media(max-width: 1024px){
  .photo_frame{
    height: 36vh;
  }
      .photo_frame .photo img{
        height: 35vh;
      }
}