body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(to bottom, #f9fafc, #e3e6f3);
}

.portfolio-header {
    text-align: center;
    margin: 30px 0;
    animation: fadeInDown 1s ease-in-out;
}

.portfolio-header h2 {
    margin: 0px 0;
    color: #00000076;
    font-size: 30px;
}

.portfolio-header .horizontal-line {
    width: 0;
    /* Start with no width */
    height: 5px;
    background: linear-gradient(90deg, #0078D7, #00C6FF);
    margin: 12px auto;
    border-radius: 10px;
    animation: growLine 1s ease-in-out forwards;
    /* Animation for growth */
    position: relative;
    overflow: hidden;
}

/* Add a glowing effect */
.portfolio-header .horizontal-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0));
    animation: shimmer 2s infinite;
    border-radius: inherit;
}

/* Animation for growing the line */
@keyframes growLine {
    0% {
        width: 0;
    }

    100% {
        width: 130px;
        /* Final width */
    }
}

/* Animation for shimmer effect */
@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.portfolio-buttons {
    text-align: center;
    margin-top: 150px;
    animation: fadeInDown 1s ease-in-out;

}

.portfolio-buttons button {
    font-weight: bold;
    margin: 0 10px;
    padding: 10px 25px;
    font-size: 18px;
    border: none;
    border-radius: 25px;
    background: linear-gradient(90deg, #0078D7, #00C6FF);
    color: white;
    transition: transform 0.3s, box-shadow 0.3s;
}

.portfolio-buttons button .icon {
    margin-right: 8px;
}

.portfolio-gallery {
    margin: 25px;
    padding-top: 10px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 50px;
    animation: fadeInUp 1s ease-in-out;
    margin-bottom: 80px;
}

.portfolio-gallery .gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease-in-out, transform 0.3s ease-in-out;
    height: 300px;
    width: 300px;
}

.portfolio-gallery .gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: fill;
    border-radius: 10px;
    transition: transform 0.5s ease, filter 0.5s ease;
}

.portfolio-gallery .gallery-item:hover img {
    filter: brightness(0.6);
}

.portfolio-gallery .gallery-item:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    transform: translateY(-5px);
}

.portfolio-gallery .gallery-item .item-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    text-align: center;
    padding: 10px;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.portfolio-gallery .gallery-item:hover .item-info {
    opacity: 1;
    transform: translateY(0);
}

.hidden {
    display: none;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Existing CSS code... */

.full-image-viewer {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.full-image-viewer .close-button {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.full-image-viewer .close-button:hover,
.full-image-viewer .close-button:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

.full-image-viewer #full-image {
    max-width: 90%;
    max-height: 90%;
}

.hidden {
    display: none;
}

/* For tablets and smaller screens */
@media (max-width: 1024px) {
    .portfolio-gallery {
        grid-template-columns: repeat(2, 1fr);
        /* Show 2 items per row */
        gap: 30px;
    }

    .portfolio-buttons button {
        padding: 8px 20px;
        font-size: 16px;
    }

    .portfolio-gallery .gallery-item {
        width: 100%;
        height: auto;
    }

    .portfolio-header h2 {
        font-size: 26px;
    }
}

/* For mobile devices */
@media (max-width: 768px) {
    .portfolio-gallery {
        grid-template-columns: repeat(1, 1fr);
        /* Show 1 item per row */
        gap: 20px;
        margin: 10px;
    }

    .portfolio-buttons {
        margin-top: 50px;
    }

    .portfolio-buttons button {
        padding: 10px 15px;
        font-size: 14px;
        margin-bottom: 10px;
    }

    .portfolio-header h2 {
        font-size: 22px;
    }

    .portfolio-header .horizontal-line {
        width: 100px;
    }

    .portfolio-gallery .gallery-item {
        width: 100%;
        max-width: 350px;
        margin: auto;
    }

    .portfolio-gallery .gallery-item img {
        height: auto;
        object-fit: cover;
    }
}

/* For very small screens (phones under 480px) */
@media (max-width: 480px) {
    .portfolio-header h2 {
        font-size: 20px;
    }

    .portfolio-buttons button {
        padding: 8px 12px;
        font-size: 12px;
    }

    .portfolio-gallery {
        gap: 15px;
    }

    .portfolio-gallery .gallery-item {
        max-width: 300px;
    }
}