@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..900;1,100..900&family=Sofia+Sans:ital,wght@0,1..1000;1,1..1000&display=swap');

* {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    color: whitesmoke;
    font-size: 1.25rem;
    line-height: 1.6;
    font-family: "Noto Sans", Arial, Helvetica, sans-serif;
    background: linear-gradient(173deg, #000000 50%, #0B192C 100%);
    background-attachment: fixed;
}

div.main,
div.home {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 75vh;
    transition: all 0.2s;
}

div.main {
    gap: 10rem;
}

div.about {
    max-width: 1200px;
    padding: 5rem 1rem;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
        "intro"
        "gif"
        "sidebar"
        "contact"
        "footer";
    gap: 1rem;
}

div.about>* {
    padding: 1rem;
    background-color: #1E3E621a;
    border: 2px solid transparent;
    border-radius: 8px;
}

div.about>*:hover {
    border: 2px solid #1E3E62;
}

div.intro {
    grid-area: intro;
}

div.gif {
    grid-area: gif;
    text-align: center;
}

aside {
    grid-area: sidebar;
}

div.contact {
    grid-area: contact;
}

footer {
    grid-area: footer;
    display: flex;
}

h1 {
    font-size: 3rem;
}

h2 {
    position: relative;
    font-size: 2rem;
}

h3 {
    color: #FF6500;
}

aside h3 {
    text-align: center;
}

aside h4 {
    margin-top: 1.5rem;
}

h1::after {
    content: "";
    font-size: 2rem;
    border-right: 2px solid orange;
    animation: blink infinite 1s;
}

ul {
    list-style-type: none;
}

ul.navbar {
    display: flex;
    gap: 1rem;
    padding: 2rem;
}

li#blog {
    margin-left: auto;
}

aside ul {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

ul.navbar li {
    color: whitesmoke;
    font-weight: 700;
    font-size: 1.15rem;
    transition: all ease-in-out 0.1s;
}

aside li,
div.contact li a {
    font-weight: 400;
    font-size: 1rem;
    padding: 0.25rem;
    text-align: center;
}

ul.frontend li {
    color: #f472b6;
    background-color: #ec48991a;
}

ul.backend li {
    color: #22d3ee;
    background-color: #0B192C;
}

ul.database li {
    color: #4ade80;
    background-color: #22c55e1a;
}

ul.misc li {
    color: #eab308;
}

div.contact li {
    max-width: fit-content;
}

li:hover {
    transform: scale(1.1);
}

p {
    font-family: "Sofia Sans", Arial, Helvetica, sans-serif;
    font-size: 1.15rem;
}

div.contact p {
    color: #6b6b6b;
    font-style: italic;
}

button#scrollTopBtn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    opacity: 0.5;
    background-color: #000000;
    border: none;
    border-radius: 30px;
    padding: 0.5rem;
    animation: dropin 0.2s ease-in;
}

button:hover {
    cursor: pointer;
}

img {
    width: auto;
    height: 144px;
}

svg {
    color: whitesmoke;
}

footer svg {
    width: auto;
    height: 32px;
    margin-left: auto;
}

a {
    font-size: 1.15rem;
    text-decoration: none;
    color: whitesmoke;
}

a:hover {
    color: #FF6500;
}

i {
    font-size: 1.2rem;
}

li#blog a {
    background-color: whitesmoke;
    color: #0B192C;
    padding: 0.5rem 1rem;
    box-shadow: 6px 6px #1E3E62;
    transition: all 0.2s;
}

li#blog a:hover {
    background-color: #FF6500;
    color: whitesmoke;
    box-shadow: none;
}

.gradient {
    background: -webkit-linear-gradient(#FF6500, #eab308);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-underline::after {
    content: "";
    height: 5px;
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    background: linear-gradient(45deg, #FF6500, #eab308);
}

@keyframes dropin {
    0% {
        transform: translateY(50px);
    }

    100% {
        transform: translateX(0px);
    }
}

@keyframes blink {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@media only screen and (min-width: 768px) {

    h1 {
        font-size: 5rem;
    }

    h1::after {
        font-size: 4rem;
    }

    h2 {
        font-size: 3rem;
    }

    h3 {
        font-size: 2rem;
    }


    ul.navbar {
        gap: 2rem;
    }

    p,
    a {
        font-size: 1.25rem;
    }

    img {
        width: auto;
        height: 192px;
    }
}

@media only screen and (min-width: 1024px) {
    div.about {
        grid-template-columns: repeat(3, 1fr);
        grid-template-areas:
            "intro intro sidebar"
            "gif contact sidebar"
            "footer footer footer";
        gap: 1rem;
    }

    div.about>div {
        flex-direction: row;
    }

    aside ul {
        grid-template-columns: repeat(2, 1fr);
    }

    ul.navbar li a {
        font-size: 1.5rem;
    }

    p,
    a {
        font-size: 1.5rem;
    }

    aside li,
    div.contact li a {
        font-size: 1.15rem;
    }
}