:root {
    --bg: #fffafc;
    --bg-soft: #fff1f5;
    --bg-blush: #ffe4ec;
    --ink: #1a1a1a;
    --ink-muted: #6f6a6c;
    --pink: #e91e63;
    --pink-deep: #c2185b;
    --pink-soft: rgba(233, 30, 99, 0.12);
    --peach: #f0c9b0;
    --peach-soft: #f7ddd0;
    --sand: #f3e6dc;
    --dark: #141414;
    --line: rgba(26, 26, 26, 0.08);
    --surface: #ffffff;
    --shadow: 0 18px 48px rgba(26, 26, 26, 0.07);
    --radius: 18px;
    --radius-pill: 999px;
    --font: "Vazirmatn", Tahoma, sans-serif;
    --font-display: "Playfair Display", Georgia, serif;
    --font-num: "Vazirmatn", Tahoma, sans-serif;
    --header-h: 76px;
    --max: 1120px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.8;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
    object-fit: cover;
}

.num,
.experience-panel strong,
.xp-row strong {
    font-family: var(--font-num) !important;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
    letter-spacing: 0;
    font-weight: 700;
}

.brand-name {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.04em;
    font-size: 1.2rem;
}

.brand-mark {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: linear-gradient(145deg, #ff8fb3, var(--pink));
    flex-shrink: 0;
    box-shadow: 0 0 0 5px var(--pink-soft);
}

/* ——— Buttons ——— */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 48px;
    padding: 0.7rem 1.55rem;
    border-radius: var(--radius-pill);
    border: 1.5px solid transparent;
    font-family: var(--font);
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.btn-sm {
    min-height: 40px;
    padding: 0.45rem 1.2rem;
    font-size: 0.86rem;
}

.btn-primary {
    background: var(--pink);
    color: #fff;
    box-shadow: 0 10px 24px rgba(233, 30, 99, 0.28);
}

.btn-primary:hover {
    background: var(--pink-deep);
    transform: translateY(-1px);
}

.btn-outline,
.btn-ghost {
    background: transparent;
    color: var(--ink);
    border-color: rgba(26, 26, 26, 0.16);
}

.btn-outline:hover,
.btn-ghost:hover {
    border-color: var(--pink);
    color: var(--pink);
    background: var(--pink-soft);
}

/* ——— Header ——— */
.site-header {
    position: fixed;
    inset-inline: 0;
    top: 0;
    z-index: 100;
    height: var(--header-h);
    background: transparent;
    transition: background 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s;
    border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
    background: rgba(255, 250, 252, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom-color: var(--line);
    box-shadow: 0 8px 28px rgba(26, 26, 26, 0.04);
}

.header-inner {
    max-width: calc(var(--max) + 4rem);
    margin: 0 auto;
    padding: 0 1.25rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    z-index: 2;
}

.brand-logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.28);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 1.5px;
    margin: 5px auto;
    background: var(--ink);
    transition: transform 0.3s var(--ease), opacity 0.3s;
}

.nav-toggle.is-open span:first-child {
    transform: translateY(3.25px) rotate(45deg);
}

.nav-toggle.is-open span:last-child {
    transform: translateY(-3.25px) rotate(-45deg);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.4rem;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--ink-muted);
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--pink);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-inline-start: 0.4rem;
}

/* ——— Hero ——— */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    padding: calc(var(--header-h) + 1.5rem) 1.25rem 3.5rem;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 55% 50% at 85% 20%, rgba(240, 201, 176, 0.55), transparent 60%),
        radial-gradient(ellipse 45% 45% at 10% 80%, rgba(255, 228, 236, 0.8), transparent 55%),
        linear-gradient(180deg, #fffafc 0%, #fff5f8 100%);
    pointer-events: none;
    overflow: hidden;
}

