:root {
    scroll-behavior: smooth;
    
    --body-font: "Work Sans", sans-serif;
    --heading-font: "Epilogue", sans-serif;

    --default-transition-duration: 200ms;

    /* COLOR */
    --white: #fff;
    --white-60: rgba(255, 255, 255, 0.6);
    --white-70: rgba(255, 255, 255, 0.7);
    --white-80: rgba(255, 255, 255, 0.8);
    --primary-100: #e5e6ff;
    --primary-100-transparent-20: rgba(229, 230, 255, 0.2);
    --primary-100-transparent-10: rgba(229, 230, 255, 0.1);
    --primary-200: #bdbfff;
    --primary-300: #9497ff;
    --primary-400: #6e72ff;
    --primary-main: #444aff;
    --primary-main-transparent-90: rgba(68, 74, 255, 0.9);
    --primary-main-transparent-50: rgba(68, 74, 255, 0.5);
    --primary-600: #3136cc;
    --primary-700: #1f2399;
    --primary-800: #0f1266;
    --primary-800-transparent-50: rgba(15, 18, 102, 0.5);
    --primary-900: #050733;
    --primary-900-transparent-50: rgba(5, 7, 51, 0.5);
    --primary-900-transparent-30: rgba(5, 7, 51, 0.3);
    --primary-900-transparent-20: rgba(5, 7, 51, 0.2);
    --primary-900-transparent-10: rgba(5, 7, 51, 0.1);
    --light-text-gradient: linear-gradient(90deg, rgb(229, 230, 255) 0%, rgb(68, 74, 255) 100%);
    --dark-background-gradient: linear-gradient(45deg, rgba(5,7,51,1) 0%, rgba(15,18,102,1) 100%);

    /* SPACING */
    --standard-width: 1160px;
    --standard-width-sm: 615px;
    --standard-width-md: 860px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 30px;
    --spacing-xl: 64px;
    --spacing-xxl: 120px;
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 24px;

    /* BOX SHADOW */
    --standard-box-shadow: 0px 2px 40px rgba(0, 0, 0, 0.15);
}


/* ------------------------------------------------- CUSTOM FONTS ----------------------------------------------------------- */

@font-face {
    font-family: "Work Sans";
    src: url("./assets/fonts/WorkSans-ExtraLight.ttf") format("truetype");
    font-weight: 200;
    font-style: normal;
}

@font-face {
    font-family: "Work Sans";
    src: url("./assets/fonts/WorkSans-Light.ttf") format("truetype");
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: "Work Sans";
    src: url("./assets/fonts/WorkSans-Regular.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "Work Sans";
    src: url("./assets/fonts/WorkSans-Medium.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: "Epilogue";
    src: url("./assets/fonts/Epilogue-Thin.ttf") format("truetype");
    font-weight: 100;
    font-style: normal;
}

@font-face {
    font-family: "Epilogue";
    src: url("./assets/fonts/Epilogue-ThinItalic.ttf") format("truetype");
    font-weight: 100;
    font-style: italic;
}

@font-face {
    font-family: "Epilogue";
    src: url("./assets/fonts/Epilogue-ExtraLight.ttf") format("truetype");
    font-weight: 200;
    font-style: normal;
}

@font-face {
    font-family: "Epilogue";
    src: url("./assets/fonts/Epilogue-ExtraLightItalic.ttf") format("truetype");
    font-weight: 200;
    font-style: italic;
}

@font-face {
    font-family: "Epilogue";
    src: url("./assets/fonts/Epilogue-Light.ttf") format("truetype");
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: "Epilogue";
    src: url("./assets/fonts/Epilogue-LightItalic.ttf") format("truetype");
    font-weight: 300;
    font-style: italic;
}

@font-face {
    font-family: "Epilogue";
    src: url("./assets/fonts/Epilogue-Regular.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "Epilogue";
    src: url("./assets/fonts/Epilogue-Italic.ttf") format("truetype");
    font-weight: normal;
    font-style: italic;
}
  
@font-face {
    font-family: "Epilogue";
    src: url("./assets/fonts/Epilogue-Medium.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
}
  
@font-face {
    font-family: "Epilogue";
    src: url("./assets/fonts/Epilogue-SemiBold.ttf") format("truetype");
    font-weight: 600;
    font-style: normal;
}
  
@font-face {
    font-family: "Epilogue";
    src: url("./assets/fonts/Epilogue-Bold.ttf") format("truetype");
    font-weight: bold;
    font-style: normal;
}
  
@font-face {
    font-family: "Epilogue";
    src: url("./assets/fonts/Epilogue-BoldItalic.ttf") format("truetype");
    font-weight: bold;
    font-style: italic;
}


/* ------------------------------------------------- GENERIC STYLES ----------------------------------------------------------- */

body {
    font-family: var(--body-font);
    font-weight: normal;
    margin: 0;
    text-transform: lowercase;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    margin: 0;
}

h1, h2 {
    color: var(--white);
    font-size: 88px;
    font-weight: bold;
    line-height: 100%;
    letter-spacing: -4px;
}

h3 {
    font-size: 40px;
    font-weight: bold;
    letter-spacing: -2px;
}

h4 {
    font-size: 25px;
    font-weight: normal;
    letter-spacing: 2px;
    line-height: 30px;
}

h5 {
    font-size: 20px;
    font-weight: normal;
    letter-spacing: 8px;
    line-height: normal;
}

h6 {
    font-size: 25px;
    font-weight: 500;
    letter-spacing: -1px;
    line-height: normal;
}

ul {
    margin: 0;
    padding: 0;
}

ul, li {
    list-style: none;
}

button {
    font-family: var(--body-font);
    color: var(--primary-100);
    border: none;
    border-radius: var(--border-radius-md);
    font-size: 15px;
    line-height: 126%;
    cursor: pointer;
}

.full-viewport-height {
    min-height: 100dvh;
}

.dark-gradient-background {
    background: var(--dark-background-gradient);
}

.margin-container {
    width: 90%;
    max-width: var(--standard-width);
    margin-inline: auto;
}

.blue-text {
    color: var(--primary-main);
}

.light-gradient-text {
    background: var(--light-text-gradient);
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
}

.link-text {
    font-size: 14px;
    line-height: 126%;
    text-decoration: none;
}

.primary-button {
    background-color: var(--primary-main);
}

.secondary-button {
    padding-block: 20px;
    background-color: transparent;
    border: 2px solid var(--primary-main);
    width: 30%;
    max-width: 160px;
    transition: border-color;
    transition-duration: var(--default-transition-duration);
    transition-timing-function: ease-in-out;
}
.secondary-button:hover {
    border-color: var(--primary-100);
}

.italicize {
    font-style: italic;
}

.arrow-down-icon-group {
    width: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-inline: auto;
    animation: 6000ms ease-out 4300ms infinite move-down-up-header;
}
.arrow-down-icon-group svg:nth-of-type(1) {
    animation: 6000ms ease-out 4000ms infinite blink-header;
}
.arrow-down-icon-group svg:nth-of-type(2) {
    animation: 6000ms ease-out 4100ms infinite blink-header;
}
.arrow-down-icon-group svg:nth-of-type(3) {
    animation: 6000ms ease-out 4200ms infinite blink-header;
}

#footer .arrow-down-icon-group {
    animation: 4000ms ease-out 2300ms infinite move-down-up;
}
#footer .arrow-down-icon-group svg:nth-of-type(1) {
    animation: 4000ms ease-out 2000ms infinite blink;
}
#footer .arrow-down-icon-group svg:nth-of-type(2) {
    animation: 4000ms ease-out 2100ms infinite blink;
}
#footer .arrow-down-icon-group svg:nth-of-type(3) {
    animation: 4000ms ease-out 2200ms infinite blink;
}


