/* ================================================= */
/* ============== משתנים גלובליים ואפס =========== */
/* ================================================= */
:root {
    --primary-color: #c9a227;
    --secondary-color: #a8841e;
    --accent-color: #e8c040;

    --background-color: #060606;
    --surface-color: #0c0c0c;
    --surface-elevated: #111111;
    --surface-hover: #181818;

    --text-color: #ececec;
    --text-light-color: #9a9a9a;
    --text-muted: #6e6e6e;
    --border-color: #262626;
    --border-subtle: #1a1a1a;

    --font-primary: 'Assistant', sans-serif;
    --font-secondary: 'Heebo', sans-serif;
    --font-display: 'Outfit', 'Heebo', sans-serif;

    --card-border: 1px solid rgba(255, 255, 255, 0.06);
    --nav-height: 72px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --section-y: clamp(4.5rem, 12vw, 7rem);
    --container-max: 1120px;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- גלגלת מותאמת אישית (Custom Scrollbar) --- */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--background-color);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 5px;
    border: 2px solid var(--background-color);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

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

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

:focus:not(:focus-visible) {
    outline: none;
}

html, body {
    width: 100%;
    min-height: 100vh; 
    margin: 0;
    padding: 0;
    overflow-x: hidden !important; 
    position: relative;
    font-family: var(--font-primary);
    line-height: 1.7;
    background-color: var(--background-color);
    color: var(--text-color);
}

html {
    scroll-behavior: smooth;
}

body {
    padding-top: var(--nav-height);
}

/* ================================================= */
/* ============== RTL / LTR alignment ============== */
/* ================================================= */
html[dir="rtl"] body {
    text-align: right;
}

html[dir="ltr"] body {
    text-align: left;
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: clamp(18px, 4vw, 28px);
    padding-right: clamp(18px, 4vw, 28px);
}

.container--narrow-contact {
    max-width: 560px;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-secondary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--primary-color);
}

h1 {
    font-size: 3.8rem;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

h2 {
    font-size: 1.75rem;
    text-align: inherit;
    position: relative;
    padding-bottom: 0;
    margin-bottom: 1rem;
    color: var(--text-color);
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

h2::after {
    display: none;
}

main#main-content section:not(#hero) > .container > h2:first-of-type {
    font-size: clamp(1.6rem, 3.2vw, 2.05rem);
    margin-bottom: 0.65rem;
    padding-inline-start: 1rem;
    border-inline-start: 3px solid var(--primary-color);
    width: fit-content;
    max-width: 100%;
}

h3 {
    font-size: clamp(1.15rem, 2vw, 1.5rem);
    color: var(--primary-color);
    font-family: var(--font-secondary);
}

p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--text-color);
    opacity: 0.9;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

section {
    border-bottom: 1px solid var(--border-subtle);
    width: 100%;
    display: block;
    overflow: hidden;
    position: relative;
}

/* ================================================= */
/* ============= סרגל ניווט (Header) ================ */
/* ================================================= */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: rgba(8, 8, 8, 0.88);
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
}

#main-header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--nav-height);
}

.logo {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: 0.04em;
    text-transform: none;
}

.logo-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-color);
}

.logo-brand:hover {
    color: var(--text-color);
}

.logo-brand::after {
    display: none;
}

.logo-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 15px;
    background: linear-gradient(145deg, rgba(201, 162, 39, 0.12), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(201, 162, 39, 0.28);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.logo-mark img {
    width: 32px;
    height: 32px;
    border-radius: 11px;
    object-fit: cover;
}

.logo-text {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: 0.12em;
    font-size: 1.02rem;
    line-height: 1;
    position: relative;
    padding-bottom: 6px;
}

.logo-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    inset-inline-start: 0;
    width: 42px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 1px;
}

.logo-az {
    color: var(--text-color);
}

.logo-dev {
    color: var(--primary-color);
}

.logo:not(.logo-brand)::after {
    content: '';
    display: block;
    height: 2px;
    width: 28px;
    margin-top: 4px;
    background: var(--primary-color);
    border-radius: 1px;
}

html[dir="ltr"] .logo:not(.logo-brand)::after {
    margin-left: 0;
    margin-right: auto;
}

html[dir="rtl"] .logo:not(.logo-brand)::after {
    margin-right: 0;
    margin-left: auto;
}

.desktop-nav {
    list-style: none;
    display: flex;
}

.desktop-nav li a {
    padding: 8px 10px;
    font-weight: 500;
    color: var(--text-color);
    font-size: 0.88rem;
    transition: all 0.3s ease;
    border-radius: 4px;
    margin: 0 1px;
}

@media (min-width: 1200px) {
    .desktop-nav li a {
        padding: 8px 14px;
        font-size: 1rem;
    }
}

.desktop-nav li a:hover {
    color: var(--primary-color);
    background-color: rgba(212, 175, 55, 0.05);
}

.desktop-nav li a.active {
    color: var(--primary-color);
    font-weight: 700;
    position: relative;
}

.desktop-nav li a.active::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background-color: var(--primary-color);
}

/* כפתור בולט ליצירת קשר בתפריט */
.cta-link {
    border: 1px solid var(--primary-color);
    color: var(--primary-color) !important;
}

.cta-link:hover {
    background: var(--primary-color) !important;
    color: #000 !important;
}

/* כפתור החלפת שפה */
#lang-toggle {
    margin-right: 20px;
    padding: 6px 14px;
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

