/* general */
@import url('https://fonts.googleapis.com/css2?family=Ubuntu+Sans:ital,wght@0,100..800;1,100..800&display=swap');

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

body{
    font-family: "Ubuntu Sans", sans-serif;
}

html{
    scroll-behavior: smooth;
}

p {
  color: rgb(85, 85, 85);
}

/* transition */
a,
.btn {
  transition: all 300ms ease;
}

/* desktop nav */
nav, .navlinks{
    display: flex;
}

nav{
    justify-content: space-around;
    align-items: center;
    height: 17vh;
}

.navlinks{
    gap: 2rem;
    list-style: none;
    font-size: 1.5rem;
}

.nav{
    color: black;
    text-decoration: none;
    text-decoration-color: white;
}

/* .nav:hover{
    color: rgb(128, 128, 128);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); 
    transition: text-shadow 0.3s ease-in-out;
    text-decoration: underline;
    text-underline-offset: 0.5rem;
    text-decoration-color: rgb(128, 128, 128);
    transition: text-decoration 0.3s ease-in-out;
} */

.nav:hover {
    color: rgb(128, 128, 128);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); 
    transition: text-shadow 0.3s ease-in-out;
}

.nav::before {
    content: "";
    position: relative;
    display: block;
    width: 100%;
    height: 2px;
    bottom: -35px;
    left: 0;
    background-color: rgb(128, 128, 128);
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav:hover::before {
    transform: scaleX(1);
}

.logo{
    font-size: 2rem;
}

.logo:hover{
    cursor: default;
}

/* hamburger nav */
#hamburger-nav{
    display: none;
}

.hamburger-icon{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 24px;
    width: 30px;
    cursor: pointer;
}

.hamburger-icon span{
    width: 100%;
    height: 2px;
    background-color: black;
    transition: all 0.3 ease-in-out;
}

.menu-links{
    position: absolute;
    /* top: 100%; */
    right: 0;
    background-color: #fff;
    width: -webkit-fill-available;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3 ease-in-out;
}

.menu-links a{
    display: block;
    padding: 10px;
    text-align: center;
    font-size: 1rem;
    color: black;
    text-decoration: none;
    transition: all 0.3 ease-in-out;
}

.menu-links li{
    list-style: none;
}

.menu-links.open{
    max-height: 300px;
}

.hamburger-icon.open span:first-child {
    transform: rotate(45deg) translate(10px, 5px);
}
  
.hamburger-icon.open span:nth-child(2) {
    opacity: 0;
}
  
.hamburger-icon.open span:last-child {
    transform: rotate(-45deg) translate(10px, -5px);
}
  
.hamburger-icon span:first-child {
    transform: none;
}
  
.hamburger-icon span:first-child {
    opacity: 1;
}
  
.hamburger-icon span:first-child {
    transform: none;
}


/* section */
section {
  padding-top: 4vh;
  height: 96vh;
  margin: 0 10rem;
  box-sizing: border-box;
  min-height: fit-content;
}

.section-container {
  display: flex;
}

/* profile */
#profile{
    display: flex;
    justify-content: center;
    gap: 5rem;
    height: 80vh;
}

.profile-pic{
    border-radius: 50%;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.7);
}

.section-pic-profile{
    display: flex;
    height: 22rem;
    margin: auto 0;
}

.section-pic{
    display: flex;
    height: 400px;
    width: 400px;
    margin: auto 0;
}

.section-text{
    align-self: center;
    text-align: center;
}

.section-text p{
    font-weight: 600;
}

.section-text-p1{
    text-align: center;
    color: rgb(53, 53, 53);
}

.section-text-p2{
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: rgb(53, 53, 53);
}

.title{
    font-size: 3rem;
    text-align: center;    
}

#socials-container {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    gap: 1rem;
}

/* icon */
.icon{
    cursor: pointer;
    height: 2rem;
}

/* button */
.btn-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
}
  
.btn {
    font-weight: 600;
    transition: all 300ms ease;
    padding: 1rem;
    width: 10rem;
    border-radius: 2rem;
}
  
.btn-color-1,
.btn-color-2 {
    border: rgb(53, 53, 53) 0.1rem    solid;
    box-shadow: 0 0 0 transparent;
}
  
.btn-color-1:hover,
.btn-color-2:hover {
    cursor: pointer;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.7);
}
  
