:root {
    --bg: #0b0f14;
    --bg-elevated: #0e1319;
    --surface: #141b24;
    --surface-2: #1b2430;
    --text: #eef3f8;
    --muted: #a9b4c2;
    --primary: #8eb6ff;
    --primary-strong: #3d7cf5;
    --border: rgba(232, 238, 246, 0.12);
    --border-strong: rgba(232, 238, 246, 0.18);
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
    --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.22);
    --font: "Manrope", "IBM Plex Sans Arabic", sans-serif;
    --max: 1120px;
    --header: 76px;
    --space-section: clamp(3.5rem, 6vw, 5rem);
    --space-block: 1.25rem;
}

html[lang="ar"] {
    --font: "IBM Plex Sans Arabic", "Manrope", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 1.02rem;
    line-height: 1.7;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); }
p, ul { margin: 0; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0; font-weight: 700; }
ul { padding-inline-start: 1.15rem; }
.ltr, .tech, a[href^="mailto:"], a[href^="tel:"] {
    direction: ltr;
    unicode-bidi: isolate;
}
.wrap { width: min(var(--max), calc(100% - 2rem)); margin-inline: auto; }
.skip {
    position: absolute;
    inset-inline-start: 1rem;
    top: -4rem;
    background: var(--primary-strong);
    color: #fff;
    padding: 0.6rem 0.9rem;
    border-radius: 8px;
    z-index: 20;
}
.skip:focus { top: 0.6rem; }

.header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(11, 15, 20, 0.92);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(14px);
}
.nav {
    position: relative;
    min-height: var(--header);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img {
    height: 64px;
    width: 64px;
    object-fit: contain;
}
.nav-panel {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-links a, .lang a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    padding: 0.4rem 0.55rem;
    border-radius: 8px;
}
.nav-links a:hover, .lang a:hover { background: var(--surface-2); }
.nav-links a:focus-visible, .lang a:focus-visible { background: var(--surface-2); }
.nav-cta { margin-inline-start: 0.35rem; white-space: nowrap; }
.lang {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.15rem;
}
.lang a[aria-current="page"] { background: var(--surface-2); color: var(--primary); }
.menu-btn {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
}

.hero {
    padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem);
    background:
        radial-gradient(ellipse 80% 60% at 20% 0%, rgba(61, 124, 245, 0.12), transparent 55%),
        radial-gradient(ellipse 50% 40% at 90% 20%, rgba(142, 182, 255, 0.08), transparent 50%),
        var(--bg);
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.35fr 0.65fr;
    gap: clamp(1.5rem, 4vw, 2.75rem);
    align-items: center;
}
.kicker {
    display: inline-block;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.85rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(142, 182, 255, 0.35);
    background: rgba(61, 124, 245, 0.1);
}
h1 {
    font-size: clamp(2rem, 4.2vw, 3.35rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    max-width: min(100%, 15em);
}
html[lang="ar"] h1 { max-width: min(100%, 18em); letter-spacing: 0; }
.lede {
    color: var(--muted);
    font-size: clamp(1.05rem, 1.8vw, 1.15rem);
    margin-top: 1.15rem;
    max-width: 38rem;
    line-height: 1.65;
}
.note {
    color: var(--muted);
    margin-top: 0.85rem;
    font-size: 0.95rem;
    padding-inline-start: 0.85rem;
    border-inline-start: 2px solid var(--border-strong);
}
.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.4rem; }
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 46px;
    padding: 0.65rem 1.1rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    border: 1px solid transparent;
}
.btn svg { width: 1.1rem; height: 1.1rem; fill: currentColor; }
.btn-primary { background: var(--primary-strong); color: #fff; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-primary:active { filter: brightness(0.96); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface); }
.direct { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }
.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 42px;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    color: var(--text);
    text-decoration: none;
    background: var(--surface);
    font-weight: 600;
}
.chip svg { width: 1.15rem; height: 1.15rem; }
.chip-wa { color: #8ee0b2; }
.portrait-wrap {
    justify-self: end;
    align-self: center;
    position: relative;
    width: min(360px, 100%);
    isolation: isolate;
}
.portrait-wrap::before {
    content: "";
    position: absolute;
    inset: 8% -12% -10% -12%;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 40%, rgba(61, 124, 245, 0.35), rgba(142, 182, 255, 0.08) 45%, transparent 72%);
    filter: blur(18px);
    z-index: 0;
    opacity: 0.9;
}
.portrait-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 26px;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    pointer-events: none;
    z-index: 2;
}
.portrait {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    object-position: center 12%;
    border-radius: 26px;
    border: none;
    background: var(--bg);
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.25),
        0 22px 44px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.06);
}
@media (prefers-reduced-motion: no-preference) {
    .portrait {
        transition: transform 0.35s ease, box-shadow 0.35s ease;
    }
    .portrait-wrap:hover .portrait {
        transform: translateY(-3px);
        box-shadow:
            0 8px 12px rgba(0, 0, 0, 0.28),
            0 28px 52px rgba(0, 0, 0, 0.5),
            0 0 48px rgba(61, 124, 245, 0.12),
            0 0 0 1px rgba(255, 255, 255, 0.08);
    }
}

