@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    --bg: #08090b;
    --bg-soft: #0d0e12;
    --panel: #101116;

    --text: #f4f4f6;
    --muted: #888b96;
    --dim: #50525c;

    --accent: #7c83ff;

    --border: rgba(255, 255, 255, 0.075);

    --container: 1220px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;

    background: var(--bg);
    color: var(--text);

    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

::selection {
    background: rgba(124, 131, 255, 0.25);
    color: white;
}

.container {
    width: min(var(--container), calc(100% - 48px));
    margin: auto;
}


/* HEADER */

.header {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    z-index: 100;

    transition:
        background 0.3s,
        border-color 0.3s;
}

.header.scrolled {
    background: rgba(8, 9, 11, 0.9);

    backdrop-filter: blur(18px);

    border-bottom:
        1px solid var(--border);
}

.header-inner {
    height: 82px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo,
.footer-logo {
    color: white;

    text-decoration: none;

    font-size: 21px;

    font-weight: 900;

    letter-spacing: 2px;
}

.logo span,
.footer-logo span {
    color: var(--accent);
}

.nav {
    display: flex;

    gap: 31px;
}

.nav a {
    color: #747781;

    text-decoration: none;

    font-size: 11px;

    font-weight: 600;

    transition: 0.2s;
}

.nav a:hover,
.nav a.active {
    color: white;
}

.menu-button {
    display: none;

    width: 40px;
    height: 40px;

    position: relative;

    background: transparent;

    border:
        1px solid var(--border);

    border-radius: 11px;

    cursor: pointer;
}

.menu-button span {
    position: absolute;

    left: 11px;

    width: 16px;
    height: 1px;

    background: white;

    transition: 0.25s;
}

.menu-button span:first-child {
    top: 15px;
}

.menu-button span:last-child {
    top: 23px;
}

.menu-button.active span:first-child {
    top: 19px;

    transform: rotate(45deg);
}

.menu-button.active span:last-child {
    top: 19px;

    transform: rotate(-45deg);
}


/* MOBILE MENU */

.mobile-menu {
    position: fixed;

    inset: 0;

    z-index: 90;

    background: rgba(8, 9, 11, 0.98);

    opacity: 0;
    visibility: hidden;

    transition: 0.25s;
}

.mobile-menu.open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-inner {
    width: calc(100% - 34px);

    margin: auto;

    padding-top: 115px;

    display: flex;

    flex-direction: column;
}

.mobile-menu a {
    padding: 17px 0;

    border-bottom:
        1px solid var(--border);

    color: white;

    text-decoration: none;

    font-size: 27px;

    font-weight: 700;
}


/* HERO */

.hero {
    min-height: 100vh;

    padding-top: 82px;

    display: flex;

    align-items: center;
}

.hero-grid {
    display: grid;

    grid-template-columns:
        1.15fr 0.85fr;

    gap: 85px;

    align-items: center;

    padding: 80px 0;
}

.eyebrow,
.section-label {
    color: var(--accent);

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 3px;
}

.hero h1 {
    margin: 22px 0 27px;

    font-size:
        clamp(68px, 8vw, 118px);

    line-height: 0.87;

    letter-spacing: -7px;

    font-weight: 900;
}

.hero h1 span {
    display: block;

    color: #61636d;
}

.hero-text {
    max-width: 620px;

    color: var(--muted);

    font-size: 16px;

    line-height: 1.8;
}

.hero-actions {
    margin-top: 34px;

    display: flex;

    gap: 11px;
}

.button {
    min-height: 48px;

    padding: 0 22px;

    border-radius: 999px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    text-decoration: none;

    font-size: 12px;

    font-weight: 700;

    transition:
        transform 0.2s,
        background 0.2s,
        border-color 0.2s;
}

.button-primary {
    color: white;

    background: var(--accent);
}

.button-primary:hover {
    transform: translateY(-3px);
}

.button-secondary {
    color: white;

    border:
        1px solid var(--border);

    background:
        rgba(255,255,255,0.025);
}

.button-secondary:hover {
    transform: translateY(-3px);

    border-color:
        rgba(124,131,255,0.3);
}

.hero-details {
    margin-top: 55px;

    display: flex;

    gap: 38px;
}

.hero-details div {
    display: flex;

    flex-direction: column;

    gap: 5px;
}

.hero-details span,
.small-label {
    color: #464851;

    font-size: 8px;

    letter-spacing: 2px;
}

.hero-details strong {
    color: #b8bac2;

    font-size: 10px;

    font-weight: 600;
}


/* PROFILE CARD */

.profile-card {
    padding: 32px;

    border:
        1px solid var(--border);

    border-radius: 27px;

    background: var(--bg-soft);
}

.profile-top {
    display: flex;

    align-items: flex-start;
    justify-content: space-between;
}

.profile-top h2 {
    margin-top: 14px;

    font-size: 42px;

    line-height: 0.9;

    letter-spacing: -3px;
}

.profile-mark {
    width: 52px;
    height: 52px;

    border-radius: 15px;

    display: flex;

    align-items: center;
    justify-content: center;

    background:
        rgba(124, 131, 255, 0.08);

    color: var(--accent);

    font-size: 13px;

    font-weight: 800;
}

.profile-role {
    margin-top: 16px;

    color: var(--muted);

    font-size: 12px;
}

.profile-divider {
    height: 1px;

    margin: 30px 0;

    background: var(--border);
}

.profile-skills {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;
}

.profile-skills span {
    padding: 7px 10px;

    border:
        1px solid var(--border);

    border-radius: 999px;

    color: #767984;

    font-size: 8px;
}

.profile-contact {
    margin-top: 32px;

    display: flex;

    flex-direction: column;

    gap: 8px;
}

.profile-contact span {
    color: #464851;

    font-size: 8px;

    letter-spacing: 2px;
}

.profile-contact a {
    color: #d6d7dc;

    text-decoration: none;

    font-size: 13px;

    transition: 0.2s;
}

.profile-contact a:hover {
    color: var(--accent);
}


/* SECTIONS */

.section {
    padding: 135px 0;
}

.section-label {
    display: flex;

    align-items: center;

    gap: 12px;

    margin-bottom: 38px;
}

.section-label span {
    color: #44464f;
}

.section-heading {
    font-size:
        clamp(48px, 6vw, 84px);

    line-height: 0.95;

    letter-spacing: -5px;
}

.section-heading span {
    display: block;

    color: #555760;
}


/* ABOUT */

.about-grid {
    display: grid;

    grid-template-columns:
        1fr 0.7fr;

    gap: 100px;
}

.about-text {
    display: flex;

    flex-direction: column;

    gap: 22px;

    padding-top: 12px;
}

.about-text p {
    color: var(--muted);

    font-size: 14px;

    line-height: 1.8;
}


/* SERVICES */

.services-title {
    margin-bottom: 55px;
}

.services-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    border-top:
        1px solid var(--border);

    border-left:
        1px solid var(--border);
}

