:root {

    --clr-dark: 277 67% 10%;
    --clr-accent: 94 59% 66%;
    --clr-light: 277 64% 80%;
    --clr-white: 0 0% 100%;


    --fs-body: 0.9375rem;
    --fs-navbar: 1.4rem;
    --fs-cta: 1rem;
    --fs-med: 1.2rem;
    --fs-lg: 1.8rem;
    --fs-xl: 2.4rem;


    --ff-primary: 'Maven Pro', sans-serif;
    --ff-secondary: 'Source Code Pro', sans-serif;

    --fw-x-light: 200;
    --fw-light: 300;
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;
    --fw-extra-bold: 800;
}

@media (min-width: 35em) {
    :root {
        --fs-body: 1.1rem;
        --fs-navbar: 1rem;
        --fs-cta: 1.2rem;
        --fs-med: 1.4rem;
        --fs-lg: 2rem;
        --fs-xl: 2.6rem;
    }

}

@media (min-width: 55em) {
    :root {
        --fs-body: 1.2rem;
        --fs-navbar: 1rem;
        --fs-cta: 1.2rem;
        --fs-med: 1.7rem;
        --fs-lg: 2.6875rem;
        --fs-xl: 3.375rem;
    }

}

/* RESETS */

html {
    box-sizing: border-box;
    font-size: 100%;
    scroll-behavior: smooth;
}

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

body,
h1,
h2,
h3,
h4,
h5,
p,
ul,
figure,
picture {
    margin: 0;
    padding: 0;
}

h1,
h2,
h3 {
    display: block;
}

img,
picture {
    max-width: 100%;
    display: block;
}

input,
button,
textarea,
select {
    font: inherit;
}

a {
    text-decoration: none;
    color: inherit;
}

li {
    list-style: none;
}

button {
    cursor: pointer
}

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

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* BODY STYLESs */

body {
    font-size: var(--fs-200);
    font-family: var(--ff-primary);
    color: hsl(var(--clr-light));
    line-height: 1.5;
    background-color: hsl(var(--clr-dark));
}

/* UTILITY CLASSES */

/* screen-reader only */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    /* added line */
    border: 0;
}

/* text upper case */

.uppercase {
    text-transform: uppercase;
}

/* font families */

.ff-primary {
    font-family: var(--ff-primary)
}

.ff-secondary {
    font-family: var(--ff-secondary);
}

/* font-weights */

.fw-x-light {
    font-weight: var(--fw-x-light);
}

.fw-light {
    font-weight: var(--fw-light);
}

.fw-regular {
    font-weight: var(--fw-regular);
}

.fw-medium {
    font-weight: var(--fw-medium);
}

.fw-semibold {
    font-weight: var(--fw-semibold);
}

.fw-bold {
    font-weight: var(--fw-bold);
}

/* font sizes */

.fs-body {
    font-size: var(--fs-body);
}

.fs-navbar {
    font-size: var(--fs-navbar);
}

.fs-cta {
    font-size: var(--fs-cta);
}

.fs-med {
    font-size: var(--fs-med);
}

.fs-lg {
    font-size: var(--fs-lg);
}

.fs-xl {
    font-size: var(--fs-xl);
}

/* text colors */

.text-dark {
    color: hsl(var(--clr-dark));
}

.text-accent {
    color: hsl(var(--clr-accent));
}

.text-light {
    color: hsl(var(--clr-light));
}

.text-white {
    color: hsl(var(--clr-white))
}

/* bg colors */

.bg-dark {
    background-color: hsl(var(--clr-dark));
}

.bg-accent {
    background-color: hsl(var(--clr-accent));
}

.bg-light {
    background-color: hsl(var(--clr-light));
}

.bg-white {
    background-color: hsl(var(--clr-white))
}

/* layout */

.grid {
    display: grid;
}

.flex {
    display: flex;
}

.wrapper {
    position: relative;
    max-width: 1300px;
    padding: 2rem;
    margin-inline: auto;
}

/* margins */

.mg-top-lg {
    margin-block-start: 3rem;
}

.mg-top-md {
    margin-block-start: 2rem;
}

.mg-top-sm {
    margin-block-start: 1rem;
}


/* BGs */

/* .background {
    background-image: url(/Assets/backgrounds/background-gradient-desktop.svg);
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
} */

.background--home,
.background--about,
.background--work,
.background--contact {
    position: relative;
}

.background--home::before,
.background--about::before,
.background--work::before,
.background--contact::before {
    content: "";
    position: absolute;
    inset: 0 0 0 0;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    mix-blend-mode: lighten;
    opacity: 0.09;
    box-shadow: inset 0px -46px 46px -26px hsl(var(--clr-dark)), inset 0px 46px 46px -26px hsl(var(--clr-dark));
}

