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

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html{
    overflow-x: hidden;
}

body{
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    background: linear-gradient(to right, rgb(255,255,255), rgb(152, 136, 172));
}

/* Navigation */
nav{
    width: 100%;
    height: 10vh;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container{
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.logo span{
    color: rgba(99, 87, 99, 0.8);
    font-size: 2rem;
    font-weight: bold;
}

.links a{
    text-decoration: none;
    color: black;
    margin: 0 15px;
    font-weight: 500;
    position: relative;
}

.links a::before{
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -3px;
    left: 0;
    background: #9c6f99;
    transition: 0.3s;
}

.links a:hover::before{
    width: 100%;
}

.contact-btn{
    border: 2px solid white;
    border-radius: 20px;
    padding: 5px 15px;
    color: white;
    transition: 0.3s;
}

.contact-btn:hover{
    background: black;
}

/* Dropdown menu for mobile */
.hamburg, .cancel{
    display: none;
    font-size: 2rem;
    color: white;
    cursor: pointer;
}

.dropdown{
    position: absolute;
    top: 0;
    width: 100%;
    transform: translateY(-500px);
    background: rgba(0,0,0,0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: 0.3s;
}

.dropdown a{
    color: white;
    text-decoration: none;
    padding: 15px 0;
}

/* Sections */
section{
    width: 100%;
    min-height: 80vh;
    padding: 80px 10%;
}

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

.main-container{
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-wrap: wrap;
}

.main-container .image{
    width: 45%;
    max-width: 400px;
}

.main-container .image img{
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.main-container .content{
    width: 45%;
    color: black;
    min-width: 300px;
}

.content h1{
    font-size: clamp(1.5rem, 2rem + 2vw, 3rem);
    color: #000;
}

.content h1 span{
    color: #fff;
    text-shadow: 0 0 10px rgb(190, 163, 196);
}

.typewriter span::before{
    content: "Aspiring Machine Learning Engineer";
    animation: words 15s infinite;
}

@keyframes words {
    0%, 33% { content: "Aspiring Machine Learning Engineer"; }
    34%, 66% { content: "Data Scientist"; }
    67%, 100% { content: "fullstack developer"; }
}

.content p{
    font-size: 1rem;
    margin: 15px 0;
}

.social-links{
    margin: 15px 0;
}

.social-links a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 3rem;
    height: 3rem;
    margin-right: 10px;
    border: 2px solid #f8f8f8;
    border-radius: 50%;
    color: #97628c;
    transition: 0.3s;
}

.social-links a:hover{
    background: #9e71b8;
    color: white;
    transform: scale(1.2);
    box-shadow: 0 0 10px #fff;
}

.btn button{
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background: #4b3d45;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.btn button:hover{
    background: transparent;
    border: 2px solid #8a338f;
    color: #f1efec;
    box-shadow: 0 0 20px rgba(124,66,129,0.5);
}

/* Section Containers */
.section-container h2{
    text-align: center;
    font-size: 2rem;
    margin-bottom: 20px;
    color: white;
    text-shadow: 0 0 5px #83757a;
}

.section-container p, 
.section-container ul{
    text-align: center;
    font-size: 1rem;
    line-height: 1.6;
    max-width: 800px;
    margin: auto;
    color: rgba(0, 0, 0, 0.521);
}

.section-container ul{
    list-style-type: none;
}

.section-container ul li{
    margin: 10px 0;
}

/* Project Items */
.project-list{
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 20px;
}

.project-item{
    background: rgba(141, 135, 135, 0.329);
    padding: 20px;
    border-radius: 10px;
    color: rgb(27, 26, 26);
}

.project-item h3{
    margin-bottom: 10px;
}

.project-item ul{
    padding-left: 20px;
}

.project-item ul li{
    margin-bottom: 5px;
}

/* Responsive */
@media (max-width: 900px){
    .main-container{
        flex-direction: column;
    }

    .main-container .image,
    .main-container .content{
        width: 80%;
    }

    .hamburg, .cancel{
        display: block;
    }

    .nav-container .links{
        display: none;
    }
}

@media (max-width: 500px){
    .section-container h2{
        font-size: 1.5rem;
    }

    .section-container p,
    .section-container ul{
        font-size: 0.9rem;
    }
}