@import "tailwindcss/base";
@import "tailwindcss/components";
@import "tailwindcss/utilities";
/* @import './reset.css'; */

/*
===========================
GLOBAL STYLES
===========================
*/

:root {
    --dark: hsl(209, 20%, 21%);
    --light: hsl(187, 62%, 87%);
    --primary: hsl(187, 84%, 59%);
    --primary85: hsla(187, 84%, 59%, 0.85);
    --white: hsl(34, 100%, 99%);
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins/Poppins-SemiBold.woff2') format('woff2'),
        url('../fonts/Poppins/Poppins-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins/Poppins-Regular.woff2') format('woff2'),
        url('../fonts/Poppins/Poppins-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Roboto Mono';
    src: url('../fonts/RobotoMono/RobotoMono-Regular.woff2') format('woff2'),
        url('../fonts/RobotoMono/RobotoMono-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    background-color: var(--white);
    position: relative;
    & *::selection {
        background-color: var(--primary85);
        color: var(--dark);
    }
}

/* Dark theme */
.dark {
    color: var(--white);
    background-color: var(--dark);
    & a,
    & .link-hover__label {
        color: var(--white);
    }
}

/* Dark background */
.dark-background {
    background-color: var(--dark);
}

h1 {
    font-size: 4.25rem;
    font-weight: normal;
    line-height: 1.2;
    &.dev__title {
        font-family: 'Roboto Mono', monospace;
        width: 50%;
        @media (max-width: 80rem) {
            width: 100%;
        }
        @media (max-height: 56rem) {
            font-size: 2rem;
        }
    }
    @media (max-width: 62rem) {
        font-size: 2.75rem;
    }
}

h2 {
    font-size: 1.4rem;
    font-weight: 600;
}

p {
    font-size: 1rem;
}

ul {
    list-style-type: none;
    padding-left: 0;
}

a {
    color: var(--dark);
    text-decoration: none;
    &:hover {
        color: var(--primary);
        transition: 0.2s ease-in-out;
    }
}

/* links */
.link-hover {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    gap: 1.875rem;
    & .link-hover__label {
        width: 100%;
        position: relative;
        right: 100%;
        transition: 0.5s ease-in-out;
        @media (max-width: 48rem) {
            display: none;
        }
    }
    & .link-hover__svg {
        max-width: 1rem;
        width: 100%;
        z-index: 1;
        transition: 0.5s ease-in-out;
        @media (max-width: 48rem) {
            max-width: 3.75rem;
        }
    }
    & .down {
        transform: rotate(90deg);
    }
    &:hover {
        color: var(--dark);
        & .link-hover__label {
            right: 0;
            transition: 0.5s ease-in-out;
        }
    }
}

.live-link,
.repo-link,
.recording-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: .9375rem;
    & .live-link__svg,
    & .repo-link__svg,
    & .recording-link__svg {
        position: relative;
        max-width: 1rem;
        width: 100%;
        }
    & .recording-link__svg {
        max-width: 1.4rem;
    }
    &:hover .live-link__svg,
    &:hover .repo-link__svg,
    &:hover .recording-link__svg {
        bottom: 2px;
        left: 2px;
    }
    & .live-link__svg {
        transform: rotate(-45deg);
    }
}

header {
    padding-bottom: 3.75rem;
    @media (max-width: 48rem) {
        padding-bottom: 1.875rem;
    }
}

footer {
    padding-top: 3.75rem;
    @media (max-width: 48rem) {
        padding-top: 1.875rem;
    }
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.8125rem 3.75rem;
    @media (max-width: 48rem) {
        padding: 1.75rem 1.875rem;
    }
}

.main__inner {
    padding: 0 3.75rem;
    max-width: 75rem;
    margin: 0 auto;
    @media (max-width: 48rem) {
        padding: 0 1.875rem;
    }
}

/*
===========================
HOMEPAGE
===========================
*/

/* Hero section */
.hero {
    position: absolute;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

/* Hero section (developper) */
.hero--dev {
    position: relative;
    color: var(--white);
    & a {
        color: var(--white);
    } & a:hover {
        color: var(--primary);
    } & .button--dev:hover {
        color: var(--white);
    }
    &::before {
        content: "";
        height: 100%;
        width: 100%;
        position: absolute;
        background-color: var(--dark);
        z-index: -2;
    }
}

/* Hero content */
.hero__content {
    padding: 0 7.5rem;
    margin: 0 auto;
    transition: 0.3s ease-in-out;
    @media (max-width: 80rem) {
        padding: 0 3.75rem;
    }
    @media (max-width: 48rem) {
        padding: 0 1.875rem;
    }
}

/* Hero button */
.hero__button {
    display: inline-block;
    max-width: 16rem;
    width: 100%;
    text-align: center;
    padding: 1.25rem 2.5rem;
    border: solid 2px var(--primary);
    @media (max-width: 48rem) {
        max-width: 14rem;
        padding: 1rem 2rem;
    }
}

/* Hero button (developper) */
.hero__button--dev {
    margin-top: 3.75rem;
    transition: 0.4s ease-in-out;
    background-color: var(--dark);
    &:hover {
        box-shadow: 0px 0px 25px 5px hsla(187, 100%, 50%, 0.14);
        transition: 0.4s ease-in-out;
    }
    @media (max-width: 48rem) {
        margin-top: 1.875rem;
    }
}

/* Animation (developper) */
.code-animation {
    z-index: -2;
    position: absolute;
    top: 0;
    left: 0;
    width: 42%;
    opacity: 0.1;
    @media (max-width: 80rem) {
        left: 60%;
        top: -35%;
    }
    & .code {
        position: absolute;
        top: 44vh;
        left: -6rem;
        animation: float2 6s infinite ease-in-out;
    }
}

@keyframes float2 {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(2rem);
    }
    100% {
        transform: translateY(0);
    }
}

/* Hero image */
.hero__image {
    position: absolute;
    z-index: -1;
    @media (max-width: 80rem) {
        display: none;
    }
    @media (max-height: 56rem) {
        display: none;
    }
}

.wd-image {
    max-width: 55vw;
    width: 100%;
    bottom: 2vh;
    right: -7vw;
}

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

/* Page Header component */
.page-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 7.5rem;
    @media (max-width: 48rem) {
        margin-bottom: 3.75rem;
        flex-direction: column;
        gap: 1.875rem;
    }
    & .page-header__title {
        max-width: 45%;
        position: relative;
        left: 3.75rem;
        @media (max-width: 62rem) {
            left: 1.875rem;
        }
        @media (max-width: 48rem) {
            left: 0;
            max-width: 18.75rem;
        }
        &::before {
            content: "";
            display: block;
            width: 2px;
            height: 100%;
            background-color: var(--primary);
            position: absolute;
            top: 0;
            left: -3.75rem;
            @media (max-width: 62rem) {
                left: -1.875rem;
            }
            @media (max-width: 48rem) {
                display: none;
            }
        }
    }
    & .page-header__right {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: flex-end;
        @media (max-width: 48rem) {
            flex-direction: row-reverse;
        }
        & .page-header__icon {
            max-height: 3.75rem;
        }
    }
}

