/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
    display: block;
}

body {
    line-height: 1;
}

ol,
ul {
    list-style: none;
}

blockquote,
q {
    quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
    content: '';
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* My CSS */

:root {
    --bgcolor: #051937;
    --orange: #F4130E;
    --grey: #C0C0C0;
    --blue: #ADC5CF;
    --bdark: #092E66;
    --font: 'Open Sans', sans-serif;
}

a {
    transition: all .5s ease;
}

body {
    background-color: var(--bgcolor);
    box-sizing: border-box;
    color: var(--grey);
    font-family: var(--font);
}

hr {
    border: solid 1px var(--blue);
    border-radius: 5px;
    margin-left: 7%;
    max-width: 18%;
}

#main-wrapper {
    margin: 0 auto;
    max-width: 1920px;
}

/*Header - Nav*/

#header .navbar {
    align-items: center;
    background-color: var(--bgcolor);
    display: flex;
    justify-content: space-between;
    padding: 1.4rem 7%;
}

.navbar .image-logo {
    width: 50px;
}

.navbar .unstyled-list {
    display: flex;
    list-style: none;
    margin-left: 0;
    padding: 0;
}

.navbar .menu li {
    margin-right: 1.3rem;
}

.navbar .menu a {
    color: var(--grey);
    display: block;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
}

.navbar .menu a:hover {
    color: var(--orange);
}

/*Navbar Mobile*/

#mobile-menu {
    cursor: pointer;
    display: none;
    justify-content: space-between;
    flex-direction: column;
    height: 21px;
    position: absolute;
    right: 7%;
    width: 30px;
}

#mobile-menu .bar {
    color: var(--grey);
    width: 30px;
}

#mobile-menu .bar:focus,
#mobile-menu .bar:hover {
    color: var(--orange);
}

/*Hero*/

.hero {
    background: url('/images/header.jpg') no-repeat center;
    background-size: 100%;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    padding: 3.75rem 7% 5.55rem 7%;
    position: relative;
    text-align: left;
}

.title {
    color: var(--blue);
    font-weight: 600;
    font-size: 3rem;
    padding-bottom: 1.2rem;
}

.subtitle {
    color: var(--grey);
    font-weight: 600;
    font-size: 1.3rem;
}

/* PROJECT - CARDS */

.modules {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: space-between;
    padding-left: 7%;
    padding-right: 7%;
}

.card-container {
    background-color: var(--bdark);
    margin: 2rem 0;
    max-width: 50vw;
    padding: 25px 20px;
}

.card-container .card {
    margin: 0 auto;
}

.card-container .image-card {
    display: block;
    max-width: 590px;
    padding: 2rem 0;
}

.card .card-title {
    color: var(--orange);
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.2;
    padding-bottom: 1rem;
}

.card .card-text {
    font-size: 1rem;
}

/*BUTTON*/

.btn {
    background-color: transparent;
    border-radius: 5px;
    border: 2px solid var(--orange);
    color: var(--orange);
    display: inline-block;
    font-size: 1rem;
    font-weight: 600;
    padding: .5rem 1.5rem;
    text-decoration: none;
    transition: all .5s ease;
}

.btn:hover,
.btn:focus {
    background-color: var(--orange);
    color: #fff;
}

/* ABOUT PAGE */

.displace {
    transform: translate(20px, 15%);
    transition: all .3s ease-in-out;
}


.about {
    padding-top: 4rem;
}

.about p {
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 2rem;
    padding: 1rem 7%;
}

.skills .arrow {
    color: var(--orange);
    font-size: 1.3rem;
    font-weight: 900;
}

.hero .photo {
    left: 0;
    margin-left: auto;
    margin-right: auto;
    position: absolute;
    right: 0;
    top: 2rem;
    width: 200px;
    z-index: 1;
}

