:root {
    --background: #0a0a0b;
    --background-secondary: #111113;

    --card: #151518;
    --border: #27272c;

    --text: #f5f5f5;
    --text-secondary: #9b9ba1;

    --accent: #8b5cf6;
    --accent-light: #a78bfa;

    --green: #3ddc97;

    --max-width: 1180px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--background);
    color: var(--text);

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    line-height: 1.6;
}


/* =====================
   Navigation
===================== */

.navbar {
    position: sticky;
    top: 0;
    z-index: 100;

    background: rgba(10, 10, 11, 0.85);
    backdrop-filter: blur(20px);

    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    width: min(var(--max-width), calc(100% - 48px));
    height: 72px;

    margin: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    color: var(--text);

    text-decoration: none;

    font-weight: 700;

    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-mark {
    color: var(--accent-light);
}

.nav-links {
    display: flex;
    gap: 28px;
}

.nav-links a {
    color: var(--text-secondary);

    text-decoration: none;

    font-size: 14px;

    transition: 0.2s;
}

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

.menu-button {
    display: none;

    background: none;
    border: none;

    color: white;

    font-size: 24px;

    cursor: pointer;
}


/* =====================
   Hero
===================== */

.hero {
    width: min(var(--max-width), calc(100% - 48px));

    margin: auto;

    min-height: 720px;

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 80px;

    align-items: center;
}

.status {
    display: inline-flex;

    align-items: center;

    gap: 10px;

    color: var(--text-secondary);

    font-size: 13px;

    margin-bottom: 28px;
}

.status-dot {
    width: 8px;
    height: 8px;

    background: var(--green);

    border-radius: 50%;

    box-shadow:
        0 0 0 4px rgba(61, 220, 151, 0.08);
}

.hero h1 {
    font-size: clamp(48px, 7vw, 86px);

    line-height: 1.05;

    letter-spacing: -0.05em;

    max-width: 700px;
}

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

.hero-description {
    margin-top: 28px;

    color: var(--text-secondary);

    max-width: 560px;

    font-size: 17px;
}

.hero-buttons {
    display: flex;

    gap: 14px;

    margin-top: 36px;
}

.button {
    padding: 13px 20px;

    border-radius: 10px;

    text-decoration: none;

    display: inline-flex;

    align-items: center;

    gap: 10px;

    font-size: 14px;

    font-weight: 600;

    transition: 0.2s;
}

.primary {
    background: var(--accent);

    color: white;
}

.primary:hover {
    transform: translateY(-2px);

    background: var(--accent-light);
}

.secondary {
    border: 1px solid var(--border);

    color: var(--text);
}

.secondary:hover {
    background: var(--card);
}


/* =====================
   Code Window
===================== */

.code-window {
    background: linear-gradient(
        145deg,
        #18181c,
        #101012
    );

    border: 1px solid var(--border);

    border-radius: 16px;

    overflow: hidden;

    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.4);
}

.window-header {
    height: 46px;

    display: flex;

    align-items: center;

    gap: 7px;

    padding: 0 16px;

    border-bottom: 1px solid var(--border);
}

.window-header > span {
    width: 10px;
    height: 10px;

    border-radius: 50%;

    background: #3a3a3f;
}

.window-title {
    margin-left: 10px;

    color: var(--text-secondary);

    font-size: 12px;
}

pre {
    padding: 28px;

    overflow-x: auto;

    font-family:
        "SFMono-Regular",
        Consolas,
        monospace;

    font-size: 14px;

    line-height: 1.8;
}

.code-purple {
    color: #c084fc;
}

.code-blue {
    color: #60a5fa;
}

.code-green {
    color: #4ade80;
}

.code-gray {
    color: #71717a;
}


/* =====================
   Stats
===================== */

.stats-section {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);

    background: var(--background-secondary);
}

.stats-container {
    width: min(var(--max-width), calc(100% - 48px));

    margin: auto;

    min-height: 150px;

    display: grid;

    grid-template-columns: repeat(3, 1fr);
}

.stat {
    display: flex;

    flex-direction: column;

    justify-content: center;

    gap: 6px;
}

.stat strong {
    font-size: 18px;

    letter-spacing: 0.08em;
}

.stat span {
    color: var(--text-secondary);

    font-size: 13px;
}


/* =====================
   Sections
===================== */

.section {
    width: min(var(--max-width), calc(100% - 48px));

    margin: auto;

    padding: 130px 0;
}

.section-header {
    display: flex;

    justify-content: space-between;

    align-items: end;

    gap: 40px;

    margin-bottom: 56px;
}

.section-label {
    color: var(--accent-light);

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 0.14em;

    margin-bottom: 14px;
}

.section h2,
.about-section h2 {
    font-size: clamp(34px, 5vw, 52px);

    letter-spacing: -0.04em;
}

