@font-face {
    font-family: 'neontubes';
    src: url("https://bitbucket.org/kennethjensen/webfonts/raw/fc13c1cb430a0e9462da56fe3f421ff7af72db71/neontubes/neontubes-webfont.eot");
    src: url("https://bitbucket.org/kennethjensen/webfonts/raw/fc13c1cb430a0e9462da56fe3f421ff7af72db71/neontubes/neontubes-webfont.eot?#iefix") format("embedded-opentype"), url("https://bitbucket.org/kennethjensen/webfonts/raw/fc13c1cb430a0e9462da56fe3f421ff7af72db71/neontubes/neontubes-webfont.woff2") format("woff2"), url("https://bitbucket.org/kennethjensen/webfonts/raw/fc13c1cb430a0e9462da56fe3f421ff7af72db71/neontubes/neontubes-webfont.woff") format("woff"), url("https://bitbucket.org/kennethjensen/webfonts/raw/fc13c1cb430a0e9462da56fe3f421ff7af72db71/neontubes/neontubes-webfont.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}
html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    height: 100vh;
    color: white;
    font-family: "Audiowide";
    background-size: cover; /* Make sure the background image covers the entire section */
    background-position: center; /* Center the background image */
    background-repeat: no-repeat; /* Prevent the background image from repeating */
    background-image: url('/assets/WebsiteImageTest.webp');
    background-attachment: fixed;
}

.about-header {
    background-color: #030c1c;
    border-radius: 15px;
    top: 3%;
    left: 9vw;
    position: fixed;
    z-index: 1; /* Ensure the title appears above other elements */
    box-sizing: border-box;
    padding: 1%;
    max-width: fit-content;
}

.about-header hr {
    border: none;
    width: 100%;
    height: 2px;
    background-color: #71baff;
    border-radius: 10px;
    -webkit-animation: buzz 0.01s infinite alternate;
    animation: buzz 0.01s infinite alternate;
}

.sidebar {
    width: 8vw;
    background-color: #111111;
    position: fixed;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sidebar ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    width: 100%;
    display: flex;
    flex-grow: 1;
    flex-direction: column;
    justify-content: space-around; /* Space items evenly */
}

.sidebar ul li {
    text-align: center;
    width: 100%; /* Ensure li elements take full width */
}

.sidebar ul li a {
    width: 80%; /* Set a fixed width for the buttons */
    margin: 0 auto; /* Center the buttons horizontally */
    text-decoration: none;
    padding: 1em 0; /* Add padding to the anchor tag */
    /*font-size: calc(0.7vw + 0.7vh);*/
}

.content {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 8vw 1fr;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

section {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative; /* Ensure the section has a relative position */
    scroll-snap-align: center;
}

section.gray {
    display: flex;
    justify-content: center;
}

.intro {
    display: grid;
    gap: 7%;
    grid-template-columns: 30% 1fr; /* Adjust the grid to have two columns */
    align-items: center;
    justify-content: center;
    background-color: #111111; /* Set background color to match the theme */
    border-radius: 20px; /* More rounded corners */
    width: 60%;
}

.frame {
    border: 3px solid #333;
    border-radius: 50%;
    width: 100%; /* Increase the width */
    height: auto; /* Increase the height */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 5%;
}

.frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #f4f6f7; /* Set text color to match the theme */
    text-align: left; /* Align text to the left */
    margin-bottom: 5%;
    margin-top: 5%;
    margin-right: 5%;
}

.main {
    font-family: "neontubes";
    text-align: center;
    position: relative; 
    display: flex;
    flex-direction: column;
}

.main span {
    padding-bottom: 2%;
    position: relative;
    backface-visibility: hidden;
    will-change: opacity;
}

.main .webdev {
    font-size: 3vw;
    color: #ffd9e2;
    text-shadow: 0 0 0 transparent, 0 0 10px #ff003c, 0 0 20px rgba(255, 0, 60, 0.5), 0 0 40px #ff003c, 0 0 100px #ff003c, 0 0 200px #ff003c, 0 0 300px #ff003c, 0 0 500px #ff003c, 0 0 1000px #ff003c;
    -webkit-animation: blink 4s infinite alternate;
            animation: blink 4s infinite alternate;
}

.main .socod {
    font-size: 1.3vw; 
    color: #d4eaff;
    text-shadow: 0 0 0 transparent, 0 0 10px #2695ff, 0 0 20px rgba(38, 149, 255, 0.5), 0 0 40px #2695ff, 0 0 100px #2695ff, 0 0 200px #2695ff, 0 0 300px #2695ff, 0 0 500px #2695ff;
    -webkit-animation: buzz 0.01s infinite alternate;
            animation: buzz 0.01s infinite alternate;
}

h1 {
    margin: 0;
    font-size: 4em; /* Increase the font size for the name */
}

h2 {
    margin: 0;
    font-size: 2em; /* Increase the font size for the titles */
}

.additional-text {
    color: white;
    font-family: "Audiowide", serif;
    font-style: normal;
    font-size: 0.9vw;
}

.scroll-down-arrow {
    text-align: center;
    font-size: 5em; /* Increase the font size for visibility */
    color: #7feef1;
    text-decoration: none;
    position: absolute;
    animation: bounce 2s infinite;
    bottom: 1%;
}

.about-content {
    display: grid;
    grid-template-columns: 70% 1fr;
    grid-template-rows: 10% 1fr;
    place-items: center;
    width: 60%;
    background-color: #2c2c2c;
    border-radius: 10px;
    box-sizing: border-box;
    row-gap: 10%;
    column-gap: 5%;
    padding: 3% 3%;
}

.about-title {
    font-size: 2vw;
    color: #ffd9e2;
    font-family: "neontubes";
    text-shadow: 0 0 0 transparent, 0 0 10px #ff003c, 0 0 20px rgba(255, 0, 60, 0.5), 0 0 40px #ff003c, 0 0 100px #ff003c, 0 0 200px #ff003c, 0 0 300px #ff003c, 0 0 500px #ff003c, 0 0 1000px #ff003c;
    -webkit-animation: blink 4s infinite alternate;
    animation: blink 4s infinite alternate;
    text-wrap: nowrap;
    z-index: 1; /* Ensure the title appears above other elements */
    text-align: center; /* Center the title text */
    margin-bottom: 2%
}

.main-content .about-title {
    grid-row: 1;
    grid-column: span 2;
    text-wrap: wrap;
}

.about-text {
    grid-row: 2;
    grid-column: 1;
    font-size: 1.1vw;
    background-color: #4f4f4f;
    color: #ffffff;
    padding: 3%;
    border-radius: 10px;
    line-height: 1.5;
    font-family: "Audiowide", serif;
    font-weight: 400;
    font-style: normal;
}

.about-image, .about-link {
    grid-row: 2;
    grid-column: 2;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.about-link {
    padding: 5%;
}

.hamburger {
    display: none;
    cursor: pointer;
    position: fixed;
}

.bar{
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  background-color: white;
}

@media (max-height: 100vw) and (max-width: 1024px) {
    .scroll-down-arrow {
        display: none;
    }
}

@media (max-width:1024px){ 

    .content {
        grid-template-columns: 1fr;
    }

    .intro {
        display: grid;
        gap: 5%;
        align-items: center;
        grid-template-columns: 1fr; /* Change to single column layout */
        justify-items: center;
        background-color: #111111; /* Set background color to match the theme */
        border-radius: 20px; /* More rounded corners */
        width: 90%;
    }

    .frame {
        margin-top: 5%;
        border: 3px solid #333;
        border-radius: 50%;
        width: 30%; /* Increase the width */
        height: auto; /* Increase the height */
        display: flex;
        align-items: center;
        justify-content: center;
        margin-left: 0;
    }

    .frame img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
    }

    .text {
        display: flex;
        flex-direction: column;
        justify-content: center;
        color: #f4f6f7; /* Set text color to match the theme */
        text-align: left; /* Align text to the left */
        margin-bottom: 7%;
        margin-right: 0;
        margin-top: 0;
    }

    .main {
        font-family: "neontubes";
        text-align: center;
        position: relative; 
        display: flex;
        flex-direction: column;
    }

    .main span {
        padding: 2% 0;
        position: relative;
        backface-visibility: hidden;
        will-change: opacity;
    }

    .main .webdev {
        font-size: calc(1.8vw + 1.8vh);
        color: #ffd9e2;
        text-shadow: 0 0 0 transparent, 0 0 10px #ff003c, 0 0 20px rgba(255, 0, 60, 0.5), 0 0 40px #ff003c, 0 0 100px #ff003c, 0 0 200px #ff003c, 0 0 300px #ff003c, 0 0 500px #ff003c, 0 0 1000px #ff003c;
        -webkit-animation: blink 4s infinite alternate;
                animation: blink 4s infinite alternate;
    }

    .main .socod {
        font-size: calc(1vw + 1vh); 
        color: #d4eaff;
        text-shadow: 0 0 0 transparent, 0 0 10px #2695ff, 0 0 20px rgba(38, 149, 255, 0.5), 0 0 40px #2695ff, 0 0 100px #2695ff, 0 0 200px #2695ff, 0 0 300px #2695ff, 0 0 500px #2695ff;
        -webkit-animation: buzz 0.01s infinite alternate;
                animation: buzz 0.01s infinite alternate;
    }

    .additional-text {
        color: white;
        font-family: "Audiowide", serif;
        font-style: normal;
        font-size: calc(0.9vw + 0.9vh);
        margin: 5%;
    }


    .about-content {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: 10% 60% 20%;
        place-items: center;
        text-align: center;   
        width: 90%;         /* Center-align text inside the paragraph */
        gap: 10%;
        padding: 10% 7%;
    }

    .about-image {
        width: 60%;                    /* Prevent image from being too wide */
        max-width: 300px;            /* Optional: cap size on smaller screens */
    }

    .main-content .about-title {
        font-size: calc(1.5vw + 1.5vh);
        grid-column: 1;
        grid-row: 1;
    }

    .about-text {
        grid-column: 1;
        grid-row: 2;
        font-size: 3vw;
        width: 95%;
        padding: 3%;
    }

    .about-link {
        grid-column: 1;
        grid-row: 3;
    }

    .about-content a {
        font-size: calc(1vw + 1vh);
    }

    .about-header {
        display: none;
    }

    .hamburger{
        display: flex;
        z-index: 1000;
        margin-top: 4%;
        padding: 3%;
        background-color: #111111;
        border-radius: 12px;
        align-items: center;
        justify-content: center;
        position: fixed;
        transition: 0.2s;
    }

    .hamburger.active {
        background-color: transparent;
        transition: 0.2s;
    }

    .bars {
        padding: 4%;
        margin-right: 5%;
    }

    .bars.glow-on-hover {
        display: block;
    }

    .about-title {
        font-size: 3vw;
    }

    .test2 {
        transition: 0.2s;
    }

    .test2.active {
        opacity: 0;
        transition: 0.2s;
    }

    .hamburger hr {
        border: none;
        width: 100%;
        height: 0.5%;
        background-color: #71baff;
        border-radius: 10px;
        -webkit-animation: buzz 0.01s infinite alternate;
        animation: buzz 0.01s infinite alternate;
    }

    .bars.active .bar:nth-child(2){
        opacity: 0;
    }
    .bars.active .bar:nth-child(1){
        transform: translateY(8px) rotate(45deg);
    }
    .bars.active .bar:nth-child(3){
        transform: translateY(-8px) rotate(-45deg);
    }

    .sidebar {
        left: -100%;
        background-color: #111111;
        position: fixed;
        height: max-content;
        width: max-content;
        display: flex;
        align-items: center;
        transition: 0.3s;
        padding: 3vw;
        z-index: 1000;
        border-radius: 12px;
    }

    .sidebar ul {
        list-style-type: none;
        padding-top: 9vh;
        margin: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .sidebar ul li {
        text-align: center;
        width: 100%; /* Ensure li elements take full width */
        padding: 1vw;
    }

    .sidebar ul li a {
        width: 95%; /* Set a fixed width for the buttons */
        margin: 0 auto; /* Center the buttons horizontally */
        text-decoration: none;
        font-size: 4vw;
    }

    .sidebar.active{
        left: 0;
    }
}


/* buttons and animations */




.glow-on-hover {
    width: fit-content;
    height: fit-content;
    border: none;
    outline: none;
    color: #fff;
    background: #111;
    cursor: pointer;
    position: relative;
    z-index: 0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'neontubes', sans-serif;
    font-size: 1vw;
}

a.glow-on-hover {
    text-decoration: none;
    color: #14bddb;
}

.main-content a.glow-on-hover {
    color: white;
}

.glow-on-hover:before {
    content: '';
    background: linear-gradient(45deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
    position: absolute;
    top: -2px;
    left: -2px;
    background-size: 400%;
    z-index: -1;
    filter: blur(5px);
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    animation: glowing 20s linear infinite;
    opacity: 0;
    transition: opacity .3s ease-in-out;
    border-radius: 10px;
}

.main-content .glow-on-hover:before {
    background: linear-gradient(45deg, #ff003c, #2695ff, #ff003c, #2695ff, #ff003c, #2695ff, #ff003c, #2695ff, #ff003c);
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    background-size: 400%;
    z-index: -1;
    filter: blur(5px);
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    animation: glowing 20s linear infinite;
    opacity: 0;
    transition: opacity .3s ease-in-out;
    border-radius: 10px;
}

.glow-on-hover:active {
    color: #000;
}

.glow-on-hover:active:after {
    background: transparent;
}

.glow-on-hover:hover:before {
    opacity: 1;
}

.glow-on-hover:after {
    z-index: -1;
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: #111;
    left: 0;
    top: 0;
    border-radius: 10px;
}

.main-content .glow-on-hover:after {
    background: linear-gradient(270deg, #ff003c, #2695ff);
}

@-webkit-keyframes blink {
    40% {
        opacity: 1;
    }
    42% {
        opacity: 0.8;
    }
    43% {
        opacity: 1;
    }
    45% {
        opacity: 0.2;
    }
    46% {
        opacity: 1;
    }
}

@keyframes blink {
    40% {
        opacity: 1;
    }
    42% {
        opacity: 0.8;
    }
    43% {
        opacity: 1;
    }
    45% {
        opacity: 0.2;
    }
    46% {
        opacity: 1;
    }
}

@-webkit-keyframes buzz {
    70% {
        opacity: 0.80;
    }
}

@keyframes buzz {
    70% {
        opacity: 0.80;
    }
}

@-webkit-keyframes blink {
    40% {
        opacity: 1;
    }
    42% {
        opacity: 0.8;
    }
    43% {
        opacity: 1;
    }
    45% {
        opacity: 0.2;
    }
    46% {
        opacity: 1;
    }
}

@keyframes blink {
    40% {
        opacity: 1;
    }
    42% {
        opacity: 0.8;
    }
    43% {
        opacity: 1;
    }
    45% {
        opacity: 0.2;
    }
    46% {
        opacity: 1;
    }
}

@keyframes glowing {
    0% { background-position: 0 0; }
    50% { background-position: 400% 0; }
    100% { background-position: 0 0; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}