/* =========================================
   PROJECTS PAGE – PHOENIX / FORGE THEME
   ========================================= */

:root {
    --projects-bg: radial-gradient(circle at top left, #1f2937 0, #020617 45%, #000000 100%);
    --projects-accent: #fb923c;
    --projects-accent-soft: rgba(251, 146, 60, 0.18);
    --projects-accent-strong: #f97316;
    --projects-cyan: #22d3ee;
    --projects-magenta: #e879f9;
    --projects-border-soft: rgba(248, 113, 113, 0.42);
    --projects-text: #f9fafb;
    --projects-muted: #9ca3af;
}

/* Base layout for this page */
body.projects-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at top, rgba(248, 250, 252, 0.1) 0, transparent 55%),
        radial-gradient(circle at bottom, rgba(248, 113, 113, 0.16) 0, transparent 60%),
        var(--projects-bg);
    color: var(--projects-text);
    position: relative;
    overflow-x: hidden;
    
    padding-top: 0;
}

/* subtle grid / noise overlay */
body.projects-page::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.32;
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.55) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.55) 1px, transparent 1px);
    background-size: 80px 80px;
    mix-blend-mode: soft-light;
    z-index: -1;
}

/* =========================================
   LOCAL HEADER (PROJECTS PAGE ONLY)
   ========================================= */

.projects-page-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background:
        radial-gradient(circle at top, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.98));
    border-bottom: 1px solid rgba(248, 113, 113, 0.6);
    box-shadow:
        0 14px 40px rgba(0, 0, 0, 0.9),
        0 0 0 1px rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(18px);
}

.projects-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding-block: 0.7rem;
}

/* brand */

.projects-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.projects-brand-mark {
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at top, rgba(248, 250, 252, 0.26), transparent 70%),
        conic-gradient(from 210deg, #f97316, #fb7185, #e879f9, #facc15, #f97316);
    box-shadow:
        0 0 20px rgba(248, 113, 113, 0.5),
        0 0 40px rgba(251, 191, 36, 0.4);
}

.projects-brand-text {
    display: flex;
    flex-direction: column;
}

.projects-brand-title {
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--projects-text);
}

.projects-brand-tagline {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.9);
}

/* nav */

.projects-nav {
    display: flex;
    align-items: center;
    gap: 1.4rem;
}

.projects-nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.1rem;
    font-size: 0.83rem;
}

.projects-nav-links a {
    position: relative;
    text-decoration: none;
    color: rgba(226, 232, 240, 0.92);
    padding-block: 0.2rem;
    transition: color 0.2s ease;
}

.projects-nav-links a:hover {
    color: #fefce8;
}

.projects-nav-links a.is-current {
    color: #fed7aa;
}

.projects-nav-links a.is-current::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.3rem;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #f97316, #fb7185, #e879f9);
}

/* nav right */

.projects-nav-right {
    display: flex;
    align-items: center;
}

/* lang toggle */

.lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.7));
    border: 1px solid rgba(248, 113, 113, 0.65);
    box-shadow: 0 0 20px rgba(248, 113, 113, 0.4);
}

.lang-btn {
    border: none;
    background: transparent;
    color: var(--projects-muted);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    padding: 0.1rem 0.2rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.lang-btn.is-active {
    color: var(--projects-text);
    transform: translateY(-1px);
}

.lang-divider {
    color: rgba(148, 163, 184, 0.5);
}

/* RESPONSIVE HEADER */

@media (max-width: 880px) {
    .projects-header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
    }

    .projects-nav {
        width: 100%;
        justify-content: space-between;
    }

    .projects-nav-links {
        gap: 0.75rem;
        font-size: 0.78rem;
    }
}

@media (max-width: 640px) {
    .projects-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }

    .projects-nav-links {
        flex-wrap: wrap;
    }
}

/* =========================================
   SECTIONS
   ========================================= */

.projects-main {
    padding-top: 3.4rem;
}

/* HERO */

.projects-hero {
    position: relative;
    /* less top padding = title moves up */
    padding-block: 2.8rem 4rem;
}


