:root {
    --bg: #f5f5f2;
    --surface: #ffffff;
    --surface-soft: #eeeeeb;

    --text: #171918;
    --muted: #6d716e;

    --border: #dedfda;
    --accent: #16805d;
    --accent-soft: rgba(22, 128, 93, 0.08);

    --shadow: 0 12px 35px rgba(0, 0, 0, 0.07);

    --container: 1050px;
}

html.dark {
    --bg: #0b0d0c;
    --surface: #121513;
    --surface-soft: #181c19;

    --text: #eeeeeb;
    --muted: #929893;

    --border: #292e2b;
    --accent: #35c992;
    --accent-soft: rgba(53, 201, 146, 0.08);

    --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}


* {
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    margin: 0;
    background: var(--bg);
    color: var(--text);

    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    font-size: 16px;
    line-height: 1.7;

    -webkit-font-smoothing: antialiased;

    transition:
        background 0.3s ease,
        color 0.3s ease;

    overflow-x: hidden;
}


a {
    color: inherit;
    text-decoration: none;
}


button {
    font: inherit;
}


.container {
    width: min(calc(100% - 40px), var(--container));
    margin-inline: auto;
}


.narrow {
    max-width: 780px;
}


/* Background */

.ambient {
    position: fixed;
    inset: 0;

    pointer-events: none;

    overflow: hidden;

    z-index: -1;
}


.orb {
    position: absolute;

    width: 350px;
    height: 350px;

    border-radius: 50%;

    filter: blur(100px);

    opacity: 0.12;
}


.orb-one {
    top: -150px;
    right: -100px;

    background: var(--accent);
}


.orb-two {
    bottom: -180px;
    left: -100px;

    background: #5485ff;
}


.cursor-glow {
    position: fixed;

    width: 260px;
    height: 260px;

    border-radius: 50%;

    pointer-events: none;

    background:
        radial-gradient(
            circle,
            var(--accent-soft),
            transparent 65%
        );

    transform: translate(-50%, -50%);

    opacity: 0;

    z-index: -1;
}


/* Header */

.header {
    position: sticky;

    top: 0;

    z-index: 100;

    background: color-mix(
        in srgb,
        var(--bg) 88%,
        transparent
    );

    backdrop-filter: blur(15px);

    border-bottom: 1px solid var(--border);
}


.header-inner {
    min-height: 68px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 25px;
}


.brand {
    font-family: "JetBrains Mono", monospace;

    font-size: 1rem;

    font-weight: 600;

    letter-spacing: -0.04em;
}


.brand span {
    color: var(--accent);
}


.desktop-nav {
    display: flex;

    align-items: center;

    gap: 24px;
}


.desktop-nav a {
    color: var(--muted);

    font-size: 0.86rem;

    transition:
        color 0.2s ease;
}


.desktop-nav a:hover {
    color: var(--text);
}


.header-actions {
    display: flex;

    align-items: center;

    gap: 10px;
}


.language-switcher {
    display: flex;

    gap: 3px;

    padding: 3px;

    border: 1px solid var(--border);

    border-radius: 8px;
}


.language-switcher a {
    padding: 3px 7px;

    border-radius: 5px;

    color: var(--muted);

    font-size: 0.7rem;

    font-weight: 700;
}


.language-switcher a.active {
    color: var(--text);

    background: var(--surface-soft);
}


.theme-toggle,
.menu-btn {
    width: 34px;
    height: 34px;

    display: grid;
    place-items: center;

    border: 1px solid var(--border);

    border-radius: 8px;

    background: var(--surface);

    color: var(--text);

    cursor: pointer;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease;
}


.theme-toggle:hover,
.menu-btn:hover {
    border-color: var(--accent);

    transform: translateY(-1px);
}


.menu-btn {
    display: none;
}


.mobile-nav {
    display: none;

    padding: 15px 20px 20px;

    border-top: 1px solid var(--border);
}


.mobile-nav a {
    display: block;

    padding: 8px 0;

    color: var(--muted);
}


.mobile-language {
    display: flex;

    gap: 15px;

    padding-top: 10px;

    border-top: 1px solid var(--border);

    margin-top: 10px;
}


.mobile-language .active {
    color: var(--accent);
}


/* Hero */

.hero {
    padding: 100px 0 80px;
}


.hero-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        330px;

    align-items: center;

    gap: 80px;
}


.eyebrow {
    display: flex;

    align-items: center;

    gap: 9px;

    margin-bottom: 20px;

    color: var(--muted);

    font-family: "JetBrains Mono", monospace;

    font-size: 0.75rem;
}


.status-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--accent);
}


