body {
    margin: 0;
    padding: 0;
    background-color: #7a92b0;
}

/* =========================================================
   BREADCRUMB
   ========================================================= */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Exo 2', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    background: rgba(2, 14, 56, 0.08);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    width: 80vw;
    box-sizing: border-box;
}
.breadcrumb a {
    color: #1a6fc4;
    text-decoration: none;
    transition: color 0.2s ease;
}
.breadcrumb a:hover {
    color: #020e38;
    text-decoration: underline;
}
.bc-sep {
    color: #7a92b0;
    font-size: 0.7rem;
}
.bc-current {
    color: #020e38;
    font-weight: 700;
}

/* =========================================================
   PANEL FLASH — highlights content area when content changes
   ========================================================= */
@keyframes panelFlash {
    0%   { box-shadow: 0 0 0 0 rgba(26, 111, 196, 0); }
    30%  { box-shadow: 0 0 0 6px rgba(26, 111, 196, 0.35); }
    100% { box-shadow: 0 8px 32px rgba(2, 14, 56, 0.16); }
}
.panel-flash {
    animation: panelFlash 0.5s ease both !important;
}

/* =========================================================
   KEYBOARD HINT — desktop only
   ========================================================= */
.keyboard-hint {
    font-family: 'Exo 2', sans-serif;
    font-size: 0.8rem;
    color: rgba(2, 14, 56, 0.55);
    text-align: center;
    margin: 0.4rem 0 0.8rem;
    display: none; /* shown on desktop only */
}
.keyboard-hint kbd {
    background: rgba(2, 14, 56, 0.1);
    border: 1px solid rgba(2, 14, 56, 0.25);
    border-radius: 4px;
    padding: 1px 6px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.78rem;
    color: #020e38;
}

/* =========================================================
   SHARED UTILITIES
   ========================================================= */
.responsive-img {
    width: 100%;
    height: auto;
    display: block;
    margin: 1.5rem auto;
    border-radius: 16px;
    border: 4px solid #020e38;
    box-shadow: 0 8px 24px rgba(2, 14, 56, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}
@media (hover: hover) {
    .responsive-img:hover {
        transform: scale(1.02);
        box-shadow: 0 12px 32px rgba(2, 14, 56, 0.35);
    }
}

.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    padding-bottom: 56.25%; /* 16:9 fallback for old Safari/iOS */
    height: 0;
    margin: 1.5rem auto;
    border-radius: 16px;
    overflow: hidden;
}
/* Modern browsers override padding-bottom with aspect-ratio */
@supports (aspect-ratio: 16/9) {
    .video-wrapper {
        padding-bottom: 0;
        height: auto;
        aspect-ratio: 16 / 9;
    }
}
.video-wrapper iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border-radius: 12px;
    border: 0;
}

.project-link {
    display: inline-block;
    margin: 1.2rem 0;
    padding: 0.7rem 1.6rem;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    background-color: #1a6fc4;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.project-link:hover {
    background-color: #155ba0;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.project-link:active {
    transform: translateY(0);
    box-shadow: none;
}

/* =========================================================
   MOBILE  (max-width: 480px)
   ========================================================= */
