:root{
    --bg:#0f1724;
    --card:#0b1220;
    --muted:#9aa4b2;
    --accent:#4f46e5;
    --glass: rgba(255,255,255,0.03);
    --radius:12px;
    --max-width:1100px;
    --shadow: 0 6px 18px rgba(2,6,23,0.6);
    color-scheme: dark;
    color: #e6eef8;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
    margin:0;
    background: linear-gradient(180deg,#071022 0%, #071123 30%, #071320 100%);
    display:flex;
    justify-content:center;
    align-items:flex-start;
    padding:40px 20px;
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale;
}
.container{
    width:100%;
    max-width:var(--max-width);
}
header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:16px;
    margin-bottom:28px;
}
.brand{
    display:flex;
    gap:12px;
    align-items:center;
    text-decoration:none;
    color:inherit;
}
.logo{
    width:44px;
    height:44px;
    background: linear-gradient(135deg,var(--accent),#06b6d4);
    border-radius:10px;
    display:grid;
    place-items:center;
    font-weight:700;
    box-shadow:var(--shadow);
}
nav{display:flex;gap:12px;align-items:center;}
.nav-links{display:flex;gap:10px}
.nav-links a{
    color:var(--muted);
    text-decoration:none;
    padding:8px 10px;
    border-radius:8px;
    font-size:14px;
}
.nav-links a:hover{color:#fff;background:var(--glass)}
.cta{
    background:var(--accent);
    color:white;
    padding:8px 12px;
    border-radius:8px;
    text-decoration:none;
    font-weight:600;
}

.hero{
    display:grid;
    grid-template-columns:1fr 360px;
    gap:28px;
    align-items:start;
    margin-bottom:28px;
}
.card{
    background:linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
    border-radius:var(--radius);
    padding:22px;
    box-shadow:var(--shadow);
    border:1px solid rgba(255,255,255,0.03);
}
.intro h1{
    margin:0 0 8px 0;
    font-size:28px;
    line-height:1.04;
}
.intro p{
    margin:0 0 14px 0;
    color:var(--muted);
    font-size:15px;
}
.badges{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px}
.badge{
    background:rgba(255,255,255,0.03);
    color:var(--muted);
    padding:6px 10px;
    border-radius:999px;
    font-size:13px;
    border:1px solid rgba(255,255,255,0.02);
}
.links{display:flex;gap:10px}
.links a{color:var(--muted);text-decoration:none;padding:8px;border-radius:8px}
.links a:hover{color:#fff}

.profile{
    display:flex;
    flex-direction:column;
    gap:12px;
    align-items:center;
    text-align:center;
}
.avatar{
    width:120px;
    height:120px;
    border-radius:18px;
    background:linear-gradient(135deg,#0ea5e9,#7c3aed);
    display:grid;
    place-items:center;
    font-weight:700;
    font-size:34px;
    color:white;
    box-shadow:0 10px 30px rgba(15,23,42,0.6);
}
.meta{color:var(--muted);font-size:14px}
.download{
    display:inline-block;
    margin-top:6px;
    padding:8px 12px;
    background:transparent;
    border:1px solid rgba(255,255,255,0.04);
    color:var(--muted);
    border-radius:10px;
    text-decoration:none;
}

section{margin-bottom:18px}
h2{margin:0 0 12px 0;font-size:18px}
.skills{display:flex;gap:10px;flex-wrap:wrap}
.skill{
    background:transparent;border:1px solid rgba(255,255,255,0.03);
    padding:8px 10px;border-radius:10px;color:var(--muted);font-size:13px
}

.projects-grid{
    display:grid;
    gap:12px;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
}
.project{
    padding:14px;
    border-radius:12px;
    background:linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
    border:1px solid rgba(255,255,255,0.03);
}
.project h3{margin:0 0 8px 0;font-size:15px}
.project p{margin:0;color:var(--muted);font-size:13px}

.contact-grid{
    display:grid;
    grid-template-columns:1fr 320px;
    gap:18px;
}
form{display:flex;flex-direction:column;gap:10px}
label{font-size:13px;color:var(--muted)}
input,textarea{
    background:transparent;border:1px solid rgba(255,255,255,0.04);
    color:inherit;padding:10px;border-radius:10px;font-size:14px;
}
textarea{min-height:120px;resize:vertical}
.btn{
    background:var(--accent);color:white;padding:10px;border-radius:10px;border:none;
    font-weight:600;cursor:pointer;
}

footer{color:var(--muted);font-size:13px;text-align:center;padding:18px 0;margin-top:20px}

@media (max-width:880px){
    .hero{grid-template-columns:1fr}
    .contact-grid{grid-template-columns:1fr}
    nav .nav-links{display:none}
}