@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto/Roboto-Regular.ttf');
}

@font-face {
    font-family: 'Roboto Extra Bold';
    src: url('../fonts/Roboto/Roboto-Black.ttf');
}

@font-face {
    font-family: 'Roboto Bold';
    src: url('../fonts/Roboto/Roboto-Bold.ttf');
}

@font-face {
    font-family: 'Roboto Light Italic';
    src: url('../fonts/Roboto/Roboto-LightItalic.ttf');
}

/* Reset */

html {
    box-sizing: border-box;
    font-size: 16px;
}

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

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ol,
ul {
    margin: 0;
    padding: 0;
    font-weight: normal;
}

a {
    text-decoration: none;
    color: inherit;
}

ol,
ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Global */

:root {
    --color-dark: #1F2937;
    --color-dark-opacity: #1f293755;
    --color-bg-section: #E5E7EB;
    --color-main-text: #F9FAF8;
    --color-secondary-text: #E5E7EB;
    --color-primary-button: #3882F6;
}

body {
    font-family: Roboto, sans-serif;
}

strong {
    font-family: 'Roboto Bold';
}

.content-layout {
    width: 90%;
    max-width: 1000px;
    margin: auto;
    padding: 50px 0;
}

main {
    background-color: #fff;
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.flex {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.btn {
    background-color: var(--color-primary-button);
    color: var(--color-main-text);
    display: inline-block;
    padding: 6px 25px;
    border-radius: 7px;
    font-family: 'Roboto Bold', sans-serif;
}

.main-title {
    font-family: 'Roboto Extra Bold', sans-serif;
    font-size: 48px;
    color: var(--color-main-text);
}

/* Header */

.navbar-container {
    width: 100vw;
    height: 50px;
    position: fixed;
    display: flex;
    align-items: center;
    z-index: 1;
    background-color: var(--color-dark);
}

.navbar {
    width: 90%;
    max-width: 1000px;
    margin: auto;
    justify-content: space-between;
    color: var(--color-secondary-text);
    font-size: 18px;
}

.navbar span {
    font-family: 'Roboto Bold', sans-serif;
    font-size: 24px;
    color: var(--color-main-text);
}

.box-header {
    padding-top: 50px;
    width: 100%;
    margin: auto;
    min-height: 360px;
    display: flex;
    flex-direction: column;
    background-color: var(--color-dark);
    background-size: contain;
    background-position: top;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.home-title>* {
    max-width: 45%;
}

.home-title {
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    color: var(--color-secondary-text);
    line-height: 1.5;
}

.home-title .btn {
    margin-top: 12px;
}

.home-title img {
    height: 200px;
    object-fit: cover;
    object-position: center;
    border-radius: 5px;
}

/* Projects Section */

.secondary-title {
    font-family: 'Roboto Extra Bold', sans-serif;
    font-size: 36px;
    text-align: center;
    color: var(--color-dark);
    margin-bottom: 40px;
}

.projects-list {
    align-items: flex-start;
    gap: 50px;
}

.projects-list li p {
    width: 180px;
    margin-top: 10px;
}

.projects-list li img {
    height: 180px;
    width: 180px;
    object-fit: cover;
    object-position: center;
    overflow: hidden;
    border-radius: 9px;
    outline: 3px solid var(--color-primary-button);
}

/* Quote Section */

.quote-container {
    width: 100%;
    background-color: var(--color-bg-section);
    margin-bottom: 50px;
}

.quote {
    padding: 4% 8%;
    margin: auto;
}

.quote p:first-of-type {
    font-size: 36px;
    font-family: 'Roboto Light Italic', sans-serif;
}

.quote p:last-of-type {
    text-align: right;
    font-family: 'Roboto Bold', sans-serif;
}

/* Contact Section */

.section-contact {
    max-width: 820px;
    padding: 40px;
    background-color: var(--color-primary-button);
    color: var(--color-main-text);
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    border-radius: 7px;
    gap: 30px;
}

.section-contact h2 {
    font-family: 'Roboto Bold', sans-serif;
}

.section-contact .btn {
    border: 2px solid var(--color-main-text)
}

/* Footer */

footer {
    margin-top: 50px;
    background-color: var(--color-dark);
    padding: 20px;
    text-align: center;
    color: var(--color-secondary-text);
}

/* Pages*/

.page-title {
    display: flex;
    margin: auto;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 310px;
    text-align: center;
    background: radial-gradient(var(--color-dark-opacity), var(--color-dark));
}

.bg-about {
    background-image: url('../public/bg-about.jpg');
}

.about-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.about-section div {
    text-align: left;
    max-width: 50%;
}

.about-section div p {
    text-align: left;
    margin-top: 20px;
}

.about-section img {
    max-width: 250px;
    max-height: 250px;
    object-fit: contain;
    border-radius: 50%;
}

.about-section .secondary-title {
    text-align: left;
}

.projects {
    list-style: none;
    display: flex;
    flex-direction: column;
}

.projects li {
    padding: 50px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    border-bottom: 1px solid var(--color-dark);
}

.projects li:last-of-type {
    border-bottom: none;
}

.projects li img {
    border-radius: 7px;
}

.projects li .secondary-title {
    text-align: left;
}

.projects .btn {
    margin-top: 20px;
}

.contact-form {
    padding: 50px;
    border-radius: 7px;
    background-color: var(--color-dark);
    width: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: auto;
}

.contact-form input,
.contact-form textarea {
    color: var(--color-main-text) !important;
    border: none;
    border-bottom:  2px solid #ccc;
    background-color: transparent;
    font-size: 1.2rem;
    width: 100%;
    margin: 10px;
}

.contact-form .btn {
    border: 2px solid var(--color-main-text);
    background-color: var(--color-primary-button);
}