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

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


/* =====================================================
   PAGE
   ===================================================== */

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;

    overflow-x: hidden;

    color: #151515;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background:
        radial-gradient(
            circle at 72% 45%,
            rgba(255, 178, 82, 0.92) 0%,
            rgba(255, 178, 82, 0.60) 25%,
            rgba(232, 222, 202, 0.72) 48%,
            rgba(211, 222, 223, 0.92) 76%,
            rgba(194, 211, 214, 1) 100%
        );

    background-attachment: fixed;
}


/* =====================================================
   NAVIGATION
   ===================================================== */

nav {
    width: 100%;

    height: 92px;

    display: flex;

    align-items: center;

    justify-content: flex-end;

    padding: 0 6%;

    border-bottom:
        1px solid rgba(20, 20, 20, 0.12);

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

    backdrop-filter: blur(8px);

    -webkit-backdrop-filter: blur(8px);
}

.nav-links {
    display: flex;

    align-items: center;

    gap: 42px;
}

.nav-links a {
    position: relative;

    color: #222;

    text-decoration: none;

    font-size: 13px;

    font-weight: 500;

    letter-spacing: 4px;

    transition:
        color 0.3s ease;
}

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

.nav-links a.active {
    color: #111;
}

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

    position: absolute;

    left: 0;
    right: 0;

    bottom: -14px;

    height: 2px;

    background: #bd622d;
}


/* =====================================================
   MAIN
   ===================================================== */

main {
    width: 100%;
}


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

.hero {
    width: 100%;

    min-height:
        calc(100vh - 92px);

    display: flex;

    align-items: center;

    justify-content: center;

    padding:
        70px 30px 90px;

    text-align: center;
}

.hero-content {
    width: 100%;

    max-width: 1450px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;
}


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

.profile-wrapper {
    position: relative;

    display: flex;

    align-items: center;

    justify-content: center;

    margin-bottom: 45px;
}

.profile-photo {
    display: block;

    width: 180px;

    height: 180px;

    object-fit: cover;

    border-radius: 50%;

    border:
        2px solid rgba(181, 91, 42, 0.90);

    cursor: pointer;

    box-shadow:
        0 24px 50px rgba(0, 0, 0, 0.30),
        0 10px 22px rgba(0, 0, 0, 0.17);

    transition:
        transform 0.45s ease,
        box-shadow 0.45s ease,
        border-color 0.45s ease;
}


/* =====================================================
   PROFILE PHOTO HOVER
   ===================================================== */

.profile-photo:hover {

    transform:
        translateY(-9px)
        scale(1.06);

    border-color:
        #c96d32;

    box-shadow:

        0 30px 65px
        rgba(0, 0, 0, 0.34),

        0 0 28px
        rgba(201, 109, 50, 0.50),

        0 0 65px
        rgba(201, 109, 50, 0.28),

        0 0 110px
        rgba(201, 109, 50, 0.14);
}


/* =====================================================
   NAME
   ===================================================== */

.hero h1 {

    margin: 0;

    color: #111;

    font-size:
        clamp(72px, 10vw, 155px);

    line-height: 0.88;

    font-weight: 800;

    letter-spacing: -7px;

    white-space: nowrap;

    text-transform: uppercase;
}


/* =====================================================
   SPECIALTIES
   ===================================================== */

.specialties {

    margin-top: 42px;

    color: #383838;

    font-size: 13px;

    font-weight: 500;

    letter-spacing: 3.5px;

    line-height: 1.8;

    text-transform: uppercase;
}

.specialties b {

    margin:
        0 14px;

    color: #c0632c;

    font-weight: 600;
}


/* =====================================================
   SOCIAL BUTTONS
   ===================================================== */

.social-links {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 20px;

    margin-top: 50px;
}

.social-links a {

    width: 235px;

    height: 70px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding:
        0 26px;

    color: #181818;

    text-decoration: none;

    font-size: 13px;

    font-weight: 500;

    letter-spacing: 3px;

    border:
        1px solid rgba(40, 40, 40, 0.25);

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

    backdrop-filter: blur(6px);

    -webkit-backdrop-filter: blur(6px);

    transition:
        transform 0.3s ease,
        background 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}


/* =====================================================
   BUTTON HOVER
   ===================================================== */

.social-links a:hover {

    transform:
        translateY(-5px);

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

    border-color:
        rgba(185, 91, 39, 0.75);

    box-shadow:

        0 14px 35px
        rgba(0, 0, 0, 0.14),

        0 0 28px
        rgba(196, 101, 42, 0.16);
}


/* =====================================================
   ARROW
   ===================================================== */

