:root {
    --bg: #060407;
    --bg-2: #221932;
    --card: rgba(34, 25, 50, 0.68);
    --card-strong: rgba(34, 25, 50, 0.9);
    --primary: #722548;
    --primary-2: #541533;
    --accent: #9882B9;
    --teal: #45d6c4;
    --gold: #f2c96b;
    --blue: #58a6ff;
    --text: #ffffff;
    --text-soft: rgba(255, 255, 255, 0.74);
    --line: rgba(152, 130, 185, 0.16);
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    max-width: 100%;
    background:
        radial-gradient(circle at top left, rgba(114, 37, 72, 0.22), transparent 30%),
        radial-gradient(circle at top right, rgba(152, 130, 185, 0.13), transparent 28%),
        linear-gradient(180deg, #0b0710 0%, var(--bg) 100%);
    color: var(--text);
    font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    font: inherit;
}

.site-header {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 22px clamp(18px, 4vw, 60px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-weight: 700;
}

.brand-mark {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 0 18px rgba(152, 130, 185, 0.5);
    flex: 0 0 auto;
}

.brand-text {
    font-size: 1.05rem;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.site-nav a,
.filter-btn {
    border-radius: 999px;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-soft);
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.site-nav a {
    padding: 10px 16px;
}

.site-nav a:hover,
.site-nav a.active,
.filter-btn:hover,
.filter-btn.active {
    color: var(--text);
    background: rgba(114, 37, 72, 0.28);
    border-color: var(--line);
    transform: translateY(-1px);
}

.projects-hero {
    max-width: 1120px;
    margin: 0 auto;
    padding: 70px clamp(18px, 5vw, 70px) 34px;
    text-align: center;
}

.eyebrow {
    margin-bottom: 14px;
    color: var(--accent);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.projects-hero h1 {
    max-width: 880px;
    margin: 0 auto 18px;
    font-size: clamp(2.35rem, 5vw, 4.8rem);
    line-height: 1.02;
}

.projects-hero p {
    max-width: 780px;
    margin: 0 auto;
    color: var(--text-soft);
    font-size: 1.04rem;
    line-height: 1.8;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    max-width: 720px;
    margin: 32px auto 0;
}

.hero-stats div {
    padding: 18px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(34, 25, 50, 0.5);
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.22);
}

.hero-stats strong {
    display: block;
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.hero-stats span {
    display: block;
    margin-top: 4px;
    color: var(--text-soft);
    font-size: 0.92rem;
}

.projects-toolbar {
    position: sticky;
    top: 0;
    z-index: 8;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    width: min(1120px, calc(100% - 36px));
    margin: 0 auto 34px;
    padding: 14px;
    border: 1px solid rgba(152, 130, 185, 0.12);
    border-radius: 999px;
    background: rgba(6, 4, 7, 0.72);
    backdrop-filter: blur(18px);
}

.filter-btn {
    min-height: 42px;
    padding: 0 16px;
    cursor: pointer;
}

.projects {
    padding: 22px clamp(18px, 4vw, 60px) 30px;
    min-width: 0;
}

.section-heading {
    max-width: 1120px;
    margin: 0 auto 26px;
}

.section-heading h2 {
    font-size: clamp(1.55rem, 3vw, 2.5rem);
    line-height: 1.15;
}

.project-groups {
    display: grid;
    gap: 42px;
    max-width: 1240px;
    min-width: 0;
    margin: 0 auto;
}

.project-category-block {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.category-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(152, 130, 185, 0.13);
}

.category-title h3 {
    font-size: clamp(1.2rem, 2vw, 1.55rem);
}

.category-title p,
.category-title span {
    color: var(--text-soft);
    font-size: 0.92rem;
}

.category-title p {
    margin-top: 6px;
    line-height: 1.6;
}

.finished-block .category-title {
    border-color: rgba(69, 214, 196, 0.22);
}

.concept-block {
    padding-top: 8px;
}

.concept-block .category-title {
    border-color: rgba(242, 201, 107, 0.2);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 22px;
    min-width: 0;
}

.project-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 100%;
    overflow: hidden;
    border: 1px solid rgba(152, 130, 185, 0.14);
    border-radius: var(--radius-xl);
    background:
        linear-gradient(180deg, rgba(34, 25, 50, 0.76), rgba(34, 25, 50, 0.55)),
        rgba(255, 255, 255, 0.02);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.32);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.project-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(152, 130, 185, 0.16), transparent 38%, rgba(69, 214, 196, 0.08));
    opacity: 0;
    transition: opacity 0.28s ease;
    pointer-events: none;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(152, 130, 185, 0.28);
    box-shadow: var(--shadow);
}

.project-card:hover::before {
    opacity: 1;
}

.project-media {
    position: relative;
    min-width: 0;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #0d0a14;
}

.project-media img,
.modal-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-media::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 44%;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.64));
    pointer-events: none;
}