/* ------------------------------------------------- LOADER ----------------------------------------------------------- */

.loader-container {
    position: fixed;
    inset: 0;
    z-index: 999;
    background-color: var(--primary-900);
    display: grid;
    place-content: center;
    transition: opacity .4s ease-in-out, visibility .4s ease-in-out;
}
.loader-container.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    background-color: var(--primary-100-transparent-10);
    width: 84px;
    height: 84px;
    border: 4px solid var(--primary-main);
    border-left-color: transparent;
    border-right-color: transparent;
    border-radius: 50%;
    animation: 1000ms ease infinite alternate spinner;
}

.loader-container svg {
    width: 40px;
    height: 40px;
    transform: translateX(-50%) translateY(-50%);
    position: absolute;
    top: 50%;
    left: 50%;
    animation: 1000ms ease infinite alternate breathe;
}

.loader-container svg path {
    fill: var(--white);
}

@keyframes spinner {
    to {
        transform: rotate(1.5turn) scale(1.2);
    }
}

@keyframes breathe {
    to {
        transform: translateX(-50%) translateY(-50%) scale(1.2);
    }
}


/* ------------------------------------------------- HEADER ----------------------------------------------------------- */

header {
    height: 100dvh;
    min-height: 680px;
    max-height: 976px;
    padding-block: var(--spacing-lg);
    box-sizing: border-box;
    overflow-x: hidden;
    display: flex;
    position: relative;
}
header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--dark-background-gradient);
    z-index: -2;
}

header .margin-container {
    display: flex;
    flex-direction: column;
}

.header-nav {
    background-color: var(--primary-100-transparent-10);
    width: 100%;
    max-width: var(--standard-width-sm);
    margin-inline: auto;
    padding-right: 16px;
    padding-left: 24px;
    padding-block: 8px;
    border-radius: var(--border-radius-lg);
    box-sizing: border-box;
    position: relative;
    transition: opacity, transform;
    transition-duration: 800ms;
    transition-timing-function: ease-in-out;
}
.header-nav.hidden {
    transform: translateY(-100%);
    opacity: 0;
}

.header-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-nav a {
    color: var(--primary-100);
    display: block;
}

.header-nav li.services > a,
.header-nav li.portfolio > a,
.header-nav li.about > a {
    transition: color var(--default-transition-duration) ease-in-out;
}
.header-nav li.services > a:hover,
.header-nav li.portfolio > a:hover,
.header-nav li.about > a:hover {
    color: var(--primary-300);
}

.header-nav li.get-in-touch a {
    background-color: var(--primary-100-transparent-10);
    color: var(--primary-100);
    padding-inline: 10px;
    padding-block: 10px;
    border: 1px solid transparent;
    border-radius: var(--border-radius-md);
    transition-property: background-color, color, border-color;
    transition-duration: var(--default-transition-duration);
    transition-timing-function: ease-in-out;
}
.header-nav li.get-in-touch a:hover {
    background-color: var(--primary-900-transparent-20);
    border-color: var(--primary-100);
}

.header-nav .logo-link {
    font-size: 0;
}
.header-nav .logo-link:hover > svg {
    transform: scale(1.05);
}

.header-nav svg {
    background-color: var(--primary-100-transparent-10);
    color: var(--white);
    width: 36px;
    height: 36px;
    padding: 2px;
    border-radius: 50%;
    transition: transform 200ms ease-in-out;
}

.header-nav .hamburger-menu-container {
    display: none;
}

