@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Vast+Shadow&display=swap');

body {
    margin: 0;
    padding: 0;
    height: 100vh;
    position: relative; /* Add relative positioning */
    overflow: auto;
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
    align-items: flex-start;
    padding: 40px;
    box-sizing: border-box;
    background-color: black;
}

/* New styles for background SVG */
#background-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Place behind the grid */
    pointer-events: none; /* Prevent SVG from interfering with interactions */
}

/* Modify the existing background grid */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-size: 40px 40px;
    background-image: 
        linear-gradient(to right, rgba(255,255,255,0.1) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.1) 1px, transparent 1px);
    z-index: 0; /* Ensure it's above the SVG but behind content */
    pointer-events: none;
}

.navbar {
    position: fixed;
    right: 0;
    top: 0;
    height: 60px; /* Reduced from 100% to fixed height */
    width: auto; /* Changed from fixed width to auto */
    background-color: #00000000;
    display: flex;
    flex-direction: row; /* Changed from column to row */
    align-items: center;
    justify-content: flex-end;
    padding: 0;
    gap: 20px;
    z-index: 1000;
}

.nav-links a {
    padding: 10px 15px;
    text-decoration: none;
    color: white;
    font-family: 'Montserrat', sans-serif; 
    display: inline-block; /* Changed from block */
    text-align: center;
    width: auto; /* Changed from 100% */
    transition: background-color 0.3s ease;
}

.nav-links a:hover {
    color: rgb(6, 190, 190);
    text-shadow: rgba(6, 190, 190, 0.601) 0px 0px 10px;
}

.social-links {
    display: flex;
    gap: 20px;
    align-items: center;
    position: fixed; /* Add this */
    left: 20px; /* Add this */
    top: 4%; /* Add this */
    transform: translateY(-50%); /* Add this */
    margin-left: 0; /* Remove the auto margin */
    padding-left: 0; /* Remove the padding */
}


.social-links a {
    color: white;
    font-size: 22px;
    text-decoration: none;
    transition: transform 0.2s ease, color 0.2s ease;
}

.social-links a:hover {
    transform: translateY(-2px);
    color: #e97006;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
    padding-right: 20px; /* Add padding only to the right side */
}

.content-container {
    text-align: left;
    margin-bottom: 20px;
    width: 100%;
    height: 100vh;
    margin-top: 17%;
    position: relative;
    display: flex;           /* Added this */
    flex-direction: column;  /* Added this */
    gap: 20px;   
}

.pixel-text-1 {
    font-family: 'Press Start 2P', cursive;
    color: white;
    font-size: 22px;
    margin: 0;
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.677),    
        2px 2px 0px rgba(0,0,0,0.3);
    position: relative;
    z-index: 2;
}

.pixel-text-2 {
    font-family: 'Press Start 2P', cursive;
    color: white;
    font-size: 13px;
    margin: 0;
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.677),
        2px 2px 0px rgba(0,0,0,0.3);
    position: relative;
    z-index: 2;
}

.content-container pre {
    font-family: monospace;
    color: transparent;
    font-size: 16px;
    margin: 0;
    line-height: 1.2;
    position: relative;
    z-index: 2;
    background: linear-gradient(
        to right,
        rgb(0, 104, 104),
        #04b7b7,
        rgb(0, 104, 104)
    );
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: gradient-shift 8s linear infinite;
}

.connect-button {
    background-color: #e97006;
    font-family: 'Montserrat', sans-serif; 
    font-weight: 400;
    color: white;
    width: 200px;
    height: 30px;
    border: none;
    outline: 2px solid white;
    outline-offset: 3px;
    font-size: 20px;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}

.connect-button:hover {
    text-decoration: none; /* Ensure no underline on hover */
}

.connect-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background-color: white;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.connect-button:hover::before {
    transform: translateX(0);
}

.connect-button .left-text,
.connect-button .right-text {
    position: relative;
    width: 50%;
    text-align: center;
    transition: color 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    line-height: 1;
    display: inline-block;
    text-decoration: none !important;
}

.connect-button .left-text {
    transform: translateX(25%);
    color: white;
}

.connect-button .right-text {
    transform: translateX(-25%);
    color: white;
}

.connect-button:hover .left-text {
    color: #e97006;
}

