/* ==========================================
   Project Page Styles
   ========================================== */

/* Project Hero */
.project-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: flex-end;
    padding: 8rem 0 4rem;
    overflow: hidden;
}

.project-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--color-bg) 0%, transparent 50%, transparent 100%);
    z-index: 1;
}

.project-hero .container {
    position: relative;
    z-index: 2;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    transition: color var(--transition-fast);
}

.back-link svg {
    width: 20px;
    height: 20px;
}

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

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

.project-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-accent);
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-accent);
    border-radius: 2px;
}

.project-hero h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.project-tagline {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: var(--color-text-muted);
    font-weight: 300;
    max-width: 600px;
}

/* Hero Backgrounds */
.project-hero-alpha {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.project-hero-artisan {
    background: linear-gradient(160deg, #2d2a2e 0%, #1a1a1a 50%, #2d2a2e 100%);
}

.project-hero-nova {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 50%, #1a1a1a 100%);
}

.project-hero-mindful {
    background: linear-gradient(135deg, #1a2a3a 0%, #0d1b2a 50%, #1b263b 100%);
}

/* Project Overview */
.project-overview {
    padding: 4rem 0;
    border-bottom: 1px solid var(--color-border);
}

.project-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.project-info-item h3 {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

.project-info-item p {
    font-size: 1rem;
    color: var(--color-text);
    font-weight: 500;
}

/* Project Content */
.project-content {
    padding: 6rem 0;
}

.project-section {
    max-width: 700px;
    margin: 0 auto 4rem;
}

.project-section:last-child {
    margin-bottom: 0;
}

.project-section h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

.project-section p {
    margin-bottom: 1.25rem;
    line-height: 1.8;
}

.project-section p:last-child {
    margin-bottom: 0;
}

/* Feature List */
.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-text-muted);
}

.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 6px;
    height: 6px;
    background-color: var(--color-accent);
    border-radius: 50%;
}

/* Tech Stack */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tech-tag {
    padding: 0.5rem 1rem;
    background-color: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 2px;
    font-size: 0.875rem;
    color: var(--color-text);
    transition: all var(--transition-fast);
}

.tech-tag:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

/* Results Grid */
.results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.result-item {
    text-align: center;
    padding: 2rem;
    background-color: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 4px;
}

.result-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.result-label {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Project Images */
.project-image-full {
    margin: 4rem 0;
}

.project-image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 4rem 0;
}

/* Project Screens - Mockup Containers */
.project-screen {
    background-color: var(--color-bg-secondary);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    aspect-ratio: 16/10;
}

/* Screen Content */
.screen-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.screen-header {
    padding: 0.75rem 1rem;
    background-color: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--color-border);
}

[data-theme="light"] .screen-header {
    background-color: rgba(0, 0, 0, 0.03);
}

.screen-dots {
    display: flex;
    gap: 6px;
}

.screen-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .screen-dots span {
    background-color: rgba(0, 0, 0, 0.1);
}

.screen-dots span:first-child {
    background-color: #ff5f57;
}

.screen-dots span:nth-child(2) {
    background-color: #ffbd2e;
}

.screen-dots span:nth-child(3) {
    background-color: #28ca41;
}

.screen-body {
    flex: 1;
    display: flex;
    padding: 1rem;
    gap: 1rem;
}

/* Dashboard Layout (Project Alpha) */
.dashboard-sidebar {
    width: 60px;
    background-color: rgba(201, 168, 108, 0.05);
    border-radius: 4px;
}

.dashboard-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.dash-card {
    aspect-ratio: 2/1;
    background: linear-gradient(135deg, rgba(201, 168, 108, 0.1) 0%, rgba(201, 168, 108, 0.05) 100%);
    border-radius: 4px;
    border: 1px solid rgba(201, 168, 108, 0.1);
}

.dashboard-chart {
    flex: 1;
    background: linear-gradient(to top, rgba(201, 168, 108, 0.08) 0%, transparent 100%);
    border-radius: 4px;
    border: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
}

.dashboard-chart::before {
    content: '';
    position: absolute;
    bottom: 20%;
    left: 5%;
    right: 5%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 168, 108, 0.3), transparent);
}

.dashboard-chart::after {
    content: '';
    position: absolute;
    bottom: 10%;
    left: 10%;
    right: 10%;
    height: 40%;
    background:
        linear-gradient(to top, rgba(201, 168, 108, 0.2), transparent) no-repeat 0% 100% / 15% 60%,
        linear-gradient(to top, rgba(201, 168, 108, 0.3), transparent) no-repeat 20% 100% / 15% 80%,
        linear-gradient(to top, rgba(201, 168, 108, 0.2), transparent) no-repeat 40% 100% / 15% 50%,
        linear-gradient(to top, rgba(201, 168, 108, 0.4), transparent) no-repeat 60% 100% / 15% 90%,
        linear-gradient(to top, rgba(201, 168, 108, 0.3), transparent) no-repeat 80% 100% / 15% 70%;
}

/* Chart Visualizations */
.chart-visualization {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    height: 80%;
    width: 100%;
    padding: 1rem;
}

.chart-bars .bar {
    flex: 1;
    height: var(--height);
    background: linear-gradient(to top, var(--color-accent), rgba(201, 168, 108, 0.3));
    border-radius: 4px 4px 0 0;
    transition: transform var(--transition-fast);
}

