@import url('https://fonts.googleapis.com/css2?family=Libertinus+Math&display=swap');

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    scroll-behavior:smooth;
}

body{
    font-family:"Libertinus Math", system-ui;
    background:#0f172a;
    color:white;
    transition:.4s;
    font-size: 22px;
}

header{
    width:250px;
    height:100vh;
    background:#0e275e;
    position:fixed;
    top:0;
    left:0;

    display:flex;
    flex-direction:column;
    align-items:center;
    padding:40px 20px;
}

.logo{
    font-size:32px;
    font-weight:bold;
    color:#38bdf8;
    margin-bottom:50px;
}

nav{
    width:100%;
}

nav ul li{
    list-style:none;
    display:flex;
    flex-direction:column;
    gap:20px;
    font-size: larger;
}

nav a{
    display:block;
    padding:15px;
    color:white;
    text-decoration:none;
    border-radius:10px;
    transition:.3s;
}

nav a:hover{
    background:#38bdf8;
}

#themeBtn{
    margin-top:auto;
    width:100%;
    padding:12px;
    border:none;
    background:#38bdf8;
    color:white;
    border-radius:8px;
    cursor:pointer;
}

main{
    margin-left:250px;
}

.hero{
    min-height:90vh;
    display:flex;
    justify-content:center;
    align-items:center;
    padding:60px 10%;
}

.hero-content{
    display:flex;
    justify-content:space-between;
    align-items:center;
    width:100%;
    gap:60px;
}

.hero-text{
    flex:1;
}

.hero h1{
    font-size:55px;
    margin-bottom:20px;
}

.hero span{
    color:#38bdf8;
}

.hero p{
    font-size:22px;
    line-height:1.6;
}

.hero-image{
    flex:1;
    display:flex;


}

.hero-image img{
    width:350px;
    height:350px;
    object-fit:cover;
    border-radius:50%;
    border:2px solid #38bdf8;

}

section{
    padding:80px 10%;
}

h2{
    text-align:center;
    margin-bottom:40px;
    font-size:35px;
    color:#38bdf8;
}
#about{
    height: 80vh;
}

#about p{
    text-align:center;
    line-height:30px;
    font-size:18px;
}

#projects{
    height: 80vh;
}
.cards{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:30px;
}

.card{
    background:#1e293b;
    padding:30px;
    border-radius:15px;
    transition:.4s;
    text-align:center;
}

.card:hover{
    transform:translateY(-10px);
}

.card h3{
    margin-bottom:20px;
}

#contact{
    text-align:center;
    height: 80vh;
}

#contact p{
    margin:15px;
}

#contact a{
    color:#38bdf8;
    text-decoration:none;
}

footer{
    text-align:center;
    padding:20px;
    background:#0e275e;
}

.light{
    background:#f5f5f5;
    color:#111;
}

.light header{
    background:white;
    border-right:1px solid #ddd;
}

.light nav a{
    color:#111;
}

.light nav a:hover{
    color:white;
}

.light .card{
    background:white;
    color:#111;
    box-shadow:0 0 10px rgba(0,0,0,.2);
}

.light footer{
    background:white;
    color:#111;
}

@media (max-width: 992px){

    header{
        width:220px;
    }

    main{
        margin-left:220px;
    }

    .hero-content{
        flex-direction:column-reverse;
        text-align:center;
        gap:40px;
    }

    .hero-image img{
        width:280px;
        height:280px;
    }

    .hero h1{
        font-size:42px;
    }

    .hero p{
        font-size:20px;
    }

    section{
        padding:60px 6%;
    }

    #about,
    #projects,
    #contact{
        height:auto;
        min-height:80vh;
    }
}

@media (max-width:768px){

    header{
        position:relative;
        width:100%;
        height:auto;
        padding:20px;
    }

    .logo{
        margin-bottom:20px;
        font-size:28px;
    }

    nav ul{
        flex-direction:row;
        flex-wrap:wrap;
        justify-content:center;
        gap:10px;
    }

    nav a{
        padding:10px 15px;
        font-size:16px;
    }

    #themeBtn{
        margin-top:20px;
        width:180px;
    }

    main{
        margin-left:0;
    }

    section{
        padding:50px 20px;
    }

    .hero{
        min-height:auto;
        padding:50px 20px;
    }

    .hero-content{
        flex-direction:column-reverse;
        text-align:center;
        gap:30px;
    }

    .hero-image{
        justify-content:center;
    }

    .hero-image img{
        width:220px;
        height:220px;
    }

    .hero h1{
        font-size:34px;
    }

    .hero p{
        font-size:18px;
    }

    h2{
        font-size:30px;
    }

    .cards{
        grid-template-columns:1fr;
    }

    .card{
        padding:20px;
    }

    #about,
    #projects,
    #contact{
        height:auto;
        min-height:auto;
    }

    #about p{
        font-size:17px;
        line-height:1.8;
    }
}

@media (max-width:480px){

    body{
        font-size:18px;
    }

    .logo{
        font-size:24px;
    }

    nav ul{
        flex-direction:row;
        align-items:center;
    }

    nav a{
        width:100%;
        text-align:center;
    }

    .hero-image img{
        width:170px;
        height:170px;
    }

    .hero h1{
        font-size:28px;
    }

    .hero p{
        font-size:16px;
    }

    h2{
        font-size:26px;
    }

    .card h3{
        font-size:22px;
    }

    .card p,
    #about p,
    #contact p{
        font-size:16px;
    }

    footer{
        font-size:14px;
    }
}