.header-nav .hamburger-menu-icon {
    background-color: var(--primary-100-transparent-10);
    width: 30px;
    height: 30px;
    border-radius: var(--border-radius-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    cursor: pointer;
    transition: background-color var(--default-transition-duration) ease-in-out;
}
.header-nav .hamburger-menu-icon:hover {
    background-color: var(--primary-100-transparent-20);
}

.header-nav .hamburger-menu-icon > div {
    width: 65%;
    flex-basis: 8%;
    border-bottom: 3px solid var(--primary-100);
    margin-top: -3px;
}

.header-nav .hamburger-menu-container .menu-list {    
    background-color: var(--primary-100-transparent-10);
    width: 50vw;
    max-width: 120px;
    padding-inline: 20px;
    padding-block: 8px;
    border-radius: 12px;
    position: absolute;
    top: 120%;
    right: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    backdrop-filter: blur(20px);
    transform: translateY(25%);
    opacity: 0;
    visibility: hidden;
    transition-property: transform, opacity, visibility;
    transition-duration: var(--default-transition-duration);
    transition-timing-function: ease-in-out;
}

.header-nav .hamburger-menu-container.open .menu-list {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

.header-nav .hamburger-menu-container .menu-list li {
    margin-block: 4px;
    width: 100%;
}

.header-nav .hamburger-menu-container .menu-list li:not(.get-in-touch) a {
    text-align: center;
    padding-block: 8px;
    width: 100%;
    border-radius: 2px;
    transition-property: color;
    transition-duration: var(--default-transition-duration);
    transition-timing-function: ease-in-out;
}
.header-nav .hamburger-menu-container .menu-list li:not(.get-in-touch) a:hover {
    color: var(--primary-300);
}

.header-nav .hamburger-menu-container .menu-list .get-in-touch {    
    width: 100%;
    text-align: center;
    margin-block: 8px;
}


/* ------------------------------------------------- HERO SECTION ----------------------------------------------------------- */

.hero-section {
    margin-top: var(--spacing-xl);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}

.hero-section .hero-headings {
    position: relative;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-evenly;
}

.hero-section .logo-watermark {
    opacity: 0.8;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -58%) scale(0.95);
    z-index: -1;
}

.hero-section .heading-container {
    position: relative;
    width: 100%;
}

.hero-section .intro, .hero-section .skill, .hero-section .cta-buttons, .hero-section .social-icons {
    transition-property: opacity, transform;
    transition-timing-function: ease-in-out;
}

.hero-section .intro {
    width: fit-content;
    transition-duration: 800ms;
}
.hero-section .intro.hidden,
.hero-section .cta-buttons.hidden,
.hero-section .social-icons.hidden {
    opacity: 0;
    transform: translateX(-120px);
}

.hero-section .intro span:last-of-type {
    font-size: 40px;
    font-weight: 100;
    color: var(--white-60);
    letter-spacing: -2px;
}

.hero-section .intro span.show-sm {
    display: none;
}

.hero-section .skill {
    color: var(--white);
    text-align: right;
    transition-duration: 800ms;
}
.hero-section .skill.hidden {
    opacity: 0;
    transform: translateX(120px);
}

.hero-section .cta-buttons {
    width: 60%;
    position: absolute;
    bottom: -80px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition-duration: 800ms;
}

.hero-section .primary-button {
    width: 30%;
    max-width: 250px;
    min-width: 190px;
    padding-block: 20px;
    border: 2px solid var(--primary-main);
    transition-property: background-color, color, border-color;
    transition-duration: var(--default-transition-duration);
    transition-timing-function: ease-in-out;
}
.hero-section .primary-button:hover {
    background-color: var(--white);
    border-color: var(--white);
    color: var(--primary-900);
}

.hero-section .heading-flex-container {
    display: flex;
    justify-content: space-between;
    align-items: end;
}

.hero-section .heading-flex-container .social-icons {
    margin-bottom: 16px;
    transition-duration: 800ms;
}

.hero-section .icon {
    font-size: 0;
    margin-right: 16px;
    opacity: 20%;
    transition: opacity 200ms ease-in;
}
.hero-section .icon:hover {
    opacity: 100%;
}

.hero-section .arrow-down-icon-group {
    transition: opacity, transform;
    transition-duration: 800ms;
    transition-timing-function: ease-in-out;
}
.hero-section .arrow-down-icon-group.hidden {
    transform: translateY(20px);
    opacity: 0;
    animation: none;
}
.hero-section .arrow-down-icon-group.hidden svg {
    animation: none;
}

.hero-section .arrow-down-icon-group svg:nth-of-type(2),
.hero-section .arrow-down-icon-group svg:nth-of-type(3) {
    margin-top: -4px;
}


/* ------------------------------------------------- SERVICES SECTION ----------------------------------------------------------- */

#services {
    color: var(--primary-900);
    height: 100dvh;
    min-height: 680px;
    max-height: 880px;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}
#services .margin-container {
    width: 80%;
    max-width: 480px;
}

#services h2 {
    color: var(--primary-900);
}

#services .icon-background {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    transition-property: transform, opacity, visibility;
    transition-duration: 800ms;
    transition-timing-function: cubic-bezier(.87,-.41,.19,1.44);
}

#services .icon-background.design {
    transform: rotate(-0.5turn);
}
#services .icon-background.development {
    transform: rotate(0.5turn);
}
#services .icon-background.design,
#services .icon-background.development {
    opacity: 0;
    visibility: hidden;
}
#services .icon-background.design.active,
#services .icon-background.development.active {
    opacity: 1;
    visibility: visible;
    transform: rotate(0);
}