.connect-button:visited {
    text-decoration: none; /* Ensure no underline after visiting */
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 300% 50%;
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

body::-webkit-scrollbar {
    width: 8px;
}

body::-webkit-scrollbar-track {
    background: transparent;
}

body::-webkit-scrollbar-thumb {
    background-color: rgba(0, 128, 128, 0.5);
    border-radius: 4px;
}

.bento-container, .bento-1, .bento-2, .bento-3, .bento-2-b, .bento-2-a, .bento-2-a-y, .bento-2-a-y-q{
    display: flex;
    gap: 1%;
}

.bento-1, .bento-2, .bento-3, .bento-2-a-y {
    flex-direction: column;
}

.bento-2-a, .bento-2-a-y-q, .bento-2-b {
    flex-direction: row;
} 

.bento-1-b, .bento-2-b-x, .bento-2-b-y, .bento-2-a-x, .bento-2-a-y-p, .bento-2-a-y-q-m, .bento-2-a-y-q-n, .bento-3-a, .bento-3-b {
    border: 1px solid rgba(255, 255, 255, 0.315);
    border-radius: 20px;
}

.bento-container {
    min-width: 80vw;
    min-height: 80vh;
    max-width: 80vw;
    max-height: 80vh;
    margin-left: 7%;
}

.bento-1 {
    width: 20%;
    height: 100%;
}
.bento-2 {
    width: 50%;
    height: 100%;
}
.bento-3 {
    width: 28%;
    height: 100%;
}

.bento-1-a {
    width: 100%;
    height: 49%;
}
.bento-1-b {
    width: 100%;
    height: 50%;
    background: 
        url('assets/bento/stars2.png') center / cover no-repeat,
        /* url('assets/bento/glitchlg.png') center / cover no-repeat */
        rgba(5, 204, 158, 0.29);
}
.bento-2-a {
    height: 80%;
    width: 100%;
}
.bento-2-b {
    height: 19%;
    width: 100%;
}
.bento-2-a-x {
    width: 50%;
    height: 100%;
    background: 
        url('assets/bento/bytopia22.png') center / cover no-repeat,
        /* url('assets/bento/glitchlg.png') center / cover no-repeat, */
        rgba(8, 203, 242, 0.29);
}
.bento-2-a-y {
    width: 49%;
    height: 100%;
}
.bento-2-a-y-p {
    width: 100%;
    height: 49%;
    background:
        url('assets/bento/rocket4.png') center no-repeat, 
        url('assets/bento/glitchlgwt.png') center / cover no-repeat, 
        rgba(147, 3, 224, 0.29);
}
.bento-2-a-y-q {
    width: 100%;
    height: 50%;
}
.bento-2-a-y-q-m {
    width: 49%;
    height: 100%;
    background: 
        url('assets/bento/bolt3.png') center / cover no-repeat,
        url('assets/bento/glitchlgwt.png') center / cover no-repeat,
        rgba(224, 132, 3, 0.29);
}
.bento-2-a-y-q-n {
    width: 50%;
    height: 100%;
    background: 
        url('assets/bento/ufo2.png') center / cover no-repeat,
        url('assets/bento/glitchlg.png') center / cover no-repeat
        rgba(3, 224, 191, 0.29);
}
.bento-2-b-x {
    width: 65%;
    height: 100%;
    background: 
        url('assets/bento/glitchlgwt.png') center / cover no-repeat
        rgba(63, 2, 185, 0.29);
}
.bento-2-b-y {
    width: 34%;
    height: 100%;
    background: 
        url('assets/bento/glitchlgwt.png') center / cover no-repeat
        rgba(188, 7, 128, 0.29);
}

.bento-3-a {
    width: 100%;
    height: 70%;
    background: 
        url('assets/bento/astro.png') center / cover no-repeat,
        /* url('assets/bento/glitchlg.png') center / cover no-repeat */
        rgba(224, 220, 3, 0.29);
}
.bento-3-b {
    width: 100%;
    height: 29%;
    background: 
        /* url('assets/bento/clouds.png') center no-repeat, */
        url('assets/bento/clouds4.png') center no-repeat,
        url('assets/bento/glitchlgwt.png') center / cover no-repeat
        rgba(3, 139, 224, 0.29);
}

.bento-2-a-x:hover {
    border: 1px solid rgba(231, 234, 235, 0.514);
    box-shadow: 0px 8px 20px 5px rgba(8, 203, 242, 0.501);
    cursor: pointer;
}

.bento-2-a-y-p:hover {
    border: 1px solid rgba(231, 234, 235, 0.514);
    box-shadow: 0px 8px 20px 5px rgba(147, 3, 224, 0.533);
    cursor: pointer;
}

.bento-2-a-y-q-n:hover {
    border: 1px solid rgba(231, 234, 235, 0.514);
    box-shadow: 0px 8px 20px 5px rgba(3, 224, 191, 0.496);
    cursor: pointer;
}

.bento-3-a:hover {
    border: 1px solid rgba(231, 234, 235, 0.514);
    box-shadow: 0px 8px 20px 5px rgba(224, 220, 3, 0.408);
    cursor: pointer;
}

.bento-3-b:hover {
    border: 1px solid rgba(231, 234, 235, 0.514);
    box-shadow: 0px 8px 20px 5px rgba(3, 142, 223, 0.464);
    cursor: pointer;
}




.bento-content {
    margin-top: 10%; 
    margin-left: 10%;
}
.bento-content-desc {
    margin-top: 10%; 
    margin-left: 10%;
    margin-right: 10%
}
.bento-content-posts {
    margin-top: 3%; 
    margin-left: 10%;
}

.bento-content-skills {
    margin-top: 5%; 
    margin-left: 10%;
}

.bento-content-vibe {
    margin-top: 4%; 
    margin-left: 5%;
}

.bento-content-contact {
    margin-top: 25%; 
    margin-left: 1%;
    gap: 30%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bento-title-proj {
    font-family: 'Press Start 2P', cursive;
    color: white;
    font-size: 30px;
    text-decoration: none;
    text-shadow: 4px 4px 8px rgba(245, 161, 6, 0.721);
}

.bento-title-posts {
    font-family: 'Press Start 2P', cursive;
    color: white;
    font-size: 20px;
    text-decoration: none;
    text-shadow: 4px 4px 8px rgb(0, 255, 115);
}

.bento-title-blogs {
    font-family: 'Press Start 2P', cursive;
    color: white;
    font-size: 20px;
    text-decoration: none;
    text-shadow: 4px 4px 8px rgb(0, 195, 255);
}

.bento-title-about {
    font-family: 'Press Start 2P', cursive;
    color: white;
    font-size: 30px;
    text-decoration: none;
    text-shadow: 4px 4px 8px rgba(6, 213, 245, 0.721);
}

.bento-title-contact {
    font-family: 'Press Start 2P', cursive;
    color: white;
    font-size: 27px;
    text-decoration: none;
    text-shadow: 4px 4px 8px rgba(6, 213, 245, 0.721);
}

.resume-button {
    width: 50%; 
    height: 5vh; 
    border: 1px solid rgba(255, 255, 255, 0.700); 
    border-radius: 10px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    background-color: rgba(255, 255, 255, 0.700);
    font-family: 'Montserrat', sans-serif; 
    font-size: 17px; 
    font-weight: 500; 
    color: rgba(19, 19, 19, 0.977); 
    text-align: center;
    text-decoration: none;
}

.resume-button:hover {
    width: 50%; 
    height: 5vh; 
    border: 1px solid white; 
    border-radius: 10px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    background-color: rgba(247, 161, 3, 0.742);
    color: white;
}

.fab-grid div a:hover {
    transform: translateY(-2px);
    color: #e97006;
}

/* Ensuring icons change color on hover */
.fab-grid div a:hover i {
    color: #e99d06d1 !important;
}

/* contact Background */
.contact {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0); /* Translucent effect */
    
    display: none;  /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Ensure it's above everything */
}

/* Make contact appear when targeted */
#contact:target {
    display: flex;

}