.projects-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(248, 113, 113, 0.15), transparent 65%),
        radial-gradient(circle at bottom right, rgba(249, 115, 22, 0.22), transparent 70%);
    opacity: 0.9;
    pointer-events: none;
    z-index: -1;
}

.projects-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr);
    gap: 3rem;
    align-items: center;
}

/* hero text */

.projects-hero-copy {
    max-width: 640px;
}

.projects-hero .eyebrow {
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(248, 250, 252, 0.7);
    margin-bottom: 0.6rem;
}

.projects-hero-title {
    font-size: clamp(2.4rem, 3.2vw, 3rem);
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(120deg, #f97316, #fb7185, #e879f9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.projects-hero-subtitle {
    font-size: 0.98rem;
    line-height: 1.7;
    color: var(--projects-muted);
    max-width: 38rem;
    margin-bottom: 1.6rem;
}

/* hero stats */

.projects-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-bottom: 1.6rem;
}

.stat-pill {
    min-width: 8.2rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(248, 113, 113, 0.55);
    background:
        radial-gradient(circle at top, rgba(248, 113, 113, 0.16), transparent 65%),
        rgba(15, 23, 42, 0.95);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
}

.stat-label {
    display: block;
    font-size: 0.7rem;
    color: rgba(248, 250, 252, 0.7);
}

.stat-value {
    font-size: 0.9rem;
    font-weight: 600;
}

/* hero buttons */

.projects-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: center;
    margin-bottom: 1.2rem;
}

.btn-fire-primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.7rem 1.3rem;
    border-radius: 999px;
    background:
        radial-gradient(circle at top, rgba(248, 250, 252, 0.26) 0, transparent 70%),
        linear-gradient(120deg, #f97316, #fb7185, #e879f9);
    color: #0b1120;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.9),
        0 0 40px rgba(248, 113, 113, 0.45);
    border: none;
    cursor: pointer;
    overflow: hidden;
}

.btn-fire-primary::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(248, 250, 252, 0.16), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-fire-primary:hover::after {
    opacity: 1;
}

.btn-fire-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.7rem 1.2rem;
    border-radius: 999px;
    border: 1px solid rgba(248, 113, 113, 0.65);
    background: rgba(15, 23, 42, 0.9);
    color: var(--projects-text);
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn-fire-ghost:hover {
    background: rgba(15, 23, 42, 1);
    border-color: rgba(253, 186, 116, 0.9);
    transform: translateY(-1px);
}

.btn-fire-ghost-icon {
    font-size: 0.9rem;
    opacity: 0.82;
}

.projects-hero-note {
    font-size: 0.85rem;
    color: rgba(248, 250, 252, 0.72);
}

/* HERO ORB */

.projects-hero-orb {
    display: flex;
    justify-content: flex-end;
}

.orb-shell {
    position: relative;
    width: 320px;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    margin-inline: auto;
}

.orb-core {
    position: absolute;
    inset: 10%;
    border-radius: 999px;
    background:
        radial-gradient(circle at 20% 0%, rgba(251, 191, 36, 0.3) 0, transparent 55%),
        radial-gradient(circle at 80% 100%, rgba(248, 113, 113, 0.55) 0, transparent 65%),
        radial-gradient(circle at 50% 35%, rgba(15, 23, 42, 0.9), rgba(2, 6, 23, 1));
    box-shadow:
        0 0 55px rgba(248, 113, 113, 0.65),
        0 0 105px rgba(251, 191, 36, 0.65);
    overflow: hidden;
}

.orb-flame {
    position: absolute;
    inset: 12%;
    background:
        radial-gradient(circle at 50% 80%, rgba(0, 0, 0, 0.95) 0, transparent 45%),
        conic-gradient(
            from 200deg,
            rgba(249, 115, 22, 0.2),
            rgba(248, 113, 113, 0.5),
            rgba(236, 72, 153, 0.4),
            rgba(251, 191, 36, 0.45),
            rgba(249, 115, 22, 0.2)
        );
    mix-blend-mode: screen;
    filter: blur(9px);
    animation: orbFlame 10s ease-in-out infinite alternate;
}

.orb-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.9));
}

.orb-ring {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    border: 1px solid rgba(248, 250, 252, 0.2);
    pointer-events: none;
}

