/* Pike Studio - Projects section
   Loaded after bootstrap-5.3.8.css. Uses the same brand colours as the rest of the site:
   teal #21a0aa, coral #ee3a3a, text #333, grey #777.
   Uses logical properties (inline-start/end) so right-to-left text lays out correctly. */

/* ---------- Page wrapper ---------- */
.projects-page {
    padding-top: 100px;      /* clears the fixed navbar */
    padding-bottom: 80px;
    background-color: #ffffff;
}

.projects-hero {
    padding: 40px 0 20px;
    text-align: center;
}

.projects-title {
    font-size: 3rem;
    font-weight: 700;
    color: #333;
    line-height: 1.1;
    margin-bottom: 20px;
}

.projects-intro {
    font-size: 1.2rem;
    color: #777;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ---------- Right-to-left text (Hebrew / Yiddish) ---------- */
/* Use on any Hebrew/Yiddish word or line:  <span class="rtl-text" lang="yi" dir="rtl">...</span> */
.rtl-text {
    direction: rtl;
    unicode-bidi: isolate;
    font-family: "Segoe UI", "Arial Hebrew", "Noto Sans Hebrew", Arial, sans-serif;
}

/* ---------- Pills (platforms, tech) ---------- */
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.project-tag {
    display: inline-block;
    background-color: #f0f7f8;
    color: #21a0aa;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 13px;
    border: 1px solid #e0eeef;
}

/* ---------- Project grid (index) ---------- */
.projects-grid {
    margin-top: 40px;
}

.project-card {
    position: relative;      /* keeps each card's full-card link inside that card */
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #e5e5e5;
    border-radius: 15px;
    overflow: hidden;
    background: #ffffff;
    color: inherit;
    text-decoration: none;
    transition: 0.3s;
}

.project-card:hover {
    border-color: #21a0aa;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    color: inherit;
}

/* Image area. Replace the placeholder text with <img src="..." alt="..."> when a screenshot is ready. */
.project-thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--thumb-from, #21a0aa), var(--thumb-to, #1a838a));
    color: #ffffff;
    text-align: center;
    padding: 20px;
    overflow: hidden;
}

.project-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-thumb-name {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
}

/* Logo version of the image area: an app icon centred on a soft background, with the name underneath */
.project-thumb-logo {
    flex-direction: column;
    gap: 14px;
    background: linear-gradient(135deg, #f4f2fc, #e4e0f5);
    color: #6359a9;
}

.project-thumb .app-icon {
    position: static;
    inset: auto;
    width: 96px;
    height: 96px;
    object-fit: contain;
    filter: drop-shadow(0 8px 18px rgba(99, 89, 169, 0.35));
}

.project-thumb-logo .project-thumb-name {
    font-size: 1.5rem;
}

.project-hero-media.project-thumb-logo {
    gap: 22px;
}

.project-hero-media .app-icon {
    width: 170px;
    height: 170px;
}

.project-hero-media.project-thumb-logo .project-thumb-name {
    font-size: 2.2rem;
}

/* Phones: let the logo box grow to fit its contents instead of a fixed 16:9 shape */
@media (max-width: 767px) {
    .project-hero-media.project-thumb-logo {
        aspect-ratio: auto;
        padding: 36px 20px;
        gap: 16px;
    }

    .project-hero-media .app-icon {
        width: 130px;
        height: 130px;
    }

    .project-hero-media.project-thumb-logo .project-thumb-name {
        font-size: 1.8rem;
    }
}

.project-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 24px;
    text-align: start;
}

.project-body h2 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.project-body p {
    color: #777;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.project-body .project-role {
    color: #333;
    font-size: 0.95rem;
    margin-bottom: 14px;
}

.project-body .project-tags {
    margin-top: auto;
}

.project-body h2 a {
    color: inherit;
    text-decoration: none;
}

/* Store buttons (iOS / Android). z-index lifts them above the card's full-card link. */
.store-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    position: relative;
    z-index: 2;
}

.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 18px;
    border: 1px solid #21a0aa;
    border-radius: 50px;
    background-color: #ffffff;
    color: #21a0aa;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}

.store-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
    flex: 0 0 auto;
}