#lang-toggle:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

/* ================================================= */
/* ============== קומת הכניסה (Hero) =============== */
/* ================================================= */
#hero {
    background: radial-gradient(circle at center, #1a1a1a 0%, #000000 100%);
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: none;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(#333 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.1;
    pointer-events: none;
}

#hero h1 {
    margin-bottom: 20px;
    letter-spacing: -0.03em;
}

#hero h2 {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-color);
    max-width: 700px;
    margin: 0 auto 40px auto;
    line-height: 1.6;
}

#hero h2::after {
    display: none;
}

.hero-socials a {
    font-size: 2rem;
    color: var(--text-light-color);
    margin: 0 12px;
    transition: all 0.3s ease;
    display: inline-block;
}

.hero-socials a:hover {
    color: var(--primary-color);
    transform: translateY(-5px);
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}

.hero-actions {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-tertiary {
    margin-top: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 0.9rem;
}

.hero-tertiary a {
    color: var(--text-light-color);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.hero-tertiary a:hover {
    color: var(--primary-color);
    border-bottom-color: rgba(201, 162, 39, 0.5);
}

.hero-tertiary-sep {
    color: var(--text-muted);
    user-select: none;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 180px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.button:hover {
    transform: translateY(-3px);
    background-color: var(--primary-color);
    color: #000;
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.3);
}

.button-primary {
    background-color: var(--primary-color);
    color: #000;
    border: 2px solid var(--primary-color);
}

.button-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.button-lg {
    padding: 14px 28px;
    font-size: 1.05rem;
    min-width: 160px;
}

.button-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    text-transform: none;
    letter-spacing: 0.02em;
    font-weight: 600;
    min-width: 140px;
}

.button-outline:hover {
    background: rgba(201, 162, 39, 0.1);
    color: var(--accent-color);
    border-color: var(--accent-color);
    box-shadow: none;
}

.glow-effect {
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
    }

    50% {
        box-shadow: 0 0 25px rgba(212, 175, 55, 0.7);
    }

    100% {
        box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
    }
}

/* ================================================= */
/* ============== About & Stats ==================== */
/* ================================================= */
#about {
    background-color: var(--surface-color);
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.about-intro {
    display: grid;
    gap: clamp(1.25rem, 4vw, 2.5rem);
    align-items: start;
}

@media (min-width: 720px) {
    html[dir="rtl"] .about-intro {
        grid-template-columns: 1fr minmax(220px, min(34vw, 320px));
    }

    html[dir="ltr"] .about-intro {
        grid-template-columns: minmax(220px, min(34vw, 320px)) 1fr;
    }

    html[dir="ltr"] .about-intro .about-text {
        order: 2;
    }

    html[dir="ltr"] .about-intro .about-photo {
        order: 1;
    }
}

@media (max-width: 719px) {
    .about-intro {
        grid-template-columns: 1fr;
    }

    .about-photo {
        max-width: 280px;
        margin-inline: auto;
        width: 100%;
    }
}

.about-text {
    max-width: 38rem;
    margin: 0;
    min-width: 0;
}

.about-text p {
    color: var(--text-light-color);
    font-size: 1.0625rem;
    line-height: 1.75;
}

.about-photo {
    margin: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(201, 162, 39, 0.25);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    aspect-ratio: 3 / 4;
    max-height: min(72vh, 520px);
    align-self: start;
}

.about-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 22%;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    margin-top: 0;
}

@media (min-width: 900px) {
    .stats-grid {
        margin-top: 0;
    }
}

.stat-card {
    background-color: var(--surface-elevated);
    border: 1px solid var(--border-subtle);
    color: var(--text-color);
    padding: 1.5rem 1.25rem;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: transform 0.3s var(--ease-out), border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
}

.stat-card:hover {
    transform: translateY(-7px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.stat-number {
    font-size: clamp(2.5rem, 5vw, 3.25rem);
    font-weight: 700;
    display: block;
    margin-bottom: 6px;
    color: var(--primary-color);
    font-family: var(--font-display);
    line-height: 1;
}

.stat-card p {
    font-size: 0.8125rem;
    color: var(--text-light-color);
    line-height: 1.45;
    margin: 0;
    opacity: 1;
}

/* ================================================= */
/* ============== Tech Stack ======================= */
/* ================================================= */
#tech-stack {
    background-color: var(--background-color);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.tech-category-card {
    background-color: var(--surface-elevated);
    padding: 1.75rem 1.5rem;
    border-radius: var(--radius-lg);
    border: var(--card-border);
    text-align: start;
    transition: border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.tech-category-card:hover {
    transform: translateY(-4px);
    border-color: rgba(201, 162, 39, 0.2);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
}

.tech-category-card h3 {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 12px;
    font-family: var(--font-display);
    font-weight: 600;
}

.tech-category-card h3 i {
    color: var(--primary-color);
}

.tech-icons span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(255, 255, 255, 0.03);
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    margin: 4px 4px 4px 0;
    font-size: 0.875rem;
    color: var(--text-light-color);
    border: 1px solid var(--border-subtle);
    transition: border-color 0.2s ease, color 0.2s ease;
}

.tech-icons span:hover {
    border-color: var(--primary-color);
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--primary-color);
}

/* ================================================= */
/* ============== Services ========================= */
/* ================================================= */
#services {
    background-color: var(--surface-color);
}