.arrow {

    color:
        #bc602d;

    font-size:
        22px;

    transition:
        transform 0.3s ease;
}

.social-links a:hover .arrow {

    transform:
        translateX(6px);
}


/* =====================================================
   CURSOR GLOW
   ===================================================== */

/*
   Large dark ambient glow that follows
   the mouse cursor.
*/

.cursor-glow {

    position: fixed;

    width: 180px;
    height: 180px;

    border-radius: 50%;

    pointer-events: none;

    transform:
        translate(-50%, -50%);

    background:
        radial-gradient(
            circle,
            rgba(255, 178, 82, 0.20) 0%,
            rgba(255, 178, 82, 0.12) 30%,
            rgba(255, 178, 82, 0.05) 55%,
            transparent 75%
        );

    filter:
        blur(12px);

    z-index: 9999;

    opacity: 0;

    transition:
        opacity 0.2s ease;
}


/* =====================================================
   SHOW CURSOR GLOW
   ===================================================== */

body:hover .cursor-glow {
    opacity: 1;
}


/* =====================================================
   TABLET
   ===================================================== */

@media (max-width: 1000px) {

    .hero {
        padding:
            65px 25px 80px;
    }

    .hero h1 {

        font-size:
            clamp(62px, 11vw, 110px);

        letter-spacing:
            -5px;
    }

    .specialties {

        font-size:
            12px;

        letter-spacing:
            2.5px;
    }

    .specialties b {

        margin:
            0 9px;
    }
}


/* =====================================================
   MOBILE
   ===================================================== */

@media (max-width: 700px) {

    nav {

        height:
            72px;

        padding:
            0 24px;
    }

    .nav-links {

        gap:
            25px;
    }

    .nav-links a {

        font-size:
            11px;

        letter-spacing:
            3px;
    }

    .nav-links a.active::after {

        bottom:
            -10px;
    }


    /* HERO */

    .hero {

        min-height:
            calc(100vh - 72px);

        padding:
            55px 20px 70px;
    }


    /* PROFILE */

    .profile-wrapper {

        margin-bottom:
            32px;
    }

    .profile-photo {

        width:
            clamp(110px, 30vw, 145px);

        height:
            clamp(110px, 30vw, 145px);
    }


    /* NAME */

    .hero h1 {

        width:
            100%;

        font-size:
            clamp(48px, 15vw, 82px);

        line-height:
            0.92;

        letter-spacing:
            -4px;

        white-space:
            normal;
    }


    /* SPECIALTIES */

    .specialties {

        max-width:
            600px;

        margin-top:
            28px;

        font-size:
            10px;

        line-height:
            2.2;

        letter-spacing:
            2px;
    }

    .specialties b {

        margin:
            0 5px;
    }


    /* BUTTONS */

    .social-links {

        width:
            100%;

        flex-direction:
            column;

        gap:
            12px;

        margin-top:
            35px;
    }

    .social-links a {

        width:
            min(100%, 330px);

        height:
            60px;

        padding:
            0 21px;

        font-size:
            11px;

        letter-spacing:
            2.5px;
    }


    /* DISABLE MOUSE GLOW ON TOUCH DEVICES */

    .cursor-glow {
        display: none;
    }
}


/* =====================================================
   SMALL PHONES
   ===================================================== */

@media (max-width: 420px) {

    .hero {

        padding-left:
            16px;

        padding-right:
            16px;
    }

    .profile-photo {

        width:
            115px;

        height:
            115px;
    }

    .hero h1 {

        font-size:
            clamp(42px, 14vw, 62px);

        letter-spacing:
            -3px;
    }

    .specialties {

        font-size:
            8.5px;

        letter-spacing:
            1.5px;

        line-height:
            2.4;
    }

    .specialties b {

        margin:
            0 3px;
    }

    .social-links {

        margin-top:
            30px;
    }

    .social-links a {

        height:
            56px;

        max-width:
            300px;
    }
}


/* =====================================================
   SHORT LAPTOP SCREENS
   ===================================================== */

@media (max-height: 700px) and (min-width: 701px) {

    .hero {

        padding-top:
            40px;

        padding-bottom:
            50px;
    }

    .profile-photo {

        width:
            145px;

        height:
            145px;
    }

    .profile-wrapper {

        margin-bottom:
            30px;
    }

    .specialties {

        margin-top:
            28px;
    }

    .social-links {

        margin-top:
            32px;
    }
}


/* =====================================================
   ACCESSIBILITY
   ===================================================== */

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

    *,
    *::before,
    *::after {

        transition:
            none !important;

        animation:
            none !important;
    }
}


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