.hero-grid-lines {
    position: absolute;
    inset: 0;
    opacity: 0.35;
    background-image:
        linear-gradient(rgba(233, 30, 99, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(233, 30, 99, 0.06) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    will-change: transform;
}

.hero-orb-a {
    width: 280px;
    height: 280px;
    background: rgba(233, 30, 99, 0.18);
    top: 12%;
    inset-inline-end: 18%;
}

.hero-orb-b {
    width: 220px;
    height: 220px;
    background: rgba(240, 201, 176, 0.45);
    bottom: 16%;
    inset-inline-start: 8%;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 2.5rem;
    align-items: center;
    width: 100%;
}

.hero-brand {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 6.5vw, 4.4rem);
    font-weight: 600;
    line-height: 1.05;
    margin-bottom: 0.85rem;
    color: var(--ink);
}

.hero-title {
    font-family: var(--font);
    font-size: clamp(1.45rem, 3vw, 2.1rem);
    font-weight: 700;
    line-height: 1.55;
    max-width: 16ch;
    margin-bottom: 1rem;
}

.accent-text {
    color: var(--pink);
    display: block;
}

.hero-lead {
    font-size: 1rem;
    color: var(--ink-muted);
    max-width: 34ch;
    margin-bottom: 1.75rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero-visual {
    position: relative;
    min-height: min(68vh, 560px);
    will-change: transform;
}

.hero-shape {
    position: absolute;
    pointer-events: none;
}

.hero-shape-rect {
    width: 58%;
    height: 72%;
    top: 8%;
    inset-inline-start: 6%;
    background: var(--peach);
    border-radius: 28px;
}

.hero-shape-circle {
    width: min(46vw, 280px);
    height: min(46vw, 280px);
    border-radius: 50%;
    background: var(--peach-soft);
    bottom: 4%;
    inset-inline-end: 2%;
}

.hero-photo {
    position: absolute;
    overflow: hidden;
    margin: 0;
    box-shadow: var(--shadow);
}

.hero-photo img {
    width: 100%;
    height: 100%;
}

.hero-photo-main {
    width: 52%;
    height: 78%;
    top: 4%;
    inset-inline-start: 10%;
    border-radius: 24px;
    z-index: 2;
}

.hero-photo-side {
    width: 38%;
    height: 58%;
    top: 10%;
    inset-inline-end: 0;
    border-radius: 120px 120px 28px 28px;
    z-index: 3;
}

.hero-photo-circle {
    width: min(34vw, 190px);
    height: min(34vw, 190px);
    border-radius: 50%;
    bottom: 2%;
    inset-inline-end: 12%;
    z-index: 4;
    border: 6px solid #fff;
}

/* ——— Service strip ——— */
.strip {
    padding: 0 1.25rem 1rem;
}

.strip-track {
    max-width: var(--max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.strip-item {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    margin: 0;
}

.strip-item img {
    width: 100%;
    height: 100%;
    transition: transform 0.5s var(--ease);
}

.strip-item:hover img {
    transform: scale(1.06);
}

.strip-item figcaption {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    padding: 2.5rem 0.9rem 1rem;
    background: linear-gradient(transparent, rgba(20, 20, 20, 0.72));
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
}

/* ——— Sections ——— */
.section {
    padding: 5rem 1.25rem;
}

.section-soft {
    background: var(--bg-soft);
}

.section-dark {
    background: var(--dark);
    color: #f7f3f4;
}

.section-inner {
    max-width: var(--max);
    margin: 0 auto;
}

.section-head {
    margin-bottom: 2.5rem;
}

.section-head.is-center {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-head.is-center .section-lead,
.section-head.is-center h2 {
    margin-inline: auto;
}

.eyebrow {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--pink);
    margin-bottom: 0.75rem;
}

.eyebrow.light {
    color: #ff8fb3;
}

.section h2 {
    font-family: var(--font);
    font-size: clamp(1.45rem, 2.8vw, 2.05rem);
    font-weight: 700;
    line-height: 1.55;
    margin-bottom: 0.85rem;
    max-width: 22ch;
}

.section-lead {
    color: var(--ink-muted);
    max-width: 42ch;
    margin-bottom: 0;
}

.section-lead.align-start {
    margin-bottom: 1.5rem;
}

.section-lead.light {
    color: rgba(247, 243, 244, 0.68);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
    align-items: center;
}

.about-visual {
    position: relative;
    min-height: 420px;
}

.about-orb {
    position: absolute;
    border-radius: 50%;
    background: var(--peach-soft);
}

.about-orb-a {
    width: 220px;
    height: 220px;
    top: 8%;
    inset-inline-start: 8%;
}

.about-orb-b {
    width: 160px;
    height: 160px;
    bottom: 10%;
    inset-inline-end: 12%;
    background: var(--bg-blush);
}

.about-pic {
    position: absolute;
    border-radius: 50%;
    overflow: hidden;
    border: 6px solid #fff;
    box-shadow: var(--shadow);
    margin: 0;
}

.about-pic img {
    width: 100%;
    height: 100%;
}

.about-pic-1 {
    width: 210px;
    height: 210px;
    top: 6%;
    inset-inline-start: 12%;
    z-index: 2;
}

.about-pic-2 {
    width: 170px;
    height: 170px;
    top: 28%;
    inset-inline-end: 8%;
    z-index: 3;
}

.about-pic-3 {
    width: 150px;
    height: 150px;
    bottom: 6%;
    inset-inline-start: 28%;
    z-index: 2;
}

.check-list {
    display: grid;
    gap: 0.7rem;
}

.check-list li {
    position: relative;
    padding-inline-start: 1.4rem;
    font-weight: 500;
}

.check-list li::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 0.55rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--pink);
}

.experience-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
}

.experience-panel {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    padding: 1.75rem;
    display: grid;
    gap: 1.1rem;
}

.xp-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.xp-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.xp-row span {
    color: rgba(247, 243, 244, 0.62);
    font-size: 0.92rem;
}

.xp-row strong {
    font-size: 1.55rem;
    color: #fff;
}

.xp-row.accent strong {
    color: #ff8fb3;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.15rem;
}

.tech-box {
    position: relative;
    border-radius: 22px;
    padding: 1px;
    isolation: isolate;
    transform-style: preserve-3d;
    transition: transform 0.25s var(--ease);
    will-change: transform;
}

.tech-box-glow {
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    overflow: hidden;
    z-index: 0;
}

.tech-box-glow::before {
    content: "";
    position: absolute;
    inset: -45%;
    background: conic-gradient(
        from 0deg,
        transparent 0%,
        transparent 58%,
        rgba(233, 30, 99, 0.12) 68%,
        #e91e63 76%,
        #ff8fb3 82%,
        transparent 90%,
        transparent 100%
    );
    animation: techSpin 3.2s linear infinite;
}

@keyframes techSpin {
    to { transform: rotate(360deg); }
}

.tech-box-inner {
    position: relative;
    z-index: 1;
    height: 100%;
    min-height: 220px;
    padding: 1.55rem 1.25rem 1.4rem;
    border-radius: 21px;
    background:
        linear-gradient(165deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 245, 248, 0.96) 100%);
    border: 1px solid rgba(26, 26, 26, 0.05);
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.tech-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: var(--pink);
    background:
        linear-gradient(145deg, rgba(233, 30, 99, 0.12), rgba(255, 143, 179, 0.08));
    border: 1px solid rgba(233, 30, 99, 0.14);
    margin-bottom: 0.35rem;
}

