/* ------------------- */
/*  CUSTOM PROPERTIES  */
/* ------------------- */

:root {

/* font-families */
--ff-heading: "Tiempos", serif;
--ff-text: "objektiv-mk1", sans-serif;
}

/* ------------------- */
/*       RESET         */
/* ------------------- */

/* https://piccalil.li/blog/a-more-modern-css-reset/ */

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

body {
    min-height: 100vh;
    line-height: normal;
    font-family: var(--ff-text);
    font-size: 18px;
}

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

h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}

img, picture {
  display: block;
}

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

/* remove animations for people who've turned them off */
@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;
    }
  }


/* ------------------- */
/*   UTILITY CLASSES   */
/* ------------------- */


/* GENERAL */

.flex {
    display: flex;
}

.grid {
    display: grid;
}

.flow > * + * { /* applies the style to all children of the .flow that have a sibling before it, 
                    therefore all children except the first one */
    margin-top: 1.6rem;
}

.sr-only { /* screen-reader-only class leaves the element in the DOM, but hides it visually. 
            Use for extra explanaition & clearer oriantation for visualy impared users */
    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;
  }

.container {
    margin: 0 auto;
    width: 82%;
}

.container-wide {
    margin: 0 auto;
    width: 90%;
}

.container-small {
    width: 50%;
    max-width: 50rem;
}

@media only screen and (max-width:1000px){
    .container-small {
     width: 64%;
    }
 }

.uppercase {
    text-transform: uppercase;
}

.list-none {
    list-style: none;
}

a {
    text-decoration: none;
}

h1 {
    font-size: 5.5rem;
}

h2 {
    font-size: 3.9rem;
}

html {
    scroll-behavior: smooth !important;
}

/* FONTS */

@font-face {
    font-family: 'Tiempos';
    src: url("assets/fonts/tiempos-fine-web-regular.eot");
    src: url("assets/fonts/tiempos-fine-web-regular.eot?#iefix") format("embedded-opentype"), url("assets/fonts/tiempos-fine-web-regular.woff") format("woff");
    font-weight: normal;
    font-style: normal; }
}

.ff-text {
    font-family: "objektiv-mk1", sans-serif;
    font-weight: 400;
    font-style: normal; 
}

.ff-heading {
    font-family: var(--ff-heading);
    font-weight: 400;
}

/* COLOURS */


