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


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
}


:root{
    --color-special: black;
    --bg-color: #fdfdfd;
    --text-color: #333;
    --main-color: #754ef9;
    --white-color: #fdfdfd;
    --shadow-color: rgba(0, 0, 0, .2);
    --border-color: black;
}
.darkmode{
    --color-special: #fdfdfd;
    --bg-color: #070b1d;
    --text-color: #fdfdfd;
    --white-color: #fdfdfd;
    --main-color: #fdfdfd;
    --border-color: #fdfdfd;
}

html{
    font-size: 62.5%;
    overflow-x: hidden;
}
body{
    background: var(--bg-color);
    color: var(--text-color);
}

.header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 7%;
    background: var(--bg-color);
    display: flex;
    align-items: center;
    z-index: 100;
}
.logo{
    font-size: 2.5rem;
    color: var(--main-color);
    font-weight: 600;
    cursor: default;
    margin-right: auto;
}
.navbar a{
    position: relative;
    font-size: 1.7rem;
    color: var(--main-color);
    font-weight: 500;
    margin-right: 3.5rem;
}

.navbar a::after{
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: .2rem;
    background: linear-gradient(to right, #009dff, #ff00ff);
    transition: 0.3s;
}
.navbar a:hover::after{
    width: 100%;
}
#theme-switch{
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.4rem;
    color: var(--main-color);
    cursor: pointer;
    background: transparent;
}

#theme-switch div:last-child{
    display: none;
}
.darkmode #theme-switch div:first-child{
    display: none;
}
.darkmode #theme-switch div:last-child{
    display: block;
}