.project-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(6, 4, 7, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 0.76rem;
    font-weight: 700;
    backdrop-filter: blur(10px);
}

.project-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
    padding: 22px;
}

.project-meta,
.project-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.project-topline {
    flex-wrap: wrap;
}

.project-meta {
    flex-wrap: wrap;
    justify-content: flex-start;
}

.project-meta span {
    padding: 7px 10px;
    border: 1px solid rgba(152, 130, 185, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.045);
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.78rem;
}

.project-meta strong {
    color: #fff;
}

.project-category {
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.project-type {
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.84rem;
    overflow-wrap: anywhere;
}

.project-card h4 {
    font-size: 1.26rem;
    line-height: 1.2;
}

.project-card p {
    color: var(--text-soft);
    line-height: 1.65;
}

.tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-list span {
    padding: 7px 10px;
    border: 1px solid rgba(152, 130, 185, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.045);
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.8rem;
}

.project-actions,
.modal-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: auto;
}

.btn-primary,
.btn-secondary,
.btn-details,
.btn-demo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    font-weight: 700;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.btn-primary,
.btn-details {
    border: 0;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 12px 28px rgba(114, 37, 72, 0.28);
}

.btn-secondary,
.btn-demo {
    border: 1px solid rgba(152, 130, 185, 0.28);
    color: var(--text);
    background: rgba(255, 255, 255, 0.045);
}

.btn-details {
    cursor: pointer;
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-details:hover,
.btn-demo:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(152, 130, 185, 0.22);
}

.mockup {
    position: absolute;
    inset: 14px;
    display: grid;
    grid-template-rows: 36px 1fr;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    background: rgba(10, 8, 15, 0.76);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.mockup-top {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.06);
}

.mockup-top span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    flex: 0 0 auto;
}

.mockup-top span:nth-child(2) {
    background: var(--teal);
}

.mockup-top span:nth-child(3) {
    background: var(--gold);
}

.mockup-top strong {
    margin-left: 6px;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.74rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mockup-body {
    display: grid;
    gap: 8px;
    min-height: 0;
    padding: 10px;
    overflow: hidden;
}

.mock-toolbar,
.mock-page-head,
.mock-service-grid div,
.mock-form,
.mock-table,
.mock-total {
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.075);
}

.mock-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
    min-height: 34px;
    padding: 8px 10px;
}

.mock-toolbar strong,
.mock-page-head strong,
.mock-service-grid strong {
    min-width: 0;
    overflow: hidden;
    color: #fff;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mock-toolbar strong {
    font-size: 0.76rem;
}

.mock-toolbar span:not(.mock-button),
.mock-page-head p,
.mock-service-grid span,
.mock-form span,
.mock-total span,
.mock-product em,
.mock-chart-title span {
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.68rem;
    line-height: 1.35;
}

.mock-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    max-width: 100%;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    font-size: 0.64rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.mock-page-head {
    display: grid;
    align-content: center;
    gap: 6px;
    min-height: 96px;
    padding: 12px;
}

.mock-page-head strong {
    font-size: clamp(0.88rem, 1.7vw, 1.08rem);
    line-height: 1.15;
}

