@font-face {
    font-family: "Vazirmatn";
    src: url("../fonts/Vazirmatn.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg: #f8fafc;
    --surface: #ffffff;
    --surface-soft: #f1f5f9;
    --ink: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --primary: #0f766e;
    --primary-dark: #115e59;
    --accent: #0ea5e9;
    --navy: #0f172a;
    --navy-soft: #172554;
    --radius-sm: 14px;
    --radius-md: 22px;
    --radius-lg: 32px;
    --shadow-sm: 0 12px 35px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 28px 70px rgba(15, 23, 42, 0.16);
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    direction: rtl;
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
}

body {
    direction: rtl;
    margin: 0;
    min-width: 320px;
    background: var(--bg);
    color: var(--ink);
    font-family: "Vazirmatn", Tahoma, Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.9;
    text-align: right;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.menu-open {
    overflow: hidden;
}

img {
    display: block;
    max-width: 100%;
}

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

button,
input,
textarea,
select {
    font: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
    margin-top: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--ink);
    font-family: inherit;
}

h1 {
    font-weight: 900;
    line-height: 1.35;
}

h2 {
    font-weight: 800;
    line-height: 1.5;
}

h3,
h4 {
    font-weight: 700;
    line-height: 1.6;
}

.container {
    width: min(calc(100% - 40px), var(--container));
    margin-inline: auto;
}

.section {
    position: relative;
    padding: 112px 0;
}

.site-header {
    position: fixed;
    z-index: 1000;
    top: 0;
    right: 0;
    left: 0;
    border-bottom: 1px solid transparent;
    background: rgba(248, 250, 252, 0.84);
    backdrop-filter: blur(18px);
    transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
    border-color: rgba(226, 232, 240, 0.9);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.header-inner {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.brand-mark {
    width: 47px;
    height: 47px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: linear-gradient(145deg, var(--primary), var(--accent));
    color: #fff;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: -1px;
    box-shadow: 0 10px 28px rgba(15, 118, 110, 0.24);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.45;
}

.brand-copy strong {
    font-size: 17px;
}

.brand-copy small {
    color: var(--muted);
    font-size: 11px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-nav a {
    padding: 10px 13px;
    border-radius: 12px;
    color: #334155;
    font-size: 14px;
    font-weight: 700;
    transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.main-nav a:hover {
    background: #fff;
    color: var(--primary);
}

.main-nav .nav-cta {
    margin-right: 8px;
    padding: 11px 19px;
    background: var(--navy);
    color: #fff;
}

.main-nav .nav-cta:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-1px);
}

.menu-button {
    width: 46px;
    height: 46px;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
}

.menu-button span {
    width: 20px;
    height: 2px;
    border-radius: 4px;
    background: var(--ink);
    transition: transform 180ms ease, opacity 180ms ease;
}

.menu-button.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-button.is-open span:nth-child(2) {
    opacity: 0;
}

.menu-button.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.hero {
    min-height: 780px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 178px;
    padding-bottom: 110px;
    background:
        radial-gradient(circle at 82% 18%, rgba(14, 165, 233, 0.12), transparent 31%),
        radial-gradient(circle at 16% 60%, rgba(15, 118, 110, 0.1), transparent 28%),
        linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.22;
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.055) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: linear-gradient(to bottom, black, transparent 84%);
    pointer-events: none;
}

.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.03fr) minmax(380px, 0.97fr);
    gap: 70px;
    align-items: center;
}

.hero-content {
    max-width: 680px;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
}

.eyebrow {
    margin-bottom: 22px;
    padding: 8px 13px;
    border: 1px solid rgba(15, 118, 110, 0.17);
    border-radius: 999px;
    background: rgba(240, 253, 250, 0.8);
}

.eyebrow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.13);
}

.hero h1 {
    max-width: 760px;
    margin-bottom: 25px;
    font-size: clamp(40px, 5.2vw, 68px);
    font-weight: 900;
    letter-spacing: -2.6px;
}

.hero h1::selection,
.section-heading h2::selection {
    background: rgba(14, 165, 233, 0.2);
}

.hero-text {
    max-width: 660px;
    margin-bottom: 32px;
    color: #475569;
    font-size: 18px;
    line-height: 2;
}

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

.button {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 23px;
    border: 1px solid transparent;
    border-radius: 15px;
    font-weight: 800;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 14px 30px rgba(15, 118, 110, 0.22);
}

.button-primary:hover {
    box-shadow: 0 18px 36px rgba(15, 118, 110, 0.3);
}

.button-secondary {
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.8);
    color: var(--ink);
}

.button-secondary:hover {
    border-color: #cbd5e1;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.hero-points {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 30px;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
}

.hero-points span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.hero-points span::before {
    content: "✓";
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #dcfce7;
    color: #15803d;
    font-size: 11px;
}

.hero-visual {
    position: relative;
}

.hero-image-card,
.code-window {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 30px;
    box-shadow: var(--shadow-lg);
}

.hero-image-card {
    aspect-ratio: 1 / 1;
    background: var(--navy);
}

.hero-image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.code-window {
    transform: perspective(1200px) rotateY(-3deg) rotateX(1deg);
    background: #0b1120;
    color: #dbeafe;
}

.code-window::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.09), transparent 42%, rgba(15, 118, 110, 0.12));
    pointer-events: none;
}

.code-window-head {
    height: 58px;
    display: flex;
    direction: ltr;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(15, 23, 42, 0.84);
    color: #94a3b8;
    font: 12px Consolas, monospace;
}

.window-dots {
    display: flex;
    gap: 7px;
}

.window-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fb7185;
}

.window-dots span:nth-child(2) { background: #fbbf24; }
.window-dots span:nth-child(3) { background: #34d399; }

.code-window-body {
    min-height: 370px;
    direction: ltr;
    padding: 39px 30px;
    font: 14px/2.35 Consolas, "Courier New", monospace;
}

.code-line {
    display: grid;
    grid-template-columns: 35px 1fr;
    gap: 16px;
    white-space: nowrap;
}

.code-line b {
    color: #c084fc;
    font-weight: 600;
}

.code-line em {
    color: #5eead4;
    font-style: normal;
}

.code-number {
    color: #475569;
    user-select: none;
}

.code-indent span:last-child {
    padding-left: 24px;
}

.code-status {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    border-top: 1px solid rgba(148, 163, 184, 0.13);
    background: rgba(15, 23, 42, 0.9);
    color: #94a3b8;
    font-size: 11px;
}

.code-status span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.code-status i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.12);
}

.code-status strong {
    color: #e2e8f0;
    font: 700 11px Consolas, monospace;
}

.trust-strip {
    position: relative;
    z-index: 5;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: #fff;
}

.trust-items {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    overflow-x: auto;
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    scrollbar-width: none;
}

.trust-items::-webkit-scrollbar {
    display: none;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 50px;
    margin-bottom: 48px;
}

.section-heading h2,
.about-content h2,
.contact-card h2 {
    margin: 8px 0 0;
    font-size: clamp(30px, 4vw, 46px);
    font-weight: 900;
    letter-spacing: -1.5px;
}

.section-heading > p {
    max-width: 540px;
    margin-bottom: 2px;
    color: var(--muted);
}

.services-section {
    background: #fff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.service-card {
    min-height: 328px;
    display: flex;
    flex-direction: column;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: #fff;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.service-card:hover {
    transform: translateY(-7px);
    border-color: rgba(15, 118, 110, 0.34);
    box-shadow: var(--shadow-sm);
}

.service-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin-bottom: 25px;
    border-radius: 18px;
    background: linear-gradient(145deg, #ecfeff, #f0fdfa);
    font-size: 28px;
}

.service-card h3 {
    margin-bottom: 13px;
    font-size: 20px;
}

.service-card p {
    margin-bottom: 20px;
    color: var(--muted);
    font-size: 14px;
}

.service-card a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
}

.about-section {
    overflow: hidden;
    background: linear-gradient(180deg, #f8fafc, #f1f5f9);
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(360px, 0.86fr) minmax(0, 1.14fr);
    gap: 90px;
    align-items: center;
}

.about-visual {
    position: relative;
}

.about-visual > img,
.about-placeholder {
    width: 100%;
    min-height: 590px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.about-visual > img {
    object-fit: cover;
}

.about-placeholder {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 25% 20%, rgba(14, 165, 233, 0.3), transparent 30%),
        linear-gradient(145deg, #0f172a, #134e4a);
}

.about-placeholder::before,
.about-placeholder::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 50%;
}

.about-placeholder::before {
    width: 350px;
    height: 350px;
}

.about-placeholder::after {
    width: 470px;
    height: 470px;
}

.about-initials {
    position: relative;
    z-index: 2;
    color: #fff;
    font: 900 105px/1 "Segoe UI", Arial, sans-serif;
    letter-spacing: -10px;
    opacity: 0.94;
}

.about-tech {
    position: absolute;
    z-index: 3;
    right: 25px;
    bottom: 25px;
    left: 25px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.about-tech span {
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.48);
    color: #cbd5e1;
    font-size: 10px;
    backdrop-filter: blur(10px);
}

.experience-card {
    position: absolute;
    right: -35px;
    bottom: 55px;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    padding: 20px 24px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.93);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(12px);
}

.experience-card strong {
    color: var(--primary);
    font-size: 18px;
}

.experience-card span {
    color: var(--muted);
    font-size: 11px;
}

.about-content h2 {
    margin-bottom: 25px;
}

.about-text {
    color: #475569;
    font-size: 16px;
}

.rich-text p:last-child {
    margin-bottom: 0;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 35px;
}

.about-features > div {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: rgba(255, 255, 255, 0.72);
}

.about-features strong {
    font-size: 14px;
}

.about-features span {
    color: var(--muted);
    font-size: 11px;
}

.portfolio-section {
    background: #fff;
}

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

.project-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: #fff;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-sm);
}

.project-card-featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.12fr 0.88fr;
}

.project-card-featured .project-content {
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.project-visual {
    position: relative;
    min-height: 330px;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 32px;
}

.project-label {
    position: absolute;
    z-index: 4;
    top: 20px;
    right: 20px;
    padding: 7px 11px;
    border: 1px solid rgba(255, 255, 255, 0.17);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.62);
    color: #fff;
    font-size: 10px;
    backdrop-filter: blur(10px);
}

.academy-visual {
    min-height: 430px;
    background: linear-gradient(135deg, #7c2d12, #ea580c 55%, #f59e0b);
}

.personnel-visual {
    background: linear-gradient(135deg, #0f172a, #1e3a8a);
}

.inspection-visual {
    background: linear-gradient(135deg, #134e4a, #0f766e);
}

.browser-mockup,
.dashboard-mockup {
    width: min(92%, 620px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.3);
    transform: rotate(-2deg);
}

.browser-bar {
    height: 36px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 13px;
    background: #f8fafc;
}

.browser-bar i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cbd5e1;
}

.browser-content {
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 30px;
    background:
        radial-gradient(circle at center, rgba(249, 115, 22, 0.16), transparent 50%),
        #fff7ed;
    color: #7c2d12;
}

.browser-content strong {
    font-size: 32px;
}

.browser-content span {
    color: #9a3412;
    font-size: 13px;
}

.dashboard-mockup {
    min-height: 220px;
    display: grid;
    grid-template-columns: 23% 77%;
    transform: rotate(2deg);
}

.mock-sidebar {
    background: #172554;
}

.mock-main {
    padding: 25px;
    background: #f8fafc;
}

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

.mock-cards i {
    height: 46px;
    border-radius: 7px;
    background: #dbeafe;
}

.mock-table {
    display: grid;
    gap: 9px;
}

.mock-table span {
    height: 13px;
    border-radius: 5px;
    background: #e2e8f0;
}

.workflow-mockup {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    color: #fff;
}

.workflow-mockup span {
    min-width: 100px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.12);
    text-align: center;
    font-size: 12px;
    backdrop-filter: blur(8px);
}

.workflow-mockup i {
    color: #99f6e4;
    font-style: normal;
}

.project-content {
    padding: 30px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.project-tags span {
    padding: 5px 8px;
    border-radius: 8px;
    background: var(--surface-soft);
    color: #475569;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
    text-transform: uppercase;
}

.project-content h3 {
    margin-bottom: 12px;
    font-size: 22px;
}

.project-content p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 13px;
}

.portfolio-note {
    margin-top: 25px;
    padding: 16px 20px;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    color: var(--muted);
    text-align: center;
    font-size: 12px;
}

.process-section {
    background: var(--navy);
    color: #fff;
}

.process-section .section-kicker {
    color: #5eead4;
}

.process-section .section-heading > p {
    color: #94a3b8;
}

.centered-heading {
    align-items: center;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.process-grid article {
    position: relative;
    min-height: 260px;
    padding: 30px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.035);
}

.process-grid article:hover {
    border-color: rgba(94, 234, 212, 0.35);
    background: rgba(255, 255, 255, 0.055);
}

.process-grid article > span {
    display: block;
    margin-bottom: 45px;
    color: #5eead4;
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.5;
}

.process-grid h3 {
    margin-bottom: 12px;
    font-size: 19px;
}

.process-grid p {
    margin-bottom: 0;
    color: #94a3b8;
    font-size: 12px;
}

.contact-section {
    padding: 90px 0;
    background: #fff;
}

.contact-card {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
    gap: 50px;
    align-items: center;
    padding: 58px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #0f766e, #0f172a 78%);
    color: #fff;
    box-shadow: var(--shadow-lg);
}

.contact-card::after {
    content: "";
    position: absolute;
    top: -180px;
    left: -150px;
    width: 400px;
    height: 400px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    box-shadow: 0 0 0 60px rgba(255, 255, 255, 0.025), 0 0 0 120px rgba(255, 255, 255, 0.02);
}

.contact-copy,
.contact-actions {
    position: relative;
    z-index: 2;
}

.contact-card .section-kicker {
    color: #99f6e4;
}

.contact-card h2 {
    margin-bottom: 15px;
}

.contact-card p {
    max-width: 690px;
    margin-bottom: 0;
    color: #cbd5e1;
}

.contact-actions {
    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
}

.button-light {
    background: #fff;
    color: var(--ink);
}

.contact-link {
    padding: 8px;
    color: #99f6e4;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
}

.site-footer {
    padding: 76px 0 25px;
    background: #090f1d;
    color: #cbd5e1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 70px;
}

.footer-brand strong {
    color: #fff;
}

.footer-grid > div:first-child > p {
    max-width: 430px;
    margin: 22px 0 0;
    color: #64748b;
    font-size: 12px;
}

.footer-links {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 11px;
}

.footer-links strong {
    margin-bottom: 4px;
    color: #fff;
    font-size: 13px;
}

.footer-links a {
    color: #64748b;
    font-size: 12px;
    transition: color 150ms ease;
}

.footer-links a:hover {
    color: #5eead4;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 55px;
    padding-top: 24px;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    color: #475569;
    font-size: 10px;
}

@media (max-width: 1050px) {
    .hero-grid {
        grid-template-columns: minmax(0, 1fr) minmax(340px, 0.8fr);
        gap: 42px;
    }

    .services-grid,
    .process-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about-grid {
        gap: 55px;
    }

    .about-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 880px) {
    .section {
        padding: 85px 0;
    }

    .menu-button {
        display: flex;
    }

    .main-nav {
        position: absolute;
        top: calc(100% + 8px);
        right: 20px;
        left: 20px;
        display: none;
        align-items: stretch;
        flex-direction: column;
        padding: 13px;
        border: 1px solid var(--line);
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: var(--shadow-lg);
    }

    .main-nav.is-open {
        display: flex;
    }

    .main-nav a {
        padding: 12px 14px;
    }

    .main-nav .nav-cta {
        margin: 4px 0 0;
        text-align: center;
    }

    .hero {
        min-height: auto;
        padding-top: 145px;
    }

    .hero-grid,
    .about-grid,
    .contact-card {
        grid-template-columns: 1fr;
    }

    .hero-content {
        max-width: none;
    }

    .hero-visual {
        width: min(100%, 640px);
        margin-inline: auto;
    }

    .code-window {
        transform: none;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }

    .about-visual {
        width: min(100%, 620px);
        margin-inline: auto;
    }

    .project-card-featured {
        display: block;
    }

    .project-card-featured .project-visual {
        min-height: 350px;
    }

    .contact-card {
        padding: 42px;
    }

    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 660px) {
    .container {
        width: min(calc(100% - 28px), var(--container));
    }

    .header-inner {
        min-height: 72px;
    }

    .brand-copy small {
        display: none;
    }

    .brand-mark {
        width: 42px;
        height: 42px;
        border-radius: 13px;
    }

    .section {
        padding: 70px 0;
    }

    .hero {
        padding-top: 125px;
        padding-bottom: 75px;
    }

    .hero h1 {
        font-size: 39px;
        letter-spacing: -1.5px;
    }

    .hero-text {
        font-size: 15px;
    }

    .hero-actions,
    .hero-actions .button {
        width: 100%;
    }

    .hero-points {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .code-window-body {
        min-height: 300px;
        overflow-x: auto;
        padding: 28px 20px;
        font-size: 11px;
    }

    .code-status {
        align-items: flex-start;
        flex-direction: column;
    }

    .trust-items {
        min-height: 72px;
        justify-content: flex-start;
    }

    .section-heading h2,
    .about-content h2,
    .contact-card h2 {
        font-size: 32px;
    }

    .services-grid,
    .portfolio-grid,
    .process-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: auto;
    }

    .about-visual > img,
    .about-placeholder {
        min-height: 480px;
    }

    .experience-card {
        right: 15px;
        bottom: 20px;
    }

    .project-card-featured {
        grid-column: auto;
    }

    .project-visual,
    .academy-visual {
        min-height: 285px;
    }

    .browser-content {
        min-height: 175px;
    }

    .browser-content strong {
        font-size: 23px;
    }

    .dashboard-mockup {
        min-height: 170px;
    }

    .workflow-mockup {
        flex-direction: column;
    }

    .workflow-mockup i {
        transform: rotate(90deg);
    }

    .process-grid article {
        min-height: auto;
    }

    .process-grid article > span {
        margin-bottom: 25px;
    }

    .contact-card {
        padding: 32px 24px;
        border-radius: 23px;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
/* ========================================
   Portfolio pages
======================================== */

.inner-page-hero {
    padding: 180px 0 85px;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(14, 165, 233, 0.12),
            transparent 30%
        ),
        linear-gradient(180deg, #f8fafc, #ffffff);
}

.inner-page-hero h1 {
    max-width: 900px;
    margin: 14px 0 20px;
    font-size: clamp(38px, 5vw, 64px);
    font-weight: 900;
    line-height: 1.35;
    letter-spacing: -1.5px;
}

.inner-page-hero > .container > p {
    max-width: 780px;
    color: var(--muted);
    font-size: 18px;
    line-height: 2;
}

.project-image-visual {
    padding: 0;
    background: linear-gradient(135deg, #0f172a, #0f766e);
}

.project-image-visual img {
    width: 100%;
    height: 100%;
    min-height: 330px;
    object-fit: cover;
}

.project-image-placeholder {
    width: 100%;
    min-height: 330px;
    display: grid;
    place-items: center;
    background:
        radial-gradient(
            circle at center,
            rgba(45, 212, 191, 0.24),
            transparent 45%
        ),
        #0f172a;
}

.project-image-placeholder span {
    color: rgba(255, 255, 255, 0.92);
    font-size: 70px;
    font-weight: 900;
    letter-spacing: -7px;
}

.project-content h2 {
    margin: 10px 0 13px;
    font-size: 23px;
}

.project-content h2 a {
    color: var(--ink);
    transition: color 160ms ease;
}

.project-content h2 a:hover {
    color: var(--primary);
}

.project-more-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 20px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 850;
}

.empty-portfolio {
    grid-column: 1 / -1;
    padding: 70px 30px;
    border: 1px dashed #cbd5e1;
    border-radius: var(--radius-md);
    background: #f8fafc;
    color: var(--muted);
    text-align: center;
}

.project-page-heading {
    padding-bottom: 70px;
}

.project-page-tags {
    margin-top: 28px;
}

.project-detail-section {
    padding: 70px 0 110px;
    background: #fff;
}

.project-cover {
    overflow: hidden;
    margin-bottom: 60px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #f8fafc;
    box-shadow: var(--shadow-lg);
}

.project-cover img {
    width: 100%;
    height: auto;
    display: block;
}

.project-detail-grid {
    display: grid;
    grid-template-columns: minmax(270px, 0.35fr) minmax(0, 0.65fr);
    gap: 70px;
    align-items: start;
}

.project-information {
    position: sticky;
    top: 110px;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: #f8fafc;
    font-size: 15px;
}

.project-information h2,
.project-description > h2 {
    margin-bottom: 25px;
    font-size: 25px;
    font-weight: 800;
}

.project-information-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
}

.project-information-row span {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
}

.project-information-row strong {
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.8;
    text-align: left;
}

.project-visit-button {
    width: 100%;
    margin-top: 25px;
}

.project-description {
    min-width: 0;
}

.project-description .rich-text {
    color: #475569;
    font-size: 17px;
    line-height: 2.15;
}

.project-description .rich-text p {
    margin: 0 0 22px;
}

.project-description .rich-text h2 {
    margin: 40px 0 18px;
    color: var(--ink);
    font-size: 27px;
    font-weight: 800;
}

.project-description .rich-text h3 {
    margin: 30px 0 15px;
    color: var(--ink);
    font-size: 22px;
    font-weight: 700;
}

.project-description .rich-text ul,
.project-description .rich-text ol {
    margin: 15px 0 25px;
    padding-right: 25px;
}

.project-description .rich-text li {
    margin-bottom: 9px;
    padding-right: 4px;
}

.project-description .rich-text img {
    max-width: 100%;
    height: auto;
    border-radius: 18px;
}

@media (max-width: 880px) {
    .inner-page-hero {
        padding-top: 145px;
    }

    .project-detail-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .project-information {
        position: static;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    .inner-page-hero h1 {
        font-size: 36px;
        letter-spacing: -0.8px;
    }

    .inner-page-hero > .container > p {
        font-size: 16px;
    }

    .project-description .rich-text {
        font-size: 16px;
    }
}
/* ========================================
   Brand logo
======================================== */

.brand-logo-mark {
    width: 72px;
    height: 44px;
    display: block;
    flex-shrink: 0;
    object-fit: contain;
}

.footer-logo-link {
    display: inline-flex;
    align-items: center;
}

.footer-logo {
    width: 260px;
    max-width: 100%;
    height: auto;
    display: block;
    background: transparent;
    filter: brightness(0) invert(1);
    opacity: 0.92;
}

.footer-brand-new:hover .footer-logo {
    opacity: 1;
}


@media (max-width: 660px) {

    .footer-logo {
        width: 200px;
    }
}
/* لوگوی نهایی فوتر */

.footer-logo-white {
    width: 240px;
    max-width: 100%;
    height: auto;
    display: block;
    background: transparent;
    object-fit: contain;
    opacity: 0.96;
}

.footer-brand-new:hover .footer-logo-white {
    opacity: 1;
}

@media (max-width: 660px) {
    .footer-logo-white {
        width: 190px;
    }
}
/* ========================================
   Contact section contrast fix
======================================== */

.contact-card h2 {
    color: #ffffff !important;
}

.contact-card .section-kicker {
    color: #99f6e4;
}

.contact-card p {
    color: #e2e8f0;
}

.contact-card .button-light {
    color: #0f172a;
}
/* ========================================
   Dynamic portfolio cards
======================================== */

.project-visual {
    color: inherit;
}

.project-image-visual {
    min-height: 330px;
}

.project-image-visual img {
    width: 100%;
    height: 330px;
    min-height: 0;
    object-fit: cover;
    transition: transform 300ms ease;
}

.project-card:hover .project-image-visual img {
    transform: scale(1.025);
}

.project-card-featured .project-image-visual,
.project-card-featured .project-image-placeholder {
    min-height: 430px;
}

.project-card-featured .project-image-visual img {
    height: 430px;
}

.project-content h3 a {
    color: var(--ink);
    transition: color 160ms ease;
}

.project-content h3 a:hover {
    color: var(--primary);
}

.project-more-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
}

.portfolio-actions {
    display: flex;
    justify-content: center;
    margin-top: 35px;
}

@media (max-width: 880px) {
    .project-card-featured .project-image-visual,
    .project-card-featured .project-image-placeholder {
        min-height: 350px;
    }

    .project-card-featured .project-image-visual img {
        height: 350px;
    }
}

@media (max-width: 660px) {
    .project-image-visual,
    .project-image-placeholder,
    .project-card-featured .project-image-visual,
    .project-card-featured .project-image-placeholder {
        min-height: 260px;
    }

    .project-image-visual img,
    .project-card-featured .project-image-visual img {
        height: 260px;
    }

    .portfolio-actions .button {
        width: 100%;
    }
}
/* ========================================
   Contact request form
======================================== */

.contact-page-hero {
    padding-bottom: 70px;
}

.contact-page-intro {
    width: 100%;
    max-width: 1050px;
    color: var(--muted);
    font-size: 18px;
    line-height: 2;
}

.contact-page-intro p {
    margin-bottom: 0;
}

.contact-page-intro p:last-child {
    margin-bottom: 0;
}

.contact-form-section {
    padding: 80px 0 110px;
    background: #ffffff;
}

.contact-form-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.36fr) minmax(0, 0.64fr);
    gap: 35px;
    align-items: start;
}

