/* Font-Face */
@font-face {
    font-family: 'Roboto-Light';
    src: url('/fonts/Roboto-Light.ttf') format('truetype'),
         url('/fonts/Roboto-Light.woff') format('woff');
    font-display: swap;
}

@font-face {
    font-family: 'Roboto-Regular';
    src: url('/fonts/Roboto-Regular.ttf') format('truetype'),
         url('/fonts/Roboto-Regular.woff') format('woff');
    font-display: swap;
}

@font-face {
    font-family: 'Roboto-Medium';
    src: url('/fonts/Roboto-Medium.ttf') format('truetype'),
         url('/fonts/Roboto-Medium.woff') format('woff');
    font-display: swap;
}

/* Variables (Color-Theme) */
:root {
    --hex1: #1A2238; /* rgb(26, 34, 56) */
    --hex2: #9DAAF2; /* rgb(157, 170, 242) */
    --hex3: #FF3A3D; /* rgb(255, 58, 61) */
    --hex4: #F4DB7D; /* rgb(244, 219, 125) */
    margin: 0;
    border: 0;
    padding: 0;
}


/* HTML, Body and Container */
html {
    min-height: 100%;
}

body {
    width: 100%;
}

div#container {
    width: 100%;
    margin: 0 auto;
}


/* Typography */
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul { 
    margin: 0;
    padding: 0;
}

h1,
h2 {
    font-family: 'Roboto-Light', sans-serif;
}

h3,
h4,
h5 {
    font-family: 'Roboto-Regular', sans-serif;
}

h6 {
    font-family: 'Roboto-Medium', sans-serif;
    font-size: 1.255em;
    padding: 0.3em 1.0em;
}

h1 {
    font-size: 4.767em;
}

h2 {
    font-size: 3.764em;
}

h3 {
    font-size: 3.011em;
}

h4 {
    font-size: 2.133em;
}

h5 {
    font-size: 1.506em;
}

p,
address {
    font-family: 'Roboto-Regular', serif;
    font-size: 1.0em;
    line-height: 2.0em;
    font-style: normal;
}

/* Links */
a, a:visited, a:link, a:hover {
    text-decoration: none;
    color: inherit;
}

/* Common */
ul {
    list-style: none;
}


/* Nav */
nav {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-around;
    align-items: center;
    align-content: space-around; 
}

#nav-img {
    width: 50px;
    height: 50px;
    padding: 0.5em;
}

ul#nav-links {
    width: 75%;

    display: flex;
    flex-flow: row wrap;
    justify-content: space-around;
    align-content: center;
}

li.nav-link {
    padding: 0.4em;
}

li.nav-link:hover {
    color: var(--hex3);
}


/* Header */
header {
    background: rgba(157, 170, 242, 0.1);
    padding: 2.0em 1.0em;
    display: flex;
    flex-flow: column wrap;
    justify-content: space-around;
    align-items: flex-start;
}

header h1 {
    color: black;
    text-transform: uppercase;
}

header h3 {
    color: var(--hex3);
    padding-bottom: 0.6em;
}

header h5 {
    color: rgba(26, 34, 56, 0.8);
    padding-top: 0.6em;
}


/* Main */

/*** Section ***/
section {
    width: 100%;
    padding: 2.0em 0;
}

section h2 {
    margin: 0;
}

.bg-cover {
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
}


/***** Section: About *****/
#about {
    background-image: url(../images/laptop.webp);
    background-color: rgba(26, 34, 56, 0.9);
    background-blend-mode: multiply;
} 

#about h2 {
    color: var(--hex2);
    padding-left: 1.2em;
}

#about p {
    color: white;
    padding: 4.0em;
}


/***** Section: Skills *****/
#skills {
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: center;
}

p.skills-p {
    font-size: 1.0em;
    padding: 4.0em;
}

ul.skills-ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.0em;
    justify-items: center;
    align-items: center;
}

ul.skills-ul li h4 {
    color: rgba(26, 34, 56, 0.8);
    padding: 0.6em 0;
    text-align: center;
}


ul.skills-items {
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
}

li.skills-item {
    min-width: 21.875em;
    max-width: 42.5em;
    padding: 0.4em 0;
}

li.skills-item h6 {
    padding: 0.8em 1.0em 0.4em 1.0em;
}

.progress-bar-area {
    width: 96%;
    background-color: var(--hex4);
    border-radius: 1.25em;
    border: 1px solid var(--hex2);
}

.progress-bar-bg {
    width: 100%;
    background-color: var(--hex3);
    color: rgb(24, 33, 56);
    padding: 0.6em; 
    text-align: right; 
    font-size: 1.125em; 
    border-radius: 20px;
}

.progress-bar-100 {
    width: 94%;
}

.progress-bar-75 {
    width: 75%;
}

.progress-bar-50 {
    width: 50%;
}

.progress-bar-25 {
    width: 25%;
}


/***** Section: Portfolio *****/
#portfolio {
    background: var(--hex2);
}

#portfolio p {
    padding: 4.0em;
}

#portfolio h2 {
    padding-left: 1.2em;
}

#portfolio ul {
    padding: 0;
    display: flex;
    flex-flow: row wrap;
    justify-content: space-around;
    align-items: center;
}

ul.portfolio-categories {
    margin-bottom: 4.0em;
}

li.portfolio-category {
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: center;
}

li.portfolio-category img {
    border: 1px solid var(--hex4);
    border-radius: 12px;
    width: 250px;
    height: 250px;
}

/***** Section: Contact *****/
#contact {
    background: var(--hex4);
    display: flex;
    flex-flow: column wrap;
    justify-content: center;
    align-items: center;
}

#contact p {
    padding-bottom: 1.0em;
}

ul#contact-by {
    width: 100%;
    min-height: 100%;
    display: flex;
    flex-flow: row wrap;
    justify-content: space-around;
    align-content: space-around;
    align-items: center;
}

ul#contact-by li {
    width: 18.0em;
    border: 2px solid var(--hex1);
    border-radius: 12px;
    background: white;
    padding: 1.0em;
    margin: 0.6em;

    display: grid;
    grid-template-rows: repeat(3, 1fr);
    justify-items: center;
    align-items: center;
}

ul#contact-by li h6 {
    margin: 0.4em;
    color: var(--hex1);
}

ul#contact-by li p,
ul#contact-by li address {
    font-style: normal;
    padding: 0;
}

ul#contact-by li svg {
    fill: var(--hex1);
    width: 50px;
    height: 50px;
}

/***** Section: Social Media *****/
#social-media {
    background: var(--hex1);
    color: white;
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: center;
}

#social-media p {
    text-align: center;
    padding: 0 1.0em 1.0em 1.0em;
}

#social-media ul {
    width: 50%;
    display: flex;
    flex-flow: row wrap;
    justify-content: space-around;
    align-content: center;
}

#social-media ul li {
    padding: 0.4em 0;
}

#social-media ul li a img.icons {
    width: 64px;
    height: 64px;
}

#social-media ul li a img#linkedin-icon {
    width: 64px;
    height: 54.422px;
}


/* Footer */
footer {
    background: var(--hex2);
    color: var(--hex1);
    display: flex;
    flex-flow: row wrap;
    justify-content: space-around;
    align-items: center;
}

footer div img {
    padding: 1.0em;
    width: 50px;
    height: 50px;
}