.mock-page-head p {
    margin: 0;
}

.mock-kicker {
    color: var(--accent);
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mock-service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.mock-service-grid div {
    display: grid;
    gap: 4px;
    min-width: 0;
    min-height: 48px;
    padding: 8px;
}

.mock-service-grid strong {
    font-size: 0.7rem;
}

.mock-hero,
.mock-metric,
.mock-product,
.mock-checkout,
.mock-filter,
.mock-calendar,
.mock-list,
.mock-course,
.mock-invoice,
.mock-phone,
.mock-card-row div {
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.075);
}

.mock-hero {
    display: grid;
    align-content: center;
    gap: 7px;
    min-height: 108px;
    padding: 14px;
}

.mock-hero span,
.mock-product span,
.mock-metric span,
.mock-course span,
.mock-phone span,
.mock-row span {
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.72rem;
}

.mock-hero strong,
.mock-course strong,
.mock-phone strong,
.mock-invoice strong {
    color: #fff;
    font-size: clamp(0.9rem, 2vw, 1.08rem);
    line-height: 1.15;
}

.mock-hero button,
.mock-invoice button {
    width: fit-content;
    margin-top: 2px;
    padding: 7px 10px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
}

.mock-card-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.mock-card-row div {
    display: grid;
    min-height: 46px;
    place-items: center;
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.7rem;
    font-weight: 700;
}

.mock-dashboard {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.mock-metric {
    padding: 10px;
}

.mock-metric strong {
    display: block;
    color: #fff;
    font-size: 1rem;
}

.mock-chart {
    grid-column: 1 / -1;
    display: grid;
    gap: 8px;
    min-height: 78px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.06);
}

.mock-chart-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.mock-chart-title strong {
    color: #fff;
    font-size: 0.72rem;
}

.mock-chart-bars {
    display: flex;
    align-items: end;
    gap: 8px;
    min-height: 42px;
}

.mock-chart-bars span {
    flex: 1;
    border-radius: 999px 999px 4px 4px;
    background: linear-gradient(180deg, var(--teal), rgba(152, 130, 185, 0.45));
}

.mock-chart-bars span:nth-child(1) { height: 42%; }
.mock-chart-bars span:nth-child(2) { height: 68%; }
.mock-chart-bars span:nth-child(3) { height: 52%; }
.mock-chart-bars span:nth-child(4) { height: 84%; }
.mock-chart-bars span:nth-child(5) { height: 62%; }

.mock-store {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.mock-product {
    display: grid;
    gap: 6px;
    align-content: space-between;
    min-width: 0;
    min-height: 88px;
    padding: 10px;
}

.mock-product strong {
    min-width: 0;
    overflow: hidden;
    color: #fff;
    font-size: 0.78rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mock-product em {
    font-style: normal;
    font-weight: 800;
}

.mock-checkout,
.mock-filter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.78rem;
    font-weight: 800;
}

.mock-checkout > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mock-calendar {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    padding: 10px;
}

.mock-calendar span,
.mock-calendar strong {
    display: grid;
    min-height: 28px;
    place-items: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.7rem;
}

.mock-calendar strong {
    grid-column: 2 / span 3;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
}

.mock-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    min-height: 0;
}

.mock-form {
    display: grid;
    align-content: center;
    gap: 7px;
    min-width: 0;
    padding: 10px;
}

.mock-list,
.mock-invoice {
    display: grid;
    gap: 7px;
    padding: 10px;
}

.mock-list.compact {
    padding: 8px;
}

.mock-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 8px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.06);
}

.mock-row strong {
    color: #fff;
    font-size: 0.72rem;
    text-align: right;
}

.mock-table {
    display: grid;
    gap: 5px;
    min-width: 0;
    padding: 8px;
}

.mock-table-head,
.mock-table-row {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) 0.55fr minmax(0, 0.9fr);
    gap: 7px;
    align-items: center;
    min-width: 0;
}