.contact-direct-card,
.inquiry-form-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
}

.contact-direct-card {
    position: sticky;
    top: 115px;
    overflow: hidden;
    padding: 35px;
    background:
        radial-gradient(
            circle at 15% 5%,
            rgba(45, 212, 191, 0.16),
            transparent 35%
        ),
        var(--navy);
    color: #ffffff;
    box-shadow: var(--shadow-sm);
}

.contact-direct-card h2 {
    margin: 12px 0 15px;
    color: #ffffff;
    font-size: 27px;
}

.contact-direct-card > p {
    margin-bottom: 30px;
    color: #cbd5e1;
    line-height: 2;
}

.direct-contact-item {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
    margin-top: 12px;
    padding: 17px 18px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.045);
    transition:
        border-color 160ms ease,
        background 160ms ease;
}

.direct-contact-item:hover {
    border-color: rgba(94, 234, 212, 0.42);
    background: rgba(255, 255, 255, 0.07);
}

.direct-contact-item span {
    color: #94a3b8;
    font-size: 12px;
}

.direct-contact-item strong {
    color: #ffffff;
    font-size: 15px;
    word-break: break-word;
}

.response-time {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 25px;
    color: #99f6e4;
    font-size: 13px;
}

.response-time span {
    width: 23px;
    height: 23px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(45, 212, 191, 0.12);
}

.inquiry-form-card {
    padding: 42px;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.form-card-heading {
    margin-bottom: 35px;
}

.form-card-heading h2 {
    margin: 10px 0 8px;
    font-size: 30px;
}

.form-card-heading p {
    margin-bottom: 0;
    color: var(--muted);
}

.form-fields-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 18px;
}

.form-field {
    min-width: 0;
}

.form-field-full {
    grid-column: 1 / -1;
}

.form-field label {
    display: block;
    margin-bottom: 9px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 800;
}

.required-mark {
    margin-right: 3px;
    color: #dc2626;
}

.form-field input:not([type="checkbox"]):not([type="radio"]),
.form-field select,
.form-field textarea {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 13px;
    outline: none;
    background: #ffffff;
    color: var(--ink);
    font-family: inherit;
    font-size: 15px;
    transition:
        border-color 160ms ease,
        box-shadow 160ms ease,
        background 160ms ease;
}

.form-field input:not([type="checkbox"]):not([type="radio"]),
.form-field select {
    min-height: 52px;
    padding: 10px 14px;
}

.form-field textarea {
    min-height: 175px;
    padding: 14px;
    resize: vertical;
    line-height: 1.9;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.1);
}

.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea {
    border-color: #dc2626;
    background: #fff7f7;
}

.form-help {
    display: block;
    margin-top: 7px;
    color: var(--muted);
    font-size: 11px;
}

.field-error {
    margin: 7px 0 0;
    color: #b91c1c;
    font-size: 12px;
}

.form-general-errors {
    margin-bottom: 20px;
    padding: 15px 18px;
    border: 1px solid #fecaca;
    border-radius: 13px;
    background: #fef2f2;
    color: #b91c1c;
}

.form-general-errors p {
    margin: 0;
}

.form-submit-button {
    min-width: 220px;
    margin-top: 30px;
}

.contact-page-footer {
    padding-top: 25px;
}

.contact-page-footer .footer-bottom {
    margin-top: 0;
}

.submission-success-page {
    min-height: 100vh;
    display: grid;
    align-items: center;
    padding: 150px 0 80px;
    background:
        radial-gradient(
            circle at 50% 20%,
            rgba(14, 165, 233, 0.12),
            transparent 35%
        ),
        var(--bg);
}

.submission-success-card {
    max-width: 760px;
    margin-inline: auto;
    padding: 60px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #ffffff;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.success-icon {
    width: 80px;
    height: 80px;
    display: grid;
    place-items: center;
    margin: 0 auto 25px;
    border-radius: 50%;
    background: #dcfce7;
    color: #15803d;
    font-size: 36px;
    font-weight: 900;
}

.success-message h2 {
    margin-bottom: 15px;
    font-size: 34px;
}

.success-message p {
    color: var(--muted);
    font-size: 17px;
}

.success-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

@media (max-width: 880px) {
    .contact-form-layout {
        grid-template-columns: 1fr;
    }

    .contact-direct-card {
        position: static;
    }
}

@media (max-width: 660px) {
    .contact-form-section {
        padding: 55px 0 75px;
    }

    .inquiry-form-card,
    .contact-direct-card {
        padding: 27px 22px;
    }

    .form-fields-grid {
        grid-template-columns: 1fr;
    }

    .form-field-full {
        grid-column: auto;
    }

    .form-submit-button {
        width: 100%;
    }

    .submission-success-card {
        padding: 40px 23px;
    }

    .success-actions,
    .success-actions .button {
        width: 100%;
    }
}
@media (max-width: 660px) {
    .contact-page-intro {
        max-width: 100%;
        font-size: 16px;
        line-height: 2;
    }
}
/* ========================================
   Process section readability
======================================== */

.process-section .section-heading h2 {
    color: #ffffff;
}

.process-section .section-heading > p {
    color: #cbd5e1;
    font-size: 16px;
    line-height: 2;
}

.process-grid article > span {
    color: #5eead4;
    font-size: 15px;
    font-weight: 900;
}

.process-grid h3 {
    color: #f8fafc;
    font-size: 22px;
    font-weight: 850;
}

.process-grid p {
    color: #cbd5e1;
    font-size: 14px;
    line-height: 2;
}

.process-grid article:hover h3 {
    color: #5eead4;
}


/* ========================================
   Revised About page
   Add this block at the END of website.css
======================================== */

.about-profile-page {
    background: #ffffff;
}

.about-profile-hero {
    padding: 155px 0 90px;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(
            circle at 85% 15%,
            rgba(14, 165, 233, 0.10),
            transparent 32%
        ),
        linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.about-profile-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    grid-template-areas: "content portrait";
    gap: 70px;
    align-items: center;
    direction: ltr;
}

.about-profile-content {
    grid-area: content;
    min-width: 0;
    direction: rtl;
}

.about-profile-photo {
    grid-area: portrait;
    direction: rtl;
}

.about-profile-content h1 {
    max-width: 850px;
    margin: 14px 0 22px;
    color: var(--ink);
    font-size: clamp(38px, 5vw, 64px);
    font-weight: 900;
    line-height: 1.35;
}

.about-profile-intro {
    max-width: 840px;
    color: #475569;
    font-size: 18px;
    line-height: 2.15;
}

.about-profile-intro p:last-child {
    margin-bottom: 0;
}

.about-profile-summary {
    max-width: 900px;
    margin-top: 28px;
    color: #475569;
    font-size: 16px;
    line-height: 2.1;
}

.about-profile-summary h2,
.about-profile-summary h3 {
    color: var(--ink);
}

.about-profile-photo {
    overflow: hidden;
    width: 100%;
    max-width: 340px;
    justify-self: end;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 28px;
    background: #0f172a;
    box-shadow: 0 24px 65px rgba(15, 23, 42, 0.16);
}

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

.about-profile-photo-placeholder {
    height: 460px;
    display: grid;
    place-items: center;
    color: #ffffff;
    font-size: 72px;
    font-weight: 900;
}

.about-profile-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 30px;
}

.about-profile-meta > div {
    padding: 17px 18px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: rgba(248, 250, 252, 0.86);
}

.about-profile-meta span {
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 11px;
}

.about-profile-meta strong {
    color: var(--ink);
    font-size: 14px;
    line-height: 1.8;
}

.about-profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.about-resume-section {
    padding-top: 85px;
    padding-bottom: 15px;
}

.about-resume-section-alt {
    background: #f8fafc;
}

.about-timeline {
    position: relative;
    max-width: 980px;
    margin-inline: auto;
}

.about-timeline::before {
    content: "";
    position: absolute;
    top: 12px;
    right: 8px;
    bottom: 12px;
    width: 2px;
    background: #cbd5e1;
}

.about-timeline-item {
    position: relative;
    margin-bottom: 18px;
    padding: 24px 34px 24px 24px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #ffffff;
}

.about-timeline-marker {
    position: absolute;
    top: 32px;
    right: 0;
    width: 18px;
    height: 18px;
    border: 4px solid #ccfbf1;
    border-radius: 50%;
    background: var(--primary);
    transform: translateX(8px);
}

.about-timeline-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 25px;
}

.about-timeline-heading h3 {
    margin: 0 0 6px;
    color: var(--ink);
    font-size: 22px;
}

.about-timeline-heading strong {
    color: var(--primary);
    font-size: 16px;
}

.about-timeline-heading > span {
    flex-shrink: 0;
    color: var(--muted);
    font-size: 13px;
}

.about-timeline-item > p {
    margin: 14px 0 0;
    color: #64748b;
    line-height: 2;
}

.about-resume-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.about-resume-card {
    padding: 27px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.about-resume-year {
    display: inline-flex;
    margin-bottom: 18px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
}

.about-resume-card h3 {
    margin: 0 0 8px;
    color: var(--ink);
    font-size: 22px;
}

.about-resume-card strong {
    display: block;
    margin-bottom: 10px;
    color: #0f766e;
}

.about-resume-card p {
    margin: 0;
    color: #64748b;
    line-height: 1.9;
}

.about-resume-card small {
    display: block;
    margin-top: 14px;
    color: #64748b;
    line-height: 1.9;
}

.about-training-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.about-training-card {
    padding: 24px;
    border: 1px solid #dbe4ee;
    border-radius: 18px;
    background: #ffffff;
}

.about-training-card > span {
    display: inline-flex;
    margin-bottom: 14px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
}

.about-training-card h3 {
    margin: 0 0 9px;
    color: var(--ink);
    font-size: 19px;
    line-height: 1.7;
}

.about-training-card strong {
    color: #0f766e;
    font-size: 14px;
}

.about-training-card p {
    margin: 12px 0 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.9;
}

.about-research-list {
    display: grid;
    gap: 15px;
}

.about-research-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 25px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #ffffff;
}

.about-research-item span {
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
}

.about-research-item h3 {
    margin: 7px 0;
    color: var(--ink);
    font-size: 20px;
}

.about-research-item p,
.about-research-item small {
    color: #64748b;
}

.about-research-item a {
    flex-shrink: 0;
    color: var(--primary);
    font-weight: 800;
}

.about-narrow-container {
    max-width: 920px;
}

.about-skills-section {
    background: #0f172a;
}

.about-skills-section h2 {
    color: #ffffff;
}

.about-skills-body {
    color: #cbd5e1;
    font-size: 16px;
    line-height: 2.1;
}

.about-skills-body h3 {
    color: #ffffff;
}

.about-skills-body a {
    color: #5eead4;
}

@media (max-width: 1000px) {
    .about-profile-grid {
        grid-template-columns: minmax(0, 1fr) 300px;
        gap: 42px;
    }

    .about-profile-photo {
        max-width: 300px;
    }

    .about-profile-photo img,
    .about-profile-photo-placeholder {
        height: 420px;
    }

    .about-resume-grid,
    .about-training-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .about-profile-hero {
        padding-top: 135px;
        padding-bottom: 65px;
    }

    .about-profile-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "portrait"
            "content";
        gap: 35px;
    }

    .about-profile-photo {
        width: min(280px, 100%);
        max-width: none;
        justify-self: center;
    }

    .about-profile-photo img,
    .about-profile-photo-placeholder {
        height: 380px;
    }

    .about-profile-content h1 {
        font-size: 36px;
    }

    .about-profile-intro {
        font-size: 16px;
    }

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

    .about-resume-grid,
    .about-training-grid {
        grid-template-columns: 1fr;
    }

    .about-timeline-heading,
    .about-research-item {
        align-items: flex-start;
        flex-direction: column;
    }

    .about-profile-actions,
    .about-profile-actions .button {
        width: 100%;
    }
}
/* ========================================
   About page — one viewport per section
======================================== */

.about-one-screen-page {
    --about-header-height: 110px;
}

.about-one-screen-page .about-screen-section {
    box-sizing: border-box;
    width: 100%;

    height: calc(100svh - var(--about-header-height));
    min-height: calc(100svh - var(--about-header-height));

    display: flex;
    align-items: center;

    padding-top: clamp(28px, 4.5vh, 65px);
    padding-bottom: clamp(28px, 4.5vh, 65px);

    overflow-y: auto;
    overscroll-behavior: contain;
}

.about-one-screen-page .about-screen-section > .container {
    width: 100%;
}

/* بخش معرفی */

.about-one-screen-page .about-profile-hero {
    padding-top: clamp(30px, 5vh, 70px);
    padding-bottom: clamp(30px, 5vh, 70px);
}

.about-one-screen-page .about-profile-grid {
    grid-template-columns: minmax(0, 1fr) clamp(280px, 22vw, 340px);
    gap: clamp(35px, 5vw, 75px);
}

