* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    background: #ffffff;
}


/* =========================
   HERO
========================= */

.hero {
    min-height: 100vh;
    display: flex;
    overflow: hidden;
}


/* =========================
   LEFT SIDE
========================= */

.hero-left {
    width: 52%;
    background: #dcdcdc;

    position: relative;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    padding: 40px 8%;
}


/* =========================
   DIAGONAL
========================= */

.hero-left::after {
    content: "";

    position: absolute;

    top: 0;
    right: -50px;

    width: 240px;
    height: 100%;

    background: #dcdcdc;

    transform: skewX(-15deg);

    z-index: 1;
}


/* =========================
   LOGO
========================= */

.logo {
    display: flex;
    align-items: center;

    width: 60px;
    height: 60px;

    text-decoration: none;
}

.logo img {
    width: 100%;
    height: 100%;

    object-fit: contain;

    display: block;


    transition: 0.3s;
}

.logo:hover img {
    opacity: 0.7;
    transform: scale(1.05);
}


/* =========================
   INTRO
========================= */

.intro {
    position: relative;
    z-index: 5;

    margin-top: auto;
    margin-bottom: auto;
}

.greeting {
    font-size: 24px;
    font-weight: 600;

    margin-bottom: 25px;
}

h1 {
    font-size: clamp(45px, 5vw, 76px);
    line-height: 1;

    font-weight: 700;

    margin-bottom: 10px;
}

.role {
    font-size: 18px;
    font-weight: 600;

    color: #888;
}


/* =========================
   SOCIALS
========================= */

.socials {
    display: flex;
    gap: 14px;
    flex-direction: column;
    align-items: center;
    margin-top: auto;

}

.socials a {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #c8c8c8;

    color: #000;

    text-decoration: none;

    font-weight: 700;

    transition: 0.3s;
}

.socials a:hover {
    transform: translateY(-4px);
}


/* =========================
   RIGHT SIDE
========================= */

.hero-right {
    width: 48%;

    background: #000;

    position: relative;

    color: white;

    padding: 40px 6%;
}


/* =========================
   NAVIGATION
========================= */

nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;

    gap: 45px;

    position: relative;
    z-index: 10;
}

nav a {
    display: inline-block;

    color: white;

    text-decoration: none;

    font-size: 13px;
    font-weight: 600;

    transition: 0.3s;
}

nav a:hover {
    transform: translateX(-5px);
    opacity: 0.7;
}


/* =========================
   PROFILE
========================= */

.profile {
    position: absolute;

    bottom: 0%;
    left: 30%;

    height: 70%;

    z-index: 5;
}

.profile img {
    height: 100%;
    width: auto;

    display: block;

    object-fit: contain;
}
/* =========================
   PAGE TRANSITION
========================= */

body {
    opacity: 0;
    animation: pageFadeIn 0.6s ease forwards;
}

@keyframes pageFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


body.page-exit {
    animation: pageFadeOut 0.4s ease forwards;
}

@keyframes pageFadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* =========================
   TEXT HOVER EFFECT
========================= */

.greeting,
h1,
.role {
    transition: 0.3s ease;
    cursor: default;
}


/* Hi, I am */

.greeting:hover {
    transform: translateX(10px);
    color: #555;
}


/* Your name */

h1:hover {
    transform: translateX(10px) scale(1.02);
;
    letter-spacing: 1px;
}


/* Your title */

.role:hover {
    transform: translateX(10px);
    color: #333;
}
/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        min-height: auto;
        overflow: visible;
    }
    
    .hero-left,
    .hero-right {
        width: 100%;
    }

    .hero-left {
        padding: 30px 6%;
    }

    .hero-left::after {
        display: none;
    }

    .hero-right {
        padding: 25px 0 0;
        min-height: auto;
        overflow: hidden;
    }

    nav {
        justify-content: center;
        flex-wrap: wrap;
        gap: 18px;
        margin-bottom: 20px;
        text-align: center;
        padding: 0 6%;
    }

    .profile {
        position: relative;
        height: auto;
        width: 100%;

        display: flex;
        justify-content: flex-end;
    }

    .profile img {
        height: auto;
        width: 70%;
        max-width: 320px;
        display: block;
        margin-right: 110px;
    }

    h1 {
        font-size: clamp(32px, 8vw, 48px);
    }

    .greeting {
        font-size: 18px;
    }

    .role {
        font-size: 15px;
    }

    .socials {
        justify-content: center;
    }
}
