/* =====================================================
   RESET
===================================================== */

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


:root {
    --display-font: "Montserrat", sans-serif;
    --ink: #111111;
    --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
}


html {
    scroll-behavior: smooth;

    scroll-padding-top: 96px;
}


body {
    font-family: var(--display-font);

    background: #fcfcfb;
    color: var(--ink);

    line-height: 1.5;

    -webkit-font-smoothing: antialiased;

    text-rendering: optimizeLegibility;

    overflow-x: hidden;

    background-image:
        linear-gradient(#11111108 1px, transparent 1px),
        linear-gradient(90deg, #11111108 1px, transparent 1px);
    background-size: 48px 48px;
    background-position: center top;
}


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

    transition:
        color 0.25s var(--ease-smooth),
        opacity 0.25s var(--ease-smooth);
}


a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid #111111;
    outline-offset: 4px;
}


button,
input,
textarea {
    font: inherit;
}


button {
    border: 0;

    cursor: pointer;
}


::selection {
    background: #111111;
    color: #ffffff;
}


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


/* =====================================================
   CONTAINER
===================================================== */

.container {
    width: min(
        calc(100% - clamp(32px, 7vw, 96px)),
        1174px
    );

    margin: 0 auto;
}


/* =====================================================
   NAVBAR
===================================================== */

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

    height: 80px;

    background: rgba(252, 252, 251, 0.88);

    border-bottom: 1px solid #eeeeee;

    backdrop-filter: blur(12px);

    box-shadow: 0 1px 0 rgba(17, 17, 17, 0.03);

    transition:
        box-shadow 0.35s var(--ease-smooth),
        background 0.35s var(--ease-smooth);
}


.navbar.scrolled {
    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.04);
}


.nav-inner {
    height: 100%;

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

    gap: 32px;
}


.logo {
    font-family: var(--display-font);
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 0;
}


.nav-links {
    list-style: none;

    display: flex;
    align-items: center;

    gap: 34px;

    flex-wrap: wrap;

    justify-content: flex-end;
}


.nav-links a {
    position: relative;

    font-size: 16px;
    color: #333333;

    transition: color 0.25s var(--ease-smooth);
}


.nav-links a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -7px;

    width: 0;
    height: 1px;

    background: #111111;

    transition: width 0.3s var(--ease-smooth);
}


.nav-links a:hover {
    color: #111111;
}


.nav-links a:hover::after {
    width: 100%;
}


/* =====================================================
   HERO
===================================================== */

.hero {
    position: relative;

    min-height: 700px;

    display: flex;
    align-items: center;

    padding: 100px 0 130px;
}


.hero::after {
    content: "";

    position: absolute;
    right: max(32px, calc((100vw - 1174px) / 2));
    bottom: 72px;

    width: 72px;
    height: 4px;

    background: #111111;
}


.hero-content {
    display: flex;
    flex-direction: column;
}


.hero-meta {
    display: flex;
    align-items: center;
    gap: 22px;

    margin-bottom: 30px;

    color: #777777;

    font-size: 15px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}


.status {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: #333333;
}


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

    border-radius: 50%;

    background: #111111;
}


.hero h1 {
    font-family: var(--display-font);
    font-size: clamp(56px, 10vw, 128px);

    line-height: 0.85;

    letter-spacing: 0;

    font-weight: 700;

    margin-left: -7px;

    max-width: 100%;

    overflow-wrap: anywhere;

    word-break: break-word;
}


.hero-bottom {
    margin-top: 75px;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 60px;
}


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

    font-size: 22px;

    line-height: 1.45;

    letter-spacing: -0.025em;

    color: #222222;
}


.hero-button {
    flex-shrink: 0;

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

    gap: 30px;

    min-width: 170px;

    padding: 15px 17px;

    border: 1px solid #dddddd;

    border-radius: 8px;

    font-size: 15px;

    transition:
        background 0.3s var(--ease-smooth),
        border-color 0.3s var(--ease-smooth),
        transform 0.3s var(--ease-smooth),
        box-shadow 0.3s var(--ease-smooth);
}


.hero-button:hover {
    background: #111111;
    border-color: #111111;
    color: #ffffff;

    transform: translateY(-2px);

    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}


/* =====================================================
   SECTIONS
===================================================== */

.section {
    padding: 100px 0 140px;
}