.about-one-screen-page .about-profile-content h1 {
    margin-top: 10px;
    margin-bottom: clamp(14px, 2vh, 24px);

    font-size: clamp(38px, 5vw, 72px);
    line-height: 1.35;
}

.about-one-screen-page .about-profile-intro {
    font-size: clamp(15px, 1.15vw, 18px);
    line-height: 2;
}

.about-one-screen-page .about-profile-summary {
    margin-top: clamp(15px, 2vh, 28px);
    font-size: clamp(14px, 1vw, 16px);
    line-height: 2;
}

.about-one-screen-page .about-profile-photo {
    width: 100%;
    max-width: 340px;
}

.about-one-screen-page .about-profile-photo img,
.about-one-screen-page .about-profile-photo-placeholder {
    height: min(60svh, 520px);
}

.about-one-screen-page .about-profile-meta {
    margin-top: clamp(18px, 2.8vh, 30px);
}

.about-one-screen-page .about-profile-actions {
    margin-top: clamp(18px, 2.5vh, 28px);
}

/* تیتر بخش‌ها */

.about-one-screen-page .about-screen-section .section-heading {
    margin-bottom: clamp(22px, 4vh, 45px);
}

.about-one-screen-page .about-screen-section .section-heading h2 {
    margin-top: 8px;
    margin-bottom: 0;

    font-size: clamp(38px, 5vw, 68px);
    line-height: 1.3;
}

/* سوابق شغلی */

.about-one-screen-page .about-timeline {
    max-width: 1180px;
}

.about-one-screen-page .about-timeline-item {
    margin-bottom: clamp(9px, 1.3vh, 18px);

    padding-top: clamp(14px, 1.8vh, 24px);
    padding-bottom: clamp(14px, 1.8vh, 24px);
}

.about-one-screen-page .about-timeline-heading h3 {
    font-size: clamp(17px, 1.5vw, 22px);
}

.about-one-screen-page .about-timeline-item > p {
    margin-top: 8px;
    line-height: 1.8;
}

/* تحصیلات */

.about-one-screen-page .about-resume-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(14px, 2vw, 25px);
}

.about-one-screen-page .about-resume-card {
    padding: clamp(20px, 2.5vh, 30px);
}

.about-one-screen-page .about-resume-card h3 {
    font-size: clamp(20px, 1.7vw, 27px);
}

/* دوره‌ها */

.about-one-screen-page .about-training-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(12px, 1.6vw, 20px);
}

.about-one-screen-page .about-training-card {
    min-height: 0;
    padding: clamp(18px, 2.2vh, 26px);
}

.about-one-screen-page .about-training-card h3 {
    font-size: clamp(16px, 1.35vw, 21px);
}

/* نمایشگرهای کم‌ارتفاع */

@media (max-height: 820px) and (min-width: 761px) {
    .about-one-screen-page .about-screen-section {
        padding-top: 22px;
        padding-bottom: 22px;
    }

    .about-one-screen-page .about-screen-section .section-heading {
        margin-bottom: 20px;
    }

    .about-one-screen-page .about-screen-section .section-heading h2 {
        font-size: clamp(34px, 4.5vw, 55px);
    }

    .about-one-screen-page .about-profile-content h1 {
        font-size: clamp(34px, 4.3vw, 58px);
    }

    .about-one-screen-page .about-profile-photo img,
    .about-one-screen-page .about-profile-photo-placeholder {
        height: min(55svh, 450px);
    }

    .about-one-screen-page .about-profile-meta > div {
        padding: 12px 14px;
    }

    .about-one-screen-page .about-timeline-item {
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .about-one-screen-page .about-resume-card,
    .about-one-screen-page .about-training-card {
        padding: 18px;
    }
}

/* تبلت و موبایل */

@media (max-width: 760px) {
    .about-one-screen-page {
        --about-header-height: 88px;
    }

    .about-one-screen-page .about-screen-section {
        height: calc(100svh - var(--about-header-height));
        min-height: calc(100svh - var(--about-header-height));

        align-items: flex-start;
        padding-top: 28px;
        padding-bottom: 28px;

        overflow-y: auto;
    }

    .about-one-screen-page .about-profile-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "portrait"
            "content";
        gap: 25px;
    }

    .about-one-screen-page .about-profile-photo {
        width: min(220px, 65vw);
        justify-self: center;
    }

    .about-one-screen-page .about-profile-photo img,
    .about-one-screen-page .about-profile-photo-placeholder {
        height: min(34svh, 310px);
    }

    .about-one-screen-page .about-profile-content h1 {
        font-size: clamp(30px, 9vw, 42px);
    }

    .about-one-screen-page .about-profile-meta {
        grid-template-columns: 1fr;
    }

    .about-one-screen-page .about-resume-grid,
    .about-one-screen-page .about-training-grid {
        grid-template-columns: 1fr;
    }

    .about-one-screen-page .about-screen-section .section-heading h2 {
        font-size: clamp(32px, 10vw, 44px);
    }
}
/* ========================================
   FIX: About page full-screen sections
   بدون اسکرول داخلی و برش محتوا
======================================== */

html {
    scroll-behavior: smooth;
}

body.template-about-page {
    overflow-x: hidden;
}

/* صفحه فقط یک اسکرول اصلی داشته باشد */
.about-one-screen-page {
    --about-header-height: 110px;
}

/* خنثی‌کردن ارتفاع ثابت و اسکرول داخلی قبلی */
.about-one-screen-page .about-screen-section {
    width: 100%;
    height: auto !important;
    min-height: calc(100svh - var(--about-header-height));

    display: flex;
    align-items: center;

    padding-top: clamp(45px, 7vh, 85px);
    padding-bottom: clamp(45px, 7vh, 85px);

    overflow: visible !important;
    overscroll-behavior: auto;

    scroll-margin-top: var(--about-header-height);
}

.about-one-screen-page .about-screen-section > .container {
    width: 100%;
}

/* بخش معرفی */
.about-one-screen-page .about-profile-hero {
    height: auto !important;
    min-height: calc(100svh - var(--about-header-height));
    overflow: visible !important;
}

/* جلوگیری از بزرگ‌شدن بیش‌ازحد عکس */
.about-one-screen-page .about-profile-photo {
    width: 100%;
    max-width: 320px;
}

.about-one-screen-page .about-profile-photo img,
.about-one-screen-page .about-profile-photo-placeholder {
    width: 100%;
    height: min(58svh, 470px);
    object-fit: cover;
    object-position: center top;
}

/* فاصله مناسب تیتر بخش‌ها */
.about-one-screen-page .about-screen-section .section-heading {
    margin-bottom: clamp(28px, 5vh, 55px);
}

/* کارت‌های سوابق شغلی */
.about-one-screen-page .about-timeline {
    width: 100%;
}

/* تبلت و موبایل */
@media (max-width: 760px) {
    .about-one-screen-page {
        --about-header-height: 88px;
    }

    .about-one-screen-page .about-screen-section,
    .about-one-screen-page .about-profile-hero {
        height: auto !important;
        min-height: auto;
        display: block;
        overflow: visible !important;
        padding-top: 45px;
        padding-bottom: 55px;
    }

    .about-one-screen-page .about-profile-photo {
        width: min(250px, 75vw);
        max-width: none;
        margin-inline: auto;
    }

    .about-one-screen-page .about-profile-photo img,
    .about-one-screen-page .about-profile-photo-placeholder {
        height: 350px;
    }
}
/* ========================================
   About page — comfortable side margins
======================================== */

body.template-about-page .about-profile-page .container {
    width: min(1220px, calc(100% - 96px)) !important;
    max-width: 1220px !important;
    margin-right: auto !important;
    margin-left: auto !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
    box-sizing: border-box;
}

/* محدودتر شدن بخش سوابق شغلی */
body.template-about-page .about-timeline {
    max-width: 1050px;
    margin-right: auto;
    margin-left: auto;
}

/* جلوگیری از کشیدگی بیش‌ازحد کارت‌ها */
body.template-about-page .about-resume-grid,
body.template-about-page .about-training-grid,
body.template-about-page .about-research-list {
    width: 100%;
    max-width: 1180px;
    margin-right: auto;
    margin-left: auto;
}

@media (max-width: 1000px) {
    body.template-about-page .about-profile-page .container {
        width: calc(100% - 56px) !important;
    }
}

@media (max-width: 660px) {
    body.template-about-page .about-profile-page .container {
        width: calc(100% - 32px) !important;
    }
}
/* ========================================
   About page link on homepage
======================================== */

.about-more-action {
    display: flex;
    margin-top: 30px;
}

.about-more-action .button {
    min-width: 230px;
}

@media (max-width: 660px) {
    .about-more-action,
    .about-more-action .button {
        width: 100%;
    }
}
/* ========================================
   Homepage — one viewport per main section
======================================== */

body.template-homepage {
    --home-header-height: 110px;
}

/*
هر بخش حداقل به‌اندازه فضای قابل مشاهده مرورگر است.
ارتفاع ثابت استفاده نشده تا متن یا کارت‌ها بریده نشوند.
*/
body.template-homepage .home-screen-section {
    box-sizing: border-box;
    width: 100%;
    min-height: calc(100svh - var(--home-header-height));

    display: flex;
    align-items: center;

    padding-top: clamp(45px, 6vh, 85px);
    padding-bottom: clamp(45px, 6vh, 85px);

    overflow: visible;
    scroll-margin-top: var(--home-header-height);
}

body.template-homepage .home-screen-section > .container {
    width: min(1220px, calc(100% - 96px));
    max-width: 1220px;
    margin-right: auto;
    margin-left: auto;
}

/* ========================================
   Hero section
======================================== */

body.template-homepage .home-hero-screen {
    min-height: calc(
        100svh - var(--home-header-height) - 72px
    );
}

body.template-homepage .home-hero-screen .hero-grid {
    align-items: center;
}

body.template-homepage .home-hero-screen h1 {
    font-size: clamp(42px, 5.1vw, 76px);
    line-height: 1.32;
}

body.template-homepage .home-hero-screen .hero-text {
    font-size: clamp(15px, 1.15vw, 18px);
    line-height: 2;
}

body.template-homepage .home-hero-screen .code-window,
body.template-homepage .home-hero-screen .hero-image-card {
    max-height: min(62svh, 620px);
}

/* ========================================
   Section headings
======================================== */

body.template-homepage
.home-screen-section
.section-heading {
    margin-bottom: clamp(25px, 4vh, 50px);
}

body.template-homepage
.home-screen-section
.section-heading h2 {
    margin-top: 8px;
    margin-bottom: 0;
    font-size: clamp(36px, 4.2vw, 60px);
    line-height: 1.35;
}

body.template-homepage
.home-screen-section
.section-heading > p {
    font-size: clamp(14px, 1vw, 17px);
    line-height: 2;
}

/* ========================================
   Services section
======================================== */

body.template-homepage .services-grid {
    gap: clamp(15px, 1.8vw, 25px);
}

body.template-homepage .service-card {
    padding: clamp(22px, 3vh, 34px);
}

body.template-homepage .service-card h3 {
    font-size: clamp(18px, 1.45vw, 23px);
}

body.template-homepage .service-card p {
    font-size: clamp(13px, 0.95vw, 15px);
    line-height: 1.9;
}

/* ========================================
   About section
======================================== */

body.template-homepage .about-grid {
    align-items: center;
    gap: clamp(40px, 6vw, 85px);
}

body.template-homepage .about-visual {
    max-height: min(63svh, 650px);
}

body.template-homepage .about-visual > img {
    width: 100%;
    max-height: min(63svh, 650px);
    object-fit: cover;
    object-position: center top;
}

body.template-homepage .about-content h2 {
    font-size: clamp(36px, 4.2vw, 60px);
}

body.template-homepage .about-text {
    font-size: clamp(14px, 1vw, 17px);
    line-height: 2.05;
}

body.template-homepage .about-features {
    gap: clamp(10px, 1.3vw, 18px);
}

/* ========================================
   Portfolio section
======================================== */

body.template-homepage .portfolio-grid {
    width: 100%;
}

body.template-homepage .project-card {
    max-height: none;
}

body.template-homepage .project-image-visual,
body.template-homepage
.project-card-featured
.project-image-visual {
    min-height: clamp(260px, 35svh, 410px);
}

body.template-homepage .project-image-visual img,
body.template-homepage
.project-card-featured
.project-image-visual img {
    height: clamp(260px, 35svh, 410px);
}

body.template-homepage .project-content {
    padding: clamp(24px, 3vh, 38px);
}

/* ========================================
   Process section
======================================== */

body.template-homepage .process-grid {
    gap: clamp(14px, 1.5vw, 22px);
}

body.template-homepage .process-grid article {
    min-height: clamp(230px, 33svh, 350px);
    padding: clamp(22px, 3vh, 34px);
}

body.template-homepage .process-grid h3 {
    font-size: clamp(19px, 1.5vw, 24px);
}

body.template-homepage .process-grid p {
    font-size: clamp(13px, 0.95vw, 15px);
    line-height: 2;
}

/* ========================================
   Short desktop and laptop displays
======================================== */

@media (max-height: 820px) and (min-width: 881px) {
    body.template-homepage .home-screen-section {
        padding-top: 30px;
        padding-bottom: 30px;
    }

    body.template-homepage
    .home-screen-section
    .section-heading {
        margin-bottom: 22px;
    }

    body.template-homepage
    .home-screen-section
    .section-heading h2 {
        font-size: clamp(32px, 3.8vw, 50px);
    }

    body.template-homepage .home-hero-screen h1 {
        font-size: clamp(38px, 4.4vw, 60px);
    }

    body.template-homepage .service-card,
    body.template-homepage .project-content,
    body.template-homepage .process-grid article {
        padding: 20px;
    }

    body.template-homepage .process-grid article {
        min-height: 245px;
    }

    body.template-homepage .project-image-visual,
    body.template-homepage
    .project-card-featured
    .project-image-visual,
    body.template-homepage .project-image-visual img,
    body.template-homepage
    .project-card-featured
    .project-image-visual img {
        min-height: 280px;
        height: 280px;
    }
}

/* ========================================
   Tablet
======================================== */

@media (max-width: 1000px) {
    body.template-homepage
    .home-screen-section
    > .container {
        width: calc(100% - 56px);
    }

    body.template-homepage .home-screen-section {
        min-height: auto;
        padding-top: 70px;
        padding-bottom: 70px;
    }
}

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

@media (max-width: 660px) {
    body.template-homepage {
        --home-header-height: 88px;
    }

    body.template-homepage
    .home-screen-section
    > .container {
        width: calc(100% - 32px);
    }

    body.template-homepage .home-screen-section,
    body.template-homepage .home-hero-screen {
        min-height: auto;
        display: block;
        padding-top: 55px;
        padding-bottom: 55px;
    }

    body.template-homepage
    .home-screen-section
    .section-heading h2 {
        font-size: 34px;
    }

    body.template-homepage .home-hero-screen h1 {
        font-size: 39px;
    }

    body.template-homepage .process-grid article {
        min-height: auto;
    }
}
/* Footer logo — preserve original aspect ratio */

.footer-brand .footer-logo {
    display: block;
    width: min(250px, 100%);
    max-width: 100%;
    height: auto !important;
    object-fit: contain;
    margin-right: 0;
    margin-left: auto;
}

@media (max-width: 660px) {
    .footer-brand .footer-logo {
        width: min(210px, 100%);
        margin-right: auto;
        margin-left: auto;
    }
}
/* =========================================================
   Articles / News / Education
========================================================= */

.articles-page,
.article-detail-page {
    background: #f8fafc;
}


/* Hero */

.articles-hero {
    padding: 100px 0 80px;
    text-align: center;
    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(13, 148, 136, 0.10),
            transparent 45%
        ),
        #f8fafc;
}

.articles-hero .container {
    max-width: 900px;
}

.section-kicker {
    display: inline-block;
    margin-bottom: 14px;

    color: #0f766e;
    font-size: 15px;
    font-weight: 800;
}

.articles-hero h1 {
    margin: 0;

    color: #0f172a;
    font-size: clamp(42px, 5vw, 68px);
    line-height: 1.3;
}

.articles-hero p {
    max-width: 760px;
    margin: 22px auto 0;

    color: #64748b;
    font-size: 17px;
    line-height: 2;
}


/* Main */

.articles-content {
    padding: 20px 0 110px;
}


/* Filters */

.article-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;

    gap: 10px;
    margin-bottom: 45px;
}

.article-filters a {
    padding: 11px 22px;

    border: 1px solid #dbe3ec;
    border-radius: 999px;

    background: #fff;
    color: #475569;

    font-size: 14px;
    font-weight: 800;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.article-filters a:hover {
    transform: translateY(-2px);

    border-color: #0f766e;
    color: #0f766e;
}

.article-filters a.is-active {
    border-color: #0f766e;
    background: #0f766e;
    color: #fff;
}


/* Cards */

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 28px;
}

.article-card {
    overflow: hidden;

    border: 1px solid #e2e8f0;
    border-radius: 24px;

    background: #fff;

    box-shadow:
        0 12px 35px rgba(15, 23, 42, 0.06);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.article-card:hover {
    transform: translateY(-6px);

    box-shadow:
        0 22px 45px rgba(15, 23, 42, 0.10);
}

.article-card-image {
    position: relative;

    display: block;
    overflow: hidden;

    aspect-ratio: 16 / 9;

    background: #0f172a;
}

.article-card-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.35s ease;
}

.article-card:hover .article-card-image img {
    transform: scale(1.035);
}

.article-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    background:
        linear-gradient(
            135deg,
            #0f172a,
            #134e4a
        );
}

.article-image-placeholder span {
    color: #fff;

    font-size: 54px;
    font-weight: 900;

    opacity: 0.9;
}


/* Badge */

.article-type-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 7px 13px;

    border-radius: 999px;

    background: #ccfbf1;
    color: #0f766e;

    font-size: 13px;
    font-weight: 900;
}

.article-card-image .article-type-badge {
    position: absolute;

    top: 16px;
    right: 16px;

    background: rgba(255, 255, 255, 0.94);
}


/* Card text */

.article-card-content {
    padding: 26px;
}

.article-card-content time {
    display: block;
    margin-bottom: 12px;

    color: #94a3b8;

    font-size: 13px;
    font-weight: 700;
}

.article-card-content h2 {
    margin: 0 0 13px;

    color: #0f172a;

    font-size: 21px;
    line-height: 1.7;
}

.article-card-content h2 a {
    color: inherit;
}

.article-card-content p {
    margin: 0;

    color: #64748b;

    font-size: 14px;
    line-height: 2;
}

.article-read-more {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    margin-top: 20px;

    color: #0f766e;

    font-size: 14px;
    font-weight: 900;
}


/* Empty */

.articles-empty {
    padding: 70px 30px;

    border: 1px dashed #cbd5e1;
    border-radius: 24px;

    text-align: center;

    background: #fff;
}

.articles-empty strong {
    color: #0f172a;
    font-size: 20px;
}

.articles-empty p {
    margin: 12px 0 0;

    color: #64748b;
}


/* =========================================================
   Article detail
========================================================= */

.article-detail-header {
    padding: 85px 0 50px;
}

.article-detail-header-inner {
    max-width: 960px;
}