.section-subtitle {
    text-align: start;
    margin-top: 0;
    margin-bottom: 2.25rem;
    max-width: 42rem;
    color: var(--text-light-color);
    font-size: 1.0625rem;
    line-height: 1.65;
    font-weight: 400;
}

.section-subtitle-tight {
    margin-bottom: 1.75rem;
}

.section-footer-cta {
    text-align: center;
    margin-top: 1.75rem;
}

.services-intro-text {
    text-align: start;
    max-width: 46rem;
    margin: 0 0 1rem;
    font-size: 1.0625rem;
    line-height: 1.72;
    color: var(--text-light-color);
}

.services-intro-text:last-of-type {
    margin-bottom: 2rem;
}

.contact-secondary {
    text-align: start;
    color: var(--text-light-color);
    font-size: 0.98rem;
    line-height: 1.65;
    margin: -0.5rem 0 1.75rem !important;
    max-width: 100%;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background-color: var(--surface-elevated);
    padding: 2rem 1.5rem;
    border-radius: var(--radius-lg);
    border: var(--card-border);
    text-align: start;
    transition: border-color 0.3s var(--ease-out), transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(201, 162, 39, 0.22);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.service-card h3 {
    color: var(--text-color);
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    font-family: var(--font-display);
    font-weight: 600;
}

.service-card p {
    font-size: 0.98rem;
    color: var(--text-light-color);
    line-height: 1.65;
    margin-bottom: 0;
}

.service-card .icon-box {
    width: 52px;
    height: 52px;
    background-color: rgba(201, 162, 39, 0.08);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 1.25rem 0;
    color: var(--primary-color);
    font-size: 1.35rem;
    transition: transform 0.35s var(--ease-out), background-color 0.25s ease, border-color 0.25s ease;
}

.service-card:hover .icon-box {
    background-color: rgba(201, 162, 39, 0.12);
    color: var(--primary-color);
    border-color: rgba(201, 162, 39, 0.35);
    transform: scale(1.05);
}

/* ================================================= */
/* ============== Projects ========================= */
/* ================================================= */
#projects {
    background-color: var(--background-color);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.projects-grid-compact {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 2rem;
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
}

.project-card-compact {
    background-color: var(--surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1rem 1.25rem;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-card-compact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.project-card-compact:hover {
    transform: translateY(-8px);
    border-color: rgba(201, 162, 39, 0.5);
    box-shadow: 0 16px 40px rgba(201, 162, 39, 0.12), 0 4px 12px rgba(0,0,0,0.4);
    background: #141414;
}

.project-icon-compact {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    background: rgba(212, 175, 55, 0.06);
    border: 1px solid rgba(201, 162, 39, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    overflow: hidden;
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.project-icon-compact img {
    width: 100%;
    height: 100%;
    max-width: 72px;
    max-height: 72px;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
}

.project-card-compact:hover .project-icon-compact {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(201, 162, 39, 0.2);
    transform: scale(1.05);
}

.project-card-compact:hover .project-icon-compact img {
    transform: scale(1.08);
}

.project-card-compact h3 {
    font-size: 1rem;
    color: var(--text-color);
    margin: 0 0 8px 0;
    font-family: var(--font-secondary);
    transition: color 0.3s ease;
    line-height: 1.3;
}

.project-card-compact:hover h3 {
    color: var(--primary-color);
}

.project-tag {
    font-size: 0.72rem;
    color: var(--text-light-color);
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 999px;
    padding: 3px 10px;
    letter-spacing: 0.3px;
    transition: color 0.3s ease, border-color 0.3s ease;
    white-space: nowrap;
}

.project-card-compact:hover .project-tag {
    color: var(--primary-color);
    border-color: rgba(201, 162, 39, 0.3);
}

.button-small-outline {
    padding: 8px 22px;
    font-size: 0.85rem;
    min-width: auto;
    border-width: 1px;
    letter-spacing: 0.5px;
    opacity: 0.75;
    transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.button-small-outline:hover {
    opacity: 1;
}

.project-card {
    background-color: var(--surface-color);
    border: 1px solid #333;
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px -10px rgba(212, 175, 55, 0.15);
}

.project-image {
    width: 100%;
    height: 220px;
    background-color: #000;
    border-bottom: 1px solid #333;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    opacity: 0.9;
}

.project-card:hover .project-image img {
    transform: scale(1.08);
    opacity: 1;
}

.project-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: center;
}

.project-content h3 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.project-summary {
    color: #ccc;
    font-size: 1rem;
    margin-bottom: 25px;
    line-height: 1.6;
    flex-grow: 1;
}

.project-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
}

.project-tags span {
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.button-project-detail {
    background-color: transparent;
    border: 1px solid var(--text-light-color);
    color: var(--text-light-color);
    width: 100%;
    margin-top: auto;
}

.button-project-detail:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #000;
}

/* תגית SaaS מעל הכותרת בכרטיס */
.saas-badge {
    background-color: rgba(212, 175, 55, 0.15);
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 10px;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

/* ================================================= */
/* ============== YouTube ========================== */
/* ================================================= */
#youtube {
    background-color: var(--surface-color);
}

.youtube-description {
    text-align: start;
    max-width: 40rem;
    margin: 0 0 1.75rem;
    color: var(--text-light-color);
    font-size: 1.0625rem;
    line-height: 1.65;
}

.main-youtube-video {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    margin-bottom: 2rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.45);
    border: 1px solid var(--border-subtle);
}

.main-youtube-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.youtube-thumbnails-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 1.5rem;
}

@media (max-width: 900px) {
    .youtube-thumbnails-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .youtube-thumbnails-grid {
        grid-template-columns: 1fr;
    }
}

.youtube-thumbnail {
    background-color: var(--background-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
}

.youtube-thumbnail:hover {
    transform: scale(1.03);
    border-color: var(--primary-color);
}

.youtube-thumbnail img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.youtube-thumbnail:hover img {
    opacity: 1;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.8);
    pointer-events: none;
}

.youtube-thumbnail:hover .play-icon {
    color: var(--primary-color);
}

.youtube-button {
    background-color: #cc0000;
    border-color: #cc0000;
    color: white;
}

.youtube-button:hover {
    background-color: white;
    color: #cc0000;
}

/* ================================================= */
/* ============== Expertise ======================== */
/* ================================================= */
#expertise {
    background-color: var(--background-color);
}

.expertise-card {
    background-color: var(--surface-elevated);
    padding: 1.75rem 1.5rem;
    border-radius: var(--radius-lg);
    border: var(--card-border);
    border-inline-start: 3px solid var(--primary-color);
    transition: transform 0.3s var(--ease-out), border-color 0.3s ease;
}

.expertise-card:hover {
    transform: translateY(-5px);
    background-color: var(--surface-hover);
}

.expertise-card h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.25rem;
    color: var(--text-color);
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 12px;
}

