* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
}
:root {
    --main-color: #fff;
    --identifi-color: #FFB74D ;
    --body-color: #D3D3D3;
    --nav-color: #212121;
    --anits-color: rgba(51, 51, 51, 0.4);
    --mainDAOS-P: 20px;
    --mainDAOS-N: -20px;
}
body {
    min-width: 300px;
    background-color: var(--body-color);
}
a {
    text-decoration: none;
}
.d-flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}
.d-none {
    display: none;
}
.About, .home, .Skills, .Projects, .Contact {
    min-height: 100vh;
}
/* ========================================================================== */
nav, .side-bar-mobile {
    background-color: var(--nav-color);
    position: fixed;
}
nav {
    justify-content: space-between !important;
    padding: 5px 30px;
    height: 4.7rem;
    width: 100%;
    z-index: 9999;
    box-shadow: 0px 0px 10px rgba(255, 255, 255, 0.2);
}
nav h1 {
    font-size: 2.2rem;
    white-space: nowrap;
}
nav h1 a {
    color: var(--main-color);
    gap: 10px;
}
.snow-img {
    width: 2.4rem;
    background-color: var(--identifi-color);
    padding: 2px;
    border-radius: .5rem;
}
.nav-ul {
    list-style: none;
    gap: .5rem;
    font-size: 1rem;
}
.nav-ul a {
    display: inline-block;
    color: var(--main-color);
    min-width: 5.5rem;
    text-align: center;
    padding: .6rem;
    position: relative;
    font-weight: bold;
}
.nav-ul a.selected {
    color: var(--identifi-color);
}
.nav-ul a:hover {
    background-color: rgba(255, 255, 255, 0.3);
}
.nav-ul a::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 4px;
    background-color: #2098d1;
    bottom: 0;
    left: 0;
    transform-origin: right;
    transform: rotateY(90deg);
}
.nav-ul a:hover::after {
    transform: rotateY(0);
}
/* ========================================================================== */
.home {
    width: 100%;
    padding: 5rem 1.8rem 0;
    background: linear-gradient(45deg, #121212, #1a1a1a, #2e2e2e);
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    color: var(--main-color);
    overflow-x: auto;
    overflow-y: hidden;
}
.home-info-anime {
    font-size: 1.625rem;
    padding: 1.2rem;
    color:  #e6e6e6;
    opacity: 0;
    transform: translate3d(var(--mainDAOS-N), var(--mainDAOS-N), 0);
}
.home-info-anime > div {
    position: relative;
    height: 3rem;
    margin-bottom: .3rem;
}
.home-info-anime > div > h2 {
    position: absolute;
    top: 0;
    color: #FFB74D;
}
#typed-home {
   width: fit-content;
   border-right: 15px solid var(--main-color);
   padding-right: 7.5px;
   animation: typing-border .75s ease infinite;
   white-space: nowrap;
}
.profile-img {
    width: 25rem;
    opacity: 0;
    transform: translate3d(var(--mainDAOS-P), var(--mainDAOS-P), 0);
    border-radius: 5%;
}
.home-profile-img {
    position: relative;
    z-index: 9;
} 
.home-profile-img::before {
    content: "";
    position: absolute;
    border-radius: 50%;
    z-index: -9;
    width: 22.5rem;
    height: 22.5rem;
    transform: translateY(10%);
    background-color: var(--identifi-color);
    box-shadow: 0px 0px 10px var(--identifi-color);
}
/* =============================================================== */
.container-side-bar-icon {
    cursor: pointer;
    height: 2.5rem;
}
.side-bar-icon, .side-bar-icon::after, .side-bar-icon::before {
    height: .5rem;
    background-color: var(--identifi-color);
}
.side-bar-icon {
    display: inline-block;
    width: 3rem;
    position: relative;
}
.side-bar-icon.open {
    background-color: transparent;
}
.side-bar-icon::after, .side-bar-icon::before {
    content: "";
    position: absolute;
    width: 100%;
}
.side-bar-icon::after {
    top: -200%;
}
.side-bar-icon.open::after {
    top: 0;
    transform: rotateZ(-45deg);
}
.side-bar-icon::before {
    bottom: -200%;
}
.side-bar-icon.open::before {
    top: 0;
    transform: rotateZ(45deg);
}
.side-bar-mobile {
    width: 45%;
    height: 100vh;
    right: 0;
    z-index: 999;
    transform: translateX(110%);
    padding-top: 6.5rem;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, .2);
    overflow-y: auto;
}
.side-bar-mobile.open {
    transform: translateX(0);
}
/* ================================================================== */
.About {
    padding: 7rem 1.8rem 1.2rem;
    background: linear-gradient(
        to right, 
        rgba(200, 225, 255, 0.5),
        rgba(240, 248, 255, 0.6),
        rgba(255, 255, 255, 0.8)
    );

    color: #000;
}
.header-about {
    display: flex;
}
.header-about :first-child, .header-about :last-child {
    display: inline-block;
    height: 4px;
    background-color: var(--identifi-color);
}
.header-about :first-child {
    width: 20%;
}
.header-about :last-child { 
    width: 80%;
}
.title-about {
    width: fit-content;
    padding: 0 .6rem;
    font-weight: bold;
    font-size: 1.5rem;
    display: inline-block;
    white-space: nowrap;
    transform: translateY(-50%);
}
.main-content-about {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 2rem;
    height: fit-content;
    font-size: 1rem;
}
.table-about {
    display: block;
}
.info-about h3, .additional-info-about > :first-of-type {
    margin: 2rem 0;
    padding: 1.25rem;
}
.table-about th {
    text-align: start;
}
.table-about th, .table-about td {
    min-width: 4rem;
}
.table-about th {
    color: #00000080;
}
.table-about tr {
    min-height: 2.7rem;
}
.table-about tr th:not(:first-child) {
    text-align: center;
}
.table-about tr td {
    font-size: .9em;
}
.d-cv {
    width: fit-content;
    height: 100%;
    margin: 3rem auto;
}
.d-cv.ants {
    width: 25rem;
    height: 6.25rem;
    animation-play-state: running;
    --anits-color: rgba(51, 51, 51, .9);
}
[name="item-about-anime"] {
    transform: translate3d(0, var(--mainDAOS-P), 0);
    opacity: 0;
    transition-duration: 1.5s;
}
.about-contact-btn {
    display: inline-block;
    width: 7.5rem;
    font-size: 1.05rem;
    cursor: pointer;
    font-weight: bold;
    border-radius: .3rem;
    color: #544F4D;
    padding: 0.25rem .5rem;
    text-align: center;
    margin: 0 .3rem;
    border: 2px solid #544f4f;
}
.about-contact-btn:hover {
    background-color: #544f4f;
    color: #fff;
}
/* ================================================================== */
/* ================================================================== */
.main-btn {
    display: inline-block;
    min-width: 7.5rem;
    height: 2.5rem;
    outline: none;
    border: none;
    background-color: var(--identifi-color);
    color: #333333;
    font-weight: bold;
    margin: 0.3rem 0.625rem;
    cursor: pointer;
    box-shadow: 1.5px 1.5px 0px 3px rgba(0, 0, 0, 0.65);
    border-radius: .6rem;
    font-size: 1.1rem;
    transition: border-radius .2s ease, 
    background-color .5s ease,
    color .5s ease,
    box-shadow .5s ease;
    padding: .32rem 1.25rem;
    text-align: center;
}
.main-btn:hover {
    background-color: #333333;
    color: var(--identifi-color);
    border-radius: 0;
    box-shadow: 0px 0px 0px 3px #333333;
}
.ants {
    --main-widht: 25px;
    --main-height: 5px;
    background-image: 
        linear-gradient(90deg, var(--anits-color) 50%, transparent 50%),
        linear-gradient(90deg, var(--anits-color) 50%, transparent 50%),
        linear-gradient(0, var(--anits-color) 50%, transparent 50%), 
        linear-gradient(0, var(--anits-color) 50%, transparent 50%);
    background-repeat: repeat-x, repeat-x, repeat-y, repeat-y;
    background-size: 
        var(--main-widht) var(--main-height),
        var(--main-widht) var(--main-height), 
        var(--main-height) var(--main-widht), 
        var(--main-height) var(--main-widht);
    animation: marching-ants .5s infinite linear;
    padding: 1.25rem;
    animation-play-state: paused;
}
.ants:hover {
    animation-play-state: running;
    --anits-color: rgba(51, 51, 51, .9);
}
/* ================================================================== */
/* ================================================================== */