.bg-light { background-color: #20FFFF;}
.bg-dark { background-color: #0A1858;}
.bg-white { background-color: white;}

.text-dark { color: #0A1858;}
.text-light {color: #20FFFF;}
.text-accent { color: #502C6B;}
.text-white { color: white;}



/*   HEADER   */

header {
    padding-top: 0.5rem;
}

.navigation {
    justify-content: space-between;
}

nav ul {
    gap: 3rem;
}

nav ul a {
    color: white;
}

.navigation--linkedin, .navigation--x {
    position: relative;
    top: 0.7rem;
}

.navigation--linkedin {
    margin-left: 3rem;
    margin-right: 0.8rem;
}


/*   HERO   */

.hero {
    position: relative;
}

.hero--text {
    justify-content: flex-end;
    padding: 8rem 0 10rem;
}

.hero--svg {
    position: absolute;
    bottom: 3rem;
    z-index: 2;
    width: 100%;
}

@media only screen and (max-width: 1200px) {
    .hero--text {
        padding: 5rem 0 6rem;
    }

    h1 {
        font-size: 4rem;
    }
}

@media only screen and (max-width: 1100px) {
    .hero--svg {
        left: -5rem;
    }
}

/*   MY APPROACH   */

.my-approach {
    background-image: url("../assets/approach-bg.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: right;
}

.my-approach--text {
    justify-content: flex-end;
    padding-bottom: 5rem;
    padding-top: 8rem;
}

.my-approach--bg-img {
    object-fit: cover;
    width: 100%;
}

.my-approach h2 {
    padding-bottom: 1.8rem;
}

@media only screen and (max-width: 1200px) {
    .my-approach h2 {
        padding-bottom: 0;
        font-size: 50px;
    }
}

/*   CATEGORIES   */

.categories {
    padding-top: 8rem;
    position: relative;
    z-index: 1;
}

.categories .grid {
    grid-template-columns: 2fr 3fr;
    gap: 4rem;
    padding-bottom: 6rem;
    max-width: 80rem;
}

.categories .grid h2 {
    justify-self: end;
}

.categories--text {
    padding-right: 2rem;
    padding-top: 0.3rem;
}

.categories--text ul {
    padding-left: 1.5rem;
}

.categories--text ul li {
    padding-left: 0.5rem;
}

.categories--text ul li::marker {
    font-size: 0.7rem;
    margin-right: 1rem;
}

.categories--svg {
    position: absolute;
    bottom: 1.8rem;
    z-index: 2;
    width: 100%;
}

@media only screen and (max-width: 1300px) {
    .categories h2 {
        font-size: 3.5rem;
    }
}

@media only screen and (max-width: 1150px) {
    .categories h2 {
        font-size: 2.8rem;
    }
}

@media only screen and (max-width: 950px) {
    .categories h2 {
        font-size: 2.5rem;
    }
}

@media only screen and (min-width: 1650px) {
    .categories {
        padding-bottom: 5rem;
    }
}

@media only screen and (min-width: 2000px) {
    .categories {
        padding-bottom: 10rem;
    }
}

@media only screen and (min-width: 2500px) {
    .categories {
        padding-bottom: 20rem;
    }
}

/*   ABOUT ME   */

.about-me .flex {
    gap: 5rem;
    justify-content: space-between;
    align-items: center;
}

.about-me--profile {
    position: relative;
    left: -2rem;
    top: 6rem;
    z-index: 5;
    width: 40%;
}

.about-me--text {
    max-width: 50rem;
    width: 50%;
    padding: 5rem 0;
}

@media only screen and (max-width: 1200px) {
    .about-me--profile {
        top: 10rem;
        left: 0;
    }
}

@media only screen and (max-width: 1050px) {
    .about-me--profile {
        top: 14rem;
    }

    .about-me .flex {
        gap: 1rem;
    }
}

@media only screen and (min-width: 1800px) {
    .about-me .flex {
        justify-content: center;
    }

    .about-me--profile {
        left: 0;
    }
}


/*   FOOTER   */

.footer {
    padding-top: 5rem;
    position: relative;
}

.footer-flow > * + * {
    margin-top: 0.3rem;
}

.get-in-touch p {
    font-size: 30px;
}

.get-in-touch p span {
    text-decoration: underline;
}

.footer--notes {
    position: relative;
    top: 5rem;
    font-size: 13px;
    justify-content: space-between;
    padding-bottom: 1.5rem;
}

.footer--notes a {
    text-decoration: underline;
}

@media only screen and (max-width: 900px) {

    nav {
        display: none;
    }

    .navigation {
        padding: 1rem 0;
    }

    .navigation--linkedin, .navigation--x {
        position: relative;
        top: 0rem;
    }

    .footer--logo {
        width: 30%;
    }
}

@media only screen and (max-width: 760px) {
    .container-small {
        width: 92%;
    }

    .flex {
        flex-direction: column;
        align-items: center;
    }

    header .flex {
        flex-direction: row;
    }

    .navigation--linkedin, .navigation--x {
        height: 20px;
    }

    .hero--svg {
        position: static;
        padding-bottom: 3rem;
    }

    .hero--text {
        padding: 5rem 0 4rem;
    }

    .my-approach--text {
        padding: 3rem 0;
    }

    .about-me--text {
        padding-bottom: 0rem;
    } 

    .about-me--profile, .about-me--text {
        top: 3rem;
        width: 90%;
    }

    .categories {
        padding-top: 3rem;
        padding-bottom: 7rem;
    }

    .categories .grid {
        display: block;
        padding-bottom: 3rem;
    }

    .categories--text {
        padding-right: 0rem;
    }

    .grid h2 {
        padding-bottom: 1.5rem;
    }

    .get-in-touch h2 {
        font-size: 40px;
    }

    .get-in-touch .text-accent {
        font-size: 22px;
    }

    .footer--notes {
        align-items: flex-start;
        gap: 2rem;
    }

    .get-in-touch p span {
        display: block;
    }

    .footer--logo {
        width: 65%;
    }
}