/* Global Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
}

h1, h2, h3 {
    color: #a1a1a1;
}

p {
    color: #666;
}

/* Header */
header {
    background-color: #282c34;
    color: #a1a1a1;
    text-align: center;
    padding: 50px 20px;
}

    header nav ul {
        list-style-type: none;
        padding: 0;
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
    }

        header nav ul li {
            margin: 10px 15px;
        }

            header nav ul li a {
                color: #a1a1a1;
                text-decoration: none;
                font-weight: bold;
                transition: color 0.3s, transform 0.3s;
            }

                header nav ul li a:hover {
                    color: #ff6b6b;
                    transform: scale(1.1);
                }

/* Project Overview Section */
#project-overview, #technical-details, #gallery {
    padding: 50px 20px;
    background-color: #ffffff;
    text-align: center;
    margin-bottom: 30px; /* Consistent margin between sections */
}

    #project-overview p, #technical-details p {
        max-width: 90%;
        margin: 0 auto;
        line-height: 1.6;
    }

@media (min-width: 768px) {
    #project-overview p, #technical-details p {
        max-width: 600px;
    }
}

/* Video Preview Section */
#video-preview {
    text-align: center;
    margin: 40px auto;
    max-width: 1200px; /* Set a max width for better control */
}

#video-preview video {
    width: 80%; /* Adjust percentage to control width */
    max-width: 600px; /* Set maximum width for smaller size */
    height: auto; /* Maintain aspect ratio */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#video-preview p {
    margin-top: 1rem;
    font-size: 1rem;
    color: #666;
}

/* Feature Styling */
.feature {
    background-color: #f9f9f9;
    padding: 20px;
    border-left: 5px solid #ff6b6b;
    margin: 20px 0;
    text-align: left;
}

    .feature h3 {
        color: #a1a1a1;
    }

    .feature ul {
        list-style-type: disc;
        padding-left: 20px;
}

/* Gallery Section */
.project-gallery {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

    .project-gallery img {
        width: 100%;
        max-width: 300px;
        height: auto;
        border-radius: 10px;
        box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s, box-shadow 0.3s;
    }

        .project-gallery img:hover {
            transform: translateY(-10px);
            box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
}

/* Lightbox styling */
.lightbox {
    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 */
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.3);
}

.lightbox:target {
    display: flex; /* Show the lightbox when targeted */
}

/* Close button for the lightbox */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #ffffff;
    font-size: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: #ff6b6b;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: 50%;
    padding: 10px;
    cursor: pointer;
    font-size: 24px;
    color: #333;
    transition: background-color 0.3s, color 0.3s;
}

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

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

.lightbox-nav:hover {
    background-color: rgba(255, 255, 255, 1);
    color: #ff6b6b;
}

/* Skill Tags */
.code-skill, .editor-skill, .asset-skill {
    color: #fff;
    font-weight: bold;
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    margin-right: 5px;
}

.code-skill {
    background-color: #ff6b6b;
}

.editor-skill {
    background-color: #4da8da;
}

.asset-skill {
    background-color: #4caf50;
}

/* Footer */
footer {
    text-align: center;
    padding: 10px 0;
    background: #282c34;
    color: #a1a1a1;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .project-gallery {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
}
