/**
 * Projects page — scoped under .fc-project-modern
 * Matches home / about / services design system
 */

.fc-project-modern {
    --fc-navy: #030f27;
    --fc-navy-2: #0a1f45;
    --fc-gold: #fdbe33;
    --fc-gold-soft: rgba(253, 190, 51, 0.22);
    --fc-muted: #5c6577;
    --fc-surface: #fafbfc;
    --fc-radius-xl: 20px;
    --fc-radius-lg: 16px;
    --fc-shadow: 0 8px 40px rgba(3, 15, 39, 0.1);
    --fc-shadow-lg: 0 24px 60px rgba(3, 15, 39, 0.16);
    --fc-complete: #22c55e;
    --fc-running: #3b82f6;
    --fc-upcoming: #94a3b8;
    color: #252525;
    background: var(--fc-surface);
    overflow-x: clip;
}

@media (prefers-reduced-motion: reduce) {
    .fc-project-modern *,
    .fc-project-modern *::before,
    .fc-project-modern *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.05ms !important;
    }
}

/* ── Shared typography ───────────────────────────────────────── */
.fc-project-modern .fc-project-kicker {
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--fc-gold);
    margin-bottom: 10px;
}
.fc-project-modern .fc-project-title {
    font-size: clamp(1.65rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--fc-navy);
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 0;
}
.fc-project-modern .fc-project-sub {
    max-width: 620px;
    margin: 14px auto 0;
    color: var(--fc-muted);
    font-size: 1rem;
    line-height: 1.7;
}
.fc-project-modern .fc-project-section-head.text-center .fc-project-sub {
    margin-inline: auto;
}
.fc-project-modern .fc-project-head-line {
    display: block;
    width: 64px;
    height: 4px;
    margin-top: 16px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--fc-gold), #ffc94d);
    transform-origin: left center;
}
.fc-project-modern .fc-project-head-line--center {
    margin-inline: auto;
}
html[dir='rtl'] .fc-project-modern .fc-project-head-line {
    transform-origin: right center;
}
.fc-project-modern .fc-project-section-head {
    margin-bottom: clamp(32px, 5vw, 48px);
}

.fc-project-modern .fc-project-btn-primary {
    border-radius: 999px !important;
    padding: 13px 32px !important;
    font-weight: 700 !important;
    border: none !important;
    background: linear-gradient(158deg, #fdbe33, #e8a820) !important;
    color: var(--fc-navy) !important;
    box-shadow: 0 6px 22px rgba(253, 190, 51, 0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.fc-project-modern .fc-project-btn-primary:hover {
    transform: translateY(-2px);
    color: var(--fc-navy) !important;
    box-shadow: 0 10px 28px rgba(253, 190, 51, 0.45);
}

/* ── Hero ──────────────────────────────────────────────────── */
.fc-project-modern .fc-project-hero {
    position: relative;
    padding: clamp(48px, 10vw, 88px) 0 clamp(56px, 10vw, 96px);
    overflow: hidden;
    isolation: isolate;
}
.fc-project-modern .fc-project-hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(3, 15, 39, 0.92) 0%, rgba(10, 31, 69, 0.85) 100%),
        url('../img/carousel-2.jpg') center / cover no-repeat;
    z-index: 0;
}
.fc-project-modern .fc-project-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(253, 190, 51, 0.12), transparent),
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: auto, 40px 40px, 40px 40px;
    z-index: 1;
    pointer-events: none;
}
.fc-project-modern .fc-project-hero .container {
    position: relative;
    z-index: 2;
}
.fc-project-modern .fc-project-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: clamp(24px, 4vw, 36px);
}
.fc-project-modern .fc-project-breadcrumb a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: color 0.25s ease;
}
.fc-project-modern .fc-project-breadcrumb a:hover {
    color: var(--fc-gold);
}
.fc-project-modern .fc-project-breadcrumb span:last-child {
    color: var(--fc-gold);
}
.fc-project-modern .fc-project-breadcrumb span[aria-hidden] {
    color: rgba(255, 255, 255, 0.35);
}
.fc-project-modern .fc-project-hero-title {
    font-size: clamp(2rem, 5.5vw, 3.25rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.03em;
    line-height: 1.08;
    margin: 0 0 14px;
}
.fc-project-modern .fc-project-hero-sub {
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.65;
    max-width: 620px;
    margin: 0;
}
.fc-project-modern .fc-project-hero .fc-project-head-line {
    margin-top: 20px;
}

/* ── Sectors strip ─────────────────────────────────────────── */
.fc-project-modern .fc-project-sectors {
    padding-block: clamp(28px, 5vw, 40px);
    background: linear-gradient(90deg, var(--fc-navy) 0%, var(--fc-navy-2) 100%);
    border-bottom: 3px solid var(--fc-gold);
    position: relative;
    overflow: hidden;
}
.fc-project-modern .fc-project-sectors::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 8px,
        rgba(255, 255, 255, 0.015) 8px,
        rgba(255, 255, 255, 0.015) 9px
    );
    pointer-events: none;
}
.fc-project-modern .fc-project-sectors-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}
.fc-project-modern .fc-project-sector-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(253, 190, 51, 0.22);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.8125rem;
    font-weight: 600;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.fc-project-modern .fc-project-sector-pill i {
    color: var(--fc-gold);
    font-size: 0.95rem;
}
.fc-project-modern .fc-project-sector-pill:hover {
    background: rgba(253, 190, 51, 0.12);
    border-color: rgba(253, 190, 51, 0.45);
    transform: translateY(-2px);
}