.mock-table-head span,
.mock-table-row span {
    min-width: 0;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.62rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mock-table-head span {
    color: rgba(255, 255, 255, 0.48);
    font-weight: 800;
    text-transform: uppercase;
}

.mock-table-row {
    padding: 6px 7px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.055);
}

.mock-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    min-height: 20px;
    padding: 0 7px;
    border-radius: 999px;
    font-size: 0.58rem;
    font-weight: 800;
    line-height: 1;
}

.mock-status-good {
    background: rgba(69, 214, 196, 0.18);
    color: #7cf1e4;
}

.mock-status-warn {
    background: rgba(242, 201, 107, 0.18);
    color: #f7d989;
}

.mock-status-bad {
    background: rgba(255, 98, 98, 0.18);
    color: #ffadad;
}

.mock-total {
    display: grid;
    gap: 5px;
    padding: 8px 10px;
}

.mock-total strong {
    color: #fff;
    font-size: 0.76rem;
}

.mock-course {
    display: grid;
    gap: 7px;
    padding: 12px;
}

.mock-progress {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.mock-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--primary), var(--teal));
}

.mock-phone {
    display: grid;
    align-content: center;
    gap: 7px;
    min-height: 136px;
    padding: 14px;
    border-radius: 24px;
    text-align: center;
}

.mock-visual-layout {
    display: grid;
    grid-template-columns: 0.82fr 1fr;
    gap: 8px;
    min-height: 0;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 22px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.modal.show {
    opacity: 1;
}

.modal[hidden] {
    display: none;
}

.modal-content {
    position: relative;
    width: min(1040px, 100%);
    max-height: min(820px, calc(100vh - 44px));
    overflow: auto;
    border: 1px solid rgba(152, 130, 185, 0.18);
    border-radius: var(--radius-xl);
    background:
        linear-gradient(145deg, rgba(6, 4, 7, 0.96), rgba(34, 25, 50, 0.96)),
        var(--bg-2);
    box-shadow: var(--shadow);
    transform: translateY(16px) scale(0.97);
    transition: transform 0.25s ease;
}

.modal.show .modal-content {
    transform: translateY(0) scale(1);
}

.close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    cursor: pointer;
    font-size: 1.55rem;
}

.modal-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
    gap: 0;
}

.modal-preview {
    display: grid;
    min-height: 430px;
    background: #0d0a14;
}

.modal-preview .mockup {
    position: relative;
    inset: auto;
    width: calc(100% - 36px);
    min-height: 394px;
    margin: 18px;
}

.modal-copy {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: clamp(28px, 4vw, 44px);
}

.modal-copy h2 {
    font-size: clamp(1.65rem, 3vw, 2.4rem);
    line-height: 1.1;
}

.modal-copy p,
.modal-copy li {
    color: var(--text-soft);
    line-height: 1.75;
}

.modal-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.modal-meta div {
    padding: 12px 14px;
    border: 1px solid rgba(152, 130, 185, 0.14);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.045);
}

.modal-meta span {
    display: block;
    margin-bottom: 5px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.modal-meta strong {
    color: #fff;
}

.modal-section h3 {
    margin-bottom: 10px;
    color: #fff;
    font-size: 1rem;
}

.modal-section ul {
    display: grid;
    gap: 8px;
    padding-left: 20px;
}

.cta-final {
    width: min(980px, calc(100% - 36px));
    margin: 68px auto 18px;
    padding: clamp(28px, 5vw, 46px);
    text-align: center;
    border: 1px solid rgba(152, 130, 185, 0.16);
    border-radius: var(--radius-xl);
    background:
        linear-gradient(145deg, rgba(114, 37, 72, 0.28), rgba(34, 25, 50, 0.7)),
        rgba(255, 255, 255, 0.02);
    box-shadow: var(--shadow);
}

.cta-final h2 {
    max-width: 720px;
    margin: 0 auto 22px;
    font-size: clamp(1.5rem, 3vw, 2.35rem);
    line-height: 1.16;
}

.footer {
    position: relative;
    margin-top: 80px;
    padding: 60px clamp(18px, 4vw, 60px) 24px;
    overflow: hidden;
    border-top: 1px solid rgba(152, 130, 185, 0.16);
    background: linear-gradient(180deg, rgba(6, 4, 7, 0.96), rgba(34, 25, 50, 0.98));
}

.footer-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.22;
    pointer-events: none;
}

