:root {
    --bg: #0b1020;
    --surface: #111933;
    --surface-soft: #162142;
    --text: #f4f7ff;
    --muted: #a8b3d1;
    --brand: #2563eb;
    --brand-dark: #1e40af;
    --line: #253259;
    --radius: 16px;
    --max: 1120px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: radial-gradient(circle at top right, #1a2b5f 0%, var(--bg) 45%);
    color: var(--text);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(92%, var(--max));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(8px);
    background: rgba(11, 16, 32, 0.85);
    border-bottom: 1px solid var(--line);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 0;
}

.brand img {
    width: 160px;
    height: auto;
    display: block;
}

.brand {
    display: inline-flex;
    align-items: center;
}

.brand-logo {
    width: 148px;
    height: auto;
    display: block;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 1rem;
    align-items: start;
}

.hero-highlight h2 {
    font-size: 1.2rem;
    margin-bottom: 0.7rem;
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-link {
    display: inline-block;
    color: var(--muted);
    padding: 0.45rem 0.8rem;
    border-radius: 10px;
    font-weight: 600;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.is-active {
    color: var(--text);
    background: var(--surface-soft);
}

.hero {
    padding: 5rem 0 3rem;
}

.hero h1 {
    margin: 0 0 1rem;
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1.2;
}

.hero p {
    margin: 0;
    max-width: 680px;
    color: var(--muted);
    font-size: 1.05rem;
}

.hero-actions {
    margin-top: 1.5rem;
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 0.7rem 1rem;
    border-radius: 10px;
    font-weight: 700;
}

.btn-primary {
    background: var(--brand);
    color: #fff;
}

.btn-primary:hover {
    background: var(--brand-dark);
}

.btn-secondary {
    border: 1px solid var(--line);
    background: var(--surface);
}

.section {
    padding: 2rem 0 3.2rem;
}

.section h2 {
    margin-top: 0;
    margin-bottom: 0.9rem;
    font-size: clamp(1.45rem, 3vw, 2rem);
}

.section-intro {
    margin: 0 0 1.3rem;
    color: var(--muted);
    max-width: 760px;
}

.grid {
    display: grid;
    gap: 1rem;
}

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

.card {
    background: linear-gradient(180deg, var(--surface) 0%, #0f1730 100%);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1rem;
}

.card img {
    width: 100%;
    height: 140px;
    object-fit: contain;
    border-radius: 10px;
    background: #090f22;
    border: 1px solid var(--line);
    padding: 0.6rem;
}

.project-placeholder {
    width: 100%;
    height: 140px;
    border-radius: 10px;
    border: 1px dashed #3b4f87;
    background: #090f22;
    display: grid;
    place-items: center;
    color: var(--muted);
    font-weight: 600;
    text-align: center;
    padding: 0.6rem;
}

.card h3 {
    margin: 0.85rem 0 0.45rem;
    font-size: 1.05rem;
}

.card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.project-link {
    margin-top: 0.9rem;
}

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

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

.faq-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.list-clean {
    margin: 0;
    padding-left: 1rem;
    color: var(--muted);
}

.site-footer {
    border-top: 1px solid var(--line);
    background: rgba(9, 15, 34, 0.95);
    padding-top: 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.site-footer h2,
.site-footer h3 {
    margin-top: 0;
}

.site-footer p,
.footer-list {
    color: var(--muted);
}

.footer-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.5rem;
}

.footer-list a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid var(--line);
    margin-top: 1.6rem;
    padding: 0.9rem 0 1.2rem;
    color: var(--muted);
    font-size: 0.92rem;
}

@media (max-width: 700px) {
    .nav-wrap {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero {
        padding-top: 3.3rem;
    }

    .brand-logo {
        width: 128px;
    }
}

@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
}