.article-back-link {
    display: inline-flex;

    gap: 8px;

    margin-bottom: 35px;

    color: #0f766e;

    font-size: 14px;
    font-weight: 800;
}

.article-detail-meta {
    display: flex;
    align-items: center;

    gap: 16px;

    margin-bottom: 22px;
}

.article-detail-meta time {
    color: #64748b;

    font-size: 14px;
    font-weight: 700;
}

.article-detail-header h1 {
    max-width: 900px;

    margin: 0;

    color: #0f172a;

    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.45;
}

.article-detail-summary {
    max-width: 820px;

    margin: 25px 0 0;

    color: #64748b;

    font-size: 18px;
    line-height: 2;
}


/* Feature image */

.article-featured-image {
    max-width: 1180px;
}

.article-featured-image img {
    display: block;

    width: 100%;
    height: auto;

    max-height: 650px;

    object-fit: cover;

    border-radius: 30px;
}


/* Article body */

.article-detail-layout {
    max-width: 900px;

    padding-top: 65px;
    padding-bottom: 110px;
}

.article-body {
    color: #334155;

    font-size: 17px;
    line-height: 2.25;
}

.article-body p {
    margin: 0 0 25px;
}

.article-body h2 {
    margin: 55px 0 20px;

    color: #0f172a;

    font-size: 30px;
    line-height: 1.6;
}

.article-body h3 {
    margin: 42px 0 18px;

    color: #0f172a;

    font-size: 24px;
    line-height: 1.6;
}

.article-body ul,
.article-body ol {
    margin: 24px 0;

    padding-right: 25px;
}

.article-body img {
    max-width: 100%;
    height: auto;

    border-radius: 18px;
}

.article-body a {
    color: #0f766e;
    text-decoration: underline;
    text-underline-offset: 4px;
}


/* Source */

.article-source {
    margin-top: 55px;
    padding: 22px 26px;

    border-right: 4px solid #0f766e;
    border-radius: 14px;

    background: #ecfdf5;
}

.article-source strong {
    color: #0f172a;
}

.article-source a {
    margin-right: 7px;

    color: #0f766e;

    font-weight: 800;
}


/* Tablet */

@media (max-width: 1000px) {

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

}


/* Mobile */

@media (max-width: 660px) {

    .articles-hero {
        padding: 65px 0 55px;
    }

    .articles-hero h1 {
        font-size: 40px;
    }

    .articles-hero p {
        font-size: 15px;
    }

    .articles-content {
        padding-bottom: 75px;
    }

    .article-filters {
        margin-bottom: 30px;
    }

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

    .article-card-content {
        padding: 22px;
    }

    .article-detail-header {
        padding: 60px 0 35px;
    }

    .article-detail-header h1 {
        font-size: 36px;
    }

    .article-detail-summary {
        font-size: 16px;
    }

    .article-featured-image img {
        border-radius: 20px;
    }

    .article-detail-layout {
        padding-top: 45px;
        padding-bottom: 75px;
    }

    .article-body {
        font-size: 16px;
        line-height: 2.15;
    }

}
/* =========================================================
   Homepage — Latest articles
========================================================= */

.home-articles-section {
    background: #f8fafc;
}

.home-articles-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 35px;
}

.home-articles-heading > div {
    max-width: 720px;
}

.home-articles-heading p {
    max-width: 680px;
}

.home-articles-all {
    flex-shrink: 0;
}


/* Grid */

.home-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: clamp(18px, 2vw, 28px);
}


/* Card */

.home-article-card {
    overflow: hidden;

    border: 1px solid #e2e8f0;
    border-radius: 24px;

    background: #fff;

    box-shadow:
        0 12px 35px rgba(15, 23, 42, 0.06);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.home-article-card:hover {
    transform: translateY(-6px);

    border-color: #cbd5e1;

    box-shadow:
        0 22px 45px rgba(15, 23, 42, 0.10);
}


/* Image */

.home-article-image {
    position: relative;

    display: block;
    overflow: hidden;

    aspect-ratio: 16 / 9;

    background: #0f172a;
}

.home-article-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.35s ease;
}

.home-article-card:hover .home-article-image img {
    transform: scale(1.035);
}


/* Placeholder */

.home-article-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    background:
        linear-gradient(
            135deg,
            #0f172a 0%,
            #134e4a 100%
        );
}

.home-article-placeholder span {
    color: #f8fafc;

    font-size: clamp(42px, 4vw, 60px);
    font-weight: 900;

    opacity: 0.95;
}


/* Type badge */

.home-article-type {
    position: absolute;

    top: 16px;
    right: 16px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 7px 13px;

    border-radius: 999px;

    background: rgba(255, 255, 255, 0.95);
    color: #0f766e;

    font-size: 12px;
    font-weight: 900;
}


/* Content */

.home-article-content {
    padding: clamp(20px, 2.4vw, 28px);
}

.home-article-content time {
    display: block;

    margin-bottom: 11px;

    color: #94a3b8;

    font-size: 13px;
    font-weight: 700;
}

.home-article-content h3 {
    margin: 0 0 12px;

    color: #0f172a;

    font-size: clamp(18px, 1.4vw, 22px);
    line-height: 1.75;
}

.home-article-content h3 a {
    color: inherit;
}

.home-article-content p {
    margin: 0;

    color: #64748b;

    font-size: 14px;
    line-height: 2;
}

.home-article-read-more {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    margin-top: 20px;

    color: #0f766e;

    font-size: 14px;
    font-weight: 900;
}


/* Laptop with short screen */

@media (max-height: 820px) and (min-width: 1001px) {

    .home-articles-grid {
        gap: 18px;
    }

    .home-article-content {
        padding: 20px;
    }

    .home-article-content h3 {
        font-size: 18px;
    }

    .home-article-content p {
        font-size: 13px;
        line-height: 1.85;
    }

}


/* Tablet */

@media (max-width: 1000px) {

    .home-articles-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .home-articles-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


/* Mobile */

@media (max-width: 660px) {

    .home-articles-grid {
        grid-template-columns: 1fr;
    }

    .home-articles-all {
        width: 100%;
    }

    .home-article-card {
        border-radius: 20px;
    }

}
/* =========================================================
   Homepage Articles — Fit completely in one viewport
========================================================= */

@media (min-width: 1001px) {

    body.template-homepage .home-articles-section {
        box-sizing: border-box;

        height: calc(100svh - var(--home-header-height));
        min-height: 0 !important;

        display: flex;
        align-items: center;

        padding-top: clamp(22px, 4vh, 50px);
        padding-bottom: clamp(22px, 4vh, 50px);

        overflow: hidden;
    }

    body.template-homepage .home-articles-section > .container {
        width: min(1220px, calc(100% - 96px));

        display: flex;
        flex-direction: column;
        justify-content: center;

        height: 100%;
    }


    /* ---------- Heading ---------- */

    body.template-homepage .home-articles-heading {
        flex: 0 0 auto;

        margin-bottom: clamp(18px, 3vh, 34px);

        gap: 30px;
    }

    body.template-homepage .home-articles-heading .section-kicker {
        margin-bottom: clamp(5px, 1vh, 10px);

        font-size: clamp(12px, 1.6vh, 15px);
    }

    body.template-homepage .home-articles-heading h2 {
        margin: 0;

        font-size: clamp(32px, 5.2vh, 54px);
        line-height: 1.3;
    }

    body.template-homepage .home-articles-heading p {
        margin-top: clamp(6px, 1.3vh, 14px);

        font-size: clamp(12px, 1.75vh, 16px);
        line-height: 1.8;
    }

    body.template-homepage .home-articles-all {
        padding: clamp(10px, 1.6vh, 14px) 22px;

        font-size: clamp(12px, 1.7vh, 15px);
    }


    /* ---------- Cards grid ---------- */

    body.template-homepage .home-articles-grid {
        flex: 0 1 auto;

        grid-template-columns: repeat(3, minmax(0, 1fr));

        gap: clamp(14px, 2vw, 26px);

        min-height: 0;
    }

    body.template-homepage .home-article-card {
        display: flex;
        flex-direction: column;

        min-height: 0;

        border-radius: clamp(16px, 2vh, 24px);
    }


    /* ---------- Card image ---------- */

    body.template-homepage .home-article-image {
        flex: 0 0 auto;

        aspect-ratio: auto;

        height: clamp(135px, 24vh, 245px);
    }

    body.template-homepage .home-article-placeholder {
        height: 100%;
    }

    body.template-homepage .home-article-placeholder span {
        font-size: clamp(34px, 6vh, 58px);
    }

    body.template-homepage .home-article-type {
        top: clamp(9px, 1.5vh, 16px);
        right: clamp(9px, 1.5vh, 16px);

        padding: 5px 11px;

        font-size: clamp(10px, 1.4vh, 12px);
    }


    /* ---------- Card content ---------- */

    body.template-homepage .home-article-content {
        display: flex;
        flex-direction: column;
        flex: 1;

        padding: clamp(14px, 2.4vh, 25px);
    }

    body.template-homepage .home-article-content time {
        margin-bottom: clamp(5px, 1vh, 10px);

        font-size: clamp(10px, 1.45vh, 13px);
    }

    body.template-homepage .home-article-content h3 {
        margin-bottom: clamp(5px, 1vh, 11px);

        font-size: clamp(15px, 2.25vh, 21px);
        line-height: 1.65;

        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
    }

    body.template-homepage .home-article-content p {
        font-size: clamp(11px, 1.65vh, 14px);
        line-height: 1.8;

        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
    }

    body.template-homepage .home-article-read-more {
        margin-top: auto;
        padding-top: clamp(7px, 1.2vh, 14px);

        font-size: clamp(11px, 1.6vh, 14px);
    }
}


/* =========================================================
   Very short laptop screens
========================================================= */

@media (min-width: 1001px) and (max-height: 720px) {

    body.template-homepage .home-articles-section {
        padding-top: 16px;
        padding-bottom: 16px;
    }

    body.template-homepage .home-articles-heading {
        margin-bottom: 14px;
    }

    body.template-homepage .home-articles-heading h2 {
        font-size: 32px;
    }

    body.template-homepage .home-articles-heading p {
        margin-top: 4px;

        font-size: 12px;
        line-height: 1.6;
    }

    body.template-homepage .home-article-image {
        height: 135px;
    }

    body.template-homepage .home-article-content {
        padding: 13px 16px;
    }

    body.template-homepage .home-article-content h3 {
        margin-bottom: 5px;

        font-size: 15px;
        line-height: 1.55;
    }

    body.template-homepage .home-article-content p {
        font-size: 11px;
        line-height: 1.6;
    }

    body.template-homepage .home-article-read-more {
        padding-top: 6px;
        font-size: 11px;
    }
}


/* =========================================================
   Tablet / Mobile
   ارتفاع طبیعی تا چیزی بریده نشود
========================================================= */

@media (max-width: 1000px) {

    body.template-homepage .home-articles-section {
        height: auto !important;
        min-height: auto !important;

        overflow: visible;
    }

}
/* Active header navigation item */

.main-nav a.is-active {
    color: #0f766e;
    font-weight: 900;
}

.main-nav a.is-active::after {
    width: 100%;
    opacity: 1;
}
/* =========================================================
   Header — navigation + CTA final alignment
========================================================= */

@media (min-width: 901px) {

    .site-header .header-inner {
        display: flex;
        align-items: center;

        justify-content: flex-start;

        gap: 24px;
    }

    .site-header .site-brand {
        flex-shrink: 0;
    }


    /* Navigation and CTA stay together */
    .site-header .header-actions {
        display: flex;
        align-items: center;

        gap: 26px;

        margin-inline-start: auto;
    }


    .site-header .main-nav {
        display: flex;
        align-items: center;

        gap: clamp(22px, 2vw, 34px);

        margin: 0;
    }


    /* Start project button */
    .site-header .header-cta {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;

        min-width: 118px;
        height: 52px;

        padding: 0 20px;

        border: none !important;
        border-radius: 14px;

        background: #0f172a !important;
        color: #ffffff !important;

        font-size: 15px;
        font-weight: 900;
        line-height: 1;

        white-space: nowrap;
        text-decoration: none !important;

        flex-shrink: 0;

        box-shadow: none;

        transition:
            background-color 0.2s ease,
            transform 0.2s ease;
    }

    .site-header .header-cta:hover {
        background: #1e293b !important;
        color: #ffffff !important;

        transform: translateY(-2px);
    }

}
/* =========================================================
   Articles Pagination
========================================================= */

.articles-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;

    gap: 12px;

    margin-top: 55px;
}

.pagination-numbers {
    display: flex;
    align-items: center;

    gap: 8px;
}

.articles-pagination a,
.articles-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 44px;
    height: 44px;

    padding: 0 14px;

    border: 1px solid #dbe3ec;
    border-radius: 12px;

    background: #ffffff;
    color: #475569;

    font-size: 14px;
    font-weight: 800;

    text-decoration: none;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.articles-pagination a:hover {
    transform: translateY(-2px);

    border-color: #0f766e;
    color: #0f766e;
}

.articles-pagination .is-current {
    border-color: #0f766e;

    background: #0f766e;
    color: #ffffff;
}

.articles-pagination .pagination-arrow {
    min-width: 82px;
}

@media (max-width: 660px) {

    .articles-pagination {
        margin-top: 38px;
    }

    .articles-pagination a,
    .articles-pagination span {
        min-width: 40px;
        height: 40px;

        padding: 0 11px;

        font-size: 13px;
    }

}
/* =========================================================
   WordPress Header Size Fix
========================================================= */

.site-header {
    width: 100%;
    background: #f8fafc;
}

.site-header .header-inner {
    width: min(1220px, calc(100% - 72px));
    min-height: 108px;

    margin-right: auto;
    margin-left: auto;

    padding-top: 12px;
    padding-bottom: 12px;

    display: flex;
    align-items: center;

    box-sizing: border-box;
}


/* Brand */

.site-header .site-brand {
    display: flex;
    align-items: center;

    gap: 14px;

    flex-shrink: 0;

    text-decoration: none;
}

.site-header .site-brand img {
    display: block;

    width: 82px !important;
    max-width: 82px !important;
    height: 68px !important;
    max-height: 68px !important;

    object-fit: contain;

    flex: 0 0 82px;
}

.site-header .site-brand > div {
    display: flex;
    flex-direction: column;

    gap: 3px;
}

.site-header .site-brand strong {
    color: #0f172a;

    font-size: 19px;
    font-weight: 900;
    line-height: 1.4;

    white-space: nowrap;
}

.site-header .site-brand span {
    color: #64748b;

    font-size: 13px;
    font-weight: 500;
    line-height: 1.6;

    white-space: nowrap;
}


/* Navigation + CTA */

@media (min-width: 1001px) {

    .site-header .header-actions {
        display: flex;
        align-items: center;

        gap: 24px;

        margin-inline-start: auto;
    }

    .site-header .main-nav {
        display: flex;
        align-items: center;

        gap: clamp(22px, 2vw, 34px);

        margin: 0;
    }

    .site-header .main-nav a {
        white-space: nowrap;
    }

    .site-header .header-cta {
        min-width: 118px;
        height: 52px;

        padding: 0 20px;

        flex-shrink: 0;
    }
}


/* Tablet */

@media (max-width: 1200px) and (min-width: 1001px) {

    .site-header .header-inner {
        width: min(1180px, calc(100% - 40px));
    }

    .site-header .site-brand img {
        width: 72px !important;
        max-width: 72px !important;
        height: 60px !important;
        max-height: 60px !important;

        flex-basis: 72px;
    }

    .site-header .site-brand strong {
        font-size: 17px;
    }

    .site-header .site-brand span {
        font-size: 11px;
    }

    .site-header .main-nav {
        gap: 20px;
    }

    .site-header .main-nav a {
        font-size: 14px;
    }

    .site-header .header-cta {
        min-width: 108px;
        height: 48px;

        padding: 0 16px;

        font-size: 14px;
    }
}


/* Mobile / small screens */

@media (max-width: 1000px) {

    .site-header .header-inner {
        width: min(100% - 32px, 760px);
        min-height: 84px;

        padding-top: 10px;
        padding-bottom: 10px;
    }

    .site-header .site-brand {
        gap: 10px;
    }

    .site-header .site-brand img {
        width: 60px !important;
        max-width: 60px !important;
        height: 52px !important;
        max-height: 52px !important;

        flex-basis: 60px;
    }

    .site-header .site-brand strong {
        font-size: 16px;
    }

    .site-header .site-brand span {
        font-size: 10px;
    }
}
/* =========================================================
   WordPress Home Hero
========================================================= */

.home-hero {
    min-height: calc(100svh - 108px);

    display: flex;
    align-items: center;

    background:
        radial-gradient(
            circle at 78% 20%,
            rgba(14, 165, 233, 0.10),
            transparent 34%
        ),
        #f8fafc;

    overflow: hidden;
}

.home-hero-grid {
    width: min(1220px, calc(100% - 96px));

    margin-right: auto;
    margin-left: auto;

    display: grid;
    grid-template-columns: 1fr 0.92fr;
    align-items: center;

    gap: clamp(55px, 7vw, 100px);
}


/* Content */

.home-hero-content {
    text-align: right;
}

.home-hero-content h1 {
    margin: 0;

    color: #0f172a;

    font-size: clamp(48px, 5vw, 78px);
    font-weight: 950;
    line-height: 1.45;

    letter-spacing: -1.5px;
}

.home-hero-description {
    max-width: 720px;

    margin: 34px 0 0;

    color: #475569;

    font-size: clamp(16px, 1.5vw, 20px);
    font-weight: 500;
    line-height: 2;
}


/* Buttons */

.home-hero-actions {
    margin-top: 38px;

    display: flex;
    align-items: center;

    gap: 16px;
}

.home-hero-primary,
.home-hero-secondary {
    min-height: 58px;

    padding: 0 28px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 16px;

    font-size: 16px;
    font-weight: 900;

    text-decoration: none;
}

.home-hero-primary {
    gap: 14px;

    background: #0f766e;
    color: #ffffff;
}

.home-hero-primary:hover {
    background: #115e59;
    color: #ffffff;
}

.home-hero-secondary {
    border: 1px solid #d9e2ec;

    background: #ffffff;
    color: #0f172a;
}


/* Feature items */

.home-hero-features {
    margin-top: 34px;

    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 24px;
}

.home-hero-features span {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    color: #334155;

    font-size: 14px;
    font-weight: 800;
}

.home-hero-features i {
    width: 28px;
    height: 28px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #d1fae5;
    color: #059669;

    font-style: normal;
    font-weight: 900;
}


/* Code visual */

.home-hero-visual {
    width: 100%;
}

.code-window {
    width: 100%;

    overflow: hidden;

    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 34px;

    background: #081729;

    box-shadow:
        0 35px 80px rgba(15, 23, 42, 0.20);
}