.orb-ring--outer {
    inset: -7%;
    border-color: rgba(248, 113, 113, 0.6);
    box-shadow: 0 0 60px rgba(248, 113, 113, 0.5);
    animation: orbSpin 26s linear infinite;
}

.orb-ring--inner {
    inset: 16%;
    border-color: rgba(251, 191, 36, 0.55);
    box-shadow: 0 0 45px rgba(251, 191, 36, 0.55);
    animation: orbSpinReverse 34s linear infinite;
}

/* orb badges */

.orb-badges {
    position: absolute;
    inset: auto 0 -4.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.orb-badge {
    align-self: flex-end;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.9));
    border: 1px solid rgba(248, 113, 113, 0.6);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9);
    min-width: 180px;
}

.orb-badge:nth-child(2) {
    align-self: center;
}

.orb-badge:nth-child(3) {
    align-self: flex-start;
}

.orb-badge-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(248, 250, 252, 0.7);
}

.orb-badge-value {
    font-size: 0.8rem;
    color: var(--projects-text);
}

/* COLLECTION SECTION */

.projects-collection {
    position: relative;
    padding-block: 3.5rem 4.5rem;
}

/* subtle section split line */
.projects-collection::before {
    content: "";
    position: absolute;
    inset: 0;
    border-top: 1px solid rgba(248, 113, 113, 0.6);
    pointer-events: none;
    opacity: 0.85;
}

/* toolbar */

.projects-toolbar {
    margin-bottom: 2.2rem;
    padding: 1.2rem 1.2rem 1.15rem;
    border-radius: 1.4rem;
    border: 1px solid rgba(248, 113, 113, 0.7);
    background:
        radial-gradient(circle at top left, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.98)),
        linear-gradient(120deg, rgba(248, 113, 113, 0.24), rgba(251, 191, 36, 0.1));
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.92),
        0 0 0 1px rgba(15, 23, 42, 1);
}

.toolbar-main {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    justify-content: space-between;
    align-items: center;
}

.toolbar-labels {
    max-width: 700px;
}

.toolbar-eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(248, 250, 252, 0.9);
    margin-bottom: 0.25rem;
}

.toolbar-note {
    font-size: 0.8rem;
    color: rgba(248, 250, 252, 0.75);
}

/* filter chips */

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: flex-end;
}

.filter-chip {
    border-radius: 999px;
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    border: 1px solid rgba(248, 113, 113, 0.6);
    background: rgba(15, 23, 42, 0.96);
    color: rgba(226, 232, 240, 0.96);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.filter-chip:hover {
    border-color: rgba(253, 186, 116, 0.9);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.9);
    transform: translateY(-1px);
}

.filter-chip.is-active {
    background: radial-gradient(circle at top, rgba(248, 250, 252, 0.1), transparent 65%),
        linear-gradient(110deg, #f97316, #fb7185, #e879f9);
    border-color: transparent;
    color: #020617;
}

/* GRID */

.projects-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.4rem;
}

/* big cards on larger screens */
@media (min-width: 900px) {
    .projects-grid {
        grid-template-columns: minmax(0, 1.08fr) minmax(0, 1.08fr);
    }
}

/* PROJECT CARD */

.project-card {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    background: transparent;
    transform-style: preserve-3d;
    perspective: 1100px;
}

.project-card-outline {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        radial-gradient(circle at top left, rgba(248, 113, 113, 0.7), transparent 55%),
        radial-gradient(circle at bottom right, rgba(251, 191, 36, 0.55), transparent 60%);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.project-card-inner {
    position: relative;
    z-index: 1;
    padding: 1.4rem 1.4rem 1.35rem;
    border-radius: inherit;
    border: 1px solid var(--projects-border-soft);
    background:
        radial-gradient(circle at top left, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 1)),
        radial-gradient(circle at bottom right, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 1));
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.92),
        0 0 0 1px rgba(15, 23, 42, 1);
    transform-origin: center center;
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out, border-color 0.2s ease;
}

/* header */

.project-card-header {
    margin-bottom: 0.8rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.5rem;
}