@media (max-width: 480px) {

    .container {
        display: flex;
        flex-direction: column;
        padding-top: 2%;
        padding-right: 0;
        box-sizing: border-box;
        width: 100%;
    }
    .project-details {
        width: 100%;
        box-sizing: border-box;
        padding: 0;
    }
    .project-list {
        width: 100%;
        margin: 4% 0 0 0;
        padding: 0 2%;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 2%;
        box-sizing: border-box;
    }
    .project-list h2 {
        font-size: 3.8vw;
        text-align: center;
        margin-top: 0;
    }
    .project-box {
        cursor: pointer;
        border: 1px solid #020e38;
        padding: 3%;
        flex: 1 1 45%;
        box-sizing: border-box;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #c4d5eb;
        border-radius: 4px;
    }
    .project-box:hover { background-color: #a8bfd8; }
    .project-box.active { background-color: #1a6fc4; color: #fff; }

    .project-modal {
        display: none;
        padding: 4%;
        border: 1px solid #020e38;
        margin: 2% 0;
        border-radius: 6px;
        background: #c4d5eb;
        width: 100%;
        box-sizing: border-box;
    }
    .project-modal h2 { font-size: 5.5vw; margin-top: 0; }
    .project-modal p  { font-size: 3.8vw; line-height: 1.6; font-family: 'Exo 2', sans-serif; color: #aeb5c0}
    .project-modal.active { display: block; }

    .responsive-img { max-width: 100%; }
    .project-link   { font-size: max(12px, 3vw); padding: 0.6rem 1.2rem; min-height: 44px; display: inline-flex; align-items: center; }

    .breadcrumb { width: 96%; margin: 0 2%; font-size: max(12px, 3.2vw); }
    .keyboard-hint { display: none !important; }

    /* ── Coming Soon pages — mobile ── */
    .coming-soon-label  { font-size: 0.45em; padding: 2px 7px; }

    .teaser-banner      { padding: 1.2rem 1rem; border-radius: 10px; margin: 0.8rem 0; }
    .teaser-banner__tag { font-size: 0.62rem; letter-spacing: 0.1em; margin-bottom: 0.4rem; }
    .teaser-banner__title { font-size: 1rem; margin-bottom: 0.35rem; }
    .teaser-banner__sub   { font-size: 0.78rem; line-height: 1.5; }

    .hint-grid  { grid-template-columns: 1fr 1fr; gap: 0.5rem; margin: 0.6rem 0 1rem; }
    .hint-card  { padding: 0.7rem 0.5rem; border-radius: 8px; }
    .hint-card__icon  { font-size: 1.4rem; margin-bottom: 0.25rem; }
    .hint-card__label { font-size: 0.72rem; }

    .progress-list  { margin: 0.6rem 0 1rem; }
    .progress-item  { margin-bottom: 0.7rem; }
    .progress-item__label  { font-size: 0.78rem; }
    .progress-item__status { font-size: 0.68rem; }
    .progress-bar   { height: 6px; }

    .poll-grid  { grid-template-columns: 1fr 1fr; gap: 0.5rem; margin: 0.6rem 0 0.4rem; }
    .poll-card  { padding: 0.7rem 0.5rem; border-radius: 8px; }
    .poll-card__icon  { font-size: 1.4rem; }
    .poll-card__title { font-size: 0.75rem; }
    .poll-card__sub   { font-size: 0.65rem; }
    .poll-hint        { font-size: 0.72rem; }

    .notify-buttons { gap: 0.5rem; margin: 0.6rem 0 0.8rem; }
    .notify-btn     { font-size: 0.72rem; padding: 0.45rem 0.85rem; gap: 5px; }

    /* Disable hover transforms on touch */
    .hint-card:hover  { transform: none; box-shadow: none; }
    .poll-card:hover  { transform: none; box-shadow: none; border-color: rgba(26,111,196,0.25); }
    .notify-btn:hover { transform: none; filter: none; }
}

/* =========================================================
   TABLET  (481px – 1000px)
   ========================================================= */
@media (min-width: 481px) and (max-width: 1000px) {

    .container {
        display: flex;
        flex-direction: column;
        padding-top: 1.5%;
    }
    .project-details { width: 90%; margin: 0 auto; }
    .project-list {
        width: 90%;
        margin: 3% auto 0 auto;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1.5%;
    }
    .project-list h2 { font-size: 2vw; text-align: center; margin-top: 0; }
    .project-box {
        cursor: pointer;
        border: 1px solid #020e38;
        padding: 1.5%;
        flex: 1 1 22%;
        box-sizing: border-box;
        min-height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #c4d5eb;
        border-radius: 4px;
        transition: background-color 0.2s ease;
    }
    .project-box:hover { background-color: #a8bfd8; }
    .project-box.active { background-color: #1a6fc4; color: #fff; }

    .project-modal {
        display: none;
        padding: 1%;
        border: 1px solid #020e38;
        margin: 2%;
        background: #c4d5eb;
        border-radius: 6px;
    }
    .project-modal.active { display: block; }

    .responsive-img { max-width: 80%; }
    .project-link   { font-size: 1.5vw; padding: 0.6rem 1.2rem; }
    .breadcrumb     { width: 90%; margin: 0 auto 0.5rem; }
    .keyboard-hint  { display: none !important; }

    /* ── Coming Soon pages — tablet ── */
    .teaser-banner        { padding: 1.5rem 1.2rem; border-radius: 12px; }
    .teaser-banner__title { font-size: 1.3rem; }
    .teaser-banner__sub   { font-size: 0.88rem; }

    .hint-grid  { grid-template-columns: 1fr 1fr; gap: 0.7rem; }
    .hint-card  { padding: 0.85rem 0.7rem; }
    .hint-card__icon  { font-size: 1.6rem; }
    .hint-card__label { font-size: 0.8rem; }

    .poll-grid  { grid-template-columns: 1fr 1fr; gap: 0.7rem; }
    .poll-card  { padding: 0.85rem 0.7rem; }
    .poll-card__title { font-size: 0.82rem; }
    .poll-card__sub   { font-size: 0.7rem; }

    .notify-btn { font-size: 0.8rem; }
}

/* Screen height < 480px */
@media (max-height: 480px) {
}

/* =========================================================
   DESKTOP  (min-width: 1001px)
   ========================================================= */
@media (min-width: 1001px) {

    .container {
        display: flex;
        flex-direction: column;
        padding-top: 1%;
        align-items: center;
    }
    .project-details { width: 100vw; }
    .project-list {
        width: 80vw;
        margin-top: 2%;
        margin-bottom: 0.5%;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1%;
    }
    .project-list h2 { font-size: 1.2vw; text-align: center; margin: 0; }
    .project-box {
        cursor: pointer;
        border: 1px solid #020e38;
        padding: 2%;
        flex: 1 1 20%;
        box-sizing: border-box;
        min-height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #c4d5eb;
        border-radius: 4px;
        transition: background-color 0.2s ease, box-shadow 0.2s ease;
    }
    .project-box:hover {
        background-color: #a8bfd8;
        box-shadow: 0 4px 12px rgba(2,14,56,0.15);
    }
    .project-box.active { background-color: #1a6fc4; color: #fff; }

    .project-modal {
        display: none;
        padding: 1% 3%;
        border: 1px solid #020e38;
        margin: 1%;
        background: #c4d5eb;
        border-radius: 6px;
    }
    .project-modal h2 { font-size: 1.8rem; }
    .project-modal h3 { font-size: 1.3rem; }
    .project-modal h4 { font-size: 1.1rem; }
    .project-modal p  { font-size: 1rem; line-height: 1.7; font-family: 'Exo 2', sans-serif; }
    .project-modal.active { display: block; }

    .responsive-img { max-width: 95%; }
    .project-link   { font-size: 1rem; padding: 0.6rem 1.4rem; }

    .breadcrumb     { width: 80vw; }
    .keyboard-hint  { display: block; width: 80vw; }
}

/* =========================================================
   LOADING STATE
   ========================================================= */
.project-loading {
    text-align: center;
    padding: 2rem;
    color: #555;
    font-size: 1rem;
    font-family: 'Exo 2', sans-serif;
}
/* =========================================================
   COMING SOON PAGES — project2, project3, project4
   ========================================================= */

/* ── Label ── */
.coming-soon-label {
    font-size: 0.52em;
    background: linear-gradient(135deg, #e67e22, #d35400);
    color: #fff;
    padding: 3px 10px;
    border-radius: 12px;
    vertical-align: middle;
    font-family: 'Share Tech Mono', monospace;
    letter-spacing: 0.06em;
    font-weight: 700;
}

/* ── Teaser banner ── */
.teaser-banner {
    border-radius: 14px;
    padding: 2rem 1.5rem;
    margin: 1.2rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.teaser-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M20 20h2v2h-2zm4 0h2v2h-2zm-8 0h2v2h-2zm4-4h2v2h-2zm0 8h2v2h-2z'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.teaser-banner--blue   { background: linear-gradient(135deg, #020e38 0%, #1a6fc4 100%); }
.teaser-banner--teal   { background: linear-gradient(135deg, #020e38 0%, #0e9980 100%); }
.teaser-banner--purple { background: linear-gradient(135deg, #020e38 0%, #4c35c8 100%); }

.teaser-banner__tag {
    font-family: 'Share Tech Mono', monospace;
    color: #00c6ff;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
    position: relative;
}
.teaser-banner__title {
    color: #fff;
    font-family: 'Exo 2', sans-serif;
    font-weight: 900;
    font-size: clamp(1.1rem, 2.5vw, 1.6rem);
    margin: 0 0 0.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    position: relative;
}
.teaser-banner__sub {
    color: rgba(255,255,255,0.75);
    font-family: 'Exo 2', sans-serif;
    font-size: clamp(0.8rem, 1.5vw, 0.95rem);
    margin: 0;
    line-height: 1.6;
    position: relative;
}

/* ── Hint grid (project2) ── */
.hint-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.8rem;
    margin: 0.8rem 0 1.2rem;
}
.hint-card {
    background: rgba(26, 111, 196, 0.1);
    border: 1.5px solid rgba(26, 111, 196, 0.3);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hint-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(26, 111, 196, 0.2);
}
.hint-card__icon  { font-size: 1.8rem; margin-bottom: 0.4rem; }
.hint-card__label {
    font-family: 'Exo 2', sans-serif;
    font-weight: 700;
    color: #020e38;
    font-size: 0.85rem;
}

/* ── Progress bars (project3) ── */
.progress-list { margin: 0.8rem 0 1.2rem; }
.progress-item { margin-bottom: 0.9rem; }
.progress-item__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.3rem;
}
.progress-item__label {
    font-family: 'Exo 2', sans-serif;
    font-weight: 700;
    font-size: 0.88rem;
    color: #020e38;
}
.progress-item__status {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.78rem;
    font-weight: 700;
}
.progress-item__status--done    { color: #1a6fc4; }
.progress-item__status--active  { color: #e67e22; }
.progress-item__status--pending { color: #7a92b0; }

.progress-bar {
    height: 8px;
    background: rgba(2, 14, 56, 0.1);
    border-radius: 4px;
    overflow: hidden;
}
.progress-bar__fill {
    height: 100%;
    border-radius: 4px;
    transition: width 1s ease;
}
.progress-bar__fill--100 { width: 100%; background: linear-gradient(90deg, #1a6fc4, #00c6ff); }
.progress-bar__fill--60  { width: 60%;  background: linear-gradient(90deg, #e67e22, #f39c12); }
.progress-bar__fill--15  { width: 15%;  background: linear-gradient(90deg, #7a92b0, #a8bfd8); }
.progress-bar__fill--0   { width: 0%;   background: linear-gradient(90deg, #7a92b0, #a8bfd8); }

/* ── Poll grid (project4) ── */
.poll-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.8rem;
    margin: 0.8rem 0 0.5rem;
}
.poll-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 1rem;
    background: rgba(26, 111, 196, 0.08);
    border: 2px solid rgba(26, 111, 196, 0.25);
    border-radius: 10px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    text-align: center;
}
.poll-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(26, 111, 196, 0.22);
    border-color: #1a6fc4;
}
.poll-card__icon  { font-size: 1.8rem; }
.poll-card__title {
    font-family: 'Exo 2', sans-serif;
    font-weight: 700;
    color: #020e38;
    font-size: 0.88rem;
}
.poll-card__sub {
    font-family: 'Share Tech Mono', monospace;
    color: #4a5568;
    font-size: 0.75rem;
}
.poll-hint {
    font-family: 'Exo 2', sans-serif;
    font-size: 0.82rem;
    color: #4a5568;
    font-style: italic;
    margin: 0.3rem 0 1rem;
}

/* ── Notify buttons ── */
.notify-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin: 0.8rem 0 1rem;
}
.notify-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0.55rem 1.1rem;
    color: #fff;
    font-family: 'Exo 2', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    border-radius: 20px;
    transition: transform 0.2s ease, filter 0.2s ease;
}
.notify-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.12);
}
.notify-btn--red      { background: #c0392b; }
.notify-btn--green    { background: #25d366; }
.notify-btn--telegram { background: #0088cc; }
.notify-btn--insta    { background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045); }
/* =========================================================
   PROJECTS.HTML PAGE DESIGN — hero + project cards
   ========================================================= */

/* ── Page Hero ── */
.proj-hero {
    background: linear-gradient(135deg, #020e38 0%, #0d2a6e 55%, #1a6fc4 100%);
    position: relative;
    overflow: hidden;
    padding: 2.8rem 2rem 2.4rem;
    text-align: center;
}
.proj-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='rgba(0,198,255,0.07)' stroke-width='1'%3E%3Crect x='5' y='5' width='12' height='12' rx='2'/%3E%3Crect x='25' y='5' width='12' height='12' rx='2'/%3E%3Crect x='45' y='5' width='12' height='12' rx='2'/%3E%3Cline x1='17' y1='11' x2='25' y2='11'/%3E%3Cline x1='37' y1='11' x2='45' y2='11'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.proj-hero__inner  { position: relative; max-width: 720px; margin: 0 auto; }
.proj-hero__tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #00c6ff;
    background: rgba(0, 198, 255, 0.1);
    border: 1px solid rgba(0, 198, 255, 0.25);
    border-radius: 20px;
    padding: 4px 14px;
    margin-bottom: 0.9rem;
}
.proj-hero__title {
    font-family: 'Exo 2', sans-serif;
    font-weight: 900;
    font-size: clamp(1.5rem, 4vw, 2.4rem);
    color: #ffffff;
    margin: 0 0 0.7rem;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.proj-hero__sub {
    font-family: 'Exo 2', sans-serif;
    font-size: clamp(0.82rem, 1.8vw, 1rem);
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.65;
    margin: 0;
}

/* ── Section label ── */
.proj-section-label {
    font-family: 'Exo 2', sans-serif;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #020e38;
    background: rgba(2, 14, 56, 0.07);
    border-radius: 20px;
    padding: 5px 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 0.9rem;
}

/* ── Project card grid (replaces plain project-list) ── */
.proj-card-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.2rem !important;
    flex-direction: unset !important;
    flex-wrap: unset !important;
}

/* ── Individual project card ── */
.proj-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    padding: 0 !important;
    min-height: unset !important;
    overflow: hidden;
    border-radius: 14px !important;
    border: 2px solid #020e38 !important;
    background: linear-gradient(160deg, #d4e4f5, #c4d5eb) !important;
    box-shadow: 0 4px 16px rgba(2,14,56,0.12);
    transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1),
                box-shadow 0.25s ease !important;
    cursor: pointer;
}
.proj-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 12px 32px rgba(2,14,56,0.2) !important;
}
.proj-card.active {
    border-color: #1a6fc4 !important;
    box-shadow: 0 0 0 3px rgba(26,111,196,0.3), 0 8px 24px rgba(2,14,56,0.2) !important;
}

/* Image wrapper */
.proj-card__img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    background: #b0c4de;
}
.proj-card__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.proj-card:hover .proj-card__img-wrap img {
    transform: scale(1.05);
}

/* Status badge */
.proj-card__status {
    position: absolute;
    top: 10px;
    left: 10px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 3px 10px;
    border-radius: 10px;
}
.proj-card__status--live {
    background: #10b981;
    color: #fff;
}
.proj-card__status--soon {
    background: linear-gradient(135deg, #e67e22, #d35400);
    color: #fff;
}

/* Card body */
.proj-card__body {
    padding: 0.9rem 1rem 0.5rem;
    flex: 1;
}
.proj-card__body h2 {
    font-family: 'Exo 2', sans-serif;
    font-weight: 900;
    font-size: clamp(0.9rem, 1.6vw, 1.05rem);
    color: #020e38;
    margin: 0 0 0.35rem;
    line-height: 1.3;
}
.proj-card__body p {
    font-family: 'Exo 2', sans-serif;
    font-size: clamp(0.72rem, 1.2vw, 0.82rem);
    color: #4a5568;
    margin: 0 0 0.55rem;
    line-height: 1.5;
}
.proj-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}
.proj-card__tags span {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.6rem;
    color: #1a6fc4;
    background: rgba(26,111,196,0.1);
    border: 1px solid rgba(26,111,196,0.25);
    border-radius: 10px;
    padding: 2px 8px;
}

/* Card footer */
.proj-card__footer {
    padding: 0.6rem 1rem 0.8rem;
    border-top: 1px solid rgba(2,14,56,0.1);
    margin-top: 0.3rem;
}
.proj-card__view {
    font-family: 'Exo 2', sans-serif;
    font-weight: 700;
    font-size: 0.82rem;
    color: #1a6fc4;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s ease;
}
.proj-card:hover .proj-card__view { gap: 10px; }
.proj-card.active .proj-card__view { color: #020e38; }

/* ── Content modal typography ── */
.project-modal h2 {
    font-family: 'Exo 2', sans-serif;
    font-weight: 900;
    color: #020e38;
    border-bottom: 3px solid #1a6fc4;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}
.project-modal h3 {
    font-family: 'Exo 2', sans-serif;
    font-weight: 700;
    color: #1a6fc4;
    padding-left: 0.7rem;
    border-left: 4px solid #1a6fc4;
    margin: 1.6rem 0 0.5rem;
}
.project-modal h4 {
    font-family: 'Exo 2', sans-serif;
    font-weight: 700;
    color: #020e38;
    margin: 1rem 0 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.project-modal h4::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #3498db;
    border-radius: 50%;
    flex-shrink: 0;
}
.project-modal p {
    font-family: 'Exo 2', sans-serif;
    color: #aeb5c0;
    line-height: 1.75;
}
.project-modal hr {
    border: none;
    border-top: 2px solid rgba(2,14,56,0.1);
    margin: 1.4rem 0;
}

/* =========================================================
   MOBILE  (max-width: 480px)
   ========================================================= */
@media (max-width: 480px) {
    .proj-hero              { padding: 1.6rem 1rem 1.4rem; }
    .proj-hero__tag         { font-size: 0.6rem; padding: 3px 10px; margin-bottom: 0.6rem; }
    .proj-hero__title       { font-size: 1.35rem; margin-bottom: 0.5rem; }
    .proj-hero__sub         { font-size: 0.78rem; }

    .proj-section-label     { font-size: 0.7rem; padding: 4px 12px; margin-bottom: 0.6rem; }

    .proj-card-grid         { grid-template-columns: 1fr 1fr !important; gap: 0.6rem !important; }
    .proj-card:hover        { transform: none !important; }

    .proj-card__body        { padding: 0.6rem 0.65rem 0.3rem; }
    .proj-card__body h2     { font-size: max(12px, 3vw); }
    .proj-card__body p      { display: none; }
    .proj-card__tags        { display: none; }
    .proj-card__footer      { padding: 0.4rem 0.65rem 0.55rem; }
    .proj-card__view        { font-size: max(11px, 2.8vw); }

    .proj-card__status      { font-size: 0.62rem; padding: 2px 7px; top: 6px; left: 6px; }
}

/* =========================================================
   TABLET  (481px – 1000px)
   ========================================================= */
@media (min-width: 481px) and (max-width: 1000px) {
    .proj-hero              { padding: 2rem 1.5rem 1.8rem; }
    .proj-hero__title       { font-size: 1.8rem; }
    .proj-hero__sub         { font-size: 0.9rem; }

    .proj-card-grid         { grid-template-columns: 1fr 1fr !important; gap: 1rem !important; }
    .proj-card__body h2     { font-size: 0.95rem; }
    .proj-card__body p      { font-size: 0.75rem; }
    .proj-card__tags span   { font-size: 0.58rem; }
}

/* =========================================================
   DESKTOP  (min-width: 1001px)
   ========================================================= */
@media (min-width: 1001px) {
    .proj-section-label     { align-self: flex-start; }
    .proj-card-grid         { width: 80vw !important; grid-template-columns: repeat(4, 1fr) !important; }
}

/* =========================================================
   PROJECT CONTENT PAGE STYLES — project1–4
   ========================================================= */

/* ── Meta bar (tags below h2) ── */
.proj-meta-bar {
    display: flex; flex-wrap: wrap; gap: 0.7rem; margin-bottom: 1.2rem;
}
.proj-meta-bar span {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.7rem; color: #4a5568;
    display: flex; align-items: center; gap: 5px;
}

/* ── Info box ── */
.proj-info {
    background: linear-gradient(135deg, rgba(26,111,196,0.1), rgba(0,198,255,0.07));
    border: 1.5px solid rgba(26,111,196,0.3);
    border-left: 5px solid #1a6fc4;
    border-radius: 10px; padding: 1rem 1.2rem; margin: 0.8rem 0 1.2rem;
    font-family: 'Exo 2', sans-serif; color: #2d3a4e; line-height: 1.75;
}

/* ── Features grid ── */
.proj-feat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.9rem; margin: 0.8rem 0 1.4rem;
}
.proj-feat {
    background: linear-gradient(160deg, #d4e4f5, #c4d5eb);
    border: 2px solid #020e38; border-radius: 12px;
    padding: 1rem; position: relative; overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.proj-feat::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 4px; background: linear-gradient(90deg, #1a6fc4, #00c6ff);
    border-radius: 12px 12px 0 0;
}
.proj-feat:hover { transform: translateY(-4px); box-shadow: 0 8px 22px rgba(2,14,56,0.18); }
.proj-feat__icon {
    font-size: 1.5rem; color: #1a6fc4; margin-bottom: 0.4rem;
}
.proj-feat__title {
    font-family: 'Exo 2', sans-serif; font-weight: 900;
    font-size: 0.9rem; color: #020e38; margin: 0 0 0.35rem;
}
.proj-feat__body {
    font-family: 'Exo 2', sans-serif; font-size: 0.8rem;
    color: #2d3a4e; line-height: 1.55; margin: 0;
}

/* ── Formula box ── */
.proj-formula {
    background: #0d1117; border-radius: 10px;
    margin: 0.8rem 0 1.2rem; padding: 1rem 1.2rem;
    border: 1.5px solid #30363d;
    font-family: 'Fira Code', 'Share Tech Mono', monospace;
    font-size: 0.88rem; color: #e6edf3; line-height: 1.8;
}
.proj-formula__label {
    display: block; font-size: 0.65rem; color: #8b949e;
    letter-spacing: 0.1em; text-transform: uppercase;
    margin-bottom: 0.5rem;
}

/* ── Components / pin table ── */
.proj-comp-table-wrap { overflow-x: auto; margin: 0.8rem 0 1.4rem; }
.proj-comp-table {
    width: 100%; border-collapse: collapse;
    font-family: 'Exo 2', sans-serif; font-size: 0.82rem; min-width: 380px;
}
.proj-comp-table th {
    background: #020e38; color: #fff;
    padding: 0.5rem 0.9rem; text-align: left;
    font-weight: 700; font-size: 0.78rem; letter-spacing: 0.04em;
}
.proj-comp-table td {
    padding: 0.45rem 0.9rem; border: 1px solid rgba(2,14,56,0.12);
    color: #020e38; vertical-align: top; line-height: 1.5;
}
.proj-comp-table tr:nth-child(even) td { background: rgba(26,111,196,0.06); }
.proj-comp-table tr:hover td { background: rgba(26,111,196,0.13); }

/* ── Build steps ── */
.proj-step-list { display: flex; flex-direction: column; gap: 0.8rem; margin: 0.8rem 0 1.4rem; }
.proj-step {
    display: flex; align-items: flex-start; gap: 1rem;
    background: linear-gradient(160deg, #d4e4f5, #c4d5eb);
    border: 1.5px solid rgba(2,14,56,0.2); border-radius: 10px;
    padding: 0.9rem 1rem;
    transition: box-shadow 0.2s ease;
}
.proj-step:hover { box-shadow: 0 4px 14px rgba(2,14,56,0.14); }
.proj-step__num {
    background: linear-gradient(135deg, #1a6fc4, #00c6ff);
    color: #fff; font-family: 'Share Tech Mono', monospace;
    font-weight: 700; font-size: 0.85rem;
    width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.proj-step__body { flex: 1; }
.proj-step__title {
    font-family: 'Exo 2', sans-serif; font-weight: 700;
    font-size: 0.9rem; color: #020e38; margin: 0 0 0.2rem;
}
.proj-step__desc {
    font-family: 'Exo 2', sans-serif; font-size: 0.82rem;
    color: #2d3a4e; line-height: 1.55; margin: 0;
}

/* ── Source / download strip ── */
.proj-source-strip {
    display: flex; flex-wrap: wrap; gap: 0.8rem;
    margin: 1rem 0 0.5rem; padding: 1rem 1.2rem;
    background: rgba(2,14,56,0.05); border-radius: 10px;
    border: 1.5px solid rgba(2,14,56,0.1);
}

/* ── Mobile adjustments ── */
@media (max-width: 480px) {
    .proj-feat-grid { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
    .proj-feat { padding: 0.7rem 0.65rem; }
    .proj-feat__title { font-size: 0.75rem; }
    .proj-feat__body { font-size: 0.67rem; }
    .proj-feat:hover { transform: none; box-shadow: none; }
    .proj-comp-table { font-size: 0.7rem; }
    .proj-comp-table th { padding: 0.4rem 0.55rem; font-size: 0.67rem; }
    .proj-comp-table td { padding: 0.35rem 0.55rem; }
    .proj-step { gap: 0.7rem; padding: 0.75rem 0.8rem; }
    .proj-step__num { width: 26px; height: 26px; font-size: 0.7rem; }
    .proj-step__title { font-size: 0.78rem; }
    .proj-step__desc { font-size: 0.7rem; }
    .proj-formula { font-size: 0.75rem; padding: 0.8rem 0.9rem; }
    .proj-source-strip { padding: 0.75rem 0.9rem; gap: 0.5rem; }
    .project-link { font-size: max(12px, 3vw); padding: 0.5rem 1rem; margin: 0.5rem 0.5rem 0.5rem 0; min-height: 44px; display: inline-flex; align-items: center; }
}
@media (min-width: 481px) and (max-width: 1000px) {
    .proj-feat-grid { grid-template-columns: 1fr 1fr; gap: 0.8rem; }
    .proj-comp-table { font-size: 0.78rem; }
    .project-link { font-size: 1.5vw; }
}

/* ── Mobile responsive fixes for project content ── */
@media (max-width: 480px) {
    .proj-meta-bar         { gap: 0.4rem; margin-bottom: 0.8rem; }
    .proj-meta-bar span    { font-size: 0.58rem; }
    .proj-info             { font-size: 0.77rem; padding: 0.75rem 0.9rem; }
    .proj-step-list        { gap: 0.6rem; }
}

/* ── Tablet responsive fixes for project content ── */
@media (min-width: 481px) and (max-width: 1000px) {
    .proj-meta-bar         { gap: 0.5rem; margin-bottom: 1rem; }
    .proj-meta-bar span    { font-size: 0.62rem; }
    .proj-info             { font-size: 0.88rem; padding: 0.9rem 1rem; }
    .proj-step-list        { gap: 0.7rem; }
    .proj-formula          { font-size: 0.82rem; padding: 0.85rem 1rem; }
    .proj-source-strip     { padding: 0.85rem 1rem; gap: 0.65rem; }
}

/* ── proj-step tablet fix ── */
@media (min-width: 481px) and (max-width: 1000px) {
    .proj-step      { gap: 0.8rem; padding: 0.8rem 0.9rem; }
}