.code-window-header {
    min-height: 78px;

    padding: 0 30px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.window-dots {
    display: flex;
    gap: 9px;
}

.window-dots span {
    width: 13px;
    height: 13px;

    border-radius: 50%;
}

.window-dots span:nth-child(1) {
    background: #fb7185;
}

.window-dots span:nth-child(2) {
    background: #fbbf24;
}

.window-dots span:nth-child(3) {
    background: #34d399;
}

.code-domain {
    color: #94a3b8;

    font-family: monospace;
    font-size: 15px;
}

.code-window-body {
    padding: 55px 55px 52px;
}

.code-line {
    min-height: 48px;

    display: grid;
    grid-template-columns: 44px 1fr;
    align-items: center;

    direction: ltr;
}

.code-line code {
    color: #cbd5e1;

    font-family:
        Consolas,
        "Courier New",
        monospace;

    font-size: clamp(14px, 1.25vw, 18px);
    font-weight: 700;

    white-space: nowrap;
}

.code-number {
    color: #4b647d;

    font-family: monospace;
    font-weight: 700;
}

.code-line b {
    color: #c084fc;
}

.code-line em {
    color: #2dd4bf;

    font-style: normal;
}

.code-space {
    min-height: 40px;
}


/* Tablet */

@media (max-width: 1100px) {

    .home-hero-grid {
        width: min(100% - 56px, 1000px);

        gap: 45px;
    }

    .home-hero-content h1 {
        font-size: clamp(40px, 5vw, 58px);
    }

    .code-window-body {
        padding: 42px 34px;
    }

}


/* Mobile */

@media (max-width: 820px) {

    .home-hero {
        min-height: auto;

        padding-top: 55px;
        padding-bottom: 65px;

        overflow: visible;
    }

    .home-hero-grid {
        width: min(100% - 32px, 680px);

        grid-template-columns: 1fr;

        gap: 48px;
    }

    .home-hero-content {
        text-align: center;
    }

    .home-hero-content h1 {
        font-size: clamp(35px, 10vw, 50px);

        line-height: 1.5;
    }

    .home-hero-description {
        margin-right: auto;
        margin-left: auto;
    }

    .home-hero-actions,
    .home-hero-features {
        justify-content: center;
    }

    .home-hero-visual {
        order: 2;
    }

}


/* Small mobile */

@media (max-width: 520px) {

    .home-hero-actions {
        flex-direction: column;
    }

    .home-hero-primary,
    .home-hero-secondary {
        width: 100%;
    }

    .home-hero-features {
        align-items: flex-start;
        flex-direction: column;
    }

    .code-window {
        border-radius: 24px;
    }

    .code-window-header {
        min-height: 62px;

        padding: 0 20px;
    }

    .code-window-body {
        padding: 30px 20px;
    }

    .code-line {
        grid-template-columns: 32px 1fr;
    }

    .code-line code {
        font-size: 11px;
    }

}
/* =========================================================
   HOME HERO — Dynamic viewport fit
   Chrome / Edge / different monitors
========================================================= */

@media (min-width: 821px) {

    body.template-homepage .home-hero {
        box-sizing: border-box;

        width: 100%;
        height: var(--hero-available-height, 650px) !important;
        min-height: 0 !important;

        padding: 0 !important;

        display: flex;
        align-items: center;

        overflow: hidden;
    }


    /* Main layout */

    body.template-homepage .home-hero-grid {
        box-sizing: border-box;

        width: min(1220px, calc(100% - 64px));
        height: 100%;

        margin-right: auto;
        margin-left: auto;

        padding-top: clamp(
            14px,
            calc(var(--hero-available-height, 650px) * 0.025),
            24px
        );

        padding-bottom: clamp(
            14px,
            calc(var(--hero-available-height, 650px) * 0.025),
            24px
        );

        display: grid;

        grid-template-columns:
            minmax(0, 1fr)
            minmax(0, 0.92fr);

        align-items: center;

        gap: clamp(34px, 4vw, 72px);
    }


    /* =====================================================
       Right content
    ===================================================== */

    body.template-homepage .home-hero-content {
        min-width: 0;

        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    body.template-homepage .home-hero-content h1 {
        margin: 0 !important;

        color: #0f172a;

        font-size: clamp(
            34px,
            calc(var(--hero-available-height, 650px) * 0.072),
            64px
        );

        line-height: 1.36;

        letter-spacing: -1px;
    }


    body.template-homepage .home-hero-description {
        margin-top: clamp(
            10px,
            calc(var(--hero-available-height, 650px) * 0.028),
            26px
        );

        margin-bottom: 0;

        font-size: clamp(
            12px,
            calc(var(--hero-available-height, 650px) * 0.021),
            18px
        );

        line-height: 1.85;
    }


    /* Buttons */

    body.template-homepage .home-hero-actions {
        margin-top: clamp(
            12px,
            calc(var(--hero-available-height, 650px) * 0.035),
            30px
        );

        display: flex;
        align-items: center;

        gap: 14px;
    }

    body.template-homepage .home-hero-primary,
    body.template-homepage .home-hero-secondary {
        min-height: clamp(
            44px,
            calc(var(--hero-available-height, 650px) * 0.075),
            56px
        );

        padding-right: clamp(18px, 2vw, 27px);
        padding-left: clamp(18px, 2vw, 27px);

        font-size: clamp(
            13px,
            calc(var(--hero-available-height, 650px) * 0.022),
            16px
        );
    }


    /* Features */

    body.template-homepage .home-hero-features {
        margin-top: clamp(
            10px,
            calc(var(--hero-available-height, 650px) * 0.028),
            25px
        );

        display: flex;
        align-items: center;
        flex-wrap: wrap;

        gap: clamp(12px, 1.5vw, 22px);
    }

    body.template-homepage .home-hero-features span {
        font-size: clamp(
            11px,
            calc(var(--hero-available-height, 650px) * 0.018),
            14px
        );
    }

    body.template-homepage .home-hero-features i {
        width: clamp(22px, 3.2vh, 28px);
        height: clamp(22px, 3.2vh, 28px);
    }


    /* =====================================================
       Left code window
    ===================================================== */

    body.template-homepage .home-hero-visual {
        min-width: 0;
        height: 100%;

        display: flex;
        align-items: center;
    }

    body.template-homepage .code-window {
        box-sizing: border-box;

        width: 100%;

        height: min(
            520px,
            calc(var(--hero-available-height, 650px) - 30px)
        );

        max-height: 100%;

        display: flex;
        flex-direction: column;

        border-radius: clamp(22px, 3vh, 34px);

        overflow: hidden;
    }


    body.template-homepage .code-window-header {
        flex: 0 0 auto;

        min-height: clamp(
            50px,
            calc(var(--hero-available-height, 650px) * 0.09),
            72px
        );

        padding-right: clamp(18px, 2vw, 28px);
        padding-left: clamp(18px, 2vw, 28px);
    }


    body.template-homepage .code-window-body {
        box-sizing: border-box;

        flex: 1;

        min-height: 0;

        padding:
            clamp(
                18px,
                calc(var(--hero-available-height, 650px) * 0.035),
                36px
            )
            clamp(22px, 3vw, 48px);

        display: flex;
        flex-direction: column;
        justify-content: center;
    }


    body.template-homepage .code-line {
        flex: 1 1 0;

        min-height: 0;
        max-height: 48px;

        display: grid;

        grid-template-columns:
            clamp(30px, 3vw, 44px)
            minmax(0, 1fr);

        align-items: center;
    }


    body.template-homepage .code-line code {
        font-size: clamp(
            11px,
            calc(var(--hero-available-height, 650px) * 0.021),
            17px
        );
    }


    body.template-homepage .code-number {
        font-size: clamp(
            10px,
            calc(var(--hero-available-height, 650px) * 0.017),
            14px
        );
    }


    body.template-homepage .code-space {
        flex: 0.65 1 0;
    }

}


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

@media (max-width: 820px) {

    body.template-homepage .home-hero {
        height: auto !important;
        min-height: auto !important;

        overflow: visible;
    }

}
/* =========================================================
   FINAL — Code window stable sizing
========================================================= */

@media (min-width: 821px) {

    body.template-homepage .home-hero-visual {
        box-sizing: border-box;

        height: auto !important;
        min-height: 0 !important;

        align-self: center;

        display: flex;
        align-items: center;
        justify-content: center;

        padding: 0 !important;

        overflow: visible !important;
    }


    body.template-homepage .code-window {
        box-sizing: border-box;

        position: relative !important;

        top: auto !important;
        bottom: auto !important;

        transform: none !important;

        width: 100% !important;

        height: clamp(
            390px,
            calc(var(--hero-available-height, 650px) * 0.76),
            520px
        ) !important;

        max-height: calc(
            var(--hero-available-height, 650px) - 36px
        ) !important;

        min-height: 360px !important;

        margin: 0 !important;

        display: grid !important;

        grid-template-rows:
            64px
            minmax(0, 1fr);

        overflow: hidden !important;

        border-radius: 28px !important;
    }


    /* سربرگ پنجره کد */

    body.template-homepage .code-window-header {
        box-sizing: border-box;

        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;

        width: 100%;

        height: 64px !important;
        min-height: 64px !important;

        padding: 0 28px !important;

        position: relative !important;

        visibility: visible !important;
        opacity: 1 !important;

        overflow: visible !important;

        border-bottom:
            1px solid rgba(148, 163, 184, 0.14);
    }


    body.template-homepage .code-domain {
        display: inline-block !important;

        visibility: visible !important;
        opacity: 1 !important;
    }


    body.template-homepage .window-dots {
        display: flex !important;

        align-items: center;

        gap: 9px;

        visibility: visible !important;
        opacity: 1 !important;
    }


    body.template-homepage .window-dots span {
        display: block !important;

        width: 13px !important;
        height: 13px !important;

        flex: 0 0 13px;

        border-radius: 50%;
    }


    /* بدنه کد */

    body.template-homepage .code-window-body {
        box-sizing: border-box;

        min-height: 0 !important;

        padding:
            clamp(18px, 3vh, 34px)
            clamp(26px, 3vw, 48px)
            !important;

        display: grid !important;

        grid-template-rows:
            repeat(4, minmax(0, 1fr))
            0.65fr
            repeat(2, minmax(0, 1fr));

        align-items: center;

        overflow: hidden;
    }


    body.template-homepage .code-line {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;

        display: grid;

        grid-template-columns:
            40px
            minmax(0, 1fr);

        align-items: center;
    }


    body.template-homepage .code-space {
        min-height: 0 !important;
    }
}


/* مانیتورهای کم‌ارتفاع */

@media (min-width: 821px) and (max-height: 760px) {

    body.template-homepage .code-window {
        height: clamp(
            360px,
            calc(var(--hero-available-height, 580px) * 0.72),
            455px
        ) !important;

        min-height: 340px !important;

        grid-template-rows:
            52px
            minmax(0, 1fr);
    }

    body.template-homepage .code-window-header {
        height: 52px !important;
        min-height: 52px !important;

        padding-right: 22px !important;
        padding-left: 22px !important;
    }

    body.template-homepage .code-window-body {
        padding:
            14px
            26px
            !important;
    }

    body.template-homepage .window-dots span {
        width: 11px !important;
        height: 11px !important;

        flex-basis: 11px;
    }
}
/* =========================================================
   FIX — Hero code window when WordPress admin bar is hidden
========================================================= */

@media (min-width: 821px) {

    body:not(.admin-bar).template-homepage .home-hero-visual {
        position: static !important;

        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;

        transform: none !important;

        margin-top: 0 !important;
        margin-bottom: 0 !important;

        height: 100% !important;
        min-height: 0 !important;

        padding-top: 24px !important;
        padding-bottom: 24px !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        overflow: visible !important;
    }


    body:not(.admin-bar).template-homepage .code-window {
        position: static !important;

        top: auto !important;
        bottom: auto !important;

        transform: none !important;

        width: 100% !important;

        height: min(
            500px,
            calc(var(--hero-available-height, 650px) - 70px)
        ) !important;

        max-height: calc(100% - 48px) !important;
        min-height: 0 !important;

        margin: 0 !important;
    }

}


/* لپ‌تاپ با ارتفاع کمتر */

@media (min-width: 821px) and (max-height: 780px) {

    body:not(.admin-bar).template-homepage .home-hero-visual {
        padding-top: 18px !important;
        padding-bottom: 18px !important;
    }

    body:not(.admin-bar).template-homepage .code-window {
        height: min(
            455px,
            calc(var(--hero-available-height, 580px) - 60px)
        ) !important;

        max-height: calc(100% - 36px) !important;
    }

}
/* =========================================================
   FINAL FIX
   No admin bar + short laptop screen only
========================================================= */

@media (min-width: 821px) and (max-height: 820px) {

    body:not(.admin-bar).template-homepage .home-hero-visual {
        height: 100% !important;

        padding-top: 55px !important;
        padding-bottom: 12px !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        overflow: visible !important;
    }


    body:not(.admin-bar).template-homepage .code-window {
        /*
         * به جای محاسبه از viewport،
         * مستقیماً از ارتفاع ستون خودش استفاده می‌کنیم.
         */
        height: calc(100% - 56px) !important;

        max-height: 440px !important;
        min-height: 340px !important;

        margin: 0 !important;

        position: relative !important;

        /*
         * چند پیکسل پایین‌تر برای ایجاد
         * حاشیه امن در نمایشگر کم‌ارتفاع
         */
        transform: translateY(12px) !important;
    }

}
/* =========================================================
   SERVICES — one-screen desktop fit
========================================================= */

@media (min-width: 1001px) {

    body.template-homepage .services-section {
        box-sizing: border-box;

        min-height: calc(100dvh - 108px);
        height: auto;

        display: flex;
        align-items: center;

        padding-top: clamp(28px, 5vh, 60px);
        padding-bottom: clamp(28px, 5vh, 60px);
    }

    body.admin-bar.template-homepage .services-section {
        min-height: calc(100dvh - 108px - 32px);
    }

    body.template-homepage .services-section > .container {
        width: min(1220px, calc(100% - 72px));

        margin-right: auto;
        margin-left: auto;
    }

    body.template-homepage .services-section .section-heading {
        margin-bottom: clamp(24px, 4vh, 46px);
    }

    body.template-homepage .services-section .section-heading h2 {
        margin-top: 8px;

        font-size: clamp(38px, 4.5vw, 58px);
        line-height: 1.35;
    }

    body.template-homepage .services-section .section-heading p {
        max-width: 620px;

        font-size: clamp(14px, 1.35vw, 18px);
        line-height: 1.9;
    }

    body.template-homepage .services-grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));

        gap: clamp(16px, 2vw, 26px);
    }

    body.template-homepage .service-card {
        box-sizing: border-box;

        min-height: 0;

        padding:
            clamp(22px, 3vh, 34px)
            clamp(18px, 2vw, 28px);

        border-radius: 22px;
    }

    body.template-homepage .service-icon {
        width: clamp(56px, 7vh, 70px);
        height: clamp(56px, 7vh, 70px);

        margin-bottom: clamp(18px, 2.5vh, 28px);
    }

    body.template-homepage .service-card h3 {
        margin-bottom: clamp(10px, 1.7vh, 18px);

        font-size: clamp(18px, 2.2vh, 24px);
        line-height: 1.65;
    }

    body.template-homepage .service-card p {
        margin: 0;

        font-size: clamp(13px, 1.7vh, 16px);
        line-height: 1.95;
    }
}


/* =========================================================
   Short laptop screens
========================================================= */

@media (min-width: 1001px) and (max-height: 820px) {

    body.template-homepage .services-section {
        padding-top: 22px;
        padding-bottom: 22px;
    }

    body.template-homepage .services-section .section-heading {
        margin-bottom: 22px;
    }

    body.template-homepage .services-section .section-heading .section-kicker {
        font-size: 13px;
    }

    body.template-homepage .services-section .section-heading h2 {
        margin-top: 4px;

        font-size: 38px;
        line-height: 1.25;
    }

    body.template-homepage .services-section .section-heading p {
        font-size: 13px;
        line-height: 1.7;
    }

    body.template-homepage .services-grid {
        gap: 16px;
    }

    body.template-homepage .service-card {
        padding: 20px 18px;
    }

    body.template-homepage .service-icon {
        width: 54px;
        height: 54px;

        margin-bottom: 14px;
    }

    body.template-homepage .service-card h3 {
        margin-bottom: 8px;

        font-size: 18px;
        line-height: 1.5;
    }

    body.template-homepage .service-card p {
        font-size: 12px;
        line-height: 1.72;
    }
}


/* Mobile/tablet: natural height */

@media (max-width: 1000px) {

    body.template-homepage .services-section {
        height: auto !important;
        min-height: auto !important;
    }
}

/* =========================================================
   HOME ABOUT
========================================================= */

.home-about-section {
    background:
        radial-gradient(
            circle at 15% 40%,
            rgba(15, 118, 110, 0.08),
            transparent 30%
        ),
        #ffffff;
}

.home-about-grid {
    width: min(1220px, calc(100% - 96px));

    margin-right: auto;
    margin-left: auto;

    display: grid;

    grid-template-columns:
        minmax(0, 0.9fr)
        minmax(0, 1.1fr);

    align-items: center;

    gap: clamp(55px, 7vw, 100px);
}


/* =========================================================
   About content
========================================================= */

.home-about-content {
    min-width: 0;
}

.home-about-content h2 {
    margin: 10px 0 0;

    color: #0f172a;

    font-size: clamp(38px, 4.2vw, 58px);
    font-weight: 950;
    line-height: 1.45;

    letter-spacing: -1px;
}

.home-about-content p {
    max-width: 720px;

    margin: 18px 0 0;

    color: #64748b;

    font-size: 16px;
    font-weight: 500;
    line-height: 2;
}

.home-about-content .home-about-lead {
    margin-top: 26px;

    color: #334155;

    font-size: 18px;
    font-weight: 700;
}


/* Points */

.home-about-points {
    margin-top: 32px;

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 14px;
}

.home-about-points > div {
    padding: 20px;

    border: 1px solid #e2e8f0;
    border-radius: 18px;

    background: rgba(255, 255, 255, 0.82);
}

.home-about-points strong {
    display: block;

    margin-bottom: 7px;

    color: #0f172a;

    font-size: 14px;
    font-weight: 900;
}

.home-about-points span {
    display: block;

    color: #64748b;

    font-size: 12px;
    line-height: 1.8;
}


.home-about-actions {
    margin-top: 30px;
}

.home-about-primary {
    min-height: 54px;

    padding: 0 24px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 12px;

    border-radius: 15px;

    background: #0f172a;
    color: #ffffff;

    font-size: 15px;
    font-weight: 900;

    text-decoration: none;
}

.home-about-primary:hover {
    background: #1e293b;
    color: #ffffff;
}


/* =========================================================
   Visual card
========================================================= */

.home-about-visual {
    min-width: 0;
}

.about-tech-card {
    position: relative;

    min-height: 470px;

    padding: 46px;

    overflow: hidden;

    border-radius: 32px;

    background:
        linear-gradient(
            145deg,
            #081729,
            #0f2138
        );

    box-shadow:
        0 30px 70px rgba(15, 23, 42, 0.16);
}

.about-tech-card::before {
    content: "";

    position: absolute;

    width: 280px;
    height: 280px;

    left: -80px;
    bottom: -100px;

    border-radius: 50%;

    background:
        rgba(45, 212, 191, 0.10);
}

.about-tech-kicker {
    position: relative;
    z-index: 1;

    color: #5eead4;

    font-size: 14px;
    font-weight: 800;
}

