/* ==========================================================================
   Portofoliu CSS — Energofor Design
   Interactive portfolio page with hover effects
   ========================================================================== */

/* ---------- CSS Variables / Design Tokens ---------- */
:root {
    --port-font-serif: 'Nunito Sans', serif;
    --port-font-sans: 'Nunito Sans', sans-serif;
    --port-font-heading: 'Nunito Sans', sans-serif;
    --port-color-primary: #0e5d99;
    --port-color-primary-light: #88c4ff;
    --port-color-dark: #242c36;
    --port-color-dark-mid: #3c5063;
    --port-color-light-border: #88c4ff;
    --port-color-gray-bg: #e6e8ea;
    --port-color-gray-light: #f5f5f5;
    --port-color-white: #ffffff;
    --port-color-black: #000000;
    --port-transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Global Resets ---------- */
.portofoliu,
.portofoliu *,
.portofoliu *::before,
.portofoliu *::after {
    box-sizing: border-box;
}

.portofoliu {
    font-family: var(--port-font-sans);
    color: var(--port-color-dark);
    font-size: 1rem;
    font-weight: 450;
    line-height: 1.625rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

/* ---------- Shared Button Styles ---------- */
.port-btn--outline-blue {
    background-color: transparent;
    border: 1px solid var(--port-color-primary);
    border-radius: 10px;
    color: var(--port-color-dark);
    cursor: pointer;
    display: inline-block;
    font-family: var(--port-font-sans);
    font-size: 0.75rem;
    font-weight: 300;
    letter-spacing: 0.1rem;
    line-height: 1.188;
    padding: 12px 18px;
    text-decoration: none;
    text-transform: uppercase;
    width: fit-content;
    transition: all 0.2s ease;
}

.port-btn--outline-blue:hover {
    background-color: var(--port-color-primary);
    border-color: var(--port-color-primary);
    color: #fff;
}

/* ==========================================================================
   SECTION 1: HERO
   ========================================================================== */
.port-hero {
    position: relative;
    width: 100%;
    min-height: 45vh;
    max-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

@media screen and (min-width: 64rem) {
    .port-hero {
        min-height: 60vh;
        max-height: 650px;
    }
}

.port-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.port-hero__bg--gradient {
    background: linear-gradient(135deg, #1d2e3c 0%, #0e5d99 100%);
}

.port-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(29, 46, 60, 0.4) 0%,
            rgba(29, 46, 60, 0.6) 100%);
    z-index: 1;
}

.port-hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 90rem;
    padding: 120px 31px 80px;
    text-align: center;
}

@media screen and (min-width: 48.0625rem) {
    .port-hero__content {
        padding: 140px 64px 100px;
    }
}

.port-hero__inner {
    max-width: 700px;
    margin: 0 auto;
}

.port-hero__label {
    display: inline-block;
    font-family: var(--port-font-sans);
    font-size: 0.875rem;
    font-weight: 450;
    letter-spacing: 0.15rem;
    line-height: 1.2;
    text-transform: uppercase;
    color: var(--port-color-primary-light);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--port-color-primary-light);
}

.port-hero__title {
    font-family: 'Qaranta', serif;
    font-size: 2.5rem;
    font-weight: 350;
    line-height: 1.1;
    color: #fff;
    margin: 0;
}

@media screen and (min-width: 48.0625rem) {
    .port-hero__title {
        font-size: 3.5rem;
    }
}

@media screen and (min-width: 64rem) {
    .port-hero__title {
        font-size: 4rem;
    }
}

/* Mobile Optimizations */
@media screen and (max-width: 47.99rem) {
    .port-hero {
        min-height: 30vh;
    }
}

/* ==========================================================================
   SECTION 2: INTRO TEXT
   ========================================================================== */
.port-intro {
    background-color: var(--port-color-gray-light);
    padding: 60px 31px;
}

@media screen and (min-width: 48.0625rem) {
    .port-intro {
        padding: 100px 64px;
    }
}

.port-intro__container {
    max-width: 1000px;
    margin: 0 auto;
}

.port-intro__content {
    /* max-width: 800px; */
    margin: 0 auto;
    text-align: center;
}

