html{
  scroll-behavior: smooth;
  scroll-padding-top: 50px;
}
body{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
#mariaimg{
  width: 40px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}
#hero{
background: url(assets/background.jpg);
background-repeat: no-repeat;
min-height: 40vh;
width: 100%;
background-position: center;
}
header{
  position: fixed;
  top: 0;
  width: 100%;
  background-color: white;
  height: 50px;
  font-family: Geneva;
  font-weight: bold;
  z-index: 1;
}
#image-name{
  display: flex;
  padding-left: 50px;
  gap: 10px;
}
#navbar{
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: absolute;
  top: 0;
  right: 0;
  padding-right: 30px;
  z-index: 1;
}
.nav{
  display: flex;
  gap: 40px;
}
.nav .nav-key{
  margin-right: 50px; 
  list-style: none;  
}
.nav .nav-key a{
  text-decoration: none;
  color: black;
}
.burger-menu{
  color: black;
  font-size: 25px;
  border: 0;
  background-color: transparent;
  cursor: pointer;
  display: none;
}
.js-scroll{
  opacity: 0;
  transition: opacity 300ms;
}
.js-scroll.scrolled{
  opacity: 1;
}
.scrolled.fade-in {
  animation: fade-in 1s ease-in-out both;
}
.scrolled.slide-left{
  animation: slide-in-left 1s ease-in-out both;
}
@keyframes fade-in{
  0% {
      opacity: 0;
  }
  100% {
      opacity: 1;
  }
}
@keyframes slide-in-left {
  0% {
      -webkit-transform: translateX(-30px);
      transform: translateX(-30px);
      opacity: 0;
  }
  100% {
      -webkit-transform: translateX(0);
      transform: translateX(0);
      opacity: 1;
  }
}
#home, h1, #home a{
  transition: 0.6s;
}
#home{
  margin-top: 50px;
  padding-top: 30px;
  display: flex;
  flex-direction: column;
  text-align: center;
  justify-content: center;
  align-items: center;
  /* background-size: 180%; */
  transition: 0.5s;
}
#home a{
  backdrop-filter: blur(8px);
}
h1{
  font-weight: bold;
  width: 60%;
  line-height: 40px;
  color: black;
}
#home-writeup{
  margin-top: -10px;
  width: 60%;
  line-height: 30px;
}
p, h1, h2, h3{
  margin-bottom: 30px;
  font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}
p{
  color: rgb(49, 46, 46);
}
#buttons {
  margin-top: 15px;
  display: flex;
  gap: 15px; 
}

.case-study{
 padding: 15px;
 background: rgb(16, 16, 65);
 border: none;
 border-radius: 20px;
 font-family: Geneva;
 font-weight: bold;
 text-decoration: none;
  color: rgb(227, 223, 223);
}
.case-study:hover{
  border: 1px solid grey;
  background: transparent;
  color: rgb(16, 16, 65);
}
.home-socials{
  display: flex;
  flex-direction: column;
  position: absolute;
  left: 0;
  bottom: 60%;
  padding: 10px 5px;
  background: hsl(203, 92%, 97%);
  border-radius: 0px 5px 5px 0px;
}
.home-icon{
  width: 20px;
  height: 20px;
  margin: 5px;
}
.home-icon:hover{
  transform: rotate(90deg);
}
.sub-mark{
  margin-top: -20px;
  width: 20px;
  height: 3px;
  background: rgb(16, 16, 65);
  border: none;
  border-radius: 2px;
}
/* #about{
  padding-top: 30px;
  padding-bottom: 30px;
  text-align: center;
  background: whitesmoke;
} */
 #about {
  padding: 50px 20px;
  text-align: center;
  background: whitesmoke;
}

#about h2 {
  margin-bottom: 20px;
}

#about > p {
  max-width: 600px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
}

/* #more{
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
} */

#more {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

#me {
  flex: 1;
  text-align: left;
  min-width: 300px;
}

#me h3 {
  margin-bottom: 20px;
  text-align: left;
}

#me p {
  line-height: 1.6;
  margin-bottom: 30px;
  text-align: left;
}

/* #skills-general {
  max-width: 50%; 
  margin: auto; 
}

#skills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px; 
  padding: 20px;
}

.skills {
  background: var(--accent-color);
  color: var(--text-color);
  text-align: center;
  font-family: var(--font-alt);
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 15px;
  white-space: nowrap; 
} */

#skills-general {
  flex: 1;
  min-width: 300px;
}

