body.portfolio-page  {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    height: auto;
    min-height: 100vh;
    background-color: #ffffff;
    font-family: Arial, sans-serif;
    color: #4d4d4d;
}

#project-image {
    width: 80%;
    max-width: 600px;
    height: auto;
    margin: 20px 0;
}

.project-images {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
    justify-content: center;
}

.project-images img {
    max-width: 100%;
    width: 200px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.project-images img:hover {
    transform: translateY(-5px);
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.2);
}


#project-link, #project-github, #project-website {
    display: inline-block;
    width: 90px;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #4285f4;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

#project-link:hover, #project-github:hover, #project-website:hover {
    background-color: #3367d6;
}

/* Lightbox overlay */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.5);
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    color: white;
    font-size: 50px;
    cursor: pointer;
    border: none;
    font-weight: bold;
    transition: transform 0.7s ease;
}

.close-lightbox:hover {
    color: #4285f4;
    transform: rotate(-180deg);
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 30px;
    color: white;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
}

.lightbox-arrow-left {
    left: 20px;
}

.lightbox-arrow-right {
    right: 20px;
}

.lightbox-arrow:hover {
    background-color: rgba(255, 255, 255, 0.7);
    color: black;
}

.portfolio-detail {
    text-align: center;
    margin: 20px;
    max-width: 800px;
    align-self: center;
}

.portfolio-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    justify-content: center;
}

.portfolio-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    width: 300px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-decoration: none;
    color: #333;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 3px solid #4285f4;
    padding: 15px;
}

.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.2);
}

.portfolio-card img {
    max-width: 90%;
    height: auto;
    padding: 10px;
}

.portfolio-card .card-content {
    flex-grow: 1;
}

.portfolio-card .card-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.portfolio-card .card-description {
    font-size: 14px;
    margin-bottom: 15px;
    color: #555;
}

.portfolio-card .card-links {
    display: flex;
    justify-content: space-between;
}

.card-links {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.card-links .button {
    display: inline-block;
    width: 90px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    background-color: #4285f4;
    border: none;
    border-radius: 4px;
    transition: background-color 0.3s, transform 0.2s;
    text-align: center;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

.card-links .button:hover {
    background-color: #3367d6;
    transform: translateY(-2px);
}

.card-links .button:active {
    transform: translateY(0);
}

/* Portfolio Header */
.portfolio-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background-color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-logo img {
    height: 40px;
    object-fit: contain;
}

.header-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

.header-nav ul li {
    display: inline-block;
}

.header-nav ul li a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    font-weight: bold;
    transition: color 0.3s;
}

.header-nav ul li a:hover {
    color: #4285f4;
}

.image-wrapper {
    text-align: center;
    margin-bottom: 15px;
}

.project-thumbnail {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.image-caption {
    margin-top: 8px;
    font-size: 14px;
    color: #555;
}

#lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox-content {
    text-align: center;
}

#lightbox-img {
    max-width: 90%;
    max-height: 70vh;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
}

#lightbox-caption {
    font-size: 16px;
    color: #fff;
    margin: 10px 0;
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1001;
}

.lightbox-arrow-left {
    left: 20px;
}

.lightbox-arrow-right {
    right: 20px;
}

.lightbox-arrow:hover {
    background-color: rgba(255, 255, 255, 0.7);
    color: #000;
}


@media (max-width: 768px) {
    .portfolio-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
    }

    .header-nav ul {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
}