.footer-glow-1 {
    top: -80px;
    left: -80px;
    width: 260px;
    height: 260px;
    background: var(--primary);
}

.footer-glow-2 {
    right: -120px;
    bottom: -120px;
    width: 300px;
    height: 300px;
    background: var(--accent);
}

.footer-container,
.footer-bottom {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.3fr 0.8fr 1fr;
    gap: 40px;
    align-items: start;
}

.footer-brand-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.footer-brand h3 {
    font-size: 1.3rem;
}

.footer-brand p {
    max-width: 36ch;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.8;
}

.footer h4 {
    margin-bottom: 14px;
    color: var(--accent);
}

.footer-links a,
.contact-link {
    display: flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
    max-width: 100%;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.78);
    transition: transform 0.25s ease, color 0.25s ease, filter 0.25s ease;
}

.contact-link span:last-child {
    min-width: 0;
    overflow-wrap: anywhere;
}

.footer-links a:hover,
.contact-link:hover {
    color: #fff;
    transform: translateX(6px);
    filter: drop-shadow(0 0 10px rgba(152, 130, 185, 0.35));
}

.icon-wrap,
.whatsapp-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(152, 130, 185, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    flex: 0 0 auto;
}

.icon-wrap svg,
.whatsapp-icon svg {
    width: 18px;
    height: 18px;
    fill: var(--accent);
}

.footer-bottom {
    margin-top: 34px;
    padding-top: 16px;
    border-top: 1px solid rgba(152, 130, 185, 0.1);
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.88rem;
    text-align: center;
}

.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 999;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.whatsapp-pulse {
    position: absolute;
    inset: -10px;
    border: 1px solid rgba(152, 130, 185, 0.25);
    border-radius: 50%;
    animation: pulse 1.9s infinite;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes pulse {
    0% {
        transform: scale(0.85);
        opacity: 0.8;
    }

    70%,
    100% {
        transform: scale(1.12);
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

@media (max-width: 980px) {
    .modal-layout {
        grid-template-columns: 1fr;
    }

    .modal-preview {
        min-height: 320px;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }

    .footer-brand p {
        max-width: none;
    }
}

@media (max-width: 760px) {
    .site-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-nav {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .site-nav a {
        width: 100%;
        min-width: 0;
        text-align: center;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .projects-hero h1 {
        max-width: 10ch;
        font-size: clamp(1.75rem, 7.2vw, 2.25rem);
        line-height: 1.12;
        overflow-wrap: break-word;
    }

    .projects-hero p {
        max-width: 32ch;
        font-size: 0.98rem;
    }

    .hero-stats {
        width: min(100%, 340px);
    }

    .projects-toolbar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-content: stretch;
        border-radius: var(--radius-lg);
    }

    .filter-btn {
        width: 100%;
    }

    .project-media {
        aspect-ratio: 4 / 3;
    }

    .project-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .section-heading h2 {
        font-size: clamp(1.35rem, 5.8vw, 1.7rem);
        line-height: 1.18;
        overflow-wrap: break-word;
    }

    .category-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .project-topline,
    .project-meta {
        justify-content: flex-start;
    }

    .project-actions,
    .modal-actions {
        flex-direction: column;
    }

    .modal-meta {
        grid-template-columns: 1fr;
    }

    .btn-primary,
    .btn-secondary,
    .btn-details,
    .btn-demo {
        width: 100%;
    }

    .footer {
        padding: 50px 20px 24px;
    }
}

@media (max-width: 430px) {
    .projects-hero {
        padding-top: 48px;
    }

    .project-content {
        padding: 18px;
    }

    .mockup {
        inset: 10px;
    }

    .modal {
        padding: 12px;
    }
}
