/* ========================================
   PORTFOLIO PAGE STYLES
   ======================================== */

.back-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(212, 175, 55, 0.3);
    transition: all var(--transition-fast);
}

.back-link:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--accent-gold);
    transform: translateX(-5px);
}

.back-link svg {
    color: var(--accent-gold);
}

/* ========================================
   PROJECT HEADER
   ======================================== */

.project-header {
    text-align: center;
    padding: var(--spacing-xl) 0 var(--spacing-lg);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    margin-bottom: var(--spacing-lg);
}

.project-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin: var(--spacing-sm) 0;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.project-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.meta-item svg {
    color: var(--accent-gold);
}

/* ========================================
   PROJECT CONTENT
   ======================================== */

.project-content {
    max-width: 1200px;
    margin: 0 auto;
}

.project-overview {
    margin-bottom: var(--spacing-xl);
}

.project-overview h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--accent-gold);
}

.project-overview .lead {
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-sm);
}

.project-overview p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--spacing-sm);
}

/* ========================================
   IMAGE GALLERY
   ======================================== */

.image-gallery {
    margin-bottom: var(--spacing-xl);
}

.image-gallery h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--accent-gold);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--spacing-md);
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-secondary);
    border: 1px solid rgba(212, 175, 55, 0.1);
    transition: all var(--transition-normal);
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-gold);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-align: center;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

/* Lightbox for gallery images */
.gallery-item {
    cursor: pointer;
}

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: var(--radius-lg);
    box-shadow: 0 0 50px rgba(212, 175, 55, 0.3);
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 2px solid var(--accent-gold);
    color: var(--accent-gold);
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.lightbox-close:hover {
    transform: rotate(90deg);
    background: var(--accent-gold);
    color: #000;
}

/* ========================================
   KEY FEATURES
   ======================================== */

.key-features {
    margin-bottom: var(--spacing-xl);
}

.key-features h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--accent-gold);
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.feature-card {
    background: var(--bg-secondary);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(212, 175, 55, 0.1);
    transition: all var(--transition-normal);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-gold);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ========================================
   TECHNOLOGY STACK
   ======================================== */

.tech-stack {
    margin-bottom: var(--spacing-xl);
}

.tech-stack h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--accent-gold);
    text-align: center;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--spacing-sm);
}

.tech-item {
    background: var(--bg-secondary);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-left: 4px solid var(--accent-gold);
    transition: all var(--transition-fast);
}

.tech-item:hover {
    transform: translateX(5px);
    background: rgba(212, 175, 55, 0.05);
    box-shadow: var(--shadow-md);
}

.tech-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 0.25rem;
    font-family: var(--font-mono);
}

.tech-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .tech-grid {
        grid-template-columns: 1fr;
    }
    
    .project-meta {
        flex-direction: column;
        align-items: stretch;
    }
    
    .meta-item {
        justify-content: center;
    }
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-content > * {
    animation: fadeInUp 0.6s ease forwards;
}

.project-content > *:nth-child(2) {
    animation-delay: 0.1s;
}

.project-content > *:nth-child(3) {
    animation-delay: 0.2s;
}

.project-content > *:nth-child(4) {
    animation-delay: 0.3s;
}

.phone-screenshots .gallery-item img {
    width: 300px;
    height: 600px;
    object-fit: cover;
    border-radius: 30px;
    border: 2px solid var(--accent-gold);
}
