@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-left: 5%;
    margin-right: 5%;
    padding: 0;
    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);
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    box-sizing: border-box;
    background-color: black;
    overflow-y: auto;
}

.title-container-about {
    position: relative; /* Change to fixed */
    width: 100%;
    height: auto; /* Change to auto */
    align-items: flex-start;
    padding-top: 4%;
    justify-content: flex-start;
    left: 0;
    background-color: rgba(0, 0, 0, 0);
    display: flex;
    justify-content: center;
    overflow: hidden;
}
.title-container-about pre {
    font-family: monospace;
    /* color: rgba(41, 167, 240, 0.901); */
    font-size: 12px;
    margin: 0;
    line-height: 1.2;
    position: relative;
    z-index: 1;
    color: transparent; /* Make the text color transparent */
    background: linear-gradient(to top, rgba(2, 74, 61, 0.901), rgba(2, 186, 146, 0.901)); /* Gradient from black to white */
    -webkit-background-clip: text; /* Clip the background to the text */
    background-clip: text; /* Required for Firefox */
}

.main-text {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-weight: 200;
    position: relative;
    font-size: 18px;
    margin-top: 50px;
    z-index: 2;
    width: 100%;
    margin-bottom: 50px;  /* Add space between this and experience section */
}

.main-text .intro {
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-weight: 200;
    position: relative;
    font-size: 18px;
    z-index: 2;
    text-align: left;
    width: 60%;  /* Change from max-width to width */
    flex-shrink: 0;  /* Prevent shrinking */
}

.main-text .intro .location {
    color: rgb(3, 200, 200);
}

.main-text .profile-img {
    width: 35%;
    display: flex;
    justify-content: center;  /* Center the image horizontally */
    align-items: center;  /* Center the image vertically */
    margin-top: 50px;  /* Match the intro's margin-top */
}

.main-text .profile-img img {
    max-width: 100%;  /* Makes sure the image doesn't overflow */
    height: auto;  /* Maintains aspect ratio */
}

.domain {
    width: 100%;
    margin-top: 10px;  /* Space from main-text section */
    color: white;
    font-family: 'Montserrat', sans-serif;
    text-align: left;
    padding-bottom: 50px;  /* Space between this and the next section */
}

.domain .dm-title {
    font-weight: 800;
    font-size: 45px;
    margin-bottom: 30px;  /* Space between title and job */
    color: rgb(198, 193, 193);
}

.domain .dm-title p {
    margin: 0;
}

.container {
    width: 100%;
    height: 100vh;
    padding: 40px;
    box-sizing: border-box;
    position: relative;
}

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

.tech-stack-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.tech-card {
    width: 250px;
    height: 80px;
    display: flex;
    align-items: center;
    background: transparent;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--fade-color, rgba(255,255,255,0.1));
    transition: border-color 0.3s ease;
}

.tech-card:hover {
    border-color: color-mix(in srgb, var(--fade-color, rgba(255,255,255,0.1)) 70%, white);
}

.tech-logo {
    width: 80px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.tech-logo img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.tech-name {
    flex-grow: 1;
    text-align: right;
    font-family: 'Montserrat', sans-serif;
    font-size: 23px;
    color: white;
    padding-right: 20px;
    position: relative;
    z-index: 2;
}

.tech-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to left, 
        var(--fade-color, rgba(255,255,255,0.1)), 
        transparent 70%
    );
    opacity: 0.5;
    z-index: 1;
}

/* Shine Effect */
.shine {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(
        120deg, 
        transparent,
        rgba(255,255,255,0.1),
        transparent
    );
    transform: skewX(-45deg) translateX(-100%);
    transition: transform 0.6s ease;
}

.tech-card:hover .shine {
    transform: skewX(-45deg) translateX(250%);
}

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