#services .icon-background .icon {
    position: absolute;
    left: 0;
    top: 0;
}
#services .icon-background .icon.transition-transform {
    transition: transform 500ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.services-container {
    --before-border-color: var(--primary-900-transparent-10);
    --after-border-color: var(--primary-900-transparent-10);
    background-color: var(--white);
    height: 464px;
    padding: 52px 64px;
    border: 2px solid var(--primary-main);
    border-radius: 8px;
    box-sizing: border-box;
    box-shadow: 4px 4px 0px 0px var(--primary-main-transparent-90);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.services-container::before,
.services-container::after {
    pointer-events: none;
    content: "";
    width: 100%;
    height: 132px;
    position: absolute;
    left: 0;
    transition: border-color var(--default-transition-duration) ease-in-out;
}
.services-container::before {
    border-bottom: 1px solid var(--before-border-color);
    top: 0;
}
.services-container::after {
    border-top: 1px solid var(--after-border-color);
    bottom: 0;
}

.services-container.transition-transform {
    transition: transform 500ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.services-container .details {
    width: 64%;
    max-width: 364px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
}

.services-container h2{
    width: fit-content;
    text-align: start;
    font-size: 56px;
    opacity: .1;
    transform: translateX(-16px);
    transition-property: opacity, transform;
    transition-duration: var(--default-transition-duration);
    transition-timing-function: ease-in-out;
}
.services-container h2 .blue-text{
    color: var(--primary-900);
    pointer-events: none;
    transition: color var(--default-transition-duration) ease-in-out;
}

.services-container h2.active{
    cursor: default;
    opacity: 1;
    transform: translateX(0);
}
.services-container h2.active .blue-text{
    color: var(--primary-main);
}

.services-container h2.inactive{
    cursor: pointer;
}

.services-container .pointer {
    font-size: 0;
    filter: drop-shadow(2px 4px 0px var(--primary-900));
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    transform: translateX(-50%);
    transition: top 800ms cubic-bezier(.87,-.41,.19,1.44);
}
.services-container .pointer.design-focus {
    top: 40px;
}
.services-container .pointer.development-focus {
    top: 340px;
}

.services-container .details p {
    flex: 0 0 100%;
    margin: 0;
    margin-inline: auto;
    line-height: 30px;
    opacity: 0;
    visibility: hidden;
    transition-property: opacity, visibility, transform;
    transition-duration: var(--default-transition-duration);
    transition-timing-function: ease-in-out;
}
.services-container .details p.active{
    opacity: 1;
    visibility: visible;
}

.services-container .details .design{
    transform: translateX(-10%);
}
.services-container .details .development{
    transform: translateX(-90%);
}
.services-container .details .design.active {
    transform: translateX(0);
}
.services-container .details .development.active{
    transform: translateX(-100%);
}

.services-container .details p .bold{
    font-weight: 500;
}


/* ------------------------------------------------- PORTFOLIO WORKS SECTION ----------------------------------------------------------- */

#portfolio {
    height: 100dvh;
    min-height: 600px;
    max-height: 1200px;
    overflow: hidden;
    position: relative;
}

#portfolio > .margin-container:first-child {
    margin-top: 120px;
}

#portfolio .title-and-list .portfolio-list {
    margin-top: 64px;
    padding-left: 24px;
    display: none;
}

#portfolio .title-and-list .portfolio-list li {
    margin-bottom: 24px;
    font-family: var(--heading-font);
    font-size: 32px;
    font-weight: 200;
    font-style: italic;
}

#portfolio .title-and-list .portfolio-list li a {
    color: var(--primary-100);
    text-decoration: none;
}
#portfolio .title-and-list .portfolio-list li a:hover {
    color: var(--primary-300);
}

