* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: #0d1117;
    color: #c9d1d9;
    line-height: 1.6;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 40px;
    background: rgba(22,27,34,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #21262d;
    position: sticky; top: 0; z-index: 100;
}
.nav-brand { font-size: 1.1em; font-weight: 700; color: #58a6ff; }
.nav-links { display: flex; gap: 20px; }
.nav-links a { color: #8b949e; text-decoration: none; font-size: 0.9em; transition: 0.2s; }
.nav-links a:hover { color: #fff; }

section { padding: 60px 20px; max-width: 700px; margin: 0 auto; }
h2 { text-align: center; font-size: 1.8em; color: #58a6ff; margin-bottom: 30px; }

/* Hero with Cover */
#home { padding: 0; max-width: 100%; position: relative; }
.cover {
    width: 100%; height: 280px;
    background: url('cover.jpg') center/cover no-repeat;
    position: relative;
}
.cover::after {
    content: '';
    position: absolute; bottom: 0; left: 0; right: 0;
    height: 80px;
    background: linear-gradient(transparent, #0d1117);
}
.hero-content {
    text-align: center;
    padding: 0 20px 60px;
    margin-top: -60px;
    position: relative;
    z-index: 1;
}
.hero-img {
    width: 130px; height: 130px; border-radius: 50%;
    object-fit: cover; border: 4px solid #0d1117;
    box-shadow: 0 0 0 3px #58a6ff;
    margin-bottom: 16px;
}
#home h1 { font-size: 2.3em; color: #f0f6fc; }
.subtitle { color: #8b949e; font-size: 1em; margin: 6px 0; }
.location { color: #8b949e; margin: 8px 0 20px; }
.location i { color: #58a6ff; margin-right: 6px; }
.hero-social { display: flex; justify-content: center; gap: 16px; }
.hero-social a { color: #8b949e; font-size: 1.3em; transition: 0.2s; }
.hero-social a:hover { color: #58a6ff; transform: translateY(-2px); }

/* About */
.about-text { text-align: center; color: #8b949e; font-size: 1.05em; max-width: 550px; margin: 0 auto; }

/* Skills */
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.skill {
    background: #161b22; border: 1px solid #21262d; border-radius: 10px;
    padding: 16px; text-align: center; font-size: 0.95em;
}
.skill i { color: #58a6ff; margin-right: 6px; }
.skill span { display: block; color: #58a6ff; font-weight: 600; margin-top: 4px; }

/* Projects */
.projects-grid { display: grid; gap: 16px; }
.project-card {
    background: #161b22; border: 1px solid #21262d; border-radius: 12px;
    padding: 22px; transition: 0.2s;
}
.project-card:hover { border-color: #58a6ff; }
.project-card h3 { color: #f0f6fc; margin-bottom: 8px; }
.project-card p { color: #8b949e; font-size: 0.9em; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-card {
    background: #161b22; border: 1px solid #21262d; border-radius: 12px;
    padding: 20px; text-align: center; text-decoration: none; color: #c9d1d9;
    transition: 0.2s; display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.contact-card:hover { border-color: #58a6ff; transform: translateY(-2px); }
.contact-card i { font-size: 1.5em; color: #58a6ff; }
.contact-card span { font-size: 0.9em; word-break: break-all; }

footer { text-align: center; padding: 30px; color: #484f58; font-size: 0.85em; border-top: 1px solid #21262d; margin-top: 40px; }

@media (max-width: 600px) {
    nav { padding: 14px 16px; }
    .nav-links { gap: 12px; }
    .nav-links a { font-size: 0.8em; }
    .cover { height: 200px; }
    .hero-img { width: 100px; height: 100px; }
    #home h1 { font-size: 1.7em; }
    .skills-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
}