.tag-pill {
    border-radius: 999px;
    padding: 0.16rem 0.7rem;
    font-size: 0.7rem;
    border: 1px solid rgba(148, 163, 184, 0.75);
    color: rgba(226, 232, 240, 0.92);
    background: rgba(15, 23, 42, 0.96);
}

.tag-pill--fire {
    border: 1px solid rgba(248, 113, 113, 0.95);
    color: #fed7aa;
    background:
        radial-gradient(circle at top, rgba(248, 113, 113, 0.5), transparent 75%),
        rgba(15, 23, 42, 0.96);
}

.project-title {
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
}

.project-kicker {
    font-size: 0.85rem;
    color: rgba(248, 250, 252, 0.8);
}

/* body text */

.project-body {
    font-size: 0.88rem;
    line-height: 1.7;
    color: rgba(209, 213, 219, 0.98);
    margin-bottom: 0.9rem;
}

/* meta */

.project-meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.35rem 1.5rem;
    font-size: 0.8rem;
    color: rgba(248, 250, 252, 0.85);
    margin-bottom: 0.95rem;
}

@media (min-width: 700px) {
    .project-meta {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.project-meta dt {
    font-weight: 600;
    margin-right: 0.2rem;
    color: rgba(253, 224, 171, 0.95);
}

.project-meta dd {
    margin: 0;
}

/* footer */

.project-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: flex-start;
}

.project-link {
    font-size: 0.8rem;
    border-radius: 999px;
    padding: 0.4rem 0.85rem;
    text-decoration: none;
    border: 1px solid rgba(248, 113, 113, 0.7);
    color: rgba(226, 232, 240, 0.96);
    background: rgba(15, 23, 42, 0.98);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.project-link--primary {
    border-color: transparent;
    background: linear-gradient(120deg, #f97316, #fb7185, #e879f9);
    color: #020617;
}

.project-link:hover {
    transform: translateY(-1px);
    border-color: rgba(253, 186, 116, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9);
}

/* card hover / 3D tilt baseline */

.project-card:hover .project-card-outline {
    opacity: 0.9;
}

.project-card:hover .project-card-inner {
    border-color: rgba(253, 186, 116, 0.95);
    box-shadow:
        0 28px 70px rgba(0, 0, 0, 1),
        0 0 60px rgba(248, 113, 113, 0.5);
}

/* bottom nav */

.projects-bottom-nav {
    margin-top: 2.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    justify-content: space-between;
    align-items: center;
}

.btn-back-to-top {
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    border: 1px solid rgba(248, 113, 113, 0.7);
    background: rgba(15, 23, 42, 0.96);
    color: rgba(226, 232, 240, 0.95);
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.9);
    transition: background 0.2s ease, border-color 0.2s ease,
                transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-back-to-top:hover {
    background: rgba(15, 23, 42, 1);
    border-color: rgba(253, 186, 116, 0.95);
    transform: translateY(-1px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 1);
}


.btn-back-icon {
    font-size: 0.9rem;
}

.btn-back-contact {
    border-radius: 999px;
    padding: 0.55rem 1.05rem;
    border: none;
    background: linear-gradient(120deg, #f97316, #fb7185, #e879f9);
    color: #020617;
    font-size: 0.8rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.96),
        0 0 40px rgba(248, 113, 113, 0.5);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-back-contact:hover {
    transform: translateY(-1px);
    box-shadow:
        0 22px 55px rgba(0, 0, 0, 1),
        0 0 55px rgba(248, 113, 113, 0.7);
    filter: brightness(1.05);
}


.btn-back-contact-icon {
    font-size: 1rem;
}

/* FOOTER with fire canvas */

.site-footer--projects {
    position: relative;
    margin-top: 0;
    padding-block: 1.8rem 1.6rem;
    border-top: 1px solid rgba(248, 113, 113, 0.7);
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.98));
    overflow: hidden;
}

.projects-footer-fire-layer {
    position: absolute;
    inset: -40% -10% 0;
    pointer-events: none;
    opacity: 0.9;
    mix-blend-mode: screen;
}

#projects-footer-fire {
    width: 100%;
    height: 100%;
    display: block;
}

/* make footer content sit above fire */
.site-footer--projects .footer-inner {
    position: relative;
    z-index: 1;
}

/* REVEAL ON SCROLL */

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal-on-scroll.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* ANIMATIONS */

@keyframes orbFlame {
    0% {
        transform: translate3d(0, 8px, 0) scale(1);
    }
    50% {
        transform: translate3d(3px, -6px, 0) scale(1.05);
    }
    100% {
        transform: translate3d(-3px, 4px, 0) scale(1.02);
    }
}

@keyframes orbSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes orbSpinReverse {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(-360deg);
    }
}



