/* Project Detail Page Styles */

/* Back Navigation */
.back-nav {
    padding: 1.5rem 0;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted-foreground);
    transition: color 0.2s ease;
}

.back-link:hover {
    color: var(--foreground);
}

.back-link svg {
    transition: transform 0.2s ease;
}

.back-link:hover svg {
    transform: translateX(-4px);
}

/* Project Hero */
.project-hero {
    padding: 2rem 0 4rem;
}

.project-hero-content {
    max-width: 800px;
}

.project-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.project-category {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background-color: var(--accent);
    color: var(--accent-foreground);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.project-year {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.project-hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.025em;
    margin-bottom: 1.5rem;
}

.project-hero-description {
    font-size: 1.25rem;
    color: var(--muted-foreground);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.project-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Hero Image */
.project-hero-image {
    padding-bottom: 4rem;
}

.hero-image-wrapper {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.dark .hero-image-wrapper {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
}

.hero-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.1), transparent 30%);
    pointer-events: none;
}

/* Project Overview */
.project-overview {
    padding: 6rem 0;
}

.overview-grid {
    display: grid;
    gap: 4rem;
}

@media (min-width: 1024px) {
    .overview-grid {
        grid-template-columns: 1.5fr 1fr;
        gap: 6rem;
    }
}

.overview-main .section-title {
    margin-bottom: 2rem;
}

.overview-text {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    color: var(--muted-foreground);
    line-height: 1.8;
    font-size: 1.0625rem;
}

.info-card {
    padding: 2rem;
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.info-card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.info-label {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.info-value {
    font-size: 0.875rem;
    font-weight: 500;
    text-align: right;
}

/* Technologies Section */
.technologies-section {
    padding: 6rem 0;
}

.tech-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
    .tech-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .tech-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

.tech-card {
    padding: 1.5rem;
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    transition: all 0.2s ease;
}

.tech-card:hover {
    background-color: var(--secondary);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.tech-icon {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--secondary);
    border-radius: calc(var(--radius) - 2px);
    color: var(--accent);
    margin: 0 auto 1rem;
    transition: background-color 0.2s ease;
}

.tech-card:hover .tech-icon {
    background-color: var(--background);
}

.tech-name {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.tech-description {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    line-height: 1.4;
}

/* Challenge Section */
.challenge-section {
    padding: 6rem 0;
}

.challenge-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .challenge-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.challenge-card {
    padding: 2rem;
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.challenge-icon {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: calc(var(--radius) - 2px);
    margin-bottom: 1.5rem;
}

.challenge-icon-problem {
    background-color: #fef2f2;
    color: #ef4444;
}

.dark .challenge-icon-problem {
    background-color: #450a0a;
}

.challenge-icon-solution {
    background-color: #f0fdf4;
    color: #22c55e;
}

.dark .challenge-icon-solution {
    background-color: #052e16;
}

.challenge-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.challenge-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.challenge-list li {
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.9375rem;
    color: var(--muted-foreground);
    line-height: 1.6;
}

.challenge-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.625rem;
    width: 6px;
    height: 6px;
    background-color: var(--accent);
    border-radius: 50%;
}

/* Gallery Section */
.gallery-section {
    padding: 6rem 0;
}

.gallery-carousel {
    position: relative;
}

.gallery-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.gallery-slide {
    display: none;
    position: relative;
}

.gallery-slide.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.gallery-slide img {
    width: 100%;
    height: auto;
    display: block;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: #fff;
}

.gallery-caption h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.gallery-caption p {
    font-size: 0.875rem;
    opacity: 0.8;
}

.gallery-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.gallery-btn {
    width: 2.75rem;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--secondary);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--foreground);
    transition: all 0.2s ease;
}

.gallery-btn:hover {
    background-color: var(--accent);
    border-color: var(--accent);
    color: var(--accent-foreground);
}

.gallery-dots {
    display: flex;
    gap: 0.5rem;
}

.gallery-dot {
    width: 0.5rem;
    height: 0.5rem;
    background-color: var(--border);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gallery-dot:hover {
    background-color: var(--muted-foreground);
}

.gallery-dot.active {
    background-color: var(--accent);
    width: 1.5rem;
    border-radius: 9999px;
}

/* Features Section */
.features-section {
    padding: 6rem 0;
}

.features-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.feature-card {
    padding: 2rem;
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.2s ease;
}

.feature-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.feature-number {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.feature-description {
    font-size: 0.9375rem;
    color: var(--muted-foreground);
    line-height: 1.7;
}

/* Results Section */
.results-section {
    padding: 6rem 0;
}

.results-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
    .results-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.result-card {
    padding: 2rem 1.5rem;
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
}

.result-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.result-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.result-description {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    line-height: 1.5;
}

/* Testimonial Section */
.testimonial-section {
    padding: 6rem 0;
}

.testimonial-card {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem;
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
}

.quote-icon {
    color: var(--accent);
    opacity: 0.3;
    margin-bottom: 1.5rem;
}

.testimonial-quote {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--foreground);
    font-style: italic;
    margin-bottom: 2rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.author-avatar {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
}

.author-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.author-name {
    font-size: 0.9375rem;
    font-weight: 600;
}

.author-role {
    font-size: 0.8125rem;
    color: var(--muted-foreground);
}

/* Next Project Section */
.next-project-section {
    padding: 6rem 0;
}

.next-project-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.next-project-title {
    font-size: clamp(1.875rem, 5vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.025em;
    margin-bottom: 1rem;
}

.next-project-description {
    font-size: 1.0625rem;
    color: var(--muted-foreground);
    margin-bottom: 2rem;
    line-height: 1.7;
}

/* Mobile Adjustments */
@media (max-width: 640px) {
    .project-hero {
        padding: 1rem 0 3rem;
    }

    .project-hero-title {
        font-size: 2rem;
    }

    .project-hero-description {
        font-size: 1rem;
    }

    .project-hero-actions {
        flex-direction: column;
    }

    .project-hero-actions .btn {
        width: 100%;
    }

    .info-card {
        padding: 1.5rem;
    }

    .challenge-card {
        padding: 1.5rem;
    }

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

    .tech-card {
        padding: 1rem;
    }

    .tech-icon {
        width: 2.5rem;
        height: 2.5rem;
    }

    .testimonial-card {
        padding: 1.5rem;
    }

    .testimonial-quote {
        font-size: 1rem;
    }

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

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