@font-face {
    font-family: 'iranyekanweblight';
    src: url('../font/iranyekanweblight.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'iranyekanweblight', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: #ffffff;
    color: #1d3366;
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}


/* =========================================================
   VARIABLES
========================================================= */

:root {
    --primary: #304fff;
    --dark: #1d3366;
    --light: #eef1f8;
    --white: #ffffff;

    --border: #e3e7f0;

    --container: 1180px;
}


/* =========================================================
   PAGE
========================================================= */

.developer-page {
    width: min(100% - 48px, var(--container));
    margin: 0 auto;
    padding: 38px 0 28px;
}


/* =========================================================
   HEADER
========================================================= */

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding-bottom: 22px;

    border-bottom: 1px solid var(--border);
}

.header-label {
    display: flex;
    align-items: center;
    gap: 10px;

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.8px;
    color: var(--dark);
}

.header-dot {
    width: 8px;
    height: 8px;

    border-radius: 50%;
    background: var(--primary);
}

.header-number {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.4px;

    color: #7d8ba8;
}


/* =========================================================
   PROFILE
========================================================= */

.profile-section {
    display: grid;
    grid-template-columns: minmax(320px, 0.9fr) minmax(400px, 1.1fr);
    gap: clamp(45px, 8vw, 110px);

    align-items: center;

    padding: 70px 0 85px;
}


/* =========================================================
   IMAGE
========================================================= */

.profile-image-wrapper {
    position: relative;

    width: 100%;
    max-width: 470px;
    aspect-ratio: 1 / 1;

    background: var(--light);

    border: 1px solid var(--border);
}

.profile-image {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* Small image information */

.image-label {
    position: absolute;

    left: 18px;
    right: 18px;
    bottom: 18px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 10px 13px;

    background: rgba(255, 255, 255, 0.94);

    border: 1px solid var(--border);

    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;

    color: var(--dark);
}


/* =========================================================
   PROFILE CONTENT
========================================================= */

.profile-content {
    max-width: 580px;
}

.profile-intro {
    display: flex;
    align-items: center;
    gap: 14px;

    margin-bottom: 22px;
}

.section-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 30px;
    height: 30px;

    background: var(--primary);
    color: var(--white);

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
}

.intro-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;

    color: #7d8ba8;
}


.profile-content h1 {
    font-size: clamp(54px, 7vw, 92px);
    line-height: 0.91;

    font-weight: 800;
    letter-spacing: -4px;

    color: var(--dark);
}

.profile-content h1 span {
    color: var(--primary);
}


.developer-role {
    margin-top: 25px;

    font-size: 17px;
    font-weight: 600;

    color: var(--dark);
}


.profile-divider {
    width: 100%;
    height: 1px;

    margin: 28px 0 24px;

    background: var(--border);
}


.profile-description {
    max-width: 500px;

    font-size: 15px;
    line-height: 1.8;

    color: #61708e;
}


.technology-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;

    margin-top: 27px;
}

.technology-list span {
    padding: 9px 13px;

    border: 1px solid var(--border);
    background: #ffffff;

    font-size: 11px;
    font-weight: 600;

    color: var(--dark);
}


/* =========================================================
   CONTACT
========================================================= */

.contact-section {
    padding: 50px 0 65px;

    border-top: 1px solid var(--border);
}


.contact-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    margin-bottom: 27px;
}


.contact-heading > div {
    display: flex;
    align-items: center;
    gap: 15px;
}


.contact-heading h2 {
    font-size: clamp(25px, 3vw, 36px);
    font-weight: 750;
    letter-spacing: -1px;

    color: var(--dark);
}


.contact-heading p {
    font-size: 12px;
    color: #7d8ba8;
}


/* =========================================================
   CONTACT CARDS
========================================================= */

.contact-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}


.contact-card {
    min-height: 112px;

    display: flex;
    align-items: stretch;
    justify-content: space-between;

    text-decoration: none;

    border: 1px solid transparent;

    color: var(--white);

    overflow: hidden;
}


/* Different brand backgrounds */

.contact-card.github {
    background: #1d3366;
}

.contact-card.linkedin {
    background: #304fff;
}

.contact-card.email {
    background: #1d3366;
}


.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;

    min-width: 0;

    padding: 22px;
}


.contact-type {
    margin-bottom: 9px;

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.8px;

    opacity: 0.7;
}


.contact-value {
    overflow: hidden;

    font-size: 13px;
    font-weight: 600;

    text-overflow: ellipsis;
    white-space: nowrap;
}


/* =========================================================
   LOGO
========================================================= */

.contact-logo {
    flex: 0 0 76px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-left: 1px solid rgba(255, 255, 255, 0.18);

    background: rgba(0, 0, 0, 0.08);
}


.contact-logo img {
    display: block;

    width: 30px;
    height: 30px;

    object-fit: contain;
}


/* =========================================================
   FOOTER
========================================================= */

.page-footer {
    display: flex;
    justify-content: space-between;

    padding-top: 22px;

    border-top: 1px solid var(--border);

    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.7px;

    color: #8a96ad;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .developer-page {
        width: min(100% - 36px, var(--container));
    }


    .profile-section {
        grid-template-columns: 1fr 1fr;
        gap: 45px;

        padding: 55px 0 65px;
    }


    .profile-content h1 {
        font-size: clamp(48px, 7vw, 70px);
        letter-spacing: -3px;
    }


    .contact-list {
        grid-template-columns: 1fr;
    }


    .contact-card {
        min-height: 95px;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 650px) {

    .developer-page {
        width: min(100% - 28px, var(--container));
        padding-top: 22px;
    }


    /* Header */

    .page-header {
        padding-bottom: 17px;
    }

    .header-label {
        font-size: 9px;
        letter-spacing: 1.3px;
    }

    .header-number {
        font-size: 9px;
        letter-spacing: 1px;
    }


    /* Profile */

    .profile-section {
        display: flex;
        flex-direction: column;

        align-items: stretch;

        gap: 38px;

        padding: 38px 0 48px;
    }


    .profile-image-wrapper {
        max-width: none;
        width: 100%;
    }


    .profile-content {
        max-width: none;
    }


    .profile-content h1 {
        font-size: clamp(48px, 17vw, 76px);
        letter-spacing: -3px;
    }


    .developer-role {
        margin-top: 20px;
        font-size: 15px;
    }


    .profile-description {
        font-size: 14px;
        line-height: 1.75;
    }


    .technology-list {
        gap: 7px;
        margin-top: 22px;
    }


    .technology-list span {
        padding: 8px 10px;
        font-size: 10px;
    }


    /* Contact */

    .contact-section {
        padding: 40px 0 48px;
    }


    .contact-heading {
        display: block;
        margin-bottom: 22px;
    }


    .contact-heading > div {
        gap: 12px;
    }


    .contact-heading p {
        margin-top: 13px;
        margin-left: 42px;
    }


    .contact-heading h2 {
        font-size: 26px;
    }


    .contact-card {
        min-height: 88px;
    }


    .contact-info {
        padding: 17px;
    }


    .contact-value {
        font-size: 12px;
    }


    .contact-logo {
        flex-basis: 65px;
    }


    /* Footer */

    .page-footer {
        flex-direction: column;
        gap: 9px;

        padding-bottom: 10px;

        font-size: 8px;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .developer-page {
        width: min(100% - 22px, var(--container));
    }


    .profile-content h1 {
        font-size: 47px;
    }


    .contact-value {
        font-size: 11px;
    }


    .contact-logo {
        flex-basis: 58px;
    }
}
