/* ==========================================================
   01. فونت
   ========================================================== */
@font-face {
    font-family: "vazirmatn";
    src: url("./fonts/Vazir.woff2") format("woff2");
    font-display: swap;
}

/* ==========================================================
   02. متغیرها
   ========================================================== */
:root {
    --ink: #142d49;
    --shadow: 0 24px 70px rgba(54, 112, 158, .13);
    --glass: rgba(255, 255, 255, .76);
}

/* ==========================================================
   03. ریست و پایه
   ========================================================== */
* {
    box-sizing: border-box;
    font-family: "vazirmatn", sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 115px;
}

body {
    position: relative;
    isolation: isolate;
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    line-height: 1.8;
    overflow-x: hidden;
    background:
        radial-gradient(ellipse at 12% 15%, rgba(190, 225, 250, .32), transparent 35%),
        radial-gradient(ellipse at 90% 55%, rgba(205, 235, 255, .35), transparent 38%),
        linear-gradient(135deg, #fbfdff 0%, #f0f8ff 48%, #fafdff 100%);
    background-attachment: fixed;
}

a {
    color: inherit;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

img {
    max-width: 100%;
}

main {
    padding-top: 90px;
}

.section-wrap {
    width: min(1120px, calc(100% - 64px));
    margin-inline: auto;
}

/* ==========================================================
   04. نورهای پس‌زمینه
   ========================================================== */
.page-glow {
    position: fixed;
    z-index: -1;
    border-radius: 50%;
    filter: blur(2px);
    pointer-events: none;
    will-change: transform;
}

.glow-one {
    width: 470px;
    height: 470px;
    top: 100px;
    right: -170px;
    background: radial-gradient(circle, rgba(196, 229, 251, .48), transparent 70%);
    animation: glow-drift-one 22s ease-in-out infinite alternate;
}

.glow-two {
    width: 500px;
    height: 500px;
    top: 820px;
    left: -220px;
    background: radial-gradient(circle, rgba(216, 239, 255, .55), transparent 70%);
    animation: glow-drift-two 27s ease-in-out infinite alternate;
}

/* ==========================================================
   05. هدر و منو
   ========================================================== */
.site-header {
    position: fixed;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: min(1240px, calc(100% - 64px));
    height: 76px;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--glass);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 20px;
    box-shadow:
        0 10px 35px rgba(66, 130, 174, .09),
        inset 0 1px 0 rgba(255, 255, 255, .9);
}

.logo-link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-link img {
    width: 85px;
    height: 65px;
    object-fit: contain;
}

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

.main-nav a {
    position: relative;
    padding: 8px 0;
    font-size: 13px;
    font-weight: 750;
    color: #496984;
    transition: color .35s ease, transform .35s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: #2685c5;
}

/* نقطه زیر لینک فعال */
.main-nav a::after {
    content: "";
    position: absolute;
    width: 6px;
    height: 6px;
    bottom: -12px;
    right: 50%;
    border-radius: 50%;
    background: #58aee0;
    box-shadow: 0 0 8px rgba(88, 174, 224, .65);
    opacity: 0;
    transform: translateX(50%) scale(.3);
    transition: opacity .3s ease, transform .4s ease;
}

.main-nav a.active::after {
    opacity: 1;
    transform: translateX(50%) scale(1);
}

.header-cta {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 17px;
    background: linear-gradient(135deg, #e7f4ff, #f5faff);
    border: 1px solid #d7ebfb;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 800;
    color: #287ebd;
    transition: .25s ease;
}

.header-cta:hover {
    background: #dceeff;
    transform: translateY(-2px);
}

/* دکمه همبرگری فقط در موبایل نشان داده می‌شود */
.menu-toggle,
.menu-button {
    display: none;
}

/* ==========================================================
   06. بخش معرفی (Hero)
   ========================================================== */
.hero {
    min-height: 660px;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    position: relative;
    padding: 65px 0 95px;
}

.hero-copy {
    padding-top: 4px;
    min-width: 0;
}

.eyebrow,
.section-kicker {
    font-size: 11px;
    letter-spacing: 1.4px;
    color: #5c9dce;
    font-weight: 700;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: #eef7ff;
    border: 1px solid #deeffc;
    padding: 7px 13px;
    border-radius: 30px;
    letter-spacing: 0;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #64b6e8;
    box-shadow: 0 0 0 4px #d9efff;
}

.hero h1 {
    font-size: clamp(36px, 4.5vw, 57px);
    line-height: 1.55;
    letter-spacing: -1.7px;
    margin: 24px 0 16px;
    font-weight: 850;
}

.name-highlight {
    color: #398dca;
}

.outline-text {
    color: transparent;
    -webkit-text-stroke: 1.4px #5a9fd0;
}

.blue-period {
    color: #68b3e7;
}

.hero-description {
    font-size: 13px;
    line-height: 2.2;
    color: #74889c;
    max-width: 480px;
    margin: 0;
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 29px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 19px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 700;
    transition: .25s;
}

.button-primary {
    background: linear-gradient(120deg, #5ba9df, #3889c7);
    color: white;
    box-shadow: 0 10px 22px rgba(65, 143, 201, .22);
}

.button-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 25px rgba(65, 143, 201, .28);
}

.button-quiet {
    color: #6c8195;
}

.button-quiet:hover {
    color: #267dbb;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 11px;
    color: #a0afbd;
    font-size: 10px;
    margin-top: 45px;
}

.meta-line {
    width: 34px;
    height: 1px;
    background: #9bc9e9;
}

/* ---------- عکس ---------- */
.hero-visual {
    height: 490px;
    position: relative;
    display: grid;
    place-items: center;
    isolation: isolate;
}

.photo-frame {
    width: 310px;
    height: 390px;
    background: white;
    border: 1px solid #d8eaf7;
    border-radius: 160px 160px 20px 20px;
    padding: 12px;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 4;
    transform: rotate(2deg);
}

.photo-topline,
.photo-caption {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #8ba9c1;
    font-size: 8px;
    letter-spacing: 1.5px;
    padding: 3px 9px;
    position: relative;
    z-index: 6;
}

.photo-topline span:last-child {
    font-size: 16px;
    color: #65a9d8;
}

.photo-area {
    height: 320px;
    margin: 9px 0;
    background: linear-gradient(145deg, #e6f4ff, #d1e9fa 55%, #f4faff);
    border-radius: 150px 150px 13px 13px;
    position: relative;
    isolation: isolate;
}

/* عکس کمی از قاب بالا بیرون می‌زند (اثر پاپ‌آوت) */
.photo-area img {
    position: absolute;
    width: 100%;
    height: 115%;
    left: 0;
    bottom: 0;
    object-fit: contain;
    object-position: center bottom;
    clip-path: inset(-55px 0 0 0 round 150px 150px 13px 13px);
    z-index: 5;
}

.visual-orbit {
    position: absolute;
    border: 1px solid #d3eafa;
    border-radius: 50%;
    z-index: 0;
}

.orbit-one {
    width: 460px;
    height: 460px;
}

.orbit-two {
    width: 390px;
    height: 390px;
    border-style: dashed;
    opacity: .7;
}

.floating-note {
    position: absolute;
    z-index: 7;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, .95);
    border-radius: 12px;
    padding: 12px 15px;
    box-shadow: 0 12px 30px rgba(72, 129, 169, .12);
    font-size: 9px;
    color: #8a9eaf;
    line-height: 1.6;
}

.floating-note b {
    color: #315d7f;
    font-size: 10px;
}

.note-top {
    top: 200px;
    right: -10px;
}

.note-bottom {
    bottom: 66px;
    left: -20px;
}

.note-icon {
    width: 29px;
    height: 29px;
    display: grid;
    place-items: center;
    background: #eaf6ff;
    border-radius: 9px;
    color: #4d9bd2;
    font-size: 18px;
}

.note-number {
    font: 20px Georgia;
    color: #62a9d9;
}

.visual-spark {
    position: absolute;
    color: #7ab9e3;
}

.spark-one {
    right: 20px;
    bottom: 83px;
    font-size: 26px;
}

.spark-two {
    left: 40px;
    top: 70px;
    font-size: 28px;
}

/* ==========================================================
   07. مهارت‌ها
   ========================================================== */

.skills {
    padding: 90px 0;
}

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

.section-heading h2,
.about-content h2 {
    font-size: 34px;
    line-height: 1.5;
    margin: 7px 0 0;
    letter-spacing: -.8px;
}

.section-heading h2 span,
.about-content h2 span {
    color: #559ed2;
}

.section-heading>p {
    max-width: 380px;
    color: #8799aa;
    font-size: 12px;
    margin: 0 0 6px;
}
.skill-icon {
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.skill-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 8px 15px rgba(100, 170, 230, 0.2));
    transition: transform 0.4s ease;
}

.skill-card:hover .skill-icon img {
    transform: translateY(-6px) scale(1.06);
}

/* شبکه اصلی مهارت‌ها */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}