.portfolio-flex-container {
    width: 50%;
    max-width: 1400px;
    height: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.portfolio-flex-container .portfolio-piece {
    position: relative;
    flex: 1 1 calc(100%/3);
    height: 50%;
    border-left: 1px solid var(--white);
    box-sizing: border-box;
    padding: 1%;
}
.portfolio-flex-container .portfolio-piece:nth-of-type(1),
.portfolio-flex-container .portfolio-piece:nth-of-type(2),
.portfolio-flex-container .portfolio-piece:nth-of-type(3) {
    border-bottom: 1px solid var(--white);
}

.portfolio-flex-container .portfolio-piece .piece-title {
    color: var(--primary-100);
    width: 100%;
    height: 100%;
    padding: 8%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    align-items: center;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 3;
    transition-property: opacity, visibility;
    transition-duration: var(--default-transition-duration);
    transition-timing-function: ease-in-out;
}

.portfolio-flex-container .portfolio-piece .piece-title h3 {
    font-size: 28px;
    font-weight: 600;
    text-align: center;
    transform: translateY(-16px);
    transition: transform 300ms ease-in-out;
}

.portfolio-flex-container .portfolio-piece .piece-title .tags {
    display: flex;
    flex-direction: column;
    gap: 4px;
    transform: translateY(16px);
    transition: transform 300ms ease-in-out;
}

.portfolio-flex-container .portfolio-piece .piece-title .tags .tag {
    text-align: center;
    height: 24px;
    padding-inline: 8px;
    border: 1px solid var(--primary-100);
    border-radius: 12px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
}

.portfolio-flex-container .portfolio-piece:hover .piece-title {
    opacity: .9;
    visibility: visible;
}
.portfolio-flex-container .portfolio-piece:hover .piece-title h3,
.portfolio-flex-container .portfolio-piece:hover .piece-title .tags {
    transform: translateY(0);
}

.portfolio-flex-container .portfolio-piece a {
    font-size: 0;
    height: 100%;
    display: block;
    overflow: hidden;
    position: relative;
}
.portfolio-flex-container .portfolio-piece a::after {
    content: "";
    background-color: var(--primary-900-transparent-50);
    position: absolute;
    inset: -2%;
    z-index: 2;
}

.portfolio-flex-container .portfolio-piece a img {
    width: 150%;
    height: 150%;
    object-fit: cover;
    object-position: top;
    animation: 30s linear infinite move-around-one;
}

.portfolio-flex-container .portfolio-piece:nth-of-type(1) a img,
.portfolio-flex-container .portfolio-piece:nth-of-type(3) a img {
    animation: 30s linear infinite move-around-two;
}
.portfolio-flex-container .portfolio-piece:nth-of-type(2) a img {
    animation: 30s linear infinite move-around-three;
}
.portfolio-flex-container .portfolio-piece:nth-of-type(5) a img {
    animation: 30s linear infinite move-around-four;
}
.portfolio-flex-container:hover .portfolio-piece a img {
    animation-play-state: paused;
}


/*------------------------------------------- BOTTOM NAVBAR ------------------------------------------------------------- */

.bottom-nav {
    width: fit-content;
    margin-top: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-inline: auto;
    visibility: hidden;
    transform: translateY(calc(100% + 40px));
    position: sticky;
    bottom: 24px;
    z-index: 99;
    transition-property: transform, visibility;
    transition-duration: 500ms;
    transition-timing-function: ease-in-out;
}
.bottom-nav.full-appearance {
    visibility: visible;
    transform: translateY(0);
}

.bottom-nav ul {
    background-color: var(--white-70);
    backdrop-filter: blur(8px);
    padding: 0;
    list-style: none;
    margin: 0;
    border-radius: var(--border-radius-lg);
    box-shadow: 2px 4px 28px 0px rgba(5, 7, 51, 0.2);
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    transition-property: background-color, backdrop-filter, box-shadow;
    transition-duration: 400ms;
    transition-timing-function: ease-in-out;
}
.bottom-nav ul.full-background {
    border: 2px solid var(--primary-main);
    backdrop-filter: blur(0px);
    box-shadow: 4px 4px 0px 0px var(--primary-main-transparent-90);
}

.bottom-nav ul > li:nth-of-type(2),
.bottom-nav ul > li:nth-of-type(3) {
    display: flex;
}

.bottom-nav ul > li .link-text {
    padding-top: 19px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bottom-nav a {
    color: var(--primary-900);
    display: block;
    padding-block: 18px;
    padding-inline: 25px;
    transition-property: color, background-color, border-color;
    transition-duration: var(--default-transition-duration);
    transition-timing-function: ease-in-out;
}

.bottom-nav ul > li:first-of-type a,
.bottom-nav ul > li:nth-of-type(2) a,
.bottom-nav ul > li:nth-of-type(3) a {
    border-right: 1px solid var(--primary-900-transparent-20);
}

.bottom-nav a:hover {
    background-color: var(--primary-100);
}

.bottom-nav .logo-link {
    font-size: 0;
}

.bottom-nav .logo-link svg path {
    fill: var(--primary-900);
    transition: fill var(--default-transition-duration) ease-in-out;
}


/* ------------------------------------------------- FOOTER ----------------------------------------------------------- */

footer {
    padding-block: 60px;
    padding-top: 80px;
    box-sizing: border-box;
    color: var(--primary-900);
}

footer h2 {
    color: var(--primary-900);
}

.footer-flex-container {
    flex-grow: 1;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-wrap: wrap;
}
.footer-flex-container .left-side,
.footer-flex-container .right-side {
    flex: 0 1 30%;
}
.footer-flex-container .left-side {
    min-width: 480px;
}

.lets-talk-link {
    text-align: center;
    display: inline-block;
    margin-top: 40px;
    margin-left: 70px;
}

.lets-talk-link > a {
    text-align: center;
    width: 112px;
    height: 112px;
    border: 1px solid var(--primary-main);
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    transition-property: border-color;
    transition-duration: var(--default-transition-duration);
    transition-timing-function: ease-in-out;
}
.lets-talk-link > a:hover {
    border-color: transparent;
}
.lets-talk-link > a:hover span {
    color: var(--primary-100);
}
.lets-talk-link > a::before {
    content: "";
    background-color: var(--primary-main);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    transform: translateY(100%);
    transition: transform var(--default-transition-duration) ease-in-out;
}
.lets-talk-link > a:hover::before {
    transform: translateY(0);
}

.lets-talk-link > a span {
    color: rgb(0, 0, 238);
    transition: color var(--default-transition-duration) ease-in-out;
}

footer .arrow-down-icon-group {
    margin-bottom: 20px;
}

.lets-talk-link > p {
    margin-bottom: 0;
    font-size: 14px;
}
.lets-talk-link > p span {
    opacity: 20%;
}
.lets-talk-link > p a {
    opacity: 20%;
    text-decoration: none;
    color: var(--primary-900);
    transition: opacity 100ms ease-out;
}
.lets-talk-link > p a:hover {
    opacity: 100%;
}

.fun-text {
    font-size: 10px;
    opacity: .3;
}

.footer-social-links {
    max-width: 360px;
    margin-left: auto;
}

.footer-social-links .social-link {
    font-size: 0;
    color: var(--primary-900);
    text-decoration: none;
    padding: 35px 0 22px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--primary-900-transparent-20);
    transition: background-color 200ms ease-in-out, border 200ms ease-in-out;
}
.footer-social-links .social-link:hover {
    background-color: var(--primary-100);
    border-bottom: 1px solid var(--primary-900);
}
.footer-social-links .social-link:hover > svg {
    opacity: 100%;
    transform: translateX(10px);
}
.footer-social-links .social-link:hover > p {
    opacity: 100%;
    transform: translateX(-10px);
}

.footer-social-links .social-link > svg,
.footer-social-links .social-link > p {
    opacity: 20%;
    transition: opacity 200ms ease-in-out, transform 200ms ease-in-out;
}

.footer-social-links .social-link p {
    margin: 0;
    font-family: var(--heading-font);
    font-size: 24px;
    font-weight: 300;
}

.copyright {
    max-width: 360px;
    margin-left: auto;
    margin-top: 60px;
    display: flex;
    justify-content: left;
    align-items: center;
    gap: 30px;
}

.copyright a:first-child {
    font-size: 0;
}

.copyright p {
    margin: 0;
    opacity: 70%;
}


/* ------------------------------------------------- ANIMATIONS ----------------------------------------------------------- */

@keyframes spin {
    70% {
        transform: scale(0.6) rotate(2turn);
    }
    100% {
        transform: scale(1) rotate(0turn);
    }
}

@keyframes rotate {
    100% {
        transform: rotate(-1turn);
    }
}

@keyframes blink-header {
    5% {
        opacity: 0%;
    }
    10%, 100% {
        opacity: 100%;
    }
}

@keyframes blink {
    8% {
        opacity: 0%;
    }
    16%, 100% {
        opacity: 100%;
    }
}

@keyframes move-down-up-header {
    5% {
        transform: translateY(4px);
    }
    10%, 100% {
        transform: translateY(0px);
    }
}

@keyframes move-down-up {
    8% {
        transform: translateY(4px);
    }
    16%, 100% {
        transform: translateY(0px);
    }
}

@keyframes move-around-one {
    35% {
        transform: translateY(-33%);
    }
    50% {
        transform: translateY(-33%) translateX(-33%);
    }
    85% {
        transform: translateY(0) translateX(-33%);
    }
    100% {
        transform: translateX(0);
    }
}

@keyframes move-around-two {
    0% {
        transform: translateX(-33%);
    }
    35% {
        transform: translateY(-33%) translateX(-33%);
    }
    50% {
        transform: translateY(-33%) translateX(0);
    }
    85% {
        transform: translateY(0) translateX(0);
    }
    100% {
        transform: translateY(0) translateX(-33%);
    }
}

@keyframes move-around-three {
    0% {
        transform: translateY(-33%) translateX(-33%);
    }
    35% {
        transform: translateY(0) translateX(-33%);
    }
    50% {
        transform: translateY(0) translateX(0);
    }
    85% {
        transform: translateY(-33%) translateX(0);
    }
    100% {
        transform: translateY(-33%) translateX(-33%);
    }
}

@keyframes move-around-four {
    0% {
        transform: translateY(-33%) translateX(0);
    }
    35% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(0) translateX(-33%);
    }
    85% {
        transform: translateY(-33%) translateX(-33%);
    }
    100% {
        transform: translateY(-33%) translateX(0);
    }
}




