:root {
    --opacity: 0;
    --blur: none;
}

*,
::before,
::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

.lightMode {
    font-family: 'Roboto', sans-serif;
    color: #14213D;
    letter-spacing: 0.063em;
    background-color: #f1f1e6;
    font-weight: 400;
    overflow-x: hidden;
}

.darkMode {
    font-family: 'Roboto', sans-serif;
    color: #f1f1e6;
    letter-spacing: 0.063em;
    background-color: #14213D;
    font-weight: 400;
    overflow-x: hidden;
}

.wrap,
.wrap-outer {
    position: relative;
    max-height: 100vh;
}

.wrap {
    width: 100%;
    height: 70px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/*Nav Bar*/

.header {
    position: fixed;
    width: 100%;
    z-index: 10;
}

.lightMode .header {
    background-color: #f1f1e6;
}

.darkMode .header {
    background-color: #14213D;
}

.header .headerWrap {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    padding: 0 3vw;
}

.checkbox {
    position: absolute;
    display: none;
    height: 32px;
    width: 32px;
    right: 35px;
    z-index: 3;
    opacity: 0;
    cursor: pointer;
}

.toggleMenu {
    position: absolute;
    right: 35px;
    height: 18px;
    width: 32px;
    background-color: transparent;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 2;
    display: none;
}

.menuLine {
    height: 2px;
    width: 100%;
    border-radius: 3px;
    background-color: #005fde;
}

.darkMode .menuLine {
    background-color: #0093ff;
}

.line1 {
    transform-origin: 0% 0%;
    transition: transform 0.4s ease-in-out;
}

.line2 {
    transition: transform 0.2s ease-in-out;
}

.line3 {
    transform-origin: 0% 100%;
    transition: transform 0.4s ease-in-out;
}

.headerWrap input[type="checkbox"]:checked~.toggleMenu .line1 {
    transform: translatex(29px) rotate(142deg);
}

.headerWrap input[type="checkbox"]:checked~.toggleMenu .line2 {
    transform: scaleY(0);
}

.headerWrap input[type="checkbox"]:checked~.toggleMenu .line3 {
    transform: translatex(29px) rotate(-142deg);
}

.headerWrap input[type="checkbox"]:checked~nav {
    display: flex;
}

.headerWrap input[type="checkbox"]:checked~nav ul .btnContent {
    display: flex;
}

a {
    color: inherit;
    text-decoration: none;
    z-index: 9;
    cursor: pointer;
}

.logo {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.logo svg {
    width: 100%;
    max-height: clamp(50px, 10vw, 60px);
    display: inline-block;
}

.lightMode .logo svg {
    fill: #14213D;
}

.darkMode .logo svg {
    fill: #f1f1e6;
}

nav {
    text-transform: uppercase;
    letter-spacing: 0.063em;
    font-size: 0.75em;
}

.header nav ul {
    display: flex;
    align-items: center;
}

.header nav ul li {
    display: inline-block;
    margin-left: 20px;
}

nav ul li div {
    letter-spacing: 2px;
    color: #005fde;
    padding: 3px 0;
    position: relative;
    display: inline-block;
    transition: 0.5s color ease;
    cursor: pointer;
}

.darkMode nav ul li div {
    color: #0093ff;
}

nav ul li div.menuLink:after {
    content: "";
    transition: 0.5s all ease;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    position: absolute;
    bottom: -0.25em;
    height: 1px;
    width: 0;
    background: #f3bf3a;
    left: 50%;
    transform: translateX(-50%);
}

nav ul li div:hover {
    color: #f3bf3a;
}

nav ul li div.menuLink:hover:after {
    width: 100%;
}

.buttonResume {

    border-radius: 4px;
    padding: 0.75rem 1rem;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    margin-left: 15px;
    transition: all 0.5s ease-out;
    background-position: 1% 50%;
    background-size: 300% 300%;
}

.lightMode .buttonResume {
    color: #f1f1e6;
    background-image: linear-gradient(270deg, rgba(243, 191, 58, 0), rgba(243, 191, 58, 0), rgba(243, 191, 58, .9), rgba(243, 191, 58, .9));
    border: 1px solid #f3bf3a;
}

.darkMode .buttonResume {
    color: #f3bf3a;
    background-image: linear-gradient(270deg, rgba(243, 191, 58, .9), rgba(243, 191, 58, .9), rgba(243, 191, 58, 0), rgba(243, 191, 58, 0));
    border: 1px solid #f3bf3a;
}

.lightMode .buttonResume:hover {
    border-color: #f3bf3a;
    color: #f3bf3a;
    background-position: 99% 50%;
}

.darkMode .buttonResume:hover {
    border-color: transparent;
    color: #14213D;
    background-position: 99% 50%;
}

.homeTitle .buttonResume {
    margin-left: 0;
    display: inline-block;
    margin-top: 30px;
}

/*Side bar social*/

.sideBar {
    width: 70px;
    position: fixed;
    bottom: 40px;
    left: 0;
    right: auto;
    z-index: 11;
    color: #005fde;
}

.darkMode .sideBar {
    color: #0093ff;
}

.socialList {
    display: flex;
    flex-direction: column;
    align-items: start;
    margin: 0;
    padding: 0;
    list-style: none;
}

.socialList li {
    padding: 10px 20px;
}

.socialList li a svg {
    fill: #005fde;
    transition: all 0.3s ease;
}

.darkMode .socialList li a svg {
    fill: #0093ff;
}

.socialList li a svg:hover {
    fill: #f3bf3a;
    transform: translateY(-3px);

}

.socialList::after,
.socialList::before {
    content: "";
    display: block;
    width: 30px;
    height: 60px;
    color: #005fde;
    border-right: 1px solid;
    opacity: var(--opacity);
}

.darkMode .socialList::after, .darkMode .socialList::before {
    color: #0093ff;
}

.socialList::before {
    border-top: 1px solid;
    border-top-right-radius: 5px;
}

.socialList::after {
    border-bottom: 1px solid;
    border-bottom-right-radius: 5px;
}

/*main page*/

.homePage {
    height: calc(100vh - 70px);
    position: relative;
    padding: 0 8vw;
    filter: var(--blur);
}

.homeTitle {
    line-height: 1.5;
    height: calc(100vh - 70px);
    display: flex;
    flex-direction: column;
    position: relative;
    justify-content: center;
}

.titleText {
    display: block;
}

.firstTitle {
    font-size: clamp(40px, 8vw, 80px);
    font-weight: bolder;
}

.mainPage {
    margin: 0 auto;
    width: 100%;
    max-width: 1600px;
    min-height: 100vh;
    padding: 0 10vw;
    filter: var(--blur);
}

section {
    margin: 0px 12vw;
    padding: 50px 0px;
}

/*Section About*/

.titleSection {
    white-space: pre-wrap;
    font-size: calc((1.6 - 1) * 1.2vw + 1rem);
    font-weight: 900;
}

.sectionAbout .inner {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: 0;
}

p {
    margin: 0px 0px 15px;
}

.imgPart {
    width: calc(50% - 5%);
    position: relative;
    max-width: initial !important;
}

.imgPart .imgAboutPart {
    position: relative;
    overflow: hidden;
    border-top-left-radius: 50px;
    border-top-right-radius: 50px;
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
}

.imgPart .imgAboutPart img {
    width: 99%;
    height: 99%;
    display: block;
    position: static;
}

.aboutDesc {
    margin-left: 10%;
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100%;
    position: relative;
    width: calc(50% - 5%);
}

.aboutDesc .aboutDescContent {
    position: relative;
    width: 100%;
}

.aboutDescInner {
    text-align: left;
}

/*Section Project*/

.titleProject {
    display: flex;
    align-items: center;
    position: relative;
    margin: 10px 0px 40px;
    width: 100%;
}

.gridProjects {
    display: grid;
    padding-bottom: 15px;
    grid-template-columns: 1fr 1fr;
}

.gridProjects .itemProject {
    padding-bottom: 56.25%;
    position: relative;
    height: 0;
    margin: 7px;
}

.gridProjects .itemProject .imgProject {
    padding-bottom: 56.25%;
    width: 100%;
    position: relative;
    overflow: hidden;
    margin: 0;
    line-height: 0;
}

.gridProjects .itemProject .imgProject .imgProjectInner {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

.gridProjects .itemProject .imgProject .imgProjectInner img {
    width: 99%;
    height: 99%;
    object-position: 50% 50%;
    object-fit: cover;
}

.overlayProjects {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% - 7px);
    transition: all 0.2s ease;
    z-index: 7;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    opacity: 0;
}

.textProjects {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    color: #14213D;
    overflow: auto;
    display: flex;
    align-content: center;
    justify-content: center;
    flex-direction: column;
    padding: 7%;
    text-align: center;
    z-index: 8;
    transition: opacity 0.2s ease;
    opacity: 0;
}

.itemProject:hover .overlayProjects,
.itemProject:hover .textProjects {
    opacity: 1;
}

.contactSection {
    text-align: center;
}

.contactContent {
    display: flex;
    justify-content: center;
}

.contactContent .buttonResume {
    margin: 2% 0;

}


/*Footer*/

.footerSection {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: auto;
    min-height: 70px;
    padding: 15px;
    text-align: center;
}

.footerPart {
    font-size: 12px;
    line-height: 1;
}

.btn {
    display: flex;
}

.btn svg {
    position: absolute;
}

.btn .imgSun {
    left: 3px;
}

.btn .imgMoon {
    right: 3px;
}

.lightMode .btn svg {
    fill: #14213D;
}

.darkMode .btn svg {
    fill: #f1f1e6;
}

.btn-color-mode-switch>.btn-color-mode-switch-inner {
    margin: 0px;
    width: 40px;
    height: 20px;
    background: rgba(243, 191, 58, 0.5);
    border-radius: 26px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
    display: block;
}

.btn-color-mode-switch>.btn-color-mode-switch-inner:before {
    content: attr(data-on);
    position: absolute;
    font-size: 12px;
    font-weight: 500;
    top: 7px;
    right: 20px;

}

.btn-color-mode-switch>.btn-color-mode-switch-inner:after {
    content: attr(data-off);
    width: 18px;
    height: 18px;
    background: #f3bf3a;
    border-radius: 26px;
    position: absolute;
    left: 2px;
    top: 1px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0px 0px 6px -2px #111;
    padding: 5px 0px;
}

.btn-color-mode-switch input[type="checkbox"] {
    cursor: pointer;
    width: 40px;
    height: 20px;
    opacity: 0;
    position: absolute;
    z-index: 1;
    margin: 0px;
}

.btn-color-mode-switch input[type="checkbox"]:checked+.btn-color-mode-switch-inner {
    background: rgba(55, 142, 255, 0.5);
    color: #fff;
}

.btn-color-mode-switch input[type="checkbox"]:checked+.btn-color-mode-switch-inner:after {
    content: attr(data-on);
    left: 20px;
    background: #005fde;
}

.darkMode .btn-color-mode-switch input[type="checkbox"]:checked+.btn-color-mode-switch-inner:after {
    background: #0093ff;
}

.btn-color-mode-switch input[type="checkbox"]:checked+.btn-color-mode-switch-inner:before {
    content: attr(data-off);
    right: auto;
    left: 20px;
}

.btn-color-mode-switch input[type="checkbox"]:checked~.alert {
    display: block;
}

.switch {
    display: flex;
    align-items: center;
}



.reveal-content [class*="reveal-"] {
    opacity: 0;
}

.reveal-top [class*="reveal-"] {
    opacity: 0;
    transform: translateY(-30px);
}

.reveal-bottom [class*="reveal-"] {
    opacity: 0;
    transform: translateY(30px);
}

.reveal-left [class*="reveal-"] {
    opacity: 0;
    transform: translateX(-30px);
}

.reveal-right [class*="reveal-"] {
    opacity: 0;
    transform: translateX(30px);
}

.reveal-visible [class*="reveal-"] {
    opacity: 1;
    transform: translate(0px);
    transition: 1s cubic-bezier(.5, 0, 0, 1);
}

.reveal-visible .reveal-2 {
    transition-delay: .1s;
}

.reveal-visible .reveal-3 {
    transition-delay: .2s;
}

.reveal-visible .reveal-4 {
    transition-delay: .3s;
}

.reveal-visible .reveal-5 {
    transition-delay: .4s;
}

.reveal-visible .reveal-6 {
    transition-delay: .5s;
}

.reveal-visible .reveal-7 {
    transition-delay: .6s;
}

.reveal-visible .reveal-8 {
    transition-delay: .7s;
}

.reveal-visible .reveal-9 {
    transition-delay: .8s;
}

.reveal-visible .reveal-10 {
    transition-delay: .9s;
}

.reveal-visible .reveal-11 {
    transition-delay: 1s;
}

.reveal-visible .reveal-12 {
    transition-delay: 1.1s;
}

.reveal-visible .reveal-13 {
    transition-delay: 1.2s;
}

.reveal-visible .reveal-14 {
    transition-delay: 1.3s;
}

.reveal-visible .reveal-15 {
    transition-delay: 1.4s;
}

.reveal-visible .reveal-16 {
    transition-delay: 1.5s;
}

.reveal-visible .reveal-17 {
    transition-delay: 1.6s;
}

.reveal-visible .reveal-18 {
    transition-delay: 1.7s;
}

.reveal-visible .reveal-19 {
    transition-delay: 1.8s;
}

.reveal-visible .reveal-20 {
    transition-delay: 1.9s;
}

.reveal-visible .reveal-21 {
    transition-delay: 2s;
}