/*------------Global Styles------------*/
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
    scroll-behavior: smooth;
    list-style: none;
}
/*------------Header Styles------------*/
header{
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 3rem;
    z-index: 1000;
}
/*------------Logo and Navigation Styles------------*/
.logo{
    color: white;
    font-size: 1.3rem;
    font-weight: 700;
    text-wrap: nowrap;
    transition: 0.3s ease-in-out;
}
.logo:hover{
    transform: scale(1.1);
}
.nav-links{
    display: flex;
    gap: 2rem;
}
li a{
    position: relative;
    color: white;
    font-weight: 300;
}
/*------------Gradient underline animation------------*/
li a::before{
    position: absolute;
    content: '';
    width: 0;
    left: 0;
    height: 5px;
    top: 25px;
    border-radius: 1rem;
    transition: 0.3s ease-in-out;
    background: linear-gradient(to right, #2774ae, #002E5D, #002E5D);
}
li a:hover::before{
    width: 100%;
}

/*------------Visit Github Button Style------------*/
.visit-btn{
    padding: 0.8rem 1.5rem;
    border-radius: 3rem;
    border: none;
    font-weight: 500;
    font-size: 1rem;
    color: white;
    cursor: pointer;
    text-wrap: nowrap;
    transition: 0.5s ease-in-out;
    background: #2774ae;
    color: white;
}
.visit-btn:hover{
    transform: scale(1.03);
    transition: 0.6s ease-in-out;
    background: linear-gradient(to right, #2774ae, #002E5D, #002E5D);
}

/*--------------Download Resume Styles--------------*/
.download-link {
    padding: 12px 28px;
    display: inline-block;
    border: 2px solid black;
    color: black;
    cursor: pointer;
    text-wrap: nowrap;
    border-radius: 3rem;
    font-weight: 500;
}
.download-link:hover {
    background-color: black;
    color: white;
    transform: scale(1.1);
    transition: 0.3s ease-in-out;
}

/*------------Hamburger Icon Styles------------*/
#menu-icon{
    font-size: 2rem;
    display: none;
}

/*------------Section Styles------------*/
section{
    min-height: 100vh;
    padding: 8rem 12%;
    width: 100%;
    position: relative;
}

.about{
    display: flex;
    align-items: center;
    justify-content: center;
}
.about .about-container{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10rem;
}
.about img{
    width: 30vw;
    border-radius: 50%;
}
/*------------Gradient text------------*/
.info-box{
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}
.info-box h3{
    font-size: 1.8rem;
    font-weight: 500;
    opacity: 0.8;
}
.info-box h1{
    font-size: 4rem;
    font-weight: 600;
}
.info-box span{
    background: linear-gradient(to right, #2774ae, #002E5D, #002E5D);
    background-clip: text;
    color: transparent;
    font-size: 2rem;
}

.btn-group{
    display: flex;
    gap: 1rem;
}
.btn{
    border-radius: 3rem;
    padding: 0.5rem 1.5rem;
    border: 2px solid black;
    cursor: pointer;
    font-weight: 500;
    text-wrap: nowrap;
    transition: 0.2s ease-in-out;
}
.btn:hover{
    background-color: black;
    color: white;
}

.socials{
    display: flex;
    gap: 2rem;
}
.socials a{
    color: black;
}
.socials a i{
    font-size: 2.5rem;
    cursor: pointer;
    transition: 0.2s ease-in-out;
}
.socials a i:hover{
    transform: scale(1.1);
    color: #2774ae;
}

.section-title{
    text-align: center;
    font-size: 4rem;
    font-weight: 600;
    margin-bottom: 3rem;
}

.skills-info{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5rem;
}
.skills img{
    width: 24vw;
    border-radius: 3rem;
}
.grid{
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 2rem;
}
.grid-card{
    border: 2px solid black;
    border-radius: 3rem;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    align-items: baseline;
    justify-content: left;
    transition: 0.2s ease-in-out;
}
.grid-card:hover{
    transform: scale(1.02);
    background-color: black;
    color: white;
}
.grid-card i{
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.grid-card span{
    font-size: 1.5rem;
    font-weight: 500;
    background: linear-gradient(to right, #2774ae, #002E5D, #002E5D);
    background-clip: text;
    color: transparent;
}

::-webkit-scrollbar-track{
    background-color: rgb(219, 219, 219);
}
::-webkit-scrollbar-thumb{
    background: linear-gradient(to bottom, rgb(0, 21, 255), rgb(255, 174, 0));
}

.reveal{
    opacity: 0;
    transform: translateY(40px);
    transition: 0.8s ease;
}
.reveal.active{
    opacity: 1;
    transform: translateY(0);
}

.projects-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.project-card{
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1.5rem;
    border: 2px solid black;
    border-radius: 3rem;
    transition: 0.3s ease-in-out;
}
.project-card:hover{
    background-color: black;
    color: white;
    transform: translateY(-10px)scale(1.02);
}
.project-card img {
    width: 20vw;
    height: 10vw;
    border: 2px solid black;
    border-radius: 10px;
}
.project-card:hover .btn{
    border: 2px solid white;
    color: white;
}
.project-card:hover .btn:hover{
    border: 2px solid white;
    background-color: white;
    color: black;
}
.project-card h3{
    font-size: 2rem;
    font-weight: 500;
}

.input-box{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 2rem;
    margin-top: 5rem;
}
.input-box input{
    border-radius: 3rem;
    border: 2px solid black;
    padding: 2rem 8rem;
    font-size: 3rem;
}
.input-box input::placeholder{
    font-size: 3rem;
}
.input{
    position: relative;
}
.input i{
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translate(50%,-50%);
    font-size: 4rem;
}

/*------------Contact Styles------------*/
.contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.contact-info {
    max-width: 800px;
    margin-top: 2rem;
    padding: 1rem;
    border: 2px solid black;
    border-radius: 3rem;
    transition: 0.3s ease-in-out;
}
.contact-info:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}
.contact-info p {
    font-size: 1.5rem;
    line-height: 1.8;
    margin: 0.5rem 0;
}
.contact-details {
    margin-top: 2rem;
}
.contact-details p {
    margin: 1rem 0;
}
.contact-details a {
    color: #2774ae;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s ease-in-out;
}

.contact-details a:hover {
    text-decoration: underline;
    color: #002E5D;
}

/*------------Footer Styles------------*/
footer{
    bottom: 0;
    left: 0;
    height: 10rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}
footer ul{
    display: flex;
    align-items: center;
    gap: 3rem;
}
footer ul li a{
    color: black;
    font-weight: 600;
}
.copyright{
    font-size: 300;
    margin-top: 2rem;
}


@media(max-width:1280px){
    header{
        padding: 1rem 2rem;
        gap: 2rem;
    }
    .about .about-container{
        gap: 3rem;
    }
    .skills-info{
        flex-direction: column;
    }
    .input-box input{
        padding: 2rem 5rem;
        font-size: 2.5rem;
    }
    .input input::placeholder{
        font-size: 2.5rem;
    }
    .input-box i{
        font-size: 2.5rem;
    }
}

@media(max-width:768px){
    header{
        gap: 1rem;
        padding: 1rem 1.1rem;
        justify-content: space-between;
    }
    header .logo{
        font-size: 1rem;
    }
    header .visit-btn{
        display: none;
    }
    .about-container{
        flex-direction: column;
    }
    .input-box input{
        padding: 1rem 2rem;
        font-size: 1.8rem;
    }
    .input-box input::placeholder{
        font-size: 1.5rem;
    }
    .input-box i{
        display: none;
    }
    .grid{
        grid-template-columns: repeat(1,1fr);
    }
    .skills-info img{
        width: 70vw;
    }
}

/*------------Mobile Styles------------*/
@media(max-width:600px){
    header{
        padding: 1rem 2rem;
        gap: 6rem;
        justify-content: space-between;
        position: fixed;
        width: 90%;
        top: 1%;
        left: 50%;
        transform: translateX(-50%);
        transition: top 0.1s ease-in-out, opacity 0.6s ease-in-out;
        opacity: 1;
        z-index: 1000;
    }
    header.hide{
        top: -100%;
        opacity: 0;
    }
    #menu-icon{
        display: block;
        margin-left: auto;
        cursor: pointer;
    }
    #menu-icon.active{
        color: black;
    }
    .nav-links{
        position: absolute;
        top: 100%;
        margin-top: .5rem;
        width: auto;
        right: 1rem;
        left: auto;
        transform: none;
        padding: 5% 35%;
        color: white;
        flex-direction: column;
        text-align: center;
        background: rgba(0, 0, 0, 0.8);
        border-radius: 3rem;
        display: none;
        justify-content: center;
        gap: .5rem;
    }
    .nav-links li{
        margin-top: 0;
        padding: .5rem;
    }
    .nav-links a {
        font-size: 1.2rem;
    }
    .nav-links.active{
        display: flex;
    }
    header .logo{
        font-size: 1.5rem;
    }
    .about-container img{
        width: 80vw;
    }
    .input-box input{
        padding: 0.5rem 3rem;
        width: 80%;
        font-size: 1.5rem;
    }
    .input-box input::placeholder{
        font-size: 1.5rem;
    }
    footer ul{
        gap: 1rem;
    }
}