.chart-bars .bar:hover {
    transform: scaleY(1.05);
}

.pie-chart {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: conic-gradient(
        var(--color-accent) 0deg 120deg,
        rgba(201, 168, 108, 0.5) 120deg 220deg,
        rgba(201, 168, 108, 0.2) 220deg 360deg
    );
    position: relative;
}

.pie-chart::after {
    content: '';
    position: absolute;
    inset: 30%;
    background-color: var(--color-bg-secondary);
    border-radius: 50%;
}

.pie-legend {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-left: 2rem;
}

.legend-item {
    width: 80px;
    height: 12px;
    background-color: rgba(201, 168, 108, 0.2);
    border-radius: 2px;
}

.legend-item:first-child {
    background-color: var(--color-accent);
    width: 100px;
}

.legend-item:nth-child(2) {
    background-color: rgba(201, 168, 108, 0.5);
    width: 70px;
}

/* Product Grid (Artisan Market) */
.product-grid-mockup {
    height: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 1.5rem;
}

.product-card-mockup {
    background-color: rgba(201, 168, 108, 0.05);
    border-radius: 8px;
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.product-image-mockup {
    aspect-ratio: 1;
    background: linear-gradient(135deg, rgba(201, 168, 108, 0.15) 0%, rgba(201, 168, 108, 0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-mockup::after {
    content: '';
    width: 40%;
    height: 40%;
    background-color: rgba(201, 168, 108, 0.3);
    border-radius: 4px;
}

.product-info-mockup {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.product-info-mockup span {
    height: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

[data-theme="light"] .product-info-mockup span {
    background-color: rgba(0, 0, 0, 0.1);
}

.product-info-mockup span:first-child {
    width: 80%;
}

.product-info-mockup span:last-child {
    width: 40%;
    background-color: var(--color-accent);
}

/* Brand Elements (Nova Studio) */
.brand-mockup {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
}

.brand-logo-mockup {
    width: 150px;
    height: 150px;
    border: 3px solid var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.brand-logo-mockup::before {
    content: 'N';
    font-family: var(--font-heading);
    font-size: 4rem;
    color: var(--color-accent);
}

.brand-logo-mockup::after {
    content: '';
    position: absolute;
    inset: -20px;
    border: 1px solid rgba(201, 168, 108, 0.2);
    border-radius: 50%;
}

.color-palette-mockup {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
}

.color-swatch {
    flex: 1;
    border-radius: 4px;
    display: flex;
    align-items: flex-end;
    padding: 1rem;
}

.color-swatch:nth-child(1) {
    background-color: var(--color-accent);
}

.color-swatch:nth-child(2) {
    background-color: #2a2a2a;
    border: 1px solid var(--color-border);
}

.color-swatch:nth-child(3) {
    background-color: #f5f5f5;
}

.color-swatch span {
    font-size: 0.75rem;
    font-family: monospace;
    opacity: 0.8;
}

.color-swatch:nth-child(3) span {
    color: #1a1a1a;
}

/* App Mockup (Mindful) */
.app-mockup-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a2a3a 0%, #0d1b2a 100%);
    padding: 2rem;
}

.phone-mockup {
    width: 200px;
    height: 400px;
    background-color: #0a0a0a;
    border-radius: 30px;
    border: 3px solid #333;
    padding: 10px;
    position: relative;
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 20px;
    background-color: #1a1a1a;
    border-radius: 10px;
}

.phone-screen {
    height: 100%;
    background: linear-gradient(180deg, #1a2a3a 0%, #0d1b2a 100%);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.breathing-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 168, 108, 0.6) 0%, rgba(201, 168, 108, 0.1) 70%);
    animation: breathe 4s ease-in-out infinite;
    margin-bottom: 2rem;
}

.app-text-mockup {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.app-text-mockup span {
    height: 8px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

[data-theme="light"] .app-text-mockup span {
    background-color: rgba(255, 255, 255, 0.4);
}

.app-text-mockup span:first-child {
    width: 80px;
    background-color: rgba(201, 168, 108, 0.5);
}

.app-text-mockup span:last-child {
    width: 120px;
}

/* Project Navigation */
.project-nav {
    border-top: 1px solid var(--color-border);
    padding: 3rem 0;
}

.project-nav .container {
    display: flex;
    justify-content: space-between;
}

.project-nav-link {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: all var(--transition-fast);
}

.project-nav-link.prev {
    align-items: flex-start;
}

.project-nav-link.next {
    align-items: flex-end;
}

.nav-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
}

.nav-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-text);
    transition: color var(--transition-fast);
}

.project-nav-link:hover .nav-title {
    color: var(--color-accent);
}

/* Responsive */
@media (max-width: 768px) {
    .project-hero {
        min-height: 60vh;
        padding: 6rem 0 3rem;
    }

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

    .project-image-grid {
        grid-template-columns: 1fr;
    }

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

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

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

    .project-nav .container {
        flex-direction: column;
        gap: 2rem;
    }

    .project-nav-link.next {
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .project-info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .phone-mockup {
        width: 160px;
        height: 320px;
    }

    .breathing-circle {
        width: 70px;
        height: 70px;
    }
}