.hero h1 {
    max-width: 700px;

    margin: 0 0 14px;

    font-size: clamp(2.8rem, 7vw, 5rem);

    line-height: 1.02;

    letter-spacing: -0.065em;

    font-weight: 800;
}


.hero h1 span {
    display: block;

    color: var(--accent);
}


.hero-role {
    margin: 0 0 22px;

    color: var(--text);

    font-size: 1rem;

    font-weight: 600;
}


.hero-description {
    max-width: 610px;

    margin: 0 0 28px;

    color: var(--muted);

    font-size: 1.02rem;
}


.hero-buttons {
    display: flex;

    flex-wrap: wrap;

    gap: 10px;
}


.button {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 42px;

    padding: 0 18px;

    border-radius: 8px;

    font-size: 0.85rem;

    font-weight: 600;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}


.button:hover {
    transform: translateY(-2px);
}


.button-primary {
    background: var(--text);

    color: var(--bg);
}


.button-secondary {
    border: 1px solid var(--border);

    background: var(--surface);

    color: var(--text);
}


/* Profile */

.profile-card {
    padding: 25px;

    border: 1px solid var(--border);

    border-radius: 16px;

    background: var(--surface);

    box-shadow: var(--shadow);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


.profile-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 20px 55px rgba(0, 0, 0, 0.1);
}


.profile-image-wrap {
    position: relative;

    width: 92px;
    height: 92px;

    margin-bottom: 18px;
}


.profile-image {
    width: 100%;
    height: 100%;

    display: block;

    border-radius: 50%;

    object-fit: cover;

    border: 3px solid var(--surface-soft);
}


.profile-online {
    position: absolute;

    right: 3px;
    bottom: 5px;

    width: 15px;
    height: 15px;

    border: 3px solid var(--surface);

    border-radius: 50%;

    background: #35c992;
}


.profile-info h2 {
    margin: 0;

    font-size: 1.25rem;

    letter-spacing: -0.03em;
}


.profile-info p {
    margin: 2px 0;

    color: var(--accent);

    font-family: "JetBrains Mono", monospace;

    font-size: 0.78rem;
}


.profile-location {
    margin-top: 6px;

    color: var(--muted);

    font-size: 0.78rem;
}


.profile-line {
    height: 1px;

    margin: 20px 0;

    background: var(--border);
}


.profile-stats {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 10px;
}


.profile-stats div {
    display: flex;

    flex-direction: column;
}


.profile-stats strong {
    font-size: 0.8rem;
}


.profile-stats span {
    color: var(--muted);

    font-size: 0.68rem;
}


.profile-github {
    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-top: 20px;

    padding-top: 14px;

    border-top: 1px solid var(--border);

    color: var(--accent);

    font-size: 0.82rem;

    font-weight: 600;
}


/* Sections */

.section {
    padding: 70px 0;
}


.section-heading {
    display: flex;

    align-items: baseline;

    gap: 15px;

    margin-bottom: 30px;
}


.section-heading > span {
    color: var(--accent);

    font-family: "JetBrains Mono", monospace;

    font-size: 0.7rem;

    font-weight: 600;
}


.section-heading h2 {
    margin: 0;

    font-size: 1.6rem;

    letter-spacing: -0.04em;
}


.about-text {
    color: var(--muted);

    font-size: 1rem;
}


.about-text p {
    margin: 0 0 18px;
}


.about-text p:last-child {
    margin-bottom: 0;
}


/* Skills */

.skills-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 15px;
}


.skill-card {
    padding: 24px;

    border: 1px solid var(--border);

    border-radius: 13px;

    background: var(--surface);

    transition:
        transform 0.25s ease,
        border-color 0.25s ease;
}


.skill-card:hover {
    transform: translateY(-3px);

    border-color: var(--accent);
}


.skill-number {
    margin-bottom: 25px;

    color: var(--accent);

    font-family: "JetBrains Mono", monospace;

    font-size: 0.7rem;
}


.skill-card h3 {
    margin: 0 0 8px;

    font-size: 1rem;
}


.skill-card p {
    margin: 0 0 18px;

    color: var(--muted);

    font-size: 0.85rem;
}


/* Tags */

.tags {
    display: flex;

    flex-wrap: wrap;

    gap: 6px;
}


.tags span {
    padding: 4px 8px;

    border: 1px solid var(--border);

    border-radius: 6px;

    background: var(--surface-soft);

    color: var(--muted);

    font-family: "JetBrains Mono", monospace;

    font-size: 0.65rem;
}


/* Projects */

.projects {
    display: flex;

    flex-direction: column;

    gap: 12px;
}


.project {
    padding: 25px;

    border: 1px solid var(--border);

    border-radius: 13px;

    background: var(--surface);

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}


.project:hover {
    transform: translateY(-3px);

    border-color: var(--accent);

    box-shadow: var(--shadow);
}


