.portfolio-page-hero {
    position: relative;
    overflow: hidden;
    min-height: 320px;
    display: flex;
    align-items: center;
    padding: 120px 0 72px;
}

.portfolio-page-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.portfolio-page-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.portfolio-page-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        135deg,
        rgba(9, 76, 35, 0.55) 0%,
        rgba(19, 18, 18, 0.78) 50%,
        rgba(19, 18, 18, 0.92) 100%
    );
}

.portfolio-page-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.portfolio-page-hero-content h1 {
    font-size: clamp(34px, 5vw, 52px);
    font-weight: 900;
    color: #fff;
    letter-spacing: 3px;
    margin: 12px 0 16px;
}

.portfolio-page-hero-content p:last-child {
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.6;
}

.portfolio-page-section {
    padding-top: 48px;
    overflow-x: hidden;
}

.portfolio-empty {
    text-align: center;
    color: rgba(255, 255, 255, 0.65);
    padding: 40px 20px;
}

.portfolio-featured-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(9, 76, 35, 0.92);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.portfolio-content h3 a {
    color: inherit;
    text-decoration: none;
}

.portfolio-content h3 a:hover {
    color: #86efac;
}

.portfolio-icon {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Project detail page */
.project-page-main {
    padding: 48px 0 80px;
    background: #131212;
    overflow-x: hidden;
}

.project-page-content {
    max-width: 960px;
    margin: 0 auto;
    min-width: 0;
    width: 100%;
}

.project-breadcrumb {
    margin-bottom: 28px;
    font-family: 'Poppins', sans-serif;
}

.project-breadcrumb a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.project-breadcrumb a:hover {
    color: #86efac;
}

.project-page-header {
    margin-bottom: 32px;
}

.project-page-header h1 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(28px, 4vw, 42px);
    color: #fff;
    margin: 16px 0;
    overflow-wrap: anywhere;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
}

.project-meta span {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.8);
    padding: 6px 12px;
    border-radius: 999px;
}

.project-gallery {
    display: grid;
    gap: 16px;
    margin-bottom: 36px;
}

.project-gallery img {
    width: 100%;
    border-radius: 12px;
    display: block;
    object-fit: cover;
}

.project-gallery-carousel {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.project-gallery-carousel .portfolio-slider {
    position: relative;
    height: min(520px, 60vh);
}

.project-gallery-carousel .portfolio-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.project-gallery-carousel .portfolio-slide.active {
    opacity: 1;
    position: relative;
}

.project-gallery-carousel .portfolio-slide img {
    width: 100%;
    height: min(520px, 60vh);
    object-fit: cover;
}

.project-gallery-carousel .portfolio-dots {
    bottom: 18px;
}

.project-description {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 18px;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.82);
    overflow-wrap: anywhere;
}

.project-page-state {
    text-align: center;
    color: rgba(255, 255, 255, 0.75);
    padding: 80px 20px;
    font-family: 'Poppins', sans-serif;
}

.project-page-state a {
    color: #86efac;
}

@media (max-width: 768px) {
    .portfolio-page-hero {
        padding: 100px 0 56px;
        min-height: 280px;
    }

    .portfolio-page-hero-content {
        padding: 0 4px;
    }

    .portfolio-page-hero-content h1 {
        letter-spacing: 2px;
    }

    .portfolio-page-section {
        padding-top: 32px;
    }

    .project-page-main {
        padding: 32px 0 56px;
    }

    .project-gallery-carousel .portfolio-slider,
    .project-gallery-carousel .portfolio-slide img {
        height: min(320px, 45vh);
    }

    .project-description {
        font-size: 16px;
        line-height: 1.75;
    }

    .project-meta span {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .portfolio-page-hero-content h1 {
        letter-spacing: 1px;
    }

    .project-page-header h1 {
        font-size: 24px;
    }

    .project-gallery {
        gap: 12px;
    }
}
