/* http://meyerweb.com/eric/tools/css/reset/
   v2.0-modified | 20110126
   License: none (public domain)
   RESET STYLESHEET
*/
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;
}

/* make sure to set some focus styles for accessibility */
:focus {
    outline: 0;
}

/* 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;
}

input[type=search]::-webkit-search-cancel-button,
input[type=search]::-webkit-search-decoration,
input[type=search]::-webkit-search-results-button,
input[type=search]::-webkit-search-results-decoration {
    -webkit-appearance: none;
    -moz-appearance: none;
}

input[type=search] {
    -webkit-appearance: none;
    -moz-appearance: none;
    -webkit-box-sizing: content-box;
    -moz-box-sizing: content-box;
    box-sizing: content-box;
}

textarea {
    overflow: auto;
    vertical-align: top;
    resize: vertical;
}

/**
 * Correct `inline-block` display not defined in IE 6/7/8/9 and Firefox 3.
 */

audio,
canvas,
video {
    display: inline-block;
    *display: inline;
    *zoom: 1;
    max-width: 100%;
}

/**
 * Prevent modern browsers from displaying `audio` without controls.
 * Remove excess height in iOS 5 devices.
 */

audio:not([controls]) {
    display: none;
    height: 0;
}

/**
 * Address styling not present in IE 7/8/9, Firefox 3, and Safari 4.
 * Known issue: no IE 6 support.
 */

[hidden] {
    display: none;
}

/**
 * 1. Correct text resizing oddly in IE 6/7 when body `font-size` is set using
 *    `em` units.
 * 2. Prevent iOS text size adjust after orientation change, without disabling
 *    user zoom.
 */

html {
    font-size: 100%; /* 1 */
    -webkit-text-size-adjust: 100%; /* 2 */
    -ms-text-size-adjust: 100%; /* 2 */
}

/**
 * Address `outline` inconsistency between Chrome and other browsers.
 */

a:focus {
    outline: thin dotted;
}

/**
 * Improve readability when focused and also mouse hovered in all browsers.
 */

a:active,
a:hover {
    outline: 0;
}

/**
 * 1. Remove border when inside `a` element in IE 6/7/8/9 and Firefox 3.
 * 2. Improve image quality when scaled in IE 7.
 */

img {
    border: 0; /* 1 */
    -ms-interpolation-mode: bicubic; /* 2 */
}

/**
 * Address margin not present in IE 6/7/8/9, Safari 5, and Opera 11.
 */

figure {
    margin: 0;
}

/**
 * Correct margin displayed oddly in IE 6/7.
 */

form {
    margin: 0;
}

/**
 * Define consistent border, margin, and padding.
 */

fieldset {
    border: 1px solid #c0c0c0;
    margin: 0 2px;
    padding: 0.35em 0.625em 0.75em;
}

/**
 * 1. Correct color not being inherited in IE 6/7/8/9.
 * 2. Correct text not wrapping in Firefox 3.
 * 3. Correct alignment displayed oddly in IE 6/7.
 */

legend {
    border: 0; /* 1 */
    padding: 0;
    white-space: normal; /* 2 */
    *margin-left: -7px; /* 3 */
}

/**
 * 1. Correct font size not being inherited in all browsers.
 * 2. Address margins set differently in IE 6/7, Firefox 3+, Safari 5,
 *    and Chrome.
 * 3. Improve appearance and consistency in all browsers.
 */

button,
input,
select,
textarea {
    font-size: 100%; /* 1 */
    margin: 0; /* 2 */
    vertical-align: baseline; /* 3 */
    *vertical-align: middle; /* 3 */
}

/**
 * Address Firefox 3+ setting `line-height` on `input` using `!important` in
 * the UA stylesheet.
 */

button,
input {
    line-height: normal;
}

/**
 * Address inconsistent `text-transform` inheritance for `button` and `select`.
 * All other form control elements do not inherit `text-transform` values.
 * Correct `button` style inheritance in Chrome, Safari 5+, and IE 6+.
 * Correct `select` style inheritance in Firefox 4+ and Opera.
 */

button,
select {
    text-transform: none;
}

