:root {
    /* colors */
    --main-bg: #e1e1e1;
    --main-bg-light: #e1e1e179;
    --black: #2b2b2c;
    --black-2: #30313c;
    --grey: #8d8d8d;
    --light-grey: #b4aeae;
    --dim-grey: #505050;
    --orange: #F4490C;
    --light-orange: #e6a892;
    --white: #fff;
    --clr-primary-900: hsl(218, 33%, 9%);

    /* fonts */
    --title-font: 'Kanit', sans-serif;
    --heading-font: 'Montserrat', sans-serif;
    --main-font: 'Open Sans', sans-serif;
}

body {
    background-color: var(--main-bg);
    color: var(--dim-grey);
    font-family: var(--main-font);
}

/**** Helper Classes ****/
.flex-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/******** Mobile First ********/
/**** Header & Nav ****/
header h1 {
    font-size: clamp(3rem, 9.2vw, 3.5rem);
}

header .logo {
    font-family: var(--title-font);
    letter-spacing: -0.15em;
    text-transform: uppercase;
    font-weight: 900;
    background: var(--orange);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


header .logo:hover {
    background: var(--dim-grey);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


header {
    padding: 0 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--main-bg);
}

header nav ul li a {
    color: var(--dim-grey);
    display: block;
    font-weight: 500;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

h1 a:hover {
    color: var(--orange);
}

.ham-btn {
    cursor: pointer;
    height: 3rem;
    width: 3rem;
    display: flex;
    align-items: center;
    background: none;
    padding: 0.2rem;
    border: 1px solid var(--grey);
    border-radius: 5px;
}

.ham-btn svg {
    width: 100%;
    height: 100%;
    padding: 0.2rem;
}

.ham-btn svg rect {
    fill: var(--black);
}

.ham-btn:hover svg rect {
    fill: var(--orange);
}

nav ul {
    list-style-type: none;
    padding-left: 0;
}

nav ul li {
    text-align: center;
}

nav ul li:last-of-type {
    margin-bottom: 1rem;
}

nav ul li a:hover {
    color: var(--orange);
}

nav ul li.nav-item.active a {
    background-color: var(--orange);
    color: var(--white);
    padding: 0.5rem 1rem;
}

/**** Hamburger Functionality ****/
header nav {
    flex: 0 0 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height ease-in-out 1s;
}

.show {
    max-height: 400px;
}

/**** home ****/

/* Intro Page - Olive Chija */
.portfolio-title {
    display: flex;
    align-items: center;
    flex-direction: column;
    height: calc(100vh - 6rem);
    justify-content: center;
    text-align: center;
}

.portfolio-name {
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
}

.portfolio-name h2 {
    font-family: 'Kanit', sans-serif;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 900;
    font-size: clamp(3.2rem, 9.2vw, 8rem);
    color: rgba(225, 225, 225, .01);
    background-image: url('../img/painting.webp');
    background-repeat: repeat;
    -webkit-background-clip: text;
    animation: move-background 40s ease-in-out infinite;
}

@keyframes move-background {

    0%,
    100% {
        background-position: left top;
    }

    25% {
        background-position: right bottom;
    }

    50% {
        background-position: left bottom;
    }

    75% {
        background-position: right top;
    }
}

/* Intro Page - Web Development */
h3 {
    color: var(--dim-grey);
    font-size: clamp(1.2rem, 4.4vw, 1.5rem);
    padding-bottom: 2rem;
}

.webdev {
    display: block;
    letter-spacing: 15.9px;
    animation-name: moveInLeft;
    animation-duration: 3s;
}

@keyframes moveInLeft {
    0% {
        opacity: 0;
        transform: translateX(100px);
    }

    80% {
        transform: translateX(-10px);
    }

    100% {
        opacity: 1;
        transform: translate(0);
    }

}

/* About Preview */
.home-about {
    padding: 4rem 1rem 7rem;
}

.home-about h4,
.work h4,
.other-work h4 {
    font-family: var(--title-font);
    font-size: clamp(5rem, 4.2vw, 6rem);
    text-align: center;
    text-transform: uppercase;
    color: var(--orange);
    font-weight: 500;
    padding: 1rem 0;
}

.photo-id {
    text-align: center;
}

.photo-id img {
    max-width: 250px;
    display: block;
    margin: 0 auto;
    border-radius: 1rem;
}

.home-about .statement {
    margin: 3rem 1rem;
}

.home-about span img {
    width: 2rem;
    padding: 1rem 0;
}

.home-about .statement p {
    padding-bottom: unset;
}


h5 {
    font-size: clamp(2.5rem, 4.2vw, 3rem);
    color: var(--black-2);
    font-family: var(--heading-font);
    padding: 1rem 0;
    margin: 5rem 0 0;
}

p {
    padding-bottom: 1rem;
}

.home-about ul {
    padding-left: 1rem;
}

.home-about ul li {
    padding-bottom: 1rem;
}

.hr-orange {
    visibility: hidden;
}

.recent-achievements span,
.recommendations span {
    display: block;
    padding-left: 2rem;
}

.statement .button-container {
    margin: 1rem 0 0;
}

.recent-achievements .button-container,
.recommendations .button-container {
    margin: 2rem 0 0;
}

.recommendations p {
    padding-bottom: unset;
}

.testimonials-download,
.link-access {
    text-decoration: none;
    color: var(--orange);
}

.recent-achievements ul li::before {
    color: var(--light-orange);
    font-size: 2rem;
}

.button {
    text-decoration: none;
    background-color: var(--orange);
    border-radius: 5px;
    padding: 0.5rem 1rem;
    color: var(--white);
    font-weight: 500;
}

.button:hover {
    background-color: var(--black-2);
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 2s ease, transform 2s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/**** Work ****/
.work {
    background: url('../img/grid-bg.jpg') center / cover repeat fixed;
    padding: 4rem 1rem 7rem;
    background-size: 100% auto;
}

.work p {
    color: var(--black);
}

.msg-contact {
    text-decoration: none;
    color: var(--orange);
}

.work-description {
    border-left: 4px solid var(--orange);
}

.work-description p {
    padding-left: 1rem;
}

.description p {
    padding-left: 2rem;
}

.tile {
    padding: 4rem 0;
}

.tile-image {
    text-align: center;
    background-color: var(--black-2);
    border-radius: 5px;
}

.centered-image {
    display: inline-block;
    padding: 2rem;
    max-width: 100%;
}

h6 {
    font-size: clamp(3rem, 4.2vw, 4rem);
    margin: unset;
    padding-bottom: 1rem;
    color: var(--black-2);
}

.technologies {
    font-weight: bold;
}

.work .button-container {
    text-align: center;
}

.work-number {
    padding-right: 0.5rem;
    font-size: clamp(1rem, 4.2vw, 1.2rem);
    color: var(--orange);
    font-weight: bold;
}

/* Other Work */
.other-work h4 {
    font-size: clamp(4rem, 4.2vw, 6rem);
}

.other-work h5 {
    padding: unset;
    margin: unset;
}

.other-work {
    margin: 4rem 1rem;
}

.other-work p {
    padding: 1rem;
}

.other-work .download-link {
    color: var(--orange);
    text-decoration: none;
}

.other-work .download-link:hover,
.testimonials-download:hover,
.link-access:hover,
.msg-contact:hover {
    font-weight: bold;
}

.other-work .card p:last-of-type {
    padding: 0 1rem;
}

.other-work .card {
    padding: 1rem;
    margin: 2rem 0;
    border: 1px solid var(--light-grey);
    border-radius: 10px;
}

.card-container {
    max-width: 25rem;
    margin: 0 auto;
}

.card .technologies {
    font-weight: unset;
    margin: 0 1rem 1rem;
}

/**** about ****/

.about {
    margin-top: 2rem;
    scroll-behavior: initial;
    overflow: hidden;
}

.vertical-heading {
    visibility: hidden;
}

.about {
    margin-top: -15rem;
}


.about,
.about-me {
    max-width: 100%;
    min-height: 100%;
}

.about-me {
    font-size: 1rem;
    background: var(--main-bg);
    color: var(--black-2);
    padding: 0 1rem;
}

.about-me h4 {
    font-size: 60px;
    font-weight: 900;
    line-height: 85%;
    border-left: 3px solid var(--orange);
    padding: 25px;
    margin: 0
}

.about-me h4 span {
    display: block;
}

.about-me h6 {
    font-size: 20px;
    font-stretch: expanded;
    color: var(--orange);
    line-height: 100%;
}

.about-me h4,
.about-me h6 {
    text-transform: uppercase;
}

.about-me .container {
    width: 95%;
    margin: auto;
}

.about section {
    padding: 50px 0;
}

.col {
    width: 50%;
}

#vertical {
    height: 200vh;
    width: 100vw;
}

.vertical-content .col-left {
    height: 100%;
}

.vertical-content .col.col-right {
    width: 100%;
}

.vertical-item:not(:last-child) {
    margin-bottom: 100px;
}

.vertical-item img {
    max-width: 60%;
    border-radius: 8px;
    margin: 0 auto;
}

#horizontal {
    padding: 100px 0;
}

.achievements,
#horizontal {
    background-color: var(--light-grey);
}

