*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
    scroll-behavior: smooth;
    font-family: 'Times New Roman';
}

body{
    min-height: 100vh;
    background: linear-gradient(
        155deg,
        #000000,
        #2e3546,
        #010411,
        #060c14);
}

nav{
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    background-color: transparent black;
    backdrop-filter: blur(15px);
    z-index: 1000;
}

ul{
    display: flex;
    align-items: flex-end;
    gap: 15px;
    margin-left: 100px;
}

nav ul a{
    color: white;
    opacity: 0.7;
    transition: 0.2s ease-in-out;
}

nav ul a:hover{
    opacity: 1;
}

#menu-icon{
    color: white;
    font-size: 25px;
    margin-right: 30px;
    display: none;
}

.logo{
    font-size: 2em;
    color: darkcyan;
    font-weight: 800;
    opacity: 0.8;
    scroll-behavior: smooth;
    transition: 0.2s ease-in-out;
    
}

.logo:hover{
    opacity: 1;
}

nav a{
    opacity: 0.8;
    scroll-behavior: smooth;
    transition: 0.5s ease-in-out;
}

span{
    background: linear-gradient(to right, rgb(241, 233, 233),
    rgb(5, 224, 224));
    background-clip: text;
    color: transparent;
}

section{
    min-height: 100vh;
    padding: 5% 15%;
}

#home{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: white;
}

#home img{
    width: 300px;
    height: 300px;
    border-radius: 600%;
    margin-top: 50px;
    border: 3px solid #00ffff;
    animation: profileGlow 2s infinite alternate;
}

@keyframes profileGlow{
    from{
        box-shadow:
        0 0 5px #00ffff,
        0 0 15px #00ffff;
    }
    
    to{
        box-shadow:
        0 0 15px #00ffff,
        0 0 35px #00ffff,
        0 0 60px #00ffff;
    }
}

.info-box{
    display: flex;
    flex-direction: column;
    text-align: center;
    max-width: 600px;
}

.info-box h1{
    font-size: 300%;
    font-weight: bolder;
}

.info-box h3{
    font-size: 125%;
    font-weight: bold;
}

.info-box p{
    opacity: 0.7;
}

.social{
    display: flex;
    color: #000000;
    gap: 15px;
    justify-content: center;
    align-items: center;
    margin-top: 15px;
    margin-right: 100px;
}

.social a{
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(to right, rgb(24, 23, 23),
    darkcyan);
    place-items: center;
    border: 2px solid black;
    color: black;
    display: grid;
    font-size: 1.2rem;
    transition: all 0.4s ease-in-out;
    justify-content: center;
    align-items: center;
}

.social a:hover{
    background: linear-gradient(to right, gray,
    darkcyan);
    color: white;
    transform: translateY(-8px) rotate(360deg);
}

.btn-box{
    display: flex;
    gap: 10px;
    padding: 5px;
    font-weight: 500;
    letter-spacing: 1px;
    font-size: 90%;
    cursor: pointer;
    transition: 0.3s ease-in-out;
}

.btn-box .btn:nth-of-type(2){
    background-color: white;
    color: black;
    border: 2px solid black;
    padding: 5px;
    border-radius: 13%;
    opacity: 0.7;
    transition: 0.2s ease-in-out;
}

.btn-box .btn:nth-of-type(1){
    background-color: black;
    color: white;
    border: 2px solid black;
    padding: 5px;
    border-radius: 13%;
    opacity: 0.7;
    transition: 0.2s ease-in-out;
}

.btn-box .btn:nth-of-type(1):hover{
    background-color: white;
    color: black;
}

.btn-box .btn:nth-of-type(2):hover{
    background-color: black;
    color: white;
}

::-webkit-scrollbar{
    width: 20px;
    background-color: black;
}

::-webkit-scrollbar-thumb{
    background: linear-gradient(to bottom, gray,
    darkcyan);
}

#about{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: linear-gradient(
        155deg,
        #000000,
        #2e3546,
        #010411,
        #060c14);
}

#about img{
    width: 500px;
    height: 500px;
    margin-top: 6px;
    margin-left: 100px;
    mix-blend-mode: screen;
    filter: brightness(1.2) contrast(1.3) saturate(1.3);
}

.about-box{
    display: flex;
    flex-direction: column;
    text-align: left;
    gap: 2px;
}

.about-box h1{
    font-size: 300%;
}

.about-box p{
    color: white;
    opacity: 0.8;
}

.skills{
    display: flex;
    text-align: left;
    gap: 10px;
}

.skills ul{
    font-size: 100%;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    color: white;
    opacity: 0.8;
    align-items: baseline;
}

.skills ul li span{
    display: flex;
    gap: 2px;
    align-items: center;
    font-size: 130%;
    transition: 0.3s ease-in-out;
}

.skills ul li span:hover{
    transform: translateX(10px);
    cursor: pointer;
}

.skills ul li i{
    font-size: 100%;
}

.about-box h2{
    font-size: 200%;
}

#projects{
    background: linear-gradient(
        155deg,
        #000000,
        #2e3546,
        #010411,
        #060c14);
        flex-wrap: wrap;
        flex-direction: column;
}

.section-title{
    margin-top: 50px;
    
}

.project-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(290px, 1fr));
    gap: 2rem;
    margin-top: 30px;
}

.project-card{
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1.5rem;
    border: 2px solid black;
    background-color: rgba(87, 84, 84, 0.034);
    color: rgb(148, 144, 144);
    border-radius: 3rem;
    cursor: pointer;
    transition: 0.3s ease-in-out;
}