/* ── Project list (Livewire) ───────────────────────────────── */
.fc-project-modern .fc-project-list {
    padding-block: clamp(64px, 11vw, 104px);
    background: linear-gradient(180deg, #fff 0%, var(--fc-surface) 100%);
}

/* Filters */
.fc-project-modern .fc-project-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: clamp(32px, 5vw, 48px);
}
.fc-project-modern .fc-project-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 999px;
    border: 1px solid rgba(3, 15, 39, 0.12);
    background: #fff;
    color: var(--fc-navy);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 16px rgba(3, 15, 39, 0.06);
}
.fc-project-modern .fc-project-filter-btn:hover {
    border-color: var(--fc-gold-soft);
    transform: translateY(-2px);
}
.fc-project-modern .fc-project-filter-btn.is-active {
    background: linear-gradient(158deg, var(--fc-navy), var(--fc-navy-2));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 24px rgba(3, 15, 39, 0.2);
}
.fc-project-modern .fc-project-filter-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.fc-project-modern .fc-project-filter-dot--complete {
    background: var(--fc-complete);
}
.fc-project-modern .fc-project-filter-dot--running {
    background: var(--fc-running);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}
.fc-project-modern .fc-project-filter-dot--upcoming {
    background: var(--fc-upcoming);
}

/* Grid */
.fc-project-modern .fc-project-grid {
    margin-top: clamp(8px, 2vw, 16px);
}
.fc-project-modern .fc-project-grid > [class*='col-'] {
    margin-bottom: 1.75rem;
}

/* Cards */
.fc-project-modern .fc-project-page-card {
    height: 100%;
    border-radius: var(--fc-radius-xl);
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(3, 15, 39, 0.07);
    box-shadow: var(--fc-shadow);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}
.fc-project-modern .fc-project-page-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--fc-shadow-lg);
}
.fc-project-modern .fc-project-page-card--complete:hover {
    border-color: rgba(34, 197, 94, 0.35);
}
.fc-project-modern .fc-project-page-card--running:hover {
    border-color: rgba(59, 130, 246, 0.35);
}
.fc-project-modern .fc-project-page-card--upcoming:hover {
    border-color: rgba(148, 163, 184, 0.45);
}
.fc-project-modern .fc-project-page-card-media {
    position: relative;
    height: clamp(220px, 30vw, 280px);
    overflow: hidden;
}
.fc-project-modern .fc-project-page-card-img-link {
    display: block;
    height: 100%;
    width: 100%;
}
.fc-project-modern .fc-project-page-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.fc-project-modern .fc-project-page-card:hover .fc-project-page-card-media img {
    transform: scale(1.08);
}
.fc-project-modern .fc-project-page-card-num {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 6px 10px;
    border-radius: 8px;
    background: rgba(3, 15, 39, 0.75);
    color: var(--fc-gold);
    backdrop-filter: blur(8px);
}
html[dir='rtl'] .fc-project-modern .fc-project-page-card-num {
    left: auto;
    right: 14px;
}
.fc-project-modern .fc-project-page-card-status {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 999px;
    backdrop-filter: blur(8px);
}
html[dir='rtl'] .fc-project-modern .fc-project-page-card-status {
    right: auto;
    left: 14px;
}
.fc-project-modern .fc-project-page-card-status--complete {
    background: rgba(34, 197, 94, 0.9);
    color: #fff;
}
.fc-project-modern .fc-project-page-card-status--running {
    background: rgba(59, 130, 246, 0.9);
    color: #fff;
}
.fc-project-modern .fc-project-page-card-status--upcoming {
    background: rgba(148, 163, 184, 0.9);
    color: #fff;
}
.fc-project-modern .fc-project-page-card-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    background: linear-gradient(to top, rgba(3, 15, 39, 0.88) 0%, rgba(3, 15, 39, 0.45) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.fc-project-modern .fc-project-page-card:hover .fc-project-page-card-overlay {
    opacity: 1;
}
.fc-project-modern .fc-project-page-card-overlay p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    line-height: 1.55;
    text-align: center;
    margin: 0;
}
.fc-project-modern .fc-project-page-card-zoom {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--fc-gold);
    color: var(--fc-navy);
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}
.fc-project-modern .fc-project-page-card-zoom:hover {
    transform: scale(1.1);
    color: var(--fc-navy);
}
.fc-project-modern .fc-project-page-card-body {
    padding: clamp(18px, 3vw, 24px);
}
.fc-project-modern .fc-project-page-card-title {
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--fc-navy);
    margin: 0 0 8px;
    line-height: 1.35;
}
.fc-project-modern .fc-project-page-card-desc {
    font-size: 0.875rem;
    color: var(--fc-muted);
    line-height: 1.55;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.fc-project-modern .fc-project-load-more {
    margin-top: clamp(12px, 3vw, 28px);
}
.fc-project-modern .fc-project-load-btn[disabled] {
    opacity: 0.65;
    cursor: wait;
}
.fc-project-modern .fc-project-empty-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(3, 15, 39, 0.06);
    color: var(--fc-gold);
    font-size: 1.5rem;
}

