/* ============================================================
   PROJECTS PAGE — additions on top of Blogs.css
   ============================================================ */

/* ============================================================
   SHARED MOTION & MICRO-INTERACTIONS (added for consistency)
   ============================================================ */
.motion-ready .motion-hero,
.motion-ready .motion-reveal {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
}

.motion-ready .motion-hero.motion-scale {
    transform: translate3d(0, 16px, 0) scale(1.025);
}

.motion-ready .motion-hero.is-visible,
.motion-ready .motion-reveal.is-visible {
    animation: aerovolt-reveal .68s cubic-bezier(.22, 1, .36, 1) both;
    animation-delay: var(--motion-delay, 0ms);
}

.motion-ready .motion-hero.motion-scale.is-visible {
    animation-name: aerovolt-reveal-scale;
}

.motion-delay-1 { --motion-delay: 70ms; }
.motion-delay-2 { --motion-delay: 140ms; }
.motion-delay-3 { --motion-delay: 210ms; }
.motion-delay-4 { --motion-delay: 280ms; }
.motion-delay-5 { --motion-delay: 350ms; }

@keyframes aerovolt-reveal {
    from { opacity: 0; transform: translate3d(0, 28px, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes aerovolt-reveal-scale {
    from { opacity: 0; transform: translate3d(0, 16px, 0) scale(1.025); }
    to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .motion-hero,
    .motion-reveal {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }
}


/* ============================================================
   PROJECT HERO — highlight + title overrides
   ============================================================ */
.proj-hero-highlight {
    color: var(--blue-accent);
}

.blog-hero-eyebrow {
    color: var(--red);
}

.proj-hero-title {
    white-space: nowrap;
}

.proj-hero-desc {
    white-space: normal;
    max-width: 640px;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .proj-hero-title {
        white-space: normal;
    }
}

/* ============================================================
   PROJECT FILTER BAR
   ============================================================ */
.proj-filter-section {
    background: rgba(37, 82, 187, .06);
    border-top: 1px solid var(--navy);
    border-bottom: 1px solid var(--navy);
    padding: 18px 32px;
}

.proj-filter-inner {
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.proj-filter-tabs {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

.proj-filter-tab {
    position: relative;
    background: none;
    border: none;
    padding: 8px 0;
    color: var(--gray-text);
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    transition: color .2s ease;
}

.proj-filter-tab::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--blue-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .2s ease;
}

.proj-filter-tab:hover {
    color: var(--navy-text);
}

.proj-filter-tab.active {
    color: var(--blue-accent);
}

.proj-filter-tab.active::after {
    transform: scaleX(1);
}

.proj-filter-search {
    position: relative;
    display: flex;
    align-items: center;
}

.proj-filter-search input {
    width: 220px;
    padding: 9px 38px 9px 16px;
    border: 1px solid rgba(37, 82, 187, .2);
    border-radius: var(--radius-pill);
    background: #fff;
    color: var(--navy-text);
    font-size: 13.5px;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.proj-filter-search input:focus {
    border-color: var(--blue-accent);
    box-shadow: 0 0 0 3px rgba(37, 82, 187, .12);
}

.proj-filter-search svg {
    position: absolute;
    right: 14px;
    width: 16px;
    height: 16px;
    color: var(--gray-text);
    pointer-events: none;
}

.proj-no-results {
    display: none;
    max-width: var(--container);
    margin: 40px auto 0;
    text-align: center;
    color: var(--gray-text);
    font-size: 14px;
    font-weight: 600;
}

@media (max-width: 600px) {
    .proj-filter-inner {
        justify-content: center;
    }
    .proj-filter-tabs {
        justify-content: center;
        width: 100%;
        gap: 20px;
    }
    .proj-filter-search {
        width: 100%;
    }
    .proj-filter-search input {
        width: 100%;
    }
}

/* ============================================================
   FEATURED PROJECT — zoomable drawing left, details right
   ============================================================ */
.proj-featured-section {
    padding: 48px 32px 90px;
    background: #fff;
}

.proj-featured-inner {
    max-width: var(--container);
    margin: 0 auto;
}

.proj-featured-card {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    align-items: stretch;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 18px 44px rgba(13, 27, 42, .1);
}

.proj-featured-media {
    position: relative;
    min-height: 360px;
    padding: 20px;
    background: #f5f7fa;
    display: flex;
}

.proj-viewer {
    position: relative;
    width: 100%;
    height: 100%;
}

.proj-viewer-frame {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 320px;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: none;
    background: #fff;
    box-shadow: 0 6px 18px rgba(13, 27, 42, .1);
}
.proj-viewer-frame.is-zoomed {
    cursor: grab;
}
.proj-viewer-frame.is-dragging {
    cursor: grabbing;
}

.proj-viewer-img {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(0, 0) scale(1);
    transform-origin: center;
    transition: transform .2s ease;
    cursor: zoom-in;
    user-select: none;
    -webkit-user-drag: none;
}
.proj-viewer-img.is-zoomed {
    cursor: inherit;
    transition: none;
}

.proj-viewer-zoom {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 6px;
}

.proj-zoom-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: rgba(13, 27, 42, .82);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}
.proj-zoom-btn:hover {
    background: var(--navy);
    transform: scale(1.06);
}

.proj-featured-content {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 42px 46px;
    background: linear-gradient(160deg, rgba(37, 82, 187, .09) 0%, rgba(37, 82, 187, .03) 55%, rgba(255, 255, 255, .5) 100%);
    border: 1px solid rgba(37, 82, 187, .28);
    border-left: none;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .5),
        0 0 46px rgba(37, 82, 187, .16);
}

.proj-featured-title {
    margin-bottom: 4px;
    color: var(--navy-text);
    font-size: clamp(24px, 2.6vw, 32px);
    font-weight: 800;
    letter-spacing: -0.6px;
    line-height: 1.2;
}

.proj-featured-subtitle {
    margin-bottom: 16px;
    color: var(--blue-accent);
    font-size: 14.5px;
    font-weight: 700;
}

.proj-featured-desc {
    max-width: 440px;
    margin-bottom: 26px;
    color: var(--gray-text);
    font-size: 14px;
    line-height: 1.75;
    font-weight: 500;
}

.proj-featured-meta {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.proj-featured-meta-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.proj-featured-meta-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin-top: 1px;
    border-radius: 8px;
    background: rgba(37, 82, 187, .1);
    color: var(--blue-accent);
}

.proj-featured-meta-icon svg {
    width: 16px;
    height: 16px;
}

.proj-featured-meta-label {
    display: block;
    color: var(--navy-text);
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 2px;
}

.proj-featured-meta-value {
    display: block;
    color: var(--gray-text);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.55;
}

.proj-more-text {
    max-width: 640px;
    margin: 34px auto 0;
    text-align: center;
    color: var(--gray-text);
    font-size: 14px;
    line-height: 1.7;
    font-weight: 500;
}

@media (max-width: 900px) {
    .proj-featured-card {
        grid-template-columns: 1fr;
    }
    .proj-featured-media,
    .proj-viewer-frame {
        min-height: 280px;
    }
    .proj-featured-content {
        border-left: 1px solid rgba(37, 82, 187, .28);
        border-top: none;
    }
}

@media (max-width: 600px) {
    .proj-featured-section {
        padding: 6px 20px 60px;
    }
    .proj-featured-content {
        padding: 30px 26px;
    }
    .proj-featured-desc {
        max-width: none;
    }
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
    position: relative;
    min-height: 220px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.cta-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.cta-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(13, 27, 42, 0.96) 0%,
        rgba(13, 27, 42, 0.85) 38%,
        rgba(13, 27, 42, 0.35) 65%,
        rgba(13, 27, 42, 0.05) 100%
    );
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: var(--container);
    width: 100%;
    margin: 0 auto;
    padding: 28px 32px;
}

.cta-heading {
    font-size: 30px;
    font-weight: 800;
    line-height: 1.35;
    color: #fff;
    max-width: 620px;
    margin-bottom: 8px;
}

.cta-subtext {
    font-size: 15.5px;
    font-weight: 400;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.88);
    max-width: 520px;
    margin-bottom: 22px;
}

.cta-actions {
    display: flex;
    align-items: center;
    gap: 26px;
    flex-wrap: wrap;
}

.cta-btn--dark {
    background: var(--red);
}
.cta-btn--dark:hover {
    background: var(--red-dark);
}
.cta-btn--small {
    font-size: 12px;
    padding: 8px 18px;
}

.btn-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    transition: transform .2s ease;
}
.btn-arrow svg {
    width: 100%;
    height: 100%;
    display: block;
}
.cta-btn:hover .btn-arrow {
    transform: translate(2px, -2px);
}

.cta-email {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14.5px;
    font-weight: 400;
    color: #fff;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    transition: color .2s ease;
}
.cta-email:hover {
    color: var(--red);
}
.cta-email-icon {
    display: flex;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}
.cta-email-icon svg {
    width: 100%;
    height: 100%;
}

@media (max-width: 700px) {
    .cta-heading {
        font-size: 24px;
    }
    .cta-subtext {
        font-size: 14px;
    }
    .cta-content {
        padding: 22px 20px;
    }
    .cta-actions {
        gap: 16px;
    }
}