:root {
    --bg: #f7f8fa;
    --surface: #ffffff;
    --dark: #0a0f1a;
    --dark-soft: #111827;

    --text: #18202d;
    --text-light: #687386;
    --text-dark-section: #aeb7c7;

    --accent: #42d3b2;
    --accent-blue: #5da9ff;

    --border: #e4e8ee;
    --border-dark: rgba(255,255,255,0.10);

    --container: 1180px;

    --font-main: "Inter", sans-serif;
    --font-mono: "JetBrains Mono", monospace;

    --radius: 16px;
    --transition: 0.3s ease;
}


/* -------------------------
   RESET
------------------------- */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

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

button {
    font-family: inherit;
}

.container {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}


/* -------------------------
   HEADER
------------------------- */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;

    z-index: 1000;

    background: rgba(10, 15, 26, 0.88);
    backdrop-filter: blur(16px);

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

.nav-container {
    height: 76px;

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

.logo {
    color: #fff;

    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.04em;
}

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

.nav {
    display: flex;
    align-items: center;
    gap: 34px;
}

.nav a {
    color: #aeb7c7;

    font-size: 0.84rem;
    font-weight: 500;

    transition: var(--transition);
}

.nav a:hover {
    color: #fff;
}

.menu-toggle {
    display: none;

    width: 40px;
    height: 40px;

    border: 0;
    background: transparent;

    cursor: pointer;
}

.menu-toggle span {
    display: block;

    width: 24px;
    height: 2px;

    margin: 5px auto;

    background: #fff;
}


/* -------------------------
   HERO
------------------------- */

.hero {
    min-height: 100vh;

    padding: 150px 0 100px;

    display: flex;
    align-items: center;

    color: #fff;

    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(66,211,178,0.12),
            transparent 30%
        ),
        radial-gradient(
            circle at 20% 80%,
            rgba(93,169,255,0.10),
            transparent 30%
        ),
        var(--dark);

    position: relative;
}

.hero::before {
    content: "";

    position: absolute;
    inset: 0;

    opacity: 0.25;

    background-image:
        linear-gradient(
            rgba(255,255,255,0.03) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,0.03) 1px,
            transparent 1px
        );

    background-size: 60px 60px;

    pointer-events: none;
}

.hero-grid {
    position: relative;
    z-index: 1;

    display: grid;
    grid-template-columns: 1.1fr 0.9fr;

    gap: 90px;

    align-items: center;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 28px;

    color: var(--accent);

    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

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

    border-radius: 50%;

    background: var(--accent);

    box-shadow: 0 0 0 5px rgba(66,211,178,0.12);
}

.hero h1 {
    max-width: 760px;

    font-size: clamp(3rem, 6vw, 5.7rem);
    line-height: 0.98;

    letter-spacing: -0.065em;
}

.hero h1 span {
    display: block;
    color: #9da9bc;
}

.hero-text {
    max-width: 650px;

    margin: 34px 0;

    color: #aeb7c7;

    font-size: 1.08rem;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;

    margin-bottom: 45px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    padding: 13px 21px;

    border-radius: 8px;

    font-size: 0.9rem;
    font-weight: 600;

    transition: var(--transition);
}

.button-primary {
    color: #07110f;
    background: var(--accent);
}

.button-primary:hover {
    transform: translateY(-2px);
    background: #66e1c5;
}

.button-secondary {
    color: #fff;
    border: 1px solid rgba(255,255,255,0.16);
}

.button-secondary:hover {
    border-color: rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.05);
}

.hero-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tech span {
    padding: 6px 10px;

    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 6px;

    color: #8e99ac;

    font-family: var(--font-mono);
    font-size: 0.68rem;
}


/* -------------------------
   HERO VISUAL
------------------------- */