.section-heading {
    display: flex;
    align-items: center;

    gap: 20px;

    padding-bottom: 25px;

    margin-bottom: 30px;

    border-bottom: 1px solid #dddddd;

    position: relative;
}


.section-heading::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: -1px;

    width: 48px;
    height: 3px;

    background: #111111;
}


.section-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 28px;
    min-width: 28px;
    height: 28px;

    border: 1px solid #dddddd;
    border-radius: 50%;

    color: #aaaaaa;

    font-size: 14px;

    min-width: 20px;
}


.section-title {
    font-family: var(--display-font);
    color: #777777;

    font-size: 15px;

    letter-spacing: 0.08em;

    text-transform: uppercase;
}


/* =====================================================
   SKILLS
===================================================== */

.skills-grid {
    display: grid;

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

    gap: 16px;

    grid-auto-rows: 1fr;
}


.skill-card {
    position: relative;

    min-height: 300px;

    padding: 28px;

    border: 1px solid #e1e1df;
    border-radius: 14px;

    background: #ffffff;

    min-width: 0;

    transition:
        transform 0.35s var(--ease-smooth),
        background 0.35s var(--ease-smooth),
        box-shadow 0.35s var(--ease-smooth);
}


.skill-card:hover {
    border-color: #111111;
    background: #ffffff;

    transform: translateY(-3px);

    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.05);
}


.skill-card::before {
    content: "";

    position: absolute;
    top: 0;
    left: 28px;

    width: 42px;
    height: 3px;

    background: #111111;

    transition: width 0.35s var(--ease-smooth);
}


.skill-card:hover::before {
    width: calc(100% - 56px);
}


.skill-card::after {
    content: "";

    position: absolute;
    right: 28px;
    bottom: 28px;

    width: 6px;
    height: 6px;

    border-radius: 50%;
    background: #111111;
    opacity: 0.18;
}


.skill-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 44px;
}


.skill-number {
    color: #aaaaaa;

    font-size: 14px;
}


.skill-icon {
    width: 58px;
    height: 58px;

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

    overflow: hidden;

    border: 1px solid #dddddd;

    border-radius: 50%;

    background: #fafafa;

    font-size: 15px;

    color: #444444;
}


.skill-icon-image {
    width: 100%;
    height: 100%;

    padding: 9px;

    object-fit: contain;
}


.skill-card h3 {
    font-size: 24px;

    letter-spacing: 0;

    line-height: 1.6;

    margin-bottom: 12px;
}


.skill-card p {
    color: #777777;

    font-size: 16px;

    line-height: 2;
}


.tags {
    display: flex;
    flex-wrap: wrap;

    gap: 8px;

    margin-top: 20px;
}


.tag {
    padding: 8px 10px;

    border: 1px solid #e0e0e0;

    border-radius: 6px;

    color: #777777;

    font-size: 14px;
}


/* =====================================================
   PROJECTS
===================================================== */

.projects-list {
    display: grid;

    gap: 14px;
}


.project {
    display: grid;

    grid-template-columns:
        50px
        290px
        minmax(0, 1fr)
        100px;

    align-items: center;

    gap: 24px;

    padding: 18px;

    border: 1px solid #e1e1df;
    border-radius: 14px;
    background: #ffffff;

    min-width: 0;

    transition:
        border-color 0.35s var(--ease-smooth),
        background 0.35s var(--ease-smooth),
        transform 0.35s var(--ease-smooth),
        box-shadow 0.35s var(--ease-smooth);
}


.project:hover {
    border-color: #111111;
    background: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.06);
}


.project-link,
.hero-button,
.submit-button {
    will-change: transform;
}


.project-number {
    align-self: start;

    padding-top: 6px;

    color: #999999;

    font-size: 14px;
}


.project-image {
    width: 240px;
    height: 150px;

    overflow: hidden;

    border: 1px solid #dddddd;

    border-radius: 10px;

    background: #f6f6f6;

    flex-shrink: 0;

    position: relative;
}


.project-image::after {
    content: "VIEW";

    position: absolute;
    right: 10px;
    bottom: 10px;

    padding: 5px 7px;

    background: rgba(255, 255, 255, 0.9);
    color: #111111;

    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.08em;

    opacity: 0;
    transform: translateY(4px);
    transition:
        opacity 0.3s var(--ease-smooth),
        transform 0.3s var(--ease-smooth);
}