/* ================================================================== */
/* ================================================================== */
.profile-img, .home-info-anime, 
[name="item-about-anime"], 
.skills-sections > div,
.title-projects,
.contact-send-message,
.projects-main-carousel {
    transition: 1s cubic-bezier(.175,.885,.32,1.275);
    transition-property: opacity, transform ;
}

.side-bar-icon, .side-bar-icon::after, .side-bar-icon::before, .side-bar-mobile {
    transition: all .75s ease;
}
.nav-ul a::after {
    transition: all .7s ease;
}

.home-info-anime.scroll,
.profile-img.scroll,
.skills-sections > div.scroll-up,
.title-projects.scroll-down,
.projects-main-carousel.scroll-up,
.contact-send-message.scroll-down,
[name="item-about-anime"].scroll-down {
    transform: translateZ(0);
    opacity: 1 ;
}

@keyframes typing-border {
    to {
        border-right-color: hsl(0, 0%, 0%, 0);
    }
}
@keyframes marching-ants {
    0% {
        background-position: 0 0, 0 100%, 0 0, 100% 0;
    }
    100% {
        background-position: 50px 0, -50px 100%, 0 -50px , 100% 50px;
    }
}

@keyframes spinner-projects-wheel {
    from {
        transform: rotate(0);
    }
    to {
        transform: rotate(360deg);
    }
}
/* ================================================================== */
/* ================================================================== */