.store-btn:hover,
.store-btn:focus-visible {
    background-color: #21a0aa;
    color: #ffffff;
}

.project-more {
    margin-top: 18px;
    color: #21a0aa;
    font-weight: 600;
    font-size: 0.95rem;
}

/* ---------- Project detail page ---------- */
.project-back {
    display: inline-block;
    color: #777;
    text-decoration: none;
    margin-bottom: 20px;
    transition: 0.3s;
}

.project-back:hover {
    color: #21a0aa;
}

.project-header {
    margin-bottom: 40px;
}

.project-header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #333;
    line-height: 1.1;
    margin-bottom: 10px;
}

.project-header .project-alt-name {
    display: block;
    font-size: 1.6rem;
    font-weight: 600;
    color: #21a0aa;
    margin-bottom: 10px;
    text-align: left;        /* keeps it under the English title on this left-to-right page */
}

html[dir="rtl"] .project-header .project-alt-name {
    text-align: right;       /* for a future Hebrew version of the page */
}

.project-tagline {
    font-size: 1.25rem;
    color: #777;
    line-height: 1.6;
    max-width: 700px;
}

.project-hero-media {
    aspect-ratio: 16 / 9;
    border-radius: 15px;
    margin-bottom: 40px;
}

.project-hero-media .project-thumb-name {
    font-size: 3rem;
}

.project-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 15px;
}

.project-section p,
.project-section li {
    color: #555;
    font-size: 1.05rem;
    line-height: 1.7;
}

.project-section ul {
    padding-inline-start: 1.2rem;
}

.project-facts {
    border: 1px solid #21a0aa;
    border-radius: 15px;
    padding: 28px;
}

.project-facts dt {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #999;
    margin-bottom: 6px;
}

.project-facts dd {
    margin: 0 0 22px;
    color: #333;
}

.project-facts dd:last-child {
    margin-bottom: 0;
}

/* Download button. Disabled look until a real link exists. */
.btn-teal.disabled,
.btn-teal[aria-disabled="true"] {
    background-color: #b9dde0;
    color: #ffffff !important;
    pointer-events: none;
    margin-inline-end: 0;
}

.download-note {
    display: block;
    margin-top: 8px;
    font-size: 0.85rem;
    color: #999;
}

/* Screenshot gallery */
.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 10px;
}

.project-gallery .project-thumb {
    border-radius: 12px;
    font-size: 0.9rem;
    opacity: 0.9;
}

.project-gallery img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid #e5e5e5;
}

/* Phone screenshots: one scrollable row, swipe on phones */
.project-gallery-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 12px;
}

.project-gallery-scroll img {
    flex: 0 0 auto;
    height: 460px;
    width: auto;
    border-radius: 20px;
    border: 1px solid #e5e5e5;
    scroll-snap-align: start;
}

/* Scrollbar in the brand teal (Chrome, Edge, Safari) */
.project-gallery-scroll::-webkit-scrollbar {
    height: 10px;
}

.project-gallery-scroll::-webkit-scrollbar-track {
    background: #e0eeef;
    border-radius: 10px;
}

.project-gallery-scroll::-webkit-scrollbar-thumb {
    background: #21a0aa;
    border-radius: 10px;
}

.project-gallery-scroll::-webkit-scrollbar-thumb:hover {
    background: #1a838a;
}

/* Same look in Firefox */
@supports not selector(::-webkit-scrollbar) {
    .project-gallery-scroll {
        scrollbar-width: thin;
        scrollbar-color: #21a0aa #e0eeef;
    }
}

/* Phones and tablets: swipe by hand, no scrollbar shown */
@media (hover: none) and (pointer: coarse) {
    .project-gallery-scroll {
        scrollbar-width: none;
    }

    .project-gallery-scroll::-webkit-scrollbar {
        display: none;
    }
}

@media (max-width: 767px) {
    .project-gallery-scroll img {
        height: 380px;
    }
}

/* Video embed */
.project-video {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 15px;
    overflow: hidden;
    background: #000;
}

.project-video iframe,
.project-video video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 767px) {
    .projects-title,
    .project-header h1 {
        font-size: 2.2rem;
    }
}