/* ------------------------------------------------- MEDIA QUERIES ----------------------------------------------------------- */

@media only screen and (min-width: 2999px) {
    .portfolio-flex-container {
        right: 8%;
    }
    .portfolio-flex-container .portfolio-piece:nth-of-type(3),
    .portfolio-flex-container .portfolio-piece:nth-of-type(6) {
        border-right: 1px solid var(--white);
    }
}


@media only screen and (max-width: 1120px) {

    /* --------------------------------------------------------- GENERIC ------------------------------------------------------------ */

    h1, h2 {
        font-size: 72px;
    }

    .primary-button, .secondary-button {
        padding-block: 16px;
    }

    /* ---------------------------------------------------------- HERO SECTION ------------------------------------------------------- */

    .hero-section .hero-headings {
        justify-content: space-around;
    }

    .hero-section .intro span:last-of-type {
        font-size: 30px;
    }

    .hero-section .cta-buttons {
        bottom: -70px;
    }

    .hero-section .primary-button {
        width: 30%;
        min-width: auto;
        max-width: 164px;
        padding-block: 16px;
    }

    .hero-section .secondary-button {
        width: 24%;
        min-width: auto;
        max-width: 125px;
        padding-block: 16px;
    }

    /* -------------------------------------------------- PORTFOLIO SECTION ------------------------------------------------------ */

    #portfolio {
        max-height: 800px;
    }

    /* -------------------------------------------------------------- FOOTER ------------------------------------------------------------ */

    .footer-flex-container .right-side {
        flex-basis: 35%;
    }

    .footer-flex-container .left-side {
        min-width: 380px;
    }

    .lets-talk-link {
        margin-left: 54px;
    }
}


