/* ========================================
   PROJECT DETAIL PAGE STYLES
   Brand-consistent styling for individual project showcases
   ======================================== */

/* ========================================
   1. RESET & BASE STYLES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Barlow", sans-serif;
    font-weight: 500;
    background-color: #ffffff;
    color: #4d4d4d;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Sora", sans-serif;
    font-weight: 400;
    font-optical-sizing: auto;
    font-style: normal;
}

/* Orange text selection color */
::selection {
    background-color: #FF4D00;
    color: #ffffff;
}

::-moz-selection {
    background-color: #FF4D00;
    color: #ffffff;
}

/* ========================================
   2. NAVIGATION & MOBILE MENU
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    z-index: 1000;
    padding: 24px 0;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
}

.nav-logo {
    height: 56px;
    width: auto;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.nav-menu {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #FF4D00;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 10px 24px;
    border-radius: 50px;
    position: relative;
    transition: color 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
    background: transparent;
}

.nav-link:hover {
    color: #ffffff;
    background: #FF4D00;
}

.nav-link.active {
    color: #ffffff;
    background: #FF4D00;
}

.nav-link::after {
    display: none;
}

.nav-socials {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-left: 16px;
}

.nav-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 77, 0, 0.1);
    border-radius: 50%;
    color: #FF4D00;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-socials a:hover {
    background: #FF4D00;
    color: #ffffff;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.bar {
    width: 25px;
    height: 3px;
    background: #FF4D00;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: #fff;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 60px;
        gap: 16px;
        transition: left 0.3s ease;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        font-size: 16px;
        padding: 14px 36px;
        letter-spacing: 2px;
    }
    
    .nav-socials {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

/* ========================================
   3. BREADCRUMB
   ======================================== */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.project-meta {
    display: flex;
    gap: 16px;
    margin-top: 32px;
    justify-content: center;
    flex-wrap: wrap;
}

.project-client,
.project-date {
    border: 2px solid #FF4D00;
    color: #FF4D00;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: transparent;
    transition: all 0.3s ease;
}

.project-client:hover,
.project-date:hover {
    background: #FF4D00;
    color: #ffffff;
}

.project-title-section h1 {
    font-size: 3.5rem;
    font-weight: 400;
    color: #333333;
    margin-bottom: 24px;
    line-height: 1.1;
}

.project-subtitle {
    font-size: 20px;
    color: #666666;
    line-height: 1.6;
    max-width: 800px;
}

/* ========================================
   5. PROJECT GALLERY
   ======================================== */
.project-gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    margin-top: 2rem;
}

.project-gallery img {
    max-width: 800px;
    width: 100%;
    border-radius: 8px;
}

.project-gallery-video {
    width: 100%;
    max-width: 800px;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.project-gallery-video video {
    width: 100%;
    display: block;
    border-radius: 12px;
}

.play-game-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border: 2px solid #FF4D00;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    color: #FF4D00;
    transition: all 0.3s ease;
    min-width: 160px;
    background: transparent;
    margin-top: 20px;
}

.play-game-btn:hover {
    background: #FF4D00;
    color: #ffffff;
    transform: translateY(-2px);
}

/* ========================================
   6. PROJECT HEADER
   ======================================== */
.project-header {
    padding: 160px 0 60px;
    text-align: center;
    position: relative;
    background: #f5f5f5;
}


.project-title-section {
    position: relative;
    padding: 40px 0;
}


.project-title-section h1 {
    font-size: 3.5rem;
    font-weight: 400;
    color: #FF4D00;
    margin-bottom: 32px;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.project-description {
    font-size: 19px;
    color: #666666;
    line-height: 1.7;
    max-width: 720px;
    margin: 0 auto;
    font-weight: 400;
    position: relative;
}


.hero-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.hero-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hero-image:hover img {
    transform: scale(1.02);
}

/* ========================================
   6. PROJECT CONTENT
   ======================================== */
.project-content {
    padding: 80px 0;
}

.content-section {
    margin-bottom: 100px;
}

.section-header {
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 400;
    color: #333333;
    margin-bottom: 16px;
}

.section-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #FF4D00, #ff6b33);
    border-radius: 2px;
}

.section-content {
    max-width: 700px;
}

