/* --- METBIC Project Detail Styles --- */

:root {
    --p-bg-dark: #121212;
    --p-bg-card: #1e1e1e;
    --p-accent: #00cec9;
    /* Mint from main site */
    --p-text: #ecf0f1;
    --p-text-muted: #bdc3c7;
    --p-border: #333;
    --p-blueprint: #2c3e50;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

body.project-body {
    background-color: var(--p-bg-dark);
    color: var(--p-text);
    font-family: var(--font-body);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Nav */
.project-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(18, 18, 18, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--p-border);
}

.back-link {
    color: var(--p-text);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s;
}

.back-link:hover {
    color: var(--p-accent);
}

.project-nav-title {
    font-weight: 700;
    letter-spacing: 1px;
}

/* Common Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-block {
    padding: 80px 0;
    border-bottom: 1px solid var(--p-border);
}

.section-heading {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--p-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-left: 5px solid var(--p-accent);
    padding-left: 15px;
}

/* Hero */
.project-hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at center, #2c3e50 0%, #121212 100%);
    padding: 60px 0;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    padding: 0 20px;
}

.hero-label {
    color: var(--p-accent);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 10px;
}

/* Hero Neon Title */
.hero-title.neon-effect {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-style: italic;
    text-transform: uppercase;
    font-size: 6rem;
    line-height: 1;
    margin: 0 0 15px 0;
    color: #fff;
    -webkit-text-fill-color: initial;
    background: none;
    letter-spacing: -2px;
    /* Soft Neon Glow */
    text-shadow:
        0 0 5px rgba(255, 255, 255, 0.8),
        0 0 15px rgba(142, 68, 173, 0.4),
        0 0 30px rgba(142, 68, 173, 0.3);
    animation: neon-pulse 3s infinite alternate ease-in-out;
}

@keyframes neon-pulse {
    from {
        text-shadow:
            0 0 5px rgba(255, 255, 255, 0.8),
            0 0 15px rgba(142, 68, 173, 0.4),
            0 0 30px rgba(142, 68, 173, 0.3);
    }

    to {
        text-shadow:
            0 0 10px rgba(255, 255, 255, 0.9),
            0 0 25px rgba(155, 89, 182, 0.6),
            0 0 45px rgba(155, 89, 182, 0.5);
    }
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--p-text-muted);
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.hero-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(142, 68, 173, 0.4);
    /* Purple glow */
    transform: rotate(-2deg);
    transition: transform 0.3s;
}

.hero-image img:hover {
    transform: rotate(0) scale(1.02);
    box-shadow: 0 0 50px rgba(142, 68, 173, 0.6);
}

/* Problem Grid */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.problem-card {
    background: var(--p-bg-card);
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    transition: transform 0.3s;
}

.problem-card:hover {
    transform: translateY(-5px);
    background: #252525;
}

.prob-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.persona-block {
    background: rgba(0, 206, 201, 0.1);
    border: 1px solid var(--p-accent);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.persona-icon {
    font-size: 2.5rem;
}

/* Functions */
.function-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.func-item {
    background: var(--p-bg-card);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    border: 1px solid var(--p-border);
}

.func-img-placeholder {
    font-size: 2rem;
    color: var(--p-accent);
}

/* Scenario */
.scenario-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.step {
    flex: 1;
    min-width: 200px;
    background: var(--p-bg-card);
    padding: 20px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.step-num {
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 4rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.05);
}

/* Specs Blueprint */
.blueprint-container {
    background: var(--p-blueprint);
    padding: 40px;
    border-radius: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
}

.specs-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: center;
}

.spec-row {
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
    padding-bottom: 5px;
}

.blueprint-visual {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.blueprint-placeholder {
    width: 100%;
    height: 300px;
    border: 2px solid white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.blueprint-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
}

.blueprint-placeholder span {
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px;
}

/* Colors */
.colors-grid {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.color-card {
    text-align: center;
}

.color-swatch {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: var(--c-bg);
    margin-bottom: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border: 4px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s;
}

.color-card:hover .color-swatch {
    transform: scale(1.1);
    cursor: pointer;
}

/* Active State for Colors (JS Toggled) */
.color-card.active-color .color-swatch {
    transform: scale(1.2);
    box-shadow: 0 0 30px var(--c-bg), 0 0 60px var(--c-bg);
    /* Intense Glow */
    animation: color-pulse 1s infinite alternate;
    border-color: #fff;
}

@keyframes color-pulse {
    from {
        box-shadow: 0 0 20px var(--c-bg);
    }

    to {
        box-shadow: 0 0 50px var(--c-bg), 0 0 10px #fff;
    }
}

/* Gallery */
/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.gallery-item-wrapper {
    position: relative;
    border-radius: 12px;
    height: 300px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s;
    background: #000;
    cursor: default;
}

.gallery-item-wrapper:hover {
    transform: scale(1.3);
    /* Scale the whole card significantly */
    z-index: 1000;
    /* Pop to front over siblings */
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    /* Optional: sharpen corners on zoom or keep */
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* Remove inline gap */
    border-radius: 12px;
    /* Apply radius to img */
    transition: opacity 0.3s;
}

.gallery-item-wrapper:hover .gallery-img {
    /* transform: scale(1.15); Removed inner zoom */
    opacity: 1;
}

.gallery-img.placeholder {
    background: #1a1a1a;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #555;
    font-size: 3rem;
}

.img-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    border-radius: 0 0 12px 12px;
    /* Match bottom radius */
    box-sizing: border-box;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gallery-item-wrapper:hover .img-caption {
    transform: translateY(0);
}

/* Advantages */
.adv-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    list-style: none;
    padding: 0;
}

.adv-list li {
    font-size: 1.1rem;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

/* Story */
.process-timeline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.process-step {
    background: var(--p-accent);
    color: #000;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 700;
}

.process-line {
    flex: 1;
    height: 2px;
    background: var(--p-border);
    min-width: 50px;
}

/* About & Footer */
.designer-section {
    background: #000;
    padding: 60px 0;
    text-align: center;
}

.project-footer {
    padding: 80px 0;
    text-align: center;
    background: radial-gradient(circle at center, #2c3e50 0%, #000 100%);
}

.btn-cta-big {
    display: inline-block;
    background: var(--p-accent);
    color: #000;
    padding: 20px 50px;
    border-radius: 50px;
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 10px 30px rgba(0, 206, 201, 0.4);
}

.btn-cta-big:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 206, 201, 0.6);
}

.copyright {
    margin-top: 40px;
    opacity: 0.5;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .process-line {
        display: none;
    }

    .process-timeline {
        flex-direction: column;
        gap: 10px;
    }
}

/* --- Lightbox Styles --- */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    /* Above nav */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    cursor: zoom-out;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 4px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    cursor: default;
}

.lightbox-overlay.active .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 3rem;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
    z-index: 1001;
}

.lightbox-close:hover {
    color: var(--p-accent);
}

.gallery-item-wrapper {
    cursor: default;
    /* Normal mouse cursor */
}