.projects-orbit-core-icon {
    position: relative;
    z-index: 2;
    width: 7rem;
    height: 7rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 30% 20%, rgba(252, 211, 77, 0.22), transparent 55%),
        radial-gradient(circle at 70% 80%, rgba(251, 113, 133, 0.3), transparent 60%),
        rgba(15, 23, 42, 0.9);
    box-shadow:
        0 0 35px rgba(251, 146, 60, 0.65),
        0 0 70px rgba(236, 72, 153, 0.55);
    overflow: hidden; /* so img respects the circle */
}

/* NEW: image inside the core */
.projects-orbit-core-img {
    width: 80%;
    height: 80%;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 0 14px rgba(251, 146, 60, 0.75));
    transform: translateY(1px);
}



.projects-orbit-core-img {
    width: 80%;
    height: 80%;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 0 14px rgba(251, 146, 60, 0.75));
    transform: translateY(1px);
    animation: phoenix-float 4s ease-in-out infinite;
}

@keyframes phoenix-float {
    0%, 100% {
        transform: translateY(1px) scale(1);
    }
    50% {
        transform: translateY(-4px) scale(1.03);
    }
}






/* PHOENIX ORB – image + extra magic */

.orb-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    filter: drop-shadow(0 10px 24px rgba(15, 23, 42, 0.9));
    pointer-events: none;
}

.orb-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform-origin: center;
    border-radius: 999px;

    /* glow + float animations */
    animation:
        phoenix-float 7s ease-in-out infinite alternate,
        phoenix-glow 4.5s ease-in-out infinite;
}

/* Soft floating motion */
@keyframes phoenix-float {
    0% {
        transform: translateY(4px) scale(0.98);
    }
    40% {
        transform: translateY(-8px) scale(1.03);
    }
    70% {
        transform: translateY(2px) scale(1.01);
    }
    100% {
        transform: translateY(-5px) scale(1.02);
    }
}

/* Pulsing forge glow around the phoenix */
@keyframes phoenix-glow {
    0% {
        filter:
            drop-shadow(0 0 16px rgba(251, 191, 36, 0.65))
            drop-shadow(0 0 32px rgba(248, 113, 113, 0.7))
            drop-shadow(0 0 60px rgba(244, 114, 182, 0.35));
    }
    50% {
        filter:
            drop-shadow(0 0 24px rgba(251, 191, 36, 0.9))
            drop-shadow(0 0 52px rgba(248, 113, 113, 0.95))
            drop-shadow(0 0 80px rgba(244, 114, 182, 0.5));
    }
    100% {
        filter:
            drop-shadow(0 0 16px rgba(251, 191, 36, 0.65))
            drop-shadow(0 0 32px rgba(248, 113, 113, 0.7))
            drop-shadow(0 0 60px rgba(244, 114, 182, 0.35));
    }
}








/* RESPONSIVE */

@media (max-width: 960px) {
    .projects-hero-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 2.4rem;
    }

    .projects-hero-orb {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .projects-toolbar {
        padding: 1rem;
    }

    .toolbar-main {
        flex-direction: column;
        align-items: flex-start;
    }

    .projects-bottom-nav {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-back-to-top,
    .btn-back-contact {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .projects-hero {
        padding-block: 3.2rem 3rem;
    }

    .orb-shell {
        width: 260px;
    }

    .orb-badges {
        inset: auto 0 -3.7rem;
    }

    .projects-collection {
        padding-block: 2.8rem 3.6rem;
    }

    .project-card-inner {
        padding: 1.1rem 1.1rem 1rem;
    }
}



@media (max-width: 600px) {
    .projects-hero {
        padding-block: 2.4rem 3.2rem;
    }

    .projects-collection {
        padding-block: 2.6rem 3.6rem;
    }
}