/* ── Trust bar ─────────────────────────────────────────────── */
.fc-project-modern .fc-project-trust {
    padding-block: clamp(20px, 4vw, 32px);
    background: #fff;
    border-top: 1px solid rgba(3, 15, 39, 0.06);
    border-bottom: 1px solid rgba(3, 15, 39, 0.06);
}
.fc-project-modern .fc-project-trust-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: clamp(16px, 4vw, 32px);
}
.fc-project-modern .fc-project-trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--fc-navy);
}
.fc-project-modern .fc-project-trust-item i {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(253, 190, 51, 0.12);
    border: 1px solid rgba(253, 190, 51, 0.25);
    color: var(--fc-gold);
    font-size: 1rem;
    flex-shrink: 0;
}
.fc-project-modern .fc-project-trust-divider {
    width: 1px;
    height: 36px;
    background: rgba(3, 15, 39, 0.1);
}

/* ── CTA ───────────────────────────────────────────────────── */
.fc-project-modern .fc-project-cta {
    position: relative;
    padding-block: clamp(56px, 9vw, 80px);
    overflow: hidden;
}
.fc-project-modern .fc-project-cta-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(115deg, rgba(3, 15, 39, 0.94), rgba(10, 31, 69, 0.88)),
        url('../img/carousel-1.jpg') center / cover no-repeat;
    z-index: 0;
}
.fc-project-modern .fc-project-cta-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(24px, 4vw, 48px);
    flex-wrap: wrap;
    padding: clamp(28px, 5vw, 44px);
    border-radius: var(--fc-radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.fc-project-modern .fc-project-cta-copy {
    flex: 1 1 300px;
    max-width: 600px;
}
.fc-project-modern .fc-project-cta-copy h2 {
    font-size: clamp(1.4rem, 3.5vw, 2rem);
    font-weight: 800;
    color: #fff;
    margin: 0 0 12px;
    line-height: 1.2;
}
.fc-project-modern .fc-project-cta-copy p {
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.65;
    margin: 0 0 22px;
}
.fc-project-modern .fc-project-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.fc-project-modern .fc-project-cta-btn {
    border-radius: 999px !important;
    padding: 14px 28px !important;
    font-weight: 700 !important;
    border: none !important;
}
.fc-project-modern .fc-project-cta-btn--primary {
    background: linear-gradient(158deg, #fdbe33, #e8a820) !important;
    color: var(--fc-navy) !important;
    box-shadow: 0 6px 22px rgba(253, 190, 51, 0.4);
}
.fc-project-modern .fc-project-cta-btn--ghost {
    background: transparent !important;
    color: #fff !important;
    border: 2px solid rgba(255, 255, 255, 0.35) !important;
}
.fc-project-modern .fc-project-cta-contact {
    text-align: center;
    padding: 20px 28px;
    border-radius: var(--fc-radius-lg);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(253, 190, 51, 0.25);
}
.fc-project-modern .fc-project-cta-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 8px;
}
.fc-project-modern .fc-project-cta-phone {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--fc-gold);
    text-decoration: none;
}
.fc-project-modern .fc-project-cta-phone:hover {
    color: #ffc94d;
    text-decoration: none;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 575px) {
    .fc-project-modern .fc-project-trust-inner {
        flex-direction: column;
    }
    .fc-project-modern .fc-project-trust-divider {
        width: 60px;
        height: 1px;
    }
    .fc-project-modern .fc-project-cta-inner {
        flex-direction: column;
        text-align: center;
    }
    .fc-project-modern .fc-project-cta-actions {
        justify-content: center;
    }
    .fc-project-modern .fc-project-filters {
        gap: 8px;
    }
    .fc-project-modern .fc-project-filter-btn {
        padding: 10px 16px;
        font-size: 0.75rem;
    }
}

/* Override legacy global styles inside projects page */
.fc-project-modern .portfolio,
.fc-project-modern .fc-project-page-section {
    margin-bottom: 0 !important;
    padding: 0 !important;
}