/* ==========================================================
   کارت‌های مهارت | Premium Icy Glass
   ========================================================== */

.skill-card {
    --card-glow: rgba(112, 184, 231, .16);

    min-width: 0;
    padding: 29px;
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;

    background:
        radial-gradient(
            circle at 100% 0%,
            var(--card-glow),
            transparent 43%
        ),
        linear-gradient(
            145deg,
            rgba(255,255,255,.94),
            rgba(245,250,255,.76)
        );

    backdrop-filter: blur(18px) saturate(145%);
    -webkit-backdrop-filter: blur(18px) saturate(145%);

    border: 1px solid rgba(255,255,255,.95);
    border-radius: 22px;

    box-shadow:
        0 5px 12px rgba(57,112,154,.025),
        0 18px 42px rgba(57,112,154,.075),
        inset 0 1px 0 rgba(255,255,255,.95),
        inset 0 0 0 1px rgba(205,229,247,.35);

    overflow: hidden;

    transition:
        transform .45s cubic-bezier(.2,.8,.2,1),
        box-shadow .45s ease,
        border-color .45s ease,
        background .45s ease;
}

/* نور ظریف گوشه کارت */
.skill-card::before {
    content: "";
    position: absolute;
    z-index: -1;
    width: 190px;
    height: 190px;
    top: -110px;
    left: -100px;
    border-radius: 50%;
    background: rgba(128,196,239,.19);
    filter: blur(35px);
    opacity: .5;
    transition: .6s ease;
    pointer-events: none;
}

