/* =============================================
   PROJECTS SECTION
   Heading area + fullscreen Swiper slider
   Ignitex reference match — fixed carousel
   ============================================= */

.projects {
    background: var(--color-black, #000);
    color: #fff;
}

/* --- Heading Area --- */
.projects__head {
    padding: var(--section-padding, 100px) 0 60px;
}

.projects__label {
    font-family: var(--font-body, 'Poppins', sans-serif);
    font-weight: 300;
    font-style: italic;
    font-size: 12px;
    color: var(--color-gray, #6B7280);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-align: right;
    width: 100%;
    justify-content: flex-end;
    margin-bottom: 16px;
}

.projects__heading {
    font-family: var(--font-heading, 'Satoshi', sans-serif);
    font-weight: 700;
    font-size: clamp(64px, 10vw, 120px);
    line-height: 0.95;
    letter-spacing: -0.03em;
    color: #fff;
}

.projects__heading-line {
    display: block;
}

.projects__heading .script-accent {
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.05em;
}

.projects__year {
    font-family: var(--font-body, 'Poppins', sans-serif);
    font-weight: 300;
    font-style: italic;
    font-size: 14px;
    color: var(--color-gray, #6B7280);
    margin-top: 16px;
}

.projects__desc {
    font-family: var(--font-body, 'Poppins', sans-serif);
    font-weight: 400;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    max-width: 600px;
    margin-top: 16px;
}

.projects__desc strong {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
}

/* --- Back Catalog Strip --- */
.projects__catalog {
    margin-top: 32px;
}

.projects__catalog-label {
    font-family: var(--font-body, 'Poppins', sans-serif);
    font-weight: 300;
    font-style: italic;
    font-size: 12px;
    color: var(--color-gray, #6B7280);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 12px;
}

.projects__catalog-strip {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.projects__catalog-strip::-webkit-scrollbar {
    display: none;
}

.projects__catalog-thumb {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    background: #333;
    flex-shrink: 0;
}

/* --- Project Slider --- */
.projects__slider {
    position: relative;
    width: 100%;
}

.projects-swiper {
    width: 100%;
    height: 80vh;
    min-height: 500px;
    overflow: hidden;
}

.projects-swiper .swiper-wrapper {
    height: 100%;
}

.projects-swiper .swiper-slide {
    height: 100%;
    overflow: hidden;
}

.projects__slide {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Background — unique gradient per slide */
.projects__slide-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.swiper-slide:nth-child(1) .projects__slide-bg {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.swiper-slide:nth-child(2) .projects__slide-bg {
    background: linear-gradient(135deg, #2d1b3d 0%, #44276b 50%, #1a0a2e 100%);
}

.swiper-slide:nth-child(3) .projects__slide-bg {
    background: linear-gradient(135deg, #1b2a1a 0%, #2d4a2e 50%, #0d1f0e 100%);
}

.swiper-slide:nth-child(4) .projects__slide-bg {
    background: linear-gradient(135deg, #2a1b1b 0%, #4a2d2d 50%, #1f0d0d 100%);
}

/* Gradient overlay from bottom */
.projects__slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.4) 40%,
        transparent 60%
    );
    z-index: 1;
}

/* Slide content */
.projects__slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 48px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Title */
.projects__slide-title {
    font-family: var(--font-heading, 'Satoshi', sans-serif);
    font-weight: 700;
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1.0;
    letter-spacing: -0.02em;
    color: #fff;
}

.projects__slide-title span {
    display: block;
}

.projects__slide-title .script-accent {
    font-family: Georgia, 'Times New Roman', serif;
    font-style: italic;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85em;
}

/* Tags */
.projects__slide-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.projects__slide-tags span {
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-badge, 20px);
    padding: 6px 16px;
    font-family: var(--font-body, 'Poppins', sans-serif);
    font-weight: 400;
    font-size: 12px;
    color: #fff;
    white-space: nowrap;
}

/* Bottom bar */
.projects__slide-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Navigation */
.projects__slide-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.projects__nav-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: transparent;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.25s ease, background 0.25s ease;
}

.projects__nav-btn:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.05);
}

.projects__counter {
    font-family: var(--font-body, 'Poppins', sans-serif);
    font-weight: 400;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin-left: 4px;
}

/* Slide CTA */
.projects__slide-cta {
    flex-shrink: 0;
}


/* =============================================
   RESPONSIVE — MOBILE
   ============================================= */
@media (max-width: 767px) {
    .projects__head {
        padding: var(--section-padding-mobile, 56px) 0 40px;
    }

    .projects__heading {
        font-size: clamp(48px, 10vw, 72px);
    }

    .projects-swiper {
        height: 80vh;
        min-height: 450px;
    }

    .projects__slide-content {
        padding: 24px;
    }

    .projects__slide-title {
        font-size: clamp(32px, 7vw, 48px);
    }

    .projects__slide-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .projects__slide-cta {
        width: 100%;
        justify-content: center;
    }

    .projects__label {
        justify-content: flex-start;
    }
}


/* =============================================
   RESPONSIVE — DESKTOP (1024px+)
   ============================================= */
@media (min-width: 1024px) {
    .projects-swiper {
        height: 80vh;
        min-height: 600px;
    }
}


/* =============================================
   RESPONSIVE — XL (1280px+)
   ============================================= */
@media (min-width: 1280px) {
    .projects__heading {
        font-size: 120px;
    }
}