section {
    padding: var(--space-section) 0;
    scroll-margin-top: calc(var(--header) + 0.75rem);
}
section.section-band {
    padding-top: 0;
    padding-bottom: var(--space-section);
    margin-top: -0.5rem;
}
section.section-alt {
    background: var(--bg-elevated);
    border-block: 1px solid var(--border);
}
.section-title {
    font-size: clamp(1.65rem, 2.8vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.65rem;
}
.section-lead {
    color: var(--muted);
    max-width: 44rem;
    margin-bottom: var(--space-block);
    line-height: 1.65;
}
.section-lead + .section-lead { margin-top: -0.5rem; }
.section-head { margin-bottom: 0.25rem; }
.spaced-top { margin-top: var(--space-block); }
.spaced-bottom { margin-bottom: var(--space-block); }

.stats, .cards, .skill-grid, .help-grid, .projects, .quotes, .contact-grid {
    display: grid;
    gap: 0.9rem;
}
.stats { grid-template-columns: repeat(4, 1fr); }
.help-grid { grid-template-columns: repeat(4, 1fr); }
.cards, .projects, .quotes, .contact-grid { grid-template-columns: repeat(2, 1fr); }
.projects { grid-template-columns: repeat(3, 1fr); }
#projects > .wrap > .cards { grid-template-columns: repeat(3, 1fr); }
.skill-grid { grid-template-columns: repeat(3, 1fr); }
.card, .faq-item, .contact-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.25rem 1.3rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
@media (prefers-reduced-motion: no-preference) {
    .card:hover, .faq-item:hover {
        border-color: var(--border-strong);
        box-shadow: var(--shadow-soft);
    }
    .help-grid .card:hover { transform: translateY(-2px); }
}
.stat {
    text-align: center;
    padding: 1.35rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 5.5rem;
}
.section-band .stat {
    background: linear-gradient(165deg, rgba(27, 36, 48, 0.85) 0%, var(--surface) 55%);
    border-color: var(--border-strong);
}
.stat strong {
    display: block;
    font-size: clamp(1.35rem, 2.4vw, 1.75rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 0.35rem;
    line-height: 1.2;
}
.stat span {
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.45;
    max-width: 14rem;
}
.card h3, .card h4 { margin-bottom: 0.45rem; font-size: 1.08rem; }
.card h4 {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--primary);
    margin-top: 0;
}
.card h4 + .pills { margin-top: 0.45rem; }
.card h4:not(:first-child) { margin-top: 1.15rem; }
#services .card h3 { display: flex; align-items: flex-start; gap: 0.6rem; }
#services .card h3::before {
    content: "";
    width: 1.6rem;
    height: 1.6rem;
    flex: 0 0 auto;
    margin-top: 0.1rem;
    border-radius: 8px;
    background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238eb6ff' stroke-width='1.8'%3E%3Cpath d='M5 12h14M12 5v14'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.muted, .card p, .card li, .faq-item p { color: var(--muted); }

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.15rem;
    align-items: start;
}
#about .about-skills {
    padding: 1.35rem 1.3rem 1.3rem;
}
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.15rem 1.25rem;
}
.skill-group {
    padding: 1rem 1rem 1.05rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: rgba(11, 15, 20, 0.35);
}
.skill-group h4 {
    margin: 0 0 0.55rem;
}
#about .about-skills .skill-group .pills {
    margin-top: 0;
}
#about .about-skills .pills span {
    background: rgba(61, 124, 245, 0.08);
    border-color: rgba(142, 182, 255, 0.22);
    font-size: 0.86rem;
    padding: 0.28rem 0.62rem;
}
#about .skill-group--ai .pills span {
    background: rgba(139, 124, 255, 0.1);
    border-color: rgba(167, 139, 250, 0.3);
}
@media (min-width: 768px) {
    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (min-width: 1024px) {
    .skills-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
#about .about-story,
#about .about-skills {
    padding: 1.35rem 1.3rem 1.3rem;
}
#about .about-intro {
    font-size: 1.05rem;
    line-height: 1.68;
    color: var(--text);
}
.about-subtitle {
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin: 0 0 0.85rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}
#about .about-story .about-subtitle {
    margin-top: 1.4rem;
}
#about .about-skills > .about-subtitle:first-child {
    margin-top: 0;
}
#about .timeline {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.65rem;
    position: relative;
    padding-inline-start: 1.35rem;
}
#about .timeline::before {
    content: "";
    position: absolute;
    inset-inline-start: 0.45rem;
    top: 0.5rem;
    bottom: 0.5rem;
    width: 2px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--primary-strong), rgba(61, 124, 245, 0.12));
}
#about .timeline li {
    position: relative;
    margin: 0;
    padding: 0.85rem 0.95rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface-2);
    border-inline-start: none;
    padding-inline-start: 0.95rem;
    transition: border-color 0.2s ease, background 0.2s ease;
}
@media (prefers-reduced-motion: no-preference) {
    #about .timeline li:hover {
        border-color: var(--border-strong);
        background: rgba(27, 36, 48, 0.95);
    }
}
#about .timeline li::before {
    content: "";
    position: absolute;
    inset-inline-start: -1.15rem;
    top: 1.05rem;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--primary-strong);
    box-shadow: 0 0 0 3px var(--surface);
}
#about .timeline li:first-child::before {
    box-shadow:
        0 0 0 3px var(--surface),
        0 0 12px rgba(61, 124, 245, 0.45);
}
#about .timeline b {
    display: block;
    font-size: 0.93rem;
    font-weight: 700;
    line-height: 1.45;
    color: var(--text);
    margin-bottom: 0.3rem;
}
#about .timeline span {
    display: block;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