#skills-general h3 {
  margin-bottom: 20px;
  margin-left: 12px;
  text-align: left;
}

#skills {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 15px;
  padding: 0;
  justify-items: center;
}

.skills {
  /* background: #2c3e50; */
  background: #393b64;
  color: white;
  text-align: center;
  font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
  font-weight: bold;
  font-size: 14px;
  padding: 12px 2px;
  border-radius: 12px;
  white-space: nowrap;
  width: 100%;
  max-width: 140px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.skills:hover {
  background: #34495e;
  border-color: #3498db;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

#projects{
  padding-top: 30px;
  padding-bottom: 30px;
  text-align: center;
  background: rgb(237, 235, 235);
}

.project-img{
  /* width: 150%;  */
  height: auto; 
  /* object-fit: cover;  */
  border-radius: 8px;
}
.my-projects{
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  margin: 50px 70px 50px 70px;
  gap: 5px;
}
.project-writeup{
  text-align: left;
}

.project-writeup p{
  max-width: 560px;;
}

.project-cointainer {
  display: flex;
  justify-content: space-between; 
  align-items: flex-start; 
  gap: 20px; 
  flex-wrap: wrap; 
}
.project-card {
  background: #fff;
  padding: 20px;
  margin: 10px;
  border-radius: 11px;
  box-shadow: 0px 30px 10px #8b8eaf;
  display: flex;
  justify-content: center; 
  overflow: hidden;
  width: 100%; 
  max-width: 400px; 
  /* height: auto; */
}
#publication{
  padding-top: 30px;
  padding-bottom: 20px;
  text-align: center;
  background: whitesmoke;
}


#contact{
  background: url(assets/background.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  padding-top: 30px;
  padding-bottom: 30px;
  text-align: center;
}
form{
  background: transparent;
  width: 50%;
  display: flex;
  flex-direction: column;
  margin: auto;
  align-items: center;
  padding-top: 15px;
  padding-bottom: 15px;
  border: 1px solid grey;
  border-radius: 10px;
}
label{
  font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
  color: black;
}
input, textarea{
  border: 2px solid grey;
  border-radius: 20px;
  padding: 10px;
  margin-bottom: 20px;
  width: 50%;
  font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}
#footer{
  background: black;
  padding-bottom: 20px;
}
#sub-footer{
  color: white;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
}
#left-footer{
  padding-left: -20px;
}
#left-footer p{
  color: white;
  font-size: small;
}
.socials{
  display: flex;
  list-style: none;
  gap: 2rem;
}
.item img{
  width: 25px;
  height: 25px;
}
.item a{
  text-decoration: none;
  width: 40px;
  height: 40px;
  background-color: hsl(203, 92%, 97%);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
  overflow: hidden;
}
.item a::before{
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: hsl(203, 92%, 97%);
  z-index: 0;
  scale: 1 0;
  transform-origin: bottom;
  transition: 0.5s ease;
}
.item:hover a::before{
  scale: 1 1;
}
.icon{
  font-size: 2rem;
  color: hsl(203, 92%, 8%);
  transition: 0.5s ease;
  z-index: 2;
}
.item a:hover .icon{
  color: #fff;
  transform: rotateY(360deg);
}
hr{
  width: 50%;
  margin: auto; 
}
#last-footer{
  text-align: center;
  padding-top: 5px;
}
#last-footer p{
  color: white;
}

/****** Media Queries *****/