.section-description {
    color: var(--text-secondary);

    max-width: 420px;
}


/* =====================
   Cards
===================== */

.card-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 20px;
}

.project-card {
    background: var(--card);

    border: 1px solid var(--border);

    border-radius: 16px;

    padding: 28px;

    display: flex;

    flex-direction: column;

    min-height: 360px;

    transition:
        transform 0.25s,
        border-color 0.25s;
}

.project-card:hover {
    transform: translateY(-6px);

    border-color: #44444c;
}

.card-top {
    display: flex;

    align-items: center;

    justify-content: space-between;
}

.card-icon {
    width: 46px;
    height: 46px;

    display: grid;

    place-items: center;

    background: #1f1f24;

    border-radius: 12px;

    font-size: 22px;
}

.tag {
    color: var(--text-secondary);

    border: 1px solid var(--border);

    border-radius: 20px;

    padding: 4px 8px;

    font-size: 10px;

    letter-spacing: 0.08em;
}

.tag.active {
    color: var(--green);

    border-color:
        rgba(61, 220, 151, 0.3);
}

.project-card h3 {
    margin-top: 28px;

    font-size: 21px;
}

.project-card p {
    color: var(--text-secondary);

    margin-top: 14px;
}

.tags {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin-top: 24px;
}

.tags span {
    background: #202025;

    color: var(--text-secondary);

    padding: 5px 9px;

    border-radius: 6px;

    font-size: 12px;
}

.card-link {
    margin-top: auto;

    padding-top: 28px;

    color: var(--text);

    text-decoration: none;

    font-size: 14px;

    font-weight: 600;
}

.card-link:hover {
    color: var(--accent-light);
}


/* =====================
   Project List
===================== */

.projects-section {
    padding-top: 0;
}

.project-list {
    border-top: 1px solid var(--border);
}

.list-project {
    display: flex;

    align-items: center;

    gap: 28px;

    padding: 28px 0;

    border-bottom: 1px solid var(--border);

    color: inherit;

    text-decoration: none;

    transition: 0.2s;
}

.list-project:hover {
    padding-left: 12px;

    background:
        linear-gradient(
            90deg,
            rgba(139, 92, 246, 0.06),
            transparent
        );
}

.list-icon {
    color: var(--text-secondary);

    font-family: monospace;
}

.list-content {
    flex: 1;
}

.list-content h3 {
    font-size: 18px;
}

.list-content p {
    color: var(--text-secondary);

    margin-top: 4px;

    font-size: 14px;
}

.list-arrow {
    font-size: 22px;

    color: var(--text-secondary);
}


/* =====================
   About
===================== */

.about-section {
    width: min(var(--max-width), calc(100% - 48px));

    margin: auto;

    padding: 120px 0;

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 80px;

    align-items: center;
}

.about-content > p:not(.section-label) {
    color: var(--text-secondary);

    margin-top: 22px;

    max-width: 560px;
}

.code-window.small pre {
    font-size: 13px;
}


/* =====================
   Footer
===================== */

footer {
    border-top: 1px solid var(--border);

    background: var(--background-secondary);
}

.footer-container {
    width: min(var(--max-width), calc(100% - 48px));

    margin: auto;

    padding: 50px 0;

    display: flex;

    justify-content: space-between;

    gap: 30px;
}

.footer-logo {
    font-weight: 700;
}

.footer-container p {
    color: var(--text-secondary);

    font-size: 13px;

    margin-top: 8px;
}

.footer-links {
    display: flex;

    gap: 22px;
}

.footer-links a {
    color: var(--text-secondary);

    text-decoration: none;

    font-size: 13px;
}

.footer-links a:hover {
    color: var(--text);
}


/* =====================
   Responsive
===================== */

@media (max-width: 900px) {

    .hero {
        grid-template-columns: 1fr;

        padding: 100px 0;

        min-height: auto;
    }

    .hero-visual {
        max-width: 600px;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .about-section {
        grid-template-columns: 1fr;

        gap: 50px;
    }

    .section-header {
        flex-direction: column;

        align-items: start;
    }

}


@media (max-width: 700px) {

    .nav-links {
        display: none;
    }

    .menu-button {
        display: block;
    }

    .hero h1 {
        font-size: 52px;
    }

    .stats-container {
        grid-template-columns: 1fr;

        padding: 30px 0;

        gap: 28px;
    }

    .footer-container {
        flex-direction: column;
    }

    .footer-links {
        flex-wrap: wrap;
    }

}


@media (max-width: 500px) {

    .nav-container,
    .hero,
    .section,
    .about-section,
    .stats-container,
    .footer-container {
        width: min(100% - 32px, var(--max-width));
    }

    .hero-buttons {
        flex-direction: column;

        align-items: stretch;
    }

    .button {
        justify-content: center;
    }

    pre {
        padding: 20px;

        font-size: 12px;
    }

}