.service {
    min-height: 280px;

    padding: 27px;

    border-right:
        1px solid var(--border);

    border-bottom:
        1px solid var(--border);

    transition:
        background 0.25s;
}

.service:hover {
    background:
        rgba(255,255,255,0.018);
}

.service-top {
    display: flex;

    align-items: center;
    justify-content: space-between;

    color: #464851;

    font-size: 8px;
}

.service-top strong {
    color: var(--accent);

    font-size: 10px;
}

.service h3 {
    margin-top: 70px;

    font-size: 24px;

    letter-spacing: -1px;
}

.service p {
    margin-top: 13px;

    color: var(--muted);

    font-size: 13px;

    line-height: 1.75;
}


/* PROJECTS */

.projects-header {
    display: flex;

    align-items: flex-end;
    justify-content: space-between;

    gap: 60px;

    margin-bottom: 60px;
}

.projects-intro {
    max-width: 300px;

    color: var(--muted);

    font-size: 13px;

    line-height: 1.7;
}

.projects-list {
    border-top:
        1px solid var(--border);
}

.project {
    display: grid;

    grid-template-columns:
        70px 1fr;

    gap: 20px;

    padding: 30px 0;

    border-bottom:
        1px solid var(--border);
}

.project-number {
    color: #41434c;

    font-size: 9px;
}

.project-type {
    color: var(--accent);

    font-size: 8px;

    font-weight: 800;

    letter-spacing: 2px;
}