/* Web projects (developper) */
.web-projects {
    display: flex;
    flex-direction: column;
    gap: 3.75rem;
    transition: 0.2s ease-in-out;
    & .faded {
        opacity: 0.5;
        transition: 0.4s ease-in-out;
    }
    & .web-project {
        display: flex;
        flex-wrap: wrap;
        gap: 1.875rem;
        & .web-project__thumbnail {
            width: 30%;
            @media (max-width: 62rem) {
                width: 40%;
            }
            @media (max-width: 48rem) {
                width: 100%;
            }
        }
        & .web-project__content {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: .9375rem;
        }
        & .web-project__header,
        & .web-project__links {
            display: flex;
            justify-content: space-between;
            flex-wrap: wrap;
            align-items: center;
            gap: .9375rem;
        }
        & .web_project__tags {
            display: flex;
            flex-wrap: wrap;
            gap: 1.25rem;
            color: var(--primary);
        }
    }
}

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

/* About section */
.about {
    & .about__header {
        padding-bottom: 1.875rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    & .about__tagline {
        display: flex;
        flex-direction: column;
        width: 100%;
        & p {
            display: flex;
            gap: .9375rem;
            align-items: center;
            font-size: clamp(1rem, 5vw, 4.2rem);
            font-weight: normal;
            line-height: 1.4;
        }
    }
    & .about__icon {
        max-height: 3.75rem;
        @media (max-width: 80rem) {
            max-height: 2.7rem;
        }
        @media (max-width: 48rem) {
            max-height: 1.2rem;
        }
        &::selection {
            background-color: transparent;
        }
    }
}

/* About extra content */
.socials {
    margin-top: 3.75rem;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .9375rem;
}

.skills__wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 7.5rem;
    @media (max-width: 62rem) {
        gap: 3.75rem;
    }
    @media (max-width: 48rem) {
        gap: 1.875rem;
    }
}

.skills {
    margin-top: 3.75rem;
    & .skills__title {
        font-weight: 600;
        padding-bottom: 1.875rem;
    }
    & .skills__content {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        gap: .9375rem;
    }
}