/* خط درخشان بالای کارت */
.skill-card::after {
    content: "";
    position: absolute;
    top: 0;
    right: 12%;
    width: 76%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(112,184,231,.55),
        transparent
    );
    opacity: .65;
    transition: .4s ease;
    pointer-events: none;
}

.skill-card:hover {
    transform: translateY(-8px);
    border-color: rgba(139,196,235,.85);

    box-shadow:
        0 12px 25px rgba(57,112,154,.06),
        0 28px 60px rgba(57,112,154,.13),
        inset 0 1px 0 rgba(255,255,255,1);
}

.skill-card:hover::before {
    transform: translate(35px,25px) scale(1.3);
    opacity: 1;
}

.skill-card:hover::after {
    right: 0;
    width: 100%;
    opacity: 1;
}

/* کارت اصلی سئو */
.seo-card {
    grid-column: 1 / -1;
    padding: 36px;

    --card-glow: rgba(100,174,224,.24);

    background:
        radial-gradient(
            ellipse at 100% 0%,
            rgba(194,226,249,.72),
            transparent 48%
        ),
        radial-gradient(
            ellipse at 0% 100%,
            rgba(225,241,253,.7),
            transparent 45%
        ),
        linear-gradient(
            135deg,
            rgba(255,255,255,.97),
            rgba(240,248,255,.88)
        );

    border-color: #c9e3f6;

    box-shadow:
        0 12px 35px rgba(61,128,177,.09),
        0 25px 65px rgba(61,128,177,.06),
        inset 0 1px 0 white;
}

/* سربرگ کارت */
.skill-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 21px;
}

.skill-icon-box {
    width: 53px;
    height: 53px;
    display: grid;
    place-items: center;
    border-radius: 17px;

    background: linear-gradient(
        145deg,
        rgba(255,255,255,.98),
        rgba(222,240,253,.85)
    );

    border: 1px solid rgba(207,230,247,.9);

    box-shadow:
        0 6px 15px rgba(79,146,193,.09),
        inset 0 1px 0 white;

    transition: transform .4s ease, box-shadow .4s ease;
}

.skill-icon-box img {
    width: 29px;
    height: 29px;
    object-fit: contain;
}

.skill-card:hover .skill-icon-box {
    transform: translateY(-3px) rotate(-4deg);
    box-shadow: 0 10px 22px rgba(79,146,193,.16);
}

.skill-index {
    font: 17px Georgia, serif;
    color: #9fc6e4;
    letter-spacing: 1px;
    transition: color .3s ease;
}

.skill-card:hover .skill-index {
    color: #559ed2;
}

.skill-category {
    display: block;
    font: 9px Arial, sans-serif;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #65a5d4;
    margin-bottom: 9px;
}

.skill-card h3 {
    font-size: 20px;
    font-weight: 850;
    color: #244461;
    margin: 0 0 13px;
    line-height: 1.8;
}

.skill-card>p {
    font-size: 12px;
    line-height: 2.35;
    color: #788fa3;
    margin: 0 0 21px;
}

/* جزئیات کارت سئو */
.skill-intro {
    max-width: 850px;
}

.skill-details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 13px 0 27px;
}