.about-tech-code {
    position: relative;
    z-index: 1;

    margin-top: 58px;

    display: flex;
    flex-direction: column;

    gap: 25px;

    direction: ltr;
}

.about-tech-code span {
    display: flex;
    align-items: center;

    gap: 22px;

    color: #cbd5e1;

    font-family:
        Consolas,
        "Courier New",
        monospace;

    font-size: 17px;
    font-weight: 700;
}

.about-tech-code b {
    min-width: 28px;

    color: #526b83;

    font-size: 12px;
}

.about-tech-badge {
    position: absolute;

    left: 36px;
    bottom: 24px;

    color: rgba(255, 255, 255, 0.05);

    font-family: Arial, sans-serif;

    font-size: 118px;
    font-weight: 950;

    line-height: 1;
}


/* =========================================================
   One-screen desktop
========================================================= */

@media (min-width: 1001px) {

    body.template-homepage .home-about-section {
        box-sizing: border-box;

        min-height: calc(100dvh - 108px);

        display: flex;
        align-items: center;

        padding-top: clamp(32px, 5vh, 60px);
        padding-bottom: clamp(32px, 5vh, 60px);
    }

    body.admin-bar.template-homepage .home-about-section {
        min-height: calc(100dvh - 108px - 32px);
    }

}


/* =========================================================
   Short screens
========================================================= */

@media (min-width: 1001px) and (max-height: 820px) {

    body.template-homepage .home-about-section {
        padding-top: 24px;
        padding-bottom: 24px;
    }

    body.template-homepage .home-about-content h2 {
        font-size: 38px;
        line-height: 1.35;
    }

    body.template-homepage .home-about-content p {
        margin-top: 12px;

        font-size: 13px;
        line-height: 1.75;
    }

    body.template-homepage .home-about-content .home-about-lead {
        margin-top: 16px;

        font-size: 15px;
    }

    body.template-homepage .home-about-points {
        margin-top: 18px;
    }

    body.template-homepage .home-about-points > div {
        padding: 14px;
    }

    body.template-homepage .home-about-actions {
        margin-top: 18px;
    }

    body.template-homepage .about-tech-card {
        min-height: 390px;

        padding: 34px;
    }

    body.template-homepage .about-tech-code {
        margin-top: 38px;

        gap: 18px;
    }

    body.template-homepage .about-tech-code span {
        font-size: 14px;
    }

}


/* =========================================================
   Tablet / Mobile
========================================================= */

@media (max-width: 1000px) {

    .home-about-section {
        padding-top: 70px;
        padding-bottom: 70px;
    }

    .home-about-grid {
        width: min(100% - 40px, 760px);

        grid-template-columns: 1fr;

        gap: 45px;
    }

    .home-about-content {
        text-align: center;
    }

    .home-about-content p {
        margin-right: auto;
        margin-left: auto;
    }

    .home-about-points {
        grid-template-columns: 1fr;
    }

    .home-about-actions {
        display: flex;
        justify-content: center;
    }

    .about-tech-card {
        min-height: 400px;
    }

}


@media (max-width: 520px) {

    .home-about-grid {
        width: min(100% - 28px, 560px);
    }

    .home-about-content h2 {
        font-size: 34px;
    }

    .about-tech-card {
        min-height: 350px;

        padding: 28px;
    }

    .about-tech-code {
        margin-top: 38px;

        gap: 19px;
    }

    .about-tech-code span {
        font-size: 13px;
    }

}

/* =========================================================
   HOME ABOUT — short laptop screen fit
========================================================= */

@media (min-width: 1001px) and (max-height: 820px) {

    body.template-homepage .home-about-section {
        box-sizing: border-box;

        padding-top: 14px !important;
        padding-bottom: 14px !important;
    }

    body.template-homepage .home-about-grid {
        gap: 42px !important;
    }

    /* عنوان */

    body.template-homepage .home-about-content h2 {
        margin-top: 4px !important;

        font-size: 34px !important;
        line-height: 1.30 !important;
    }

    body.template-homepage .home-about-content .section-kicker {
        font-size: 13px !important;
    }

    /* متن‌ها */

    body.template-homepage .home-about-content .home-about-lead {
        margin-top: 12px !important;

        font-size: 14px !important;
        line-height: 1.65 !important;
    }

    body.template-homepage .home-about-content p {
        margin-top: 8px !important;

        font-size: 12.5px !important;
        line-height: 1.65 !important;
    }

    /* سه کارت کوچک */

    body.template-homepage .home-about-points {
        margin-top: 14px !important;

        gap: 10px !important;
    }

    body.template-homepage .home-about-points > div {
        padding: 11px 12px !important;

        border-radius: 14px !important;
    }

    body.template-homepage .home-about-points strong {
        margin-bottom: 4px !important;

        font-size: 12.5px !important;
    }

    body.template-homepage .home-about-points span {
        font-size: 10.5px !important;
        line-height: 1.55 !important;
    }

    /* دکمه */

    body.template-homepage .home-about-actions {
        margin-top: 12px !important;
    }

    body.template-homepage .home-about-primary {
        min-height: 44px !important;

        padding: 0 20px !important;

        font-size: 13px !important;
    }

    /* کارت تکنولوژی سمت چپ */

    body.template-homepage .about-tech-card {
        min-height: 340px !important;

        padding: 26px 30px !important;

        border-radius: 26px !important;
    }

    body.template-homepage .about-tech-kicker {
        font-size: 12px !important;
    }

    body.template-homepage .about-tech-code {
        margin-top: 28px !important;

        gap: 14px !important;
    }

    body.template-homepage .about-tech-code span {
        gap: 18px !important;

        font-size: 12.5px !important;
    }

    body.template-homepage .about-tech-badge {
        left: 28px !important;
        bottom: 15px !important;

        font-size: 90px !important;
    }
}
/* =========================================================
   WORDPRESS PORTFOLIO
========================================================= */

.wp-portfolio-section {
    background:
        radial-gradient(
            circle at 85% 30%,
            rgba(14, 165, 233, 0.07),
            transparent 30%
        ),
        #f8fafc;
}


/* Heading */

.wp-portfolio-heading-side {
    max-width: 520px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    gap: 18px;
}

.wp-portfolio-heading-side p {
    margin: 0;

    color: #64748b;

    font-size: 16px;
    line-height: 1.9;
}

.wp-portfolio-all {
    min-height: 48px;

    padding: 0 20px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    border: 1px solid #dbe3ec;
    border-radius: 14px;

    background: #ffffff;
    color: #0f172a;

    font-size: 14px;
    font-weight: 900;

    text-decoration: none;
}


/* Grid */

.wp-portfolio-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 24px;
}


/* Card */

.wp-portfolio-card {
    overflow: hidden;

    border: 1px solid #e2e8f0;
    border-radius: 24px;

    background: #ffffff;

    box-shadow:
        0 18px 45px rgba(15, 23, 42, 0.06);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.wp-portfolio-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 24px 55px rgba(15, 23, 42, 0.10);
}


/* Image */

.wp-portfolio-image {
    display: block;

    width: 100%;
    aspect-ratio: 16 / 9;

    overflow: hidden;

    background: #eaf0f5;
}

.wp-portfolio-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.35s ease;
}

.wp-portfolio-card:hover
.wp-portfolio-image img {
    transform: scale(1.035);
}


.wp-portfolio-placeholder {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            145deg,
            #081729,
            #15304e
        );
}

.wp-portfolio-placeholder span {
    color: rgba(255, 255, 255, 0.16);

    font-size: 70px;
    font-weight: 950;
}


/* Content */

.wp-portfolio-content {
    padding: 24px;
}

.wp-portfolio-label {
    display: inline-block;

    margin-bottom: 10px;

    color: #0f766e;

    font-size: 12px;
    font-weight: 900;
}

.wp-portfolio-content h3 {
    margin: 0 0 12px;

    font-size: 21px;
    line-height: 1.65;
}

.wp-portfolio-content h3 a {
    color: #0f172a;

    text-decoration: none;
}

.wp-portfolio-content p {
    margin: 0;

    color: #64748b;

    font-size: 14px;
    line-height: 1.9;
}

.wp-portfolio-more {
    margin-top: 20px;

    display: inline-flex;
    align-items: center;

    gap: 8px;

    color: #0f766e;

    font-size: 13px;
    font-weight: 900;

    text-decoration: none;
}


/* =========================================================
   One-screen desktop
========================================================= */

@media (min-width: 1001px) {

    body.template-homepage .wp-portfolio-section {
        box-sizing: border-box;

        min-height: calc(100dvh - 108px);

        display: flex;
        align-items: center;

        padding-top: clamp(28px, 5vh, 58px);
        padding-bottom: clamp(28px, 5vh, 58px);
    }

    body.admin-bar.template-homepage
    .wp-portfolio-section {
        min-height:
            calc(100dvh - 108px - 32px);
    }

    body.template-homepage
    .wp-portfolio-section > .container {
        width:
            min(1220px, calc(100% - 72px));
    }

}


/* =========================================================
   Short laptop screens
========================================================= */

@media (min-width: 1001px) and (max-height: 820px) {

    body.template-homepage
    .wp-portfolio-section {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    body.template-homepage
    .wp-portfolio-section
    .section-heading {
        margin-bottom: 20px;
    }

    body.template-homepage
    .wp-portfolio-section
    .section-heading h2 {
        font-size: 38px;
    }

    body.template-homepage
    .wp-portfolio-heading-side p {
        font-size: 12px;
        line-height: 1.65;
    }

    body.template-homepage
    .wp-portfolio-all {
        min-height: 42px;

        font-size: 12px;
    }

    body.template-homepage
    .wp-portfolio-grid {
        gap: 16px;
    }

    body.template-homepage
    .wp-portfolio-content {
        padding: 16px 18px;
    }

    body.template-homepage
    .wp-portfolio-content h3 {
        margin-bottom: 7px;

        font-size: 17px;
        line-height: 1.5;
    }

    body.template-homepage
    .wp-portfolio-content p {
        font-size: 11.5px;
        line-height: 1.65;
    }

    body.template-homepage
    .wp-portfolio-more {
        margin-top: 10px;

        font-size: 11.5px;
    }

}


/* =========================================================
   Tablet
========================================================= */

@media (max-width: 1000px) {

    .wp-portfolio-section {
        padding-top: 70px;
        padding-bottom: 70px;
    }

    .wp-portfolio-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


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

@media (max-width: 660px) {

    .wp-portfolio-grid {
        grid-template-columns: 1fr;
    }

    .wp-portfolio-heading-side {
        align-items: stretch;
    }

    .wp-portfolio-all {
        width: 100%;
    }

}
/* =========================================================
   PORTFOLIO — exact one-screen fit on short laptops
========================================================= */

@media (min-width: 1001px) and (max-height: 820px) {

    body.template-homepage .wp-portfolio-section {
        box-sizing: border-box;

        height: calc(100dvh - 108px) !important;
        min-height: 0 !important;

        padding-top: 14px !important;
        padding-bottom: 14px !important;

        display: flex !important;
        align-items: center !important;

        overflow: hidden !important;
    }

    body.admin-bar.template-homepage .wp-portfolio-section {
        height: calc(
            100dvh - 108px - 32px
        ) !important;
    }


    /* Container */

    body.template-homepage
    .wp-portfolio-section > .container {
        width: min(
            1220px,
            calc(100% - 72px)
        ) !important;

        max-height: 100%;

        display: flex;
        flex-direction: column;
        justify-content: center;
    }


    /* Heading */

    body.template-homepage
    .wp-portfolio-section
    .section-heading {
        margin-bottom: 14px !important;

        gap: 22px !important;
    }

    body.template-homepage
    .wp-portfolio-section
    .section-kicker {
        font-size: 12px !important;
    }

    body.template-homepage
    .wp-portfolio-section
    .section-heading h2 {
        margin-top: 3px !important;

        font-size: 34px !important;
        line-height: 1.25 !important;
    }

    body.template-homepage
    .wp-portfolio-heading-side {
        gap: 8px !important;
    }

    body.template-homepage
    .wp-portfolio-heading-side p {
        font-size: 11.5px !important;
        line-height: 1.55 !important;
    }

    body.template-homepage
    .wp-portfolio-all {
        min-height: 38px !important;

        padding: 0 16px !important;

        font-size: 11.5px !important;

        border-radius: 11px !important;
    }


    /* Grid */

    body.template-homepage
    .wp-portfolio-grid {
        gap: 14px !important;

        min-height: 0;
    }


    /* Card */

    body.template-homepage
    .wp-portfolio-card {
        border-radius: 18px !important;
    }


    /* Image */

    body.template-homepage
    .wp-portfolio-image {
        aspect-ratio: auto !important;

        height: 145px !important;
    }


    /* Card content */

    body.template-homepage
    .wp-portfolio-content {
        padding: 12px 16px !important;
    }

    body.template-homepage
    .wp-portfolio-label {
        margin-bottom: 4px !important;

        font-size: 10px !important;
    }

    body.template-homepage
    .wp-portfolio-content h3 {
        margin-bottom: 5px !important;

        font-size: 16px !important;
        line-height: 1.45 !important;
    }

    body.template-homepage
    .wp-portfolio-content p {
        font-size: 11px !important;
        line-height: 1.55 !important;

        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;

        overflow: hidden;
    }

    body.template-homepage
    .wp-portfolio-more {
        margin-top: 7px !important;

        font-size: 11px !important;
    }
}

/* =========================================================
   PORTFOLIO ARCHIVE
========================================================= */

.portfolio-archive-page {
    background: #f8fafc;
}


/* Hero */

.portfolio-archive-hero {
    padding-top: clamp(70px, 9vh, 115px);
    padding-bottom: clamp(55px, 7vh, 90px);

    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(14, 165, 233, 0.10),
            transparent 30%
        ),
        #f8fafc;
}

.portfolio-archive-hero .container {
    width: min(1220px, calc(100% - 96px));

    margin-right: auto;
    margin-left: auto;
}

.portfolio-archive-hero h1 {
    margin: 8px 0 0;

    color: #0f172a;

    font-size: clamp(48px, 6vw, 74px);
    font-weight: 950;
    line-height: 1.35;
}

.portfolio-archive-hero p {
    max-width: 720px;

    margin: 20px 0 0;

    color: #64748b;

    font-size: 17px;
    line-height: 2;
}


/* Archive */

.portfolio-archive-content {
    padding-top: 30px;
    padding-bottom: 90px;
}

.portfolio-archive-content > .container {
    width: min(1220px, calc(100% - 96px));

    margin-right: auto;
    margin-left: auto;
}


/* Archive card title */

.portfolio-archive-content
.wp-portfolio-content h2 {
    margin: 0 0 12px;

    font-size: 21px;
    line-height: 1.65;
}

.portfolio-archive-content
.wp-portfolio-content h2 a {
    color: #0f172a;

    text-decoration: none;
}


/* Pagination */

.portfolio-pagination {
    margin-top: 55px;
}

.portfolio-pagination .nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;

    gap: 8px;
}

.portfolio-pagination .page-numbers {
    min-width: 44px;
    height: 44px;

    padding: 0 14px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #dbe3ec;
    border-radius: 12px;

    background: #ffffff;
    color: #475569;

    font-size: 13px;
    font-weight: 900;

    text-decoration: none;
}

.portfolio-pagination .page-numbers.current {
    border-color: #0f766e;

    background: #0f766e;
    color: #ffffff;
}


/* Empty */

.wp-portfolio-empty {
    padding: 80px 30px;

    text-align: center;

    border: 1px dashed #cbd5e1;
    border-radius: 24px;

    background: #ffffff;
}

.wp-portfolio-empty h2 {
    margin: 0;

    color: #0f172a;
}

.wp-portfolio-empty p {
    margin: 12px 0 0;

    color: #64748b;
}


/* Tablet */

@media (max-width: 1000px) {

    .portfolio-archive-hero .container,
    .portfolio-archive-content > .container {
        width: min(100% - 48px, 900px);
    }

}


/* Mobile */

@media (max-width: 660px) {

    .portfolio-archive-hero {
        padding-top: 55px;
        padding-bottom: 45px;
    }

    .portfolio-archive-hero .container,
    .portfolio-archive-content > .container {
        width: calc(100% - 32px);
    }

    .portfolio-archive-hero h1 {
        font-size: 42px;
    }

    .portfolio-archive-hero p {
        font-size: 14px;
        line-height: 1.9;
    }

}
/* =========================================================
   SINGLE PORTFOLIO
========================================================= */

.portfolio-single-page {
    background: #f8fafc;
}


/* =========================================================
   Hero
========================================================= */

.portfolio-single-hero {
    padding-top: clamp(55px, 8vh, 95px);
    padding-bottom: clamp(55px, 8vh, 95px);

    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(14, 165, 233, 0.10),
            transparent 32%
        ),
        #f8fafc;
}


.portfolio-single-hero-grid {
    width: min(1220px, calc(100% - 96px));

    margin-right: auto;
    margin-left: auto;

    display: grid;

    grid-template-columns:
        minmax(0, 0.9fr)
        minmax(0, 1.1fr);

    align-items: center;

    gap: clamp(45px, 6vw, 90px);
}


/* Intro */

.portfolio-single-intro {
    min-width: 0;
}

.portfolio-back-link {
    margin-bottom: 28px;

    display: inline-flex;
    align-items: center;

    gap: 8px;

    color: #64748b;

    font-size: 13px;
    font-weight: 800;

    text-decoration: none;
}

.portfolio-back-link:hover {
    color: #0f766e;
}


.portfolio-single-intro h1 {
    margin: 10px 0 0;

    color: #0f172a;

    font-size: clamp(42px, 5vw, 68px);
    font-weight: 950;
    line-height: 1.4;

    letter-spacing: -1px;
}


.portfolio-single-summary {
    margin: 25px 0 0;

    color: #64748b;

    font-size: 17px;
    line-height: 2;
}


.portfolio-single-actions {
    margin-top: 32px;
}


.portfolio-single-primary {
    min-height: 56px;

    padding: 0 25px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 16px;

    background: #0f766e;
    color: #ffffff;

    font-size: 15px;
    font-weight: 900;

    text-decoration: none;
}

.portfolio-single-primary:hover {
    background: #115e59;
    color: #ffffff;
}


/* =========================================================
   Cover
========================================================= */

.portfolio-single-cover {
    overflow: hidden;

    border: 1px solid #e2e8f0;
    border-radius: 30px;

    background: #ffffff;

    box-shadow:
        0 28px 70px rgba(15, 23, 42, 0.12);
}


.portfolio-single-cover img {
    display: block;

    width: 100%;
    height: auto;
}


.portfolio-single-placeholder {
    min-height: 430px;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            145deg,
            #081729,
            #15304e
        );
}

.portfolio-single-placeholder span {
    color: rgba(255, 255, 255, 0.12);

    font-size: 110px;
    font-weight: 950;
}


/* =========================================================
   Body
========================================================= */

.portfolio-single-body {
    padding-top: 85px;
    padding-bottom: 90px;

    background: #ffffff;
}


.portfolio-single-body-grid {
    width: min(1120px, calc(100% - 96px));

    margin-right: auto;
    margin-left: auto;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        280px;

    align-items: start;

    gap: 70px;
}


