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

html,body{
    width: 100%;
    height: 100%;
    background-color: #0f0f0f;
    color: white;
}

.container{
    width: 100%;
    min-height: 100vh;
    padding: 2rem 8%;
}

nav{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 5rem;
}

nav h1{
    font-size: 2rem;
    font-weight: 700;
}

nav a{
    text-decoration: none;
    color: white;
    border: 1px solid #ffffff31;
    padding: 0.9rem 1.4rem;
    border-radius: 50px;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

nav a:hover{
    background-color: white;
    color: black;
}

.hero{
    width: 100%;
    margin-bottom: 4rem;
}

.hero h2{
    font-size: 4rem;
    line-height: 1.1;
    max-width: 900px;
    margin-bottom: 1.5rem;
}

.hero p{
    max-width: 700px;
    color: #b3b3b3;
    font-size: 1.1rem;
    line-height: 1.8;
}

.projects{
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
    gap: 1.5rem;
}

.card{
    text-decoration: none;
    color: white;
    background: #181818;
    border: 1px solid #2a2a2a;
    padding: 2rem;
    border-radius: 20px;
    transition: 0.4s;
    position: relative;
    overflow: hidden;
}

.card:hover{
    transform: translateY(-10px);
    border-color: white;
}

.card span{
    font-size: 0.9rem;
    color: #888;
}

.card h3{
    margin-top: 1rem;
    margin-bottom: 1rem;
    font-size: 1.6rem;
}

.card p{
    color: #b3b3b3;
    line-height: 1.7;
}

.card::before{
    content: "";
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
    top: -100px;
    right: -100px;
}

@media(max-width:768px){

    .container{
        padding: 2rem 5%;
    }

    nav{
        flex-direction: column;
        gap: 1rem;
    }

    .hero h2{
        font-size: 2.5rem;
    }

}