.btn-color-1,
.btn-color-2:hover {
    background: rgb(53, 53, 53);
    color: white;
}
  
.btn-color-1:hover {
    background: rgb(0, 0, 0);
    /* font-size: medium; */
    /* transition: font-size 0.3 ease-in-out; */
}
  
.btn-color-2 {
    background: none;
}
  
.btn-color-2:hover {
    border: rgb(53, 53, 53) 0.1rem solid;
    /* font-size: medium; */
    /* transition: font-size 0.3 ease-in-out; */
}

.profile-icon{
    height: 1.5rem;
    vertical-align: middle;
}

.profile-icon-0{
    height: 1.5rem;
    vertical-align: middle;
}

.profile-icon-0:hover{
    filter: invert();
    transition: all 300ms ease;
}

.btn-color-2:hover .profile-icon-0{
    filter: invert();
}
  
.btn-container {
    gap: 1rem;
}

/* about */
#about{
    position: relative;
}

.about{
    text-align: justify;
    line-height: 1.4;
}

.about-me-containers{
   gap: 2rem; 
   margin-bottom: 2rem;
   margin-top: 2rem;
   display: flex;
   flex-wrap: row-wrap;
   justify-content: space-between;
}

.about-containers{
   gap: 2rem; 
   margin-bottom: 2rem;
   margin-top: 2rem;
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
   justify-content: space-between;
}

.about-details-container{
    justify-content: center;
    flex-direction: column;
    line-height: 1.3;
}

.about-details-container{
    display: flex;
}

/* .about-containers{
    display: flex;
    flex-wrap: row-wrap;
    justify-content: space-between;
} */

.about-pic{
    border-radius: 2rem;
}

.details-container{
    padding: 1.5rem;
    flex: 1;
    background: white;
    border-radius: 2rem;
    border: rgb(53, 53, 53) 0.1rem solid;
    border-color: rgb(163, 163, 163);
    text-align: center;
}

.section-container{
    gap: 4rem;
    height: 80%;
}

.section-pic{
    height: 400px;
    width: 400px;
    margin: auto 0;
}

/* education */
.education-containers{
    gap: 2rem; 
    margin-bottom: 2rem;
    margin-top: 2rem;
}
 
.education-containers{
     display: flex;
}

/* skills */
#skills {
    position: relative;
}
  
.skills-sub-title {
    color: rgb(53, 53, 53);
    font-weight: 600;
    font-size: 1.75rem;
    margin-bottom: 2rem;
}
  
.skills-details-container {
    display: flex;
    justify-content: center;
    flex-direction: column;
}
  
.article-container {
    display: flex;
    text-align: initial;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 2.5rem;
    justify-content: space-around;
}
  
article {
    display: flex;
    width: 10rem;
    justify-content: space-around;
    gap: 0.5rem;
}
  
article .icon {
    cursor: default;
}

#projects{
    position: relative;
}

.color-container{
    border-color: rgb(163, 163, 163);
    background: rgb(255, 255, 255);
}

.color-container:hover{
    box-shadow: 0 0 25px rgb(163, 163, 163);
    transition: all 300ms ease-in-out;
}

.project-title{
    margin: 1rem;
    color: #000;
}

.descrip {
    text-align: left;
    line-height: 1.4;
}

.project-btn {
    color: #000;
    border-color: rgb(163, 163, 163);
}

/* contact */
#contact {
    display: flex;
    justify-content: center;
    flex-direction: column;
    height: 70vh;
}
  
.contact-info-upper-container {
    display: flex;
    justify-content: center;
    border-radius: 2rem;
    border: rgb(53, 53, 53) 0.1rem solid;
    border-color: rgb(163, 163, 163);
    background: (250, 250, 250);
    margin: 2rem auto;
    padding: 0.5rem;
}
  
.contact-info-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem;
}
  
.contact-info-container p {
    font-size: larger;
}
  
.contact-icon {
    cursor: default;
}
  
.email-icon {
    height: 2.5rem;
}

.contact-link{
    color: black;
    text-decoration: none;
    text-decoration-color: white;
}

.contact-link:hover{
    color: grey;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); 
    text-decoration-color: rgb(181, 181, 181);
    transition: all 0.3 ease-in-out;
}

/* footer */
footer{
    height: 26vh;
    margin: 0 1rem;
}

footer p{
    text-align: center;
}