@media only screen and (max-width: 960px) {

    /* --------------------------------------------------------- GENERIC ------------------------------------------------------------ */

    h1, h2 {
        font-size: 68px;
    }

    /* --------------------------------------------------------- HERO SECTION ------------------------------------------------------------ */

    .hero-section .cta-buttons {
        bottom: -75px;
    }

    .hero-section .primary-button {
        width: 35%;
        max-width: 144px;
    }

    .hero-section .secondary-button {
        width: 30%;
    }

    /* --------------------------------------------------------- SERVICES SECTION ------------------------------------------------------------ */

    #services .icon-background .icon {
        height: 54px;
        width: 54px;
    }

    #services .icon-background .icon.five {
       display: none;
    }

    /* --------------------------------------------------------- PORTFOLIO SECTION ------------------------------------------------------------ */

    .portfolio-flex-container .portfolio-piece {
        flex: 1 1 50%;
    }

    .portfolio-flex-container .portfolio-piece.hazel,
    .portfolio-flex-container .portfolio-piece.comfy {
        display: none;
    }

    .portfolio-flex-container .portfolio-piece a img {
        animation: none;
    }
    
    .portfolio-flex-container .portfolio-piece:nth-of-type(1) a img,
    .portfolio-flex-container .portfolio-piece:nth-of-type(3) a img {
        animation: none;
    }
    .portfolio-flex-container .portfolio-piece:nth-of-type(2) a img {
        animation: none;
    }
    .portfolio-flex-container .portfolio-piece:nth-of-type(5) a img {
        animation: none;
    }

    .portfolio-flex-container .portfolio-piece a img {
        animation: none;
    }

    /* ----------------------------------------------------------- FOOTER ----------------------------------------------------------- */

    .footer-flex-container .right-side {
        flex-basis: 37%;
    }

    .copyright {
        gap: 20px;
    }

    .copyright p {
        font-size: 14px;
    }

}


@media only screen and (max-width: 760px) {

    /* --------------------------------------------------------------- GENERIC ----------------------------------------------------------- */

    h1, h2 {
        font-size: 60px;
        letter-spacing: -3px;
    }

    /* --------------------------------------------------------------- HEADER NAVBAR ------------------------------------------------------- */

    .header-nav {
        padding-block: 8px;
    }

    .header-nav li.services,
    .header-nav li.portfolio,
    .header-nav li.about,
    .header-nav li.hide-sm {
        display: none;
    }

    .header-nav .hamburger-menu-container {
        display: list-item;
    }

    /* ---------------------------------------------------------- HERO SECTION ------------------------------------------------------- */

    .hero-section {
        margin-top: var(--spacing-lg);
    }

    .hero-section .cta-buttons {
        bottom: -140px;
        max-width: 180px;
        flex-direction: column;
        align-items: start;
        gap: 14px;
    }

    .hero-section .primary-button,
    .hero-section .secondary-button {
        width: 100%;
        max-width: none;
        min-width: fit-content;
    }

    .hero-section .logo-watermark {
        top: 54%;
    }

    .hero-section .heading-flex-container .social-icons {
        margin-bottom: 8px;
    }

    .hero-section .social-icons .icon {
        margin-right: 8px;
    }

    .hero-section .arrow-down-icon-group svg {
        width: 25px;
    }

    .hero-section .arrow-down-icon-group svg:nth-of-type(2),
    .hero-section .arrow-down-icon-group svg:nth-of-type(3) {
        margin-top: -8px;
    }

    /* ----------------------------------------------------------- MY SERVICES ------------------------------------------------------------ */

    #services .icon-background .icon.two,
    #services .icon-background .icon.seven {
        display: none;
    }
    
    .services-container h2{
        font-size: 44px;
    }

    .services-container .details p{
        font-size: 14px;
    }

    .services-container .pointer.design-focus {
        top: 32px;
    }
    .services-container .pointer.development-focus {
        top: 344px;
    }

    /* ------------------------------------------------------------ FOOTER ------------------------------------------------------------ */

    .footer-flex-container {
        justify-content: space-between;
    }

    .footer-flex-container .left-side {
        min-width: auto;
    }

    .footer-social-links .social-link {
        padding-top: 25px;
        padding-bottom: 16px;
    }

    .footer-social-links .social-link p {
        font-size: 20px;
    }

    .lets-talk-link {
        margin-left: 42px;
    }

    .lets-talk-link .arrow-down-icon-group svg {
        width: 20px;
    }

    .lets-talk-link .arrow-down-icon-group svg:nth-of-type(2),
    .lets-talk-link .arrow-down-icon-group svg:nth-of-type(3) {
        margin-top: -4px;
    }

    .lets-talk-link > a {
        width: 100px;
        height: 100px;
    }

    .copyright p {
        font-size: 12px;
    }
}


@media only screen and (max-width: 620px) {

    /* --------------------------------------------------------------- GENERIC ----------------------------------------------------------- */

    button {
        font-size: 13px;
    }

    h1, h2 {
        font-size: 50px;
    }

    .primary-button, .secondary-button {
        padding-block: 14px;
    }

    /* ---------------------------------------------------------- HERO SECTION ------------------------------------------------------- */

    .hero-section {
        margin-top: 0;
    }

    .hero-section .intro span:last-of-type {
        font-size: 25px;
    }

    .hero-section .cta-buttons {
        bottom: -124px;
        max-width: 160px;
        gap: 12px;
    }

    .hero-section .primary-button,
    .hero-section .secondary-button {
        padding-block: 14px;
    }

    .hero-section .logo-watermark {
        top: 56%;
    }

    /* --------------------------------------------------------- SERVICES SECTION ------------------------------------------------------------ */

    #services .icon-background .icon.one {
        display: none;
    }

    /* --------------------------------------------------------- PORTFOLIO SECTION ------------------------------------------------------------ */

    .portfolio-flex-container {
        width: 40%;
    }

    .portfolio-flex-container .portfolio-piece {
        flex: 1 1 100%;
    }

    .portfolio-flex-container .portfolio-piece.ceramics,
    .portfolio-flex-container .portfolio-piece.call {
        display: none;
    }

    /* ------------------------------------------------------------ FOOTER ------------------------------------------------------------ */

    .bottom-nav a {
        padding-block: 16px;
        padding-inline: 16px;
    }

    .bottom-nav ul > li .link-text {
        padding-top: 17px;
    }

    .footer-flex-container .right-side {
        flex-basis: 35%;
    }

    .footer-social-links .social-link {
        align-items: end;
    }

    .footer-social-links .social-link p {
        font-size: 16px;
    }

    .footer-social-links .social-link svg {
        width: 16px;
    }

    .lets-talk-link {
        margin-left: 28px;
    }

    .copyright {
        gap: 10px;
    }
}