/**
 * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
 *    and `video` controls.
 * 2. Correct inability to style clickable `input` types in iOS.
 * 3. Improve usability and consistency of cursor style between image-type
 *    `input` and others.
 * 4. Remove inner spacing in IE 7 without affecting normal text inputs.
 *    Known issue: inner spacing remains in IE 6.
 */

button,
html input[type="button"], /* 1 */
input[type="reset"],
input[type="submit"] {
    -webkit-appearance: button; /* 2 */
    cursor: pointer; /* 3 */
    *overflow: visible;  /* 4 */
}

/**
 * Re-set default cursor for disabled elements.
 */

button[disabled],
html input[disabled] {
    cursor: default;
}

/**
 * 1. Address box sizing set to content-box in IE 8/9.
 * 2. Remove excess padding in IE 8/9.
 * 3. Remove excess padding in IE 7.
 *    Known issue: excess padding remains in IE 6.
 */

input[type="checkbox"],
input[type="radio"] {
    box-sizing: border-box; /* 1 */
    padding: 0; /* 2 */
    *height: 13px; /* 3 */
    *width: 13px; /* 3 */
}

/**
 * 1. Address `appearance` set to `searchfield` in Safari 5 and Chrome.
 * 2. Address `box-sizing` set to `border-box` in Safari 5 and Chrome
 *    (include `-moz` to future-proof).
 */

input[type="search"] {
    -webkit-appearance: textfield; /* 1 */
    -moz-box-sizing: content-box;
    -webkit-box-sizing: content-box; /* 2 */
    box-sizing: content-box;
}

/**
 * Remove inner padding and search cancel button in Safari 5 and Chrome
 * on OS X.
 */

input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
}

/**
 * Remove inner padding and border in Firefox 3+.
 */

button::-moz-focus-inner,
input::-moz-focus-inner {
    border: 0;
    padding: 0;
}

/**
 * 1. Remove default vertical scrollbar in IE 6/7/8/9.
 * 2. Improve readability and alignment in all browsers.
 */

textarea {
    overflow: auto; /* 1 */
    vertical-align: top; /* 2 */
}

/**
 * Remove most spacing between table cells.
 */

table {
    border-collapse: collapse;
    border-spacing: 0;
}

html,
button,
input,
select,
textarea {
    color: #222;
}


::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

img {
    vertical-align: middle;
}

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

textarea {
    resize: vertical;
}