.project:hover .project-image::after {
    opacity: 1;
    transform: translateY(0);
}


.project-image img {
    width: 100%;
    height: 100%;

    object-fit: contain;

    transition:
        transform 0.5s var(--ease-smooth);
}


.project:hover .project-image img {
    transform: scale(1.035);
}


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

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

    color: #aaaaaa;

    font-size: 12px;
}


.project-content {
    min-width: 0;

    overflow-wrap: anywhere;
}


.project-content h3 {
    font-family: var(--display-font);
    font-size: 26px;

    line-height: 1.2;

    letter-spacing: 0;

    margin-bottom: 12px;
}


.project-description {
    color: #777777;

    font-size: 16px;

    line-height: 1.9;

    max-width: 570px;
}


.project-tech {
    margin-top: 15px;

    color: #555555;

    letter-spacing: 0.04em;

    font-size: 14px;
}


.project-link {
    justify-self: end;

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

    gap: 13px;

    min-width: 84px;

    padding: 12px 15px;

    border: 1px solid #dddddd;

    border-radius: 8px;

    font-size: 14px;

    transition:
        background 0.3s var(--ease-smooth),
        color 0.3s var(--ease-smooth),
        border-color 0.3s var(--ease-smooth),
        transform 0.3s var(--ease-smooth);
}


.project-link:hover {
    background: #111111;

    color: #ffffff;

    border-color: #111111;

    transform: translateY(-2px);
}


/* =====================================================
   PROFILE
===================================================== */

.profile-grid {
    display: grid;

    grid-template-columns:
        1fr
        1fr;

    gap: 24px;

    padding-top: 30px;
}


.profile-description {
    max-width: 620px;

    padding: 32px;

    border-radius: 14px;

    background: #111111;
    color: #ffffff;

    font-size: 26px;

    line-height: 2.1;

    letter-spacing: 0;

    overflow-wrap: anywhere;
}


.profile-info {
    padding: 0 22px;

    border: 1px solid #e1e1df;
    border-radius: 14px;

    background: #ffffff;
}


.info-row {
    min-height: 64px;

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

    gap: 30px;

    border-bottom: 1px solid #eeeeee;

    font-size: 15px;
}


.info-label {
    color: #999999;
}


.info-value {
    color: #222222;

    text-align: right;

    line-height: 1.8;

    overflow-wrap: anywhere;
}


/* =====================================================
   CONTACT
===================================================== */

.contact-layout {
    display: grid;

    grid-template-columns:
        1fr
        1fr;

    gap: 100px;

    padding-top: 30px;
}


.contact-copy h2 {
    font-family: var(--display-font);
    max-width: 500px;

    font-size: 40px;

    line-height: 1.05;

    letter-spacing: 0;

    margin-bottom: 20px;
}


.contact-copy p {
    color: #777777;

    font-size: 15px;
}


.contact-form {
    width: 100%;
}


.form-group {
    margin-bottom: 22px;
}


.form-group label {
    display: block;

    margin-bottom: 9px;

    color: #555555;

    font-size: 14px;
}


.form-group input,
.form-group textarea {
    width: 100%;

    border: 1px solid #dddddd;

    border-radius: 8px;

    background: #ffffff;

    color: #111111;

    padding: 14px 15px;

    outline: none;

    transition:
        border-color 0.3s var(--ease-smooth),
        box-shadow 0.3s var(--ease-smooth),
        transform 0.3s var(--ease-smooth);
}


.form-group input {
    height: 50px;
}


.form-group textarea {
    min-height: 160px;

    resize: vertical;
}


.form-group input:focus,
.form-group textarea:focus {
    border-color: #111111;

    box-shadow:
        0 0 0 3px rgba(0, 0, 0, 0.05);

    transform: translateY(-1px);
}


.submit-button {
    width: 100%;

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

    padding: 15px 17px;

    background: #111111;

    color: #ffffff;

    border-radius: 8px;

    cursor: pointer;

    font-size: 15px;

    transition:
        opacity 0.3s var(--ease-smooth),
        transform 0.3s var(--ease-smooth),
        box-shadow 0.3s var(--ease-smooth);
}


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

    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}


.submit-button:disabled {
    opacity: 0.5;

    cursor: wait;

    transform: none;
}


.form-status {
    min-height: 20px;

    margin-top: 14px;

    font-size: 15px;
}


