*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial,Helvetica,sans-serif;
}

html{
    scroll-behavior:smooth;
}

body{
    min-height:100vh;
    color:#222;
    background:linear-gradient(45deg,#ff4d4d,#4b4b8b,#4317bb);
    background-size:300% 300%;
    animation:moveBG 6s ease infinite;
    transition:.4s;
}

@keyframes moveBG{
    0%{background-position:0% 50%;}
    50%{background-position:100% 50%;}
    100%{background-position:0% 50%;}
}

.head{
    width:100%;
    min-height:80px;
    padding:15px 30px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    background:#f2f2f2;
    position:sticky;
    top:0;
    z-index:1000;
    box-shadow:0 3px 10px rgba(0,0,0,.1);
}

.logo-container{
    display:flex;
    align-items:center;
}

.logo-img{
    width:60px;
    height:60px;
    border-radius:50%;
    object-fit:cover;
    border:3px solid #fff;
    transition:.3s;
}

.logo-img:hover{
    transform:scale(1.08);
}

nav{
    display:flex;
    align-items:center;
    gap:20px;
    margin-left:auto;
    margin-right:20px;
}

nav h1{
    color:#2563eb;
    font-size:28px;
    margin-right:20px;
}

nav a{
    text-decoration:none;
    color:#222;
    font-weight:bold;
    transition:.3s;
}

nav a:hover,
nav a.active{
    color:#2563eb;
}
.back-btn{
    text-decoration:none;
    color:#fff;
    background:#2563eb;
    padding:10px 18px;
    border-radius:8px;
    font-weight:bold;
    transition:.3s;
    margin-left:20px;
}

.back-btn:hover{
    background:#1d4ed8;
}

#theme-toggle{
    border:none;
    background:#2563eb;
    color:#fff;
    padding:10px 18px;
    border-radius:8px;
    cursor:pointer;
    font-weight:bold;
    transition:.3s;
}

#theme-toggle:hover{
    background:#1d4ed8;
}

main{
    width:90%;
    max-width:1200px;
    margin:auto;
    padding:40px 0;
}

section{
    padding:80px 0;
}

h2{
    text-align:center;
    color:cyan;
    font-size:40px;
    margin-bottom:20px;
}

.learning{
    text-align:center;
    color:#fff;
    font-size:20px;
    margin-bottom:30px;
}
#about{
    text-align:center;
}

.ako{
    width:250px;
    height:250px;
    object-fit:cover;
    border-radius:50%;
    border:5px solid #fff;
    box-shadow:0 8px 20px rgba(0,0,0,.2);
    margin:20px auto;
    display:block;
    transition:.3s;
}

.ako:hover{
    transform:scale(1.05);
}

.info{
    max-width:700px;
    margin:20px auto;
    padding:25px;
    background:rgba(255,255,255,.9);
    border-radius:15px;
    box-shadow:0 5px 15px rgba(0,0,0,.2);
}

.info h3{
    color:#2563eb;
    font-size:30px;
    margin-bottom:15px;
}

.info p{
    font-size:18px;
    line-height:1.8;
    margin:10px 0;
}

.skills-container{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:25px;
}

.card{
    background:#fff;
    padding:25px;
    border-radius:15px;
    box-shadow:0 5px 15px rgba(0,0,0,.15);
    transition:.3s;
}

.card:hover{
    transform:translateY(-8px);
}

.card h3{
    color:#2563eb;
    margin-bottom:15px;
}

.progress{
    width:100%;
    height:12px;
    background:#ddd;
    border-radius:20px;
    overflow:hidden;
}

.progress span{
    display:block;
    height:100%;
    background:linear-gradient(90deg,#00d4ff,#2563eb);
}

.span-skill{width:40%;}
.span-css{width:35%;}
.span-java{width:25%;}
.span-python{width:45%;}

.project-container{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:25px;
}

.hobby-card{
    background:#fff;
    padding:25px;
    border-radius:15px;
    box-shadow:0 5px 15px rgba(0,0,0,.15);
    text-align:center;
    transition:.3s;
}

.hobby-card:hover{
    transform:translateY(-8px);
}

.hobby-card h3{
    color:#2563eb;
    margin-bottom:15px;
}

.hobby-card p{
    color:#444;
    line-height:1.7;
}

.div-contact{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:20px;
}

.div-contact p{
    color:#fff;
    font-size:18px;
}

.div-contact button{
    border:none;
    padding:10px 20px;
    border-radius:8px;
    background:#2563eb;
    color:#fff;
    cursor:pointer;
    transition:.3s;
}

.div-contact button:hover{
    background:#1d4ed8;
    transform:translateY(-3px);
}
footer{
    margin-top:60px;
    padding:20px;
    text-align:center;
    background:#f2f2f2;
    color:#222;
    font-weight:bold;
}

body.dark-mode{
    background:#121212;
    background-image:none;
    animation:none;
    color:#fff;
}

body.dark-mode .head{
    background:#1b1b1b;
}

body.dark-mode nav h1,
body.dark-mode nav a{
    color:#fff;
}

body.dark-mode nav a:hover,
body.dark-mode nav a.active{
    color:#00d4ff;
}

body.dark-mode .info,
body.dark-mode .card,
body.dark-mode .hobby-card{
    background:#242424;
    color:#fff;
}

body.dark-mode .info h3,
body.dark-mode .card h3,
body.dark-mode .hobby-card h3{
    color:#00d4ff;
}

body.dark-mode .hobby-card p,
body.dark-mode .info p{
    color:#ddd;
}

body.dark-mode .progress{
    background:#555;
}

body.dark-mode .back-btn,
body.dark-mode #theme-toggle,
body.dark-mode .div-contact button{
    background:#00b4d8;
}

body.dark-mode .back-btn:hover,
body.dark-mode #theme-toggle:hover,
body.dark-mode .div-contact button:hover{
    background:#0096c7;
}

body.dark-mode footer{
    background:#1b1b1b;
    color:#fff;
}

@media(max-width:768px){

    .head{
        flex-direction:column;
        gap:15px;
        padding:20px;
    }

    nav{
        flex-wrap:wrap;
        justify-content:center;
        margin:0;
    }

    nav h1{
        width:100%;
        text-align:center;
        margin:0 0 10px;
    }

    .logo-img{
        width:80px;
        height:80px;
    }

    .ako{
        width:180px;
        height:180px;
    }

    h2{
        font-size:32px;
    }

    .info{
        width:95%;
        padding:20px;
    }

    .info h3{
        font-size:24px;
    }

    .info p{
        font-size:16px;
    }

    .skills-container,
    .project-container{
        grid-template-columns:1fr;
    }

    .learning{
        font-size:18px;
    }

    .div-contact p{
        text-align:center;
    }

    .div-contact button{
        margin-top:10px;
    }

    .back-btn{
        align-self:flex-start;
    }
}