/* Project Detail Styles */
.project-detail {
    padding: 150px 0 100px;
    min-height: 100vh;
}

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

.back-link a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
    font-weight: 500;
    transition: all 0.3s ease;
}

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

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

.project-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: white;
    line-height: 1.2;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.project-date, .demo-link, .medium-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    color: var(--text-gray);
}

.github-link, .demo-link, .medium-link {
    transition: all 0.3s ease;
}

.github-link:hover{
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(99, 168, 231, 0.4);
    background-color: #5190c9; /* Match with submit button hover */
    color: white;
}

.demo-link:hover, .medium-link:hover {
    color: var(--primary-color);
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.project-tag {
    background-color: rgba(99, 168, 231, 0.15);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(99, 168, 231, 0.3);
}

.project-banner {
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

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

.project-banner:hover img {
    transform: scale(1.02);
}

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

.project-section {
    margin-bottom: 50px;
}

.project-section h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.project-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 20px;
}

.feature-list, .future-list {
    padding-left: 20px;
}

.feature-list li, .future-list li {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 15px;
    position: relative;
    padding-left: 10px;
}

.feature-list li strong {
    color: var(--primary-color);
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 10px;
    min-width: 120px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.tech-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.tech-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.cta-section {
    margin-top: 30px;
    text-align: center;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #00ab6c; /* Medium green color */
    color: white;
    padding: 16px 34px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 171, 108, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 171, 108, 0.4);
    background-color: #00926c;
    color: white;
}

.cta-button i {
    font-size: 1.3rem;
}

.challenge-solution {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.challenge-solution h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.challenge-solution h4 {
    font-size: 1.2rem;
    margin: 15px 0 10px;
    color: var(--primary-color);
}

.project-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 70px;
    border-top: 1px solid var(--border-color);
    padding-top: 40px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 45%;
    transition: all 0.3s ease;
}

.nav-item.prev {
    text-align: left;
}

.nav-item.next {
    text-align: right;
    margin-left: auto;
}

.nav-item span {
    display: block;
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 5px;
}

.nav-item h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-light);
}

.nav-item:hover {
    color: var(--primary-color);
}

.nav-item:hover h4 {
    color: var(--primary-color);
}

.nav-item.prev:hover {
    transform: translateX(-5px);
}

.nav-item.next:hover {
    transform: translateX(5px);
}

/* Impact & Results Section */
.impact-metrics {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    margin: 30px 0;
}

.metric {
    flex: 1;
    min-width: 150px;
    background-color: var(--card-bg);
    padding: 25px 20px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.metric:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.15);
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.metric-label {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-light);
}

/* CTA Sections */
.cta-section {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    margin: 40px 0;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.cta-section h2 {
    margin-bottom: 15px;
}

.cta-section p {
    margin-bottom: 25px;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(99, 168, 231, 0.3);
    text-align: center;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(99, 168, 231, 0.4);
}

.demo-button {
    background-color: var(--primary-color); /* Changed from Medium green to primary color */
    box-shadow: 0 5px 15px rgba(99, 168, 231, 0.3);
}

.demo-button:hover {
    box-shadow: 0 10px 20px rgba(99, 168, 231, 0.4);
    background-color: #5190c9; /* Match with home section button hover */
    color: white;
}

.github-button {
    background-color: #333;
    box-shadow: 0 5px 15px rgba(51, 51, 51, 0.3);
}

.github-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(99, 168, 231, 0.4);
    background-color: #5190c9; /* Match with submit button hover */
    color: white;
}

/* Medium Link */
.medium-link {
    color: #00ab6c;
}

/* Responsive styles */
@media screen and (max-width: 992px) {
    .project-title {
        font-size: 3rem;
    }
    
    .project-banner {
        height: 400px;
    }
}

@media screen and (max-width: 768px) {
    .project-detail {
        padding: 120px 0 60px;
    }
    
    .project-title {
        font-size: 2.5rem;
    }
    
    .project-meta {
        flex-direction: column;
        gap: 15px;
    }
    
    .project-banner {
        height: 300px;
    }
    
    .project-section h2 {
        font-size: 1.8rem;
    }
    
    .tech-stack {
        justify-content: center;
    }
    
    .project-nav {
        flex-direction: column;
        gap: 30px;
    }
    
    .nav-item {
        max-width: 100%;
    }
    
    .nav-item.next {
        justify-content: flex-end;
    }
    
    .cta-button {
        padding: 14px 24px;
        font-size: 1rem;
    }

    .impact-metrics {
        flex-direction: column;
        align-items: center;
    }

    .metric {
        width: 100%;
        max-width: 300px;
    }

    .cta-buttons {
        flex-direction: column;
    }
}

@media screen and (max-width: 576px) {
    .project-title {
        font-size: 2rem;
    }
    
    .project-banner {
        height: 200px;
    }
    
    .cta-button {
        padding: 12px 20px;
        font-size: 0.9rem;
        width: 100%;
    }

    .metric-value {
        font-size: 2rem;
    }

    .metric-label {
        font-size: 0.9rem;
    }

    .cta-section {
        padding: 20px;
    }
}

/* Light Mode Adjustments */
body.light-theme .project-tag {
    background-color: rgba(99, 168, 231, 0.1);
    border: 1px solid rgba(99, 168, 231, 0.2);
}

body.light-theme .project-title {
    color: var(--text-dark);
}

body.light-theme .tech-item,
body.light-theme .challenge-solution {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

body.light-theme .cta-button {
    box-shadow: 0 5px 15px rgba(0, 171, 108, 0.2);
}

body.light-theme .cta-button:hover {
    box-shadow: 0 8px 20px rgba(0, 171, 108, 0.3);
}
