html, body {
    margin: 0;
    font-family: Arial, sans-serif;
    height: 100%;
    overflow-y: auto; /* Enable vertical scrolling */
}

body {
    background-image: url(General/background.png);
    background-size: cover;
    background-attachment: fixed; /* Fix the background image */
    background-color: black;
    /* position: relative; */
}

/* Scrollbar background */
::-webkit-scrollbar {
    background-color: #00000000; /* Background color of the scrollbar */
}

.container {
    margin-left: 335px; /* Adjusted to accommodate sidebar width */
    padding-top: 20px; /* Added padding to prevent content overlap */
}

.sidebar {
    height: 100%; /* Ensure sidebar takes full height of viewport */
    width: 335px;
    position: fixed;
    top: 0; /* Stick sidebar to the top */
    left: 0; /* Stick sidebar to the left */
    background-color: rgba(0, 0, 0, 0.8); /* Black background with 80% opacity */
    box-sizing: border-box;
    overflow-y: auto; /* Add vertical scroll if content exceeds sidebar height */
}

.sidebar img#FaceID {
    width: 250px;
    height: auto;
    display: block;
    margin: 40px auto 20px auto; /* Adjusted margin for spacing */
}

@font-face {
    font-family: lemon;
    src: url(../General/LEMONMILK-Regular.otf);
}

.sidebar h1 {
    font-family: lemon;
    color: white;
    text-align: center;
    margin-top: 10px;
}

.sidebar ul {
    list-style-type: none;
    padding: 0;
    margin-top: 40px;
    font-family: system-ui;
}

.sidebar ul li {
    padding-left: 60px;
    padding-bottom: 20px;
    text-align: left;
}

.sidebar ul li a {
    color: white;
    text-decoration: none;
    display: inline-block;
    position: relative;
}

.sidebar ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: white;
    transition: width 0.3s ease;
}

.sidebar ul li a:hover::after {
    width: 100%;
}

.sidebar ul li.last-item {
    padding-left: 35px;
    padding-bottom: 20px;
    border-bottom: 0.5px solid white;
    margin-left: 25px;
    margin-right: 25px;
    padding-bottom: 40px;
}

.sidebar p {
    color: white;
    padding-bottom: 5px;
    padding-left: 60px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.phone {
    margin-top: 40px;
    color: inherit; /* Or specify the color you want */
    text-decoration: none;
}

.phone a {
    color: inherit; /* Ensures any automatic link styling doesn't change the color */
    text-decoration: none; /* Removes any underline */
}

.phone a:visited {
    color: inherit; /* Ensures visited links don’t change color */
    text-decoration: none; /* Optional: Removes the underline */
}

.social-container {
    display: flex;
    margin-top: -15px;
}

.instagram {
    margin: 12.5px 10px 0 15px;
}

.instagram img {
    height: 25px;
    width: auto;
    transition: 0.3s ease;
    cursor: pointer;
}

.instagram img:hover {
    transform: scale(1.2);

}

.linkedin {
    margin: 12.5px 10px 0 5px;
}

.linkedin img {
    height: 25px;
    width: auto;
    transition: 0.3s ease;
    cursor: pointer;
}

.linkedin img:hover {
    transform: scale(1.2);

}

.resume-container {
    display: flex;
    margin-top: -15px;
}

.resume {
    margin: 12.5px 10px 0 18px;
}

.resume img {
    height: 25px;
    width: auto;
    transition: 0.3s ease;
    cursor: pointer;
}

.resume img:hover {
    transform: scale(1.2);

}

.contact-portrait {
    color: white;
    display: none;
    padding-left: 15px;
    margin-bottom: 40px;
}

/* Default styles for the hamburger menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    position: fixed;
    top: 25px;
    right: 25px;
    z-index: 1001;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    background-color: rgb(255, 255, 255);
    height: 3px;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px black;
}

.nav-links {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    padding: 0;
    margin: 0;
}

.nav-links ul {
    list-style: none; /* Remove default list styling */
    padding: 0;
    margin: 0;
    font-family: system-ui;
    text-align: center; /* Ensure the text is centered */
    font-size: 20px;
}

