/* =========================================
   RESET
========================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --black: #1c1c1c;
    --black-deep: #161616;

    --panel: #202020;
    --panel-light: #272727;
    --panel-hover: #303030;

    --white: #ededed;
    --gray-light: #a8a8a8;
    --gray: #777777;
    --gray-dark: #444444;
    --border: #383838;
}


/* =========================================
   BODY
========================================= */

body {
    min-height: 100vh;

    font-family: "Poppins", sans-serif;

    color: var(--white);

    background: var(--black);

    overflow-x: hidden;
}


/* =========================================
   BLENDER VIEWPORT BACKGROUND
========================================= */

.viewport-background {
    position: fixed;

    inset: 0;

    z-index: -2;
}


/* =========================================
   WORKSHOP SHELL
========================================= */

.workshop-shell {
    width: min(1800px, 100%);

    min-height: 100vh;

    margin: 0 auto;

    display: flex;

    flex-direction: column;
}


/* =========================================
   TOPBAR
========================================= */

.topbar {
    min-height: 64px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;

    padding: 0 24px;

    background: var(--black);

    border-bottom: 1px solid var(--border);

        position: relative;

    display: flex;

    align-items: center;

    justify-content: center;
}


/* BRAND */

.brand {
    display: flex;

    align-items: center;

    gap: 12px;

    min-width: 220px;
}


.brand-symbol {
    display: flex;

    align-items: center;

    justify-content: center;

    width: 32px;

    height: 32px;

    color: var(--black);

    font-size: 17px;

    background: var(--white);

    border-radius: 50%;
}


.brand h1 {
    color: var(--white);

    font-size: 16px;

    font-weight: 700;

    letter-spacing: 0.08em;
}


.brand span:not(.brand-symbol) {
    display: block;

    margin-top: 2px;

    color: var(--gray);

    font-size: 8px;

    letter-spacing: 0.12em;
}


/* MAIN NAVIGATION */

.main-navigation {
    display: flex;

    align-items: center;

    gap: 2px;
}


.main-navigation a {
    padding: 9px 13px;

    color: var(--gray-light);

    font-size: 14px;

    font-weight: 600;

    letter-spacing: 0.08em;

    text-decoration: none;

    border-radius: 4px;

    transition:
        color 0.2s ease,
        background 0.2s ease;
}


.main-navigation a:hover {
    color: var(--white);

    background: var(--panel-light);
}


.main-navigation a.active {
    color: var(--black);

    background: var(--white);
}


/* TOPBAR ACTIONS */

.topbar-actions {
    display: flex;

    align-items: center;

    justify-content: flex-end;

    gap: 6px;

    min-width: 220px;
}


.language-button,
.search-button {
    height: 32px;

    color: var(--gray-light);

    font-family: inherit;

    font-size: 9px;

    background: var(--panel);

    border: 1px solid var(--border);

    border-radius: 4px;

    cursor: pointer;

    transition:
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}


.language-button {
    padding: 0 10px;
}


.search-button {
    width: 32px;
}


.language-button:hover,
.search-button:hover {
    color: var(--white);

    background: var(--panel-hover);

    border-color: var(--gray-dark);
}


/* =========================================
   WORKSPACE BODY
========================================= */

.workspace-body {
    flex: 1;

    display: grid;

    grid-template-columns: 220px minmax(0, 1fr) 240px;

    min-height: 0;
}


/* =========================================
   SIDEBAR
========================================= */

.sidebar {
    display: flex;

    flex-direction: column;

    min-height: calc(100vh - 104px);

    padding: 20px 12px;

    background: var(--black);

    border-right: 1px solid var(--border);
}


.sidebar-section {
    display: flex;

    flex-direction: column;

    gap: 2px;
}


.sidebar-heading,
.panel-heading,
.eyebrow {
    color: var(--gray);

    font-size: 14px;

    font-weight: 700;

    letter-spacing: 0.12em;
}


.sidebar-heading {
    padding: 0 10px;

    margin-bottom: 8px;
}


.sidebar-link {
    display: flex;

    align-items: center;

    gap: 9px;

    min-height: 34px;

    padding: 0 10px;

    color: var(--gray-light);

    font-size: 14px;

    text-decoration: none;

    border-radius: 3px;

    transition:
        color 0.2s ease,
        background 0.2s ease;
}


.sidebar-link:hover {
    color: var(--white);

    background: var(--panel-light);
}


.sidebar-link.active {
    color: var(--black);

    background: var(--white);
}


