body, html {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

.project-container {
    min-height: 100vh;
    margin-top: -100px;
    position: relative;
}

/* Split hero section */
.hero-split {
    display: flex;
    min-height: 80vh;
    width: 100%;
}

/* Hero content side */
.hero-content-side {
    width: 40%;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.project-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    color: #fff;
    margin-bottom: 1rem;
    letter-spacing: 3px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    line-height: 1.1;
    text-transform: uppercase;
}

.project-author {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    margin-bottom: 2rem;
    letter-spacing: 2px;
}

.project-brief {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    margin-top: auto;
}

.hero-button {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    background-color: rgba(136, 0, 255, 0.1);
    color: #ffffff;
    text-decoration: none;
    border: 2px solid #a600ff;
    border-radius: 4px;
    font-weight: bold;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.hero-button.primary {
    background-color: rgba(136, 0, 255, 0.1);
    color: #ffffff;
}

.hero-button:hover {
    transform: translateY(-3px);
    background: linear-gradient(45deg, #9e33e6, #505ed7);
    box-shadow: 0 5px 15px rgba(160, 74, 226, 0.3);
}

.hero-button.primary:hover {
    background: linear-gradient(45deg, #9e33e6, #505ed7);
}

/* Gallery side */
.hero-gallery-side {
    width: 60%;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Featured image with glow effect */
.project-featured-image {
    width: 100%;
    max-width: 900px;
    margin-bottom: 1.5rem;
    border-radius: 10px;
    aspect-ratio: 16/9;
    overflow: hidden;
    position: relative;
    border: 3px solid rgb(255, 255, 255);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.5);
}

.featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.5s ease;
}

.project-featured-image:hover .featured-image {
    transform: scale(1.03);
}

/* Gallery thumbnails with glow effect */
.gallery-thumbnails {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
    width: 100%;
    max-width: 900px;
}

.thumbnail {
    width: calc(20% - 0.8rem);
    aspect-ratio: 16/9;
    border-radius: 8px;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.thumbnail.active {
    opacity: 1;
    border-color: #ffffff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.thumbnail:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Main content area */
.project-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

.project-content-steam {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* Section styles */
.content-section {
    padding: 4rem 0;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.content-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    color: #ffffff;
    display: inline-block;
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 3px;
    background-color: rgb(136, 0, 255);
    box-shadow: 0 5px 15px rgba(160, 74, 226, 0.3);
}

.section-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Project info section */
.project-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-top: 2rem;
}

.info-card {
    background: linear-gradient(145deg, #131313, #141414);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.info-card-title {
    color: #ac68ff;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    letter-spacing: 1px;
}

.info-card-content {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.info-stats {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.info-stat {
    flex: 1;
    min-width: 120px;
}

.stat-label {
    color: #ffffff;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    font-family: 'Courier New', monospace;
}

.stat-value {
    color: #fff;
    font-size: 1.1rem;
}

/* Technical details section */
.tech-details {
    background: linear-gradient(145deg, #131313, #141414);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.tech-details h3 {
    color: #ac68ff;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.tech-details h3:first-child {
    margin-top: 0;
}

.tech-details p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.tech-details pre {
    background-color: rgba(15, 15, 20, 0.9);
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
    border-left: 3px solid #a600ff;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.tech-details ul {
    color: rgba(255, 255, 255, 0.8);
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.tech-details ul li {
    margin-bottom: 0.5rem;
    position: relative;
}

.tech-details ul li::before {
    content: '•';
    color: #ffffff;
    position: absolute;
    left: -1rem;
}

/* Feature cards section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: rgba(30, 30, 45, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 2rem;
    transition: transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border-color: rgba(0, 255, 65, 0.3);
}

.feature-icon {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.feature-title {
    font-size: 1.3rem;
    color: #ac68ff;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.feature-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* GitHub Commit Display */
.github-commit-container {
    max-width: 900px;
    margin: 1rem auto -90px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    background: rgba(20, 20, 30, 0.8);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.github-commit-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 255, 255, 0.2);
}

.github-header {
    background: linear-gradient(90deg, rgba(30, 30, 45, 0.9), rgba(20, 20, 30, 0.8));
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.github-logo {
    display: flex;
    align-items: center;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
}

.github-logo i {
    font-size: 1.5rem;
    margin-right: 0.8rem;
}

.repo-link {
    color: #00ff41;
    text-decoration: none;
    font-size: 0.9rem;
    background: rgba(0, 255, 65, 0.1);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 255, 65, 0.3);
}

.repo-link:hover {
    background: rgba(0, 255, 65, 0.2);
    color: #fff;
}

.github-commit {
    padding: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.commit-message {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #fff;
    display: flex;
    align-items: flex-start;
}

.commit-message i {
    color: #00ff41;
    margin-right: 0.8rem;
    font-size: 1.3rem;
    margin-top: 0.2rem;
}

.commit-message-text {
    flex: 1;
}

.commit-hash {
    font-family: 'Courier New', monospace;
    color: #00ff41;
    padding: 0.2rem 0.5rem;
    background: rgba(0, 255, 65, 0.1);
    border-radius: 4px;
    font-size: 0.9rem;
    margin-left: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.commit-hash:hover {
    background: rgba(0, 255, 65, 0.2);
}

.commit-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.commit-author {
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 0.8rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.author-name {
    font-weight: 600;
}

.commit-date {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.commit-stats {
    display: flex;
    gap: 1.5rem;
}

.commit-stat {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.commit-stat i {
    color: #00ff41;
    margin-right: 0.5rem;
}

.commit-stat.added {
    color: #00ff41;
}

.commit-stat.removed {
    color: #ff4d4d;
}

.commit-files {
    margin-top: 1.5rem;
    background: rgba(15, 15, 20, 0.7);
    border-radius: 6px;
    padding: 0.5rem;
    max-height: 120px;
    overflow-y: auto;
}

.commit-file {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.8rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    border-radius: 4px;
}

.commit-file:hover {
    background: rgba(255, 255, 255, 0.05);
}

.file-icon {
    margin-right: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.file-name {
    flex: 1;
}

.file-status {
    font-size: 0.8rem;
    padding: 0.1rem 0.5rem;
    border-radius: 3px;
    margin-left: 0.5rem;
}

.file-status.modified {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.file-status.added {
    background: rgba(0, 255, 65, 0.1);
    color: #00ff41;
}

.file-status.removed {
    background: rgba(255, 77, 77, 0.1);
    color: #ff4d4d;
}

/* Custom scrollbar for files list */
.commit-files::-webkit-scrollbar {
    width: 6px;
}

.commit-files::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.commit-files::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.commit-files::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 65, 0.3);
}

/* Contact CTA section */
.contact-cta {
    padding: 4rem 0;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(45deg, rgba(24, 24, 24, 0.9), rgba(11, 11, 11, 0.9));
    border-radius: 12px;
    margin: 3rem auto;
    max-width: 1200px;
}

.cta-content h2 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.cta-content p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3rem;
    font-size: 1.2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    padding: 0.8rem 1.5rem;
    background-color: rgba(136, 0, 255, 0.1);
    color: #ffffff;
    text-decoration: none;
    border: 2px solid #a600ff;
    border-radius: 4px;
    font-weight: bold;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.cta-button:hover {
    transform: translateY(-3px);
    background: linear-gradient(45deg, #9e33e6, #505ed7);
    box-shadow: 0 5px 15px rgba(160, 74, 226, 0.3);
}

/* Footer */
.project-footer {
    text-align: center;
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: hidden;
}

.lightbox-content {
    position: relative;
    display: flex;
    justify-content: center;
    padding-top: 20px;
    align-items: flex-start;
    width: 100%;
    height: 100%;
}

.lightbox-content img {
    max-width: 85%;
    max-height: 80%;
    object-fit: contain;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
    border: 3px solid rgb(255, 255, 255);
    border-radius: 5px;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #fff;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1010;
    transition: all 0.3s ease;
    background-color: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.close-modal:hover {
    color: #a600ff;
    background-color: rgba(0, 0, 0, 0.7);
    border-color: #a600ff;
    transform: scale(1.1);
}

.lightbox-nav {
    position: fixed;
    bottom: 30px;
    left: 0;
    display: flex;
    justify-content: center;
    width: 100%;
    gap: 50px;
    z-index: 1010;
}

.nav-button {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-button:hover {
    background-color: rgba(166, 0, 255, 0.5);
    border-color: #a600ff;
    transform: scale(1.1);
}

@media (min-width: 1440px) {
    .hero-split {
        margin-top: 75px;
        margin-bottom: 60px;
    }

    .hero-gallery-side {
        margin-top: 60px;
    }

    .lightbox-content {
        padding-top: 100px;
    }

    .close-modal {
        height: 80px;
        width: 80px;
    }

    .nav-button {
        font-size: 30px;
        height: 80px;
        width: 80px;
    }
}

@media screen and (min-width: 1920px) and (max-width: 1921px) {
    .project-container {
        margin-top: 0 !important;
    }
    
    .hero-content-side {
        margin-top: 25px;
    }

    .project-title {
        font-size: 4.2rem;
        margin-bottom: 0;
    }

    .project-author {
        font-size: 2.5rem;
    }

    .project-brief {
        font-size: 2rem;
    }

    .hero-button {
        font-weight: 300;
        font-size: 1.5rem;
    }

    .github-commit-container {
        margin-top: 100px;
        transform: scale(150%);
    }
    
    .github-commit-container:hover {
        transform: scale(155%);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 255, 255, 0.2);
    }

    .project-content {
        max-width: 1500px;
        margin-top: 350px;
        margin-bottom: 375px;
        transform: scale(115%);
    }

    .project-content-steam {
        max-width: 1500px;
        margin-top: 200px !important;
        margin-bottom: 375px;
        transform: scale(115%);
    }

    .section-title {
        font-size: 4rem;
    }

    .section-subtitle {
        font-size: 1.6rem;
    }

    .info-card-title {
        font-size: 3rem;
        margin-top: -15px;
    }

    .info-card-content {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 1.5rem;
    }

    .stat-value {
        font-size: 1.3rem;
    }

    .tech-details h3 {
        font-size: 3rem;
    }

    .tech-details p {
        font-size: 1.5rem;
    }

    .tech-details pre {
        font-size: 1.5rem;
    }

    .tech-details ul {
        font-size: 1.5rem;
    }

    .cta-content p {
        font-size: 1.5rem;
    }

    .cta-button {
        font-size: 1.5rem;
        font-weight: 300;
    }

    .close-modal {
        height: 80px;
        width: 80px;
    }

    .nav-button {
        font-size: 30px;
        height: 80px;
        width: 80px;
    }
}

@media (max-width: 768px) {
    /* Hero section */
    .project-container {
        margin-top: -35px;
        max-width: 99%;
    }

    .hero-split {
        flex-direction: column;
        min-height: auto;
    }
    
    .hero-content-side {
        width: 90%;
        order: 1;
        padding: 2rem 1rem;
    }
    
    .project-title {
        font-size: 2.5rem;
        text-align: center;
    }
    
    .project-author, .project-brief {
        text-align: center;
    }
    
    .hero-cta {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .hero-button {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
    
    /* Gallery section with z-index fixes */
    .hero-gallery-side {
        width: 90%;
        order: 2;
        padding: 1rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        position: relative;
        z-index: 30;
    }
    
    .project-featured-image {
        width: 90%;
        max-width: 350px;
        margin: 0 auto 1rem;
        border-width: 2px;
        position: relative;
        z-index: 31;
    }
    
    .gallery-thumbnails {
        width: 90%;
        max-width: 350px;
        margin: 0 auto;
        gap: 0.5rem;
        justify-content: center;
        position: relative;
        z-index: 32;
    }
    
    .thumbnail {
        width: calc(20% - 0.5rem);
        border-width: 1px;
        position: relative;
        z-index: 33;
        touch-action: manipulation;
        min-width: 60px;
        min-height: 40px;
        -webkit-tap-highlight-color: rgba(0,0,0,0);
    }
    
    /* Fix for blocked thumbnails */
    .content-section, .section-header {
        margin-top: -25px;
        z-index: 1;
    }
    
    /* GitHub container */
    .github-commit-container {
        margin: 1rem 1rem 0;
        max-width: calc(100% - 2rem);
        position: relative;
        z-index: 20;
    }
    
    .github-header {
        padding: 0.8rem;
    }
    
    .commit-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .commit-stats {
        width: 100%;
        justify-content: space-between;
    }
    
    /* Project content */
    .project-content {
        margin-top: -25px;
        padding: 1rem;
        position: relative;
        z-index: 10;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    /* Info cards */
    .project-info-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .info-card {
        padding: 1.5rem;
    }
    
    /* Tech details */
    .tech-details {
        padding: 1.5rem;
    }
    
    .tech-details pre {
        padding: 1rem;
        font-size: 0.8rem;
        white-space: pre-wrap;
    }
    
    .tech-details h3 {
        font-size: 1.3rem;
        margin-top: 2rem;
    }
    
    /* Features grid */
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    /* CTA section */
    .contact-cta {
        padding: 3rem 1rem;
        margin: 0 1rem 25px;
        max-width: calc(100% - 2rem);
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .cta-content p {
        font-size: 1rem;
        margin-bottom: 2rem;
        padding: 0 0.5rem;
    }
    
    .cta-button {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }

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

    .lightbox-content img {
        max-width: 90%;
        max-height: 75%;
    }
    
    .nav-button {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .close-modal {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
    
    .lightbox-nav {
        bottom: 30px;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .hero-button {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .thumbnail {
        width: calc(50% - 0.5rem);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .tech-details {
        padding: 1.5rem;
    }

    .github-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }
    
    .commit-message {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .commit-message i {
        margin-bottom: 0.5rem;
    }
    
    .commit-hash {
        margin-left: 0;
        margin-top: 0.5rem;
        display: inline-block;
    }
}