/* ==========================================================================
   DreamLayers - Project/Case Study Page Styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   Project Hero
   -------------------------------------------------------------------------- */
.project-hero {
    position: relative;
    padding: var(--space-4xl) 0 var(--space-2xl);
    overflow: hidden;
}

.project-hero__bg {
    position: absolute;
    inset: 0;
    z-index: var(--z-behind);
}

.project-hero__shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
}

.project-hero__shape--1 {
    top: -20%;
    right: 10%;
    width: 600px;
    height: 600px;
    background: var(--color-gold);
}

.project-hero__shape--2 {
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: var(--color-orange);
}

.project-hero__container {
    max-width: 1000px;
    margin: 0 auto;
}

.project-hero__back {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-xl);
    transition: color var(--transition-fast);
}

.project-hero__back svg {
    width: 20px;
    height: 20px;
}

.project-hero__back:hover {
    color: var(--color-accent);
}

.project-hero__meta {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.project-hero__category {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-accent);
}

.project-hero__divider {
    color: var(--color-text-muted);
    opacity: 0.5;
}

.project-hero__year {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.project-hero__title {
    font-family: var(--font-serif);
    font-size: var(--text-6xl);
    font-weight: 500;
    line-height: 1.05;
    color: var(--color-text-primary);
    margin-bottom: var(--space-md);
}

.project-hero__title em {
    color: var(--color-gold);
}

[data-theme="light"] .project-hero__title em {
    color: var(--brand-orange);
}

.project-hero__tagline {
    font-size: var(--text-xl);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-2xl);
}

.project-hero__info {
    display: flex;
    gap: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--color-border);
}

.project-info-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.project-info-item__label {
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
}

.project-info-item__value {
    font-size: var(--text-base);
    color: var(--color-text-primary);
}

/* --------------------------------------------------------------------------
   Project Hero Image
   -------------------------------------------------------------------------- */
.project-hero-image {
    padding: var(--space-xl) 0 var(--space-3xl);
}

.project-image-showcase {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.showcase-image {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.showcase-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 70%, rgba(32, 18, 10, 0.3) 100%);
    pointer-events: none;
}

/* --------------------------------------------------------------------------
   Project Overview
   -------------------------------------------------------------------------- */
.project-overview {
    padding: var(--space-3xl) 0;
}

.overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
}

.overview-section {
    max-width: 500px;
}

.overview-title {
    font-family: var(--font-serif);
    font-size: var(--text-2xl);
    font-weight: 500;
    color: var(--color-text-primary);
    margin-bottom: var(--space-md);
}

.overview-text {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

.overview-text:last-child {
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Project Gallery
   -------------------------------------------------------------------------- */
.project-gallery {
    padding: var(--space-2xl) 0;
}

.project-gallery--alt {
    padding: var(--space-xl) 0 var(--space-3xl);
}

.gallery-row {
    margin-bottom: var(--space-lg);
}

.gallery-row:last-child {
    margin-bottom: 0;
}

.gallery-row--full .gallery-item {
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.gallery-row--full .gallery-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 21/9;
    object-fit: cover;
}

.gallery-row--split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

.gallery-row--split .gallery-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.gallery-row--split .gallery-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.gallery-row--offset {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--space-lg);
    align-items: start;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.gallery-item img {
    transition: transform var(--transition-slow);
}

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

.gallery-item__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(32, 18, 10, 0.3) 100%);
    pointer-events: none;
}

.gallery-item--large {
    border-radius: var(--radius-xl);
}

.gallery-item--large img {
    aspect-ratio: 4/3;
}