.sidebar-link > span:first-child {
    width: 16px;

    color: var(--gray);

    text-align: center;
}


.sidebar-link.active > span:first-child {
    color: var(--black);
}


.sidebar-divider {
    height: 1px;

    margin: 20px 0;

    background: var(--border);
}


.lesson-link {
    font-size: 14px;
}


.lesson-number {
    color: var(--gray) !important;

    font-size: 10px;

    font-weight: 700;
}


.sidebar-bottom {
    margin-top: auto;
}


/* =========================================
   MAIN CONTENT
========================================= */

.main-content {
    min-width: 0;

    padding: 44px clamp(24px, 5vw, 72px) 70px;

    overflow: hidden;

 background:
        linear-gradient(
            rgba(28, 28, 28, 0.82),
            rgba(28, 28, 28, 0.92)
        ),
        url("https://file.garden/Z-ADSNZG32_D6MFV/CARRD/WORKSHOP.MSGRIMM/ASSETS/blender%20viewport.png")
        center / cover
        no-repeat;

}


/* =========================================
   WELCOME SECTION
========================================= */

.welcome-section {
    display: grid;

    grid-template-columns: 220px minmax(0, 1fr);

    align-items: center;

    gap: 32px;

    max-width: 900px;

    margin-bottom: 44px;
}


.welcome-image {
    height: 260px;

    display: flex;

    align-items: flex-end;

    justify-content: center;

    overflow: hidden;

    background: var(--black);


    border-radius: 4px;
}


.welcome-image img {
    width: 100%;

    height: 100%;

    object-fit: contain;

    object-position: center bottom;
}


.welcome-content {
    min-width: 0;
}


.welcome-content .eyebrow {
    display: block;

    margin-bottom: 14px;

    color: var(--gray-light);
}


.welcome-content h2 {
    color: var(--white);

    font-size: clamp(34px, 5vw, 58px);

    font-weight: 700;

    line-height: 1;

    letter-spacing: -0.05em;
}


.welcome-content p {
    max-width: 500px;

    margin-top: 18px;

    color: var(--gray-light);

    font-size: 12px;

    line-height: 1.8;
}


/* =========================================
   GENERAL CARDS
========================================= */

.continue-card,
.course-card,
.guide-card {
    background: var(--panel);

    border: 1px solid var(--border);

    border-radius: 4px;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}


.continue-card:hover,
.course-card:hover,
.guide-card:hover {
    border-color: var(--gray-dark);
}


/* =========================================
   CONTINUE CARD
========================================= */

.continue-card {
    margin-bottom: 56px;

    overflow: hidden;
}


.card-header {
    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 10px 16px;

    color: var(--gray);

    font-size: 8px;

    font-weight: 700;

    letter-spacing: 0.12em;

    background: var(--black-deep);

    border-bottom: 1px solid var(--border);
}


.card-status {
    color: var(--gray-light);
}


.continue-content {
    display: flex;

    gap: 20px;

    padding: 20px;
}


.course-placeholder {
    flex-shrink: 0;

    width: 140px;

    min-height: 130px;

    display: flex;

    align-items: center;

    justify-content: center;

    color: var(--white);

    font-size: 34px;

    font-weight: 800;

    background: var(--black-deep);

    border: 1px solid var(--border);

    border-radius: 3px;
}


.continue-info {
    flex: 1;
}


.course-label {
    color: var(--gray-light);

    font-size: 8px;

    font-weight: 700;

    letter-spacing: 0.1em;
}


.continue-info h3 {
    margin-top: 6px;

    color: var(--white);

    font-size: 19px;
}


.continue-info p {
    margin-top: 4px;

    color: var(--gray-light);

    font-size: 10px;
}


/* =========================================
   PROGRESS
========================================= */

.progress-container {
    display: flex;

    align-items: center;

    gap: 10px;

    margin: 20px 0;
}


.progress-container > span {
    color: var(--gray);

    font-size: 8px;
}


.progress-bar {
    flex: 1;

    height: 4px;

    overflow: hidden;

    background: var(--black-deep);

    border-radius: 2px;
}


.progress-fill {
    width: 0%;

    height: 100%;

    background: var(--white);
}


/* =========================================
   BUTTONS
========================================= */

.primary-button,
.secondary-button {
    padding: 9px 13px;

    font-family: inherit;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 0.08em;

    border-radius: 3px;

    cursor: pointer;

    transition:
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}


.primary-button {
    color: var(--black);

    background: var(--white);

    border: 1px solid var(--white);
}


.primary-button:hover {
    color: var(--white);

    background: var(--black);

    border-color: var(--white);
}