@media screen and (max-width: 768px) {

  #image-name{
      padding-left: 10px;
      gap: 15px;
  }
  .nav{
      position: fixed;
      background: white;
      flex-direction: column;
      top: 35px;
      right: 1px;
      width: 100%;
      text-align: center;
      transform: translateX(120%);
      transition: transform 0.5s ease-in;
      padding-top: 40px;
  }
  .nav .nav-key{
      margin: 0px 5px 0px 5px;
      border-bottom: 1px solid rgb(215, 210, 210);
      margin-top: -25px;
      padding-bottom: 10px;
  }
  .burger-menu{
      display: inline-block;
      font-size: 35px;
      padding-top: 10px;
  }
  .nav.show{
      transform: translateX(0);
  }
  .scroll-container{
      padding-top: 30px;
  }
  #home{  
      margin-top: 70px;
      padding-top: 70px;
      flex-direction: column;
  }

  /* about me */
  #about {
    padding: 40px 15px;
  }
  
  #about > p {
    width: 90%;
    margin: 0 auto 30px auto;
    text-align: center;
  }
  
  #more {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 95%;
    margin: 0 auto;
    gap: 30px;
  }
  
  #me {
    width: 100%;
    text-align: center;
    min-width: unset;
  }
  
  #me h3 {
    text-align: center;
    margin-bottom: 15px;
  }
  
  #me p {
    text-align: center;
    width: 100%;
    padding: 0;
    margin-bottom: 20px;
  }
  
  #skills-general {
    width: 100%;
    margin-top: 20px;
    min-width: unset;
  }
  
  #skills-general h3 {
    text-align: center;
    margin-bottom: 20px;
  }
  
  #skills {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
    padding: 0;
  }
  
  .skills {
    font-size: 12px;
    padding: 10px 15px;
    max-width: none;
    width: 100%;
  }

  /*  */
  
  #hero{
    min-height: 80vh
  }
  #projects{
      margin-top: -30px;
      display: flex;
      flex-direction: column;
  }
  #projects p{
      width: 80%;
      margin: auto;
  }
  .my-projects{
      display: flex;
      flex-direction: column;
      gap:0;
  }
  .project-card{
          background: #fff;
          padding: 15px 20px;
          margin: 5px;
          border-radius: 11px;
          box-shadow: 0px 30px 10px #8b8eaf;
  }
  .project-img{
      width: 550px;
      height: 200px;
  }
  .project-writeup h3{
      margin-top: 40px;
  }
  .project-writeup p{
      padding-bottom: 40px;
  }
  #contact{
      margin-top: -30px;
  }
  #contact p{
      width: 70%;
      text-align: center;
      margin: 10px auto;
  }
  #form-zone{
      margin-top: 30px;
  }

  #form{
      width: 70%;
  }
  input, textarea{
      width: 60%;
  }
  #sub-footer{
     display: flex;
     flex-direction: column;
     padding-left: 10px;
  }
  #left-footer p{
      width: 60%;
  }
}

  /*** Medium sized phones ***/

@media screen and (min-width: 425px) and (max-width: 787px) {
  
  .home-socials{
      display: none;
  }
  #home{
      margin-top: 50px;
      padding-top: 40px;
  }
  #home-writeup{
      margin-top: -5px auto;
      width: 90%;
  }
  #buttons{
      display: flex;
      flex-direction: column;
      margin-top: 10px;
  }
  #buttons a{
      margin-top: 10px;
  }

  /* about me */
  .about{
    background: #3498db;
    
  }

 #about > p {
    width: 85%;
  }
  
  #more {
    width: 90%;
  }
  
  /* #skills {
    max-width: 380px;
  } */
    #skills {
    max-width: 320px;
    gap: 10px;
  }
  
  .skills {
    font-size: 11px;
    padding: 8px 0px;
  }
}
  
  /* #hero{
    min-height: 70vh
  } */
  #projects p{
      width: 70%;
      margin: 15px auto;
  }
  .my-projects{
      margin-top: 20px;
  }
  .project-img{
      width: 100%;
      height: auto;
  }

  /* .project-card{
      padding: 10px 210px 10px 10px;
      margin-left: -15px;
  } */

  #hero {
    min-height: 50vh;
  }
  
  /* .project-card {
    max-width: 320px;
    height: 180px;
  } */
  .project-writeup p{
      text-align: left;
      padding-bottom: 20px;
  }
  #left-footer p{
      width: 70%;
  }
  #last-footer p{
      width: 75%;
      margin: auto;
  }


/**** Small-sized phones ****/

@media screen and (min-width: 320px) and (max-width: 424px) {
  .home-socials{
      display: none;
  }
  #home{
      margin-top: 50px;
      padding-top: 40px;
  }
  #home-writeup{
      margin-top: -5px auto;
      width: 90%;
  }
  #buttons{
      display: flex;
      flex-direction: column;
  }
  #buttons a{
      margin-top: 10px;
  }
  #about p{
      width: 70%;
      margin: 15px auto;
  }
  #more p{
      width: 85%;
      padding-bottom: 20px;
  }
  #me a{
      margin-left: 20px;
  }

  /* skills */
  #skills {
    max-width: 320px;
    gap: 10px;
  }
  
  .skills {
    font-size: 11px;
    padding: 8px 0px;
  }
  #projects p{
      width: 70%;
      margin: 15px auto;
  }
  .my-projects{
      margin-top: 20px;
  }
  .project-img{
      width: 220px;
      height: 120px;
  }
  .project-card{
      padding:  10px 0px;
      margin-left: -15px;  
  }
  .project-writeup p{
      text-align: left;
      padding-bottom: 20px;
  }
  #left-footer p{
      width: 70%;
  }
  #last-footer p{
      width: 75%;
      margin: auto;
  }
}