.gallery-item--small {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.gallery-item--small img {
    aspect-ratio: 16/10;
    border-radius: var(--radius-lg);
}

/* --------------------------------------------------------------------------
   Key Features
   -------------------------------------------------------------------------- */
.project-features {
    padding: var(--space-3xl) 0;
    background: rgba(255, 255, 255, 0.02);
}

[data-theme="light"] .project-features {
    background: rgba(32, 18, 10, 0.02);
}

.features-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.features-title {
    font-family: var(--font-serif);
    font-size: var(--text-3xl);
    font-weight: 500;
    color: var(--color-text-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.feature-card {
    padding: var(--space-xl);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

[data-theme="light"] .feature-card {
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

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

.feature-card__number {
    font-family: var(--font-serif);
    font-size: var(--text-3xl);
    font-weight: 600;
    color: var(--color-white-10);
    margin-bottom: var(--space-md);
}

[data-theme="light"] .feature-card__number {
    color: rgba(32, 18, 10, 0.08);
}

.feature-card__title {
    font-family: var(--font-serif);
    font-size: var(--text-lg);
    font-weight: 500;
    color: var(--color-text-primary);
    margin-bottom: var(--space-sm);
}

.feature-card__text {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Results Section
   -------------------------------------------------------------------------- */
.project-results {
    padding: var(--space-3xl) 0;
}

.results-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.results-title {
    font-family: var(--font-serif);
    font-size: var(--text-3xl);
    font-weight: 500;
    color: var(--color-text-primary);
    margin-bottom: var(--space-sm);
}

.results-subtitle {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.result-card {
    text-align: center;
    padding: var(--space-xl);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

[data-theme="light"] .result-card {
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

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

.result-card__value {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin-bottom: var(--space-md);
}

.result-number {
    font-family: var(--font-serif);
    font-size: var(--text-4xl);
    font-weight: 600;
    color: var(--color-gold);
    line-height: 1;
}

[data-theme="light"] .result-number {
    color: var(--brand-orange);
}

.result-suffix {
    font-family: var(--font-serif);
    font-size: var(--text-2xl);
    font-weight: 500;
    color: var(--color-gold);
}

[data-theme="light"] .result-suffix {
    color: var(--brand-orange);
}

.result-card__title {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--space-xs);
}

.result-card__text {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Testimonial
   -------------------------------------------------------------------------- */
.project-testimonial {
    padding: var(--space-3xl) 0;
}

.testimonial-card {
    max-width: 900px;
    margin: 0 auto;
    padding: var(--space-2xl);
    background: linear-gradient(135deg, rgba(244, 188, 98, 0.1) 0%, rgba(196, 60, 22, 0.05) 100%);
    border: 1px solid rgba(244, 188, 98, 0.2);
    border-radius: var(--radius-xl);
    text-align: center;
}

[data-theme="light"] .testimonial-card {
    background: linear-gradient(135deg, rgba(196, 60, 22, 0.08) 0%, rgba(244, 188, 98, 0.04) 100%);
    border-color: rgba(196, 60, 22, 0.15);
}

.testimonial-quote {
    margin-bottom: var(--space-xl);
}

.quote-icon {
    width: 48px;
    height: 48px;
    color: var(--color-gold);
    opacity: 0.3;
    margin-bottom: var(--space-md);
}

[data-theme="light"] .quote-icon {
    color: var(--brand-orange);
}

.testimonial-text {
    font-family: var(--font-serif);
    font-size: var(--text-xl);
    font-style: italic;
    color: var(--color-text-primary);
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
}

.testimonial-author__avatar {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-dark);
    background: linear-gradient(135deg, var(--color-gold), var(--color-cream));
    border-radius: 50%;
}

[data-theme="light"] .testimonial-author__avatar {
    background: linear-gradient(135deg, var(--brand-orange), var(--brand-gold));
    color: #fefefe;
}

.testimonial-author__info {
    text-align: left;
}

.testimonial-author__name {
    display: block;
    font-weight: 600;
    color: var(--color-text-primary);
}

.testimonial-author__role {
    display: block;
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   Tech Stack
   -------------------------------------------------------------------------- */
.project-tech {
    padding: var(--space-3xl) 0;
    background: rgba(255, 255, 255, 0.02);
}

[data-theme="light"] .project-tech {
    background: rgba(32, 18, 10, 0.02);
}

.tech-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.tech-title {
    font-family: var(--font-serif);
    font-size: var(--text-2xl);
    font-weight: 500;
    color: var(--color-text-primary);
}

.tech-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md);
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-lg) var(--space-xl);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

[data-theme="light"] .tech-item {
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.tech-item:hover {
    border-color: var(--color-accent);
    transform: translateY(-3px);
}

.tech-item__name {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--space-xs);
}

.tech-item__role {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --------------------------------------------------------------------------
   Project Navigation
   -------------------------------------------------------------------------- */
.project-nav {
    padding: var(--space-2xl) 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.project-nav__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

.project-nav__item {
    display: flex;
    flex-direction: column;
    padding: var(--space-xl);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    position: relative;
}

[data-theme="light"] .project-nav__item {
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.project-nav__item:hover {
    border-color: var(--color-accent);
}

.project-nav__item svg {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    color: var(--color-text-muted);
    transition: all var(--transition-base);
}

.project-nav__item--prev {
    padding-left: var(--space-3xl);
}

.project-nav__item--prev svg {
    left: var(--space-lg);
}

.project-nav__item--prev:hover svg {
    transform: translateY(-50%) translateX(-5px);
    color: var(--color-accent);
}

.project-nav__item--next {
    text-align: right;
    padding-right: var(--space-3xl);
}

.project-nav__item--next svg {
    right: var(--space-lg);
}

.project-nav__item--next:hover svg {
    transform: translateY(-50%) translateX(5px);
    color: var(--color-accent);
}

.project-nav__label {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin-bottom: var(--space-xs);
}

.project-nav__name {
    font-family: var(--font-serif);
    font-size: var(--text-xl);
    font-weight: 500;
    color: var(--color-text-primary);
    transition: color var(--transition-fast);
}

.project-nav__item:hover .project-nav__name {
    color: var(--color-accent);
}

/* --------------------------------------------------------------------------
   Project CTA
   -------------------------------------------------------------------------- */
.project-cta {
    padding: var(--space-3xl) 0;
}

.project-cta__card {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-2xl);
    text-align: center;
    background: linear-gradient(135deg, rgba(244, 188, 98, 0.15) 0%, rgba(196, 60, 22, 0.1) 100%);
    border: 1px solid rgba(244, 188, 98, 0.2);
    border-radius: var(--radius-xl);
}

[data-theme="light"] .project-cta__card {
    background: linear-gradient(135deg, rgba(196, 60, 22, 0.1) 0%, rgba(244, 188, 98, 0.08) 100%);
    border-color: rgba(196, 60, 22, 0.15);
}

.project-cta__title {
    font-family: var(--font-serif);
    font-size: var(--text-3xl);
    font-weight: 500;
    color: var(--color-text-primary);
    margin-bottom: var(--space-sm);
}

.project-cta__text {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-xl);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .project-hero__title {
        font-size: var(--text-5xl);
    }
    
    .features-grid,
    .results-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .overview-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .overview-section {
        max-width: none;
    }
    
    .gallery-row--offset {
        grid-template-columns: 1fr;
    }
    
    .gallery-item--small {
        flex-direction: row;
    }
}

@media (max-width: 768px) {
    .project-hero__title {
        font-size: var(--text-4xl);
    }
    
    .project-hero__info {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .gallery-row--split {
        grid-template-columns: 1fr;
    }
    
    .features-grid,
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .project-nav__grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item--small {
        flex-direction: column;
    }
    
    .tech-grid {
        gap: var(--space-sm);
    }
    
    .tech-item {
        padding: var(--space-md);
    }
}

@media (max-width: 480px) {
    .project-hero__title {
        font-size: var(--text-3xl);
    }
    
    .testimonial-text {
        font-size: var(--text-lg);
    }
    
    .testimonial-author {
        flex-direction: column;
        text-align: center;
    }
    
    .testimonial-author__info {
        text-align: center;
    }
}