.secondary-button {
    width: 100%;

    margin-top: 14px;

    color: var(--gray-light);

    background: transparent;

    border: 1px solid var(--border);
}


.secondary-button:hover {
    color: var(--white);

    background: var(--panel-light);

    border-color: var(--gray-dark);
}


/* =========================================
   SECTION HEADINGS
========================================= */

/* =========================================
   JOURNEY GALLERY
========================================= */

.journey-gallery {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 12px;
}


/* =========================================
   JOURNEY CARD
========================================= */

.journey-card {
    padding: 0;

    overflow: hidden;

    text-align: left;

    background: var(--panel);

    border: 1px solid var(--border);

    color: inherit;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}


.journey-card:hover {
    background: var(--panel-light);

    border-color: var(--gray);

    transform: translateY(-3px);
}


/* =========================================
   IMAGE
========================================= */

.journey-image {
    width: 100%;

    aspect-ratio: 4 / 3;

    overflow: hidden;

    background: var(--black-deep);

    border-bottom: 1px solid var(--border);
}


.journey-image img {
    width: 100%;

    height: 100%;

    display: block;

    object-fit: cover;

    filter: grayscale(15%);

    transition:
        transform 0.35s ease,
        filter 0.35s ease;
}


.journey-card:hover .journey-image img {
    filter: grayscale(0%);

    transform: scale(1.04);
}


/* =========================================
   CARD INFO
========================================= */

.journey-card-info {
    padding: 14px 16px 16px;
}


.journey-card-info span {
    color: var(--gray);

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 0.12em;
}


.journey-card-info h3 {
    margin-top: 6px;

    color: var(--white);

    font-size: 14px;

    font-weight: 600;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 900px) {

    .journey-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


@media (max-width: 600px) {

    .journey-gallery {
        grid-template-columns: 1fr;
    }

}

/* =========================================
   CONTENT SECTIONS
========================================= */

.content-section {
    display: none;
}


/* APPEAR */

.content-section.active {
    display: block;

    animation: sectionFadeDown 0.35s ease forwards;
}


@keyframes sectionFadeDown {

    from {
        opacity: 0;

        transform: translateY(-12px);
    }

    to {
        opacity: 1;

        transform: translateY(0);
    }

}

.content-section.section-exit {
    display: block;

    animation: sectionFadeUp 0.25s ease forwards;
}


@keyframes sectionFadeUp {

    from {
        opacity: 1;

        transform: translateY(0);
    }

    to {
        opacity: 0;

        transform: translateY(-12px);
    }

}



.section-heading {
    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 16px;
}


.section-heading h2 {
    margin-top: 4px;

    color: var(--white);

    font-size: 22px;
}


.section-heading > a {
    color: var(--gray-light);

    font-size: 8px;

    font-weight: 700;

    letter-spacing: 0.08em;

    text-decoration: none;
}


.section-heading > a:hover {
    color: var(--white);
}


/* =========================================
   COURSE GRID
========================================= */

.course-grid {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 12px;
}


.course-card {
    overflow: hidden;

    cursor: pointer;
}


.course-card:hover {
    background: var(--panel-light);

    transform: translateY(-2px);
}


.course-image {
    min-height: 160px;

    display: flex;

    align-items: center;

    justify-content: center;

    color: var(--gray-light);

    font-size: 40px;

    font-weight: 800;

    background: var(--black-deep);

    border-bottom: 1px solid var(--border);
}


.course-card-content {
    padding: 18px;
}


.course-card h3 {
    margin-top: 6px;

    color: var(--white);

    font-size: 15px;
}


.course-card p {
    margin-top: 7px;

    color: var(--gray-light);

    font-size: 10px;

    line-height: 1.7;
}


.course-meta {
    display: flex;

    gap: 7px;

    margin-top: 16px;

    color: var(--gray);

    font-size: 7px;

    font-weight: 700;

    letter-spacing: 0.08em;
}


.coming-soon {
    opacity: 0.55;
}


/* =========================================
   QUICK GUIDES
========================================= */

.guide-grid {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 8px;
}


.guide-card {
    display: grid;

    grid-template-columns: auto 1fr auto;

    align-items: center;

    gap: 9px;

    padding: 14px;

    color: var(--gray-light);

    font-size: 9px;

    text-decoration: none;
}


.guide-card:hover {
    color: var(--white);

    background: var(--panel-light);
}


.guide-icon {
    color: var(--gray-light);

    font-size: 14px;
}


.guide-arrow {
    color: var(--gray);
}


/* =========================================
   ASSISTANCE MODAL
========================================= */

.assistance-section {
    position: fixed;

    inset: 0;

    z-index: 1000;

    display: none;

    align-items: center;

    justify-content: center;

    padding: 30px;

    background: rgba(0, 0, 0, 0.65);

}


.assistance-section.active {
    display: flex;

    animation: assistanceOverlayIn 0.25s ease forwards;
}


@keyframes assistanceOverlayIn {

    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }

}