.expertise-card ul li {
    margin-bottom: 15px;
    font-size: 1.05rem;
    color: var(--text-color);
    position: relative;
    padding-right: 30px;
}

.expertise-card ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 0;
    color: var(--primary-color);
    top: 3px;
}

html[dir="ltr"] .expertise-card ul li {
    padding-right: 0;
    padding-left: 30px;
}

html[dir="ltr"] .expertise-card ul li::before {
    right: auto;
    left: 0;
}

.expertise-card a {
    color: var(--text-light-color);
    font-size: 0.9em;
    text-decoration: underline;
}

/* ================================================= */
/* ============== Contact ========================== */
/* ================================================= */
#contact {
    background: linear-gradient(180deg, var(--surface-elevated) 0%, var(--background-color) 100%);
    border-top: 1px solid rgba(201, 162, 39, 0.2);
    padding: var(--section-y) 0;
}

.contact-lead {
    text-align: start;
    color: var(--text-light-color);
    font-size: 1.05rem;
    line-height: 1.65;
    margin-bottom: 2rem !important;
    max-width: 100%;
}

.contact-form .form-group label {
    margin-bottom: 0.35rem;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.whatsapp-button {
    background-color: #25D366;
    border-color: #25D366;
    color: white;
}

.whatsapp-button:hover {
    background-color: #128C7E;
    border-color: #128C7E;
}

.email-button {
    background-color: transparent;
    border-color: var(--text-color);
    color: var(--text-color);
}

.email-button:hover {
    border-color: var(--primary-color);
}

/* ================================================= */
/* =================== Footer ====================== */
/* ================================================= */
footer.site-footer {
    background-color: var(--background-color);
    color: var(--text-muted);
    text-align: center;
    padding: 0;
    font-size: 0.8125rem;
    letter-spacing: 0.02em;
    border-top: 1px solid var(--border-subtle);
}

.site-footer .footer-closing {
    padding: clamp(2.25rem, 5vw, 3rem) 0 clamp(1.75rem, 4vw, 2.25rem);
    background: linear-gradient(180deg, var(--surface-color) 0%, var(--background-color) 100%);
    border-bottom: 1px solid var(--border-subtle);
}

.site-footer .footer-closing .container {
    max-width: 44rem;
}

.site-footer .footer-slogan {
    margin-left: auto;
    margin-right: auto;
}

.site-footer .footer-socials {
    margin-top: 1.35rem;
    margin-bottom: 0;
}

.site-footer .footer-meta {
    margin: 0;
    padding: 1.35rem 1rem 2rem;
    max-width: 36rem;
    margin-inline: auto;
}

.site-footer .footer-copyright {
    margin: 0;
    padding: 0;
    color: var(--text-muted);
    font-size: 0.8125rem;
    letter-spacing: 0.02em;
}

/* ================================================= */
/* ============== Modal ============================ */
/* ================================================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.modal-overlay.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: #1a1a1a;
    color: #f0f0f0;
    padding: 40px;
    border-radius: 12px;
    width: 100%;
    max-width: 800px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid var(--primary-color);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2.5rem;
    color: #666;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
    background: none;
    border: none;
    padding: 0;
}

.close-modal:hover {
    color: var(--primary-color);
}

.close-modal:focus-visible {
    outline: 2px solid var(--primary-color);
    border-radius: 4px;
}

#modal-body {
    text-align: right;
}

html[dir="ltr"] #modal-body {
    text-align: left;
}

html[dir="ltr"] .close-modal {
    right: auto;
    left: 20px;
}

#modal-body h2 {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 20px;
    border-bottom: 1px solid #333;
    padding-bottom: 15px;
}

#modal-body h3 {
    color: #fff;
    font-size: 1.4rem;
    margin-top: 30px;
    margin-bottom: 10px;
}

#modal-body p {
    color: #d0d0d0;
    font-size: 1.1rem;
    line-height: 1.8;
}

#modal-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    border: 1px solid #333;
    display: block;
}

#modal-body .specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}

#modal-body .specs span {
    font-size: 0.8rem;
    padding: 6px 12px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    color: var(--text-light-color);
}

/* ================================================= */
/* ============= Mobile Menu ======================= */
/* ================================================= */

.mobile-menu-button {
    display: none;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.8rem;
    cursor: pointer;
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 105;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(10px);
    z-index: 9999;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow-y: auto;
    padding-top: 80px;
    padding-bottom: 40px;

    transition: right 0.4s cubic-bezier(0.77, 0.2, 0.05, 1.0);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

html[dir="ltr"] .mobile-menu-overlay {
    right: auto;
    left: -100%;
}

html[dir="ltr"] .mobile-menu-overlay.active {
    left: 0;
}

.mobile-menu-overlay.active {
    right: 0;
}

.close-menu-button {
    position: absolute;
    top: 25px;
    left: 25px;
    background: none;
    border: none;
    font-size: 2.5rem;
    color: var(--text-light-color);
    cursor: pointer;
    padding: 10px;
}

.close-menu-button:hover {
    color: var(--primary-color);
}

.mobile-menu-overlay ul {
    list-style: none;
    width: 100%;
    text-align: center;
    padding: 0;
    margin: 0;
}

.mobile-menu-overlay ul li {
    margin: 15px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.mobile-menu-overlay.active ul li {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-overlay.active ul li:nth-child(1) {
    transition-delay: 0.1s;
}

.mobile-menu-overlay.active ul li:nth-child(2) {
    transition-delay: 0.2s;
}

.mobile-menu-overlay.active ul li:nth-child(3) {
    transition-delay: 0.3s;
}

.mobile-menu-overlay.active ul li:nth-child(4) {
    transition-delay: 0.4s;
}

.mobile-menu-overlay.active ul li:nth-child(5) {
    transition-delay: 0.5s;
}

.mobile-menu-overlay.active ul li:nth-child(6) {
    transition-delay: 0.6s;
}

.mobile-menu-overlay.active ul li:nth-child(7) {
    transition-delay: 0.7s;
}

.mobile-menu-overlay ul li a {
    display: inline-block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
    padding: 10px 20px;
    transition: all 0.3s;
    font-family: var(--font-secondary);
}

.mobile-menu-overlay ul li a:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

#mobile-lang-toggle {
    margin-top: 40px;
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 30px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 50px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease 0.9s;
}

.mobile-menu-overlay.active #mobile-lang-toggle {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 992px) {
    #main-header nav .desktop-nav {
        display: none;
    }

    #main-header nav .header-controls #lang-toggle {
        display: none;
    }

    .mobile-menu-button {
        display: block;
    }

    #main-header nav {
        justify-content: center;
        height: 60px;
        position: relative;
    }

    /* בהדר: לוגו מלא (אייקון + AZToDev) מוסתר עד גלילה מעבר לכותרת בדף — נשלט ב־JS (מחלקה header-show-brand-text) */
    #main-header:not(.header-show-brand-text) a.logo.logo-brand {
        display: none;
    }

    .logo {
        font-size: 1.5rem;
    }

    .logo-brand .logo-text {
        font-size: 0.95rem;
        letter-spacing: 0.1em;
    }

    .logo-mark {
        width: 36px;
        height: 36px;
    }

    .logo-mark img {
        width: 24px;
        height: 24px;
    }

    .container {
        padding-left: 15px;
        padding-right: 15px;
        width: 100%;
    }

    /* Hero במובייל: בלי יישור אנכי למרכז המסך — הכותרת קרובה להדר */
    #hero.hero-premium,
    #hero {
        align-items: flex-start;
        min-height: 0;
        padding-bottom: clamp(2rem, 8vw, 3.5rem);
    }

    .hero-premium .hero-inner {
        padding-top: clamp(0.15rem, 1.2vw, 0.5rem);
        width: 100%;
    }
}