.background>* {
    isolation: isolate;
}

/* .background--home::before {
    inset: -17rem 0 0 0;
    background-image: url(/Assets/backgrounds/alt-bg-images/tablet/background-image-desktop-home.svg);
}

.background--about::before {
    background-image: url(/Assets/backgrounds/alt-bg-images/tablet/background-image-desktop-about.svg);
}

.background--work::before {
    background-image: url(/Assets/backgrounds/alt-bg-images/tablet/background-image-desktop-work.svg);
}

.background--contact::before {
    background-image: url(/Assets/backgrounds/alt-bg-images/tablet/background-image-desktop-contact.svg);
} */


/* BUTTONS */

.btn {
    font-family: var(--ff-secondary);
    padding: 1rem 1.5rem;
    border: none;
    background: hsl(var(--clr-light) / 0.07);
    cursor: pointer;
    transition: background 300ms ease-in-out, color 300ms ease-in-out;
}

.btn:hover,
.btn:focus {
    background: hsl(var(--clr-light));
    color: hsl(var(--clr-dark));
}

.contact__btn {
    justify-self: center;
}


/* PRIMARY HEADER/NAVBAR */

.primary-header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
    transition: transform 300ms ease-in-out, background-color 300ms ease-in-out;
}

.primary-header__inner.wrapper {
    padding-block: 1.5rem;
}

.primary-header__inner {
    justify-content: space-between;
    align-items: center;
}

.primary-header__logo {
    position: relative;
    z-index: 1000;
    font-size: clamp(1.3rem, 2vw, 1.8rem);
}


/* li {
    align-self: start;
} */


/* .primary-navigation a {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: opacity 200ms ease-in-out;
    position: relative;
}

.primary-navigation a span {
    position: absolute;
    bottom: -2rem;
    opacity: 0;
    letter-spacing: 1px;
}

.primary-navigation a:hover span,
.primary-navigation a:focus span {
    opacity: 1;
} */

.primary-navigation__toggle {
    display: none;
}

.primary-navigation svg {
    display: flex;
    stroke: hsl(var(--clr-accent));
    stroke-width: 1.5;
    transform: scale(1.2);
}

/* NAVBAR SCROLL */

.scroll-down .primary-header {
    transform: translate3d(0, -100%, 0);
}

.scroll-up .primary-header {
    background-color: hsl(var(--clr-dark) / 0.07);
    backdrop-filter: blur(10px);
    box-shadow: 0px 5px 20px 0px rgba(0, 0, 0, 0.3);

}

/* SECTION STYLES */

.grid--about,
.grid--work,
.grid--contact {
    padding-block-start: 7rem;
}

.intro {
    min-height: 100vh;
    align-items: center;
    text-align: center;
}

.intro,
.about,
.work,
.contact {
    flex-direction: column;
    line-height: 1.2;
}

.intro,
.about,
.contact {
    justify-content: center;
}

.work {
    justify-content: start;
}

/* .intro::after,
.about::after,
.work::after {
    content: "";
    background-color: hsl(var(--clr-light) / 0.5);
    width: 10rem;
    max-width: 1300px;
    height: .05rem;
    border-radius: 1rem;
    display: block;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.intro::after {
    bottom: 3rem
}

.about::after,
.work::after {
    bottom: -4rem
} */


/* ABOUT SECTION */

.grid--about {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, min-content);
    justify-content: center;
    row-gap: 2rem;
}

/* .scroll-up .grid--about {
    padding: 5rem 0 0 0;
} */

.image-wrapper {
    grid-column: 1;
    grid-row: 2;
    justify-self: center;
    position: relative;
    z-index: 1;
}

.about__photo {
    object-fit: cover;
    width: 120px;
}

.about__photo::after {
    content: "";
    position: absolute;
    display: block;
    width: 100%;
    height: 100%;
    top: 15px;
    left: 15px;
    z-index: -1;
    border: 1px dashed hsl(var(--clr-light));
}

.about__para,
.about__heading {
    text-align: center;
}

.about__para {
    justify-self: center;
    width: 80%;
}

.skills-card {
    background-color: hsl(var(--clr-light) / 0.08);
    padding: 2rem 1rem;
    backdrop-filter: blur(7px);
}

.skills-card__icon svg {
    width: 2rem;
    height: 2rem;
    stroke-width: 1;
}

/* WORK SECTION */

/* CONTACT SECTION */

.contact__form {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, min-content);
    gap: 2rem;
}

.form-fieldset {
    border: none;
    min-height: 3rem
}

.form-fieldset :is(input, textarea) {
    width: 100%;
    height: 100%;
    background-color: hsl(var(--clr-light) / 0.08);
    border: none;
    padding: 1rem;
    backdrop-filter: blur(5px);
}

