@import url('https://fonts.googleapis.com/css2?family=Barlow+Semi+Condensed:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');


*{
    margin: 0;
    padding: 0;
}

body{
    font-family: "Barlow Semi Condensed", serif;
    font-weight: 500;
    font-style: normal;
}

p{
    animation: fadeTyping 2s steps(30, end) none;
}

html{
    scroll-behavior: smooth;
}

a,.btn{
    transition: all 100ms ease;
}

nav,.nav-links{
    display: flex;
}

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

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

a{
    color: black;
    text-decoration: none;
   
}

a:hover{
    color:gray;
    text-decoration: underline;
    text-underline-offset: 1rem;
    text-decoration-color: rgb(181,181,181);
}

.logo{
    font-size: 2.5rem;
    font-weight: 500;
}

.logo:hover{
    color:brown;
    font-weight: 600;
    cursor: default;
}

#hamburger-nav{
    display: none;
}

.hamburger-menu{
    position: relative;
    display: inline;
}

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

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

.menu-links{
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    width: fit-content;
    max-height: 0;
    overflow: hidden;
    transition: all 200ms ease-in-out;
}

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

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

.menu-links.open{
    margin-top: 30%;
    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);
}

/* SECTION */

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

.section-pic{
    border-radius: 0.75rem;
}

.section-container{
    display: flex;
}

/* Profile */

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

.section_pic-container{
    display: flex;
    height: 300px;
    width: 300px;
    margin-top: 7rem;
    margin-right: 3rem;
    opacity: 0;
    animation: waveTyping 2.5s ease-in-out forwards;
}

@keyframes waveTyping {
    from {
      opacity: 0;
      transform: translateY(10px); /* Starts slightly lower */
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

.section_text{
    margin-top: 7rem;
    align-items: center;
    text-align: center;
    margin-right: 3rem;
}

.section_text p{
  font-weight: 600;
}

h1{  
    margin-left: 0.5rem;
    
    animation: fadeTyping 2s steps(30, end) none; 
}

.section_text_p1{
    font-size: 1.75rem;
    margin-bottom: 1rem;
    margin-top: 0.75rem;
    animation: fadeTyping 2s steps(30, end) none;
}

@keyframes fadeTyping {
    from {
      opacity: 0;
      filter: blur(3px); /* Blurry start */
    }
    to {
      opacity: 1;
      filter: blur(0); /* Clear text */
    }
  }

.section_text_p2{
    font-size: 1.75rem;
    margin-bottom: 1rem;
    overflow: hidden; /* Hide the overflow */
  white-space: nowrap; /* Keep the text on one line */
  border-right: 0.15em solid orange; /* Blinking cursor */
  animation: typing 3.5s steps(30, end), blink-caret 0.75s step-end 3.5s;
  animation-fill-mode: forwards;
}

@keyframes typing {
    from {
      width: 0; /* Start with no width */
    }
    to {
      width: 100%; /* Expand to full width */
    }
  }

/* Blinking cursor animation */
@keyframes blink-caret {
    from,
    to {
      border-color: transparent; /* Hide the cursor */
    }
    50% {
      border-color: orange; /* Show the cursor */
    }
  }

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

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

/*Icons*/

.icon-social{
    cursor: pointer;
    height: 3rem;
    animation: dropBounce 1.5s ease-out;
    animation-fill-mode: none;
}


@keyframes dropBounce {
    0% { opacity: 0;
        transform: translateY(-50vh);
    }
    30%{
        opacity: 1;
    }
    60% { 
        transform: translateY(0px);
    }
    75% { 
        transform: translateY(-30px);
    }
    100% {  opacity: 1;
        transform: translateY(0px);
    }
}

.icon{
    cursor: pointer;
    height: 3rem;
    animation: fadeTyping 2s steps(30, end) none;
}

.icon:hover{
    transform: translateY(-5px) scale(1.1);
}
.icon-social:hover{
    
    transform: translateY(-5px) scale(1.1);
}

/*Buttons*/

.btn-container{
    display: flex;
    justify-content: center;
    gap: 1rem;
    animation: waveTyping 2.5s ease-in-out forwards;
}

.btn{
    font-weight: 500;
    transition: all 300ms ease;
    padding: 1rem;
    width: 8rem;
    border-radius: 2rem;
}

.btn-color-1, .btn-color-2{
    border: rgb(83,83,83) 0.1rem solid;
}

.btn-color-1:hover, .btn-color-2:hover{
    cursor: pointer; 
}

.btn-color-1, .btn-color-2:hover{
    background: rgb(0,0,0);
    color: white; 
}

.btn-color-1:hover{
    background:white;
    color: black;
}

.btn-color-2{
    background: none;
}

/* About */

#about{
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    animation: fadeTyping 2s steps(30, end) none;
}

.about-container{
    gap: 2rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

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

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

.about-pic{
    width: 330px;
    height: 250px;
    position: relative;
    bottom: 2rem;
    border-radius: 2rem;
}

.arrow{
    position: absolute;
    right:-5rem;
    bottom: 2.5rem;
}

.details-container{
    padding: 1.5rem;
    flex: 1;
    background:lightsteelblue;
    border-radius: 2rem;
    text-align: center;
}

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

/* Experience section*/

#experience{
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  animation: fadeTyping 2s steps(30, end) none;
}

.experience-sub-title{
    color:black;
    font-weight: 600;
    font-size: 1.75rem;
    margin-bottom: 2rem;
}

.experience-details-container{
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.article-container{
    display: flex;
    text-align: initial;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 2rem;
    justify-content: space-around;
}

article{
    display: flex;
    width: 10rem;

}

article .icon{
    cursor:default;
    margin-right: 0.5rem;
}

/* Projects section*/

#projects{
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    animation: fadeTyping 2s steps(30, end) none;
}

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

.project-img{
    border-radius: 2rem;
    width: 90%;
    height: 90%;
}

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


/*contact section*/

#contact{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 2rem;
    height: 70vh;
    animation: fadeTyping 2s steps(30, end) none;
}

.contact-info-upper-container{
    display: flex;
    justify-content: center;
    border-radius: 2rem;
    background: lightsteelblue;
    width: 35%;
    padding: 1rem;
}

.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{
 cursor: pointer;
 height: 3.8rem;  
}

/* Footer */

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

footer p{
    text-align: center;
}