html[dir="ltr"] .mobile-menu-overlay {
    right: auto;
    left: -100%;
}

html[dir="ltr"] .mobile-menu-overlay.active {
    left: 0;
}

html[dir="ltr"] .close-menu-button {
    left: auto;
    right: 25px;
}

html[dir="ltr"] .mobile-menu-button {
    right: auto;
    left: 20px;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* ================================================= */
/* ============= Accessibility ==================== */
/* ================================================= */

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

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
    border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    [data-aos] {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ================================================= */
/* ============= Scroll Progress Bar ============== */
/* ================================================= */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    z-index: 9999;
    transition: width 0.1s linear;
}

/* ================================================= */
/* ============= Availability Badge =============== */
/* ================================================= */
.availability-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 999px;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.availability-dot {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
    flex-shrink: 0;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.4); }
}

/* ================================================= */
/* ============= Floating vCard / business card === */
/* ================================================= */
.vcard-fab {
    position: fixed;
    bottom: 28px;
    left: 28px;
    z-index: 10050;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    border: 1px solid rgba(201, 162, 39, 0.45);
    background: linear-gradient(145deg, rgba(201, 162, 39, 0.22), rgba(12, 12, 12, 0.92));
    color: var(--primary-color);
    font-size: 1.35rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
    transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease, background 0.25s ease, color 0.2s ease;
}

.vcard-fab:hover {
    transform: translateY(-4px) scale(1.03);
    color: #fff;
    background: linear-gradient(145deg, rgba(201, 162, 39, 0.45), rgba(20, 20, 20, 0.95));
    box-shadow: 0 14px 40px rgba(201, 162, 39, 0.25);
}

