/* Portfolio Styles */
#portfolio-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0e1a 0%, #050811 100%);
    z-index: -1;
    overflow: hidden;
}

.portfolio-particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.3;
    animation: float-particle linear infinite;
    pointer-events: none;
}

@keyframes float-particle {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100vh) translateX(100px);
        opacity: 0;
    }
}

/* Navigation */
.portfolio-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 15, 30, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 188, 255, 0.2);
    z-index: 1000;
}

.nav-logo {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
}

.logo-glow {
    color: var(--line-color);
    font-size: 1.8rem;
    font-weight: 900;
    text-shadow: 0 0 15px var(--line-color);
    letter-spacing: 2px;
}

.logo-sub {
    color: #a0f0e0;
    font-size: 0.7rem;
    letter-spacing: 3px;
    margin-top: -5px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--line-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--line-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

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

.nav-mobile-toggle .bar {
    width: 25px;
    height: 2px;
    background: var(--line-color);
    transition: 0.3s;
}

/* Portfolio Header */
.portfolio-container {
    max-width: 1400px;
    margin: 120px auto 0;
    padding: 0 2rem;
}

.portfolio-header {
    text-align: center;
    margin-bottom: 4rem;
}

.portfolio-header h1 {
    color: var(--line-color);
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: 4px;
    margin: 1rem 0;
    text-shadow: 0 0 30px var(--line-color);
    font-family: 'Racer', 'Orbitron', sans-serif;
}

.portfolio-header h2 {
    color: #a0f0e0;
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 3px;
    margin-bottom: 2rem;
}

.portfolio-tagline {
    color: #bbb;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 2rem auto;
    line-height: 1.6;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 2.5rem;
    margin: 3rem auto;
    max-width: 1400px;
    width: 100%;
    padding: 0 2rem;
}

.project-card {
    position: relative;
    background: rgba(10, 15, 30, 0.9);
    border: 1px solid rgba(0, 188, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--line-color);
    box-shadow: 0 20px 40px rgba(0, 188, 255, 0.2);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-card:hover .project-glow {
    opacity: 0.8;
}

.project-media {
    position: relative;
    height: 320px;
    overflow: hidden;
}

.project-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-media img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 188, 255, 0.1);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.play-demo {
    color: var(--line-color);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 2px;
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--line-color);
    border-radius: 30px;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    gap: 10px;
}

.project-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    font-size: 0.8rem;
}

.project-year {
    color: var(--line-color);
    font-weight: 600;
}

.project-tags {
    color: #888;
    font-weight: 500;
}

.project-title {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    font-family: 'Orbitron', sans-serif;
}

.project-desc {
    color: #bbb;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.project-status {
    color: var(--line-color);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.project-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 188, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: -1;
}

/* Filters */
.portfolio-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding: 1.5rem;
    background: rgba(10, 15, 30, 0.7);
    border-radius: 12px;
    border: 1px solid rgba(0, 188, 255, 0.1);
}

.filter-group,
.sort-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.filter-label {
    color: var(--line-color);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.filter-btn,
.sort-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #bbb;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-family: 'Orbitron', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.sort-btn:hover {
    border-color: var(--line-color);
    color: #fff;
}

.filter-btn.active,
.sort-btn.active {
    background: var(--line-color);
    color: #0a0e1a;
    border-color: var(--line-color);
    font-weight: 600;
}

/* Stats */
.portfolio-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.stat-card {
    background: rgba(10, 15, 30, 0.7);
    border: 1px solid rgba(0, 188, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: var(--line-color);
    transform: translateY(-5px);
}

.stat-number {
    color: var(--line-color);
    font-size: 3rem;
    font-weight: 900;
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px var(--line-color);
}

.stat-label {
    color: #a0f0e0;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* Footer */
.portfolio-footer {
    background: rgba(5, 8, 17, 0.95);
    border-top: 1px solid rgba(0, 188, 255, 0.2);
    padding: 3rem 2rem 1.5rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    color: var(--line-color);
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    font-family: 'Racer', 'Orbitron', sans-serif;
}

.footer-brand p {
    color: #bbb;
    font-size: 0.95rem;
    max-width: 400px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: #a0f0e0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--line-color);
    text-shadow: 0 0 10px var(--line-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #888;
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
    .portfolio-nav {
        padding: 1rem;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(10, 15, 30, 0.95);
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
        border-bottom: 1px solid rgba(0, 188, 255, 0.2);
    }
    
    .nav-links.show {
        display: flex;
    }
    
    .nav-mobile-toggle {
        display: flex;
    }
    
    .portfolio-container {
        margin-top: 100px;
        padding: 0 1rem;
    }
    
    .portfolio-header h1 {
        font-size: 2.5rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .portfolio-filters {
        flex-direction: column;
        gap: 1.5rem;
        align-items: stretch;
    }
    
    .filter-group,
    .sort-group {
        flex-wrap: wrap;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }
}