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

:root{
    --bg:#0f172a;
    --card:#1e293b;
    --text:#fff;
    --accent:#38bdf8;
}

.light{
    --bg:#f8fafc;
    --card:#ffffff;
    --text:#111827;
}

body{
    background:var(--bg);
    color:var(--text);
    transition:0.3s;
}

html{
    scroll-behavior:smooth;
}

header{
    position:fixed;
    width:100%;
    top:0;
    background:rgba(15,23,42,.9);
    backdrop-filter:blur(10px);
    z-index:1000;
}

nav{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:15px 8%;
}

.logo{
    color:var(--accent);
    font-weight:bold;
    font-size:1.3rem;
}

.nav-links{
    display:flex;
    gap:25px;
    list-style:none;
}

.nav-links a{
    color:var(--text);
    text-decoration:none;
}

#theme-toggle{
    background:none;
    border:none;
    color:white;
    font-size:1.2rem;
    cursor:pointer;
}

.hero{
    min-height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    text-align:center;
    padding:20px;
}

.hero h1{
    font-size:3rem;
}

.hero span{
    color:var(--accent);
}

.hero h2{
    margin:10px 0;
}

.btn{
    display:inline-block;
    margin-top:20px;
    padding:12px 25px;
    background:var(--accent);
    color:white;
    text-decoration:none;
    border-radius:8px;
}

.section{
    padding:100px 10%;
}

.section h2{
    text-align:center;
    margin-bottom:40px;
    color:var(--accent);
}

.skill{
    margin-bottom:20px;
}

.progress{
    height:12px;
    background:#334155;
    border-radius:20px;
    overflow:hidden;
}

.progress-bar{
    height:100%;
    background:var(--accent);
}

.timeline{
    display:flex;
    flex-direction:column;
    gap:20px;
}

.timeline-item{
    background:var(--card);
    padding:20px;
    border-left:4px solid var(--accent);
    border-radius:10px;
}

.project-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:20px;
}

.card{
    background:var(--card);
    padding:25px;
    border-radius:12px;
    transition:.3s;
}

.card:hover{
    transform:translateY(-5px);
}

form{
    display:flex;
    flex-direction:column;
    gap:15px;
    max-width:600px;
    margin:auto;
}

input,
textarea{
    padding:12px;
    border:none;
    border-radius:8px;
}

button{
    padding:12px;
    background:var(--accent);
    color:white;
    border:none;
    border-radius:8px;
    cursor:pointer;
}

footer{
    text-align:center;
    padding:20px;
    background:#020617;
}

@media(max-width:768px){

    nav{
        flex-direction:column;
        gap:15px;
    }

    .nav-links{
        flex-wrap:wrap;
        justify-content:center;
    }

    .hero h1{
        font-size:2rem;
    }
}