.vcard-fab:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 3px;
}

html[dir="ltr"] .vcard-fab {
    left: 28px;
    right: auto;
}

.scroll-back-fab {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 10050;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(22, 22, 22, 0.92);
    color: var(--accent-color);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
    opacity: 0;
    transform: translateY(14px) scale(0.92);
    pointer-events: none;
    transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out), border-color 0.2s ease, color 0.2s ease;
}

.scroll-back-fab.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.scroll-back-fab:hover {
    border-color: rgba(201, 162, 39, 0.45);
    color: #fff;
}

.scroll-back-fab:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 3px;
}

.scroll-back-fab-arrow {
    display: inline-flex;
    line-height: 1;
}

.scroll-back-fab.visible .scroll-back-fab-arrow {
    animation: scroll-back-arrow-bob 1s ease-in-out infinite;
}

@keyframes scroll-back-arrow-bob {
    0%, 100% {
        transform: translateY(4px);
    }
    50% {
        transform: translateY(-10px);
    }
}

html[dir="ltr"] .scroll-back-fab {
    right: 28px;
    left: auto;
}

.vcard-modal.modal-overlay {
    z-index: 10060;
}

.vcard-sheet {
    position: relative;
    width: 100%;
    max-width: 420px;
    border-radius: 20px;
    padding: 2rem 1.75rem 1.75rem;
    background: linear-gradient(165deg, #141414 0%, #0a0a0a 100%);
    border: 1px solid rgba(201, 162, 39, 0.35);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.vcard-sheet::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 20px 20px 0 0;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0.85;
}

.vcard-sheet-close {
    position: absolute;
    top: 12px;
    left: 16px;
    font-size: 2rem;
    line-height: 1;
    color: #666;
    cursor: pointer;
    z-index: 2;
    background: none;
    border: none;
    padding: 4px 8px;
}

.vcard-sheet-close:hover {
    color: var(--primary-color);
}

html[dir="ltr"] .vcard-sheet-close {
    left: auto;
    right: 16px;
}

.vcard-sheet-inner {
    text-align: center;
    padding-top: 0.5rem;
}

.vcard-brand {
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--primary-color);
    margin: 0 0 0.75rem;
}

.vcard-card-name {
    font-family: var(--font-display);
    font-size: clamp(1.65rem, 4vw, 2.1rem);
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: var(--text-color);
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
}

.vcard-card-degree {
    margin: 0 0 0.35rem;
    font-size: 0.95rem;
    color: var(--text-light-color);
    line-height: 1.5;
}

.vcard-card-role {
    margin: 0 0 1.1rem;
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.55;
}

.vcard-card-highlights {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
    text-align: start;
}

.vcard-card-highlights li {
    position: relative;
    padding-inline-start: 1.35rem;
    margin-bottom: 0.55rem;
    font-size: 0.9rem;
    color: var(--text-light-color);
    line-height: 1.45;
}

.vcard-card-highlights li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    inset-inline-start: 0;
    top: 2px;
    color: var(--primary-color);
    font-size: 0.75rem;
}

.vcard-contact-row {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 1.25rem;
}

.vcard-link {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-color);
    text-decoration: none;
    word-break: break-all;
}

.vcard-link:hover {
    text-decoration: underline;
}

.vcard-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.vcard-actions .button {
    min-width: auto;
    text-transform: none;
    letter-spacing: 0.02em;
    padding: 12px 20px;
}

.vcard-share-toast {
    margin: 1rem 0 0;
    font-size: 0.88rem;
    color: #4ade80;
    font-weight: 600;
}

@media (max-width: 480px) {
    .vcard-fab {
        bottom: 20px;
        left: 20px;
        width: 52px;
        height: 52px;
        font-size: 1.25rem;
    }

    .scroll-back-fab {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }
}

/* ================================================= */
/* ============= Contact Form ===================== */
/* ================================================= */
.contact-form {
    max-width: 100%;
    margin: 0 0 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-group label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.form-group input,
.form-group textarea {
    background: var(--surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-color);
    font-family: var(--font-primary);
    font-size: 1rem;
    padding: 13px 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    resize: vertical;
    width: 100%;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(201, 162, 39, 0.5);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.09);
}

.form-group input.invalid,
.form-group textarea.invalid {
    border-color: #ef4444;
}

.form-error {
    font-size: 0.8rem;
    color: #ef4444;
    min-height: 1em;
}

.form-success {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    text-align: center;
    color: #4ade80;
    font-weight: 600;
    padding: 12px;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.form-success:not([hidden]) {
    display: flex;
}

.form-error-general {
    text-align: center;
    color: #ef4444;
    font-weight: 600;
    padding: 12px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

#form-submit-btn {
    align-self: flex-start;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: none;
    letter-spacing: 0.02em;
}

#form-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(0,0,0,0.3);
    border-top-color: #000;
    border-radius: 50%;
    display: none;
}

.form-spinner:not([hidden]) {
    display: inline-block;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.form-success-dismiss {
    background: none;
    border: none;
    color: #4ade80;
    font-size: 1rem;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    flex-shrink: 0;
}

/* ================================================= */
/* ===== Hero, resume (clean portfolio layout) ====== */
/* ================================================= */
#main-content {
    display: block;
}

.hero-premium#hero::before {
    opacity: 0.06;
}

