/* Project Spotlight Gallery Styles */

.gallery-hero {
    background-image: url('../images/gallery-hero.jpg');
    background-size: cover;
    background-position: center;
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-top: 80px;
    position: relative;
}

.gallery-hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(75, 0, 130, 0.8), rgba(0, 0, 0, 0.7));
    z-index: 1;
}

.gallery-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 2rem;
}

.gallery-hero-content h1 {
    margin-bottom: 1rem;
}

.gallery-hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.gallery-section {
    background: var(--black);
    padding: 5rem 2rem;
    position: relative;
}

.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.filter-btn {
    background: none;
    border: 2px solid var(--neon-green);
    color: var(--neon-green);
    padding: 0.5rem 1.5rem;
    margin: 0.5rem;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 1px;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--neon-green);
    color: var(--black);
    box-shadow: 0 0 15px var(--neon-green);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--deep-purple);
}

.gallery-image {
    position: relative;
    overflow: hidden;
}

.gallery-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-item:hover .gallery-image img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: var(--white);
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    color: var(--neon-green);
}

.gallery-overlay p {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.view-details {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--neon-green);
    color: var(--black);
    text-decoration: none;
    border-radius: 30px;
    font-size: 0.9rem;
    transition: all 0.3s;
    font-weight: 600;
}

.view-details:hover {
    background: var(--white);
    box-shadow: 0 0 15px var(--neon-green);
}

/* Project Modal Styles */
.project-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.modal-content {
    background: var(--dark-purple);
    border-radius: 10px;
    max-width: 1000px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    position: relative;
    border: 1px solid var(--neon-green);
    box-shadow: 0 0 30px var(--neon-green);
}

.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--neon-green);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--light-purple);
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--neon-green);
    transition: all 0.3s;
}

.close-modal:hover {
    transform: scale(1.2);
    text-shadow: 0 0 10px var(--neon-green);
}

.modal-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.modal-gallery img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    border: 1px solid var(--deep-purple);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.modal-gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px var(--neon-green);
}

.project-details h3 {
    margin: 1.5rem 0 1rem;
    color: var(--neon-green);
}

.project-details ul {
    list-style-type: disc;
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.project-details ul li {
    margin-bottom: 0.5rem;
}

.project-stats {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 1.5rem;
    border-left: 3px solid var(--neon-green);
}

.project-stats h3 {
    margin-bottom: 1rem;
}

.project-stats ul {
    list-style-type: none;
    margin-left: 0;
}

.project-stats ul li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.project-stats ul li:before {
    content: "✓";
    color: var(--neon-green);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .modal-gallery {
        grid-template-columns: 1fr;
    }

    .gallery-hero {
        height: 40vh;
    }
}

@media (max-width: 480px) {
    .gallery-filters {
        flex-direction: column;
        align-items: center;
    }

    .filter-btn {
        width: 80%;
        margin-bottom: 0.5rem;
    }

    .modal-content {
        padding: 1rem;
    }
}