.port-intro__title {
    font-family: 'Qaranta', serif;
    font-size: 2rem;
    font-weight: 350;
    line-height: 1.2;
    color: var(--port-color-dark);
    margin: 0 0 1.5rem 0;
}

@media screen and (min-width: 48.0625rem) {
    .port-intro__title {
        font-size: 2.5rem;
    }
}

.port-intro__text {
    font-family: var(--port-font-sans);
    font-size: 1.0625rem;
    font-weight: 400;
    line-height: 1.7;
    color: var(--port-color-dark-mid);
    margin: 0;
}

@media screen and (min-width: 48.0625rem) {
    .port-intro__text {
        font-size: 1.125rem;
    }
}

/* ==========================================================================
   SECTION 3: INTERACTIVE PORTFOLIO GRID
   ========================================================================== */
.port-grid {
    padding: 0;
    background-color: #fff;
}

.port-grid__container {
    display: flex;
    flex-direction: column;
}

@media screen and (min-width: 64rem) {
    .port-grid__container {
        flex-direction: row;
        /* min-height: 100vh; */
    }
}

/* ---------- Left: Media/Image Column ---------- */
.port-grid__media {
    display: none;
}

@media screen and (min-width: 64rem) {
    .port-grid__media {
        display: flex;
        position: sticky;
        top: 0;
        flex: 2;
        /* height: 100vh; */
        background-color: var(--port-color-dark);
        overflow: hidden;
    }
}

.port-grid__media-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.port-grid__media-image-wrap {
    position: relative;
    width: 100%;
    height: 100%;
}

.port-grid__media-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 0.6s ease, transform 0.8s ease;
}

.port-grid__media-image.active {
    opacity: 1;
    transform: scale(1);
}

.port-grid__media-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1d2e3c 0%, #3c5063 100%);
    color: #fff;
    font-family: 'Qaranta', serif;
    font-size: 2rem;
    text-align: center;
    padding: 2rem;
}

/* Arrow pointing from media to list */
@media screen and (min-width: 64rem) {
    .port-grid__media::before {
        content: "";
        position: absolute;
        top: 50%;
        right: 0;
        transform: translateY(-50%);
        z-index: 2;
        pointer-events: none;
        width: 0;
        height: 0;
        border-style: solid;
        border-width: 16.5px 36px 16.5px 0;
        border-color: transparent #fff transparent transparent;
    }
}

/* ---------- Right: Project List Column (flex: 3) ---------- */
.port-grid__body {
    width: 100%;
    padding: 35px 31px 60px 31px;
}

@media screen and (min-width: 64rem) {
    .port-grid__body {
        flex: 3;
        padding: 55px 60px 80px 60px;
        overflow-y: auto;
    }
}

.port-grid__body-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--port-color-gray-bg);
}

.port-grid__count {
    font-family: var(--port-font-sans);
    font-size: 0.875rem;
    font-weight: 450;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
    color: var(--port-color-dark-mid);
}

/* ---------- Project Items ---------- */
.port-grid__items {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.port-grid__item {
    position: relative;
    display: block;
    padding: 30px 0;
    border-bottom: 1px solid var(--port-color-gray-bg);
    text-decoration: none;
    color: inherit;
    transition: var(--port-transition);
}

@media screen and (min-width: 64rem) {
    .port-grid__item {
        padding: 40px 0;
    }
}

.port-grid__item:hover {
    padding-left: 20px;
    background-color: rgba(14, 93, 153, 0.02);
}

.port-grid__item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) scaleY(0);
    width: 4px;
    height: 60%;
    background-color: var(--port-color-primary);
    transition: transform 0.3s ease;
}

.port-grid__item:hover::before {
    transform: translateY(-50%) scaleY(1);
}

.port-grid__item-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

@media screen and (min-width: 48.0625rem) {
    .port-grid__item-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
    }
}

.port-grid__item-title {
    font-family: 'Qaranta', serif;
    font-size: 1.5rem;
    font-weight: 350;
    line-height: 1.2;
    color: var(--port-color-dark);
    margin: 0;
    transition: color 0.3s ease;
}

.port-grid__item:hover .port-grid__item-title {
    color: var(--port-color-primary);
}

@media screen and (min-width: 48.0625rem) {
    .port-grid__item-title {
        font-size: 1.75rem;
    }
}