/* =========================================
   ASSISTANCE CARD
========================================= */

.assistance-card {
    width: min(850px, 100%);

    max-height: calc(100vh - 60px);

    overflow-y: auto;

    padding: 40px;

    background: var(--panel);

    border: 1px solid var(--border);

    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.5);

    animation: assistanceCardIn 0.3s ease forwards;
}


@keyframes assistanceCardIn {

    from {
        opacity: 0;

        transform: translateY(15px) scale(0.98);
    }

    to {
        opacity: 1;

        transform: translateY(0) scale(1);
    }

}

/* =========================================
   ASSISTANCE CARD
========================================= */

.assistance-card {
    width: min(850px, 100%);

    max-height: 100%;

    overflow-y: auto;

    padding: 40px;

    background: var(--panel);

    border: 1px solid var(--border);

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.25);
}


/* =========================================
   ASSISTANCE HEADER
========================================= */

.assistance-header {
    margin-bottom: 32px;

    padding-bottom: 24px;

    border-bottom: 1px solid var(--border);
}


.assistance-header h2 {
    margin-top: 8px;

    color: var(--white);

    font-size: 26px;

    font-weight: 600;
}


.assistance-header p {
    max-width: 500px;

    margin-top: 5px;

    color: var(--gray-light);

    font-size: 14px;

    line-height: 1.7;
}


/* =========================================
   FORM
========================================= */

.assistance-form {
    display: flex;

    flex-direction: column;

    gap: 26px;
}


.assistance-form label {
    display: flex;

    flex-direction: column;

    gap: 9px;

    color: var(--gray-light);

    font-size: 14px;

    font-weight: 600;

    letter-spacing: 0.1em;
}

.form-label {
    display: flex;

    align-items: center;

    gap: 10px;

    color: var(--gray-light);

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 0.1em;
}


.form-number {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    color: var(--gray-light);

    font-size: 10px;

    border-radius: 50%;
}

/* =========================================
   INPUTS
========================================= */

.assistance-form input,
.assistance-form textarea,
.assistance-form select {
    width: 100%;

    padding: 13px 15px;

    color: var(--white);

    font-family: inherit;

    font-size: 11px;

    background: var(--black-deep);

    border: 1px solid var(--border);

    outline: none;

    transition:
        border-color 0.2s ease,
        background 0.2s ease;
}


.assistance-form textarea {
    min-height: 150px;

    resize: vertical;

    line-height: 1.7;
}


.assistance-form input::placeholder,
.assistance-form textarea::placeholder {
    color: var(--gray);
}


.assistance-form input:focus,
.assistance-form textarea:focus,
.assistance-form select:focus {
    background: var(--panel-light);

    border-color: var(--gray-light);
}


/* =========================================
   FILE INPUT
========================================= */
/* =========================================
   UPLOAD AREA
========================================= */

.upload-area {
    position: relative;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    min-height: 150px;

    padding: 30px;

    text-align: center;

    background: var(--black-deep);

    border: 1px dashed var(--border);

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}


.upload-area:hover {
    background: var(--panel-light);

    border-color: var(--gray-light);

    transform: translateY(-2px);
}


/* =========================================
   UPLOAD ICON
========================================= */

.upload-icon {
    display: flex;

    align-items: center;

    justify-content: center;

    width: 34px;

    height: 34px;

    margin-bottom: 12px;

    color: var(--black-deep);

    font-size: 22px;

    font-weight: 300;

    background: var(--white);

    border-radius: 50%;
}


/* =========================================
   UPLOAD TEXT
========================================= */

.upload-title {
    color: var(--white);

    font-size: 9px;

    font-weight: 700;

    letter-spacing: 0.12em;
}


.upload-description {
    max-width: 280px;

    margin-top: 8px;

    color: var(--gray);

    font-size: 9px;

    line-height: 1.6;
}


/* =========================================
   HIDE NATIVE INPUT
========================================= */

.upload-area input[type="file"] {
    position: absolute;

    width: 1px;

    height: 1px;

    opacity: 0;

    pointer-events: none;
}


