/* =============================================
   SCROLL-OPTIMIZED PROJECT PAGE STYLES
   Zero lag on hover and scroll
   ============================================= */

   .project-container {
    max-width: 1200px;
    margin: 100px auto 50px;
    padding: 0 2rem;
    opacity: 0;
    animation: fadeInUp 0.5s ease-out 0.1s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
    from {
        opacity: 0;
        transform: translateY(15px);
    }
}

.project-header {
    text-align: center;
    margin-bottom: 3rem;
}

.project-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    background: linear-gradient(45deg, var(--primary-gold), var(--cyan-glow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.project-category {
    font-size: 1.2rem;
    color: var(--cyan-glow);
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.8;
}

.project-content {
    background: rgba(26, 26, 46, 0.8);
    border-radius: 20px;
    padding: 3rem;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.project-media {
    margin-bottom: 3rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.project-hero-img, .project-hero-video {
    width: 100%;
    height: auto;
    display: block;
}

.project-section {
    margin-bottom: 4rem;
}

.project-section h2 {
    font-size: 2rem;
    color: var(--primary-gold);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.project-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--cyan-glow), transparent);
}

.project-section h3 {
    font-size: 1.5rem;
    color: var(--cyan-glow);
    margin: 2rem 0 1rem;
}

.project-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 1rem;
    opacity: 0.9;
}

.project-section ul {
    margin: 1rem 0 1rem 2rem;
}

.project-section li {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 0.8rem;
    opacity: 0.9;
}

.project-section hr {
    border: none;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    margin: 2rem 0;
}

/* Features Grid - Optimized hover */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background: rgba(57, 62, 70, 0.7);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(0, 255, 240, 0.2);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 255, 240, 0.2);
    border-color: var(--cyan-glow);
}

.feature-card h3 {
    color: var(--cyan-glow);
    margin-bottom: 1rem;
}

/* Gallery - Optimized */
.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.gallery-img:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(0, 255, 240, 0.3);
}

/* Technical Details */
.tech-details {
    background: rgba(57, 62, 70, 0.5);
    padding: 2rem;
    border-radius: 15px;
    margin-top: 1.5rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}
.detail-row:last-child {
border-bottom: none;
}
.detail-label {
color: var(--primary-gold);
font-weight: bold;
}
.detail-value {
color: var(--text-light);
opacity: 0.9;
}
/* Game Embed */
.game-embed {
margin: 2rem 0;
border-radius: 15px;
overflow: hidden;
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
/* Download Links */
.download-links {
display: flex;
gap: 1.5rem;
flex-wrap: wrap;
justify-content: center;
margin: 2rem 0;
}
.download-btn {
display: inline-flex;
align-items: center;
gap: 0.5rem;
padding: 1rem 2rem;
background: linear-gradient(45deg, var(--primary-gold), var(--secondary-copper));
color: var(--dark-metal);
text-decoration: none;
border-radius: 50px;
font-weight: bold;
transition: transform 0.15s ease, box-shadow 0.15s ease;
box-shadow: 0 5px 20px rgba(212, 175, 55, 0.3);
}
.download-btn:hover {
transform: translateY(-3px);
box-shadow: 0 8px 30px rgba(212, 175, 55, 0.5);
}
/* Navigation Buttons */
.project-nav {
display: flex;
justify-content: space-between;
margin-top: 4rem;
padding-top: 2rem;
border-top: 1px solid rgba(212, 175, 55, 0.2);
}
.nav-btn {
display: inline-flex;
align-items: center;
gap: 0.5rem;
padding: 1rem 1.5rem;
background: rgba(57, 62, 70, 0.8);
border: 1px solid var(--primary-gold);
border-radius: 25px;
color: var(--text-light);
text-decoration: none;
transition: all 0.15s ease;
}
.nav-btn:hover {
background: var(--primary-gold);
color: var(--dark-metal);
transform: translateY(-2px);
box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
}
.nav-btn.prev {
margin-right: auto;
}
.nav-btn.next {
margin-left: auto;
}
.project-footer {
text-align: center;
padding: 3rem 0;
margin-top: 5rem;
border-top: 1px solid rgba(212, 175, 55, 0.2);
color: var(--text-light);
opacity: 0.6;
}
/* Disable transitions during scroll for smooth performance */
body.is-scrolling .feature-card,
body.is-scrolling .gallery-img,
body.is-scrolling .download-btn,
body.is-scrolling .nav-btn {
transition: none !important;
}
/* Responsive */
@media (max-width: 768px) {
.project-container {
padding: 0 1rem;
}.project-content {
    padding: 2rem 1.5rem;
}

.features-grid,
.project-gallery {
    grid-template-columns: 1fr;
}

.download-links {
    flex-direction: column;
}

.download-btn,
.nav-btn {
    width: 100%;
    justify-content: center;
}

.project-nav {
    flex-direction: column;
    gap: 1rem;
}
}