section{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; 
    text-align: center;
    gap: 20px;
    min-height: 100vh;
    padding: 10rem 7% 2rem;
}
.image img{
    height: 300px;
    width: 300px;
    object-fit: cover;
    border-radius: 50%;
}
.home{
    display: flex;
    flex-direction: row;
    align-items: center;
}
.home .home-content{
    max-width: 44rem;
}
.home-content h3{
    font-size: 3.3rem;
    font-weight: 700;
    line-height: .3;
    margin-bottom: 10px;
}
.home-content h1{
    font-size: 4.2rem;
    font-weight: 700;
}
.home-content p{
    font-size: 3rem;
    background: linear-gradient(to right, #009dff, #ff00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.home-content .social-media a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background: transparent;
    border: .2rem solid #754ef9;
    border-radius: 50%;
    box-shadow: 0 .2rem .5rem var(--shadow-color);
    font-size: 2rem;
    color: #754ef9;
    margin: 2.5rem 1.5rem 3rem 0;
    transition: .5s ease;
}

.home-content .social-media a:hover{
    background: #754ef9;
    color: var(--white-color);
}

.btn{
    display: inline-block;
    padding: 1.2rem 2.8rem;
    background: #754ef9;
    border-radius: .6rem;
    box-shadow: 0 .2rem .5rem var(--shadow-color);
    font-size: 1.6rem;
    color: var(--white-color);
    letter-spacing: .1rem;
    font-weight: 600;
    border: .2rem solid transparent;
    transition: .5s ease;
}
.btn:hover{
    background: transparent;
    color: #754ef9;
    border-color: #754ef9;
}
.experience{
    display: flex;
    flex-direction: column;
}
.experience-info{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5rem;
}
.experience img{
    width: 24vw;
    border-radius: 50%;
}
.grid{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}
.grid-card{
    border: 2px solid var(--text-color);
    border-radius: 3rem;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    align-items: baseline;
    justify-content: left;
    cursor: pointer;
    transition: 0.2s ease-in-out;
}
.grid-card:hover{
    transform: scale(1.02);

}
.grid-card i{
    font-size: 3rem;
    margin-bottom: 1rem;
}
.grid-card span{
    font-size: 2rem;
    font-weight: 500;
    background: linear-gradient(to right, #009dff, #ff00ff);
    background-clip: text;
    color: transparent;
}
.grid-card h3{
    font-size: 1.5rem;
}
.grid-card p{
    text-align: left;
    font-size: 1.4rem;
}
::-webkit-scrollbar{
    width: 20px;
}
::-webkit-scrollbar-track{
    background-color: rgb(219, 219, 219);
}
::-webkit-scrollbar-thumb{
    background: linear-gradient(to bottom, #009dff, #ff00ff);
}

.projects-grid{
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.project-card{
    padding: 3rem 2rem;
    display: flex;
    flex: 1 1 30%;
    box-sizing: border-box;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 3rem;
    cursor: pointer;
    transition: 0.3s ease-in-out;
}
.project-card:hover{
    transform: translateY((-10px)scale(1.02));
}
.project-card img{
    width: 20vw;
    border-radius: 1rem;
}
.project-card .btn{
    background-color: transparent;
    color: var(--color-special);
    border: 2px solid var(--border-color);
    border-radius: 3rem;
}

.project-card h3{
    font-size: 2.5rem;
    font-weight: 500;
}
.project-card p{
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.section-title{
    font-size: 4rem;
    margin-bottom: 10px;

}
.btn-group{
    display: flex;
    gap: 10px;
}


/*Contact section*/
#contact{
    display: flex;
    justify-content: center;
    flex-direction: column;
    height: 70vh;
    margin-bottom: 0;
}

.contact-info-upper-container{
    display: flex;
    justify-content: center;
    border-radius: 3rem;
    border: rgb(53, 53, 53) 0.1rem solid; 
    border-color: var(--color-special);
    background: transparent;
    text-decoration: none;
    font-size: 2rem;
    margin: 2rem auto;
    padding: 2rem;
}
.contact-info-container{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 1rem;
}

.contact-info-container p a{
    font-size: 2rem;
    text-decoration: none;
    color: var(--color-special);
}
.contact-icon{
    cursor: default;
    height: 2rem;
}
.section__text__1{
    font-size: 2.5rem;
}
.title{
    font-size: 5rem;
}

footer p{
    text-align: center;
    font-size: 1.5rem;
    color: var(--color-special);
    margin-bottom: 10px;
}


@media (max-width: 768px) {
    .project {
        flex: 1 1 45%; /* Two items per row on medium screens */
    }
}

@media (max-width: 480px) {
    .project-card {
        flex: 1 1 100%; /* One item per row on small screens */
    }
}

/*responsive home part*/
@media (max-width: 768px) {
    .home {
        flex-direction: column;
        text-align: center;
    }

    .image img {
        width: 250px;
        height: 250px;
    }

    .home-content {
        max-width: 80%;
        margin: 0 auto;
    }

    .home-content h3, .home-content h1 {
        font-size: 3rem;
    }

    .home-content p {
        font-size: 2.4rem;
    }

    .btn {
        padding: 1rem 2rem;
        font-size: 1.4rem;
    }
}

/* Mobile View */
@media (max-width: 480px) {
    .image img {
        width: 200px;
        height: 200px;
    }

    .home-content h1 {
        font-size: 3rem;
    }

    .home-content p {
        font-size: 1.8rem;
    }

    .social-media a {
        width: 3.5rem;
        height: 3.5rem;
        font-size: 1.8rem;
    }

    .btn {
        padding: 0.8rem 1.6rem;
        font-size: 1.2rem;
    }
}
/* Responsive Navbar */
@media (max-width: 768px) {
    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-color);
        flex-direction: column;
        align-items: center;
        display: none; /* Hide by default */
    }

    .navbar a {
        margin: 1.5rem 0;
    }

    .navbar.active {
        display: flex; /* Show when active */
    }

    /* Hamburger Icon */
    .menu-toggle {
        display: block;
        font-size: 2.5rem;
        color: var(--main-color);
        margin-left: auto;
        cursor: pointer;
    }
    .toggle-and-switch{
        display: flex;
        gap: 20px;
    }
}

@media (min-width: 769px) {
    .menu-toggle {
        display: none; /* Hide on desktop */
    }
}

/* Responsive Styles (About Section) */
@media (max-width: 1024px) {
    .experience-info {
        flex-direction: column;
        gap: 3rem;
    }

    .grid {
        grid-template-columns: 1fr;
    }
    
    .experience img {
        width: 150px;
    }
}

@media (max-width: 600px) {
    .grid-card {
        padding: 2rem;
    }

    .grid-card span {
        font-size: 1.5rem;
    }

    .grid-card h3 {
        font-size: 1.3rem;
    }

    .grid-card p {
        font-size: 1rem;
    }
}

/* Responsive Styles (Contact Section */
@media (max-width: 1024px) {
    .contact-info-upper-container {
        padding: 1.5rem;
        gap: 0.2rem;
    }
    
    .section__text__1 {
        font-size: 2.2rem;
    }

    .title {
        font-size: 3.5rem;
    }
    
    .contact-info-container {
        gap: 0.5rem;
    }
    
    .contact-info-container p a {
        font-size: 1.6rem;
    }
}

@media (max-width: 600px) {
    #contact {
        padding: 1.5rem;
    }

    .contact-info-upper-container {
        flex-direction: column;
        padding: 1.5rem;
    }
    
    .section__text__1 {
        font-size: 2rem;
    }
    
    .title {
        font-size: 3rem;
    }
    
    .contact-info-container {
        font-size: 1.4rem;
    }
    
    .contact-info-container p a {
        font-size: 1.4rem;
    }
}

@media (max-width: 600px){
    footer p{
        max-width: 420px;
        text-align: center;
    }
    .grid-card h3{
        font-size: 1.3rem;
    }
    .grid-card p{
        text-align: left;
        font-size: 1.4rem;
    }
}