.icon {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: var(--surface-2);
    color: var(--primary);
    margin-bottom: 0.7rem;
}
.icon svg { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 1.8; }

.group { margin-top: 0.85rem; }
.group + .group { margin-top: 0.65rem; }
.toggle {
    width: 100%;
    text-align: start;
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.05rem 1.15rem;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.toggle small { display: block; color: var(--primary); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; }
.toggle::after {
    content: "";
    width: 0.5rem;
    height: 0.5rem;
    border-inline-end: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
}
.toggle[aria-expanded="true"] {
    border-color: var(--border-strong);
    background: var(--surface-2);
}
.toggle[aria-expanded="true"]::after { transform: rotate(-135deg); }
.toggle:hover { border-color: var(--border-strong); }
.panel { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; margin-top: 0.8rem; }
.pills { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.6rem; }
.pills span { border: 1px solid var(--border); border-radius: 999px; padding: 0.2rem 0.6rem; color: var(--text); font-size: 0.9rem; }
.panel[hidden] { display: none !important; }
.card ul { margin-top: 0.6rem; }
.card .btn { margin-top: 0.9rem; }

.filters { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1rem; }
.filters button {
    min-height: 40px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    font: inherit;
    padding: 0.3rem 0.85rem;
    cursor: pointer;
}
.filters button[aria-pressed="true"] { background: var(--primary-strong); border-color: var(--primary-strong); color: #fff; }

#projects .project-highlights {
    gap: 1.1rem;
}
#projects .project-highlights .card {
    padding: 1.3rem 1.25rem 1.25rem;
    background: linear-gradient(165deg, rgba(27, 36, 48, 0.92) 0%, var(--surface) 48%);
    border-color: var(--border-strong);
}
#projects .project-highlights .card h3 {
    font-size: 1.12rem;
    margin-bottom: 0.65rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid var(--border);
}
#projects .project-highlights .card p {
    font-size: 0.94rem;
    line-height: 1.6;
    margin-top: 0.45rem;
}
#projects .project-highlights .card p strong {
    display: block;
    margin-bottom: 0.2rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--primary);
}
.projects-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.25rem;
    margin-bottom: 1.15rem;
    padding: 0.9rem 1.05rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: rgba(11, 15, 20, 0.55);
}
.projects-toolbar-label {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}
#projects .projects-toolbar .filters {
    margin-bottom: 0;
    gap: 0.5rem;
}
#projects .filters button {
    min-height: 42px;
    padding: 0.35rem 0.95rem;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