/* scrollbar */
body {
    --sb-track-color: #ffffff;
    --sb-thumb-color: rgb(163,163,163);
    --sb-size: 12px;
}
  
body::-webkit-scrollbar {
    width: var(--sb-size)
}
  
body::-webkit-scrollbar-track {
    background: var(--sb-track-color);
    border-radius: 13px;
}
  
body::-webkit-scrollbar-thumb {
    background: var(--sb-thumb-color);
    border-radius: 13px;
}
  
@supports not selector(::-webkit-scrollbar) {
    body {
      scrollbar-color: var(--sb-thumb-color)
                       var(--sb-track-color);
    }
}

#elementid {
    scrollbar-color: rgb(53,53,53) #fff;
    scrollbar-width: thin;
}

/* scroll to top */
.scrollTop{
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 10px 15px;
    background-color: #f7f7f7;
    color: #fff;
    border-radius: 10px;
    /* border: 1px solid rgb(163, 163, 163); */
    cursor: pointer;
    transition: all 0.5s ease 0s;
}

.scrollTop:hover{
    background-color: rgb(53, 53, 53);
    /* color: rgb(53, 53, 53); */
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.7);
    /* text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); */
}

.icon-top{
    cursor: pointer;
    height: 1rem;
}

/* timeline */
.hexa{
    border: 0px;
    float: left;
    text-align: center;
    height: 35px;
    width: 60px;
    font-size: 22px;
    background: #f0f0f0;
    color: #3c3c3c;
    position: relative;
    margin-top: 15px;
  }
  
  .hexa:before{
    content: ""; 
    position: absolute; 
    left: 0; 
    width: 0; 
    height: 0;
    border-bottom: 15px solid #f0f0f0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    top: -15px;
  }
  
  .hexa:after{
    content: ""; 
    position: absolute; 
    left: 0; 
    width: 0; 
    height: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-top: 15px solid #f0f0f0;
    bottom: -15px;
  }
  
  .timeline {
    position: relative;
    padding: 0;
    width: 100%;
    margin-top: 20px;
    list-style-type: none;
  }
  
  .timeline:before {
    position: absolute;
    left: 50%;
    top: 0;
    content: ' ';
    display: block;
    width: 2px;
    height: 100%;
    margin-left: -1px;
    background: rgb(213,213,213);
    background: -moz-linear-gradient(top, rgba(213,213,213,0) 0%, rgb(213,213,213) 8%, rgb(213,213,213) 92%, rgba(213,213,213,0) 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(30,87,153,1)), color-stop(100%,rgba(125,185,232,1)));
    background: -webkit-linear-gradient(top, rgba(213,213,213,0) 0%, rgb(213,213,213) 8%, rgb(213,213,213) 92%, rgba(213,213,213,0) 100%);
    background: -o-linear-gradient(top, rgba(213,213,213,0) 0%, rgb(213,213,213) 8%, rgb(213,213,213) 92%, rgba(213,213,213,0) 100%);
    background: -ms-linear-gradient(top, rgba(213,213,213,0) 0%, rgb(213,213,213) 8%, rgb(213,213,213) 92%, rgba(213,213,213,0) 100%);
    background: linear-gradient(to bottom, rgba(213,213,213,0) 0%, rgb(213,213,213) 8%, rgb(213,213,213) 92%, rgba(213,213,213,0) 100%);
    z-index: 5;
  }
  
  .timeline li {
    padding: 2em 0;
  }
  
  .timeline .hexa{
    width: 16px;
    height: 10px;
    position: absolute;
    background: rgb(53, 53, 53);
    z-index: 5;
    left: 0;
    right: 0;
    margin-left:auto;
    margin-right:auto;
    top: -30px;
    margin-top: 0;
  }
  
  .timeline .hexa:before {
    border-bottom: 4px solid rgb(53, 53, 53);
    border-left-width: 8px;
    border-right-width: 8px;
    top: -4px;
  }
  
  .timeline .hexa:after {
    border-left-width: 8px;
    border-right-width: 8px;
    border-top: 4px solid rgb(53, 53, 53);
    bottom: -4px;
  }
  
  .direction-l,
  .direction-r {
    float: none;
    width: 100%;
    text-align: center;
  }
  
  .flag-wrapper {
    text-align: center;
    position: relative;
  }
  
  .flag {
    position: relative;
    display: inline;
    background: rgb(255,255,255);
    font-weight: 600;
    z-index: 15;
    padding: 6px 10px;
    text-align: left;
    border-radius: 5px;
  }
  
  .direction-l .flag:after,
  .direction-r .flag:after {
    content: "";
    position: absolute;
    left: 50%;
    top: -15px;
    height: 0;
    width: 0;
    margin-left: -8px;
    border: solid transparent;
    border-bottom-color: rgb(255,255,255);
    border-width: 8px;
    pointer-events: none;
  }
  
  .direction-l .flag {
    -webkit-box-shadow: -1px 1px 1px rgba(0,0,0,0.15), 0 0 1px rgba(0,0,0,0.15);
    -moz-box-shadow: -1px 1px 1px rgba(0,0,0,0.15), 0 0 1px rgba(0,0,0,0.15);
    box-shadow: -1px 1px 1px rgba(0,0,0,0.15), 0 0 1px rgba(0,0,0,0.15);
  }
  
  .direction-r .flag {
    -webkit-box-shadow: 1px 1px 1px rgba(0,0,0,0.15), 0 0 1px rgba(0,0,0,0.15);
    -moz-box-shadow: 1px 1px 1px rgba(0,0,0,0.15), 0 0 1px rgba(0,0,0,0.15);
    box-shadow: 1px 1px 1px rgba(0,0,0,0.15), 0 0 1px rgba(0,0,0,0.15);
  }
  
  .time-wrapper {
    display: block;
    position: relative;
    margin: 4px 0 0 0;
    z-index: 14;
    line-height: 1em;
    vertical-align: middle;
    color: #fff;
  }
  
  .direction-l .time-wrapper {
    float: none;
  }
  
  .direction-r .time-wrapper {
    float: none;
  }
  
  .time {
    background: rgb(53, 53, 53);
    display: inline-block;
    padding: 8px;
  }
  
  .desc {
    position: relative;
    margin: 1em 0 0 0;
    padding: 1em;
    background: rgb(254, 254, 254);
    -webkit-box-shadow: 0 0 1px rgba(0,0,0,0.20);
    -moz-box-shadow: 0 0 1px rgba(0,0,0,0.20);
    box-shadow: 0 0 1px rgba(0,0,0,0.20);
    z-index: 15;
  }
  
  .direction-l .desc,
  .direction-r .desc {
    position: relative;
    margin: 1em 1em 0 1em;
    padding: 1em;
    z-index: 15;
  }
  
  .desc-text{
    color: rgb(85, 85, 85);
    line-height: 1.4;
  }
  
  .cont-icon:hover{
      cursor: pointer;
      height: 1.9rem;
      border-radius: 50%;
      box-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
      transition: box-shadow 0.5 ease-in-out;
    }
    
