/*
<portfolio-file>
File: wwwroot/css/projects.css
Author: Vladimir Nikolaevich Kadnikov
Company: IP Kadnikov Vladimir Nikolaevich
Created: 2026-10-07
Purpose: Project presentation styles: projects.css.
</portfolio-file>
*/
.project-catalogue { margin-top: 32px; }
.project-result { margin: 0 0 24px; color: #566b7a; font-size: 13px; }
.project-grid, #portfolio-list.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; margin: 0; }
.project-card { display: flex; flex-direction: column; min-width: 0; background: #fff; border: 1px solid #dce5eb; border-radius: 16px; overflow: hidden; box-shadow: 0 6px 24px #18344808; transition: transform .2s, box-shadow .2s; }
.project-card:hover { transform: translateY(-5px); box-shadow: 0 15px 35px #18344815; }
.project-image-link { display: block; overflow: hidden; }
.project-cover { height: 268px; overflow: hidden; position: relative; display: flex; align-items: center; justify-content: center; }
.project-cover img { display: block; }
.project-cover-vpn { background: linear-gradient(135deg, #e2e3f6, #f0edfa); padding: 25px 19px 0; align-items: flex-start; }
.project-cover-vpn > img { width: 100%; height: auto; border-radius: 8px 8px 0 0; border: 1px solid #cbd0dd; box-shadow: 0 10px 30px #29254320; }
.project-cover-switcher { background: radial-gradient(ellipse at 80% 20%, #324f69 0%, #162a3c 75%); color: #fff; }
.switcher-illustration { display: flex; align-items: center; flex-direction: column; gap: 12px; padding: 20px; }
.switcher-illustration img { width: 50px; height: 50px; object-fit: contain; }
.switcher-wordmark { font-size: 22px; font-weight: 300; letter-spacing: -.3px; }
.switcher-wordmark strong { font-weight: 600; }
.profile-illustration { display: flex; align-items: center; justify-content: center; gap: 28px; }
.profile-illustration span { width: 44px; height: 44px; border-radius: 12px; background: #ffffff12; border: 1px solid #ffffff30; display: grid; place-items: center; font-size: 18px; }
.profile-illustration span:last-child { background: #33a7d6; border-color: #61c6ec; }
.profile-illustration i { transform: rotate(90deg); color: #94b1c5; }
.switcher-illustration small { color: #c4d6e4; font-size: 10px; text-transform: uppercase; letter-spacing: 2px; }
.project-cover-tildedock { background: #203847; padding: 16px; }
.project-cover-tildedock > img { width: 100%; height: 100%; object-fit: contain; border-radius: 7px; }
.project-detail-hero > .project-cover.project-cover-tildedock { height: auto; aspect-ratio: 1920 / 1004; padding: 0; }
.project-card-body { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: 26px; }
.project-card-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; width: 100%; color: #5a6d7b; font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .8px; }
.project-status { margin-left: auto; background: #edf4f8; color: #3b5e73; border-radius: 4px; padding: 3px 8px; letter-spacing: 0; text-transform: none; }
.project-card h3 { font-size: 25px; font-weight: 500; line-height: 1.25; margin: 18px 0 12px; overflow-wrap: anywhere; }
.project-card h3 a { color: #243c4e; }
.project-card h3 a:hover { color: #147ba7; }
.project-tagline { font-size: 14px; line-height: 1.75; color: #526576; min-height: 49px; margin-bottom: 20px; }
.project-platform { font-size: 12px; color: #4d6678; }
.project-platform i { margin-right: 5px; color: #a87f3b; }
.project-technologies.skill-tags { gap: 6px; margin: 0 0 24px; }
.project-technologies.skill-tags li { font-size: 10px; padding: 5px 9px; background: #f2f5f7; color: #526779; }
.project-details-link { margin-top: auto; padding-top: 18px; border-top: 1px solid #e6edf1; width: 100%; display: flex; align-items: center; justify-content: space-between; font-weight: 500; color: #147ba7; font-size: 13px; }
.project-details-link:hover { color: #24465d; }
.projects-section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.projects-section-heading h2 { font-size: 38px; margin: 0 0 14px; font-weight: 400; }
.projects-section-heading p { max-width: 640px; margin: 0; color: #526576; }
.projects-all-link { white-space: nowrap; color: #147ba7; font-weight: 500; font-size: 13px; padding-bottom: 4px; }
.projects-all-link i { margin-left: 10px; }
.projects-container { width: min(1180px, 100%); margin: 0 auto; padding: 0 40px; }
.projects-page { color: #243c4e; background: #f6f8fa; }
.projects-page #start { min-height: 0; display: block; }
.projects-page #start.projects-intro { padding: 54px 0 0; }
.projects-page #start.project-detail-intro { padding: 50px 0 65px; }
.projects-page #start.projects-intro h1 { font-size: clamp(47px, 7vw, 80px); line-height: 1.1; }
.projects-page #start.project-detail-intro h1 { font-size: clamp(32px, 3.3vw, 48px); line-height: 1.15; }
.projects-intro { padding: 54px 0 0; color: #fff; background: linear-gradient(115deg, #1c2e3e, #304b62); }
.project-back { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 500; }
.projects-intro .project-back { color: #c5d8e7; margin-bottom: 62px; }
.project-eyebrow { color: #936e30; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; margin: 0 0 22px; }
.projects-intro .project-eyebrow { color: #ddbb7e; }
.projects-intro h1 { color: #fff; font-size: clamp(48px, 7vw, 80px); line-height: 1.1; letter-spacing: -1px; font-weight: 300; margin: 0 0 22px; }
.project-heading-dot { color: #34abd8; }
.projects-lead { font-size: 22px; font-weight: 300; line-height: 1.55; max-width: 700px; margin-bottom: 32px; }
.projects-intro .projects-lead { color: #d8e5ee; }
.projects-intro-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 18px; padding: 25px 0; margin-top: 38px; border-top: 1px solid #ffffff26; font-size: 12px; color: #c1d3df; }
.projects-intro-footer a { color: #e5f2fa; }
.projects-intro-footer i { margin-left: 12px; }
.projects-catalogue-section { padding: 18px 0 70px; }
.project-contact-section { padding: 50px 0; background: #fff; border-top: 1px solid #e1e8ed; }
.project-contact-section .projects-container { display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.project-contact-section .project-eyebrow { margin-bottom: 12px; }
.project-contact-section h2 { font-size: 30px; margin: 0; }
.project-detail-intro { padding: 50px 0 65px; background: #fff; }
.project-breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 12px; color: #536a7a; padding-right: 140px; margin-bottom: 50px; }
.project-breadcrumbs a { color: #147ba7; }
.project-detail-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 55px; }
.project-detail-hero h1 { font-size: clamp(32px, 3.3vw, 48px); font-weight: 400; letter-spacing: -.5px; overflow-wrap: anywhere; margin: 22px 0 18px; }
.project-detail-hero .projects-lead { margin-bottom: 20px; font-size: 24px; }
.project-detail-description { font-size: 14px; color: #526576; line-height: 1.85; }
.project-detail-hero > .project-cover { height: 510px; border-radius: 20px; }
.project-detail-hero > .project-cover-vpn { padding: 40px 25px 0; }
.project-detail-hero .switcher-illustration { gap: 22px; }
.project-detail-hero .switcher-illustration img { width: 80px; height: 80px; }
.project-detail-hero .switcher-wordmark { font-size: 30px; }
.project-facts { display: grid; gap: 16px; margin: 25px 0; }
.project-facts dt { font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: #6b7c88; margin-bottom: 5px; }
.project-facts dd { font-size: 13px; margin: 0; }
.project-features-section, .project-screenshots-section { padding: 60px 0; }
.project-features-section h2, .project-screenshots-section h2 { font-size: 34px; font-weight: 400; margin: 0 0 28px; }
.project-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 35px; }
.project-feature-number { display: block; color: #b89659; font-size: 28px; font-weight: 300; padding-bottom: 12px; border-bottom: 1px solid #dce5eb; }
.project-features h3 { font-size: 21px; font-weight: 500; margin: 20px 0 14px; }
.project-features p { color: #526576; font-size: 13px; line-height: 1.85; }
.project-screenshots-section { background: #eaf0f5; }
.project-screenshots-section > div > p:not(.project-eyebrow) { font-size: 13px; color: #526576; margin-top: -14px; margin-bottom: 30px; }
.project-screenshots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-items: start; }
.project-screenshots figure { margin: 0; min-width: 0; }
.project-screenshots a { display: block; padding: 20px; background: #dce6ee; border: 1px solid #d0dce5; border-radius: 14px; overflow: hidden; }
.project-screenshots img { display: block; max-width: 100%; max-height: 620px; width: auto; margin: 0 auto; border-radius: 5px; }
.project-screenshots-tildedock { grid-template-columns: 1fr; }
.project-screenshots-tildedock a { padding: 12px; background: #203847; }
.project-screenshots-tildedock img { width: 100%; max-height: none; }
.project-screenshots-vpn a { height: 420px; padding: 18px; }
.project-screenshots-vpn img { width: 100%; height: auto; max-height: none; }
.project-screenshots-vpn figure:last-child img { width: 100%; height: 100%; object-fit: contain; }
.project-screenshots figcaption { font-size: 12px; color: #536a7a; margin-top: 14px; }
.project-screenshots [data-screenshot] { cursor: zoom-in; }
html.image-viewer-open { overflow: hidden; scrollbar-gutter: stable; }
.image-viewer { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 24px; border: 0; background: transparent; color: #f3f7fa; }
.image-viewer[open] { display: flex; align-items: center; justify-content: center; }
.image-viewer::backdrop { background: #07111ded; backdrop-filter: blur(5px); }
.image-viewer-panel { display: flex; flex-direction: column; width: min(1400px, 100%); height: min(960px, 100%); min-height: 0; overflow: hidden; background: #142432; border: 1px solid #ffffff25; border-radius: 18px; box-shadow: 0 20px 90px #0007; }
.image-viewer-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 18px; padding: 15px 20px; background: #1c3040; }
.image-viewer-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 14px; }
.image-viewer-heading strong { font-weight: 500; }
.image-viewer-heading span { color: #b5c9d8; font-size: 12px; white-space: nowrap; }
.image-viewer-tools { display: flex; align-items: center; gap: 6px; }
.image-viewer button, .image-viewer-tools a { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 40px; height: 40px; padding: 0; background: #ffffff0c; color: #f3f7fa; border: 1px solid #ffffff22; border-radius: 9px; font-size: 23px; line-height: 1; cursor: pointer; }
.image-viewer button:hover, .image-viewer-tools a:hover { background: #2fa8d8; border-color: #75cfee; color: white; }
.image-viewer button:disabled { opacity: .3; cursor: default; background: #ffffff0c; border-color: #ffffff22; }
.image-viewer button:focus-visible, .image-viewer a:focus-visible { outline: 3px solid #e2bd7d; outline-offset: 3px; }
.image-viewer-tools i { font-size: 16px; }
.image-viewer-tools .image-viewer-original { font-size: 13px; }
.image-viewer-tools output { min-width: 46px; padding: 0 4px; text-align: center; font-size: 12px; color: #c4d8e6; font-variant-numeric: tabular-nums; }
.image-viewer .image-viewer-close { font-size: 30px; background: #ffffff15; }
.image-viewer-viewport { position: relative; flex: 1; min-height: 0; overflow: hidden; background: #0b1822; touch-action: none; user-select: none; }
.image-viewer-viewport > img { position: absolute; top: 50%; left: 50%; display: block; max-width: none; max-height: none; object-fit: contain; transform-origin: center; user-select: none; }
.image-viewer-viewport.is-zoomed { cursor: grab; }
.image-viewer-viewport.is-dragging { cursor: grabbing; }
.image-viewer-status { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; margin: 0; padding: 40px 70px; text-align: center; font-size: 14px; color: #c4d8e6; }
.image-viewer .image-viewer-previous, .image-viewer .image-viewer-next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 1; width: 42px; height: 52px; background: #1c3040d9; border-color: #ffffff40; font-size: 35px; }
.image-viewer-previous { left: 12px; }
.image-viewer-next { right: 12px; }
.image-viewer-footer { padding: 14px 20px; background: #142432; }
.image-viewer-footer p { margin: 0; color: #f3f7fa; font-size: 13px; line-height: 1.5; }
.image-viewer-footer small { display: block; margin-top: 6px; color: #a8c0d1; font-size: 11px; line-height: 1.5; }
@media (max-width: 600px) {
    .image-viewer { padding: 10px; }
    .image-viewer-panel { border-radius: 12px; }
    .image-viewer-toolbar { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 12px; }
    .image-viewer-heading { font-size: 13px; gap: 8px; }
    .image-viewer-tools { grid-column: 1 / -1; grid-row: 2; justify-content: center; gap: 5px; }
    .image-viewer-close { grid-column: 2; grid-row: 1; }
    .image-viewer-footer { padding: 12px; }
    .image-viewer .image-viewer-previous, .image-viewer .image-viewer-next { width: 34px; height: 44px; }
    .image-viewer-previous { left: 6px; }
    .image-viewer-next { right: 6px; }
}
@media print { .image-viewer { display: none !important; } }
.project-availability-section { background: #fff; padding: 45px 0 60px; }
.project-availability { display: flex; align-items: flex-start; gap: 18px; padding: 25px; border: 1px solid #dce5eb; border-radius: 12px; margin-bottom: 30px; background: #f8fafb; }
.project-availability > i { color: #298cb8; font-size: 23px; padding-top: 3px; }
.project-availability h2 { font-size: 20px; font-weight: 500; margin: 0 0 10px; }
.project-availability p { font-size: 13px; color: #536a7a; margin: 0; line-height: 1.8; }
.projects-page a:focus-visible, .project-catalogue a:focus-visible, .projects-all-link:focus-visible { outline: 3px solid #1786b7; outline-offset: 5px; }
@media (max-width: 1100px) {
    .project-grid, #portfolio-list.project-grid { gap: 18px; }
    .project-card-body { padding: 20px; }
    .project-card h3 { font-size: 23px; }
    .project-detail-hero { gap: 30px; }
    .project-detail-hero > .project-cover { height: 460px; }
}
@media (max-width: 850px) {
    .project-grid, #portfolio-list.project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .project-detail-hero { grid-template-columns: 1fr; }
    .project-detail-copy { max-width: 650px; }
    .project-detail-hero > .project-cover { height: 470px; }
    .project-features { grid-template-columns: 1fr; gap: 15px; }
    .project-feature-number { float: left; width: 50px; border: 0; }
    .project-features h3, .project-features p { margin-left: 65px; }
    .project-features h3 { margin-top: 5px; }
    .project-screenshots-vpn a { height: 300px; }
}
@media (max-width: 600px) {
    .project-grid, #portfolio-list.project-grid { grid-template-columns: 1fr; }
    .project-cover { height: 280px; }
    .project-card-body { padding: 25px; }
    .project-card h3 { font-size: 27px; }
    .project-tagline { min-height: 0; }
    .projects-section-heading { flex-direction: column; align-items: flex-start; gap: 20px; }
    .projects-section-heading h2 { font-size: 33px; }
    .projects-container { padding: 0 24px; }
    .projects-page #start.projects-intro { padding-top: 36px; }
    .projects-intro .project-back { margin-bottom: 65px; }
    .projects-intro h1 { font-size: 47px; }
    .projects-lead { font-size: 19px; }
    .projects-intro .project-eyebrow { font-size: 9px; letter-spacing: 1.2px; }
    .projects-intro-footer { margin-top: 25px; }
    .projects-catalogue-section { padding-bottom: 45px; }
    .project-contact-section .projects-container { flex-direction: column; align-items: flex-start; }
    .project-contact-section h2 { font-size: 27px; }
    .projects-page #start.project-detail-intro { padding: 100px 0 40px; }
    .project-breadcrumbs { padding-right: 0; gap: 8px; margin-bottom: 30px; font-size: 11px; }
    .project-detail-hero > .project-cover { height: 400px; }
    .project-detail-hero .projects-lead { font-size: 22px; }
    .project-features-section, .project-screenshots-section { padding: 40px 0; }
    .project-screenshots { gap: 30px; grid-template-columns: 1fr; }
    .project-screenshots-vpn a { height: 330px; }
    .project-availability { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
    .project-card { transition: none; }
    .project-card:hover { transform: none; }
}
@media print {
    .projects-all-link, .project-contact-section, .project-result { display: none; }
    .project-card { break-inside: avoid; box-shadow: none; }
    .project-grid, #portfolio-list.project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .project-cover { height: 180px; }
    .project-detail-hero > .project-cover { height: 300px; }
}
