/* ===================================
   PROJECT PAGE STYLES
   =================================== */

.project-hero {
    padding: 10rem 0 6rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    position: relative;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 2rem;
    transition: all var(--transition-speed) ease;
}

.back-link:hover {
    gap: 0.8rem;
    color: var(--secondary-color);
}

.back-link svg {
    width: 20px;
    height: 20px;
}

.project-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.project-hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.project-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 1rem;
}

.meta-item svg {
    width: 20px;
    height: 20px;
    color: var(--primary-color);
}

/* ===================================
   PROJECT IMAGE SECTION
   =================================== */

.project-image-section {
    padding: 4rem 0;
}

.project-main-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.project-main-image img {
    width: 100%;
    height: auto;
    display: block;
}

.image-placeholder {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 600;
}

/* ===================================
   PROJECT CONTENT
   =================================== */

.project-section {
    padding: 4rem 0;
}

.project-content-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 4rem;
}

.project-main-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.project-main-content h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.project-main-content h3 {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-top: 3rem;
    margin-bottom: 1rem;
}

.project-main-content .lead {
    font-size: 1.3rem;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 2rem;
}

.project-main-content p {
    margin-bottom: 1.5rem;
}

.feature-list {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.feature-list li {
    margin-bottom: 1rem;
    position: relative;
    padding-left: 0.5rem;
}

.feature-list li::marker {
    color: var(--primary-color);
}

/* ===================================
   PROJECT SIDEBAR
   =================================== */

.project-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-card {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.sidebar-card h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.sidebar-card p {
    color: var(--text-secondary);
    margin: 0;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 500;
}

.project-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    border-radius: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-speed) ease;
}

.sidebar-link:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    transform: translateX(5px);
}

.sidebar-link svg {
    width: 18px;
    height: 18px;
}

/* ===================================
   PROJECT GALLERY
   =================================== */

.project-gallery {
    padding: 4rem 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.03), rgba(118, 75, 162, 0.03));
}

.project-gallery h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 3rem;
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-speed) ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-placeholder {
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 600;
}

/* ===================================
   PROJECT NAVIGATION
   =================================== */

.project-navigation {
    padding: 4rem 0;
    border-top: 1px solid var(--border-color);
}

.nav-projects {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.nav-project {
    display: flex;
    flex-direction: column;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    border-radius: 15px;
    text-decoration: none;
    transition: all var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
}

.nav-project::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
}

.nav-project:hover::before {
    opacity: 0.1;
}

.nav-project:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.nav-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.nav-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

.nav-project.prev .nav-label::before {
    content: '←';
    margin-right: 0.5rem;
}

.nav-project.next {
    text-align: right;
}

.nav-project.next .nav-label::after {
    content: '→';
    margin-left: 0.5rem;
}

/* ===================================
   CODE BLOCKS (Optional)
   =================================== */

.code-block {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 1.5rem;
    border-radius: 10px;
    overflow-x: auto;
    margin: 2rem 0;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

.code-block code {
    color: #d4d4d4;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 1024px) {
    .project-content-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .project-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .project-hero {
        padding: 8rem 0 4rem;
    }

    .project-hero-title {
        font-size: 2rem;
    }

    .project-hero-subtitle {
        font-size: 1.1rem;
    }

    .project-meta {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-projects {
        grid-template-columns: 1fr;
    }

    .nav-project.next {
        text-align: left;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .project-main-content {
        font-size: 1rem;
    }

    .project-main-content h2 {
        font-size: 2rem;
    }

    .project-main-content h3 {
        font-size: 1.5rem;
    }

    .sidebar-card {
        padding: 1.5rem;
    }
}

/* ===================================
   LIGHTBOX FOR GALLERY (Optional)
   =================================== */

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}