/* contact Content */
.contact-content {
    background: rgba(21, 21, 21, 0.667);
    border: 2px solid rgba(240, 241, 241, 0.379);
    box-shadow: 0px 8px 20px 5px rgba(8, 203, 242, 0.192);
    color: rgba(255, 255, 255, 0.721);
    transform: translate(95%, 60%);
    backdrop-filter: blur(5px);
    font-family: 'Montserrat', sans-serif;
    width: 80vw;
    height: 80vh;
    padding: 20px;
    border-radius: 10px;
    width: 50%;
    text-align: center;
}

/* Close Button */
.close {
    display: block;
    margin-top: 20px;
    text-decoration: none;
    color: red;
    font-weight: bold;
}

.contact-det{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 90%;
    height: 90%;
    gap: 20px;
}

.creds{
    display: flex;
    gap: 20px;
    align-items: center;
    height: 8%;
    width: 100%;
}

.extras{
    display: flex;
    gap: 20px;
    align-items: center;
    height: 8%;
    width: 100%;
}

.submit{
    width: 20%; 
    height: 100%; 
    border: 1px solid rgba(255, 255, 255, 0.596); 
    display: flex; 
    align-items: center; 
    font-family: 'Montserrat', sans-serif; 
    justify-content: center; 
    font-size: 1.7rem; 
    cursor: pointer;
}

.submit :hover{
    background-color: teal;
    color: black;
}

.contact_title {
    font-family: 'Press Start 2P', cursive;
    color: white;
    font-size: 40px;
    text-decoration: none;
    text-shadow: 4px 4px 8px rgba(6, 213, 245, 0.721);
}

.bac:hover {
    background-color: rgba(255, 255, 255, 0.534) !important;
    color: black !important;
    font-size: 1.2rem !important;
}

.submit:hover {
    background-color: rgba(255, 255, 255, 0.534) !important;
    color: black !important;
}

.fab_c i:hover{
    color:#e99a06ce !important;
    transform: translate(0, -2px) !important;
}

.close_c i:hover {
    transform: translate(0, -2px) !important;
    color: rgba(8, 194, 194, 0.807) !important;
}






