:root {
    --bg-col: #011627ff;
    --col1: #f71735ff;
    --col2: #41ead4ff;
    --col3: #fdfffcff;
    --col4: #ff9f1cff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'League Spartan';
}

/* width */
::-webkit-scrollbar {
    width: 2px;
}

/* Track */
::-webkit-scrollbar-track {
    background: var(--bg-col);
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: var(--col2);
    border-radius: 2px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: var(--col3);
}

html {
    scroll-behavior: smooth;
}

/* Global Styles */

h1 {
    font-size: 50px;
    line-height: 64px;
    color: var(--col3);
}

h2 {
    font-size: 46px;
    line-height: 54px;
    color: var(--col3);
}

h3 {
    font-size: 30px;
    color: var(--col3);
}

h4 {
    font-size: 24px;
    color: var(--col3);
}

h6 {
    font-weight: 700;
    font-size: 12px;
}

p {
    font-size: 16px;
    color: var(--col3);
    margin: 15px 0 20px 0;
}

body {
    width: 100%;
    background-color: var(--bg-col);
}

section {
    margin: 15px 0;
    /* border: 1px solid #fff; */
}

/* END OF GLOBAL STYLE */

/* 
rich-black: #011627ff;
imperial-red: #f71735ff; // 'I am' COl
turquoise: #41ead4ff; // 'Hyy' COL
baby-powder: #fdfffcff;
orange-peel: #ff9f1cff; // SVG COL (PHOTO BACK-COL), <NAME> COL

https://coolors.co/011627-f71735-41ead4-fdfffc-ff9f1c
*/
#navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: -60px;
    width: 100%;
    height: 60px;
    background-color: #011627a5;
    box-shadow: 0 0 10px #000;
    padding: 15px;
    transition: top 0.5s;
    z-index: 2;
}

#navbar a {
    color: var(--col3);
    text-decoration: none;
    font-size: 18px;
    padding: 15px;
    transition: ease 0.5s;
}

#navbar a:hover {
    color: var(--col4);
}


#mobile {
    display: none;
}

#close {
    display: none;
}

.blink-text::after {
    content: '.';
    color: var(--col4);
    border-right: 5px solid black;
    display: inline-block;
    animation: blink-caret 1s step-end infinite;
}

#welcome {
    height: 100vh;
}

#welcome-container {
    height: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

#myphoto-container {
    width: 40vw;
    padding-left: 60px;
    padding-top: 40px;
}

#myphoto {
    width: 75%;
    border-radius: 65% 35% 66% 34% / 71% 68% 32% 29%;
    animation: breathAnimation 2s linear forwards;
    filter: drop-shadow(0 5px 5px #000);
}

#text-container {
    width: 60vw;
    display: flex;
    justify-content: end;
    align-items: left;
    flex-direction: column;
    margin-top: 150px;
}

.typewriter-text {
    overflow: hidden;
    white-space: nowrap;
    filter: drop-shadow(0 2px 2px black);
    animation: typing 2s steps(21, end);
}

.typewriter-text .small {
    animation: typing 2s steps(9, end);
}

.fade-in-text {
    opacity: 0;
    animation: fadeIn 2s forwards;
    animation-delay: 2s;
}

#project-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.sec-header {
    margin: 30px 0;
    filter: drop-shadow(0 2px 4px #000);
}

.sec-pad {
    padding: 10px 50px;
}

.project-card {
    position: relative;
    width: 30%;
    height: auto;
    margin: 15px;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 4px 8px #000;
    transition: transform 0.5s;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-card:hover {
    transform: scale(1.1);
}

.project-card .card-details {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0));
    transform: translateY(70%);
    transition: transform 0.3s;
}

.project-card .card-details h3 {
    color: var(--col1);
}

.project-card .card-details a {
    color: var(--col3);
    font-size: 16px;
    margin: 0 5px;
}

.project-card:hover .card-details {
    transform: translateY(5%);
}

#lan-card-container {
    display: flex;
    justify-content: space-evenly;
    align-items: flex-start;
}

.lan-card {
    background-color: rgb(0, 13, 23);
    padding: 25px;
    width: 30%;
    border-radius: 10px;
    border: 2px solid var(--col2);
    text-align: center;
    box-shadow: 0 5px 10px #000;
    transition: 0.3s;
}