.hero-visual {
    position: relative;

    min-height: 500px;

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

.profile-card {
    position: relative;
    z-index: 2;

    width: 300px;

    padding: 20px;

    background: rgba(255,255,255,0.055);

    border: 1px solid rgba(255,255,255,0.12);

    border-radius: 18px;

    backdrop-filter: blur(14px);

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

.profile-image-wrapper {
    overflow: hidden;

    aspect-ratio: 1 / 1;

    border-radius: 12px;

    background: #202938;
}

.profile-image {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.profile-info {
    padding: 18px 4px 12px;
}

.profile-info h2 {
    font-size: 1.25rem;
}

.profile-info p {
    color: #9ca7b8;

    font-size: 0.78rem;
}

.profile-location {
    padding-top: 12px;

    border-top: 1px solid rgba(255,255,255,0.08);

    color: #8995a9;

    font-size: 0.72rem;
}

.profile-location span {
    color: var(--accent);
    margin-right: 6px;
}

.code-card {
    position: absolute;

    right: -10px;
    bottom: 10px;

    width: 360px;

    padding: 0;

    overflow: hidden;

    background: #101722;

    border: 1px solid rgba(255,255,255,0.12);

    border-radius: 12px;

    box-shadow: 0 25px 60px rgba(0,0,0,0.4);
}

.code-header {
    height: 38px;

    display: flex;
    align-items: center;

    gap: 7px;

    padding: 0 13px;

    background: #171f2c;

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

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

    border-radius: 50%;
}

.code-dot.red {
    background: #ff605c;
}

.code-dot.yellow {
    background: #ffbd44;
}

.code-dot.green {
    background: #00ca4e;
}

.code-title {
    margin-left: 7px;

    color: #6f7b8e;

    font-family: var(--font-mono);
    font-size: 0.62rem;
}

.code-card pre {
    padding: 20px;

    overflow-x: auto;

    color: #aeb9ca;

    font-family: var(--font-mono);
    font-size: 0.65rem;
    line-height: 1.8;
}

.code-keyword {
    color: #c792ea;
}

.code-string {
    color: #c3e88d;
}

.code-comment {
    color: #546176;
}


/* -------------------------
   SECTIONS
------------------------- */

.section {
    padding: 120px 0;
}

.dark-section {
    color: #fff;
    background: var(--dark);
}

.section-heading {
    display: flex;
    align-items: baseline;
    gap: 18px;

    margin-bottom: 65px;
}

.section-number {
    color: var(--accent);

    font-family: var(--font-mono);
    font-size: 0.7rem;
}

.section-heading h2 {
    font-size: clamp(2rem, 4vw, 3.3rem);

    letter-spacing: -0.05em;
}

.section-intro {
    max-width: 700px;

    margin-top: -35px;
    margin-bottom: 60px;

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


/* -------------------------
   VALUE
------------------------- */

.value-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 90px;

    margin-bottom: 70px;
}

.large-text {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    line-height: 1.2;

    letter-spacing: -0.04em;
}

.large-text strong {
    color: var(--accent);
    font-weight: 600;
}

.value-text {
    color: var(--text-light);
}

.value-text p + p {
    margin-top: 20px;
}

.strengths {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

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

.strength-card {
    padding: 35px 30px 15px;

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

.strength-card:last-child {
    border-right: 0;
}

.strength-number {
    margin-bottom: 25px;

    color: var(--accent);

    font-family: var(--font-mono);
    font-size: 0.7rem;
}

.strength-card h3 {
    margin-bottom: 12px;

    font-size: 1.1rem;
}

.strength-card p {
    color: var(--text-light);

    font-size: 0.88rem;
}


/* -------------------------
   SKILLS
------------------------- */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 1px;

    background: var(--border-dark);

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

.skill-category {
    min-height: 220px;

    padding: 30px;

    background: var(--dark);
}

.skill-icon {
    margin-bottom: 25px;

    color: var(--accent);

    font-family: var(--font-mono);
    font-size: 1.1rem;
}

.skill-category h3 {
    margin-bottom: 22px;

    font-size: 1rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.tags span,
.timeline-tags span {
    padding: 5px 8px;

    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 5px;

    color: #8995a8;

    font-family: var(--font-mono);
    font-size: 0.62rem;
}


/* -------------------------
   PROJECTS
------------------------- */

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

.project {
    display: grid;
    grid-template-columns: 100px 1fr;

    gap: 40px;

    padding: 50px 0;

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

    transition: var(--transition);
}

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

.project-number {
    color: var(--accent);

    font-family: var(--font-mono);
    font-size: 0.72rem;
}

.project-meta {
    margin-bottom: 12px;

    color: #748096;

    font-family: var(--font-mono);
    font-size: 0.65rem;
}

.project h3 {
    margin-bottom: 15px;

    font-size: 1.55rem;

    letter-spacing: -0.03em;
}

.project p {
    max-width: 760px;

    color: var(--text-light);

    font-size: 0.92rem;
}


/* -------------------------
   EXPERIENCE
------------------------- */

.timeline {
    position: relative;

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

    margin-left: 100px;
}

.timeline-item {
    position: relative;

    display: grid;
    grid-template-columns: 180px 1fr;

    gap: 40px;

    padding: 0 0 60px 45px;
}

.timeline-item::before {
    content: "";

    position: absolute;

    left: -5px;
    top: 5px;

    width: 9px;
    height: 9px;

    border-radius: 50%;

    background: var(--accent);

    box-shadow: 0 0 0 5px rgba(66,211,178,0.08);
}

.timeline-date {
    color: #69758a;

    font-family: var(--font-mono);
    font-size: 0.65rem;
}

.timeline-content h3 {
    margin-bottom: 3px;

    font-size: 1.2rem;
}

.timeline-content h4 {
    margin-bottom: 15px;

    color: var(--accent);

    font-size: 0.8rem;
    font-weight: 500;
}

.timeline-content p {
    max-width: 700px;

    margin-bottom: 17px;

    color: var(--text-dark-section);

    font-size: 0.86rem;
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.timeline-tags span {
    border-color: rgba(255,255,255,0.08);
}


/* -------------------------
   HOW I WORK
------------------------- */

.work-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 100px;
}

.work-quote {
    position: relative;
}

.quote-mark {
    position: absolute;

    top: -45px;
    left: -10px;

    color: rgba(66,211,178,0.15);

    font-size: 7rem;
    line-height: 1;
}

.work-quote h3 {
    position: relative;

    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.15;

    letter-spacing: -0.05em;
}

.work-text {
    color: var(--text-light);
}

.work-text p + p {
    margin-top: 20px;
}


/* -------------------------
   ABOUT
------------------------- */

.about-section {
    background: #eef1f5;
}

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

    gap: 100px;
}

.about-grid > div:last-child {
    color: var(--text-light);
}

.about-grid p + p {
    margin-top: 20px;
}


/* -------------------------
   CONTACT
------------------------- */

.contact-section {
    padding: 130px 0;

    color: #fff;

    background:
        radial-gradient(
            circle at 80% 40%,
            rgba(66,211,178,0.13),
            transparent 35%
        ),
        var(--dark);
}

.contact-content {
    max-width: 850px;
}

.contact-content h2 {
    margin: 30px 0;

    font-size: clamp(3.2rem, 7vw, 6.5rem);
    line-height: 0.95;

    letter-spacing: -0.07em;
}

.contact-content h2 span {
    color: var(--accent);
}

.contact-content > p {
    max-width: 600px;

    margin-bottom: 35px;

    color: #9ca7b8;
}

.button-large {
    padding: 16px 25px;
}

.contact-links {
    display: flex;
    gap: 30px;

    margin-top: 45px;
}

.contact-links a {
    color: #7e8a9e;

    font-size: 0.82rem;

    transition: var(--transition);
}

.contact-links a:hover {
    color: #fff;
}


/* -------------------------
   FOOTER
------------------------- */

.footer {
    color: #6c788c;

    background: #070b12;

    font-family: var(--font-mono);
    font-size: 0.62rem;
}

.footer-content {
    min-height: 75px;

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


/* -------------------------
   RESPONSIVE
------------------------- */

@media (max-width: 1000px) {

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

        gap: 60px;
    }

    .hero-visual {
        min-height: 450px;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .timeline {
        margin-left: 30px;
    }
}


@media (max-width: 760px) {

    .container {
        width: min(100% - 32px, 600px);
    }

    .nav {
        position: absolute;

        top: 76px;
        left: 0;
        right: 0;

        display: none;

        flex-direction: column;
        align-items: flex-start;

        gap: 0;

        padding: 15px 20px 25px;

        background: rgba(10,15,26,0.98);

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

    .nav.active {
        display: flex;
    }

    .nav a {
        width: 100%;

        padding: 13px 0;

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

    .menu-toggle {
        display: block;
    }

    .hero {
        padding-top: 125px;
    }

    .hero h1 {
        font-size: clamp(2.8rem, 13vw, 4.3rem);
    }

    .hero-visual {
        min-height: 430px;
    }

    .profile-card {
        width: 260px;
    }

    .code-card {
        width: 310px;

        right: -5px;
        bottom: 0;
    }

    .section {
        padding: 85px 0;
    }

    .section-heading {
        margin-bottom: 45px;
    }

    .value-grid,
    .work-grid,
    .about-grid {
        grid-template-columns: 1fr;

        gap: 40px;
    }

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

    .strength-card {
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .strength-card:last-child {
        border-bottom: 0;
    }

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

    .project {
        grid-template-columns: 50px 1fr;

        gap: 15px;

        padding: 35px 0;
    }

    .project h3 {
        font-size: 1.25rem;
    }

    .timeline {
        margin-left: 10px;
    }

    .timeline-item {
        grid-template-columns: 1fr;

        gap: 8px;

        padding-left: 30px;
    }

    .timeline-date {
        margin-bottom: 5px;
    }

    .contact-content h2 {
        font-size: 3.4rem;
    }

    .footer-content {
        flex-direction: column;
        justify-content: center;
        gap: 5px;

        padding: 20px 0;
    }
}


@media (max-width: 450px) {

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .button {
        width: 100%;
    }

    .hero-visual {
        min-height: 390px;
    }

    .profile-card {
        width: 230px;
    }

    .code-card {
        width: 280px;
    }

    .code-card pre {
        font-size: 0.55rem;
    }
}


/* -------------------------
   ACCESSIBILITY
------------------------- */

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}


/* -------------------------
   ANIMATION
------------------------- */

@media (prefers-reduced-motion: no-preference) {

    .hero-content {
        animation: fadeUp 0.8s ease both;
    }

    .hero-visual {
        animation: fadeIn 1s 0.15s ease both;
    }

    @keyframes fadeUp {

        from {
            opacity: 0;
            transform: translateY(25px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }

    }

    @keyframes fadeIn {

        from {
            opacity: 0;
            transform: translateX(25px);
        }

        to {
            opacity: 1;
            transform: translateX(0);
        }

    }

}