.project h3 {
    margin-top: 7px;

    font-size: 23px;

    letter-spacing: -1px;
}

.project p {
    max-width: 690px;

    margin-top: 10px;

    color: var(--muted);

    font-size: 13px;

    line-height: 1.75;
}


/* CONTACT */

.contact-section {
    padding: 120px 0 140px;
}

.contact-box {
    padding: 45px;

    border:
        1px solid var(--border);

    border-radius: 28px;

    background: var(--bg-soft);

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 70px;

    align-items: center;
}

.contact-box h2 {
    margin-top: 12px;

    font-size:
        clamp(45px, 5vw, 72px);

    letter-spacing: -4px;
}

.contact-box > div:first-child p {
    margin-top: 13px;

    color: var(--muted);

    font-size: 13px;
}

.contact-links {
    border-top:
        1px solid var(--border);
}

.contact-links a {
    display: grid;

    grid-template-columns:
        1fr auto;

    gap: 6px;

    padding: 22px 0;

    border-bottom:
        1px solid var(--border);

    text-decoration: none;
}

.contact-links a > span {
    grid-column: 1 / -1;

    color: #464851;

    font-size: 8px;

    letter-spacing: 2px;
}

.contact-links strong {
    color: #d1d2d7;

    font-size: 14px;

    font-weight: 600;
}

.contact-links b {
    color: #595b65;

    font-weight: 400;

    transition: 0.2s;
}

.contact-links a:hover b {
    color: var(--accent);

    transform: translate(2px, -2px);
}


/* FOOTER */

footer {
    border-top:
        1px solid var(--border);
}

.footer-inner {
    min-height: 120px;

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 25px;
}

.footer-inner p {
    color: #464851;

    font-size: 9px;
}

.back-top {
    color: #5d5f68;

    text-decoration: none;

    font-size: 9px;

    transition: 0.2s;
}

.back-top:hover {
    color: white;
}


/* REVEAL */

.reveal {
    opacity: 0;

    transform:
        translateY(24px);

    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;

    transform: translateY(0);
}


/* SCROLLBAR */

::-webkit-scrollbar {
    width: 7px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: #292b32;

    border-radius: 20px;
}


/* TABLET */

@media (max-width: 950px) {

    .nav {
        display: none;
    }

    .menu-button {
        display: block;
    }

    .hero-grid {
        grid-template-columns: 1fr;

        padding-top: 90px;
    }

    .profile-card {
        max-width: 600px;
    }

    .about-grid {
        grid-template-columns: 1fr;

        gap: 40px;
    }

    .services-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .projects-header {
        flex-direction: column;

        align-items: flex-start;
    }

    .contact-box {
        grid-template-columns: 1fr;
    }

}


/* MOBILE */

@media (max-width: 620px) {

    .container {
        width: calc(100% - 30px);
    }

    .header-inner {
        height: 72px;
    }

    .hero {
        padding-top: 72px;
    }

    .hero-grid {
        padding: 70px 0 100px;

        gap: 55px;
    }

    .hero h1 {
        font-size: 56px;

        letter-spacing: -4px;
    }

    .hero-text {
        font-size: 14px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .hero-details {
        display: grid;

        grid-template-columns:
            repeat(2, 1fr);

        gap: 24px;
    }

    .profile-card {
        padding: 24px;
    }

    .profile-top h2 {
        font-size: 36px;
    }

    .section {
        padding: 95px 0;
    }

    .section-heading {
        font-size: 45px;

        letter-spacing: -3px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service {
        min-height: 250px;
    }

    .project {
        grid-template-columns:
            35px 1fr;
    }

    .project h3 {
        font-size: 20px;
    }

    .contact-section {
        padding: 80px 0 100px;
    }

    .contact-box {
        padding: 26px;
    }

    .contact-box h2 {
        font-size: 45px;

        letter-spacing: -3px;
    }

    .contact-links strong {
        font-size: 12px;

        word-break: break-word;
    }

    .footer-inner {
        padding: 30px 0;

        flex-direction: column;

        justify-content: center;
    }

}


/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;

        animation-duration:
            0.01ms !important;

        animation-iteration-count:
            1 !important;

        transition-duration:
            0.01ms !important;
    }

}