/* project_3D_01 — extends main.css + menu.css */

/* ── model-viewer: hide children until element is defined ── */
:not(:defined) > * {
    display: none;
}

/* ── Active nav indicator ── */
.nav-links li a.nav-active {
    color: rgba(230, 238, 242, 0.95) !important;
}

/* ── Project Header ── */

.project-header {
    padding: 44px 8vw 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: linear-gradient(180deg, #111719 0%, #1a2022 100%);
}

.back-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(165, 175, 183, 0.48);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 22px;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: rgba(195, 205, 212, 0.75);
}

.project-eyebrow {
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(165, 105, 105, 0.72);
    font-weight: 500;
    margin: 0 0 10px;
}

.project-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #dde4e8;
    margin: 0 0 10px;
}

.project-title::after {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background: #8b2222;
    margin-top: 10px;
    margin-bottom: 16px;
}

.project-intro {
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    color: rgba(170, 182, 190, 0.62);
    font-weight: 300;
    line-height: 1.8;
    margin: 0;
    max-width: 640px;
}

/* ── 3D Viewer ── */

.viewer-section {
    background: #0e1416;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.viewer-wrapper {
    width: 100%;
    height: 68vh;
    min-height: 480px;
    background-image: url("../img/back.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-color: #0e1416;
    position: relative;
}

model-viewer {
    width: 100%;
    height: 100%;
    position: relative;
    --poster-color: #0e1416;
}

.viewer-hint {
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    letter-spacing: 1.5px;
    color: rgba(145, 158, 165, 0.38);
    text-align: center;
    padding: 12px 0 14px;
    margin: 0;
    background: #0e1416;
}

/* ── AR prompt (from model-viewer spec) ── */

#ar-prompt {
    position: absolute;
    left: 50%;
    bottom: 60px;
    animation: elongate 2s infinite ease-in-out alternate;
    display: none;
}

model-viewer[ar-status="session-started"] > #ar-prompt {
    display: block;
}

model-viewer > #ar-prompt > img {
    animation: circle 4s linear infinite;
}

@keyframes circle {
    from { transform: translateX(-50%) rotate(0deg)   translateX(50px) rotate(0deg); }
    to   { transform: translateX(-50%) rotate(360deg) translateX(50px) rotate(-360deg); }
}

@keyframes elongate {
    from { transform: translateX(100px); }
    to   { transform: translateX(-100px); }
}

/* ── Project Description ── */

.project-desc-section {
    padding: 52px 8vw 56px;
    background: #1a2022;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.project-desc-content {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 56px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: start;
}

/* Main description */

.desc-section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: #d0d8dc;
    font-weight: 500;
    margin: 0 0 18px;
    text-align: left;
}

.desc-section-title::after {
    content: '';
    display: block;
    width: 22px;
    height: 2px;
    background: #8b2222;
    margin-top: 8px;
}

.desc-text {
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    color: rgba(172, 184, 192, 0.65);
    font-weight: 300;
    line-height: 1.88;
    margin: 0 0 28px;
    text-align: left;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tag {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    letter-spacing: 0.6px;
    color: rgba(172, 184, 192, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 4px 12px;
    border-radius: 2px;
}

/* Side info panel */

.desc-side {
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    padding-left: 32px;
}

.info-block {
    margin-bottom: 20px;
}

.info-block:last-child {
    margin-bottom: 0;
}

.info-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(165, 105, 105, 0.62);
    font-weight: 500;
    margin: 0 0 4px;
}

.info-value {
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    color: rgba(185, 196, 202, 0.72);
    font-weight: 300;
    margin: 0;
    line-height: 1.5;
}

.attr-link {
    color: rgba(160, 185, 205, 0.68);
    text-decoration: none;
    border-bottom: 1px solid rgba(100, 140, 170, 0.25);
    padding-bottom: 1px;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.attr-link:hover {
    color: rgba(180, 205, 225, 0.9);
    border-color: rgba(100, 140, 170, 0.6);
}

/* ── Responsive ── */

@media (max-width: 800px) {
    .project-desc-content {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .desc-side {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
        padding-left: 0;
        padding-top: 28px;
    }

    .viewer-wrapper {
        height: 55vh;
        min-height: 360px;
    }
}

@media (max-width: 600px) {
    .project-header,
    .project-desc-section {
        padding-left: 20px;
        padding-right: 20px;
    }

    .project-title {
        font-size: 22px;
        letter-spacing: 2px;
    }
}