.projects-page {

    width: 100%;

    min-height:
        calc(100vh - 92px);

    display: flex;

    align-items: center;

    justify-content: center;

    padding:
        60px 30px 90px;

    text-align: center;
}


.projects-content {

    width: 100%;

    max-width: 1000px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;
}


/* =====================================================
   WORKING CHARACTER
   ===================================================== */

.working-image-wrapper {

    width: 100%;

    display: flex;

    align-items: center;

    justify-content: center;

    margin-bottom: 20px;
}


.working-image {

    display: block;

    width:
        min(720px, 75vw);

    height: auto;

    image-rendering:
        pixelated;

    filter:
        drop-shadow(
            0 20px 18px
            rgba(0, 0, 0, 0.16)
        );

    transition:
        transform 0.35s ease,
        filter 0.35s ease;
}


/* SUBTLE HOVER */

.working-image:hover {

    transform:
        translateY(-5px);

    filter:
        drop-shadow(
            0 26px 22px
            rgba(0, 0, 0, 0.20)
        );
}


/* =====================================================
   WORKING TITLE
   ===================================================== */

.working-title {

    margin: 0;

    color:
        #151515;

    font-family:
        monospace;

    font-size:
        clamp(42px, 5vw, 68px);

    font-weight:
        500;

    line-height:
        1;

    letter-spacing:
        13px;

    text-transform:
        uppercase;
}


/* =====================================================
   BLINKING CURSOR
   ===================================================== */

.blinking-cursor {

    display:
        inline-block;

    width:
        5px;

    height:
        0.85em;

    margin-left:
        7px;

    vertical-align:
        -0.08em;

    background:
        #c96d32;

    animation:
        cursor-blink 1s steps(1) infinite;
}


@keyframes cursor-blink {

    0%,
    45% {
        opacity: 1;
    }

    46%,
    100% {
        opacity: 0;
    }
}


/* =====================================================
   DESCRIPTION
   ===================================================== */

.working-description {

    margin-top:
        28px;

    color:
        #444;

    font-size:
        11px;

    font-weight:
        500;

    line-height:
        2.1;

    letter-spacing:
        3.5px;

    text-transform:
        uppercase;
}


/* =====================================================
   RETRO LOADING BAR
   ===================================================== */

.retro-loader {

    width:
        300px;

    height:
        13px;

    margin-top:
        34px;

    padding:
        2px;

    border:
        2px solid
        #252525;

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

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


.retro-loader-fill {

    width:
        63%;

    height:
        100%;

    background:
        #c96d32;

    animation:
        loading-pulse 2.5s ease-in-out infinite;
}


@keyframes loading-pulse {

    0% {
        width: 58%;
    }

    50% {
        width: 68%;
    }

    100% {
        width: 58%;
    }
}


/* =====================================================
   PROJECTS — TABLET
   ===================================================== */

@media (max-width: 1000px) {

    .projects-page {

        min-height:
            calc(100vh - 92px);

        padding:
            50px 25px 70px;
    }

    .working-image {

        width:
            min(650px, 82vw);
    }

    .working-title {

        font-size:
            clamp(38px, 6vw, 58px);

        letter-spacing:
            9px;
    }
}


/* =====================================================
   PROJECTS — MOBILE
   ===================================================== */

@media (max-width: 700px) {

    .projects-page {

        min-height:
            calc(100vh - 72px);

        padding:
            45px 20px 65px;
    }

    .working-image-wrapper {

        margin-bottom:
            18px;
    }

    .working-image {

        width:
            min(600px, 100%);

        filter:
            drop-shadow(
                0 15px 15px
                rgba(0, 0, 0, 0.14)
            );
    }

    .working-title {

        font-size:
            clamp(30px, 10vw, 48px);

        letter-spacing:
            6px;
    }

    .blinking-cursor {

        width:
            4px;

        margin-left:
            5px;
    }

    .working-description {

        max-width:
            330px;

        margin-top:
            22px;

        font-size:
            9px;

        line-height:
            2.2;

        letter-spacing:
            2px;
    }

    .retro-loader {

        width:
            230px;

        height:
            11px;

        margin-top:
            28px;
    }
}


/* =====================================================
   PROJECTS — SMALL PHONES
   ===================================================== */

@media (max-width: 420px) {

    .projects-page {

        padding:
            35px 16px 55px;
    }

    .working-image {

        width:
            100%;
    }

    .working-title {

        font-size:
            28px;

        letter-spacing:
            4px;
    }

    .working-description {

        font-size:
            8px;

        letter-spacing:
            1.5px;
    }

    .retro-loader {

        width:
            200px;
    }
}