@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&display=swap');

:root{
    --primary: #9b36ff; /* purple */
    --accent: #ff2db8;  /* pink/magenta */
    --bg: #000000;
    --panel: #161616;
}


*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    font-family: 'Poppins', sans-serif;
}

html{
    font-size: 62.5%;
}

body{
    width: 100%;
    height: 100vh;
    overflow-x: hidden;
    background-color: var(--bg);
    color: white;
}

header{
    margin-top: 20px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 9%;
    background-color: transparent;
    filter: drop-shadow(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo{
    font-size: 3rem;
    color: var(--primary);
    font-weight: 800;
    cursor: pointer;
    transition: 0.5s ease;
}

.logo:hover{
    transform: scale(1.1);
}

nav a{
    font-size: 1.8rem;
    color: white;
    margin-left: 4rem;
    font-weight: 500;
    transition: 0.3s ease;
    border-bottom: 3px solid transparent;
}

nav a:hover,
nav a.active{
    color: var(--primary);
    border-bottom: 3px solid var(--primary);
}

@media(max-width:995px){
    nav{
        position: absolute;
        display: none;
        top: 0;
        right: 0;
        width: 40%;
        border-left: 3px solid var(--primary);
        border-bottom: 3px solid var(--primary);
        border-bottom-left-radius: 2rem;
        padding: 1rem solid;
        background-color: var(--panel);
        border-top: 0.1rem solid rgba(0,0,0,0.1);
    }

    nav.active{
        display: block;
    }

    nav a{
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
    }

    nav a:hover,
    nav a.active{
        padding: 1rem;
        border-radius: 0.5rem;
        border-bottom: 0.5rem solid var(--primary);
    }
}

section{
    min-height: 100vh;
    padding: 5rem 9% 5rem;
}

.home{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8rem;
    background-color: var(--bg);
}

.home .home-content h1{
    font-size: 6rem;
    font-weight: 700;
    line-height: 1.3;
}

span{
    color: var(--primary);
}

.home-content h3{
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.home-content p{
    font-size: 1.6rem;
}

.home-img{
    border-radius: 50%;
}

.home-img img{
    position: relative;
    width: 32vw;
    border-radius: 50%;
    box-shadow: 0 0 25px solid var(--primary);
    cursor: pointer;
    transition: 0.2s linear;
}

.home-img img:hover{
    font-size: 1.8rem;
    font-weight: 500;
}

.social-icons a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background-color: transparent;
    border: 0.2rem solid var(--primary);
    font-size: 2rem;
    border-radius: 50%;
    margin: 3rem 1.5rem 3rem 0;
    transition: 0.3s ease;
    color: var(--primary);
}

.social-icons a:hover{
    color: var(--bg);
    transform: scale(1.3) translateY(-5px);
    background-color: var(--accent);
    box-shadow: 0  0 25px var(--accent);
}

.btn{
    display: inline-block;
    padding: 1rem 2.8rem;
    background-color: var(--bg);
    border-radius: 4rem;
    font-size: 1.6rem;
    color: var(--primary);
    letter-spacing: 0.3rem;
    font-weight: 600;
    border: 2px solid var(--primary);
    transition: 0.3s ease;
    cursor: pointer;
}

.btn:hover{
    transform: scale3d(1.03);
    background-color: var(--accent);
    color: var(--bg);
    box-shadow: 0 0 25px var(--accent);
}

.typing-text{
    font-size: 34px;
    font-weight: 600;
    min-width: 280px;
}

.typing-text span{
    position: relative;
}

.typing-text span::before{
    content: "software Developer";
    color: var(--primary);
    animation: words 20s infinite;
}

.typing-text span::after{
    content: "";
    background-color: var(--bg);
    position: absolute;
    width: calc(100% + 8px);
    height: 100%;
    border-left: 3px solid var(--bg);
    right: -8;
    animation: cursor 0.6s infinite;
}

@keyframes cursor{
    to{
        border-left: 3px solid var(--primary);
    }
}

@keyframes words{
    0%, 20%{
        content: "Web Developer";
    }
    21%, 40%{
        content: "Developer";
    }
    41%, 60%{
        content: "Web Designer";
    }
    61%, 80%{
        content: "Youtuber";
    }
    81%, 100%{
        content: "Script Writer";
    }
}

@media (max-width: 1000px){
    .home{
        gap: 4rem;
    }
}

@media(max-width:995px){
    .home{
        flex-direction: column;
        margin: 5rem 4rem;
    }

    .home .home-content h3{
        font-size: 2.5rem;
    }

    .home-content h1{
        font-size: 5rem;
    }

    .home-img img{
        width: 70vw;
        margin-top: 4rem;
    }
}

/* Projects section styles */
.section-title{
    font-size: 3.2rem;
    margin-bottom: 2.5rem;
    color: white;
    text-align: center;
}

.projects{
    padding: 6rem 9%;
    background: linear-gradient(180deg, rgba(155,54,255,0.03) 0%, transparent 100%);
}

.projects-grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.4rem;
    align-items: stretch;
}

.project-card{
    background-color: #0f0f0f;
    border-radius: 1.2rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 6px 24px rgba(155,54,255,0.07);
    border: 1px solid rgba(155,54,255,0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover{
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(255,45,184,0.08);
}

.project-title{
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 0.6rem;
}

.project-desc{
    font-size: 1.4rem;
    color: #d0d0d0;
    margin-bottom: 1rem;
}

.project-tags{
    margin-bottom: 1.6rem;
}

.tag{
    display: inline-block;
    background: rgba(155,54,255,0.08);
    color: var(--primary);
    padding: 0.45rem 0.9rem;
    border-radius: 0.8rem;
    font-size: 1.2rem;
    margin-right: 0.6rem;
}

.project-links{
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.project-links .btn{
    padding: 0.8rem 1.6rem;
    font-size: 1.4rem;
    border-radius: 0.8rem;
    letter-spacing: 0.2rem;
}

/* Responsive adjustments */
@media (max-width: 1000px){
    .projects-grid{
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 650px){
    .projects-grid{
        grid-template-columns: 1fr;
    }

    header{
        padding: 1rem 4%;
    }

    section, .projects{
        padding-left: 4%;
        padding-right: 4%;
    }
}