.skill-detail {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 17px;

    background: rgba(255,255,255,.57);
    border: 1px solid rgba(213,232,247,.85);
    border-radius: 15px;

    box-shadow: inset 0 1px 0 rgba(255,255,255,.8);

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

.skill-detail:hover {
    transform: translateY(-4px);
    background: rgba(255,255,255,.9);
    border-color: #b9d9ef;
}

.detail-number {
    flex-shrink: 0;
    color: #65a5d4;
    font: 14px Georgia, serif;
    padding-top: 2px;
}

.skill-detail h4,
.skill-subsection h4 {
    font-size: 12px;
    font-weight: 800;
    color: #365e7e;
    margin: 0 0 7px;
}

.skill-detail p {
    color: #8295a7;
    font-size: 10px;
    line-height: 2.1;
    margin: 0;
}

/* ابزارهای سئو */
.skill-tools {
    padding-top: 21px;
    border-top: 1px solid rgba(199,222,240,.7);
}

.tools-label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    color: #587e9e;
    margin-bottom: 13px;
}

/* محتوای داخلی کارت‌ها */
.skill-subsection {
    margin-top: 9px;
    margin-bottom: 19px;
}

.skill-subsection h4 {
    margin-bottom: 12px;
}

.skill-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.skill-list li {
    position: relative;
    padding-right: 19px;
    color: #788fa3;
    font-size: 11px;
    line-height: 2.1;
}

.skill-list li::before {
    content: "";
    position: absolute;
    right: 0;
    top: 12px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #75b5df;
    box-shadow: 0 0 9px rgba(104,179,231,.35);
}

.skill-note {
    font-size: 10px !important;
    color: #8ba1b4 !important;
    margin-top: 13px !important;
    margin-bottom: 0 !important;
}

/* تگ‌ها */
.skill-tags,
.soft-skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.skill-tags span,
.soft-skill-tags span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    padding: 8px 12px;
    border-radius: 9px;

    background: rgba(235,246,255,.8);
    border: 1px solid rgba(210,231,247,.9);

    color: #5488af;
    font-size: 10px;
    line-height: 1.7;

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

.skill-tags span {
    direction: ltr;
    font-family: Arial, sans-serif;
}

.skill-tags span:hover,
.soft-skill-tags span:hover {
    transform: translateY(-2px);
    background: #fff;
    border-color: #a9cfe9;
}

.soft-skill-tags span {
    background: rgba(255,255,255,.7);
    color: #527d9f;
    font-size: 11px;
    direction: rtl;
}

/* کارت‌های مهارت نرم */
.soft-skill-card {
    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(214,235,250,.55),
            transparent 48%
        ),
        linear-gradient(
            145deg,
            rgba(255,255,255,.93),
            rgba(242,249,255,.83)
        );
}

.soft-skill-card>p {
    min-height: 80px;
}

/* دسترسی‌پذیری: حذف حرکت هاور برای لمس */
@media (hover: none) {
    .skill-card:hover,
    .skill-detail:hover {
        transform: none;
    }
}


/* ==========================================================
   08. نمونه‌کارها
   ========================================================== */
.projects {
    padding: 65px 0 90px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: start;
}

.project-card {
    min-width: 0;
    background: rgba(255, 255, 255, .82);
    border: 1px solid #e0edf7;
    border-radius: 17px;
    padding: 11px;
    box-shadow: 0 10px 30px rgba(68, 126, 167, .055);
    transition: transform .3s ease, box-shadow .3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 42px rgba(65, 133, 180, .13);
}

/* ارتفاع پیش‌نمایش؛ در موبایل فقط همین متغیر عوض می‌شود */
.project-preview {
    --preview-h: 245px;
    width: 100%;
    height: var(--preview-h);
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: linear-gradient(145deg, #edf7ff, #dceeff);
}

.preview-scroll {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.preview-scroll img {
    display: block;
    width: 100%;
    height: auto;
    min-height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 7s ease;
}

/* با هاور، اسکرین‌شات بلند تا پایین اسکرول می‌شود */
.project-preview:hover .preview-scroll img {
    transform: translateY(calc(-100% + var(--preview-h)));
    transition: transform 7s linear;
}

.website-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 7s ease;
}

.website-preview:hover img {
    transform: scale(1.06);
}

.figma-preview-link {
    position: absolute;
    bottom: 12px;
    right: 12px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, .92);
    color: #327fb7;
    border: 1px solid #d8ebf8;
    padding: 9px 13px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 800;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(65, 135, 190, .10);
    transition: .25s ease;
}

.figma-preview-link:hover {
    background: #fff;
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(65, 135, 190, .16);
}

