* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    border: none;
    color: #fff;
}

html {
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
}

body{
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #18181b;
}

nav{
    max-width: 1200px;
    padding: 2rem 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 30px;
}

p {
    line-height: 1.5;
}

hr {
    background-color: #3a3a42;
    margin: 20px 4px 20px 4px;
    height: 1px;
}

footer{
    height: 300px;
    width: auto;
}

.nav-bar{
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-links{
    list-style: none;
    display: flex;
    align-items: center;
    gap:3rem;

}

.link a{
    position: relative;
    padding-bottom: 0.75rem;
    color: #fff;
}

.link a::after{
    content: "";
    position: absolute;
    height: 2px;
    width: 0;
    bottom: 0;
    left: 0;
    background-color: #1d4ed8;
    transition: all 0.3s ease;
}

.link a:hover::after{
    width: 70%;
}

.parent{
    display: grid;
    grid-template-columns: 1fr 2fr; /* 1/3 for title-card, 2/3 for main */
    max-width: 1200px;
    margin: 0 auto;
}

/* ----------------------------- TITLE CARD STYLING ---------------------------*/
.title-card{
    display:flex;
    flex-direction: column;
    align-items: flex-end;
    position: fixed;
    min-width: 40%;
}

.profile-pic{
    max-width: 175px;
    border-radius: 50%;
}

.personal-links-imgs{
    display: flex;
    gap: 1rem;
    list-style: none;
}

.personal-links{
    margin-top: 8px;
}

.personal-links-imgs img{
    min-width: 35px;
    max-height: 35px;
    background: rgb(68, 62, 62);
    border-radius: 20%;
}

#download{
    background:none;
}

.resume-download{
    display: flex;
    background: rgb(68, 62, 62);
    border-radius: 1cm;
    padding: 8px;
    padding-right: 15px;
    justify-content: center;
    align-items: center;
    max-height: 35px;
    transition: background-color 0.3s ease;
}

.resume-download:hover{
    background-color: #0056b3;
}

.main{
    padding: 50px;
    margin-left: 45%;
}

.main h1{
    padding-bottom: 25px;
}

/* ------------------------------------ PROJECT CARD STYLING ------------------------------------- */
.project-card{
    border: 1px solid #65656d;
    background-color: rgb(40 36 36);
    padding: 12px;
    border-radius: 8px;
    margin: 8px;
}

.list-wrapper{
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.project-card ul{
    padding:12px;
    line-height: 1.5;
    list-style-type: square;
}

.project-image{
    max-width: 250px;
    min-height: 175px;
    margin-right: 20px;
    border-radius: 5px;
    cursor: pointer;
}

.project-card a{
    font-size: 30px;
}

.project-line{
    background-color: #55555b;
}

.project-title {
    font-size: 20px;
    text-decoration:underline;
    display: inline-block;
    transition: color 0.3s ease;
}

.project-title:hover{
    color:#0056b3
}

/* ----------------------------------------- LANGUAGE CARD ----------------------------------------- */
.language-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 8px;
    min-width: 32px;
    background-color: rgb(40 36 36);
    box-shadow: ();
    transition: scale 0.5s ease;
}

.language-card:hover{
    scale: 1.2;
}

.language-logo {
    width: 32px;
    height: 32px;
}

.language-name {
    font-size: 16px;
    font-weight: bold;
    color: white;
}

.card-wrapper{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px,1fr));
    gap: 10px;
}

/* ----------------------------- CONTACT FORM STYLING ------------------------------ */
.form {
    width: 100%;
    margin: 0 auto; /* Centers the form */
    border-radius: 10px; /* Smooth corners */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  
  /* Input and textarea boxes */
  .input-box {
    background-color: #343437;
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px; /* Smooth corners for inputs */
    font-size: 16px; /* Readable font size */
  }
  
  .textarea-box {
    min-height: 150px; /* Makes the textarea larger */
    resize: none;
  }
  
  /* Placeholder text styling */
  .input-box::placeholder {
    color: #aaa;
    font-style: italic;
  }
  
  /* Submit button styling */
  .submit-btn {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 5px; /* Smooth corners */
    color: white; /* Text color */
    font-size: 16px;
    cursor: pointer;
    background-color: #343437;
    transition: background-color 0.3s ease; /* Smooth hover effect */
    max-width: 400px;
  }
  
  .submit-btn:hover {
    background-color: #0056b3; /* Darker blue on hover */
  }

  /* --------------------------------- FULL SCREEN IMAGES STYLING -------------------------- */
.overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Dark background with transparency */
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Ensures it appears above other elements */
  }
  
  /* Full-Screen Image */
  .full-screen-image {
    max-width: 90%; /* Adjust to fit the screen nicely */
    max-height: 90%; /* Adjust to fit the screen nicely */
  }
  
  /* Close Button */
  .close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: #000000;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 5px;
    z-index: 1001; /* Ensures it is above the overlay */
  }

/* -------------------------------- POP UP CONTAINER STYLING -------------------------------- */

  /* Popup container (background overlay) */
.popup {
    position: fixed;
    border-radius: 5%;
    display: flex;
    opacity: 0;
    visibility: hidden;
    bottom: 0;
    left:50%;
    margin: 20px;
    transform: translateX(-50%);
    max-width: 300px;
    min-height:100px;
    background-color: rgb(40 36 36); /* semi-transparent background */
    justify-content: center;
    align-items: center;
    z-index: 999;
    box-shadow: 0 5px 15px rgb(66, 64, 64);
    text-align: center;
    transition: opacity 0.5s ease-in-out, visibility 0.5s;
}

.popup.show {
    opacity: 1;
    visibility: visible;
}

/* ------------------------------------------- MEDIA QUERIES ------------------------------------- */

@media (max-width: 768px){

    nav{
        display: none;
    }

    h1 {
        text-align: center;
    }

    .title-card{
        position: relative;
        align-items: center;
        justify-content: center;
        margin: 120px 0 80px 0;
    }

    .main{
        margin: 0;
        padding:24px;
    }

    .card-wrapper{
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .text-wrapper{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .title-card img{
        width: 50%;
    }
}
@media(max-width: 1175px){

    .list-wrapper{
        flex-direction: column;
    }

}