@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;
    min-height: 100vh;
    background-color: black;
    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);
    overflow-y: auto;
}

.title-container-projects {
    width: 100%;
    padding: 20px 0;
    background: rgba(0, 0, 0, 0);
}

.title-container-projects pre {
    font-family: monospace;
    font-size: 12px;
    margin: 0;
    line-height: 1.2;
    padding-top: 4%;
    color: transparent;
    background: linear-gradient(to top, rgba(213, 81, 4, 0.901), rgba(227, 227, 5, 0.901));
    -webkit-background-clip: text;
    background-clip: text;
    text-align: center;
}

.card-container {
    display: flex;
    gap: 40px;
    padding: 40px 60px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background-color: rgba(128, 128, 128, 0.3);
    border-radius: 8px;
    overflow: hidden;
    width: 300px;
    flex: 0 0 300px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1),
                0 0 10px 2px rgba(0, 128, 128, 0.3);
    transition: all 0.2s ease;
    border: 2px solid rgba(245, 247, 247, 0.316);
    gap: 60px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2),
                0 0 20px 5px rgba(0, 128, 128, 0.5);
    border-color: #09e7b7;
}

.card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    filter: grayscale(60%);
}

.card:hover img {
    filter: grayscale(0%);
}

.card-content {
    padding: 16px;
    font-family: 'Montserrat', sans-serif;
    background: rgba(128, 128, 128, 0.3);
}

.card-title {
    margin: 0 0 8px 0;
    color: rgb(5, 192, 192);
    font-size: 18px;
    font-weight: 500;
}

.card-description {
    margin: 0;
    color: #f9f7f7;
    font-size: 15px;
    line-height: 1.5;
}

.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 */
}

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;
}

.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;
}