.project-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 17px 7px 10px;
}

.project-type {
    font-size: 9px;
    font-weight: 800;
    color: #65a5d4;
    letter-spacing: 1px;
}

.project-info h3 {
    font-size: 14px;
    color: #244461;
    margin: 6px 0;
}

.project-info p {
    color: #899daf;
    font-size: 10px;
    margin: 0;
    line-height: 2;
}

.project-number {
    font-family: Georgia, serif;
    font-size: 22px;
    color: #8fc2e5;
    flex-shrink: 0;
}

/* ==========================================================
   09. درباره من
   ========================================================== */
.about {
    margin-top: 65px;
    margin-bottom: 100px;
    background: linear-gradient(135deg, rgba(255, 255, 255, .86), rgba(232, 245, 255, .75));
    border: 1px solid #e1eff9;
    border-radius: 22px;
    box-shadow: 0 15px 45px rgba(65, 132, 178, .07);
    min-height: 380px;
    padding: 58px 65px;
    display: grid;
    grid-template-columns: .65fr 1.5fr .5fr;
    align-items: center;
    gap: 25px;
    position: relative;
    overflow: hidden;
}

.about-decoration {
    font: 30px/1.2 Georgia, serif;
    letter-spacing: 3px;
    color: #b7d9f0;
    position: relative;
}

.about-decoration span {
    display: block;
    font-size: 35px;
    margin-top: 12px;
    color: #78b6df;
}

.about-content {
    position: relative;
    z-index: 1;
}

.about-content h2 {
    font-size: 32px;
    margin: 8px 0 16px;
}

.about-content p {
    font-size: 12px;
    color: #748a9d;
    line-height: 2.2;
    max-width: 520px;
}

.text-link {
    display: inline-flex;
    gap: 12px;
    align-items: center;
    color: #3788c2;
    font-size: 11px;
    font-weight: 700;
    margin-top: 10px;
}

.about-stamp {
    width: 105px;
    height: 105px;
    border: 1px solid #b9d9ef;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #70a9d0;
    font: 9px Georgia;
    letter-spacing: 2px;
    transform: rotate(-13deg);
}

.about-stamp b {
    font-size: 27px;
    font-weight: 400;
}

/* ==========================================================
   10. ارتباط با من
   ========================================================== */
.contact {
    margin-bottom: 75px;
}

.contact-panel {
    min-height: 340px;
    border-radius: 20px;
    background: linear-gradient(115deg, #1d4b70, #286f9f 60%, #438fc0);
    padding: 48px 55px;
    color: #fff;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.contact-copy {
    position: relative;
    z-index: 1;
}

.contact-copy .section-kicker {
    color: #a9d7f6;
}

.contact-copy h2 {
    font-size: 32px;
    line-height: 1.55;
    margin: 10px 0;
}

.contact-copy h2 span {
    color: #b6e0fb;
}

.contact-copy p {
    font-size: 11px;
    color: #d1e6f5;
    margin: 0 0 22px;
}

.button-light {
    background: #fff;
    color: #286f9f;
}

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

.contact-details {
    width: 285px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.contact-details a {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2px 10px;
    padding: 13px;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, .8);
    border-bottom: 1px solid rgba(222, 241, 253, .22);
    border-radius: 10px;
    background: rgba(255, 255, 255, .58);
    backdrop-filter: blur(8px);
    color: var(--ink);
    transition: .25s;
}

.contact-details a:hover {
    background: rgba(255, 255, 255, .9);
    transform: translateX(-4px);
}

.contact-details a span {
    font: 8px Arial;
    letter-spacing: 1.5px;
    grid-column: 1;
}

.contact-details a b {
    font-size: 11px;
    font-weight: 500;
    grid-column: 1;
}

.contact-details a i {
    font-style: normal;
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
}

.contact-watermark {
    position: absolute;
    font: 250px Georgia;
    color: rgba(255, 255, 255, .045);
    left: 36%;
    bottom: -100px;
    direction: ltr;
}

/* ==========================================================
   11. فوتر
   ========================================================== */
.site-footer {
    min-height: 90px;
    border-top: 1px solid #e6eff6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    color: #9aabba;
    font-size: 10px;
}

.site-footer>a:last-child {
    color: #6f9fc2;
}

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

.footer-logo img {
    max-width: 160px;
    height: auto;
    object-fit: contain;
}

/* ==========================================================
   12. افکت‌ها و انیمیشن‌ها
   ========================================================== */

/* ---- ورود اولیه Hero ---- */
.hero-visual {
    animation: hero-photo-enter 1.1s cubic-bezier(.22, 1, .36, 1) .15s both;
}

.hero-copy .eyebrow,
.hero-copy h1,
.hero-copy .hero-description,
.hero-copy .hero-actions,
.hero-copy .hero-meta {
    animation: hero-text-enter .85s cubic-bezier(.22, 1, .36, 1) both;
}

.hero-copy .eyebrow {
    animation-delay: .15s;
}

.hero-copy h1 {
    animation-delay: .3s;
}

.hero-copy .hero-description {
    animation-delay: .45s;
}

.hero-copy .hero-actions {
    animation-delay: .6s;
}

.hero-copy .hero-meta {
    animation-delay: .75s;
}

@keyframes hero-photo-enter {
    from {
        opacity: 0;
        translate: 0 35px;
        filter: blur(8px);
    }

    to {
        opacity: 1;
        translate: 0 0;
        filter: blur(0);
    }
}

@keyframes hero-text-enter {
    from {
        opacity: 0;
        translate: 25px 0;
        filter: blur(5px);
    }

    to {
        opacity: 1;
        translate: 0 0;
        filter: blur(0);
    }
}

/* ---- ظاهر شدن با اسکرول (کلاس‌ها را script.js اضافه می‌کند) ---- */
.reveal-on-scroll {
    opacity: 0;
    translate: 0 35px;
    filter: blur(5px);
    transition:
        opacity .9s ease,
        translate 1s cubic-bezier(.22, 1, .36, 1),
        filter .9s ease;
    will-change: opacity, translate, filter;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    translate: 0 0;
    filter: blur(0);
}

/* ---- حرکت نورهای پس‌زمینه ---- */
@keyframes glow-drift-one {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-35px, 45px) scale(1.12);
    }

    100% {
        transform: translate(25px, 75px) scale(.95);
    }
}