#projects .filters button:hover:not([aria-pressed="true"]) {
    background: var(--surface-2);
    border-color: var(--border-strong);
}
#projects .projects {
    gap: 1.1rem;
    align-items: stretch;
}
#projects .project-card {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 1.25rem 1.2rem 1.15rem;
    min-height: 100%;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
@media (prefers-reduced-motion: no-preference) {
    #projects .project-card:hover {
        border-color: var(--border-strong);
        box-shadow: var(--shadow-soft);
        transform: translateY(-3px);
    }
}
#projects .project-card .tag {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0.22rem 0.6rem;
    border-radius: 999px;
    font-size: 0.72rem;
    background: rgba(61, 124, 245, 0.14);
    border: 1px solid rgba(142, 182, 255, 0.28);
    color: var(--primary);
}
#projects .project-card[data-category="mobile"] .tag {
    background: rgba(142, 224, 178, 0.1);
    border-color: rgba(142, 224, 178, 0.32);
    color: #8ee0b2;
}
#projects .project-card h3 {
    margin: 0.1rem 0 0.15rem;
    font-size: 1.14rem;
    letter-spacing: -0.01em;
}
#projects .project-card > p:not(.tag):not(.muted) {
    flex: 1;
    font-size: 0.94rem;
    line-height: 1.58;
    color: var(--muted);
}
#projects .project-card .muted {
    font-size: 0.86rem;
    margin-top: 0.15rem;
}
#projects .project-card a:not(.btn) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    align-self: flex-start;
    margin-top: auto;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    color: var(--text);
    background: var(--surface-2);
    border: 1px solid var(--border);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
#projects .project-card a:not(.btn)::after {
    content: "";
    width: 0.85rem;
    height: 0.85rem;
    flex-shrink: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23eef3f8' stroke-width='2'%3E%3Cpath d='M7 17L17 7M17 7h-8M17 7v8'/%3E%3C/svg%3E") center / contain no-repeat;
    opacity: 0.85;
}
#projects .project-card a:not(.btn):hover {
    background: rgba(61, 124, 245, 0.15);
    border-color: rgba(142, 182, 255, 0.35);
    color: var(--primary);
    text-decoration: none;
}
#projects .project-card[hidden] {
    display: none !important;
}