@media only screen and (max-width: 481px) {

    /* --------------------------------------------------------------- GENERIC ----------------------------------------------------------- */

    h1, h2 {
        font-size: 44px;
    }

    button {
        font-size: 12px;
        border-radius: 4px;
    }

    .primary-button, .secondary-button {
        padding-block: 12px;
    }

    .link-text {
        font-size: 13px;
    }

    /* ---------------------------------------------------------- HEADER NAVBAR -------------------------------------------------------- */

    header {
        height: auto;
    }

    .header-nav.hidden {
        opacity: 1;
    }

    .header-nav svg {
        width: 32px;
        height: 32px;
    }

    .header-nav .hamburger-menu-container .menu-list {
        padding-inline: 16px;
    }

    /* ---------------------------------------------------------- HERO SECTION ------------------------------------------------------- */

    .hero-section .intro span:last-of-type {
        font-size: 20px;
    }

    .hero-section .intro span.show-sm {
        display: inline;
    }

    .hero-section .intro.hidden,
    .hero-section .skill.hidden,
    .hero-section .cta-buttons.hidden,
    .hero-section .social-icons.hidden {
        opacity: 1;
        transform: translateX(0);
    }

    .hero-section .cta-buttons {
        bottom: -108px;
        gap: 12px;
    }

    .hero-section .primary-button,
    .hero-section .secondary-button {
        padding-block: 12px;
    }

    .hero-section .logo-watermark {
        top: 56%;
    }

    .hero-section .heading-flex-container {
        flex-direction: column-reverse;
        gap: 30px;
    }

    .hero-section .heading-flex-container .social-icons {
        margin-bottom: 0;
    }

    /* ----------------------------------------------------------- MY SERVICES ------------------------------------------------------------ */

    #services {
        height: auto;
    }
    
    .services-container {
        height: 440px;
        padding-inline: 32px;
    }

    .services-container::before,
    .services-container::after {
        display: none;
    }

    .services-container h2{
        font-size: 32px;
        letter-spacing: -2px;
    }

    .services-container .details{
        width: 80%;
    }

    .services-container .details p {
        font-size: 12px;
    }

    .services-container .pointer {
        height: 40px;
        width: 28px;
    }

    .services-container .pointer.design-focus {
        top: 44px;
    }
    .services-container .pointer.development-focus {
        top: 344px;
    }

    /* --------------------------------------------------------- PORTFOLIO SECTION ------------------------------------------------------ */

    #portfolio {
        height: auto;
        min-height: 680px;
        max-height: 720px;
    }
    
    #portfolio h2 {
        text-align: center;
    }
    
    #portfolio .title-and-list .portfolio-list {
        display: block;
    }

    .portfolio-flex-container {
        display: none;
    }

    /* --------------------------------------------------------- FOOTER ----------------------------------------------------------------- */

    footer {
        padding-block: 40px;
    }

    .bottom-nav ul {
        border-radius: 8px;
        display: grid;
        grid-template-columns: auto;
    }

    .bottom-nav a {
        padding-block: 10px;
    }

    .bottom-nav ul > li .link-text {
        padding-top: 11px;
    }

    .bottom-nav ul > li:first-of-type {
        grid-column: 1;
    }
    .bottom-nav ul > li:nth-of-type(2) {
        grid-column: 2 / 4;
    }
    .bottom-nav ul > li:nth-of-type(3) {
        grid-column: 2 / 4;
    }
    .bottom-nav ul > li:nth-of-type(4) {
        grid-column: 1;
        grid-row: 2;
    }
    .bottom-nav ul > li:nth-of-type(2) a,
    .bottom-nav ul > li:nth-of-type(3) a {
        width: 100%;
    }

    .bottom-nav ul > li:first-of-type a,
    .bottom-nav ul > li:nth-of-type(2) a,
    .bottom-nav ul > li:nth-of-type(3) a,
    .bottom-nav ul > li:nth-of-type(4) a {
        border-right: none;
    }

    .bottom-nav ul > li:first-of-type a,
    .bottom-nav ul > li:nth-of-type(4) a {
        border-right: 1px solid var(--primary-100-transparent-20);
    }

    .bottom-nav ul > li:first-of-type a,
    .bottom-nav ul > li:nth-of-type(2) a {
        border-bottom: 1px solid var(--primary-100-transparent-20);
    }

    .footer-flex-container {
        margin-top: 40px;
        flex-direction: column;
        justify-content: start;
    }

    .lets-talk-link .arrow-down-icon-group {
        margin-bottom: 15px;
    }

    .lets-talk-link {
        margin-top: 30px;
        margin-left: 40px;
    }

    .lets-talk-link > a {
        width: 80px;
        height: 80px;
    }

    .fun-text {
        display: none;
    }

    .footer-flex-container .right-side {
        margin-top: 40px;
        max-width: 216px;
    }

    .copyright {
        margin-top: 60px;
    }
}


@media only screen and (max-width: 270px) {

    /* --------------------------------------------------------------- GENERIC ----------------------------------------------------------- */

    h1, h2 {
        font-size: 40px;
    }

    /* ------------------------------------------------------------------ HERO SECTION ------------------------------------------------------- */

    .hero-section .intro span:last-of-type:not(.show-sm) {
        display: none;
    }

    /* --------------------------------------------------------------- FOOTER ----------------------------------------------------------- */

    .lets-talk-link {
        margin-left: 28px;
    }
}