@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&display=swap');

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family: "Oswald", sans-serif;
    background:#0f172a;
    color:white;

    background-image: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.85)), url('bgphoto.jpg');
    background-size: cover;

}

header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:20px 10%;
    background:#1e293b;
    position:sticky;
    top:0;
    z-index:1000;
}

header h2{
    color:#38bdf8;
}

nav a{
    color:white;
    text-decoration:none;
    margin:15px;
    transition:.3s;
}

nav a:hover{
    color:#38bdf8;
}

#darkBtn{
    padding:8px 15px;
    border:none;
    border-radius:5px;
    cursor:pointer;
}

section{
    padding:80px 10%;
    text-size-adjust: inherit;
}

section h2{
    text-align:center;
    color:#38bdf8;
    font-size:36px;
    margin-bottom:35px;
}

.hero{
    text-align:center;
}

.hero img{
    width:180px;
    border-radius:50%;
    border:5px solid #38bdf8;
}

.hero h1{
    margin-top:20px;
    font-size:45px;
}

.hero span{
    color:#38bdf8;
}

.hero p{
    margin:20px;
    font-size:20px;
}

.hero button{
    padding:12px 25px;
    border:none;
    border-radius:5px;
    background:#38bdf8;
    cursor:pointer;
}

#about{
    text-align:center;
}

#about p{
    max-width:700px;
    margin:0 auto;
    background:#0f172a;
    padding:30px;
    border-radius:10px;
    line-height:1.8;
    box-shadow:0 5px 15px rgba(0,0,0,.3);
}

#hobbies{
    text-align:center;
}

.cards{
    display:grid;
    grid-template-columns:repeat(2, 380px);
    justify-content:center;
    gap:30px;
    margin-top:20px;
}

.card{
    width:380px;
    background:#1e293b;
    border-radius:10px;
    overflow:hidden;
    transition:.3s;
    box-shadow:0 5px 15px rgba(0,0,0,.3);
}

.card:hover{
    transform:translateY(-8px);
}

.card-img{
    width:100%;
    height:220px;
    overflow:hidden;
}

.card-img img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.card-content{
    padding:3px;
    text-align:center;
}

.card h3{
    color:#38bdf8;
    margin-bottom:15px;
}

.card p{
    line-height:1.8;
    font-size:17px;
}
#contact{
    text-align:center;
}

.contact-info{
    max-width:450px;
    margin:30px auto;
    background:#1e293b;
    padding:30px;
    border-radius:10px;
    text-align:left;
    box-shadow:0 5px 15px rgba(0,0,0,.3);
}

.contact-info p{
    margin:18px 0;
    font-size:18px;
}

.contact-info a{
    color:#38bdf8;
    text-decoration:none;
}

.contact-info a:hover{
    text-decoration:underline;
}

footer{
    text-align:center;
    padding:20px;
    border-top: 1px solid rgba(0, 255, 255, 0.2);
}

.light-mode{
    background:white;
    color:black;
}

.light-mode header,
.light-mode footer,
.light-mode #about,
.light-mode .card,
.light-mode .contact-info{
    background:#e2e8f0;
}

.light-mode #about p{
    background:white;
}

.light-mode nav a{
    color:black;
}

.light-mode .contact-info a{
    color:#2563eb;
}

@media (max-width: 992px) {

    header{
        flex-direction:column;
        gap:15px;
        text-align:center;
        padding:20px 5%;
    }

    nav{
        display:flex;
        flex-wrap:wrap;
        justify-content:center;
        gap:10px;
    }

    nav a{
        margin:5px;
    }

    section{
        padding:60px 5%;
    }

    .cards{
        grid-template-columns:repeat(2, 1fr);
        gap:20px;
    }

    .card{
        width:100%;
    }

    .hero h1{
        font-size:36px;
    }

    .hero p{
        font-size:18px;
    }
}

@media (max-width: 768px){

    header{
        flex-direction:column;
        align-items:center;
        padding:15px;
    }

    header h2{
        margin-bottom:10px;
        font-size:28px;
    }

    nav{
        display:flex;
        flex-wrap:wrap;
        justify-content:center;
    }

    nav a{
        margin:8px;
        font-size:16px;
    }

    #darkBtn{
        margin-top:10px;
    }

    section{
        padding:50px 20px;
    }

    section h2{
        font-size:30px;
    }

    .hero img{
        width:140px;
    }

    .hero h1{
        font-size:32px;
    }

    .hero p{
        font-size:17px;
    }

    .hero button{
        width:100%;
        max-width:220px;
    }

    .cards{
        grid-template-columns:1fr;
        justify-items:center;
    }

    .card{
        width:100%;
        max-width:360px;
    }

    .card-img{
        height:200px;
    }

    #about p{
        width:100%;
        padding:20px;
    }

    .contact-info{
        width:100%;
        padding:20px;
    }

    .contact-info p{
        font-size:16px;
    }
}

@media (max-width:480px){

    header h2{
        font-size:24px;
    }

    nav a{
        font-size:14px;
        margin:6px;
    }

    section h2{
        font-size:26px;
    }

    .hero img{
        width:120px;
    }

    .hero h1{
        font-size:26px;
    }

    .hero p{
        font-size:15px;
    }

    .card-img{
        height:180px;
    }

    .card h3{
        font-size:20px;
    }

    .card p{
        font-size:15px;
    }

    .contact-info p{
        font-size:15px;
    }

    footer{
        font-size:14px;
    }
}