.portfolio-single-content h2 {
    margin: 8px 0 25px;

    color: #0f172a;

    font-size: 38px;
    font-weight: 950;
}


.portfolio-entry-content {
    color: #475569;

    font-size: 16px;
    line-height: 2.1;
}


.portfolio-entry-content p {
    margin: 0 0 20px;
}

.portfolio-entry-content h2,
.portfolio-entry-content h3 {
    margin-top: 36px;
    margin-bottom: 14px;

    color: #0f172a;
}


/* =========================================================
   Sidebar
========================================================= */

.portfolio-single-sidebar {
    display: flex;
    flex-direction: column;

    gap: 12px;
}


.portfolio-info-card {
    padding: 20px;

    border: 1px solid #e2e8f0;
    border-radius: 17px;

    background: #f8fafc;
}


.portfolio-info-label {
    display: block;

    margin-bottom: 7px;

    color: #64748b;

    font-size: 11px;
    font-weight: 800;
}


.portfolio-info-card strong {
    color: #0f172a;

    font-size: 14px;
    font-weight: 900;
}


/* =========================================================
   Project CTA
========================================================= */

.portfolio-project-cta {
    padding-top: 70px;
    padding-bottom: 80px;

    background: #f8fafc;
}


.portfolio-project-cta .container {
    width: min(1120px, calc(100% - 96px));

    margin-right: auto;
    margin-left: auto;
}


.portfolio-project-cta-box {
    padding: clamp(34px, 5vw, 58px);

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 40px;

    border-radius: 28px;

    background: #0f172a;
}


.portfolio-project-cta-box h2 {
    margin: 8px 0 0;

    color: #ffffff;

    font-size: clamp(30px, 3vw, 42px);
}


.portfolio-project-cta-box p {
    max-width: 680px;

    margin: 12px 0 0;

    color: #94a3b8;

    font-size: 14px;
    line-height: 1.9;
}


.portfolio-project-cta-button {
    min-width: 140px;
    min-height: 54px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 15px;

    background: #ffffff;
    color: #0f172a;

    font-weight: 900;

    text-decoration: none;
}


/* =========================================================
   Responsive
========================================================= */

@media (max-width: 1000px) {

    .portfolio-single-hero-grid {
        width: min(100% - 48px, 800px);

        grid-template-columns: 1fr;

        gap: 45px;
    }

    .portfolio-single-body-grid {
        width: min(100% - 48px, 800px);

        grid-template-columns: 1fr;
    }

    .portfolio-single-sidebar {
        display: grid;

        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

}


@media (max-width: 660px) {

    .portfolio-single-hero {
        padding-top: 45px;
        padding-bottom: 55px;
    }

    .portfolio-single-hero-grid,
    .portfolio-single-body-grid,
    .portfolio-project-cta .container {
        width: calc(100% - 32px);
    }

    .portfolio-single-intro h1 {
        font-size: 38px;
    }

    .portfolio-single-summary {
        font-size: 14px;
    }

    .portfolio-single-body {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .portfolio-single-sidebar {
        grid-template-columns: 1fr;
    }

    .portfolio-project-cta-box {
        align-items: stretch;
        flex-direction: column;
    }

    .portfolio-project-cta-button {
        width: 100%;
    }

}

/* =========================================================
   Portfolio project website button
========================================================= */

.portfolio-single-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 12px;
}

.portfolio-single-website {
    min-height: 56px;

    padding: 0 24px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    border: 1px solid #dbe3ec;
    border-radius: 16px;

    background: #ffffff;
    color: #0f172a;

    font-size: 15px;
    font-weight: 900;

    text-decoration: none;
}

.portfolio-single-website:hover {
    border-color: #0f766e;

    color: #0f766e;
}

@media (max-width: 520px) {

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

    .portfolio-single-primary,
    .portfolio-single-website {
        width: 100%;
    }
}

/* =========================================================
   Articles Archive
========================================================= */


.articles-archive{

    padding:90px 0 120px;

}



.articles-header{

    max-width:850px;

    margin:0 auto 70px;

    text-align:center;

}



.articles-header .section-kicker{

    display:inline-block;

    font-size:14px;

    color:#64748b;

    margin-bottom:18px;

    letter-spacing:.5px;

}



.articles-header h1{

    font-size:42px;

    line-height:1.4;

    color:#0f172a;

    margin-bottom:20px;

    font-weight:800;

}



.articles-header p{

    font-size:18px;

    line-height:2;

    color:#64748b;

}





/* Grid */


.articles-grid{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:32px;

}





/* Card */


.article-card{

    background:#ffffff;

    border-radius:24px;

    overflow:hidden;

    border:1px solid rgba(15,23,42,.08);

    box-shadow:0 15px 45px rgba(15,23,42,.06);

    transition:.35s ease;

}



.article-card:hover{

    transform:translateY(-8px);

    box-shadow:0 25px 60px rgba(15,23,42,.12);

}





.article-image{

    display:block;

    height:260px;

    overflow:hidden;

}



.article-image img{

    width:100%;

    height:100%;

    object-fit:cover;

    transition:.5s ease;

}



.article-card:hover .article-image img{

    transform:scale(1.05);

}





.article-card-content{

    padding:28px;

}





.article-meta{

    font-size:13px;

    color:#64748b;

    margin-bottom:15px;

}





.article-card h2{

    font-size:22px;

    line-height:1.7;

    margin:0 0 15px;

}



.article-card h2 a{

    color:#0f172a;

    text-decoration:none;

}





.article-card p{

    font-size:15px;

    line-height:2;

    color:#64748b;

    margin-bottom:25px;

}





.article-read-more{

    display:inline-flex;

    align-items:center;

    gap:10px;

    color:#0f172a;

    font-weight:700;

    text-decoration:none;

}





.article-read-more span{

    transition:.3s;

}



.article-read-more:hover span{

    transform:translateX(-5px);

}





/* Responsive */


@media(max-width:1024px){


    .articles-grid{

        grid-template-columns:repeat(2,1fr);

    }


}



@media(max-width:768px){


    .articles-archive{

        padding:60px 0 80px;

    }


    .articles-header h1{

        font-size:30px;

    }



    .articles-grid{

        grid-template-columns:1fr;

    }



    .article-image{

        height:220px;

    }


}

/* =========================================================
   Single Article
========================================================= */


.single-article{

    padding:90px 0 120px;

}



.article-single-content{

    max-width:900px;

    margin:auto;

}



.article-single-header{

    text-align:center;

    margin-bottom:50px;

}



.article-single-header .article-meta{

    color:#64748b;

    font-size:14px;

    margin-bottom:20px;

}



.article-single-header h1{

    font-size:46px;

    line-height:1.6;

    color:#0f172a;

    font-weight:800;

}





.article-single-image{

    max-width:760px;

    margin:0 auto 45px;

}


.article-single-image img{

    width:100%;

    height:auto;

}





.article-body{

    font-size:18px;

    line-height:2.2;

    color:#334155;

}



.article-body h2{

    margin-top:45px;

    margin-bottom:20px;

    font-size:30px;

    color:#0f172a;

}



.article-body h3{

    margin-top:35px;

    font-size:24px;

    color:#0f172a;

}



.article-body img{

    max-width:100%;

    height:auto;

    border-radius:20px;

}



.back-to-articles{

    display:inline-flex;

    margin-top:50px;

    color:#0f172a;

    text-decoration:none;

    font-weight:700;

}



.back-to-articles:hover{

    opacity:.7;

}





@media(max-width:768px){


    .article-single-header h1{

        font-size:30px;

    }



    .article-body{

        font-size:16px;

    }


}

/* =========================================================
   Services Page
========================================================= */


.services-page{

    padding:100px 0;

}



.services-hero{

    text-align:center;

    max-width:900px;

    margin:0 auto 90px;

}



.services-hero .section-kicker{

    color:#64748b;

    font-size:15px;

    display:block;

    margin-bottom:20px;

}



.services-hero h1{

    font-size:46px;

    line-height:1.5;

    color:#0f172a;

    margin-bottom:25px;

    font-weight:800;

}



.services-hero p{

    font-size:19px;

    line-height:2;

    color:#64748b;

}





.services-main-btn{

    display:inline-block;

    margin-top:35px;

    padding:15px 40px;

    background:#0f172a;

    color:white;

    border-radius:14px;

    text-decoration:none;

    font-weight:700;

}





/* Services cards */


.services-grid{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:30px;

    direction:rtl;

}



.service-card{

    background:white;

    border:1px solid #e2e8f0;

    border-radius:24px;

    padding:35px 30px;

    min-height:230px;

    transition:.35s;

}



.service-card:hover{

    transform:translateY(-8px);

    box-shadow:0 20px 45px rgba(15,23,42,.08);

}



.service-card h2{

    font-size:22px;

    color:#0f172a;

    line-height:1.7;

    margin-bottom:15px;

}



.service-card p{

    color:#64748b;

    line-height:2;

    font-size:15px;

}





/* Process */


.services-process{

    margin-top:110px;

    text-align:center;

}



.services-process h2{

    font-size:34px;

    margin-bottom:50px;

}





.process-items{

    display:flex;

    justify-content:center;

    gap:25px;

    direction:rtl;

}



.process-items div{

    width:180px;

    padding:25px 15px;

    border-radius:20px;

    background:#f8fafc;

}



.process-items span{

    font-size:30px;

    font-weight:800;

    color:#0f172a;

}



.process-items p{

    margin-top:15px;

    color:#475569;

}





/* CTA */


.services-cta{

    margin-top:100px;

    background:#0f172a;

    color:white;

    border-radius:30px;

    padding:60px 40px;

    text-align:center;

}



.services-cta h2{

    font-size:36px;

}



.services-cta p{

    margin:20px 0 35px;

    color:#cbd5e1;

}



.services-cta a{

    display:inline-block;

    padding:14px 35px;

    background:white;

    color:#0f172a;

    border-radius:12px;

    text-decoration:none;

    font-weight:700;

}





@media(max-width:900px){

    .services-grid{

        grid-template-columns:1fr;

    }


    .process-items{

        flex-direction:column;

        align-items:center;

    }


    .services-hero h1{

        font-size:32px;

    }

}

/* =========================================================
   Service Detail Page
========================================================= */


.service-detail-page{

    padding:55px 0;

}



.service-detail-hero{

    text-align:center;

    max-width:900px;

    margin:0 auto 45px;

}



.service-detail-hero .section-kicker{

    display:block;

    color:#64748b;

    margin-bottom:20px;

}



.service-detail-hero h1{

    font-size:40px;

    line-height:1.5;

    color:#0f172a;

    margin-bottom:15px;

    font-weight:800;

}



.service-detail-hero p{

    font-size:19px;

    line-height:2.2;

    color:#64748b;

}





.service-introduction{

    max-width:900px;

    margin:0 auto 45px;

    text-align:right;

}



.service-introduction h2,
.service-features h2,
.service-technology h2,
.service-process h2{

    font-size:32px;

    color:#0f172a;

    margin-bottom:35px;

}



.service-introduction p{

    font-size:18px;

    line-height:2.3;

    color:#475569;

}





/* Features */


.service-feature-grid{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:25px;

    direction:rtl;

}



.service-feature-grid div{

    background:#fff;

    border:1px solid #e2e8f0;

    border-radius:24px;

    padding:30px 25px;
    
    min-height:160px;

}



.service-feature-grid h3{

    font-size:21px;

    color:#0f172a;

    margin-bottom:15px;

}



.service-feature-grid p{

    color:#64748b;

    line-height:2;

}






/* Technology */


.service-technology{

    margin-top:55px;

    text-align:center;

}



.technology-list{

    display:flex;

    justify-content:center;

    gap:15px;

    flex-wrap:wrap;

}



.technology-list span{

    background:#f1f5f9;

    color:#0f172a;

    padding:12px 25px;

    border-radius:50px;

    font-weight:700;

}





/* Process */


.service-process{

    margin-top:55px;

    text-align:center;

}



.service-process .process-items{

    display:flex;

    justify-content:center;

    gap:20px;

    direction:rtl;

}



.service-process .process-items div{

    background:#f8fafc;

    padding:25px;

    border-radius:20px;

    width:170px;

    line-height:2;

}



.service-process strong{

    display:block;

    font-size:30px;

    color:#0f172a;

}





/* CTA */


.service-final-cta{

    margin-top:55px;

    background:#0f172a;

    color:#fff;

    padding:60px 40px;

    border-radius:30px;

    text-align:center;

}



.service-final-cta h2{

    font-size:34px;

}



.service-final-cta p{

    color:#cbd5e1;

    margin:20px 0 35px;

}



.service-final-cta a{

    display:inline-block;

    background:#fff;

    color:#0f172a;

    padding:14px 35px;

    border-radius:12px;

    text-decoration:none;

    font-weight:700;

}





@media(max-width:1000px){

    .service-feature-grid{

        grid-template-columns:repeat(2,1fr);

    }

}



@media(max-width:700px){

    .service-feature-grid{

        grid-template-columns:1fr;

    }


    .service-detail-hero h1{

        font-size:32px;

    }


    .service-process .process-items{

        flex-direction:column;

        align-items:center;

    }

}

/* Service Detail Pages */

.service-detail-page{
    padding:80px 0;
}


.service-detail-hero{
    text-align:center;
    padding-bottom:70px;
}


.service-detail-hero h1{
    font-size:clamp(34px,4vw,56px);
    margin-bottom:25px;
}


.service-detail-hero p{
    max-width:850px;
    margin:auto;
    font-size:20px;
    line-height:2;
}


.service-introduction,
.service-features,
.service-technology,
.service-process{
    margin-top:0px;
}


.service-detail-page h2{
    font-size:clamp(28px,3vw,42px);
    margin-bottom:45px;
}



.service-feature-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:30px;
}


.service-feature-grid div{
    border:1px solid #e4e8ef;
    border-radius:25px;
    padding:35px 25px;
    text-align:center;
}



.technology-list{
    display:flex;
    flex-wrap:wrap;
    gap:18px;
    justify-content:center;
}


.technology-list span{
    background:#f4f6fa;
    padding:15px 28px;
    border-radius:50px;
}


.process-items{
    display:flex;
    justify-content:space-between;
    gap:25px;
}


.process-items div{
    text-align:center;
}


.process-items strong{
    display:block;
    font-size:45px;
    margin-bottom:15px;
}



@media(max-width:900px){

.service-feature-grid{
grid-template-columns:1fr 1fr;
}


.process-items{
flex-direction:column;
}


}


/* Experience Areas */

.service-experience{
    margin-top:80px;
}


.service-experience h2{
    text-align:center;
    margin-bottom:40px;
}


.experience-list{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:20px;
}


.experience-list span{
    background:#f4f6fa;
    border:1px solid #e3e7ef;
    padding:18px 30px;
    border-radius:50px;
    font-size:16px;
    color:#10182f;
    transition:.3s;
}


.experience-list span:hover{
    transform:translateY(-3px);
}

/* =====================================
   Enterprise Service Page Refinement
===================================== */


/* Hero */

.service-detail-hero{
    padding-bottom:80px;
}


.service-detail-hero h1{
    margin-bottom:25px;
}


.service-detail-hero p{
    max-width:900px;
    margin:0 auto 35px;
    line-height:2;
}



/* Introduction */

.service-introduction{
    margin-top:70px;
}


.service-intro-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:70px;
    align-items:center;
}


.service-benefits{
    background:#f7f8fb;
    border-radius:25px;
    padding:35px;
}


.service-benefits div{
    margin-bottom:22px;
    font-size:18px;
}


.service-benefits span{
    color:#10182f;
    font-weight:bold;
    margin-left:10px;
}



/* Feature Cards */

.service-feature-grid{
    margin-top:40px;
}


.service-feature-grid div{
    min-height:230px;
    display:flex;
    flex-direction:column;
    justify-content:center;
}



/* Experience */

.service-experience{
    margin-top:90px;
}


.experience-list{
    margin-top:35px;
}



/* Technology */

.service-technology{
    margin-top:10px;
}


.technology-list{
    margin-top:40px;
}



/* Process */

.service-process{
    margin-top:100px;
}


.process-items{
    margin-top:45px;
}


.process-items div{
    flex:1;
    border:1px solid #e4e8ef;
    border-radius:22px;
    padding:35px 20px;
    background:#fff;
}


.process-items strong{
    width:65px;
    height:65px;
    display:flex;
    align-items:center;
    justify-content:center;
    margin:0 auto 20px;
    border-radius:50%;
    background:#10182f;
    color:white;
    font-size:24px;
}



/* Final CTA */

.service-final-cta{
    margin-top:90px;
    padding:70px 40px;
}


.service-final-cta h2{
    font-size:32px;
}


.service-final-cta p{
    font-size:18px;
}




/* Responsive */

@media(max-width:900px){

.service-intro-grid{
    grid-template-columns:1fr;
}


.process-items{
    flex-direction:column;
}


.service-final-cta{
    padding:45px 20px;
}

}

/* ==============================
   SERVICE DETAIL PAGES
============================== */


.service-detail-page {
     padding:25px 0 60px;
}


.service-detail-page .container {
    max-width: 1200px;
    margin: 0 auto;
}



/* HERO */

.service-detail-hero {

    text-align:center;
    padding:50px 0 70px;

}


.service-detail-hero h1 {

    max-width:1100px;
    margin:0 auto 25px;

    font-size:clamp(36px,3vw,52x);
    line-height:1.45;

}


.service-detail-hero p {

    max-width:850px;
    margin:0 auto 35px;

    font-size:20px;
    line-height:2;

}


.services-main-btn {

    padding:14px 42px;
    border-radius:16px;

}

.service-detail-hero .section-kicker {
    display: inline-block;
    margin-bottom: 20px;
    color: #64748b;
    font-size: 16px;
}


.service-detail-hero h1 {
    font-size: clamp(32px,4vw,56px);
    line-height: 1.4;
    color:#111827;
    margin-bottom:25px;
    word-break:normal;
}


.service-detail-hero p {
    max-width:850px;
    margin:0 auto 35px;
    font-size:22px;
    line-height:2;
    color:#64748b;
}



.services-main-btn {
    display:inline-flex;
    padding:16px 45px;
    background:#111827;
    color:white;
    border-radius:18px;
    text-decoration:none;
}



/* INTRODUCTION */


.service-introduction {
    padding:70px 0;
}


.service-introduction-content {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:60px;
    align-items:center;
}


.service-introduction h2,
.service-features h2,
.service-technology h2,
.service-process h2 {
    font-size:40px;
    color:#111827;
    margin-bottom:35px;
}


.service-introduction p {
    font-size:20px;
    line-height:2.1;
    color:#475569;
}



.service-benefits {
    background:#f8fafc;
    padding:40px;
    border-radius:30px;
}


.service-benefits p {
    font-size:20px;
    margin:22px 0;
    color:#111827;
}





/* FEATURES */


.service-features {
    padding:80px 0;
}


.service-feature-grid {
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:25px;
}



.service-feature-grid > div {

    border:1px solid #e2e8f0;
    border-radius:28px;
    padding:35px 25px;
    text-align:center;
    min-height:260px;
    display:flex;
    flex-direction:column;
    justify-content:center;

}


