/* Header */
header {
    width: 100%;
    height: 90vh;
    margin: 0;

    color: #fff;
    text-align: center;
    background-position: top;
}

header .title {
    height: calc(100% - 48px - 24px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
header h1 {
    font-size: 2.5em;
    font-style: italic;
    font-weight: normal;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}
header h2 {
    margin-top: 24px;
    font-weight: normal;
    font-size: 2.5em;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

header .main-contact {
    position: absolute;
    bottom: 20vh;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    /* margin-top: 20vh; */
}
header .main-contact a {
    display: block;
    width: 36px;
    aspect-ratio: 1/1;
    padding: 0px 12px;
}
header .main-contact a > i {
    display: block;
    width: 100%;
    height: 100%;
    background-color: #ccc;
    mask-size: cover;
    transition: background-color 0.2s 0s ease, transform 0.4s 0s ease;
}
header .main-contact a:hover > i {
    transform: scale(1.2);
}

/* Social contacts moved to the side */
header .main-contact-side {
    position: absolute;
    right: 30px;
    top: 0;
    bottom: 10vh;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    z-index: 40;
}
header .main-contact-side a {
    display: block;
    width: 32px;
    aspect-ratio: 1/1;
    padding: 8px;
}
header .main-contact-side a > i {
    display: block;
    width: 100%;
    height: 100%;
    background-color: #ccc;
    mask-size: cover;
    transition: background-color 0.2s 0s ease, transform 0.4s 0s ease;
}
header .main-contact-side a:hover > i {
    transform: scale(1.2);
}

/* Button See projects */
header .view-projects {
    position: absolute;
    bottom: 16vh;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}
header .view-projects-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.1em;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    padding: 16px 24px;
    border-radius: 8px;
    transition: all 0.3s ease;
    outline: none;
    text-decoration: none;
    position: relative;
}
header .view-projects-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}
header .view-projects-btn:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #fff;
    opacity: 0.7;
    transition: all 0.3s ease;
}
header .view-projects-btn:hover:after {
    opacity: 1;
    bottom: -12px;
}

header .row-hire {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;

    position: absolute;
    left: 0;
    right: 0;
    bottom: 30vh;
}
header .row-hire a.hire {
    display: flex;
    align-items: center;
    padding: 12px 32px;

    font-size: 1.1em;
    font-family: "Robot", sans-serif;
    text-transform: uppercase;

    border: none;
    border-radius: 8px;
    color: #fff;
    background-color: #fc5656;
    text-decoration: none;

    -webkit-transition: background-color 0.2s ease;
            transition: background-color 0.2s ease;
    cursor: pointer;
}
header .row-hire a.hire:hover {
    background-color: #bd4242;
}
header .row-hire i.icon {
    width: 40px;
    aspect-ratio: 1/1;
    margin-left: 24px;

    -webkit-mask-size: cover;
            mask-size: cover;
    -webkit-mask-image: url(../images/mask/malt.svg);
            mask-image: url(../images/mask/malt.svg);
    -webkit-transition: background-color .75s ease, transform .75s ease;
            transition: background-color .75s ease, transform .75s ease;

    background-color: #fff;
}

.main-contact-mail > i { mask-image: url(../images/mask/mail.svg); }
.main-contact-mail:hover > i { background-color: #5280ff; }

.main-contact-discord > i { mask-image: url(../images/mask/discord.svg); }
.main-contact-discord:hover > i { background-color: #5865f2; }

.main-contact-github > i { mask-image: url(../images/mask/github.svg); }
.main-contact-github:hover > i { background-color: #010409; }

.main-contact-linkedin > i { mask-image: url(../images/mask/linkedin.svg); }
.main-contact-linkedin:hover > i { background-color: #0a66c2; }

.main-contact-malt > i { mask-image: url(../images/mask/malt.svg); }
.main-contact-malt:hover > i { background-color: #fc5656; }

.main-contact-discord > a::before {
    content: attr(data-copytext);
    position: absolute;
    top: 0;
    left: -25%;
    width: 150%;
    height: min-content;

    color: #fff;
    border-radius: 8px;
    font-size: 0.875em;
    text-align: center;

    opacity: 0;
    transform: translateY(-10px);
    z-index: 100;

    -webkit-transition: opacity .5s ease, transform .5s ease;
            transition: opacity .5s ease, transform .5s ease;
}
.main-contact-discord > a.copied::before {
    opacity: 1;
    transform: translateY(-24px);
}

header button {
    width: 285px;
    margin-top: 48px;
    padding: 20px 40px;

    font-size: 1.1em;
    font-family: "Robot", sans-serif;
    text-transform: uppercase;

    border: none;
    color: #fff;
    background-color: #337ab7;
    
    -webkit-transition: background-color 1s ease;
            transition: background-color 1s ease;
    cursor: pointer;
}
header button:hover {
    background-color: #2b6394;
}

header.show > div > div > * {
    opacity: 0;
    transform: translateY(50px);
    -webkit-animation: fade 2s ease 0s forwards;
            animation: fade 2s ease 0s forwards;
}
header.show > div > div > :nth-child(1) { animation-delay: 0.25s; }
header.show > div > div > :nth-child(2) { animation-delay: 0.5s; }
header.show > div > div > :nth-child(3) { animation-delay: 0.75s; }
header.show > div > div > :nth-child(4) { animation-delay: 1s; }
@keyframes fade {
    0%   { opacity: 0; transform: translateY(50px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Footer */
footer {
    display: block;

    width: auto;
    height: min-content;

    margin: 0;
    padding: 24px;
    padding-top: 48px;
    
    background: #222831;
}
footer > p {
    margin: 24px auto;
    padding: 0;

    text-align: center;
    letter-spacing: 1px;
    font-size: 0.875em;
    text-transform: uppercase;

    color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.5);
    -webkit-transition: letter-spacing .25s ease;
            transition: letter-spacing .25s ease;
}



footer > .social-icons {
    text-align: center;
}

footer > .social-icons > a {
    position: relative;
    display: inline-block;
    width: auto;
    height: 40px;
    user-select: none;
    outline: none;
    cursor: pointer;
}
footer > .social-icons > a.disabled {
    cursor: default;
}
footer > .social-icons > a::before {
    content: attr(data-copytext);
    position: absolute;
    top: 0;
    left: -25%;
    width: 150%;
    height: min-content;

    color: #fff;
    border-radius: 8px;
    font-size: 0.875em;
    text-align: center;

    opacity: 0;
    transform: translateY(-10px);
    z-index: 100;

    -webkit-transition: opacity .5s ease, transform .5s ease;
            transition: opacity .5s ease, transform .5s ease;
}
footer > .social-icons > a.copied::before {
    opacity: 1;
    transform: translateY(-24px);
}

footer > .social-icons > a > img,
footer > .social-icons > a > svg {
    width: 40px;
    height: 40px;
    text-align: center;
    margin: auto 12px;
    box-shadow: none;
    opacity: 1;
    transform: translateY(0px);
    -webkit-transition: transform .25s ease;
            transition: transform .25s ease;
}
footer > .social-icons > a.disabled > img,
footer > .social-icons > a.disabled > svg {
    opacity: 0.25;
}
@media screen and (min-width: 900px) {
    footer > .social-icons > a:not(.disabled):hover > img,
    footer > .social-icons > a:not(.disabled):hover > svg {
        transform: translateY(-10px);
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    }
}