.chromeframe {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/*************************** MY CODE ***************************/

/******* Basic styling in website *******/
*{
    box-sizing: border-box;
    scroll-behavior: smooth;
}

:root {
    --generaltextColor: #fff;

    /*Root Container*/
    --basicColor1: #040407;
    --basicColor2: #40E0D0;
    /*Header*/
    --headerFont: 'Source Sans Pro', sans-serif;
    --headerFontWeight: 300;
    /*Main*/
    --mainFont: 'Quicksand', sans-serif;
}

body {
    background-color: #31313a;
    width: 100%;
    height: auto;
    font-family: var(--mainFont);
}

/******* Root Container ********/
.root-container {
    width: 100%;
    height: 100%;
    background-color: var(--basicColor1);
}

.colorSpan {
    color: var(--basicColor2);
}

/******* Header Container ********/
/*
.root-container > header > .contact-button {
    display: none;
}
*/
.root-container > header {
    font-family: var(--headerFont);
    text-transform: uppercase;
    width: 100%;
    padding: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}
header > .first-group {
    width: 100%;
}
header a {
    color: var(--generaltextColor);
    text-decoration: none;
}

/*Brand Name*/
header > .first-group > .brand-name {
    width: fit-content;
    display: block;
    padding: 10px 15px;
    font-size: 1rem;
    font-weight: 300;
}
.brand-name > .colorBrand {
    opacity: 0.5;
}

/*Dropdown Button*/
header > .dropdown-button {
    position: absolute;
    top: 11px;
    right: 10px;
    width: 30px;
    height: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 7px;
    cursor: pointer;
}
.dropdown-button > .line {
    width: 80%;
    height: 2px;
    background-color: var(--basicColor2);
    transition: 0.3s;
}
.dropdown-button-active .line:first-child{
    transform: translate(0, 9px) rotate(-45deg);
    transition: 0.3s;
}
.dropdown-button-active .line:nth-child(2){
    opacity: 0;
}
.dropdown-button-active .line:last-child{
    transform: translate(0, -9px) rotate(45deg);
    transition: 0.3s;
}

/*Dropdown Menu Container*/
header > .first-group > .menu-container {
    /*position: absolute;
    left: 0;
    right: 0;*/
    width: 100%;
    height: auto;
    text-align: center;
    font-weight: var(--headerFontWeight);
    display: none;
    margin: 10px auto 0px;
}
.menu-container a {
    display: block;
    padding: 15px;
    transition: transform 0.2s;
    outline: none;
}
header > .first-group > .menu-container-active {
    display: block;
}
.menu-container-active a:hover {
    color: var(--basicColor2);
    background-color: #222;
    /*Transition with transform*/
    -ms-transform: scale(1.2); /* IE 9 */
    -webkit-transform: scale(1.2); /* Safari 3-8 */
    transform: scale(1.2);
}

@media only screen and (min-width: 1024px) { /*FOR PC*/
    /*For scrollbar in .root-container */
    /* width */
    .root-container::-webkit-scrollbar {
        width: 10px;
    }
  
    /* Track */
    .root-container::-webkit-scrollbar-track {
        background: var(--basicColor1);
        border-radius: 0px 5px 5px 0px; /* TOP-LEFT - TOP-RIGHT - BOTTOM-RIGHT - BOTTOM LEFT*/
    }
    
    /* Handle */
    .root-container::-webkit-scrollbar-thumb {
        background: var(--basicColor2);
        border-radius: 0px 5px 5px 0px; /* TOP-LEFT - TOP-RIGHT - BOTTOM-RIGHT - BOTTOM LEFT*/ 
    }
    
    /* Handle on hover */
    .root-container::-webkit-scrollbar-thumb:hover {
        background: #2a8f85;;
    }

    /*First Root Container*/
    .root-container {
        max-width: 90%;
        height: 90vh;
        display: block;
        margin: 50px auto 50px;
        border-radius: 5px;
        background-color: var(--basicColor1);
        box-shadow: 0px 0px 50px 10px black;
        overflow-y: scroll;
    }
    /*Header Container*/
    .root-container > header {
        padding: 50px 100px 0px;
    }
    header > .first-group {
        width: fit-content;
        height: auto;
        display: flex;
        align-items: center;
    }
    /*Dropdown Button*/
    header > .dropdown-button {
        display: none;
    }
    /*Brand Name*/
    header > .first-group > .brand-name {
        font-size: 1.3rem;
        padding: 15px;
    }
    /*Contact Button
    .root-container > header > .contact-button {
        display: block;
        padding: 15px 30px;
        font-size: 1.3rem;
        font-weight: bold;
        border: 1px solid var(--basicColor2);
        background-color: var(--basicColor2);
        color: var(--basicColor1);
        transition: 0.5s;
    }
    header > .contact-button:hover {
        border: 1px solid var(--basicColor2);
        color: var(--basicColor2);
        background-color: var(--basicColor1);
        transition: 0.5s;
    }
    */
    /*Menu Container*/
    header > .first-group > .menu-container{
        /*position: static;*/
        width: fit-content;
        height: auto;
        display: block;
        margin: 0px 0px 0px 15px;
    }
    .menu-container ul {
        display: flex;
    }
    .menu-container a {
        transition: 0.5s;
    }
    .menu-container a:hover {
        color: var(--basicColor2);
        background-color: #222;
        transition: 0.5s
    }
}
/******* Main Container ********/
.root-container > main {
    width: 100%;
    height: auto;
    overflow: hidden;
}
/*Home Section*/
main > .home {
    padding: 0px 50px;
    font-family: var(--mainFont);
    font-weight: 300;
    width: 100%;
    height: fit-content;
    color: #fff;
}
/*First welcome of home container*/
.home > .first-welcome {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: calc(100vh - 56px); /*100vh(.first-welcome) - 66px(56px: header)*/
}
.first-welcome > .user-image{
    display: block;
    margin: 0 auto;
    width: 70%;
    max-width: 300px;
}
.first-welcome > .user-name-first {
    text-align: center;
    margin: 55px 0px;
    font-size: 1.5rem;
    color: var(--basicColor2);
}
.first-welcome > .user-specialty-first {
    font-size: 2.5rem;
    text-align: center;
}
.first-welcome > .sm-links-first {
    margin-top: 55px;
    display: flex;
    gap: 20px;
}
.sm-links-first a {
    text-decoration: none;
    background: transparent;
    color: var(--generaltextColor);
    font-size: 1.5rem;
    transition: 0.5s;
}
.sm-links-first a:hover{
    transition: 0.5s;
    transform: translateY(-3px);
    color: var(--basicColor2);
}
.first-welcome > .CV-download-button-first:hover {
    border: 1px solid var(--basicColor1);
    background-color: var(--basicColor2);
    color: var(--basicColor1);
    transition: 0.5s;
}
/*Second welcome in home container*/
.home > .second-welcome {
    display: none;
}
@media only screen and (min-width: 768px) { /*FOR PC*/
    .first-welcome > .user-image {
        width: 90%;
        max-width: 450px;
        margin: 0;
    }
}
@media only screen and (min-width: 1024px) { /*FOR PC*/
    /*Main*/
    .root-container > main {
        padding: 0px 0px;
        /*margin: 0px 100px 0px;*/
    }
    /*Home Container*/
    main > .home{
        display: flex;
        justify-content: center;
    }
    /*First welcome in home container*/
    .home > .first-welcome {
        flex-direction: row;
        height: calc(100vh - 162.8px);
        width: fit-content;
    }
    .first-welcome > .user-image {
        width: 90%;
        max-width: 900px;
        margin: 0;
    }
    /*Home Section -> first-welcome subcontainer, this informations are none displayed in PC screen*/ 
    .first-welcome > .user-name-first {
        display: none;
    }
    .first-welcome > .user-specialty-first {
        display: none;
    }
    .first-welcome > .sm-links-first {
        display: none;
    }
    /*Second welcome in home container*/
    .home > .second-welcome {
        margin-left: 200px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 50px;
        width: fit-content;
    }
    .second-welcome > .user-name-second {
        display: block;
        color: var(--basicColor2);
        font-size: 2rem;
        font-weight: 400;
        width: fit-content;
    }
    .second-welcome > .user-specialty-second {
        display: block;
        width: fit-content;
        font-size: 4rem;
        font-weight: 300;
    }
    .second-welcome > .row-second > .CV-download-button-second {
        width: fit-content;
        display: block;
        padding: 10px 20px;
        font-size: 1.1rem;
        font-weight: bold;
        border: 1px solid var(--basicColor2);
        background-color: var(--basicColor1);
        color: var(--basicColor2);
        transition: 0.5s;
        text-decoration: none;
        outline: none;
    }
    .second-welcome >  .row-second > .CV-download-button-second:hover {
        border: 1px solid var(--basicColor1);
        background-color: var(--basicColor2);
        color: var(--basicColor1);
        transition: 0.5s;
    }
    .second-welcome > .row-second {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .row-second .sm-links-second{
        display: flex;
        gap: 20px;
    }
    .row-second a {
        text-decoration: none;
        background: transparent;
        color: var(--generaltextColor);
        font-size: 1.5rem;
        transition: 0.5s;
    }
    .row-second > .sm-links-second > a:hover {
        transition: 0.5s;
        transform: translateY(-3px);
        color: var(--basicColor2);
        /*Transition with transform*/
        /*-ms-transform: scale(1.2);  IE 9 */
        /*-webkit-transform: scale(1.2);  Safari 3-8 */
        /*transform: scale(1.2);*/
    }
}

/*About Section*/
main > .about {
    color: var(--generaltextColor);
    padding: 100px 0px;
    line-height: 1.7;
}
.titles {
    text-align: center;
    padding-top: 30px;
    font-size: 2.5rem;
}
.subtitles {
    text-align: center;
    padding-top: 20px;
    font-size: 1rem;
}
.about > .info-about {
    width: 85%;
    margin: 0 auto;
    text-align: justify;
    padding: 30px 0px 50px;
}
.about > .links {
    display: flex;
    justify-content: center;
    gap: 30px;
}
.links a {
    color: var(--basicColor2);
    text-decoration: none;
    display: block;
    padding: 10px 20px;
    font-size: 1.3rem;
    font-weight: bold;
    border: 2px solid var(--basicColor2);
    border-radius: 5px;
    background-color: transparent;
    transition: 0.5s;
    outline: none;
}
.links a:hover {
    border: 2px solid #0f0f13;
    border-radius: 5px;
    color: #0f0f13;
    background-color: var(--basicColor2);
    transition: 0.5s;
}

@media only screen and (min-width: 1024px) { /*FOR PC*/
    .about > .info-about {
        line-height: 2.2;
        max-width: 700px;
        padding-top: 40px;
        padding-bottom: 50px;
    } 
}
/*Skills Section*/
main > .skills {
    color: var(--generaltextColor);
    padding: 100px 0px 50px;
    background-color:  #0f0f13;
    line-height: 1.7;
}
.skills > .my-skills {
    width: 100%;
    height: auto;
}
.my-skills > .skill-container:first-child {
    padding-top: 100px;
}
.my-skills > .skill-container {
    padding: 30px 20px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
}
.my-skills > .skill-container:hover > .skill-img {
    transform: scale(1.2);
}
.skill-container > .skill-img {
    transition: transform 0.5s;
    width: 25%;
}
.skill-container > .skill-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    text-align: justify;
}
.skill-info > .skill-title {
    font-size: 1.2rem;
    text-align: center;
}
.skill-info > .skill-paragraph {
 /**/
}
@media only screen and (min-width: 768px) { /*FOR TAVLETS*/
    .skills > .my-skills {
        margin: 0 auto;
        width: 70%;
    }
    .skill-container > .skill-img {
        max-width: 20%;
    }
}
@media only screen and (min-width: 1024px) { /*FOR PC*/
    .my-skills > .skill-container:first-child {
        padding-top: 100px;
    }
    .skills > .my-skills {
        margin: 0 auto;
        width: 70%;
        display: flex;
    }
    .my-skills > .skill-container {
        padding: 100px 40px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start
    }
    .skill-container > .skill-img {
        max-width: 15%;
    }
    
}

/*Cases Section*/
main > .cases {
    color: var(--generaltextColor);
    padding: 60px 0px 50px;
    background-color:  #0f0f13;
    line-height: 1.7;
}
.cases > .my-cases {
    width: 80%;
    margin: 0 auto;
    padding: 100px 20px 0px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 15px;
}
.my-cases > .case-link {
    padding-top: 2rem;
    padding-bottom: 2rem;
    width: 70%;
    display: block;
    outline: none;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: 0.5s;
    border: 2px solid #222;
    border-radius: 5px;
}
.my-cases > .case-link:hover {
    transition: .5s;
    color: var(--basicColor2);
    background-color: #222;
    /*Transition with transform*/
    -ms-transform: scale(1.1); /* IE 9 */
    -webkit-transform: scale(1.1); /* Safari 3-8 */
    transform: scale(1.1);
}
@media only screen and (min-width: 768px) { /*FOR TAVLETS*/
    .cases > .my-cases {
        max-width: 700px;
    }
    /*
    .cases > .my-cases::after {
        content: "";
        width: 300px;
        background-color: red;

    }
    */
    .my-cases > .case-link {
        padding-top: 3rem;
        padding-bottom: 3rem;
        max-width: 300px;
        display: block;
        text-align: center;
        text-decoration: none;
        color: inherit;
        transition: 0.5s;
    }
}
@media only screen and (min-width: 1024px) { /*FOR PC*/
    .cases > .my-cases {
        max-width: 800px;
        gap: 20px;
    }
}

/*Contact Section*/
main > .contact {
    color: var(--generaltextColor);
    padding: 60px 0px 50px;
    line-height: 1.7;
}
.contact > .mail-container {
    margin-top: 70px;
    text-align: center;
}
.contact > .mail-container > .fa-envelope {
    color: #202027;
    font-size: 1.5rem;
}
.contact > .mail-container > .mail-link {
    margin-top: 15px;
    font-size: 1.2rem;
    color: inherit;
    display: block;
    text-decoration: none;
    outline: none;
    transition: .5s;
}
.mail-container > .mail-link:hover {
    color: var(--basicColor2);
    transform: scale(1.1);
}

/******* Footer Container ********/
footer {
    width: 100%;
    background-color: #0f0f13;
    color: var(--generaltextColor);
    text-align: center;
    font-size: 0.8rem;
    padding: 30px 0px;
}