.form-success {
    color: #222222;
}


.form-error {
    color: #b00020;
}


/* =====================================================
   LOADING / ERROR
===================================================== */

.loading {
    padding: 30px 0;

    color: #999999;

    font-size: 15px;
}


.error-message {
    padding: 25px 0;

    color: #777777;

    font-size: 15px;

    line-height: 1.6;
}


/* =====================================================
   FOOTER
===================================================== */

footer {
    border-top: 1px solid #eeeeee;

    padding: 30px 0;

    color: #888888;

    font-size: 14px;
}


.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* =====================================================
   REVEAL
===================================================== */

.reveal {
    opacity: 0;

    transform: translateY(15px);

    transition:
        opacity 0.7s var(--ease-smooth),
        transform 0.7s var(--ease-smooth);

    will-change: opacity, transform;
}


.reveal.visible {
    opacity: 1;

    transform: translateY(0);
}


@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }


    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }


    .reveal {
        opacity: 1;
        transform: none;
    }

}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 900px) {

    .container {
        width: min(
            calc(100% - 40px),
            1174px
        );
    }


    .hero {
        min-height: 600px;

        padding: 80px 0 100px;
    }


    .hero-bottom {
        align-items: flex-start;

        flex-direction: column;

        margin-top: 55px;

        gap: 35px;
    }


    .hero-description {
        font-size: 20px;
    }


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


    .project {
        grid-template-columns:
            32px
            minmax(190px, 230px)
            minmax(0, 1fr)
            76px;

        gap: 20px;
    }


    .project-image {
        width: 100%;
        height: auto;

        aspect-ratio: 16 / 10;
    }


    .profile-grid,
    .contact-layout {
        gap: 50px;
    }

}


@media (max-width: 700px) {

    .navbar {
        height: 68px;
    }


    .nav-links {
        gap: 13px;
    }


    .nav-links a {
        font-size: 13px;
    }


    .logo {
        font-size: 17px;
    }


    .hero {
        min-height: 560px;

        padding: 70px 0 80px;
    }


    .hero-meta {
        flex-wrap: wrap;

        gap: 12px;

        font-size: 12px;
    }


    .hero h1 {
        font-size: 16vw;

        letter-spacing: -0.07em;
    }


    .hero-description {
        font-size: 20px;
    }


    .section {
        padding: 75px 0 95px;
    }


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


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


    .skill-card {
        min-height: 0;

        padding: 24px;
    }


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

        gap: 16px;

        padding: 20px;

        align-items: start;
    }


    .project-number,
    .project-image,
    .project-content,
    .project-link {
        grid-column: 1;
    }


    .project-number {
        padding-top: 0;
    }


    .project-image {
        width: 100%;
        height: auto;

        aspect-ratio: 16 / 10;

        background: #f3f3f1;
    }


    .project-content {
        justify-self: start;

        width: 100%;
    }


    .project-content h3 {
        font-size: 23px;
    }


    .profile-grid,
    .contact-layout {
        grid-template-columns: 1fr;

        gap: 45px;
    }


    .profile-description {
        padding: 24px;

        font-size: 23px;

        line-height: 1.8;
    }


    .profile-info {
        padding: 0 18px;
    }


    .info-row {
        gap: 18px;
    }


    .contact-copy h2 {
        font-size: 34px;
    }


    .footer-inner {
        flex-direction: column;

        align-items: flex-start;

        gap: 8px;
    }

}


@media (max-width: 480px) {

    .container {
        width: calc(100% - 28px);
    }


    .nav-inner {
        gap: 14px;
    }


    .nav-links {
        gap: 9px;
    }


    .nav-links a {
        font-size: 11px;
    }


    .logo {
        font-size: 15px;
    }


    .section-heading {
        gap: 12px;
    }


    .section-heading::after {
        width: 36px;
    }


    .hero::after {
        right: 14px;
        bottom: 48px;

        width: 48px;
        height: 3px;
    }


    .hero h1 {
        font-size: 14vw;
    }


    .hero-description {
        font-size: 18px;
    }


    .project {
        padding: 16px;
    }


    .project-content h3 {
        font-size: 20px;
    }


    .project-description {
        font-size: 14px;
    }


    .profile-description {
        font-size: 20px;
    }


    .info-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
        padding: 14px 0;
    }


    .info-value {
        text-align: left;
    }

}