.form-fieldset ::placeholder {
    color: hsl(var(--clr-light));
}

/* FOOTER */






/* MOBILE MENU MEDIA QUERY */

@media (max-width: 34.99em) {

    .primary-navigation {
        flex-direction: column;
        gap: 4rem;
        height: 100vh;
        position: fixed;
        inset: 0 0 0 0;
        background-color: hsl(var(--clr-dark)/0.8);
        backdrop-filter: blur(5px);
        padding: 12rem 2rem;
        visibility: hidden;
        transform: translateX(100%);
        transition: transform 500ms ease-in-out, visibility 500ms ease-in-out;
    }

    .primary-navigation a {
        align-items: center;
        gap: 2rem;
    }

    .primary-navigation a span {
        font-size: 1.2rem;
        letter-spacing: 1px;
    }

    .primary-navigation[data-visible="true"] {
        visibility: visible;
        transform: translateX(0);
    }

    /* .primary-navigation a {
        flex-direction: row;
        align-items: center;
        gap: 2.5rem;
    } */

    .primary-navigation__toggle {
        position: absolute;
        z-index: 1000;
        right: 0;
        border: none;
        background: transparent;
        display: flex;
        transform: scale(0.7);
    }

    .hamburger {
        fill: hsl(var(--clr-accent));
    }

    .primary-navigation__toggle .line {
        transform-origin: center;
        transition: y 200ms ease-in-out 200ms, rotate 200ms ease-in-out
    }

    .primary-navigation__toggle[aria-expanded="true"] .line {
        transition: y 200ms ease-in-out, rotate 200ms ease-in-out 200ms;
    }

    .primary-navigation__toggle[aria-expanded="true"] :is(.top, .bottom) {
        y: 50%;
    }

    .primary-navigation__toggle[aria-expanded="true"] .top {
        rotate: 45deg;
    }

    .primary-navigation__toggle[aria-expanded="true"] .bottom {
        rotate: -45deg;
    }

}

/* TABLET MEDIA QUERY */

@media (min-width: 35em) {
    .wrapper {
        padding: 3rem;
    }

    .intro {
        align-items: start;
        text-align: left;
    }

    .primary-header__inner.wrapper {
        padding-block: 1.6rem;
    }

    .primary-navigation {
        gap: 3.5rem;
    }

    .primary-navigation a {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        transition: opacity 200ms ease-in-out;
        position: relative;
    }

    .primary-navigation a span {
        position: absolute;
        bottom: -1.5rem;
        opacity: 0;
        font-size: 0.9rem;
        letter-spacing: 1px;
    }

    .primary-navigation a:hover span,
    .primary-navigation a:focus span {
        opacity: 1;
    }

}

/* DESKTOP MEDIA QUERY */

@media (min-width: 55em) {

    /* .background--home::before {
        inset: 0 0 0 0;
        background-image: url(/Assets/backgrounds/alt-bg-images/background-image-desktop.svg);
    }

    .background--about::before {
        background-image: url(/Assets/backgrounds/alt-bg-images/background-image-desktop-about.svg);
    }

    .background--work::before {
        background-image: url(/Assets/backgrounds/alt-bg-images/background-image-desktop-work.svg);
    }

    .background--contact::before {
        background-image: url(/Assets/backgrounds/alt-bg-images/background-image-desktop-contact.svg);
    } */

    .primary-navigation {
        gap: 4.5rem;
    }

    .grid--about {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(3, min-content);
        column-gap: 2rem;
        row-gap: 0;
    }

    .image-wrapper {
        grid-column: 4 / 5;
        grid-row: 1 / -1;
        justify-self: end;
        margin-inline-end: 1rem;
    }

    .about__photo {
        position: relative;
        z-index: 1;
        width: 150px;
    }

    .about__heading {
        align-self: end;
        grid-column: 1 / 5;
        grid-row: 1;
    }

    .about__para {
        grid-column: 1/4;
        grid-row: 2 / 4;
        justify-self: start;
        width: auto;
    }

    .about__para,
    .about__heading {
        text-align: left;
    }

    .grid--skills {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(2, min-content);
        justify-content: center;
    }

    .skills-card__heading {
        grid-row: 1 / 2;
    }

    .skills-card:not(.skills-card:last-of-type) {
        margin-inline-end: 1rem;
    }

    .skills-card {
        grid-row: 2 / 3;
    }

    .contact__form {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, min-content);
        gap: 2rem;
    }

    .form-email {
        grid-row: 2;
    }

    .form-message {
        grid-row: 1 / 3;
    }

    .contact__btn {
        grid-row: 3;
        grid-column: 2;
        justify-self: end;
    }

}