.hero-premium {
    position: relative;
    isolation: isolate;
    background:
        radial-gradient(ellipse 90% 60% at 50% -30%, rgba(201, 162, 39, 0.09), transparent 50%),
        linear-gradient(180deg, #0b0b0b 0%, #050505 100%) !important;
}

.hero-orbs {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image: radial-gradient(circle at 80% 20%, rgba(201, 162, 39, 0.06) 0%, transparent 40%);
    opacity: 1;
}

.hero-premium .container {
    position: relative;
    z-index: 1;
}

.hero-inner {
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}

.hero-inner-wide {
    max-width: 52rem;
}

.hero-brand-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(14px, 3.5vw, 24px);
    flex-wrap: wrap;
    margin: 0 auto 0.65rem;
    max-width: 100%;
}

.hero-brand-logo {
    flex-shrink: 0;
    width: clamp(52px, 14vw, 72px);
    height: clamp(52px, 14vw, 72px);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(201, 162, 39, 0.18), rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(201, 162, 39, 0.38);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
}

.hero-brand-logo img {
    width: 70%;
    height: 70%;
    max-width: 52px;
    max-height: 52px;
    border-radius: 14px;
    object-fit: cover;
}

.hero-brand-heading {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5.5vw, 2.85rem);
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-align: center;
    margin: 0;
    line-height: 1.15;
    background: linear-gradient(120deg, #e8d48a 0%, #c9a227 45%, #e4c04a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

#hero .hero-brand-row h1.hero-brand-heading {
    margin-bottom: 0;
}

.hero-brand-tagline {
    margin: 0.35rem auto 1.65rem;
    max-width: 42rem;
    text-align: center;
    font-size: clamp(1.14rem, 3.4vw, 1.58rem);
    line-height: 1.55;
    font-weight: 700;
    font-family: var(--font-secondary);
    letter-spacing: 0.03em;
    min-height: 2.85em;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-color);
}

.hero-brand-tagline .hero-tagline-inner {
    display: inline;
}

.hero-brand-tagline .hero-tagline-type {
    background: linear-gradient(105deg, #f4ecd4 0%, #e8d48a 14%, #d4b43a 40%, #c9a227 52%, #e4c04a 82%, #f0e8c8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
    .hero-brand-tagline .hero-tagline-type {
        color: var(--text-color);
        background: none;
    }
}

.hero-tagline-cursor {
    display: inline-block;
    width: 2px;
    height: 1.08em;
    margin-inline-start: 3px;
    vertical-align: -0.14em;
    background: var(--primary-color);
    box-shadow: 0 0 14px rgba(201, 162, 39, 0.55);
    animation: hero-tagline-cursor-blink 0.95s steps(1, end) infinite;
}

.hero-tagline-cursor.hero-tagline-cursor--off {
    opacity: 0;
    animation: none;
}

@keyframes hero-tagline-cursor-blink {
    0%, 45% {
        opacity: 1;
    }

    50%, 100% {
        opacity: 0;
    }
}

.hero-slogan {
    margin: 0 auto;
    max-width: 38rem;
    padding: 1rem 1.25rem;
    border-inline-start: 3px solid rgba(201, 162, 39, 0.55);
    background: rgba(201, 162, 39, 0.05);
    border-radius: var(--radius-md);
    font-size: clamp(1.02rem, 2.2vw, 1.2rem);
    font-style: italic;
    font-weight: 500;
    color: var(--text-light-color);
    line-height: 1.65;
    text-align: center;
}

html[dir="ltr"] .hero-slogan {
    border-inline-start: none;
    border-inline-end: 3px solid rgba(201, 162, 39, 0.55);
}

.hero-quote-cta {
    margin: 0 auto 0.25rem;
    max-width: 44rem;
    padding: 1.35rem 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(201, 162, 39, 0.22);
    background: linear-gradient(180deg, rgba(201, 162, 39, 0.08), rgba(12, 12, 12, 0.65));
    text-align: center;
}

.hero-quote-lead {
    margin: 0 0 1.1rem;
    font-size: 1.02rem;
    line-height: 1.7;
    color: var(--text-color);
    opacity: 0.92;
}

.hero-quote-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 1.5rem auto 0;
    max-width: 44rem;
}

.hero-pills a {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-light-color);
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.03);
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.hero-pills a:hover {
    color: var(--primary-color);
    border-color: rgba(201, 162, 39, 0.45);
    background: rgba(201, 162, 39, 0.06);
}

.hero-actions-compact {
    margin-top: 1.25rem !important;
}

.button-sm {
    padding: 10px 20px;
    font-size: 0.92rem;
    min-width: auto;
    letter-spacing: 0.04em;
    text-transform: none;
}

#trial-promise h2 {
    font-size: clamp(1.55rem, 3vw, 2rem);
    margin-bottom: 0.75rem;
    color: var(--text-color);
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
    text-align: center;
    width: 100%;
    border-inline-start: none;
    padding-inline-start: 0;
}

.section-testimonials {
    background-color: var(--surface-color);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 0.5rem;
}

.testimonial-card {
    margin: 0;
    padding: 1.5rem 1.35rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    background: var(--surface-elevated);
    transition: border-color 0.3s ease, transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    border-color: rgba(201, 162, 39, 0.3);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
}

.testimonial-card blockquote {
    margin: 0 0 1rem;
    font-size: 1.02rem;
    line-height: 1.65;
    color: var(--text-color);
}

.testimonial-card figcaption {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 600;
}