.tech-icon svg {
    width: 24px;
    height: 24px;
}

.tech-box h3 {
    font-family: var(--font);
    font-size: 1.05rem;
    font-weight: 700;
}

.tech-box p {
    color: var(--ink-muted);
    font-size: 0.9rem;
    line-height: 1.75;
}

.tech-box:hover .tech-icon {
    background: var(--pink);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 10px 24px rgba(233, 30, 99, 0.28);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.gallery-grid figure {
    margin: 0;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 1;
}

.gallery-grid img {
    width: 100%;
    height: 100%;
    transition: transform 0.45s var(--ease);
}

.gallery-grid figure:hover img {
    transform: scale(1.05);
}

.cta-section {
    background:
        radial-gradient(ellipse 70% 80% at 50% 0%, rgba(255, 143, 179, 0.22), transparent 60%),
        var(--bg-soft);
    text-align: center;
}

.cta-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-brand {
    font-size: 1.55rem;
    margin-bottom: 0.65rem;
    color: var(--pink);
}

.cta-section h2 {
    max-width: 18ch;
    margin-inline: auto;
    font-family: var(--font);
}

.cta-section > .section-inner > p,
.cta-inner > p {
    color: var(--ink-muted);
    margin-bottom: 1.75rem;
    max-width: 36ch;
}

/* ——— Footer ——— */
.site-footer {
    background: var(--dark);
    color: rgba(247, 243, 244, 0.72);
    padding: 3.25rem 1.25rem 1.5rem;
}

.footer-inner {
    max-width: var(--max);
    margin: 0 auto 2rem;
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-logo {
    font-size: 1.45rem;
    margin-bottom: 0.6rem;
    color: #fff;
}

.footer-text {
    max-width: 32ch;
    font-size: 0.92rem;
}

.footer-meta {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.92rem;
}

.footer-meta a:hover {
    color: #ff8fb3;
}

.footer-bottom {
    max-width: var(--max);
    margin: 0 auto;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.82rem;
}

/* ——— Motion ——— */
.reveal {
    opacity: 0;
    transform: translateY(28px) scale(0.98);
    animation: revealUp 1s var(--ease) forwards;
}

.reveal-delay-1 { animation-delay: 0.15s; }
.reveal-delay-2 { animation-delay: 0.3s; }
.reveal-delay-3 { animation-delay: 0.45s; }

@keyframes revealUp {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* ——— Responsive ——— */
@media (max-width: 980px) {
    .hero-grid,
    .about-grid,
    .experience-layout {
        grid-template-columns: 1fr;
        gap: 2.2rem;
    }

    .hero-visual {
        min-height: 420px;
        order: -1;
    }

    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-visual {
        min-height: 360px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .site-nav {
        position: fixed;
        inset: 0;
        background: rgba(255, 250, 252, 0.98);
        flex-direction: column;
        justify-content: center;
        gap: 1.2rem;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.3s var(--ease), visibility 0.3s;
    }

    .site-nav.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-link {
        font-size: 1.15rem;
        color: var(--ink);
    }

    .nav-actions {
        margin: 1rem 0 0;
        flex-direction: column;
        width: min(260px, 80vw);
    }

    .nav-actions .btn {
        width: 100%;
    }

    .strip-track {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section {
        padding: 3.75rem 1.25rem;
    }

    .hero-copy {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-title,
    .hero-lead {
        max-width: 22ch;
    }

    .hero-actions {
        justify-content: center;
    }
}

@media (max-width: 520px) {
    .tech-grid {
        grid-template-columns: 1fr;
    }

    .strip-track {
        grid-template-columns: 1fr 1fr;
        gap: 0.7rem;
    }

    .hero-photo-side {
        width: 42%;
        height: 48%;
    }

    .hero-photo-circle {
        width: 120px;
        height: 120px;
    }

    .about-pic-1 { width: 160px; height: 160px; }
    .about-pic-2 { width: 130px; height: 130px; }
    .about-pic-3 { width: 110px; height: 110px; }

    .btn {
        width: 100%;
    }

    .hero-actions {
        width: 100%;
        flex-direction: column;
    }
}
