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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0f0f14;
    color: #e0e0e8;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── Navigation ── */

#navbar {
    background: #14141e;
    border-bottom: 1px solid #2a2a38;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    height: 56px;
}

.logo {
    font-weight: 700;
    font-size: 1.15rem;
    background: linear-gradient(135deg, #6c5ce7, #00cec9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 0.25rem;
}

.nav-links a {
    color: #888;
    text-decoration: none;
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.nav-links a:hover {
    color: #e0e0e8;
    background: #1e1e2c;
}

.nav-links a.active {
    color: #fff;
    background: #6c5ce7;
}

/* ── Main content ── */

main {
    flex: 1;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    padding: 3rem 1.5rem;
}

.hero {
    text-align: center;
    padding: 5rem 0 3rem;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #6c5ce7, #00cec9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    color: #888;
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.page-header {
    margin-bottom: 2.5rem;
}

.page-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* ── Project cards ── */

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.project-card {
    background: #1a1a24;
    border: 1px solid #2a2a38;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    transition: border-color 0.2s;
}

.project-card:hover {
    border-color: #6c5ce7;
}

.project-card h3 {
    margin-bottom: 0.4rem;
}

.project-card h3 a {
    color: #e0e0e8;
    text-decoration: none;
    font-size: 1.05rem;
}

.project-card h3 a:hover {
    color: #6c5ce7;
}

.project-card .desc {
    color: #999;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.6rem;
}

.project-card .lang {
    display: inline-block;
    background: #2a2a38;
    color: #00cec9;
    font-size: 0.78rem;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    margin-right: 0.5rem;
}

.project-card .stars {
    color: #888;
    font-size: 0.85rem;
}

/* ── Contact form ── */

.contact-form {
    max-width: 560px;
}

.contact-form label {
    display: block;
    color: #aaa;
    font-size: 0.88rem;
    margin-bottom: 0.3rem;
    margin-top: 1.2rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    background: #1a1a24;
    border: 1px solid #2a2a38;
    border-radius: 8px;
    padding: 0.7rem 0.9rem;
    color: #e0e0e8;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #6c5ce7;
}

.contact-form button {
    margin-top: 1.5rem;
    background: #6c5ce7;
    color: #fff;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.contact-form button:hover {
    background: #5a4bd1;
}

/* ── Form success state ── */

.hidden { display: none; }

.success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #00cec9;
    color: #0f0f14;
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

#formSuccess {
    text-align: center;
    padding: 3rem 0;
}

#formSuccess h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

#formSuccess p {
    color: #999;
    margin-bottom: 1.5rem;
}

.btn-link {
    display: inline-block;
    color: #6c5ce7;
    text-decoration: none;
    font-weight: 600;
}

.btn-link:hover {
    text-decoration: underline;
}

/* ── Footer ── */

footer {
    text-align: center;
    padding: 2rem 1.5rem;
    color: #444;
    font-size: 0.85rem;
    border-top: 1px solid #1a1a24;
}