/*** Extra small screen mobile devices ***/

@media screen and (max-width: 320px) {
  .home-socials{
      display: none;
  }
  #home{
      margin-top: 50px;
      padding-top: 40px;
  }
  #home-writeup{
      margin-top: -5px auto;
      width: 90%;
  }
  #buttons{
      display: flex;
      flex-direction: column;
  }
  #buttons a{
      margin-top: 10px;
  }
  #about p{
      width: 70%;
      margin: 15px auto;
  }
  #more p{
      width: 85%;
      padding-bottom: 20px;
  }
  #me a{
      margin-left: 20px;
  }
  #skills{
      width: 80%;
  }
  #projects p{
      width: 70%;
      margin: 15px auto;
  }
  .my-projects{
      margin-top: 20px;
  }
  .project-img{
      width: 170px;
      height: 120px;
  }
  .project-card{
      padding: 10px 20px 10px 10px;
      margin-left: -15px;   
  }
  .project-writeup p{
      text-align: left;
      padding-bottom: 20px;
  }
  #left-footer p{
      width: 70%;
  }
  #last-footer p{
      width: 75%;
      margin: auto;
  }
}

/****** 2026 upgrade: new sections in the original style ******/

.skip-link{
  position: absolute;
  left: 10px;
  top: -60px;
  z-index: 5;
  padding: 10px 15px;
  background: rgb(16, 16, 65);
  color: rgb(227, 223, 223);
  border-radius: 20px;
  font-family: Geneva;
  font-weight: bold;
}
.skip-link:focus{
  top: 60px;
}
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{
  outline: 3px solid #3498db;
  outline-offset: 2px;
}
#home-title{
  margin-top: -15px;
  margin-bottom: 20px;
  font-weight: bold;
  color: rgb(16, 16, 65);
}
#skills{
  list-style: none;
  margin: 0;
}
.learning{
  margin-top: 20px;
  font-size: 14px;
  text-align: center;
}

/* experience */
#experience{
  padding: 30px 20px 40px;
  text-align: center;
  background: white;
}
.timeline{
  max-width: 900px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  text-align: left;
  border-left: 3px solid rgb(16, 16, 65);
}
.job{
  position: relative;
  margin: 0 0 25px 25px;
  padding: 18px 22px;
  background: whitesmoke;
  border-radius: 11px;
  box-shadow: 0 6px 12px rgba(139, 142, 175, 0.35);
}
.job::before{
  content: "";
  position: absolute;
  left: -34px;
  top: 24px;
  width: 13px;
  height: 13px;
  background: #393b64;
  border: 3px solid white;
  border-radius: 50%;
}
.job-head{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 5px 20px;
}
.job h3{
  margin: 0 0 10px;
  font-size: 18px;
}
.job-date{
  font-family: Geneva, Verdana, sans-serif;
  font-size: 14px;
  font-weight: bold;
  color: #393b64;
  white-space: nowrap;
}
.job p{
  margin: 0;
  line-height: 1.6;
}

/* project details */
.project-label{
  display: inline-block;
  margin-bottom: 8px;
  font-family: Geneva, Verdana, sans-serif;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #393b64;
}
.project-writeup h3{
  margin-top: 0;
  margin-bottom: 15px;
}
.project-writeup p{
  line-height: 1.6;
  margin-bottom: 15px;
}
.tech{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 25px;
  padding: 0;
  list-style: none;
}
.tech li{
  padding: 5px 12px;
  background: #393b64;
  color: white;
  border-radius: 12px;
  font-family: 'Lucida Sans', 'Lucida Grande', Geneva, Verdana, sans-serif;
  font-size: 12px;
  font-weight: bold;
}
.project-writeup .case-study{
  display: inline-block;
}