@keyframes glow-drift-two {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(40px, -35px) scale(1.1);
    }

    100% {
        transform: translate(-25px, -65px) scale(.96);
    }
}

/* ---- برف (عناصر را script.js می‌سازد) ---- */
.snow-layer {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.snowflake {
    position: absolute;
    top: -15px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .95);
    box-shadow:
        0 0 5px rgba(255, 255, 255, .9),
        0 0 12px rgba(160, 215, 245, .45);
    animation: snow-fall linear infinite;
}

@keyframes snow-fall {
    0% {
        transform: translate3d(0, -5vh, 0);
    }

    50% {
        transform: translate3d(var(--drift), 50vh, 0);
    }

    100% {
        transform: translate3d(0, 110vh, 0);
    }
}

/* ---- گل شیشه‌ای دنبال‌کننده موس (script.js می‌سازد) ---- */
.cursor-trail {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    width: 25px;
    height: 25px;
    pointer-events: none;
    opacity: 0;
    animation: crystal-fade 900ms ease-out forwards;
    filter: drop-shadow(0 0 5px rgba(139, 202, 240, .5));
}

.cursor-trail svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.cursor-trail path {
    fill: rgba(255, 255, 255, .28);
    stroke: rgba(105, 177, 222, .8);
    stroke-width: 1.2;
    stroke-linejoin: round;
}

.cursor-trail circle {
    fill: rgba(255, 255, 255, .9);
}

@keyframes crystal-fade {
    0% {
        opacity: 0;
        transform: scale(.3) rotate(0deg);
    }

    20% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: scale(1.3) rotate(65deg) translateY(-18px);
    }
}