.achievements {
    margin-top: 7rem;
    padding: 0 1rem;
}

.achievements h5 {
    margin: unset;
}

.achievements h6 {
    font-size: 2rem;
}

.horizontal-content {
    display: flex;
}

.horizontal-item {
    border: 1px solid #efefef;
    min-width: 350px;
    margin-right: 50px;
    padding: 2rem 1rem;
    background-color: var(--main-bg);
    border-radius: 8px;
}

.horizontal-text {
    padding: 20px;
    max-width: 50ch;
}

.horizontal-text h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.horizontal-text p {
    font-size: 16px;
    color: var(--main-font);
}

.horizontal-item span {
    color: var(--black);
    font-weight: 500;
    font-size: 1rem;
}

/* skills */

  .skills {
    display: grid;
    place-content: center;
    font-family: system-ui;
    font-size: 1.125rem;
    background-color: var(--main-bg);
    margin: 7rem 0 2rem;
  }

  .skills-tag {
    color: var(--orange);
    text-transform: uppercase;
    font-weight: 600;
  }
  
  .tag-list {
    margin: 0;
    padding-inline: 0;
    list-style: none;
  }
  
  .tag-list li {
    padding: 1rem;
    background: var(--light-grey);
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem -0.25rem var(--clr-primary-900);
  }

  .scroller {
    max-width: 120rem;
  }
  
  .scroller-inner {
    padding-block: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  .scroller[data-animated="true"] {
    overflow: hidden;
    -webkit-mask: linear-gradient(
      90deg,
      transparent,
      white 20%,
      white 80%,
      transparent
    );
    mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
  }
  
  .scroller[data-animated="true"] .scroller-inner {
    width: max-content;
    flex-wrap: nowrap;
    animation: scroll var(--_animation-duration, 40s)
      var(--_animation-direction, forwards) linear infinite;
  }
  
  .scroller[data-direction="right"] {
    --_animation-direction: reverse;
  }
  
  .scroller[data-direction="left"] {
    --_animation-direction: forwards;
  }
  
  .scroller[data-speed="fast"] {
    --_animation-duration: 20s;
  }
  
  .scroller[data-speed="slow"] {
    --_animation-duration: 60s;
  }
  
  @keyframes scroll {
    to {
      transform: translate(calc(-50% - 0.5rem));
    }
  }

/**** contact ****/

.contact-form {
    padding-bottom: 7rem;
    background: url('../img/contact.webp') no-repeat fixed center/cover;
}

.contact-form h6 {
    color: var(--white);
    padding: 7rem 0 0 1rem;
}

.contact-form p {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    color: var(--white);
    max-width: 70ch;
    margin: 0 auto;
    padding: 0 1rem;
}

form {
    max-width: 30rem;
    margin: 2rem auto 0;
    background-color: var(--orange);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.form-position {
    margin: 2rem 1rem;
}

label {
    color: var(--white);
}

textarea {
    display: block;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    border-radius: 5px;
    border: 1px solid #ccc;
}

input[type="submit"] {
    background-color: var(--black-2);
    border-radius: 0.25rem;
    color: #F7F7F7;
    display: inline-block;
    padding: 0.5rem 2rem;
    text-decoration: none;
    margin-bottom: 2rem;
    cursor: pointer;
    border: none;
}

input[type="submit"]:hover {
    background-color: var(--white);
    color: var(--orange);
    font-weight: 500;
}

.submit-button {
    display: flex;
    justify-content: center;
}

/**** footer ****/
footer {
    height: 15rem;
    position: relative;
    overflow: hidden;
}

footer img {
    width: 2rem;
    margin: 0.7rem 0.5rem;
    border-radius: 3px;
}

.social-media {
    display: flex;
    justify-content: center;
    align-items: center;
}

footer p {
    color: var(--dim-grey);
    font-weight: 500;
    text-align: center;
    padding: 0.2rem;
    margin: 0;
    text-decoration: none;
    font-weight: 500;
}

footer .contacts {
    padding: 1rem;
}

.water-flow .water {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: url('../img/wave.png');
    background-size: 1000px 100px
}

.water-flow .water.water1 {
    animation: flow 25s linear infinite;
    z-index: 1000;
    opacity: 1;
    animation-delay: 0s;
    bottom: 0;
}

.water-flow .water.water2 {
    animation: flow2 10s linear infinite;
    z-index: 999;
    opacity: 0.5;
    animation-delay: -4s;
    bottom: 10px;
}

.water-flow .water.water3 {
    animation: flow 25s linear infinite;
    z-index: 998;
    opacity: 0.2;
    animation-delay: -1s;
    bottom: 15px;
}

@keyframes flow {
    0% {
        background-position-x: 0px;
    }

    100% {
        background-position-x: 1000px;
    }
}

@keyframes flow2 {
    0% {
        background-position-x: 0px;
    }

    100% {
        background-position-x: -1000px;
    }
}

/******** Media query ********/

@media screen and (min-width: 48rem) {
    .inner-container {
        margin: auto;
        max-width: 75rem;
    }

    /* Hamburger Functionality */
    .ham-btn {
        display: none;
    }

    header nav {
        max-height: unset;
        flex: 0 1 auto;
        flex-flow: nowrap;
    }

    .header-nav>ul {
        display: flex;
        align-items: center;
        border: 1px solid var(--light-orange);
        border-radius: 10px;
        padding: 0 0.2rem;
        background-color: var(--main-bg-light);
    }

    header .inner-container,
    nav ul {
        align-items: center;
        display: flex;
        justify-content: space-between;
    }

    nav ul li:last-of-type {
        margin-bottom: 0;
    }

    nav ul li.nav-item.active a {
        padding: 0.2rem 1rem;
    }

    /* About Preview */
    .home-flex {
        display: flex;
        gap: 2rem;
        align-items: center;
    }

    .home-flex>div {
        width: calc(100% / 2);
    }

    .recommendations>div:first-of-type {
        order: 2;
    }

    .recent-achievements,
    .recommendations {
        padding-top: 8rem;
        display: flex;
        align-items: center;
    }

    .photo-id {
        display: flex;
        align-items: center;
    }

    .other-work h5,
    .home-about h5 {
        margin: unset;
    }

    .hr-orange {
        border: none;
        visibility: visible;
        width: 10rem;
        height: 1px;
        background-color: var(--light-orange);
    }

    /* work*/

    .tile-image {
        max-width: 25rem;
        margin: 0 auto;
    }

    .description p {
        max-width: 50ch;
    }

    .work-description {
        max-width: 70ch;
        margin: 0 auto 8rem;
    }

    .left-image {
        order: -1;
    }

    .contact-form {
        padding: 7rem 1rem;
    }

    .description p {
        border-left: 4px solid var(--orange);
    }

    .contact-form h6 {
        padding: 0 0 1rem 1rem;
    }

    .card h5 {
        font-size: 1.5rem;
    }

    .card .description p {
        border-left: unset;
    }

    .card-container {
        max-width: unset;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 2rem;
        margin-bottom: 4rem;
    }

    .card-container .card {
        margin: unset;
    }

    /* about*/
    .vertical-content {
        display: flex;
        justify-content: center;
        align-items: flex-start;
    }

    .vertical-content .col-left {
        height: 100%;
    }

    .vertical-content .col.col-right {
        width: 40%;
    }


    .vertical-heading {
        visibility: visible;
    }

    .about {
        margin-top: unset;
    }


}