/* Portfolio Page - Wakanda-Style Horizontal Scroll with Matrix Theme */

/* ==================== BODY SETUP ==================== */
.portfolio-body {
    overflow: hidden;
}

/* ==================== MINIMAL NAVIGATION ==================== */
.portfolio-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2000;
    padding: 25px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, rgba(5, 7, 17, 0.95) 0%, transparent 100%);
    backdrop-filter: blur(10px);
}

.back-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.back-link:hover {
    color: var(--primary-cyan);
    transform: translateX(-5px);
}

.nav-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==================== SCROLL PROGRESS ==================== */
.scroll-progress {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(0, 212, 255, 0.1);
    z-index: 2000;
}

.progress-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-cyan));
    transition: width 0.1s ease-out;
}

/* ==================== HORIZONTAL SCROLL ==================== */
.portfolio-scroll-wrapper {
    width: 100%;
    height: 100vh;
    overflow-x: scroll;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.portfolio-scroll-wrapper::-webkit-scrollbar {
    height: 0;
}

.portfolio-scroll-content {
    display: flex;
    height: 100vh;
    width: fit-content;
}

/* ==================== PROJECT SLIDES ==================== */
.project-slide {
    position: relative;
    flex-shrink: 0;
    width: 100vw;
    height: 100vh;
    scroll-snap-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 80px;
    gap: 60px;
}

.intro-slide,
.end-slide {
    flex-direction: column;
    text-align: center;
}

/* ==================== INTRO SLIDE ==================== */
.slide-content {
    max-width: 800px;
    z-index: 10;
}

.portfolio-title {
    font-size: clamp(4rem, 8vw, 7rem);
    font-weight: 900;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary-cyan), var(--text-white));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.portfolio-subtitle {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--text-gray);
    margin-bottom: 30px;
}

.title-divider {
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-cyan), transparent);
    margin: 0 auto 40px;
}

.intro-text {
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 60px;
}

.intro-stats {
    display: flex;
    justify-content: center;
    gap: 80px;
    flex-wrap: wrap;
}

.intro-stat h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 4rem;
    color: var(--primary-cyan);
    margin-bottom: 10px;
}

.intro-stat p {
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.95rem;
}

/* ==================== PROJECT INFO ==================== */
.project-visual {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.visual-placeholder {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.2), rgba(0, 212, 255, 0.1));
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    color: var(--primary-cyan);
    backdrop-filter: blur(15px);
    box-shadow: var(--shadow-glow);
}

.project-logo {
    max-width: 350px;
    max-height: 350px;
    object-fit: contain;
    filter: drop-shadow(0 0 30px rgba(0, 212, 255, 0.5));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.project-info {
    flex: 1;
    max-width: 600px;
    z-index: 10;
}

.project-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.project-badge.live {
    background: linear-gradient(135deg, #00FF88, #00D4FF);
    color: var(--bg-dark);
    animation: glow 2s ease-in-out infinite;
}

.project-badge.production {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-cyan));
    color: var(--text-white);
}

.project-badge.coming {
    background: rgba(212, 175, 55, 0.2);
    color: #D4AF37;
    border: 1px solid #D4AF37;
}

.project-info h2 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    color: var(--primary-cyan);
}

.project-tagline {
    font-size: 1.3rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
}

.project-desc {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 30px;
}

.project-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 12px;
    text-align: center;
}

.stat-item i {
    font-size: 1.5rem;
    color: var(--primary-cyan);
}

.stat-item span {
    font-size: 0.9rem;
    color: var(--text-white);
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 35px;
}

.tech-badge {
    padding: 8px 18px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-white);
    transition: var(--transition);
}

.tech-badge:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: rgba(0, 212, 255, 0.5);
    transform: translateY(-2px);
}

.project-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-disabled {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-dim);
    cursor: not-allowed;
    opacity: 0.5;
}

/* ==================== PROGRESS SECTION ==================== */
.progress-section {
    margin: 30px 0;
}

.progress-bar-project {
    width: 100%;
    height: 10px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill-project {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-cyan));
    border-radius: 10px;
    transition: width 1s ease-out;
    box-shadow: 0 0 15px var(--primary-cyan);
}

.progress-text {
    font-size: 0.9rem;
    color: var(--text-gray);
}

/* ==================== END SLIDE ==================== */
.end-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 900;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary-cyan), var(--text-white));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.end-subtitle {
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    color: var(--text-gray);
    margin-bottom: 30px;
}

.end-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 50px;
}

.end-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* ==================== SCROLL HINT ==================== */
.scroll-hint {
    position: fixed;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-gray);
    font-size: 0.95rem;
    animation: pulse 2s ease-in-out infinite;
    pointer-events: none;
}

.scroll-hint i {
    color: var(--primary-cyan);
    animation: slideRight 2s ease-in-out infinite;
}

@keyframes slideRight {
    0%, 100% { transform: translateX(0); opacity: 1; }
    50% { transform: translateX(10px); opacity: 0.5; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1200px) {
    .project-slide {
        padding: 100px 50px;
        gap: 40px;
    }

    .visual-placeholder {
        width: 350px;
        height: 350px;
        font-size: 6rem;
    }

    .project-logo {
        max-width: 300px;
        max-height: 300px;
    }

    .project-info h2 {
        font-size: 3rem;
    }
}

@media (max-width: 968px) {
    .project-slide {
        flex-direction: column;
        padding: 120px 40px 80px;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .portfolio-nav {
        padding: 20px 30px;
    }

    .visual-placeholder {
        width: 280px;
        height: 280px;
        font-size: 5rem;
    }

    .project-logo {
        max-width: 250px;
        max-height: 250px;
    }

    .project-info {
        max-width: 100%;
    }

    .project-info h2 {
        font-size: 2.5rem;
    }

    .project-stats-grid {
        grid-template-columns: 1fr;
    }

    .intro-stats {
        gap: 40px;
    }

    .intro-stat h3 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .project-slide {
        padding: 100px 25px 60px;
    }

    .portfolio-title {
        font-size: 3rem;
    }

    .project-info h2 {
        font-size: 2rem;
    }

    .project-tagline {
        font-size: 1.1rem;
    }

    .project-desc {
        font-size: 1rem;
    }

    .visual-placeholder {
        width: 220px;
        height: 220px;
        font-size: 4rem;
    }

    .project-logo {
        max-width: 200px;
        max-height: 200px;
    }

    .project-actions {
        flex-direction: column;
    }

    .project-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .scroll-hint {
        bottom: 30px;
        font-size: 0.85rem;
    }

    .end-actions {
        flex-direction: column;
        width: 100%;
    }

    .end-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .intro-stat h3 {
        font-size: 2.5rem;
    }

    .visual-placeholder {
        width: 180px;
        height: 180px;
        font-size: 3rem;
    }

    .project-logo {
        max-width: 150px;
        max-height: 150px;
    }
}