.nav-links ul li {
    padding-bottom: 50px;
    text-align: center;
    margin: 0; /* Reset default margin */
}

.nav-links ul li a {
    color: white;
    text-decoration: none;
    display: inline-block;
    position: relative;
}

.nav-links ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: white;
    transition: width 0.3s ease;
}

.nav-links ul li a:hover::after {
    width: 100%;
}

.face-portrait {
    display: none;
    margin: 0 auto;
}

.face-portrait img#portraitFaceID {
    margin: 20px auto 0 auto;
    display: block;
    width: auto;
    height: 250px;
}

.face-portrait h1 {
    font-family: lemon;
    font-size: 30px;
    color: white;
    text-align: center;
    margin-top: 10px;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.348);
    border-bottom: 1px solid white;
    margin-left: 30px;
    margin-right: 30px;
    padding-bottom: 10px;
}

.group-container {
    display: block;
    width: fit-content;
    margin: 0 auto;
}

.about-container {
    display: block;
    width: fit-content;
    margin: 0 auto;
}

.about h2 {
    font-family: lemon;
    font-size: 30px;
    color: white;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.348);
    padding-left: 15px;
}

.about-cards-container {
    margin-top: -20px;
    display: flex;
    justify-content: center;
}

.jobs-cards-container {
    display: none;
    width: fit-content;
    margin: 0 auto;
}

.clubs-cards-container {
    display: none;
    width: fit-content;
    margin: 0 auto;
}

.about-hidden-cards-container {
    display: none;
}

.about-hidden-cards-container.visible {
    display: flex;
}

.about-card {
    background-color: rgba(255, 255, 255, 0.717);
    border-radius: 8px;
    padding: 20px;
    margin: 15px;
    height: 300px;
    width: 300px;
    box-shadow: 0 0 10px black;
    transition: 0.3s ease;
    display: flex;
    flex-direction: column;
}

.about-card:hover {
    transform: scale(1.05);
}

.about-card img {
    padding-top: 15px;
    transform: scale(1.2);
}

.about-card h2 {
    padding-top: 10px;
    font-size: 18px;
}

.about-card p {
    margin-top: -10px;
    font-size: 14px;
    line-height: 1.5;
}

.about-card-button {
    align-self: center; /* Center the button horizontally */
    padding: 10px 20px;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.8);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s ease;
}

.about-card-button:hover {
    background-color: rgba(0, 0, 0, 1); /* Darker color on hover */
}

.about-button-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.about-custom-button {
    padding: 10px 20px;
    font-size: 16px;
    color: #fff;
    background-color: rgba(255, 255, 255, 0);
    border: 2px solid white;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s ease;
    font-weight: bold;
}

.about-custom-button:hover {
    background-color: #ffffff;
    color: black;
}

/* Projects section begins here below */

.projects-container {
    display: block;
    width: fit-content;
    margin: 0 auto;
}

.projects h2 {
    font-family: lemon;
    font-size: 30px;
    color: white;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.348);
    padding-left: 15px;
}

.projects-cards-container {
    margin-top: -20px;
    display: flex;
    justify-content: center;
}

.pathcar-cards-container {
    display: none;
    width: fit-content;
    margin: 0 auto;
}

.defect-cards-container {
    display: none;
    width: fit-content;
    margin: 0 auto;
}

.projects-hidden-cards-container {
    display: none;
}

.projects-hidden-cards-container.visible {
    display: flex;
}

.projects-card {
    background-color: rgba(255, 255, 255, 0.717);
    border-radius: 8px;
    padding: 20px;
    margin: 15px;
    height: 300px;
    width: 300px;
    box-shadow: 0 0 10px black;
    transition: 0.3s ease;
    display: flex;
    flex-direction: column;
}