/* ---- یخ گوشه‌ها ---- */
.ice-corners {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.ice-corner {
    position: absolute;
    width: 250px;
    height: 250px;
    opacity: .75;
    filter: drop-shadow(0 0 5px rgba(170, 220, 248, .35));
    background:
        repeating-linear-gradient(45deg, transparent 0 13px, rgba(255, 255, 255, .65) 14px, transparent 16px 28px),
        repeating-linear-gradient(-45deg, transparent 0 19px, rgba(160, 215, 245, .5) 20px, transparent 22px 36px),
        radial-gradient(ellipse at var(--ice-x) var(--ice-y), rgba(255, 255, 255, .95), rgba(205, 237, 255, .48) 30%, transparent 72%);
    -webkit-mask-image: radial-gradient(ellipse at var(--ice-x) var(--ice-y), black 0%, rgba(0, 0, 0, .8) 35%, transparent 75%);
    mask-image: radial-gradient(ellipse at var(--ice-x) var(--ice-y), black 0%, rgba(0, 0, 0, .8) 35%, transparent 75%);
}

.ice-top-left {
    top: 0;
    left: 0;
    --ice-x: 0%;
    --ice-y: 0%;
}

.ice-top-right {
    top: 0;
    right: 0;
    --ice-x: 100%;
    --ice-y: 0%;
}

.ice-bottom-left {
    bottom: 0;
    left: 0;
    --ice-x: 0%;
    --ice-y: 100%;
}

.ice-bottom-right {
    bottom: 0;
    right: 0;
    --ice-x: 100%;
    --ice-y: 100%;
}

/* ==========================================================
   13. تبلت (تا ۱۰۰۰ پیکسل)
   ========================================================== */
@media (max-width: 1000px) {
    .site-header {
        width: calc(100% - 40px);
        padding-inline: 16px;
    }

    .main-nav {
        gap: 15px;
    }

    .main-nav a {
        font-size: 11px;
    }

    .section-wrap {
        width: calc(100% - 48px);
    }

    .hero {
        min-height: 590px;
        grid-template-columns: 1fr 1fr;
    }

    .hero-visual {
        transform: scale(.88);
    }

    .hero-description {
        max-width: 100%;
    }

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

    .about {
        padding: 45px 35px;
        grid-template-columns: .45fr 1.6fr .35fr;
    }

    .contact-panel {
        padding: 42px;
    }
}

/* ==========================================================
   14. موبایل (تا ۷۰۰ پیکسل)
   ========================================================== */
@media (max-width: 700px) {
    html {
        scroll-padding-top: 90px;
    }

    main {
        padding-top: 75px;
    }

    .section-wrap {
        width: calc(100% - 32px);
    }

    /* ---- هدر ---- */
    .site-header {
        top: 10px;
        width: calc(100% - 24px);
        height: 62px;
        padding: 0 12px;
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        gap: 12px;
        background: rgba(235, 246, 255, .72);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        border: 1px solid rgba(255, 255, 255, .65);
        border-radius: 18px;
        box-shadow: 0 8px 25px rgba(75, 135, 190, .08);
    }

    .logo-link {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
    }

    .logo-link img {
        width: 65px;
        height: 52px;
    }

    .header-cta {
        display: none;
    }

    .menu-button {
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
        display: flex;
        width: 40px;
        height: 40px;
        align-items: center;
        justify-content: center;
        margin: 0;
        cursor: pointer;
        background: rgba(255, 255, 255, .8);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid #d9eaf7;
        border-radius: 11px;
    }

    /* ---- منوی بازشونده (به‌صورت انیمیشنی) ---- */
    .main-nav {
        position: absolute;
        top: calc(100% + 10px);
        right: 0;
        left: 0;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
        max-height: 0;
        padding: 0 12px;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-12px);
        background: rgba(240, 248, 255, .96);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, .9);
        border-radius: 18px;
        box-shadow: 0 12px 30px rgba(65, 125, 180, .14);
        transition:
            max-height .55s ease,
            opacity .35s ease,
            transform .45s ease,
            padding .4s ease,
            visibility .4s;
    }

    .menu-toggle:checked~.main-nav {
        max-height: 380px;
        padding: 12px;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .main-nav a {
        display: block;
        padding: 13px 16px;
        margin: 0;
        border-radius: 12px;
        background: rgba(255, 255, 255, .72);
        color: #426786;
        font-size: 13px;
        font-weight: 800;
        opacity: 0;
        transform: translateY(-8px);
        transition: opacity .3s ease, transform .4s ease;
    }

    .main-nav a:hover,
    .main-nav a.active {
        background: rgba(220, 239, 255, .95);
        color: #218bd0;
    }

    .main-nav a.active::after {
        display: none;
    }

    .menu-toggle:checked~.main-nav a {
        opacity: 1;
        transform: translateY(0);
    }

    .menu-toggle:checked~.main-nav a:nth-child(1) {
        transition-delay: .08s;
    }

    .menu-toggle:checked~.main-nav a:nth-child(2) {
        transition-delay: .14s;
    }

    .menu-toggle:checked~.main-nav a:nth-child(3) {
        transition-delay: .20s;
    }

    .menu-toggle:checked~.main-nav a:nth-child(4) {
        transition-delay: .26s;
    }

    .menu-toggle:checked~.main-nav a:nth-child(5) {
        transition-delay: .32s;
    }

    /* ---- Hero ---- */
    .hero {
        grid-template-columns: 1fr;
        padding: 35px 0 60px;
        min-height: 0;
    }

    .hero-copy {
        order: 1;
    }

    .hero h1 {
        font-size: 39px;
        line-height: 1.6;
    }

    .hero-description {
        font-size: 12px;
        max-width: 100%;
    }

    .hero-meta {
        margin-top: 28px;
    }

    .hero-visual {
        order: 0;
        height: 390px;
        transform: scale(.82);
        margin: -10px 0 -20px;
    }

    .photo-frame {
        width: 275px;
        height: 350px;
    }

    .photo-area {
        height: 282px;
    }

    .orbit-one {
        width: 390px;
        height: 390px;
    }

    .orbit-two {
        width: 330px;
        height: 330px;
    }

    .note-top {
        right: -30px;
        top: 55px;
    }

    .note-bottom {
        left: -8px;
        bottom: 48px;
    }

    /* ---- نمونه‌کارها ---- */

    .projects {
        padding: 65px 0;
    }

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

    .project-card {
        padding: 10px;
    }

    .project-preview {
        --preview-h: 260px;
    }


    /* ---- مهارت‌ها ---- */

    .skills {
        padding: 65px 0;
    }

    .section-heading {
        display: block;
        margin-bottom: 25px;
    }

    .section-heading h2,
    .about-content h2 {
        font-size: 29px;
    }

    .section-heading>p {
        font-size: 11px;
        margin-top: 8px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .skill-card,
    .seo-card {
        grid-column: auto;
        padding: 21px;
        border-radius: 15px;
    }

    .skill-card h3 {
        font-size: 17px;
    }

    .skill-card>p {
        font-size: 11px;
    }

    .skill-details {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .skill-detail {
        padding: 13px;
    }

    .skill-detail p {
        font-size: 10px;
    }

    .skill-tags,
    .soft-skill-tags {
        gap: 7px;
    }

    .skill-tags span,
    .soft-skill-tags span {
        font-size: 9px;
        padding: 6px 9px;
    }

    .soft-skill-card>p {
        min-height: 0;
    }


    /* ---- درباره من ---- */
    .about {
        margin-top: 35px;
        margin-bottom: 65px;
        padding: 35px 25px;
        display: block;
    }

    .about-decoration {
        font-size: 21px;
        margin-bottom: 22px;
    }

    .about-decoration span {
        display: inline-block;
        margin: 0 8px;
    }

    .about-content h2 {
        font-size: 27px;
    }

    .about-content p {
        font-size: 11px;
    }

    .about-stamp {
        position: absolute;
        left: 20px;
        top: 28px;
        width: 75px;
        height: 75px;
        font-size: 7px;
        opacity: .65;
    }

    .about-stamp b {
        font-size: 20px;
    }

    /* ---- ارتباط ---- */
    .contact {
        margin-bottom: 45px;
    }

    .contact-panel {
        display: block;
        padding: 35px 25px;
    }

    .contact-copy h2 {
        font-size: 27px;
    }

    .contact-details {
        width: 100%;
        margin-top: 28px;
    }

    .contact-watermark {
        font-size: 180px;
        left: -20px;
        bottom: -70px;
    }

    /* ---- فوتر ---- */
    .site-footer {
        flex-wrap: wrap;
        gap: 12px;
        padding: 18px 0;
    }

    .site-footer>a:last-child {
        font-size: 9px;
    }
}

/* گوشه‌های یخی کوچک‌تر در موبایل */
@media (max-width: 600px) {
    .ice-corner {
        width: 145px;
        height: 145px;
        opacity: .55;
    }
}

/* ==========================================================
   15. موبایل کوچک (تا ۳۸۰ پیکسل)
   ========================================================== */
@media (max-width: 380px) {
    .hero h1 {
        font-size: 34px;
    }

    .hero-visual {
        transform: scale(.74);
        margin-inline: -25px;
    }

    .hero-actions {
        gap: 5px;
    }

    .button {
        padding: 11px 13px;
    }

    .contact-copy h2 {
        font-size: 24px;
    }

    .project-preview {
        --preview-h: 225px;
    }

    .project-info h3 {
        font-size: 12px;
    }

    .note-top {
        right: -30px;
        top: -10px;
    }
}

/* ==========================================================
   16. دسترسی‌پذیری: کاهش حرکت
   ========================================================== */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }

    .hero-visual,
    .hero-copy .eyebrow,
    .hero-copy h1,
    .hero-copy .hero-description,
    .hero-copy .hero-actions,
    .hero-copy .hero-meta {
        animation: none !important;
        opacity: 1;
        filter: none;
        translate: none;
    }

    .reveal-on-scroll {
        opacity: 1;
        translate: none;
        filter: none;
        transition: none;
    }

    .glow-one,
    .glow-two {
        animation: none;
    }

    .ice-corners {
        display: none;
    }
}