.skills .skills-title {
    color: var(--blue);
    font-size: 2rem;
    line-height: 1.2;
    font-weight: 600;
    padding-left: 7%;
    padding-right: 7%;
    padding-top: 3.5rem;
}

.skills-list {
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 2;
    padding: 3.5rem 7%;
}

.title-about {
    padding-left: 7%;
}


/*CONTACTS page*/

.modules .message {
    color: var(--blue);
    padding-top: 3rem;
    font-size: 2rem;
    font-weight: 600;
}

#form {
    padding: 3rem 7%;
}

#form label,
input {
    display: block;
}

#form label {
    font-size: 1.2rem;
    font-weight: 600;
    padding: 1.2rem 0;
}

#form input {
    background-color: var(--bdark);
    color: #fff;
    font-family: var(--font);
    line-height: 1.6;
    padding: .6rem;
    width: 50%;
}

#form textarea {
    background-color: var(--bdark);
    color: #fff;
    font-family: var(--font);
    padding: .6rem;
    width: 50%;
}

#form input,
textarea {
    border: none;
    border-radius: 5px;
}

#form .icon-form {
    width: 15px;
}

#form .btn-form {
    display: block;
    margin-left: 0;
    margin-top: 1.2rem;
    margin-right: 0;
}

/*Success page*/

.thanks-container .ok {
    padding: 1rem 7% 2rem 7%;
    width: 22%;
}

/*Effect to all pages but homepage*/

span {
    transition: all .5s ease;
}

span.fade {
    color: var(--orange);
    font-size: 3.2rem;
}

/*Homepage*/

.scale {
    font-weight: 700;
    transform: scale(1.08);
    transition: all .5s ease;
}

.hero .btn-contacts {
    margin-top: 2rem;
}

.hero .home {
    font-size: 3rem;
    padding-bottom: 1.2rem;
}

.home.subtitle {
    font-size: 1.2rem;
    padding-bottom: 2rem;
}

.home-section {
    padding: 2.8rem 7%;
    position: relative;
}


/* SLIDER Homepage*/

.home-section .slider {
    align-content: space-between;
    align-items: center;
    background-color: var(--bdark);
    border-radius: 5px;
    display: flex;
    flex: 0 1 auto;
    flex-wrap: nowrap;
    justify-content: space-around;
    margin: 0 auto;
    padding: 2rem;
}

.home-section .hide {
    display: none;
    transition: all .3s ease;
}

.home-section .slider-text {
    font-size: 1.2rem;
}

.home-section .slider-text h4 {
    color: var(--orange);
    font-size: 1.5rem;
    font-weight: 600;
    padding-bottom: 1rem;
    padding-left: 1rem;
}

.home-section .slider-text p {
    font-weight: 600;
    padding-left: 1rem;
}

.home-section .slider-image {
    width: 50%;
}

.home-section .image-slider {
    width: 100%;

}

.home-section .buttons-slider button {
    position: absolute;
    top: 50%;
}

.home-section #previous-btn {
    left: 8%;
}

.home-section #next-btn {
    right: 8%;
}

.home-section .navigation {
    padding-top: 2rem;
}

.prev,
.next {
    background-color: transparent;
    border: none;
    color: var(--grey);
    cursor: pointer;
    font-size: 3rem;
    text-decoration: none;
}

.prev:hover,
.prev:focus {
    color: var(--orange);
    transition: all .5s ease;
}

.next:hover,
.next:focus {
    color: var(--orange);
    transition: all .5s ease;
}


/* BLOG */

.article {
    padding: 2.8rem 7%;
}

.article .post-title {
    color: var(--blue);
    padding-bottom: 1rem;
    font-weight: 600;
    font-size: 1.8rem;
}

.article .date {
    font-size: .8rem;
}

.article .blog-p {
    line-height: 1.3;
    padding: 2rem 0;
    font-size: 1rem;
}

.article .link-read {
    color: var(--orange);
    font-size: .8rem;
    padding-bottom: 3rem;
    text-decoration: none;
}