.project-card:hover{
    background-color: black;
    color: white;
    transform: translateY(-10px)scale(1.02);
}


.project-card .btn{
    display: inline-block;
    text-decoration: none;
    color: white;
    background: linear-gradient(135deg, #2b5670, #041013);
    padding: 12px 28px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: bold;
    transition: .3s;
}

.project-card .btn:hover{
    background: white;
    color: #04324e7a;
    transform: scale(1.05);
}


.project-card img{
    width: 20vw;
    border-radius: 1rem;
}

#contacts{
    background: linear-gradient(
        155deg,
        #000000,
        #2e3546,
        #010411,
        #060c14);
        margin-top: 100px;
}

#contacts h1{
    margin-top: 10px;
}

form{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2em;
}

form .input-box{
    display: flex;
    flex-direction: column;
    align-items: baseline;
    gap: 1em;
}

.input-box span{
    font-size: 1.6em;
}

form input{
    font-size: 1.4em;
    padding: 1rem 5rem;
    border-radius: 20px;
    border: none;
    outline: none;
}

form input:focus{
    background: linear-gradient(to top, gray,
    darkcyan);
}

footer{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10em;
    bottom: 0;
    background-color: black;
    width: 100%;
    padding: 1em 1%;
}

.col-left{
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.col-box{
    gap: 1em;
    display: flex;
    align-items: center;
    gap: 1em;
}

.col-box i{
    font-size: 2em;
}

.col-box span{
    font-size: 1.2em;
}

.col-right{
    display: flex;
    flex-direction: column;
    gap: 1em;
    color: white;
    max-width: 500px;
    font-size: 1em;
}

.col-box socials{
    display: flex;
    align-items: baseline;
    justify-content: left;
    gap: 1em;
}

.col-right .social i{
    font-size: 1%;
    transition: 0.2 ease-in-out;
    cursor: pointer;
}

.social i:hover{
    background: linear-gradient(to right, gray,
    darkcyan);
    color: white;
    transform: translateY(-8px) rotate(360deg);
}

@media(max-width: 768px){
    section{
        padding: 8em 15%;
    }
    nav .btn{
        display: none;
    }
    nav{
        padding: 10px;
        gap: 15px;
    }
    nav a{
        align-items: flex-start;
    }
    nav ul{
        display: flex;
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .links{
        position: absolute;
        top: 70%;
        right: 0;
        width: 90%;
        padding: 1em 3em;
        color: white;
        display: flex;
        flex-direction: column;
        align-items: center;
        background: black;
        transition: 0.4s ease;
        border-radius: 10px;
        display: none;
        cursor: pointer;
    }
    #menu-icon{
        display: block;
        color: white;
    }
    .links a{
        margin: 2em 0;
        display: block;
        font-size: 1.5em;
        color: white;
    }
    .links.active{
        right: 20px;
        display: block;
    }

    
    #home h1{
        font-size: 4em;
    }
    #home h3{
        font-size: 2em;
    }
    #home img{
        width: 20vw;
    }
    #about{
        flex-direction: column-reverse;
    }
    #about img{
        width: 40vw;
        height: 62vw;
        margin-right: 80px;
    }
    #about h1{
        font-size: 2em;
    }
    #about ul{
        font-size: 1em;
    }
    #projects{
        padding: 70px 30px;
    }

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

    .project-card img{
        height: 300px;
        width: 400px;
    }


    #contacts{
        padding: 80px 40px;
    }

    .input-box input,
    .input-box textarea{
        width: 100%;
    }

    footer{
        flex-direction: column;
        text-align: center;
        gap: 30px;
        padding: 50px 40px;
        margin-right: 30px;
    }

    .col-left,
    .col-right{
        width: 100%;
    }

    .col-right .social{
        justify-content: center;
        align-items: center;
        color: black;
        margin-left: 90px;
    }
}

@media(max-width:480px){
    nav{
        padding: 15px 20px;
    }

    .logo{
        font-size: 1.5rem;
    }

    #menu-icon{
        display: block;
        font-size: 1rem;
        cursor: pointer;
    }

    .links{
        position: absolute;
        top: 70px;
        left: 0;
        width: 80%;
        display: none;
        flex-direction: column;
        text-align: center;
        background: #111827;
        padding: 8.5px 0;
        gap: 3px;
    }

    .links.active{
        display: flex;
    }


    #home{
        flex-direction: column;
        text-align: center;
        padding: 90px 20px 40px;
    }

    #home img{
        width: 180px;
        height: 180px;
        margin-bottom: 20px;
    }

    .info-box h1{
        font-size: 2rem;
    }

    .info-box h3{
        font-size: 1.2rem;
    }

    .info-box p{
        font-size: 0.95rem;
    }

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

    .btn-box{
        flex-direction: column;
        width: 100%;
        gap: 15px;
        color: white;
    }

    .btn{
        width: 100%;
        text-align: center;
    }

    #about{
        flex-direction: column;
        padding: 60px 20px;
        text-align: center;
    }

    #about img{
        width: 200px;
        margin-top: 30px;
    }

    .skills{
        flex-direction: column;
        gap: 20px;
    }


    #projects{
        padding: 60px 20px;
    }

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

    .project-card img{
        height: 120px;
        width: 300px;
    }


    #contacts{
        padding: 60px 20px;
    }

    .input-box input,
    .input-box textarea{
        width: 100%;
    }

    footer{
        flex-direction: column;
        text-align: center;
        gap: 30px;
        padding: 30px 20px;
        background: black;
        
    }

    .col-left,
    .col-right{
        width: 100%;
    }

    .col-right .social{
        justify-content: center;
        color: black;
    }

}
