/* General */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;300;400;500;600&display=swap');

*{
    margin:0;
    padding:0;
}

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

html{
    scroll-behavior: smooth;
}

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

/* Transition */

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

/* Desktop Navigation */

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;
    text-decoration-color:white;
}
#projects a:hover{
    color:#630ae8;
    text-decoration:underline;
    text-underline-offset: 0.5rem;
    text-decoration-color: #630ae8;
}

#desktop-nav a:hover{
    color:#053557;
    text-decoration:underline;
    text-underline-offset: 1rem;
    text-decoration-color: #053557;
}
.logo{
    font-size: 2rem;
}
.logo:hover{
    cursor: default;
}

/* Hamburger Menu */

#hamburger-nav{
    display:none;
}

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

}
.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: white;
    width:fit-content;
    max-height: 0;
    overflow:hidden;
    transition: all 0.3 ease-in-out;
}

.menu-links a{
    display: block;
    padding:10px;
    text-align: center;
    font-size: 1.5rem;
    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;
}

/* Sections */
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;
    padding-top:5%;
    /* margin: auto auto; */
}

.section-pic-container{
    display: flex;
    height:400px;
    width:400px;
    align-self: center;
    text-align: center;
    justify-content: center;
    flex: 1;
    margin: 0 auto;
}

.section-text{
    align-self: center;
    text-align: center;
    justify-content: center;
}
.section-text p{
    font-weight:600;
}
.section-text-p1{
    text-align: center;
}
.section-text-p2{
    font-size:1.75rem;
    margin-bottom:1rem;
    text-align: center;
}
.title{
    font-size: 3rem;
    text-align: center;
}
#socials-container{
    display:flex;
    justify-content: center;
    margin-top:1rem;
    gap:1rem;
}

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

/* Buttons */

.btn-container{
    display: flex;
    justify-content: center;
    gap:1rem;
}

.btn{
    font-weight: 600;
    transition: all 300ms ease;
    padding: 1rem;
    width:8rem;
    border-radius: 2rem;
}
.btn-color-1, .btn-color-2{
    border:black 0.1rem solid;

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

}
.btn-color-1:hover{
    background:white;
    color:black;
}
.btn-color-2{
    background:white;
}
.btn-container{
    gap:1rem;
}

.animated-text{
    font-size: 1.8rem; 
    /* font-size: 34px; */
    font-weight: 600;
    max-width: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* margin-left:0px;
    margin-right:0px; */
    margin: 0 auto;
    white-space: nowrap;
}

.animated-text span{
    position: relative;
}

.animated-text span::before{
    content: "Programmer";
    color: #09d95f;
    animation: words 20s infinite;
}

.animated-text span::after{
    content: "";
    position: absolute;
    width: calc(100% + 8px);
    height: 100%;
    background-color: white;
    border-left: 2px solid #09d95f;
    right: -8px;
    animation: cursor .8s infinite, typing 20s steps(14) infinite;
}

@keyframes cursor {
    to{
        border-left: 2px solid #ff7f5000;
    }
}

@keyframes words {
    0%,20%{
        content: "a Problem Solver";
    }
    21%,40%{
        content: "a Troubleshooter";
    }
    41%,60%{
        content: "a Programmer";
    }
    61%,80%{
        content: "in fact, also...";
    }
    81%,100%{
        content: "an Electrical and Electronic Engineer!";
    }
}

@keyframes typing {
    10%,15%,30%,35%,50%,55%,70%,75%,90%,95%{
        width: 0;
    }
    5%,20%,25%,40%,45%,60%,65%,80%,85%{
        width: calc(100% + 8px);
    }
}

.section {
    padding: 80px 20px;
    text-align: center;
    border-bottom: 1px solid #ccc;
    max-width: 1000px;
    margin: 0 auto;
}

.section h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
}

/* Reusable item layout */
.experience-item, .project-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 60px;
    gap: 40px;
    flex-wrap: wrap;
}

.experience-item img, .project-item img {
    width: 300px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.experience-item .text, .project-item .text {
    flex: 1;
    text-align: left;
}

.reverse {
    flex-direction: row-reverse;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .experience-item, .project-item {
        flex-direction: column !important;
        text-align: center;
    }

    .experience-item .text, .project-item .text {
        text-align: center;
    }

    .experience-item img, .project-item img {
        width: 80%;
        margin: 0 auto;
    }
}
.profile-section {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  padding: 0 0;
  /* margin-right:10px; */

}

.section-pic-container img {
  /* object-fit: contain; */
  width: 100%;
  height: auto;
  border-radius: 50%; /* optional for round image */
  object-fit: contain;
}

#socials-container {
  margin-top: 20px;
}

.icon {
  width: 40px;
  margin-right: 15px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.icon:hover {
  transform: scale(1.1);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .profile-section {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .section-text {
    text-align: center;
  }
}

#about{
    height: 46px;
}
#experience{
    height: 46px;
}
#projects .text {
    font-size: 1.1rem;
}
#experience .text {
    font-size: 1.1rem;
}
#about .text {
    font-size: 1.3rem;
}