/* contributions */
#contributions{
  padding: 30px 20px 40px;
  text-align: center;
  background: whitesmoke;
}
.pr-grid{
  max-width: 1100px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  text-align: left;
}
.pr-card{
  display: flex;
  flex-direction: column;
  padding: 20px;
  background: white;
  border-radius: 11px;
  box-shadow: 0 6px 12px rgba(139, 142, 175, 0.35);
  transition: transform 0.3s ease;
}
.pr-card:hover{
  transform: translateY(-3px);
}
.pr-kind{
  font-family: Geneva, Verdana, sans-serif;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #393b64;
}
.pr-card h3{
  margin: 10px 0;
  font-size: 16px;
  line-height: 1.4;
}
.pr-card p{
  margin: 0 0 18px;
  font-size: 14px;
}
.pr-link{
  margin-top: auto;
  align-self: flex-start;
  padding: 8px 14px;
  background: rgb(16, 16, 65);
  color: rgb(227, 223, 223);
  border-radius: 20px;
  font-family: Geneva;
  font-size: 13px;
  font-weight: bold;
  text-decoration: none;
}
.pr-link:hover{
  background: transparent;
  color: rgb(16, 16, 65);
  box-shadow: inset 0 0 0 1px grey;
}
.pr-note{
  max-width: 800px;
  margin: 30px auto 0;
  line-height: 1.6;
}
.contact-email{
  color: rgb(16, 16, 65);
  font-weight: bold;
}

@media screen and (max-width: 900px) {
  .pr-grid{
    grid-template-columns: 1fr 1fr;
  }
}
@media screen and (max-width: 768px) {
  .nav{
    visibility: hidden;
  }
  .nav.show{
    visibility: visible;
  }
  .pr-grid{
    grid-template-columns: 1fr;
  }
  #experience > p, #contributions > p{
    width: 85%;
    margin-left: auto;
    margin-right: auto;
  }
  .timeline{
    margin-left: 15px;
  }
  .job{
    margin-left: 18px;
    padding: 15px;
  }
  .job::before{
    left: -27px;
  }
  .job p, .pr-card p{
    width: auto;
  }
  .project-img{
    max-width: 100%;
    object-fit: cover;
  }
  .project-label{
    margin-top: 35px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html{
    scroll-behavior: auto;
  }
  .js-scroll, .scrolled.fade-in, .scrolled.slide-left{
    animation: none;
    opacity: 1;
  }
}

/* product contributions */
#contributions{
  padding-bottom: 10px;
}
.product-work{
  background: whitesmoke;
  padding: 1px 0;
}
.pr-zone{
  padding: 10px 20px 40px;
  text-align: center;
  background: whitesmoke;
}
.pr-heading{
  margin: 10px 0 25px;
}
.product-work .project-writeup p b{
  color: rgb(16, 16, 65);
}
@media screen and (max-width: 768px) {
  .pr-zone .pr-note{
    width: 85%;
  }
}

/* layout polish */
.pr-zone .pr-heading{
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.project-writeup .tech + .case-study{
  margin-top: 5px;
}
@media screen and (min-width: 769px) and (max-width: 1100px) {
  .nav{
    gap: 18px;
  }
  .nav .nav-key{
    margin-right: 18px;
  }
  .my-projects{
    margin: 40px 30px;
    gap: 30px;
  }
  .project-card{
    max-width: 360px;
  }
}
@media screen and (max-width: 768px) {
  .my-projects{
    margin: 40px 20px;
    align-items: center;
  }
  .project-writeup{
    width: 100%;
    max-width: 560px;
  }
  .tech li{
    font-size: 11px;
  }
}
.my-projects .project-card{
  align-self: center;
}
.my-projects .project-img{
  align-self: center;
}
@media screen and (max-width: 768px) {
  .my-projects .project-writeup p{
    padding-bottom: 0;
    margin-bottom: 15px;
  }
  .my-projects .project-writeup .tech{
    margin-top: 5px;
  }
}

/* certifications */
.cert-badge{
  display: inline-block;
  margin: -4px 0 10px;
  padding: 4px 12px;
  background: rgb(16, 16, 65);
  color: rgb(227, 223, 223);
  border-radius: 12px;
  font-family: Geneva, Verdana, sans-serif;
  font-size: 12px;
  font-weight: bold;
}
.cert-heading{
  margin: 30px 0 12px 12px;
  text-align: left;
}
.certs{
  margin: 0;
  padding: 0 0 0 12px;
  list-style: none;
  text-align: left;
}
.certs li{
  padding: 8px 0 8px 14px;
  border-left: 3px solid #393b64;
  margin-bottom: 8px;
  font-family: 'Lucida Sans', 'Lucida Grande', Geneva, Verdana, sans-serif;
  font-size: 14px;
  color: rgb(49, 46, 46);
}
@media screen and (max-width: 768px) {
  .cert-heading{
    text-align: center;
    margin-left: 0;
  }
  .certs{
    max-width: 350px;
    margin: 0 auto;
    padding: 0;
  }
}
