.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px 40px;
    animation: fadeInUp 0.6s ease-out;
}

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

.back-navigation {
    margin-bottom: 30px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #58a6ff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: rgba(88, 166, 255, 0.1);
}

.back-btn:hover {
    background: rgba(88, 166, 255, 0.2);
    transform: translateX(-4px);
}

.project-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(88, 166, 255, 0.2);
}

.project-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #58a6ff, #7c3aed);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}

.project-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-completed {
    background: rgba(0, 128, 0, 0.2);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.3);
}

.status-in-progress {
    background: rgba(255, 165, 0, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.project-date {
    color: #8b949e;
    font-weight: 500;
}

.project-team {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #8b949e;
}

.team-icon {
    font-size: 16px;
}

.project-gallery {
    margin-bottom: 40px;
}

.main-image-container {
    position: relative;
    text-align: center;
    margin-bottom: 20px;
}

.main-image {
    text-align: center;
}

.project-image, .project-video {
    max-width: 100%;
    max-height: 70vh;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.project-image:hover, .project-video:hover {
    transform: scale(1.02);
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(13, 17, 23, 0.8);
    border: 1px solid rgba(88, 166, 255, 0.3);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.gallery-nav:hover {
    background: rgba(88, 166, 255, 0.2);
    border-color: rgba(88, 166, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.gallery-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.gallery-prev {
    left: 20px;
}

.gallery-next {
    right: 20px;
}

.gallery-nav span {
    font-size: 24px;
    font-weight: bold;
    color: #58a6ff;
    line-height: 1;
}

.project-gallery[data-images="1"] .gallery-nav {
    display: none;
}

.thumbnail-gallery {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.thumbnail {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.thumbnail:hover,
.thumbnail.active {
    opacity: 1;
    border-color: #58a6ff;
    transform: scale(1.1);
}

.project-description,
.project-role,
.project-technologies,
.project-features,
.project-challenges,
.project-learnings {
    margin-bottom: 50px;
}

.project-description h2,
.project-role h2,
.project-technologies h2,
.project-features h2,
.project-challenges h2,
.project-learnings h2 {
    font-size: 2rem;
    margin-bottom: 25px;
    color: #e6edf3;
    position: relative;
    padding-left: 20px;
}

.project-description h2::before,
.project-role h2::before,
.project-technologies h2::before,
.project-features h2::before,
.project-challenges h2::before,
.project-learnings h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 30px;
    background: linear-gradient(135deg, #58a6ff, #7c3aed);
    border-radius: 2px;
}

.description-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #c9d1d9;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    background: rgba(88, 166, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(88, 166, 255, 0.1);
    transition: all 0.3s ease;
}

.tech-item:hover {
    background: rgba(88, 166, 255, 0.1);
    border-color: rgba(88, 166, 255, 0.3);
    transform: translateY(-4px);
}

.tech-item span {
    font-weight: 500;
    color: #e6edf3;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.feature-card {
    background: rgba(88, 166, 255, 0.05);
    border: 1px solid rgba(88, 166, 255, 0.1);
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: rgba(88, 166, 255, 0.1);
    border-color: rgba(88, 166, 255, 0.3);
    transform: translateY(-4px);
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: #e6edf3;
}

.feature-card p {
    color: #8b949e;
    line-height: 1.6;
}

.challenges-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.challenge-item {
    background: rgba(88, 166, 255, 0.05);
    border: 1px solid rgba(88, 166, 255, 0.1);
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
}

.challenge-item:hover {
    background: rgba(88, 166, 255, 0.1);
    border-color: rgba(88, 166, 255, 0.3);
}

.challenge-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.challenge-item h3 {
    font-size: 1.2rem;
    color: #e6edf3;
}

.challenge-item p {
    color: #8b949e;
    line-height: 1.6;
    margin-bottom: 20px;
}

.code-showcase {
    margin-top: 20px;
}

.code-image-container {
    background: rgba(13, 17, 23, 0.8);
    border: 1px solid rgba(88, 166, 255, 0.2);
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
}

.code-image-container:hover {
    border-color: rgba(88, 166, 255, 0.4);
    background: rgba(13, 17, 23, 0.9);
}

.code-image {
    width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

.code-caption {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #8b949e;
    font-style: italic;
    text-align: center;
}

.challenge-solution {
    margin-top: 15px;
    padding: 20px;
    background: rgba(88, 166, 255, 0.05);
    border-left: 4px solid #58a6ff;
    border-radius: 0 8px 8px 0;
}

.challenge-solution h4 {
    color: #58a6ff;
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.challenge-solution p {
    color: #c9d1d9;
    margin-bottom: 0;
}

.solution-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.solution-text {
    flex: 1;
}

.solution-text h4 {
    margin-bottom: 15px;
}

.solution-text p {
    line-height: 1.8;
    font-size: 1rem;
}

@media (min-width: 1024px) {
    .solution-content-wrapper {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        align-items: start;
    }
    
    .solution-text {
        position: sticky;
        top: 100px;
        background: rgba(13, 17, 23, 0.4);
        padding: 12px 20px 20px 20px;
        border-radius: 8px;
        border: 1px solid rgba(88, 166, 255, 0.15);
        order: 2;
    }
    
    .solution-text h4 {
        margin-top: 0;
    }
    
    .code-block-container {
        margin: 0 !important;
        order: 1;
    }
}

.learnings-content p {
    margin-bottom: 20px;
}

.learnings-list {
    list-style: none;
    padding: 0;
}

.learnings-list li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(88, 166, 255, 0.1);
    color: #c9d1d9;
    position: relative;
    padding-left: 25px;
}

.learnings-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4ade80;
    font-weight: bold;
}

.learnings-list li:last-child {
    border-bottom: none;
}

.code-block-container {
    margin-top: 20px;
    background: #0d1117;
    border: 1px solid rgba(88, 166, 255, 0.2);
    border-radius: 8px;
    overflow: hidden;
}

.code-block-header {
    background: rgba(88, 166, 255, 0.1);
    padding: 12px 20px;
    border-bottom: 1px solid rgba(88, 166, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.code-language {
    color: #58a6ff;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.code-label {
    color: #8b949e;
    font-size: 0.85rem;
    font-style: italic;
}

.code-block {
    padding: 20px;
    overflow-x: auto;
    max-height: 500px;
    overflow-y: auto;
}

.code-block::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.code-block::-webkit-scrollbar-track {
    background: rgba(13, 17, 23, 0.5);
    border-radius: 4px;
}

.code-block::-webkit-scrollbar-thumb {
    background: rgba(88, 166, 255, 0.3);
    border-radius: 4px;
}

.code-block::-webkit-scrollbar-thumb:hover {
    background: rgba(88, 166, 255, 0.5);
}

.code-block pre {
    margin: 0;
    padding: 0;
    background: transparent;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #c9d1d9;
}

.code-block code {
    font-family: inherit;
    background: transparent;
    padding: 0;
}

.code-comment { color: #8b949e; font-style: italic; }
.code-keyword { color: #ff7b72; font-weight: 600; }
.code-string { color: #a5d6ff; }
.code-function { color: #d2a8ff; }
.code-number { color: #79c0ff; }
.code-class { color: #ffa657; }
.code-variable { color: #ffa657; }
.code-type { color: #7ee787; }
.code-operator { color: #ff7b72; }
.code-property { color: #79c0ff; }

@media (max-width: 768px) {
    .main-content {
        padding: 80px 15px 30px;
    }

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

    .project-meta {
        gap: 15px;
    }

    .tech-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 15px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .code-image-container {
        padding: 10px;
    }

    .code-caption {
        font-size: 0.8rem;
    }

    .challenge-solution {
        padding: 15px;
    }

    .code-block-container {
        margin-top: 15px;
    }

    .code-block-header {
        padding: 10px 15px;
        flex-direction: column;
        gap: 5px;
        align-items: flex-start;
    }

    .code-block {
        padding: 15px;
        font-size: 0.8rem;
    }

    .code-block pre {
        font-size: 0.8rem;
        line-height: 1.5;
    }

    .gallery-nav {
        width: 40px;
        height: 40px;
    }

    .gallery-prev {
        left: 10px;
    }

    .gallery-next {
        right: 10px;
    }

    .gallery-nav span {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .project-title {
        font-size: 2rem;
    }

    .project-meta {
        flex-direction: column;
        gap: 10px;
    }

    .thumbnail-gallery {
        gap: 5px;
    }

    .thumbnail {
        width: 60px;
        height: 45px;
    }

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

.project-role {
    background: rgba(13, 17, 23, 0.6);
    border: 1px solid rgba(88, 166, 255, 0.2);
    border-radius: 12px;
    padding: 30px;
    backdrop-filter: blur(10px);
}

.role-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.role-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(88, 166, 255, 0.2);
}

.role-icon {
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(88, 166, 255, 0.1), rgba(124, 58, 237, 0.1));
    border: 2px solid rgba(88, 166, 255, 0.3);
    color: #58a6ff;
}

.role-info h3 {
    font-size: 1.5rem;
    color: #58a6ff;
    margin: 0 0 5px 0;
    font-weight: 600;
}

.role-info p {
    font-size: 1rem;
    color: #8b949e;
    margin: 0;
    font-style: italic;
}

.role-description p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #c9d1d9;
    margin: 0;
}

.role-responsibilities h4 {
    font-size: 1.2rem;
    color: #e6edf3;
    margin: 0 0 15px 0;
    font-weight: 600;
}

.responsibilities-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.responsibilities-list li {
    position: relative;
    padding-left: 25px;
    font-size: 1rem;
    line-height: 1.6;
    color: #c9d1d9;
}

.responsibilities-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    top: 0;
    color: #58a6ff;
    font-weight: bold;
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .role-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .role-icon {
        width: 60px;
        height: 60px;
        font-size: 2.2rem;
    }
    
    .role-info h3 {
        font-size: 1.3rem;
    }
    
    .project-role {
        padding: 20px;
    }
}