.service-feature-grid h3 {

    font-size:24px;
    margin-bottom:20px;
    color:#111827;

}


.service-feature-grid p {

    color:#64748b;
    line-height:2;

}






/* TECHNOLOGY */


.service-technology {

    padding:70px 0;
    text-align:center;

}



.technology-list {

    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:18px;

}



.technology-list span {

    background:#f8fafc;
    border-radius:50px;
    padding:15px 30px;
    color:#111827;
    border:1px solid #e5e7eb;
}





/* PROCESS */


.service-process {

    padding:80px 0;

}



.process-items {

    display:grid;
    grid-template-columns:repeat(5,1fr);
    gap:20px;

}



.process-items div {

    min-height:220px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    font-size:18px;

}



.process-items strong {

    display:flex;
    width:90px;
    height:90px;
    margin:0 auto 25px;
    border-radius:50%;
    background:#111827;
    color:white;
    align-items:center;
    justify-content:center;
    font-size:30px;

}




/* CTA */


.service-final-cta {

    margin-top:80px;
    padding:70px 40px;
    background:#111827;
    color:white;
    border-radius:35px;
    text-align:center;

}



.service-final-cta h2 {

    font-size:36px;
    margin-bottom:25px;

}


.service-final-cta p {

    font-size:20px;
    margin-bottom:35px;

}



.service-final-cta a {

    display:inline-block;
    background:white;
    color:#111827;
    padding:15px 40px;
    border-radius:15px;
    text-decoration:none;

}







/* RESPONSIVE */

@media(max-width:1024px){


.service-feature-grid {
    grid-template-columns:repeat(2,1fr);
}


.process-items {
    grid-template-columns:repeat(3,1fr);
}


}


@media(max-width:768px){


.service-detail-page {
    padding: 80px 0 60px;
}


.service-introduction-content {
    grid-template-columns:1fr;
}


.service-feature-grid {
    grid-template-columns:1fr;
}


.process-items {
    grid-template-columns:1fr;
}



.service-detail-hero p {
    font-size:18px;
}


}

.service-features {
    padding: 50px 0;
}


.service-technology {
    padding: 45px 0;
}


.service-process {
    padding: 55px 0;
}

.technology-list span {
    font-size:16px;
    font-weight:600;
}

.section {
    scroll-margin-top:100px;
}


.service-feature-grid {

    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:24px;
    margin-top:45px;

}


.service-feature-grid > div {

    background:#ffffff;

    border:1px solid #e4e8f0;

    border-radius:20px;

    padding:35px 25px;

    text-align:center;

    min-height:210px;

    display:flex;

    flex-direction:column;

    justify-content:center;

    transition:.3s ease;

}



.service-feature-grid h3 {

    font-size:22px;

    color:#10182d;

    margin-bottom:18px;

}



.service-feature-grid p {

    font-size:16px;

    line-height:2;

    color:#68758b;

}



.service-feature-grid > div:hover {

    transform:translateY(-6px);

    box-shadow:0 15px 35px rgba(15,25,45,.08);

}

@media(max-width:1100px){

.service-feature-grid{

grid-template-columns:repeat(2,1fr);

}

}



@media(max-width:600px){

.service-feature-grid{

grid-template-columns:1fr;

}

}

.technology-list {

    display:flex;

    flex-wrap:wrap;

    justify-content:center;

    gap:18px;

    margin-top:45px;

}



.technology-list span {

    background:#ffffff;

    border:1px solid #e5e9f2;

    border-radius:50px;

    padding:14px 28px;

    font-size:15px;

    font-weight:600;

    color:#10182d;

    transition:.3s ease;

    white-space:nowrap;

}



.technology-list span:hover {

    background:#10182d;

    color:#ffffff;

    border-color:#10182d;

    transform:translateY(-4px);

}

@media(max-width:700px){

.technology-list{

    gap:12px;

}


.technology-list span{

    padding:12px 20px;

    font-size:14px;

}

}

.service-process {

    margin-top:30px;

}


.service-process h2 {

    text-align:center;

    font-size:42px;

    color:#10182d;

    margin-bottom:60px;

}



.process-items {

    display:grid;

    grid-template-columns:repeat(5,1fr);

    gap:25px;

}



.process-items > div {

    background:#ffffff;

    border:1px solid #e3e8f2;

    border-radius:22px;

    min-height:220px;

    display:flex;

    flex-direction:column;

    justify-content:center;

    align-items:center;

    text-align:center;

    padding:25px;

    color:#10182d;

    font-size:18px;

    line-height:2;

}



.process-items strong {


    width:70px;

    height:70px;

    display:flex;

    align-items:center;

    justify-content:center;


    background:#10182d;

    color:white;

    border-radius:50%;


    font-size:24px;

    margin-bottom:25px;


}

@media(max-width:1200px){


.process-items{

grid-template-columns:repeat(3,1fr);

}


}



@media(max-width:700px){


.process-items{

grid-template-columns:1fr;

}


.service-process h2{

font-size:32px;

}


}

.service-process .process-items {

    display:grid;
    grid-template-columns:repeat(5,1fr);
    gap:25px;
    align-items:start;

}



.service-process .process-items > div {

    height:220px;

    background:#fff;

    border:1px solid #e3e8f2;

    border-radius:22px;

    display:flex;

    flex-direction:column;

    align-items:center;

    justify-content:flex-start;

    padding-top:35px;

    text-align:center;

}



.service-process .process-items strong {

    width:70px;
    height:70px;

    flex-shrink:0;

    display:flex;

    align-items:center;
    justify-content:center;

    background:#10182d;

    color:#fff;

    border-radius:50%;

    font-size:24px;

    margin-bottom:35px;

}



.service-process .process-items > div {

    line-height:1.8;

}

.service-process .process-items {

    display:grid;

    gap:30px;

}
.service-process .process-items > div {

    height:200px;

    padding-top:30px;

}
@media(max-width:1300px){

.service-process .process-items{

    grid-template-columns:repeat(3,220px);

}

}
.service-process .process-items {

    display:flex;

    justify-content:center;

    gap:22px;

    flex-wrap:nowrap;

}



.service-process .process-items > div {

    width:220px;

    height:210px;

    flex-shrink:0;

    background:#fff;

    border:1px solid #e3e8f2;

    border-radius:22px;

    display:flex;

    flex-direction:column;

    align-items:center;

    justify-content:flex-start;

    padding-top:35px;

    text-align:center;

}



.service-process .process-items strong {

    width:70px;

    height:70px;

    display:flex;

    align-items:center;

    justify-content:center;

    background:#10182d;

    color:#fff;

    border-radius:50%;

    font-size:24px;

    margin-bottom:30px;

}
.service-final-cta {

    margin-top:100px;

    background:#10182d;

    border-radius:30px;

    padding:60px 40px;

    text-align:center;

    color:#fff;

}



.service-final-cta h2 {

    font-size:38px;

    line-height:1.6;

    margin-bottom:20px;

    color:#fff;

}



.service-final-cta p {

    font-size:18px;

    color:#d5dbea;

    margin-bottom:35px;

}



.service-final-cta a {

    display:inline-block;

    background:#fff;

    color:#10182d;

    padding:14px 40px;

    border-radius:12px;

    font-weight:700;

    text-decoration:none;

    transition:.3s ease;

}



.service-final-cta a:hover {

    transform:translateY(-3px);

}

@media(max-width:700px){

.service-final-cta{

    padding:40px 20px;

}


.service-final-cta h2{

    font-size:28px;

}


.service-final-cta p{

    font-size:15px;

}

}
.service-final-cta h2 {

    max-width:1000px;

    margin-left:auto;

    margin-right:auto;

}
.service-final-cta h2 {

    font-size:clamp(26px,3vw,38px);

}

.service-card{
    text-decoration:none;
    color:inherit;
    display:block;
}

.service-card:hover{
    transform:translateY(-5px);
}

/* =========================
   Footer
========================= */

.site-footer {

    background:#071020;
    color:#ffffff;
    padding:70px 60px 25px;
    margin-top:40px;

}


.footer-container {

    max-width:1200px;
    margin:auto;

    display:flex;
    justify-content:space-between;
    align-items:flex-start;

    direction:rtl;

}


.footer-brand {

    width:40%;

}


.footer-brand img {

    width:240px;
    margin-bottom:18px;

}


.footer-brand p {

    color:#aab8d5;
    font-size:14px;
    line-height:2;

}




.footer-links,
.footer-contact {

    display:flex;
    flex-direction:column;
    gap:12px;

}


.footer-links h3,
.footer-contact h3 {

    color:#fff;
    font-size:17px;
    margin-bottom:12px;

}



.footer-links a,
.footer-contact a {

    color:#8fa0c0;
    text-decoration:none;
    font-size:14px;
    line-height:1.8;

}


.footer-links a:hover,
.footer-contact a:hover {

    color:white;

}




.footer-bottom {

    max-width:1200px;
    margin:50px auto 0;

    padding-top:20px;

    border-top:1px solid rgba(255,255,255,.15);

    display:flex;
    justify-content:space-between;

    color:#71809d;
    font-size:14px;

}




@media(max-width:768px){


.footer-container{

    flex-direction:column;
    gap:40px;
    align-items:flex-start;

}


.footer-brand{

    width:100%;

}


.footer-bottom{

    flex-direction:column;
    gap:15px;

}


}


/* =========================
   Project CTA Section
========================= */


.project-cta {

    max-width:1200px;
    margin:80px auto 70px;

    padding:70px 70px;

    background:linear-gradient(
        110deg,
        #126d6b,
        #0b1428 75%
    );

    border-radius:45px;

    position:relative;
    overflow:hidden;

    direction:rtl;

}



/* دایره‌های تزئینی سمت چپ */

.project-cta::before {

    content:"";

    position:absolute;

    width:450px;
    height:450px;

    left:-180px;
    top:-100px;

    border-radius:50%;

    background:rgba(255,255,255,.06);

}



.project-cta::after {

    content:"";

    position:absolute;

    width:300px;
    height:300px;

    left:20px;
    bottom:-150px;

    border-radius:50%;

    background:rgba(255,255,255,.04);

}




.cta-content {

    position:relative;
    z-index:2;

    display:flex;

    justify-content:space-between;

    align-items:center;

    gap:40px;

}



.cta-text {

    max-width:700px;

}



.cta-text span {

    color:#5ee7e2;

    font-size:18px;

    font-weight:700;

}



.cta-text h2 {

    color:white;

    font-size:42px;

    margin:20px 0;

}



.cta-text p {

    color:#d5def0;

    font-size:18px;

    line-height:2;

}



.cta-action {

    text-align:center;

}



.cta-action a {

    display:inline-block;

    background:white;

    color:#10182d;

    padding:18px 45px;

    border-radius:15px;

    font-size:18px;

    font-weight:700;

    text-decoration:none;

}



.cta-action p {

    color:#5ee7e2;

    margin-top:25px;

    font-size:16px;

}




@media(max-width:768px){


.project-cta{

    padding:45px 25px;

}


.cta-content{

    flex-direction:column;

    text-align:center;

}


.cta-text h2{

    font-size:30px;

}

}

.about-hero{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:clamp(30px,4vw,60px);
    direction:rtl;
    min-height:calc(100vh - 120px);
    max-height:none;
    overflow:visible;
    padding:clamp(20px,4vh,50px) 0;
}


.about-hero-image{
    width:clamp(260px,25vw,330px);
    padding-top:clamp(0px,2vh,20px);
    flex-shrink:0;
    overflow:hidden;
}


.about-hero-image img{
    width:100%;
    height:auto;
    max-height:65vh;
    object-fit:cover;
    object-position:center 25%;
    border-radius:35px;
}


.about-hero-content{
flex:1;
}


.about-hero-content h1{
    font-size:clamp(36px,3.2vw,48px);
    line-height:1.35;
    color:#111827;
    margin:15px 0;
}


.about-hero-content p{
    font-size:clamp(16px,1.4vw,20px);
    line-height:2;
    margin-bottom:25px;
    color:#64748b;
}



.about-info-boxes{
    display:flex;
    gap:clamp(10px,1.5vw,20px);
   /* margin-top:35px; */
}


.about-info-boxes div{
    background:#fff;
    border:1px solid #e2e8f0;
    border-radius:16px;
    padding:clamp(12px,1.5vw,20px);
    flex:1;
}


.about-info-boxes span{
display:block;
color:#64748b;
font-size:14px;
margin-bottom:12px;
}


.about-info-boxes strong{
font-size:16px;
color:#0f172a;
}



.about-button{
display:inline-block;
margin-top:10px;
background:#117c73;
color:#fff;
padding:18px 45px;
border-radius:18px;
text-decoration:none;
font-weight:bold;
}

.career-section{
    padding: 25px 8%;
    direction:rtl;
    margin-top:40px;
}


.section-title{
    text-align:right;
    margin-bottom:15px;
}


.section-title span{
    color:#12877f;
    font-size:12px;
    font-weight:600;
}


.section-title h2{
    font-size:36px;
    color:#111827;
    margin-top:8px;
}



.career-timeline{
    position:relative;
    padding-right:20px;
}


.career-timeline:before{
    content:"";
    position:absolute;
    right:12px;
    top:0;
    bottom:0;
    width:3px;
    background:#dce4e8;
}



.career-item{
    position:relative;
    margin-bottom:12px;
}


.timeline-dot{
    position:absolute;
    right:-20px;
    top:22px;
    width:10px;
    height:10px;
    background:#14948b;
    border-radius:50%;
    border:4px solid #d8faf6;
    border-width:3px;
}



.career-card{
    background:white;
    border:1px solid #e1e7ee;
    border-radius:15px;
    padding:12px 28px;
    min-height:35px;
    display:flex;
    align-items:center;
    height:60px;
}


.career-card h3{
    font-size:17px;
    color:#0f172a;
    margin:0;
}

/* Education Section */

.about-education-section {
    padding: 60px 0;
}


.about-education-section .section-heading {
    margin-bottom: 35px;
    text-align: right;
}


.about-education-section .section-heading span {
    display: block;
    color: #14877f;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 15px;
}


.about-education-section .section-heading h2 {
    font-size: 36px;
    font-weight: 800;
    color: #111827;
    margin: 0;
}



/* Cards container */

.about-education-section .about-resume-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 28px;
}



/* Card */

.about-education-section .resume-card {

    background: #ffffff;

    border: 1px solid #e5e7eb;

    border-radius: 22px;

    padding: 22px 20px;

    min-height: 190px;

    display:flex;

    flex-direction:column;

    justify-content:center;

    text-align:right;

}



/* Year */

.about-education-section .resume-card span {

    color:#14877f;

    font-size:14px;

    font-weight:700;

    margin-bottom:15px;

}



/* Degree */

.about-education-section .resume-card h3 {

    font-size:20px;

    color:#111827;

    margin-bottom:12px;

    font-weight:800;

}



/* Field */

.about-education-section .resume-card h4 {

    color:#14877f;

    font-size:15px;

    line-height:1.8;

    margin-bottom:10px;

}



/* University */

.about-education-section .resume-card p {

    color:#64748b;

    font-size:14px;

    margin:0;

}

@media(max-width:900px){

.about-education-section .about-resume-grid{

grid-template-columns:1fr;

}


.about-education-section .section-heading h2{

font-size:38px;

}

}

.about-education-section .section-heading{
    display:block;
    text-align:right;
}


/* Certificates Section */

.about-certificate-section {
    padding-top: 50px;
}


.about-certificate-section .section-heading {
    margin-bottom: 35px;
}


.about-certificate-section .section-heading span {
    color: #0f8b83;
    font-size: 12px;
    font-weight: 600;
}


.about-certificate-section .section-heading h2 {
    font-size: clamp(36px, 5vw, 40px);
    font-weight: 800;
    color: #111827;
    margin: 0;
}


.certificate-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}


.certificate-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 25px;
    padding: 30px 25px;
    min-height: 210px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: right;
    transition: 0.3s ease;
}


.certificate-card:hover {
    transform: translateY(-5px);
}


.certificate-card span {
    color: #0f8b83;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
}


.certificate-card h3 {
    font-size: 22px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 15px;
}


.certificate-card p {
    font-size: 16px;
    color: #64748b;
    margin: 0;
}

@media(max-width:900px){

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


    .about-certificate-section .section-heading h2{
        font-size:38px;
    }


    .certificate-card{
        padding:35px 25px;
    }

}

.about-certificate-section .section-heading{
    display:block;
    text-align:right;
}


/* =========================================================
   Contact form validation states
========================================================= */

.inquiry-form.was-validated
.form-field input:invalid,

.inquiry-form.was-validated
.form-field select:invalid,

.inquiry-form.was-validated
.form-field textarea:invalid,

.inquiry-form
.form-field .field-invalid {

    border-color: #dc2626 !important;

    background: #fff7f7;

    box-shadow:
        0 0 0 3px rgba(220, 38, 38, 0.08);
}


.inquiry-form.was-validated
.form-field input:valid,

.inquiry-form.was-validated
.form-field select:valid,

.inquiry-form.was-validated
.form-field textarea:valid {

    border-color: #86efac;
}


.inquiry-form.was-validated
.form-field input:invalid:focus,

.inquiry-form.was-validated
.form-field select:invalid:focus,

.inquiry-form.was-validated
.form-field textarea:invalid:focus {

    border-color: #dc2626 !important;

    box-shadow:
        0 0 0 4px rgba(220, 38, 38, 0.12);
}

/* =========================================================
   Project CTA — Django-like contact style
========================================================= */

.project-cta .cta-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}


/* فقط دکمه اصلی */

.project-cta .project-cta-button {
    min-width: 300px;
    padding: 20px 34px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 18px;

    background: #ffffff;
    color: #0f172a;

    font-size: 18px;
    font-weight: 900;

    text-decoration: none;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.project-cta .project-cta-button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 14px 35px rgba(15, 23, 42, 0.18);
}


/* تلفن و ایمیل */

.project-cta .project-cta-contact {
    margin: 0;

    color: #5eead4;

    font-size: 15px;
    font-weight: 700;

    text-align: center;
}


/* لینک تلفن و ایمیل نباید باکس شوند */

.project-cta .project-cta-contact a {
    display: inline !important;

    width: auto !important;
    min-width: 0 !important;
    height: auto !important;

    padding: 0 !important;
    margin: 0 !important;

    border: 0 !important;
    border-radius: 0 !important;

    background: transparent !important;

    color: #5eead4 !important;

    font-size: inherit;
    font-weight: 700;

    text-decoration: none;

    box-shadow: none !important;
    transform: none !important;
}


/* شماره کمی پررنگ‌تر */

.project-cta .project-cta-contact:first-of-type a {
    color: #ffffff !important;
    font-size: 17px;
    font-weight: 900;
}


/* ایمیل */

.project-cta .project-cta-contact:last-of-type a {
    color: #5eead4 !important;
}


/* Hover */

.project-cta .project-cta-contact a:hover {
    color: #ffffff !important;
    text-decoration: underline;
    text-underline-offset: 4px;
}


@media (max-width: 660px) {

    .project-cta .project-cta-button {
        width: 100%;
        min-width: 0;
    }

    .project-cta .project-cta-contact {
        font-size: 14px;
    }

}