.project-top {
    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    gap: 20px;
}


.project-type {
    display: block;

    margin-bottom: 5px;

    color: var(--accent);

    font-family: "JetBrains Mono", monospace;

    font-size: 0.65rem;

    font-weight: 600;
}


.project h3 {
    margin: 0;

    font-size: 1.15rem;

    letter-spacing: -0.025em;
}


.project-year {
    color: var(--muted);

    font-family: "JetBrains Mono", monospace;

    font-size: 0.7rem;
}


.project > p {
    max-width: 700px;

    margin: 18px 0;

    color: var(--muted);

    font-size: 0.88rem;
}


.project-footer {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;
}


.project-footer a {
    flex-shrink: 0;

    color: var(--accent);

    font-size: 0.78rem;

    font-weight: 600;
}


.project-footer a:hover {
    text-decoration: underline;
}


/* Achievements */

.achievements {
    display: flex;

    flex-direction: column;

    border-top: 1px solid var(--border);
}


.achievement {
    display: grid;

    grid-template-columns: 55px 1fr;

    gap: 20px;

    padding: 25px 0;

    border-bottom: 1px solid var(--border);
}


.achievement-icon {
    width: 44px;
    height: 44px;

    display: grid;

    place-items: center;

    border: 1px solid var(--border);

    border-radius: 9px;

    background: var(--surface);

    color: var(--accent);

    font-family: "JetBrains Mono", monospace;

    font-size: 0.72rem;

    font-weight: 600;
}


.achievement-date {
    color: var(--accent);

    font-family: "JetBrains Mono", monospace;

    font-size: 0.65rem;
}


.achievement h3 {
    margin: 5px 0;

    font-size: 0.98rem;
}


.achievement p {
    margin: 0;

    color: var(--muted);

    font-size: 0.83rem;
}


/* Contact */

.contact-box {
    display: grid;

    grid-template-columns: 0.8fr 1.2fr;

    gap: 60px;

    padding: 35px;

    border: 1px solid var(--border);

    border-radius: 15px;

    background: var(--surface);
}


.contact-intro h3 {
    margin: 0 0 8px;

    font-size: 1.5rem;

    letter-spacing: -0.04em;
}


.contact-intro p {
    margin: 0;

    color: var(--muted);

    font-size: 0.88rem;
}


.contact-links {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 10px;
}


.contact-item {
    display: flex;

    flex-direction: column;

    gap: 3px;

    padding: 13px;

    border: 1px solid var(--border);

    border-radius: 9px;

    background: var(--bg);

    transition:
        border-color 0.2s ease,
        transform 0.2s ease;
}


.contact-item:hover {
    border-color: var(--accent);

    transform: translateY(-2px);
}


.contact-item small {
    color: var(--muted);

    font-family: "JetBrains Mono", monospace;

    font-size: 0.62rem;
}


.contact-item strong {
    font-size: 0.75rem;

    overflow-wrap: anywhere;
}


/* Footer */

footer {
    padding: 30px 0;

    border-top: 1px solid var(--border);

    color: var(--muted);

    font-size: 0.72rem;
}


.footer-inner {
    display: flex;

    justify-content: space-between;

    gap: 20px;
}


/* Reveal */

.reveal {
    opacity: 0;

    transform: translateY(15px);

    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
}


.reveal.visible {
    opacity: 1;

    transform: none;
}


/* Responsive */

@media (max-width: 850px) {

    .desktop-nav,
    .language-switcher {
        display: none;
    }

    .menu-btn {
        display: grid;
    }

    .hero {
        padding-top: 70px;
    }

    .hero-grid {
        grid-template-columns: 1fr;

        gap: 45px;
    }

    .profile-card {
        max-width: 400px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .contact-box {
        grid-template-columns: 1fr;

        gap: 30px;
    }

    .mobile-nav.open {
        display: block;
    }
}


@media (max-width: 600px) {

    .container {
        width: min(calc(100% - 28px), var(--container));
    }

    .hero {
        padding: 55px 0 50px;
    }

    .hero h1 {
        font-size: clamp(2.5rem, 13vw, 4rem);
    }

    .section {
        padding: 50px 0;
    }

    .project {
        padding: 20px;
    }

    .project-top {
        flex-direction: column;

        gap: 5px;
    }

    .project-footer {
        align-items: flex-start;

        flex-direction: column;
    }

    .achievement {
        grid-template-columns: 45px 1fr;

        gap: 13px;
    }

    .achievement-icon {
        width: 40px;
        height: 40px;
    }

    .contact-box {
        padding: 22px;
    }

    .contact-links {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        flex-direction: column;
    }
}


@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;

        animation-duration: 0.01ms !important;

        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;

        transform: none;
    }
}