/* skills */
h2 { text-align: center }

.skill-ul {
  width: min(60rem, 90%);
  margin-inline: auto;

  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;

  list-style: none;
  counter-reset: stepnr;
}

.skill-ul .skill-li {
  counter-increment: stepnr;
  width: 12rem;
  --borderS: 2rem;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: calc(var(--borderS) + 2rem);
  position: relative;
}
.skill-ul .skill-li::before,
.skill-ul .skill-li::after {
  inset: 0;
  position: absolute;
  border-radius: 2rem;
  border: var(--borderS) solid var(--bgColor);
  line-height: 1.1;
}
.skill-ul .skill-li::before {
  content: counter(stepnr);
  color: var(--accent-color);
  padding-left: 10rem;
  font-size: 12rem;
  font-weight: 700;
  overflow: hidden;
}

.skill-ul .skill-li::after {
  content: "";
  filter: drop-shadow(-0.25rem 0.25rem 0.0675rem rgba(0, 0, 0, 0.75)) blur(5px);
}

.skill-ul .skill-li > * { width: 7.5rem }
.skill-ul .skill-li .skill-icon { font-size: 1.5rem; color: var(--accent-color)}
.skill-ul .skill-li .skill-title { font-size: 1rem; font-weight: 500; color: rgb(53, 53, 53); }
.skill-ul .skill-li .skill-descr { font-size: 0.8rem; font-weight: 300; color: rgb(85, 85, 85); }

.skill-body {
    --color: rgba(53, 53, 53);
    --bgColor: rgb(255, 255, 255);
    min-height: 100vh;
    display: grid;
    align-content: center;
    gap: 2rem;
    padding: 2rem;
    color: var(--color);
    background: var(--bgColor);
  }