.port-grid__item-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--port-font-sans);
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--port-color-dark-mid);
    flex-shrink: 0;
}

.port-grid__item-location svg {
    flex-shrink: 0;
}

.port-grid__item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.port-grid__meta-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background-color: var(--port-color-gray-light);
    border-radius: 20px;
    font-family: var(--port-font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05rem;
    text-transform: uppercase;
    color: var(--port-color-dark-mid);
    transition: var(--port-transition);
}

.port-grid__item:hover .port-grid__meta-tag {
    background-color: rgba(14, 93, 153, 0.1);
    color: var(--port-color-primary);
}

.port-grid__meta-tag--type {
    background-color: rgba(14, 93, 153, 0.1);
    color: var(--port-color-primary);
}

.port-grid__item-arrow {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    opacity: 0;
    color: var(--port-color-primary);
    transition: var(--port-transition);
}

.port-grid__item:hover .port-grid__item-arrow {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* ==========================================================================
   PORTFOLIO GRID COMING SOON OVERLAY
   ========================================================================== */
.port-grid__container {
    position: relative;
}

.port-grid__coming-soon-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(29, 46, 60, 0.2);
    backdrop-filter: blur(0.625rem) brightness(0.9);
    -webkit-backdrop-filter: blur(0.625rem) brightness(0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.port-grid__coming-soon-text {
    font-family: 'Qaranta', serif;
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.2;
    color: var(--port-color-white);
    text-transform: uppercase;
    text-align: center;
    padding: 20px;
}

@media screen and (max-width: 48.0625rem) {
    .port-grid__coming-soon-text {
        font-size: 1.75rem;
    }
}

/* Disabled item styles */
.port-grid__item--disabled,
.port-grid__item--disabled:hover,
.port-grid__item--disabled:focus,
.port-grid__item--disabled:active {
    cursor: not-allowed !important;
    pointer-events: none;
    opacity: 0.7;
}

.port-grid__item--disabled .port-grid__item-title,
.port-grid__item--disabled:hover .port-grid__item-title {
    color: var(--port-color-dark-mid) !important;
}

.port-grid__item--disabled .port-grid__meta-tag--type,
.port-grid__item--disabled:hover .port-grid__meta-tag--type {
    background-color: var(--port-color-gray-bg) !important;
    color: var(--port-color-dark-mid) !important;
}

.port-grid__item--disabled::before,
.port-grid__item--disabled:hover::before {
    transform: translateY(-50%) scaleY(0) !important;
}

.port-grid__item--disabled .port-grid__item-arrow,
.port-grid__item--disabled:hover .port-grid__item-arrow {
    opacity: 0 !important;
}

/* ==========================================================================
   SECTION 4: CTA
   ========================================================================== */
.port-cta {
    background-color: var(--port-color-gray-light);
    padding: 80px 31px;
    text-align: center;
}

@media screen and (min-width: 48.0625rem) {
    .port-cta {
        padding: 100px 64px;
    }
}

.port-cta__container {
    max-width: 600px;
    margin: 0 auto;
}

.port-cta__title {
    font-family: 'Qaranta', serif;
    font-size: 2rem;
    font-weight: 350;
    line-height: 1.2;
    color: var(--port-color-dark);
    margin: 0 0 1rem 0;
}

@media screen and (min-width: 48.0625rem) {
    .port-cta__title {
        font-size: 2.5rem;
    }
}

.port-cta__text {
    font-family: var(--port-font-sans);
    font-size: 1.0625rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--port-color-dark-mid);
    margin: 0 0 2rem 0;
}

/* ==========================================================================
   SINGLE PROJECT PAGE
   Full screen slider with info panel
   ========================================================================== */
body.single-portfolio-body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100vw !important;
    background: #ffffff !important;
}

/* Desktop: fixed full screen */
@media (min-width: 45em) {
    body.single-portfolio-body {
        height: 100vh !important;
        overflow: hidden !important;
    }
}

/* Force hide header/footer elements that might be injected */
body.single-portfolio-body header,
body.single-portfolio-body .site-header,
body.single-portfolio-body .main-nav,
body.single-portfolio-body #header,
body.single-portfolio-body .elementor-location-header,
body.single-portfolio-body footer,
body.single-portfolio-body .site-footer,
body.single-portfolio-body #footer,
body.single-portfolio-body .elementor-location-footer {
    display: none !important;
}