.projects-card:hover {
    transform: scale(1.05);
}

.projects-card img {
    padding-top: 15px;
    transform: scale(1.2);
}

.projects-card h2 {
    padding-top: 10px;
    font-size: 18px;
}

.projects-card p {
    margin-top: -10px;
    font-size: 14px;
    line-height: 1.5;
}

.projects-card-button {
    align-self: center; /* Center the button horizontally */
    padding: 10px 20px;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.8);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s ease;
}

.projects-card-button:hover {
    background-color: rgba(0, 0, 0, 1); /* Darker color on hover */
}

.projects-button-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.projects-custom-button {
    padding: 10px 20px;
    font-size: 16px;
    color: #fff;
    background-color: rgba(255, 255, 255, 0);
    border: 2px solid white;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s ease;
    font-weight: bold;
}

.projects-custom-button:hover {
    background-color: #ffffff;
    color: black;
}

/* Photos section begins here below */

.photos-container {
    display: block;
    width: fit-content;
}

.photos h2 {
    font-family: lemon;
    font-size: 30px;
    color: white;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.348);
    padding-left: 15px;
}

.photos-cards-container {
    margin-top: -20px;
    margin-bottom: 40px;
    display: flex;
}

.soles-cards-container {
    display: none;
    width: fit-content;
    margin: 0 auto;
}

.photos-card {
    background-color: rgba(255, 255, 255, 0.717);
    border-radius: 8px;
    padding: 20px;
    margin: 15px;
    height: 300px;
    width: 300px;
    box-shadow: 0 0 10px black;
    transition: 0.3s ease;
    display: flex;
    flex-direction: column;
}

.photos-card:hover {
    transform: scale(1.05);
}

.photos-card img {
    padding-top: 15px;
    transform: scale(1.2);
}

.photos-card h2 {
    padding-top: 10px;
    font-size: 18px;
}

.photos-card p {
    margin-top: -10px;
    font-size: 14px;
    line-height: 1.5;
}

.photos-card-button {
    align-self: center; /* Center the button horizontally */
    padding: 10px 20px;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.8);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s ease;
}

.photos-card-button:hover {
    background-color: rgba(0, 0, 0, 1); /* Darker color on hover */
}

@media (max-width: 1560px) {

    .about-cards-container .clubs-card, .about-hidden-cards-container .interests-card,
     .projects-cards-container .defect, .projects-hidden-cards-container .bomb {
        display: none;
    }

    .clubs-cards-container, 
     .defect-cards-container {
        display: flex;
    }
}

/* Add this inside your media query for screens smaller than 1280px */
@media (max-width: 1280px) {
    body {
        background-position: center; /* Center the background image */
    }

    .about h2, .projects h2, .photos h2 {
        padding-left: 0;
        text-align: center;
    }

    .container {
        margin-left: 0; /* Adjusted to accommodate sidebar width */
    }

    .photos-cards-container {
        margin-bottom: 0;
    }

    .soles-cards-container {
        margin-bottom: 40px;
    }

    .about-cards-container .jobs, .clubs-cards-container .interests-card,
     .projects-cards-container .pathcar, .defect-cards-container .bomb, 
      .photos-cards-container .soles, .sidebar {
        display: none;
    }

    .jobs-cards-container, .clubs-cards-container .clubs-card, .about-hidden-cards-container .interests-card,
     .pathcar-cards-container, .defect-cards-container .defect, .projects-hidden-cards-container .bomb,
      .soles-cards-container, .hamburger {
        display: flex;
    }

    /* Ensures that the fourth container stacks on top of the goals card */
    .about-hidden-cards-container,
     .projects-hidden-cards-container {
        flex-direction: column; /* Stack items vertically */
    }

    /* Styles inside media query when menu is active */
    .nav-links.active {
        transform: translateY(0); /* Show menu */
    }

    .face-portrait, .contact-portrait {
        display: block;
    }
}