/* =========================================
   SUBMIT BUTTON
========================================= */

.assistance-form button[type="submit"] {
    align-self: flex-end;

    padding: 13px 20px;

    color: var(--black-deep);

    font-family: inherit;

    font-size: 8px;

    font-weight: 700;

    letter-spacing: 0.1em;

    background: var(--white);

    border: none;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


.assistance-form button[type="submit"]:hover {
    background: var(--gray-light);

    transform: translateY(-2px);
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 700px) {

    .assistance-section.active {
        padding: 20px;
    }


    .assistance-card {
        padding: 24px;
    }


    .assistance-header h2 {
        font-size: 21px;
    }


    .assistance-form button[type="submit"] {
        width: 100%;
    }

}


/* =========================================
   RIGHT INFO PANEL
========================================= */

.info-panel {
    padding: 24px 18px;

    background: var(--black);

    border-left: 1px solid var(--border);
}


.info-panel-section p {
    margin-top: 10px;

    color: var(--gray-light);

    font-size: 14px;

    line-height: 1.7;
}


.info-panel-divider {
    height: 1px;

    margin: 20px 0;

    background: var(--border);
}


/* =========================================
   STATUS
========================================= */

.status-row {
    display: flex;

    align-items: center;

    gap: 7px;

    margin-top: 10px;

    color: var(--gray-light);

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 0.08em;
}


.status-dot {
    width: 6px;
    height: 6px;

    margin-right: 5px;

    display: inline-block;

    flex-shrink: 0;

    border: 1px solid var(--white);

    border-radius: 50%;

    background: transparent;

    transition:
        background 0.25s ease,
        box-shadow 0.25s ease;
}

.status-dot.active {
    background: var(--white);

    box-shadow:
        0 0 0 3px rgba(255, 255, 255, 0.08),
        0 0 8px rgba(255, 255, 255, 0.45);

    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.45;
    }

}

.status-dot:not(.active) {
    background: transparent;

    box-shadow: none;
}

/* =========================================
   LANGUAGE
========================================= */

.language-options {
    display: flex;

    flex-direction: column;

    gap: 3px;

    margin-top: 10px;
}


.language-option {
    padding: 8px 9px;

    color: var(--gray);

    font-family: inherit;

    font-size: 14px;

    text-align: left;

    background: transparent;

    border: 1px solid transparent;

    border-radius: 3px;

    cursor: pointer;

    transition:
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}


.language-option:hover {
    color: var(--white);

    background: var(--panel-light);
}


.language-option.active {
    color: var(--black);

    background: var(--white);

    border-color: var(--white);
}


/* =========================================
   STATUS BAR
========================================= */

.status-bar {
    height: 40px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 0 16px;

    color: var(--gray);

    font-size: 7px;

    font-weight: 700;

    letter-spacing: 0.1em;

    background: var(--black);

    border-top: 1px solid var(--border);
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 1100px) {

    .workspace-body {
        grid-template-columns: 210px minmax(0, 1fr);
    }


    .info-panel {
        display: none;
    }

}


@media (max-width: 800px) {

    .topbar {
        padding: 0 16px;
    }


    .main-navigation {
        display: none;
    }


    .topbar-actions {
        min-width: auto;
    }


    .workspace-body {
        display: block;
    }


    .sidebar {
        min-height: auto;

        display: flex;

        flex-direction: row;

        gap: 4px;

        padding: 7px;

        overflow-x: auto;

        border-right: none;

        border-bottom: 1px solid var(--border);
    }


    .sidebar-section {
        flex-direction: row;

        align-items: center;

        gap: 3px;

        white-space: nowrap;
    }


    .sidebar-heading,
    .sidebar-divider,
    .sidebar-bottom {
        display: none;
    }


    .sidebar-link {
        min-height: 32px;

        padding: 0 9px;
    }


    .sidebar-link > span:first-child {
        display: none;
    }


    .main-content {
        padding: 34px 20px 56px;
    }


    .course-grid,
    .guide-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 500px) {

    .brand {
        min-width: auto;
    }


    .brand h1 {
        font-size: 11px;
    }


    .brand span:not(.brand-symbol) {
        display: none;
    }


    .welcome-section h2 {
        font-size: 40px;
    }


    .continue-content {
        flex-direction: column;
    }


    .course-placeholder {
        width: 100%;

        min-height: 110px;
    }


    .section-heading {
        align-items: flex-start;

        flex-direction: column;
    }


    .topbar {
        gap: 10px;
    }


    .language-button {
        padding: 0 8px;
    }

}