.link-read:focus,
.link-read:hover {
    color: var(--grey);
    transition: all .5s ease;
}

/*Blog Article*/

.hero .post {
    padding-bottom: 0;
}

.hero .blog {
    padding: 3.75rem 7% 3.75rem 7%;
}

.article .blog-paragraph {
    font-size: 1rem;
    line-height: 1.3;
    padding-bottom: 1rem;
}

.article .date {
    display: block;
    padding-bottom: 1rem;
}

.article .inner-title {
    color: var(--blue);
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.2;
    padding-bottom: 1.5rem;
    padding-top: .5rem;
}

.article .blog-link {
    color: var(--blue);
}

.blog-link:hover,
.blog-link:focus {
    color: var(--grey);
    transition: all .5s ease;
}

.article .blog-list {
    padding-bottom: 1.1rem;
}

.article .blog-list .blog-list-items {
    line-height: 1.3;
    padding: 1rem;
}


/*Footer*/

.social {
    align-items: center;
    background: url(/images/header.jpg) no-repeat center;
    background-size: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top: 2rem;
    padding: 1.4rem 7%;
    position: relative;
}

.social .logo-bottom {
    position: absolute;
    top: -1rem;
    width: 50px;
    z-index: 1;
}

.social .signature {
    font-size: .8rem;
    font-weight: 600;
    padding-top: 2rem;
}

.social .icons {
    display: inline-flex;
    margin-left: 0;
    padding: 0;
}

.social .icons svg {
    color: var(--grey);
    height: 25px;
    padding: .8rem;
    padding-bottom: 0;
    padding-top: 2rem;
    width: 25px;
}

.icons svg:hover,
.icons svg:focus {
    color: var(--orange);
    transition: all .5s ease;
}

.social .to-top {
    color: var(--grey);
    font-size: .8rem;
    font-weight: 600;
    padding-top: 2rem;
    text-decoration: none;
}

.to-top:hover,
.to-top:focus {
    color: var(--orange);
    transition: all .5s ease;
}



@media screen and (max-width: 1550px) {
    /*Homepage - slider sction */

    .home-section .slider {
        padding: 3.2rem;
    }

    .home-section .slider-text h4 {
        padding-left: 1.7rem;
    }

    .home-section .slider-text p {
        padding: 0 1.7rem;
    }

    /* Projects page */

    .card-container .image-card {
        max-width: 38vw;
    }
}

@media screen and (max-width: 960px) {

    /*Common to all pages*/
    .title {
        font-size: 2.6rem;
    }

    span.fade {
        font-size: 2.8rem;
    }

    /*Home page*/

    .hero .home {
        font-size: 2.6rem;
    }

    .home-section .slider-text h4 {
        padding-left: 1.7rem;
    }

    .home-section .slider {
        padding: 2.3rem;
    }

    .home-section .slider-text p {
        padding: 0 1.7rem;
    }

    .home-section .image-slider {
        width: 90%;
    }

    .home-section .buttons-slider button {
        top: 48%;
    }

    /* Projects page - cards */

    .card-container {
        margin: 1.5rem 0;
        max-width: 36vw;
    }

    .card .card-title {
        font-size: 1.2rem;
    }

    .card .image-card {
        max-width: 35vw;
    }

    .card .card-text {
        font-size: .8rem;
    }

    .card .btn {
        font-size: .9rem;
    }

    /*Contacts page*/

    #form .btn-form {
        font-weight: 400;
    }

    /*About page*/

    .about p {
        font-size: 1.2rem;
    }

    .skills .arrow {
        font-size: 1.2rem;
    }

}