.section-trial {
    background: linear-gradient(180deg, var(--background-color) 0%, #0a0a0a 100%);
}

.trial-inner {
    max-width: 44rem;
    margin: 0 auto;
    text-align: center;
}

.trial-badge {
    width: 52px;
    height: 52px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(201, 162, 39, 0.12);
    border: 1px solid rgba(201, 162, 39, 0.35);
    color: var(--primary-color);
    font-size: 1.35rem;
}

.trial-lead {
    margin: 0 auto 1.25rem;
    color: var(--text-light-color);
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 38rem;
}

.trial-points {
    list-style: none;
    padding: 0;
    margin: 0 auto 1.75rem;
    text-align: start;
    max-width: 32rem;
}

.trial-points li {
    position: relative;
    padding-inline-start: 1.6rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
    font-size: 0.98rem;
    line-height: 1.55;
}

.trial-points li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    inset-inline-start: 0;
    top: 2px;
    color: var(--primary-color);
    font-size: 0.85rem;
}

.trial-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.button-ghost {
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    text-transform: none;
    letter-spacing: 0.02em;
    font-weight: 600;
    min-width: auto;
    padding: 12px 22px;
}

.button-ghost:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(201, 162, 39, 0.06);
    box-shadow: none;
    transform: translateY(-2px);
}

.hero-premium .button-primary {
    text-transform: none;
    letter-spacing: 0.03em;
}

.section-resume {
    background: linear-gradient(180deg, var(--surface-color) 0%, var(--background-color) 100%);
}

.resume-lead {
    margin-top: 0 !important;
}

.resume-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-start;
    margin: 1.75rem 0 2.5rem;
}

.resume-bento {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 48px;
}

.resume-panel {
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 26px 24px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.resume-panel:hover {
    border-color: rgba(201, 162, 39, 0.35);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.resume-panel h3 {
    font-size: 1.15rem;
    margin-bottom: 16px;
    color: var(--primary-color);
    text-align: inherit;
}

.resume-list {
    list-style: none;
    padding: 0;
    margin: 0;
    color: var(--text-color);
    line-height: 1.65;
}

.resume-stack-hint {
    font-size: 0.88rem;
    color: var(--text-light-color);
    line-height: 1.55;
    margin: -8px 0 14px;
}

.tech-chips {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-chip {
    display: inline-block;
    padding: 7px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-color);
    font-family: ui-monospace, 'Cascadia Code', 'Segoe UI Mono', monospace;
    letter-spacing: -0.02em;
}

.resume-panel.resume-summary p {
    margin-bottom: 0;
    color: var(--text-light-color);
    font-size: 1rem;
    line-height: 1.75;
}

.resume-timeline-title {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2.5vw, 1.4rem);
    color: var(--text-color);
    text-align: start;
    margin: 2.5rem 0 1.5rem;
    width: 100%;
    padding-inline-start: 1rem;
    border-inline-start: 3px solid rgba(201, 162, 39, 0.45);
}

.experience-timeline {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 820px;
    position: relative;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary-color), rgba(201, 162, 39, 0.15));
    right: 14px;
}

html[dir="ltr"] .experience-timeline::before {
    right: auto;
    left: 14px;
}

.timeline-item {
    position: relative;
    padding-right: 48px;
    margin-bottom: 28px;
}

html[dir="ltr"] .timeline-item {
    padding-right: 0;
    padding-left: 48px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    right: 8px;
    top: 6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--background-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.15);
    z-index: 1;
}

html[dir="ltr"] .timeline-item::before {
    right: auto;
    left: 8px;
}

.timeline-date {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.06em;
    margin-bottom: 6px;
    font-family: var(--font-display);
    text-transform: uppercase;
}

.timeline-body {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 18px 20px;
    transition: border-color 0.3s ease;
}

.timeline-item:hover .timeline-body {
    border-color: rgba(201, 162, 39, 0.3);
}

.timeline-body strong {
    display: block;
    font-size: 1.05rem;
    color: var(--text-color);
    margin-bottom: 8px;
    font-family: var(--font-secondary);
}

.timeline-body p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-light-color);
    line-height: 1.65;
}

.main-youtube-video iframe {
    border: 0;
}

.youtube-footer-cta {
    text-align: center;
    margin-top: 8px;
}

/* ================================================= */
/* ============= Skip to Content ================== */
/* ================================================= */
.skip-to-content {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: #000;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 0 0 8px 8px;
    z-index: 10000;
    text-decoration: none;
    transition: top 0.2s ease;
}

.skip-to-content:focus {
    top: 0;
}

/* ================================================= */
/* ============= Mobile Breakpoints =============== */
/* ================================================= */
@media (max-width: 768px) {
    section {
        padding: 10px 0;
    }

    .expertise-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid-compact {
        grid-template-columns: repeat(2, 1fr);
        max-width: 100%;
        gap: 14px;
    }

    .project-card-compact {
        padding: 22px 14px 18px;
    }

    .project-icon-compact {
        width: 64px;
        height: 64px;
    }

    .project-icon-compact img {
        max-width: 58px;
        max-height: 58px;
    }
}

@media (max-width: 480px) {
    .resume-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .resume-actions .button {
        justify-content: center;
    }

    .hero-socials a {
        margin: 0 8px;
        font-size: 1.6rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .button {
        width: 100%;
        max-width: 280px;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }

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

    .contact-form {
        padding: 0 4px;
    }

    #form-submit-btn {
        align-self: stretch;
        justify-content: center;
    }
}