/* #region custom colors */
:root {
    --mainWhite: #f0f0f0;
    --mainRed: #be3144;
    --mainBlue: #34456d;
    --mainGray: #303841;
    --pureBlack: #000000;
    --darkGray: #333333;
    --charcoal: #555555;
    --dDMB: #001F3F; /* dDMB = dark deep metallic blue*/
    --navyBlue: #004080;
    --deepBlue: #00509E;
    --lFRed: #8B0000; /* lFRed = luxury furniture red */
    --brownishRed: #A52A2A;
    --fireBrick: #B22222;
    --darkGoldenRod: #B8860B;
    --deepMustard: #AC8E38;
    --bronze: #966F33;
}
/* #endregion custom colors */

/* #region base setup */
* {
    margin: 0;
    padding: 0;
}

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

html {
    box-sizing: border-box;
    font-size: 62.5%;
    scroll-behavior: smooth;
}
/* #endregion base setup */

/* #region device size media queries */
/* 1200px -> 16px = 75em */
@media (max-width: 75em) {
    html {
        font-size: 60%;
    }
}

/* 980px -> 16px = 61.25em */
@media (max-width: 61.25em) {
    html {
        font-size: 58%;
    }
}

/* 460px -> 16px = 28.75em */
@media (max-width: 28.75em) {
    html {
        font-size: 55%;
    }
}
/* #endregion device size media queries */

/* #region base styles */
body {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem; /* 18px */
    font-weight: 400;
    line-height: 1.4;
    color: var(--mainWhite);
}

h1,
h2 {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    text-align: center;
}

h1 {
    font-size: 6rem;
}

h2 {
    font-size: 4.2rem;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: var(--mainWhite);
}

img {
    display: block;
    width: 100%;
}
/* #endregion base styles */

/* #region nav */
.navbar {
    display: flex;
    justify-content: center;
    align-items: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--pureBlack);
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.nav-list {
    display: flex;
    overflow: auto;
    list-style: none;
    justify-content: center;
    vertical-align: middle;
    margin-right: 2rem;
}

@media (max-width: 28.75em) {
    .navbar {
        justify-content: center;
    }

    .nav-list {
        margin: 0 1rem;
    }
}

.nav-list a {
    display: block;
    font-size: 2.2rem;
    padding: 2rem;
}

.nav-list a:hover {
    background: var(--dDMB);
    font-weight: bold;
    border-radius: 10px;
}
/* #endregion nav */

/* #region welcome section */
.welcome-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;    
    background-color: var(--charcoal);
    border-bottom: 4px solid var(--dDMB);
    background-image: linear-gradient(62deg, var(--charcoal) 0%, var(--darkGray) 50%, #181719 100%);
}

.welcome-section > p {
    font-size: 3rem;
    font-weight: 200;
    font-style: italic;
    color: var(--mainRed);
}
/* #endregion welcome section */

/* #region projects section */
.projects-section {
    text-align: center;
    padding: 10rem 2rem;
    background: var(--navyBlue);
}

.projects-section-header {
    max-width: 640px;
    margin: 0 auto 6rem auto;
    border-bottom: 0.2rem solid var(--mainWhite);
}

@media (max-width: 28.75em) {
.projects-section-header {
    font-size: 4rem;
}
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    grid-gap: 4rem;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    margin-bottom: 6rem;
}

@media (max-width: 30.625em) {
.projects-section {
    padding: 6rem 1rem;
}

.projects-grid {
    grid-template-columns: 1fr;
}
}

.project {
    background: var(--mainGray);
    box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    border-radius: 2px;
    max-height: 500px;
}

.code {
    color: var(--mainGray);
    transition: color 0.3s ease-out;
}

.project:hover .code {
    color: var(--fireBrick);
}

.project-image {
    height: calc(100% - 6.8rem);
    width: 100%;
    object-fit: fill;
}

.project-title {
    font-size: 2rem;
    padding: 2rem 0.5rem;
}
/* #endregion projects section */

/* #region icons */
.icon {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 2px;
}

.icon-show-all {
    font-size: 2rem;
    background: var(--mainGray);
    transition: background 0.3s ease-out;
}

.icon-show-all:hover {
    background: var(--darkGray);
}

.icon-show-all:hover > i {
    transform: translateX(2px);
}

.icon-show-all > i {
    margin-left: 10px;
    transform: translateX(0);
    transition: transform 0.3s ease-out;
}
/* #endregion icons */

/* #region contact section */
.contact-section {
    display: flex;
    font-family: Myriad Pro-Black;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    height: 80vh;
    padding: 0 2rem;
    border-top: 4px solid var(--dDMB);
    border-bottom: 4px solid var(--dDMB);
    background-color: var(--charcoal);
    background-image: linear-gradient(62deg,#181719 0%, var(--darkGray) 50%, var(--charcoal) 100%);
}

.contact-section-header > h2 {
    font-size: 6rem;
}

@media (max-width: 28.75em) {
    .contact-section-header > h2 {
        font-size: 4rem;
    }
}

.contact-section-header > p {
    font-style: italic;
}

.contact-links {
    display: flex;
    font-family: Poppin;
    justify-content: center;
    width: 100%;
    max-width: 980px;
    margin-top: 4rem;
    flex-wrap: wrap;
}

.contact-details {
    font-size: 2.4rem;
    text-shadow: 2px 2px 1px var(--pureBlack);
    transition: transform 0.3s ease-out;
}

.contact-details:hover {
    transform: translateY(8px);
}
/* #endregion contact section */

/* #region footer */
footer {
    font-size: 1rem;
    font-weight: 60;
    display: flex;
    height: 20px;
    align-items: center;
    justify-content: space-evenly;
    padding: 2rem;
    background: var(--pureBlack);
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.4);
}
  
footer > p {
    vertical-align: middle;
    vertical-align: center;
}
  
footer i {
    vertical-align: middle;
    margin-left: 5px;
}
  
@media (max-width: 28.75em) {
    footer {
      flex-direction: column;
      text-align: center;
    }
}
/* #endregion footer */