.lead-text {
    font-size: 20px;
    color: #333333;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 32px;
}

.section-content p {
    font-size: 16px;
    color: #666666;
    line-height: 1.7;
    margin-bottom: 24px;
}

.process-image {
    margin: 40px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.process-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* ========================================
   7. DESIGN GALLERY
   ======================================== */
.design-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin: 60px 0;
}

.design-item {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.design-item:hover {
    transform: translateY(-8px);
}

.design-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   8. OUTCOME GALLERY (Legacy)
   ======================================== */
.outcome-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin: 60px 0;
}

.gallery-item {
    text-align: center;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    margin-bottom: 16px;
}

.gallery-item img:hover {
    transform: translateY(-8px);
}

.gallery-item p {
    font-size: 16px;
    font-weight: 600;
    color: #333333;
    margin: 0;
}

/* ========================================
   8. PROJECT NAVIGATION
   ======================================== */
.project-navigation {
    margin-top: 80px;
    padding: 60px 0;
    background: #FF4D00;
    border-top: none;
}

.nav-buttons {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border: 2px solid #ffffff;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    color: #ffffff;
    transition: all 0.3s ease;
    min-width: 160px;
    background: transparent;
}

.nav-btn:hover {
    background: #ffffff;
    color: #FF4D00;
    transform: translateY(-2px);
}

.nav-btn-contact {
    background: #ffffff;
    color: #FF4D00;
}

.nav-btn-contact:hover {
    background: #f0f0f0;
    border-color: #f0f0f0;
}

/* ========================================
   9. FADE-IN ANIMATIONS
   ======================================== */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   10. RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {
    .project-header {
        padding: 140px 0 50px;
    }

    .project-title-section h1 {
        font-size: 3rem;
    }

    .project-description {
        font-size: 18px;
        max-width: 650px;
    }

    .project-meta {
        gap: 12px;
        justify-content: center;
        align-items: center;
    }

    .project-client,
    .project-date {
        font-size: 12px;
        padding: 6px 12px;
    }

    .project-title-section h1 {
        font-size: 2.5rem;
    }

    .project-subtitle {
        font-size: 18px;
    }

    .hero-section {
        padding: 60px 0 40px;
    }

    .hero-image img {
        height: 350px;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .lead-text {
        font-size: 18px;
    }

    .process-image img {
        height: 250px;
    }

    .design-gallery {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .outcome-gallery {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .gallery-item img {
        height: 200px;
    }

    .nav-buttons {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .nav-btn {
        min-width: auto;
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .project-header {
        padding: 120px 0 40px;
    }

    .project-title-section h1 {
        font-size: 2.5rem;
        letter-spacing: -0.01em;
    }

    .project-description {
        font-size: 17px;
        max-width: 600px;
    }


    .section-header h2 {
        font-size: 1.6rem;
    }

    .lead-text {
        font-size: 16px;
    }
}

/* ========================================
   12. REDUCED MOTION SUPPORT
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    .fade-in,
    .hero-image img,
    .gallery-item img,
    .nav-btn,
    .social-links a {
        transition: none;
    }

    .fade-in {
        opacity: 1;
        transform: none;
    }
}

/* ========================================
   13. FOOTER STYLES
   4-column grid layout on desktop
   Stacks to 1 column on mobile
   ======================================== */
.footer {
    background: #f8f9fa;
    color: #333333;
    padding: 60px 0 20px;
    margin-top: 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    height: 56px;
    width: auto;
    margin-bottom: 16px;
    display: block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.footer-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FF4D00;
    margin-bottom: 16px;
}

.footer-section h4 {
    font-size: 1.1rem;
    font-weight: 400;
    color: #333333;
    margin-bottom: 16px;
}

.footer-section p {
    color: #666666;
    line-height: 1.6;
    margin-bottom: 12px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: #666666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #FF4D00;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 77, 0, 0.1);
    border-radius: 50%;
    color: #FF4D00;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #FF4D00;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 77, 0, 0.3);
}

.footer-bottom {
    border-top: 1px solid #333333;
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    color: #999999;
    font-size: 14px;
    margin: 4px 0;
}

/* Footer Responsive */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-logo {
        margin: 0 auto 16px;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Animation keyframes (moved from project-script.js) */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