@media screen and (max-width: 640px) {

    /*Common to all pages*/
    .title {
        font-size: 1.6rem;
        padding-bottom: 1rem;
    }

    span.fade {
        font-size: 1.8rem;
    }

    .btn {
        font-size: .8rem;
        padding: .5rem 1rem;
    }

    main .hero {
        padding: 2rem 7% 3rem 7%;
    }

    /*Mobile / tablet menu*/

    .navbar #menu {
        display: none;
        width: 100%;
    }

    #mobile-menu {
        display: flex;
    }

    .navbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .navbar .logo-container {
        width: 100%;
    }

    .navbar #menu {
        flex-direction: column;
        width: 100%;
    }

    .navbar-container .navbar-item {
        text-align: center;
    }

    .navbar-container .navbar-item .navbar-links {
        padding: .8rem 1rem;
    }

    #menu.active {
        display: flex;
    }


    /*Home page*/


    .hero .btn-contacts {
        margin-top: 1rem;
    }

    .hero .home {
        font-size: 1.6rem;
        padding-bottom: 1rem;
    }

    .hero .subtitle {
        font-size: .9rem;
    }

    .home-section .slider-text h4 {
        font-size: 1rem;
    }

    .home-section .slider {
        padding: 2.3rem;
    }

    .home-section .slider-text p {
        font-size: .8rem;
    }

    .home-section .buttons-slider button {
        font-size: 2rem;
    }


    /* Projects page - cards */

    .modules {
        flex-direction: column;
    }

    .card-container {
        margin: 1.2rem auto;
        max-width: 100%;
    }

    .card-container .image-card {
        padding: 1.2rem 0;
    }

    .card .image-card {
        max-width: 320px;
    }

    .card .card-title {
        font-size: 1.2rem;
    }

    .card .card-text {
        font-size: .8rem;
    }

    /*Contacts page*/

    #form .btn-form {
        font-weight: 400;
    }

    .modules .message {
        font-size: 1.8rem;
    }

    .thanks-container .ok {
        width: 40%;
    }

    /*About page*/

    .hero .photo {
        top: 3rem;
        width: 130px;
    }

    main .hero-about {
        height: 64px;
    }

    main .about {
        padding-top: 3rem;
    }

    .about .paragraph {
        font-size: 1rem;
    }

    .skills .skills-title {
        font-size: 1.6rem;
    }

    .skills-list {
        font-size: 1rem;
        padding: 2rem 7%;
    }

}

@media screen and (max-width: 530px) {

    /* General */

    #main-wrapper {
        margin: 0 auto;
        min-width: 350px;
    }

    .btn {
        font-size: .7rem;
        padding: .5rem .8rem;
    }

    .title {
        font-size: 1.3rem;
    }

    span.fade {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: .9rem;
    }

    /*Homepage*/

    .hero .home {
        font-size: 1.3rem;
    }

    .home-section {
        padding: 1.8rem 7%;
    }

    .home-section .subtitle {
        font-size: .9rem;
    }

    .home-section .slider {
        padding: 2.5rem 1rem;
    }

    .home-section .slider-text h4 {
        font-size: .7rem;
        padding: 0 1rem;
        padding-bottom: .6rem;
    }

    .home-section .slider-text p {
        font-size: .7rem;
        line-height: 1.2;
        padding-left: 1rem;
        padding-right: .6rem;
    }

    .buttons-slider #previous-btn {
        left: 5%;
    }

    .buttons-slider #next-btn {
        right: 5%;
    }

    .home-section .buttons-slider button {
        top: 46%;
    }

    /* Footer */

    .social .icons svg {
        padding-top: 1rem;
    }

    .social .to-top {
        padding-top: 1rem;
    }

    /* Projects page */
    .card .image-card {
        max-width: 250px;
    }

    .card .card-title {
        font-size: 1rem;
    }

    /* About */

    .skills .skills-list {
        font-size: .9rem;
    }

    /*Contact page*/

    #form input {
        width: 80%;
    }

    #form textarea {
        width: 80%;
    }

    #form label {
        font-size: 1rem;
    }

    #form .icon-form {
        width: 15px;
    }

    /*Success page*/
    .thanks-container .ok {
        width: 50%;
    }

}