/*stylesheet*/

/*error stuff start*/
.glitch-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #000000;
}

.glitch {
    position: relative;
    font-size: 100px;
    font-weight: bold;
    color: #FF0000;
    letter-spacing: 3px;
    z-index: 1;
}

.glitch:before, .glitch:after {
    display: block;
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.8;
}

.glitch:before {
    animation: glitch-it 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
    color: #00FF00;
    z-index: -1;
}

.glitch:after {
    animation: glitch-it 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) reverse both infinite;
    color: #0000FF;
    z-index: -2;
}

@keyframes glitch-it {
    0% { transform: translate(0); }
    20% { transform: translate(-3px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 3px); }
    80% { transform: translate(2px, -2px); }
    to { transform: translate(0); }
}
/*background start*/

#background {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

#background canvas {
    display: block;
    width: 100%;
    height: 100%; 
}
/*init start*/

@font-face {
    font-family: Jetbrains;
    src: url(./fonts/JetBrainsMono-ExtraLight.woff2);
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: JetbrainsBoldItalic;
    src: url(./fonts/JetBrainsMono-SemiBoldItalic.woff2);
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: JetbrainsBold;
    src: url(./fonts/JetBrainsMono-SemiBold.woff2);
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: JetbrainsItalic;
    src: url(./fonts/JetBrainsMono-ExtraLightItalic.woff2);
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

@media (max-width: 768px) {
    .navbar {
        padding: 8px 12px;
    }

    .navbar a {
        padding: 12px 12px;
    }

    .navbar-right {
        width: 100%;
        justify-content: center;
    }

    .optional {
        display: none;
    }
}

@media (max-width: 480px) {
    .navbar {
        gap: 6px;
    }

    .navbar-right {
        gap: 4px;
    }

    .center-title {
        font-size: clamp(1.25rem, 6vw, 2rem);
    }

    .optional {
        display: none;
    }
}
/*init end*/

/*navbar start*/

.navbar {
    position: sticky;
    flex-shrink: 0;
    background-color: #333333;
    overflow: hidden;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 12px;
}

.navbar a {
    color: #FFFFFF;
    text-align: center;
    padding: 20px 20px;
    font-size: clamp(1.1rem, 2vw, 1.6rem);
    font-family: JetbrainsBold, monospace;
    text-decoration: none;
    transition: color 0.2s ease-in;
}

.navbar a:hover {
    color: #389f2c;
}

.navbar-right a {
    color: #FFFFFF;
    text-align: center;
    padding: 20px 20px;
    text-decoration: none;
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    font-family: Jetbrains, monospace;
    transform-origin: center center;
    transition: 
        color 0.2s ease-in,
        font-family 0.2s ease-in,
        transform 0.2s ease-in;
}

.navbar-right a:hover {
    font-family: JetbrainsBold, monospace;
    transform: scale(1.2);
    color: #389f2c
}

.navbar-right {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 9px;
    margin-left: auto;
}

/*navbar end*/

/*center title start*/

.center-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: min(100%, 960px);
    padding: 0 16px;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    gap: 5px;
    font-family: JetbrainsBoldItalic, monospace;
}

.center-title p {
    font-family: JetbrainsItalic, monospace;
    margin: 0;
    padding: 0;
    white-space: nowrap;
}

.center-title h1 {
    margin: 0;
    padding: 0;
}

.contacts {
    display: flex;
    justify-content: center;
    gap: 20px;
    position: relative;
    z-index: 10;
    margin-top: 10px;
}

.contact-button svg {
    fill: #FFFFFF;
    width: 50px;
    height: 50px;
    transition:
            transform 0.2s ease-in,
            fill 0.2s ease-in;
}

.contact-button:hover svg {
    transform: scale(1.2);
    fill: #e89f2c;
}
/*center title end*/

/*body start*/

body {
    background-color: #767069;
    font-family: Jetbrains, monospace;
    margin: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

* {
    color: #FFFFFF;
}

/*body end*/
