/* ============================================
   PROJECTS PAGE — Specific Styles
   ============================================ */

/* --- Active Nav Link --- */
.nav__link--active {
    color: var(--text-primary);
}

.nav__link--active::after {
    width: 100%;
}

/* ============================================
   PROJECTS HERO
   ============================================ */
.proj-hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    max-height: 700px;
    display: flex;
    align-items: flex-end;
    padding-bottom: 80px;
    overflow: hidden;
}

.proj-hero__video-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.proj-hero__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
}

.proj-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background:
        linear-gradient(180deg,
            rgba(10, 10, 10, 0.6) 0%,
            rgba(10, 10, 10, 0.2) 35%,
            rgba(10, 10, 10, 0.7) 70%,
            rgba(10, 10, 10, 1) 100%
        ),
        linear-gradient(90deg,
            rgba(10, 10, 10, 0.8) 0%,
            transparent 55%
        );
}

.proj-hero__content {
    position: relative;
    z-index: 2;
    max-width: var(--content-wide);
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}

.proj-hero__title {
    font-family: var(--font-display);
    font-size: clamp(36px, 5.5vw, 68px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.035em;
    max-width: 700px;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeUp 0.9s var(--ease-smooth) 0.3s forwards;
}

.proj-hero__desc {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 520px;
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeUp 0.8s var(--ease-smooth) 0.5s forwards;
}

/* ============================================
   PROJECT NAV STRIP
   ============================================ */
.proj-nav-strip {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: var(--nav-height);
    z-index: 100;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.proj-nav-strip__inner {
    display: flex;
    gap: 0;
}

.proj-nav-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 28px;
    border-right: 1px solid var(--border);
    transition: background 0.3s ease;
    color: var(--text-secondary);
}

.proj-nav-item:last-child {
    border-right: none;
}

.proj-nav-item:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

.proj-nav-item--active {
    color: var(--text-primary);
    background: rgba(212, 163, 60, 0.04);
}

.proj-nav-item__badge {
    font-family: var(--font-mono);
    font-size: 8px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #28C840;
    background: rgba(40, 200, 64, 0.1);
    border: 1px solid rgba(40, 200, 64, 0.2);
    padding: 3px 10px;
    border-radius: 100px;
    font-weight: 500;
}

.proj-nav-item__badge--upcoming {
    color: var(--accent);
    background: rgba(212, 163, 60, 0.1);
    border-color: rgba(212, 163, 60, 0.2);
}

.proj-nav-item__name {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
}

/* ============================================
   ACT4DARKHAN CASE STUDY
   ============================================ */
.proj-case {
    background: var(--bg-primary);
}

/* Header */
.proj-case__header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border);
}

.proj-case__tagline {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-top: 8px;
}

.proj-case__header-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.proj-meta__label {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.proj-meta__value {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.proj-meta__value--live {
    color: #28C840;
}

/* Hero Image */
.proj-case__hero-img {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 80px;
    aspect-ratio: 21/9;
}

.proj-case__hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.proj-case__hero-badge {
    position: absolute;
    top: 24px;
    left: 24px;
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--bg-primary);
    background: var(--accent);
    padding: 8px 20px;
    border-radius: 100px;
    box-shadow: 0 4px 16px rgba(212, 163, 60, 0.3);
}

/* Challenge + Solution Grid */
.proj-case__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-bottom: 80px;
}

.proj-case__block {
    padding: 40px;
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border);
}

.proj-case__block-label {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}

.proj-case__block-title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.proj-case__block-text {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Phase Timeline */
.proj-timeline {
    margin-bottom: 80px;
}

.proj-timeline__title {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 36px;
    letter-spacing: -0.02em;
}

.proj-timeline__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.proj-timeline__phase {
    padding: 32px;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border);
    position: relative;
    transition: border-color 0.3s ease, transform 0.3s var(--ease-smooth);
}

.proj-timeline__phase:hover {
    border-color: rgba(212, 163, 60, 0.2);
    transform: translateY(-4px);
}

.proj-timeline__phase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), transparent);
    border-radius: 16px 16px 0 0;
}

