/* fa3 task for any input*/
#welcome-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(4, 29, 52, 0.95); /* dark transparent background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    color: #fff;
}

#welcome-box {
    text-align: center;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 40px;
    border-radius: 15px;
}

#welcome-box input {
    padding: 10px;
    border-radius: 5px;
    border: none;
    margin-top: 10px;
}

#welcome-box button {
    margin-top: 15px;
    padding: 10px 20px;
    border-radius: 5px;
    border: none;
    background-color: #0066cc;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
}

#welcome-box button:hover {
    background-color: #0052a3;
}

/* ============================================================================ */

/* the transparent thing in the middle so it doesnt look plain (AI assisted) */
.middle-strip {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 45%;
    height: 100%;
    background-color: rgba(16, 13, 27, 0.3);
    pointer-events: none; /* Allows clicks to pass through to content below */
    z-index: -1; /* Moved to -1 so it stays behind content but stays visible */
}

/* ==========================================body and general themes========================================================*/
body {
    font-family: 'Trebuchet MS', sans-serif;
    background-color: #041d34;
    color: #ffffff;
    margin: 0;
    padding: 5px;
    /* Removed z-index: 999; - this was blocking your project links */
    transition: background-color 0.3s, color 0.3s;
}

body.dark {
    background-color: #f5f5f5;
    color: #000000;
}

h2 {
    font-size: 26px;
}

#subtxt {
    margin-top: -15px;
    font-weight: 100;    
    font-size: 13px;
    transition: color 0.3s;
}

/* header stuff */
header {
    text-align: center;
    margin-bottom: 30px;
}

/* main profile image */
#profile-img {
    width: 150px;
    border-radius: 50%;
}

/* the side image (AI assisted)*/
#side-img {
    position: fixed;
    top: 80%;
    left: 50%;
    width: 950px;
    transform: translateY(-50%);
    opacity: 1;
    pointer-events: none;
    z-index: -2; /* Ensure it stays behind everything */
}

/* just other images to fill the website*/
#break-img {
    width: 44.7%;
    margin: 0 auto;
    display: block;
    padding-top: 50px;
}

#end-gif {
    width: 10%;
    border-radius: 10px;
    margin: 0 auto;
    display: block;
}

body.dark button {
    background-color: #0066cc;
    color: #fff;
}

/* ==========================================navigation left side shortcuts ====================================================================================*/
.side-bar {
    position: fixed;       
    top: 5%;             
    left: 13%;            
    display: flex;
    flex-direction: column;
    gap: 18px;             
    z-index: 998;
    width: 20%;     
    padding-right: 20px; 
    box-sizing: border-box;
}

.side-bar a img {
    width: 20%;
    height: auto;
    cursor: pointer;
    margin-right: 5px;
    border-radius: 5px;
}

.side-bar a {
    display: flex;
    align-items: center;   
    gap: 1.5%;             
    text-decoration: none; 
    color: inherit;
    padding-right: 10%; 
    max-width: 70%;  
    padding-left: 5%;
}

.side-bar img[src$="fake-ad1.gif"] {
    width: 100%;       
    max-width: 70%;  
    height: auto;      
    border-radius: 5px;
    margin-top: 25%;
}

button#theme-toggle {
    margin-top: 0;
    width: 100%;          
    max-width: 70%;     
    height: 35px;
    cursor: pointer;
    background-color: #0066cc;
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s, transform 0.3s;
    padding-right: 10px; 
    margin-bottom: 10%;
}

body.dark .side-bar a,
body.dark .soc-box {
    color: #000000;        
    border-color: #000000; 
}

/* ==========================================socials now ======================================================================================================*/
.soc-box {
    text-align: center;
    width: 30%;
    max-width: 40%; 
    min-width: 30%; 
    border: 1.5px solid rgb(255, 255, 255);
    border-radius: 5px;
    margin: 0 auto;
}

#socials,
#back {
    text-align: center;
}

#socials ul,
#back ul { 
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center; 
    gap: 1rem; 
    flex-wrap: wrap; 
}