.single-portfolio {
    display: flex;
    flex-direction: column;
}

/* Desktop: fixed layout */
@media (min-width: 45em) {
    .single-portfolio {
        position: fixed;
        inset: 0;
        width: 100vw;
        height: 100vh;
        overflow: hidden;
        z-index: 1;
    }
}

/* ---------- Background Slider ---------- */
.project-slider {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Mobile: Slider fixed at top */
@media (max-width: 44.99em) {
    .project-slider {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 45vh;
        z-index: 10;
    }
}

.project-slider .swiper-wrapper {
    width: 100%;
    height: 100%;
}

.project-slider .swiper-slide {
    position: relative;
    width: 100%;
    height: 100%;
}

.project-slider__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.project-slider__image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1d2e3c 0%, #3c5063 100%);
    color: #fff;
    font-family: 'Qaranta', serif;
    font-size: 2rem;
}

/* ---------- Slider Navigation ---------- */
.project-slider__nav {
    position: fixed;
    bottom: 40px;
    left: 40px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 25px;
    background: linear-gradient(135deg, #1d2e3c 0%, #3c5063 100%);
    border-radius: 50px;
}

@media screen and (max-width: 63.99rem) {
    .project-slider__nav {
        bottom: 20px;
        left: 20px;
        padding: 12px 20px;
        gap: 15px;
    }
}

/* Mobile: Navigation fixed under slider */
@media (max-width: 44.99em) {
    .project-slider__nav {
        position: fixed;
        top: 45vh;
        left: 0;
        right: 0;
        bottom: auto;
        border-radius: 0;
        background: linear-gradient(135deg, #1d2e3c 0%, #3c5063 100%);
        justify-content: center;
        padding: 15px;
        /* z-index: 10; */
    }
}

.project-slider__arrow {
    width: 40px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.project-slider__arrow:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #fff;
}

.project-slider__arrow.swiper-button-disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.project-slider__pagination {
    font-family: var(--port-font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    color: #fff;
    min-width: 50px;
    text-align: center;
    letter-spacing: 0.1rem;
}

/* ==========================================================================
   PROJECT PANEL - Exact Match to Reference Design
   ========================================================================== */

/* Mobile first - stacked layout */
.project-panel {
    display: flex;
    flex-direction: column;
    /* overflow: auto; */
}

@media (min-width: 45em) {
    .project-panel {
        position: fixed;
        right: 38px;
        bottom: 130px;
        width: calc(50vw - 38px);
        max-width: 445px;
        overflow: visible;
        z-index: 10;
        pointer-events: none;
    }

    .project-panel.-visible {
        pointer-events: auto;
    }
}

@media (min-width: 62.5em) {
    .project-panel {
        bottom: 40px;
        width: 27.8125rem;
        /* 445px */
    }
}

@media (min-width: 75em) {
    .project-panel {
        right: 48px;
        bottom: 50px;
    }
}

@media (min-width: 100em) {
    .project-panel {
        right: 58px;
        bottom: 63px;
    }
}

/* Panel Inner */
.project-panel__inner {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    flex-shrink: 0;
    background-color: #fff;
    overflow: hidden;
    z-index: 2;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
}

.-visible .project-panel__inner {
    opacity: 1;
    visibility: visible;
}

@media (min-width: 45em) {
    .project-panel__inner {
        box-shadow: rgba(0, 0, 0, 0.15) 12px 12px 96px, rgba(0, 0, 0, 0.04) 8px 8px 24px;
        border-left: 1px solid transparent;
    }

    .project-panel__inner.-expanded {
        border-color: #979899;
    }
}

/* Panel Body */
.project-panel__body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    margin-right: -1px;
}

/* Panel Row */
.project-panel__row {
    display: flex;
    flex-wrap: wrap;
}

/* Panel Block */
.project-panel__block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-basis: 33%;
    flex-grow: 1;
    padding: 0.75rem 0.9375rem;
    border-right: 1px solid #979899;
    border-bottom: 1px solid #979899;
    line-height: 1.25;
    color: #111921;
    text-decoration: none;
    margin: 0;
    font-family: var(--port-font-sans);
}

.project-panel__block.-top {
    padding-top: 0.9375rem;
    padding-bottom: 0.15625rem;
    border: 0;
    font-size: 0.8rem;
    align-items: flex-start;
}

.project-panel__block.-top a {
    color: #00aeef;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s ease;
}

.project-panel__block.-top a:hover {
    color: var(--port-color-primary);
}

.project-panel__block.-title {
    font-family: 'Qaranta', serif;
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.25;
}

.project-panel__block.-small {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.project-panel__block.-shrink {
    flex-grow: 0.5;
    flex-basis: 0%;
}

.project-panel__block.-shrink:first-child:last-child {
    flex-grow: 1;
}

.project-panel__block.-half {
    min-width: 50%;
}

.project-panel__block p {
    margin-bottom: 1em;
}

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

@media (min-width: 45em) {
    .project-panel__block {
        padding: 1.0625rem 1.25rem;
    }
}

@media (min-width: 75em) {
    .project-panel__block {
        padding-top: 1.375rem;
        padding-bottom: 1.375rem;
    }
}

@media (min-width: 100em) {
    .project-panel__block.-title {
        padding-top: 1.5625rem;
        padding-bottom: 1.5625rem;
    }
}

/* Buttons in Panel */
.project-panel__btn {
    display: none;
}

@media (min-width: 45em) {
    .project-panel__btn {
        display: flex;
        flex-direction: row;
        align-items: center;
        border-bottom: 0;
        font-size: 0.875rem;
        cursor: pointer;
        transition: color 0.2s ease-in-out, background-color 0.2s ease-in-out;
        background-color: #fff;
        border: none;
        flex: 1;
    }

    .project-panel__btn.-center {
        justify-content: center;
    }

    .project-panel__btn.-small {
        text-transform: uppercase;
    }

    .project-panel__btn.-dark {
        background: linear-gradient(135deg, #1d2e3c 0%, #3c5063 100%);
        color: #00aeef;
        flex: 1;
    }

    .project-panel__btn.-dark:hover {
        color: #fff;
    }

    .project-panel__btn[aria-expanded="true"] .project-panel__btn-bar {
        background-color: #00aeef;
    }

    .project-panel__btn:focus .project-panel__btn-bar:first-child,
    .project-panel__btn:hover .project-panel__btn-bar:first-child {
        transform: translateY(-2px);
    }

    .project-panel__btn:focus .project-panel__btn-bar:last-child,
    .project-panel__btn:hover .project-panel__btn-bar:last-child {
        transform: translateY(2px);
    }

    .project-panel__btn:focus.-arrow .project-panel__btn-icon,
    .project-panel__btn:hover.-arrow .project-panel__btn-icon {
        transform: translateX(-5px);
    }
}

@media (min-width: 62.5em) {
    .project-panel__btn {
        font-size: 1rem;
    }
}

.project-panel__btn-icon {
    margin-right: 0.625rem;
    user-select: none;
    transition: transform 0.2s ease-in-out;
}

/* Hamburger Icon */
.project-panel__btn-bars {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    width: 1.125rem;
}

.project-panel__btn-bar {
    width: 100%;
    height: 2px;
    background-color: #111921;
    margin-bottom: 2px;
    transition: transform 0.2s ease-in-out, background-color 0.2s ease-in-out;
}

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

.project-panel__btn-bar:not(:first-child):not(:last-child) {
    width: 83%;
}

/* Description Content Panel */
.project-panel__content {
    padding: 1.0625rem 0.9375rem;
    background-color: #fff;
    font-family: var(--port-font-sans);
}

@media (min-width: 45em) {
    .project-panel__content {
        position: absolute;
        inset: 0;
        z-index: 1;
        padding: 1.0625rem 1.25rem 1.25rem;
        box-shadow: none;
        overflow: auto;
        transition: transform 0.2s ease-in-out, visibility 0.2s ease-in-out, opacity 0.2s ease-in-out;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateX(0);
    }

    .-visible .project-panel__content {
        opacity: 1;
    }

    .-visible .project-panel__content.-active {
        visibility: visible;
        pointer-events: auto;
    }

    .project-panel__content.-active {
        box-shadow: rgba(0, 0, 0, 0.15) 12px 12px 96px, rgba(0, 0, 0, 0.04) 8px 8px 24px;
        transform: translateX(-100%);
    }
}

@media (min-width: 62.5em) {
    .project-panel__content {
        padding-left: 1.75rem;
        padding-right: 1.75rem;
        padding-bottom: 1.5625rem;
    }
}

@media (min-width: 75em) {
    .project-panel__content {
        padding-top: 1.375rem;
        padding-bottom: 1.375rem;
    }
}

@media (min-width: 100em) {
    .project-panel__content {
        padding-top: 1.5625rem;
        padding-bottom: 1.5625rem;
    }
}

.project-panel__content-block {
    margin-bottom: 1.25rem;
}

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

@media (min-width: 62.5em) {
    .project-panel__content-block {
        margin-bottom: 1.5625rem;
    }
}

.project-panel__content-block h2 {
    font-family: 'Qaranta', serif;
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 0.65em;
    color: #111921;
}

.project-panel__content-block p {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--port-color-dark-mid);
    margin-bottom: 1em;
}

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

/* Toggle Button (Eye Icon) */
.project-panel__toggle {
    display: none;
}

@media (min-width: 45em) {
    .project-panel__toggle {
        position: absolute;
        top: 0;
        right: 0;
        transform: translate(50%, -50%);
        z-index: 3;
        width: 2.125rem;
        height: 2.125rem;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        pointer-events: all;
        background: transparent;
        border: none;
        padding: 0;
    }

    .project-panel__toggle::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: -1;
        background-color: #f5f5f5;
        border-radius: 50%;
        border: 1px solid #111921;
        box-shadow: rgba(0, 0, 0, 0.35) 24px 24px 96px, rgba(0, 0, 0, 0.08) 8px 8px 24px;
        transition: transform 0.2s ease-in-out, border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    }

    .project-panel__toggle .eye-toggle-strike {
        stroke: transparent;
        transition: stroke 0.2s ease-in-out;
    }

    .-visible .project-panel__toggle::before {
        border-color: transparent;
        box-shadow: none;
    }

    .-visible .project-panel__toggle .eye-toggle-strike {
        stroke: #111921;
    }

    .project-panel__toggle:focus::before,
    .project-panel__toggle:hover::before {
        transform: scale(1.2);
    }
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.port-grid__item {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.port-grid__item:nth-child(1) {
    animation-delay: 0.1s;
}

.port-grid__item:nth-child(2) {
    animation-delay: 0.15s;
}

.port-grid__item:nth-child(3) {
    animation-delay: 0.2s;
}

.port-grid__item:nth-child(4) {
    animation-delay: 0.25s;
}

.port-grid__item:nth-child(5) {
    animation-delay: 0.3s;
}

.port-grid__item:nth-child(6) {
    animation-delay: 0.35s;
}

.port-grid__item:nth-child(n+7) {
    animation-delay: 0.4s;
}

/* ==========================================================================
   RESPONSIVE ADJUSTMENTS
   ========================================================================== */
@media (max-width: 63.99rem) {
    .port-grid__item {
        padding: 25px 0;
    }

    .port-grid__item-arrow {
        display: none;
    }

    .port-grid__item:hover {
        padding-left: 0;
    }

    .port-grid__item::before {
        display: none;
    }
}

/* ==========================================================================
   MOBILE PROJECT PAGE LAYOUT
   ========================================================================== */
@media (max-width: 44.99em) {

    /* Page full height, no horizontal scroll */
    .single-portfolio {
        min-height: 100vh;
        overflow-x: hidden;
    }

    /* Panel starts below fixed slider+nav, scrolls underneath */
    .project-panel {
        width: 100%;
        background: #fff;
        margin-top: calc(45vh + 66px);
        position: relative;
        z-index: 5;
    }

    .project-panel__inner {
        opacity: 1;
        visibility: visible;
        overflow: visible;
    }

    /* Description content visible by default on mobile */
    .project-panel__content {
        display: block;
        padding: 1.25rem 1.25rem 2.5rem 1.25rem;
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
    }

    /* Hide desktop-only elements on mobile */
    .hide-s {
        display: none !important;
    }

    /* Show mobile-only elements */
    .hide-m {
        display: flex !important;
    }
}

/* Desktop: hide mobile-only elements */
@media (min-width: 45em) {
    .hide-m {
        display: none !important;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}