.proj-timeline__phase-num {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--accent);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.proj-timeline__phase-name {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.proj-timeline__phase-period {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.proj-timeline__phase-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Numbers Strip */
.proj-numbers {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border);
    overflow: hidden;
    margin-bottom: 80px;
}

.proj-numbers__item {
    padding: 40px 28px;
    text-align: center;
    border-right: 1px solid var(--border);
}

.proj-numbers__item:last-child {
    border-right: none;
}

.proj-numbers__value {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 10px;
    letter-spacing: -0.03em;
}

.proj-numbers__label {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Data Sources */
.proj-sources {
    margin-bottom: 20px;
}

.proj-sources__title {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 32px;
    letter-spacing: -0.02em;
}

.proj-sources__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.proj-source {
    padding: 28px;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: border-color 0.3s ease;
}

.proj-source:hover {
    border-color: rgba(212, 163, 60, 0.15);
}

.proj-source__icon {
    font-size: 24px;
    margin-bottom: 14px;
}

.proj-source__name {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.proj-source__desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   FOCUS AREA SECTIONS (Climate Risk + Urban)
   ============================================ */
.proj-focus {
    position: relative;
    min-height: 700px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.proj-focus__video-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.proj-focus__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
}

.proj-focus__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background:
        linear-gradient(180deg,
            rgba(10, 10, 10, 0.9) 0%,
            rgba(10, 10, 10, 0.5) 30%,
            rgba(10, 10, 10, 0.5) 70%,
            rgba(10, 10, 10, 0.95) 100%
        ),
        linear-gradient(90deg,
            rgba(10, 10, 10, 0.85) 0%,
            transparent 50%
        );
}

.proj-focus__overlay--blue {
    background:
        linear-gradient(180deg,
            rgba(10, 10, 10, 0.9) 0%,
            rgba(10, 15, 25, 0.6) 30%,
            rgba(10, 15, 25, 0.6) 70%,
            rgba(10, 10, 10, 0.95) 100%
        ),
        linear-gradient(90deg,
            rgba(10, 10, 10, 0.85) 0%,
            transparent 50%
        );
}

.proj-focus__content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 120px 0;
}

.proj-focus__inner {
    max-width: 640px;
}

.proj-focus__title {
    font-family: var(--font-display);
    font-size: clamp(32px, 4.5vw, 52px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.proj-focus__desc {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 28px;
}

.proj-focus__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 40px;
}

.proj-focus__tag {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.08em;
    color: var(--accent);
    background: rgba(212, 163, 60, 0.08);
    border: 1px solid rgba(212, 163, 60, 0.15);
    padding: 6px 14px;
    border-radius: 100px;
}

.proj-focus__capabilities {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.proj-focus__capability {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 18px 22px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 14px;
    backdrop-filter: blur(8px);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.proj-focus__capability:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(212, 163, 60, 0.15);
}

.proj-focus__capability-icon {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.proj-focus__capability-name {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.proj-focus__capability-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ============================================
   EXPANSION SECTION
   ============================================ */
.proj-expansion {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
}

.proj-expansion__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 20px;
}

.proj-expansion__card {
    padding: 36px 28px;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border);
    text-align: center;
    transition: border-color 0.3s ease, transform 0.3s var(--ease-smooth);
}

.proj-expansion__card:hover {
    border-color: rgba(212, 163, 60, 0.2);
    transform: translateY(-4px);
}

.proj-expansion__card-icon {
    font-size: 32px;
    margin-bottom: 16px;
}

.proj-expansion__card-title {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.proj-expansion__card-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   RESPONSIVE — PROJECTS PAGE
   ============================================ */
@media (max-width: 1024px) {
    .proj-case__header {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .proj-case__grid {
        grid-template-columns: 1fr;
    }

    .proj-timeline__grid {
        grid-template-columns: 1fr;
    }

    .proj-numbers {
        grid-template-columns: repeat(2, 1fr);
    }

    .proj-numbers__item:nth-child(2) {
        border-right: none;
    }

    .proj-numbers__item:nth-child(1),
    .proj-numbers__item:nth-child(2) {
        border-bottom: 1px solid var(--border);
    }

    .proj-sources__grid {
        grid-template-columns: 1fr;
    }

    .proj-nav-strip__inner {
        flex-direction: column;
    }

    .proj-nav-item {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .proj-nav-item:last-child {
        border-bottom: none;
    }

    .proj-expansion__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .proj-hero {
        height: 60vh;
        min-height: 400px;
    }

    .proj-hero__content {
        padding: 0 20px;
    }

    .proj-nav-strip {
        position: relative;
        top: 0;
    }

    .proj-case__hero-img {
        aspect-ratio: 16/9;
    }

    .proj-case__block {
        padding: 28px;
    }

    .proj-focus__content {
        padding: 80px 0;
    }

    .proj-focus__tags {
        gap: 6px;
    }

    .proj-numbers {
        grid-template-columns: 1fr 1fr;
    }
}