.lan-box-container {
    margin-top: 25px;
    display: flex;
    flex-wrap: wrap;
}

.lan-box {
    font-size: 18px;
    padding: 10px;
    border: 2px solid var(--col1);
    border-radius: 7px;
    margin: 10px;
    color: var(--col3);
    background-color: var(--bg-col);
    box-shadow: 0 2px 5px #000;
    transition: 0.3s;
}
.lan-card:hover{
    scale: 105%;
}
.lan-box:hover {
    scale: 1.1;
}

.lan-box:nth-child(2),
.lan-box:nth-child(6),
.lan-box:nth-child(8) {
    border-color: var(--col4);
}

.lan-box:nth-child(3),
.lan-box:nth-child(9) {
    border-color: var(--col2);
}

.lan-box:nth-child(4),
.lan-box:nth-child(10) {
    border-color: var(--col3);
}

#contact-container {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-wrap: wrap;
}

.con {
    width: 48%;
    margin: 10px;
    border-color: #C13584;
}

.con a {
    text-decoration: none;
}

.con-box {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.con-box .handle {
    margin-left: 10px;
    font-size: 24px;
}

.con:nth-child(2) {
    border-color: #bb001b;
}

.con:nth-child(3) {
    border-color: #6cc644;
}

.con:nth-child(4) {
    border-color: #0077b5;
}

.con:nth-child(5) {
    border-color: var(--col4);
}

#contact {
    margin-bottom: 75px;
}

footer {
    text-align: center;
    padding: 5px;
    width: 100%;
}


@keyframes breathAnimation {
    0% {
        transform: scale(60%);
        opacity: 0.25;
    }

    100% {
        transform: scale(100%);
        opacity: 1;
    }
}

@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent;
    }

    50% {
        border-color: currentColor;
    }
}

@media (max-width: 788px) {
    #nav {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        position: fixed;
        top: 0;
        right: -700px;
        height: 100vh;
        width: 55%;
        background-color: #011627db;
        padding: 80px 0 0 10px;
        transition: 0.5s;
        box-shadow: -3px 0px 11px var(--bg-col);
    }

    #nav a {
        margin-bottom: 25px;
    }

    #nav.active {
        right: 0px;
    }

    #nav a:hover {
        color: var(--col4);
    }

    #mobile {
        padding-right: 25px;
        display: block;
        text-align: center;
        color: var(--col3);
    }

    #close {
        color: var(--col3);
        display: initial;
        position: absolute;
        top: 30px;
        left: 30px;
    }

    #navbar a {
        margin-bottom: 20px;
    }

    #welcome-container {
        flex-direction: column;
        justify-content: center;
        padding-left: 10px;
        padding-top: 0;
    }

    #myphoto-container {
        width: 100%;
        padding-left: 125px;
    }

    #text-container {
        width: 100%;
        margin-top: 20px;
        padding: 0 85px;
        width: 100%;
    }

    #text-container h1 {
        display: inline;
    }

    .sec-header {
        margin: 15px 0;
    }

    .sec-pad {
        padding: 10px 30px;
    }

    #project-container {
        justify-content: center;
    }

    .project-card {
        width: 75%;
        height: auto;
    }

    #lan-card-container {
        flex-wrap: wrap;
    }

    .lan-card {
        width: 45%;
        margin-bottom: 20px;
    }

    .con {
        width: 80%;
    }
}

@media (max-width: 477px) {
    #navbar a {
        margin-bottom: 20px;
    }

    #welcome-container {
        flex-direction: column;
        justify-content: center;
    }

    #myphoto-container {
    padding-left: 52px;
    padding-top: 00px;
    }

    #myphoto{
        width: 80%;
    }

    #text-container {
        margin-top: 20px;
        padding-left: 70px;
        width: 100%;
    }

    #text-container h1 {
        white-space: break-spaces;
    }

    .sec-header {
        margin: 15px 0;
    }

    .sec-pad {
        padding: 10px 30px;
    }

    .project-card {
        width: 90%;
        height: auto;
    }

    #lan-card-container {
        flex-wrap: wrap;
    }

    .lan-card {
        width: 85%;
        margin-bottom: 20px;
    }

    .con {
        width: 90%;
    }
}