/* IMPORT GOOGLE FONTS */
@import url('https://fonts.googleapis.com/css2?family=Fjalla+One&family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap');

/* REMOVE SCROLL BOUNCE EFFECT */
:root {
    overscroll-behavior: none;
}

/* REMOVE DEFAULT BROWSER SETTINGS */
* {
    margin:0;
    padding: 0;
    box-sizing: border-box;
}

/* GENERAL STYLES */
body {
    background-color: rgb(200, 200, 200);
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    font-family: "Source Sans 3", sans-serif;
}

main {
    margin-top: 65px;
    margin-bottom: 65px;
}

.hidden {
    display: none;
}

h1 {
    color: black;
    font-size: 2.5rem !important;
}

h1, h2, h3 {
    font-family: "Fjalla One", sans-serif;
}

h3 {
    font-size: 1.5rem;
    color: rgb(180, 180, 180);
}

#name {
    font-size: 2.5rem;
}

#title-bar {
    background-color: white;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    height: 65px;
    z-index: 1000;
}

#navbar {
    background-color: white;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    justify-content: center;
    height: 65px;
    z-index: 1000;
}

.nav-link {
    color: rgb(120, 120, 120);
    font-size: 1.5rem;
    padding: 0 1rem;
}

.nav-link:hover,
.nav-link:focus {
    color: black;
}

.text-link {
    color: rgb(120, 120, 120);
    font-weight: 700;
    text-decoration: none;
}

.text-link:hover,
.text-link:focus {
    color: black;
}

.active {
    color: black;
    font-weight: 600;
}


.intro-container {
    margin-top: 50px;
}

.text {
    font-size: 1.2rem;
}

#profile-frame {
    width: 150px;
    height: 150px;
    overflow: hidden;
    border-radius: 50%;
    border: 8px solid white;
    position: fixed;
    top:0;
    right: -1px;
    z-index: 1500;
}

#profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.1s ease;
    will-change: transform, filter;
    position: absolute;
    top: 0;
    left: 0;
}

@keyframes glitch-image {
    0%   { transform: translate(0, 0) scale(1); filter: none; }
    15%  { transform: translate(-0.5px, 0.5px) scale(1.02); filter: hue-rotate(45deg) brightness(1.1); }
    30%  { transform: translate(0.5px, -1px) scale(1.01); filter: contrast(1.2); }
    45%  { transform: translate(-1px, 1px) scale(1); filter: saturate(1.5); }
    60%  { transform: translate(0.5px, 0px) scale(1.01); filter: hue-rotate(-45deg); }
    75%  { transform: translate(0px, -0.5px) scale(1.02); filter: brightness(0.9); }
    100% { transform: translate(0, 0) scale(1); filter: none; }
}

.glitch {
    animation: glitch-image 0.2s linear;
}


@media (min-width: 768px) {
    #navbar {
        top: 0;
        bottom: auto;
        justify-content: space-between;
    }
    #profile-frame {
        height: 220px;
        width: 220px;
        left: -1px;
    }
    .white-block {
        position: fixed;
        height: 50px;
        width: 110px;
        background-color: white;
    }
    .index-title {
        margin-left: 180px;
    }
    main {
        margin-bottom: 0;
    }
    .intro-container {
        margin-top: 120px;
    }
}