#socials li {
    display: inline;         
    position: relative;
}

#socials li:not(:last-child)::after {
    content: "|";            
    margin-left: 0.5rem;       
    color: #0066cc;          
}

#socials a,
#back a,
#achievements a,
#projects a {
    text-decoration: none;
    color: #0066cc;
    transition: color 0.3s;
    font-size: clamp(0.8rem, 1.5vw, 1rem); 
}

body.dark #socials a,
body.dark #back a,
body.dark #achievements a,
body.dark #projects a {
    color: #0066cc;
}

#socials a:hover,
#back a:hover,
#achievements a:hover,
#projects a:hover {
    color: #0066cc;
}

/* ==========================================achievement========================================================================*/
.achieve-box,
#achievements {
    text-align: center;
}

.achieve-box ul,
#achievements ul {
    display: grid;
    grid-template-columns: 1fr; 
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 42%; 
}

.achieve-box li,
#achievements li {
    text-align: center;
}

.achieve-box li img,
#achievements li img {
    width: 100%;
    max-width: 100%; 
    height: auto;
    border-radius: 10px;
}

/* ==========================================certification ===============================================================================================*/
.cert-box {
    text-align: center;       
}

.cert-box h2 {
    margin-bottom: 20px;
    transition: color 0.3s;
}

body.dark .cert-box h2 {
    color: #000000;
}

.cert-box ul { 
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    gap: 0px;
    justify-content: center;                  
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 43%;                   
    width: 90%;                               
}

.cert-box li {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;          
}

.cert-box li img {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 10px;
}

.cert-box li a {
    display: block;
    width: 100%;
    max-width: 200px;
    text-align: center;
    text-decoration: none;
    color: #0066cc;
    margin-top: 5px;
    transition: color 0.3s;
}

/* ==========================================projects ======================================================================================================*/
.gh-proj,
.othergh-proj,
.foley-proj,
.anim-proj {
    background-color: transparent; /* Removed low opacity box */
    padding: 1%;
    border-radius: 10px;
    position: relative; /* Essential for z-index */
    z-index: 10;        /* Moved from -997 to 10 to ensure clickability */
}

.proj-box,
#projects {
    text-align: center;
    position: relative;
    z-index: 10;
}

.proj-box ul,
#projects ul {
    display: grid;
    grid-template-columns: 1fr; 
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 42%; 
}

.proj-box li,
#projects li {
    text-align: center;
    font-size: 17px;
}

.proj-box li img,
#projects li img {
    width: 100%;
    max-width: 100%; 
    height: auto;
    border-radius: 10px;
}

/* ===============================footer typ shi ============================================*/
footer {
    text-align: center;
    padding: 20px;
    background: #333;
    color: #fff;
    width: 100%;
    position: relative;
    z-index: 10;
}

/* ==========================================mobile shi ========================================================================= */
@media screen and (max-width: 768px) {
    .side-bar {
        left: 2%;
        width: 30%;
        gap: 12px;
    }

    .middle-strip {
        width: 70%;
    }

    .soc-box {
        width: 80%;
    }

    .achieve-box ul,
    #achievements ul,
    .proj-box ul,
    #projects ul,
    .cert-box ul {
        max-width: 95%;
        grid-template-columns: 1fr; 
    }
}
/* ================= PROJECT CARDS ================= */

.proj-box ul{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
gap:25px;
max-width:900px;
margin:auto;
padding:0;
list-style:none;
}

.project-card{
background:rgba(255,255,255,0.05);
padding:15px;
border-radius:12px;
transition:transform 0.2s, box-shadow 0.2s;
}

.project-card:hover{
transform:translateY(-5px);
box-shadow:0 10px 25px rgba(0,0,0,0.3);
}

.project-card h3{
font-size:16px;
margin-bottom:10px;
}

.project-card img{
width:100%;
border-radius:8px;
cursor:pointer;
transition:transform 0.2s;
}

.project-card img:hover{
transform:scale(1.05);
}