.project-card {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.project-card h3 { margin: 0.15rem 0; font-size: 1.12rem; }
.project-card a:not(.btn) {
    margin-top: auto;
    padding-top: 0.65rem;
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
}
.project-card a:not(.btn):hover { text-decoration: underline; }
.tag { color: var(--primary); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.help-grid .card h3 { font-size: 1.05rem; }
.help-grid .card p { font-size: 0.95rem; line-height: 1.6; }
.quote { margin: 0 0 0.9rem; }
.person { display: flex; align-items: center; gap: 0.7rem; }
.person img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.person span { display: block; color: var(--muted); font-size: 0.9rem; }

#testimonials .quotes {
    gap: 1.15rem;
    align-items: stretch;
    grid-template-columns: repeat(3, 1fr);
}
#testimonials .quotes .card {
    display: flex;
    flex-direction: column;
    padding: 1.4rem 1.35rem 1.25rem;
    min-height: 100%;
}
#testimonials .quotes .card:not(.is-extra) {
    background: linear-gradient(165deg, rgba(27, 36, 48, 0.95) 0%, var(--surface) 42%);
    border-color: var(--border-strong);
}
#testimonials .quote {
    flex: 1;
    margin: 0 0 1.1rem;
    padding-inline-start: 1.65rem;
    position: relative;
    font-size: 0.97rem;
    line-height: 1.72;
    color: rgba(238, 243, 248, 0.92);
    font-style: normal;
}
#testimonials .quote::before {
    content: "\201C";
    position: absolute;
    inset-inline-start: 0;
    top: -0.35rem;
    font-size: 2.75rem;
    line-height: 1;
    font-family: Georgia, "Times New Roman", serif;
    color: var(--primary);
    opacity: 0.55;
    font-weight: 700;
}
#testimonials .person {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}
#testimonials .person img {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border: 2px solid rgba(142, 182, 255, 0.25);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
}
#testimonials .person strong {
    display: block;
    font-size: 0.98rem;
    margin-bottom: 0.1rem;
}
.testimonials-count {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0.35rem 0 0;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 600;
}
.testimonials-count-num {
    color: var(--primary);
    font-weight: 800;
}
.testimonials-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    margin-top: 1.65rem;
    padding-top: 0.5rem;
}
.testimonials-linkedin {
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
}
.testimonials-linkedin:hover { text-decoration: underline; }
.quotes.is-expanded .is-extra:not([hidden]) {
    animation: testimonial-in 0.4s ease both;
}
@keyframes testimonial-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@media (prefers-reduced-motion: reduce) {
    .quotes.is-expanded .is-extra:not([hidden]) {
        animation: none;
    }
}
.is-extra[hidden], .project-card[hidden] { display: none !important; }
.center { text-align: center; margin-top: 1rem; }
.faq { display: grid; gap: 0.75rem; max-width: 52rem; }
.faq-item h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }

.contact-section .actions { margin-top: 0.5rem; }
.contact-card {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    text-decoration: none;
    color: var(--text);
    min-height: 120px;
    justify-content: center;
}
.contact-card strong { font-size: 1.05rem; }
.contact-card:hover { background: var(--surface-2); border-color: var(--border-strong); }

.footer {
    border-top: 1px solid var(--border);
    padding: 2.5rem 0 5.5rem;
    color: var(--muted);
    background: var(--bg-elevated);
}
.footer .wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.25rem 2rem;
}
.footer-meta { display: flex; flex-direction: column; gap: 0.35rem; }
.footer strong { color: var(--text); display: block; font-size: 1.1rem; }
.social { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; }
.wa-float {
    position: fixed;
    right: 1rem;
    left: auto;
    bottom: 1rem;
    z-index: 25;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #128c7e;
    color: #fff;
    box-shadow: var(--shadow);
}
[dir="rtl"] .wa-float { right: 1rem; left: auto; }
.wa-float svg { width: 1.5rem; height: 1.5rem; fill: currentColor; }
.wa-float.is-hidden { opacity: 0; pointer-events: none; }

:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }

@media (max-width: 1024px) {
    .hero-grid, .about-grid, .skill-grid { grid-template-columns: 1fr; }
    .skills-grid { grid-template-columns: 1fr; }
    .portrait-wrap {
        justify-self: center;
        order: -1;
        width: min(280px, 78vw);
        margin-bottom: 0.5rem;
    }
    .stats, .help-grid { grid-template-columns: repeat(2, 1fr); }
    .projects, #projects > .wrap > .cards { grid-template-columns: repeat(2, 1fr); }
    #testimonials .quotes { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
    .menu-btn { display: inline-grid; place-items: center; }
    .nav-panel {
        display: none;
        position: absolute;
        inset-inline: 0;
        top: var(--header);
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        padding: 0.8rem 1rem 1rem;
        flex-direction: column;
        align-items: stretch;
    }
    .nav-panel.open { display: flex; }
    .nav-links { flex-direction: column; align-items: stretch; }
    .nav-cta { width: 100%; }
    .cards, .help-grid, .projects, .quotes, .contact-grid, .stats, .panel { grid-template-columns: 1fr; }
    .footer .wrap { flex-direction: column; }
    .hero { padding-top: 2.4rem; }
    h1 { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
