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

html{
    scroll-behavior: smooth;
}

body{
    background: linear-gradient(135deg, black, crimson);
    color: white;
}

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

/* NAVBAR */
.navbar{
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 9%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo{
    font-size: 28px;
    font-weight: 700;
}

.navbar ul{
    display: flex;
}

.navbar ul li{
    list-style: none;
    margin-left: 30px;
}

.navbar ul li a{
    font-size: 18px;
    transition: 0.3s;
}

.navbar ul li a:hover{
    color: crimson;
}

/* HOME */
.home{
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100vh;
    padding: 80px 9% 0;
}

.home-info{
    max-width: 600px;
    width: 100%;
    text-align: left; 
}
.home-info h1{
    font-size: 60px;
    line-height: 1.2;
    background: linear-gradient(90deg, #ffffff, #ff4d6d);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.home-info h2{
    font-size: 30px;
    margin: 10px 0 5px;
}

.home-info p{
    max-width: 500px;
    line-height: 1.7;
    color: #d1d1d1;
}

.home-info p span{
    color: #ff4d6d;
    font-weight: 500;
}

/* BUTTON + SOCIAL */
.btn-sci{
    display: flex;
    align-items: center;  
    gap: 15px;
    margin-top: 15px;
}

.btn{
    padding: 10px 25px;
    background: crimson;
    border-radius: 30px;
    box-shadow: 0 0 10px crimson;
    transition: 0.3s;
    white-space: nowrap;
}

.btn:hover{
    background: white;
    color: crimson;
}

.sci{
    display: flex;
    gap: 10px;
}

.sci a{
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid crimson;
    border-radius: 50%;
    font-size: 18px;
    transition: 0.3s;
}
.sci a:hover{
    background: white;
    color: crimson;
}

/* IMAGE */
.home-img{
    display: flex;
    justify-content: center;
    align-items: center;
}

.img-box{
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: crimson;
    padding: 5px;
    box-shadow: 0 0 40px rgba(255, 77, 109, 0.4);
}

.img-item{
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
}

.img-item img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

/* SECTIONS */
section{
    padding: 100px 9%;
    text-align: center;
}

/* ABOUT */
.about{
    display: flex;
    justify-content: center;
}

.about-container{
    max-width: 800px;
    background: rgba(255,255,255,0.05);
    padding: 40px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    text-align: center;
    transition: 0.3s;
}

.about-container:hover{
    transform: translateY(-5px);
}

.about-container h2{
    font-size: 32px;
    margin-bottom: 20px;
    color: #ffffff;
}

.about-intro{
    font-size: 18px;
    margin-bottom: 15px;
    color: #e0e0e0;
}

.about-text{
    font-size: 16px;
    line-height: 1.7;
    color: #cfcfcf;
}

.about-container span{
    color: #ff4d6d;
    font-weight: 500;
}

/* SKILLS */
.skills{
    padding: 100px 9%;
    text-align: center;
}

.skills h2{
    font-size: 32px;
    margin-bottom: 30px;
    color: white;
}

.skills-container{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

/* SKILL BOX */
.skill{
    padding: 12px 25px;
    border: 2px solid crimson;
    border-radius: 30px;
    font-size: 16px;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    transition: 0.3s;
    cursor: default;
}

.skill:hover{
    background: crimson;
    color: white;
    transform: translateY(-3px);
}
.skills{
    padding: 100px 9%;
}

/* PROJECTS */
.project-container{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.project-card{
    position: relative;
    border-radius: 15px;
    overflow: hidden;
}

.project-card img{
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: 0.4s;
}

.overlay{
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: 0.4s;
    text-align: center;
    padding: 20px;
}

.project-card:hover img{
    transform: scale(1.1);
}

.project-card:hover .overlay{
    opacity: 1;
}

.overlay h3{
    margin-bottom: 10px;
}

.overlay p{
    font-size: 14px;
    margin-bottom: 15px;
}

.overlay a{
    padding: 8px 15px;
    background: crimson;
    border-radius: 20px;
    transition: 0.3s;
}

.overlay a:hover{
    background: white;
    color: crimson;
}

/* FOOTER */
.footer{
    background: #0f0c29;
    padding: 60px 9%;
    text-align: center;
}

.footer-content h2{
    font-size: 28px;
    margin-bottom: 10px;
}

.footer-content p{
    margin: 10px 0;
}

.footer-sci{
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.footer-sci a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    border: 2px solid crimson;
    border-radius: 50%;
    transition: 0.3s;
}

.footer-sci a:hover{
    background: white;
    color: crimson;
}

.footer .copyright{
    margin-top: 20px;
    font-size: 14px;
    opacity: 0.7;
}

/* RESPONSIVE */
@media (max-width: 768px){

    .home{
        flex-direction: column;
        text-align: center;
        height: auto;
        padding-top: 120px;
    }

    .home-info{
        max-width: 100%;
    }

    .home-info h1{
        font-size: 40px;
        white-space: normal;
    }

    .home-info p{
        max-width: 100%;
    }

    .img-box{
        width: 200px;
        height: 200px;
        margin-top: 20px;
    }

    .navbar{
        flex-direction: column;
        gap: 10px;
    }

    .navbar ul{
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .navbar ul li{
        margin: 0;
    }

    .project-container{
        grid-template-columns: 1fr;
    }

    .btn-sci{
        flex-direction: column;
        gap: 15px;
    }

    .about-container{
        padding: 25px;
    }
}