html{
    scroll-behavior: smooth;
}

body {
    background-image: url("images/bg_dark.png");
    background-size: auto;

    font-family: "pixel_16", sans-serif;

	margin: 0;
    padding-top: 60px;

    animation: bgFloat 99s ease-in-out infinite;
}

@font-face {
    font-family: "pixel_16"; 
    src: url("fonts/pixel_16.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

nav{
	position: fixed;
    top: 0;
    width: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(98, 0, 255, 0.3);
    backdrop-filter: blur(6px); 
    display: flex;
    justify-content: center;
    /* gap: 40px; */
    gap: clamp(12px, 4vw, 40px);
    z-index: 1000;
}

nav a {
    color: #a6ff00;
    font-size: clamp(12px, 4vw, 55px);
    text-decoration: none;

    /* padding: clamp(4px, 1vw, 8px)
             clamp(6px, 2vw, 14px); */

    transition: 0.3s;
}


nav a:hover {
    color: #1E1986;
    background: rgba(166, 255, 0, 1);
}

footer {
    text-align: center;
    font-size: clamp(12px, 4vw, 55px);
    /* font-size: 12px; */
    opacity: 0.6;
    margin-top: 40px;
}

footer a {
    text-decoration: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, 
               "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    color: #ffffff;
    transition: all 0.2s ease;
}

.section_1{
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    padding: 40px 0;
}

.card_about{
    width: 70%;
    background: rgba(9, 255, 0, 0.795);
    padding: 20px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(9, 255, 0, 0); 
    box-shadow: 0px 0px 100px rgba(9, 255, 0, 0.712); 
}

.card_about p{
    font-size: 40px;
    color: #000000;
    font-weight: bold;
}

.card_about .p_darkbackground{
    background-color: rgb(0, 0, 0);
    font-size: 40px;
    color: rgba(9, 255, 0, 0.795);
    font-weight: bold;

}

.card_project{
    width: 70%;
    background: rgba(17, 0, 255, 0.404);
    padding: 20px;
    backdrop-filter: blur(100%); 
    border: 1px solid rgba(0, 0, 0, 0);  
    box-shadow: 8px 8px 20px rgba(255, 0, 242, 0.438);
    opacity: 0;             
    transform: translateY(30px);  
    transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

.card_project.visible {
    opacity: 1;               
    transform: translateY(0); 
}

.card_project .p_title{
    font-size: 40px;
    color: #d3ff8c;
    margin-bottom: 15px;
    background-color: #00ffbf6c;
    font-weight: bold;
        text-shadow:
        0 0 6px rgba(255, 255, 255, 0.6),
        0 0 12px rgba(0, 255, 191, 0.5),
        0 0 24px rgba(0, 255, 191, 0.3);
}

.card_project .p_text{
    font-size: 25px;
    color: #d3ff8c;
    margin-bottom: 15px;

    text-shadow:
        2px 2px 0 #000;
}

.project-video {
    width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;

    background: #98d7f071;

    box-shadow:
        0 8px 24px rgba(255, 255, 255, 0.4),
        0 0 20px rgba(0,255,191,0.4);
}

.typing-text {
    font-size: 40px;
    color: #000000;
    font-weight: bold;
}

.cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background-color: #000;
    margin-left: 4px;
    animation: blink 0.7s infinite;
    vertical-align: bottom;
}

.typing-text_darkbackground{
    background-color: rgb(0, 0, 0);
    font-size: 40px;
    color: rgba(9, 255, 0, 0.795);
    font-weight: bold;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    50.01%, 100% {
        opacity: 0;
    }
}

@keyframes bgFloat {
    0%   { background-position: 0 0; }
    25%  { background-position: 200px 100px; }
    50%  { background-position: 400px 200px; }
    75%  { background-position: 200px 100px; }
    100% { background-position: 0 0; }
}