/* ============================================================
   Personal Portfolio - Styles
   ============================================================
   Quick Customization Guide:
   - Colors: Modify --primary-* and --accent-* variables in :root below
   - Fonts: First add your chosen font from Google Fonts in index.html, then change --font-*
   ============================================================ */

/* ===== Color & Theme Settings (Edit here!) ===== */
:root {
    /* Main theme color (Teal) */
    --primary-50: #f0fdfa;
    --primary-100: #ccfbf1;
    --primary-200: #99f6e4;
    --primary-300: #5eead4;
    --primary-400: #2dd4bf;
    --primary-500: #14b8a6;
    --primary-600: #0d9488;
    --primary-700: #0f766e;
    --primary-800: #115e59;
    --primary-900: #134e4a;

    /* Accent color (Purple) */
    --accent-400: #a78bfa;
    --accent-500: #8b5cf6;
    --accent-600: #7c3aed;
    --accent-700: #6d28d9;

    /* Neutrals */
    --neutral-50: #fafafa;
    --neutral-100: #f4f4f5;
    --neutral-200: #e4e4e7;
    --neutral-300: #d4d4d8;
    --neutral-400: #a1a1aa;
    --neutral-500: #71717a;
    --neutral-600: #52525b;
    --neutral-700: #3f3f46;
    --neutral-800: #27272a;
    --neutral-900: #18181b;

    /* Background & Text — high contrast for light mode */
    --bg-primary: #f7f8fb;
    --bg-secondary: #ffffff;
    --bg-tertiary: #eef0f5;
    --text-primary: #111827;
    --text-secondary: #3f4654;
    --text-tertiary: #5b6474;
    --border-color: rgba(17, 24, 39, 0.1);
    --card-bg: rgba(255, 255, 255, 0.72);
    --card-border: rgba(255, 255, 255, 0.7);
    --card-highlight: rgba(255, 255, 255, 0.85);
    --glass: rgba(255, 255, 255, 0.62);

    /* Gradients — darker on light bg so clipped text stays readable */
    --gradient-contact: linear-gradient(135deg, #0f766e 0%, #115e59 28%, #6d28d9 78%, #5b21b6 100%);
    --gradient-accent: linear-gradient(135deg, #0f766e 0%, #7c3aed 100%);
    --gradient-accent-soft: linear-gradient(135deg, rgba(15, 118, 110, 0.18), rgba(124, 58, 237, 0.16));

    /* Fonts */
    --font-fa: 'Vazirmatn', Tahoma, Arial, sans-serif;
    --font-en-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-en-display: 'Outfit', 'Inter', sans-serif;
    --font-body: var(--font-en-body);
    --font-display: var(--font-en-display);

    /* Misc */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 8px 20px -8px rgba(15, 23, 42, 0.18);
    --shadow-lg: 0 28px 60px -18px rgba(15, 23, 42, 0.28);
    --shadow-3d:
        0 1px 0 var(--card-highlight) inset,
        0 18px 40px -20px rgba(15, 23, 42, 0.35),
        0 8px 16px -8px rgba(15, 23, 42, 0.12);
    --container-width: 1180px;
    --rx: 0deg;
    --ry: 0deg;
}

/* ===== RTL / Persian Language Overrides ===== */
[lang="fa"], [dir="rtl"] {
    --font-body: var(--font-fa);
    --font-display: var(--font-fa);
}

[lang="fa"] .hero-title,
[dir="rtl"] .hero-title,
[lang="fa"] .section-title,
[dir="rtl"] .section-title,
[lang="fa"] .project-title,
[dir="rtl"] .project-title,
[lang="fa"] .contact-title,
[dir="rtl"] .contact-title,
[lang="fa"] .timeline-year,
[dir="rtl"] .timeline-year {
    font-family: var(--font-fa);
    letter-spacing: 0 !important;
    font-feature-settings: "ss01";
}

[lang="fa"] body,
body[data-lang="fa"] {
    font-size: 16.5px;
    line-height: 1.85;
    letter-spacing: 0;
}

[lang="fa"] .section-label,
[dir="rtl"] .section-label,
[lang="fa"] .project-tag,
[dir="rtl"] .project-tag {
    text-transform: none;
    letter-spacing: 0.02em;
}

[lang="fa"] .contact-highlight,
[dir="rtl"] .contact-highlight {
    font-style: normal;
}

[lang="fa"] .hero-title {
    line-height: 1.18;
    font-weight: 800;
}


[lang="fa"] .hero-subtitle,
[lang="fa"] .section-description,
[lang="fa"] .project-desc,
[lang="fa"] .about-block-text {
    line-height: 1.95;
}

/* ===== Dark Theme — brighter text, never washed-out greys ===== */
[data-theme="dark"] {
    --bg-primary: #0c0d12;
    --bg-secondary: #16171e;
    --bg-tertiary: #22232c;
    --text-primary: #f5f6fa;
    --text-secondary: #d2d6e2;
    --text-tertiary: #b0b6c6;
    --border-color: rgba(255, 255, 255, 0.1);
    --card-bg: rgba(28, 29, 38, 0.72);
    --card-border: rgba(255, 255, 255, 0.1);
    --card-highlight: rgba(255, 255, 255, 0.08);
    --glass: rgba(18, 19, 26, 0.72);
    --gradient-accent: linear-gradient(135deg, #5eead4 0%, #c4b5fd 100%);
    --gradient-accent-soft: linear-gradient(135deg, rgba(45, 212, 191, 0.16), rgba(196, 181, 253, 0.14));
    --shadow-3d:
        0 1px 0 var(--card-highlight) inset,
        0 24px 50px -18px rgba(0, 0, 0, 0.7),
        0 8px 18px -8px rgba(0, 0, 0, 0.45);
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    color-scheme: light;
}

[data-theme="dark"] {
    color-scheme: dark;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease, font-family 0.2s ease;
    background-image:
        radial-gradient(ellipse 70% 50% at 12% -8%, rgba(15, 118, 110, 0.14), transparent 55%),
        radial-gradient(ellipse 55% 40% at 92% 4%, rgba(124, 58, 237, 0.12), transparent 50%);
}

.seo-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

[data-theme="dark"] body {
    background-image:
        radial-gradient(ellipse 70% 50% at 12% -8%, rgba(45, 212, 191, 0.12), transparent 55%),
        radial-gradient(ellipse 55% 40% at 92% 4%, rgba(167, 139, 250, 0.12), transparent 50%);
}

body::after {
    content: '';
    pointer-events: none;
    position: fixed;
    inset: 0;
    z-index: 80;
    opacity: 0.045;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

[data-theme="dark"] body::after {
    opacity: 0.07;
}

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

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Header & Nav ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--glass);
    backdrop-filter: blur(18px) saturate(1.3);
    -webkit-backdrop-filter: blur(18px) saturate(1.3);
    border-bottom: 1px solid transparent;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled {
    border-bottom-color: var(--border-color);
    box-shadow: 0 10px 30px -18px rgba(15, 23, 42, 0.35);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.01em;
}

.logo-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gradient-accent);
    display: inline-block;
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.16), 0 4px 10px rgba(124, 58, 237, 0.35);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
}

.nav-links a {
    font-size: 14px;
    color: var(--text-secondary);
    transition: color 0.2s ease;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--text-primary);
}

/* ===== Theme Toggle ===== */
.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: var(--text-secondary);
}

.theme-toggle:hover {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
}

.theme-toggle .sun-icon { display: none; }
.theme-toggle .moon-icon { display: block; }
[data-theme="dark"] .theme-toggle .sun-icon { display: block; }
[data-theme="dark"] .theme-toggle .moon-icon { display: none; }

/* ===== Language Toggle Button ===== */
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    border-radius: 100px;
    background-color: var(--bg-tertiary);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    transition: all 0.25s ease;
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 0 var(--card-highlight) inset, 0 6px 14px -8px rgba(15, 23, 42, 0.35);
}

.lang-toggle:hover {
    background-color: var(--bg-secondary);
    border-color: var(--neutral-300);
    color: var(--text-primary);
}

.lang-active {
    color: var(--primary-700);
}

[data-theme="dark"] .lang-active {
    color: var(--primary-300);
}

.lang-inactive {
    opacity: 0.55;
}

.lang-sep {
    color: var(--neutral-400);
    font-weight: 400;
}

body[data-lang="fa"] .lang-toggle .lang-active { color: var(--text-tertiary); opacity: 0.55; }
body[data-lang="fa"] .lang-toggle .lang-inactive { color: var(--primary-700); opacity: 1; }
[data-theme="dark"] body[data-lang="fa"] .lang-toggle .lang-inactive { color: var(--primary-300); }

/* ===== Hero Section ===== */
.hero {
    padding: 64px 0 96px;
    position: relative;
    overflow: hidden;
    perspective: 1200px;
}

.hero::before {
    content: '';
    position: absolute;
    top: -220px;
    left: 50%;
    transform: translateX(-50%);
    width: 920px;
    height: 920px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.25) 0%, transparent 66%);
    z-index: -1;
}

.hero::after {
    content: '';
    position: absolute;
    width: 520px;
    height: 520px;
    right: -140px;
    top: 60px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background:
        radial-gradient(circle at 30% 30%, rgba(167, 139, 250, 0.2), transparent 62%),
        radial-gradient(circle at 70% 70%, rgba(45, 212, 191, 0.18), transparent 58%);
    filter: blur(0.2px);
    z-index: -1;
}

[data-theme="dark"] .hero::before {
    background: radial-gradient(circle, rgba(45, 212, 191, 0.16) 0%, transparent 68%);
}

.hero-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-image-wrapper {
    margin-bottom: 34px;
    width: 226px;
    height: 276px;
    position: relative;
    perspective: 900px;
}

.hero-image-wrapper::before,
.hero-image-wrapper::after {
    content: '';
    position: absolute;
    inset: 8px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    z-index: 0;
}

.hero-image-wrapper::before {
    background: var(--primary-500);
    transform: translate3d(14px, 16px, -40px) rotate(7deg);
    opacity: 0.45;
}

.hero-image-wrapper::after {
    background: var(--accent-500);
    transform: translate3d(-12px, 12px, -60px) rotate(-8deg);
    opacity: 0.38;
}

.hero-image-frame {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
    transform: rotateX(8deg) rotateY(-12deg) rotate(-3deg);
    transform-style: preserve-3d;
    transition: transform 0.45s ease;
    filter: drop-shadow(0 26px 34px rgba(15, 23, 42, 0.34));
}

.hero-image-frame:hover {
    transform: rotateX(0deg) rotateY(0deg) rotate(0deg) scale(1.04);
}

.hero-image-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-accent);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    padding: 6px;
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    filter: grayscale(8%) saturate(1.06) contrast(1.02);
    transition: filter 0.3s ease;
}

.hero-image-frame:hover .hero-image {
    filter: grayscale(0%) saturate(1.14);
}

.hero-location {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 26px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
    box-shadow: 0 8px 18px -12px rgba(15, 23, 42, 0.45);
}

.location-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-500);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.15);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(40px, 7vw, 84px);
    line-height: 1.02;
    letter-spacing: -0.035em;
    font-weight: 800;
    margin-bottom: 18px;
    direction: ltr;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-primary);
}

[dir="rtl"] .hero-title,
[lang="fa"] .hero-title {
    direction: rtl;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: baseline;
    gap: 0.22em;
    letter-spacing: 0;
    white-space: nowrap;
}

.hero-name {
    color: var(--text-primary);
}

.hero-family,
.title-highlight {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--primary-800);
}

[data-theme="dark"] .hero-family,
[data-theme="dark"] .title-highlight {
    color: #99f6e4;
}

.hero-subtitle {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-secondary);
    max-width: 700px;
    margin-bottom: 16px;
    line-height: 1.75;
}

.hero-experience {
    display: inline-block;
    margin-top: 8px;
}

.highlight-text {
    color: var(--primary-800);
    font-weight: 700;
}

[data-theme="dark"] .highlight-text {
    color: #5eead4;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-top: 28px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    cursor: pointer;
    white-space: nowrap;
    transform: translateZ(0);
}

.btn svg {
    width: 18px;
    height: 18px;
    transition: transform 0.25s ease;
}

.btn-primary {
    background: var(--gradient-accent);
    color: #ffffff;
    box-shadow:
        0 1px 0 rgba(255,255,255,0.28) inset,
        0 10px 24px -8px rgba(109, 40, 217, 0.55),
        0 4px 0 rgba(76, 29, 149, 0.35);
}

[data-theme="dark"] .btn-primary {
    color: #0b1220;
    box-shadow:
        0 1px 0 rgba(255,255,255,0.35) inset,
        0 12px 28px -8px rgba(45, 212, 191, 0.35),
        0 4px 0 rgba(15, 118, 110, 0.45);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow:
        0 1px 0 rgba(255,255,255,0.32) inset,
        0 16px 32px -8px rgba(109, 40, 217, 0.6),
        0 6px 0 rgba(76, 29, 149, 0.3);
}

.btn-primary:hover svg {
    transform: translateX(4px);
}

.btn-secondary {
    background-color: var(--card-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-3d);
}

.btn-secondary:hover {
    background-color: var(--bg-secondary);
    transform: translateY(-3px);
}

/* ===== Shared Section Styles ===== */
.section-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-800);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 32px;
    direction: ltr;
}

[data-theme="dark"] .section-label {
    color: #5eead4;
}

.label-line {
    width: 40px;
    height: 1px;
    background-color: var(--primary-200);
}

[data-theme="dark"] .label-line {
    background-color: var(--primary-800);
}

.section-label-light {
    color: rgba(255,255,255,0.85);
}

.section-label-light .label-line {
    background-color: rgba(255,255,255,0.3);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(30px, 5vw, 52px);
    line-height: 1.18;
    letter-spacing: -0.025em;
    font-weight: 800;
    text-align: center;
    max-width: 860px;
    margin: 0 auto 24px;
    color: var(--text-primary);
}

.title-highlight {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--primary-800);
}

[data-theme="dark"] .title-highlight {
    color: #99f6e4;
}

.section-description {
    font-size: 17px;
    color: var(--text-secondary);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 72px;
    line-height: 1.8;
}

/* ===== Work / Portfolio Section ===== */
.work {
    padding: 120px 0;
}

.project-large {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 40px;
    padding: 28px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-3d);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry));
    transform-style: preserve-3d;
    transition: transform 0.12s ease-out, box-shadow 0.3s ease;
}

.project-large:hover {
    box-shadow:
        0 1px 0 var(--card-highlight) inset,
        0 32px 64px -20px rgba(15, 23, 42, 0.38);
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: stretch;
}

.project {
    display: flex;
    flex-direction: column;
    gap: 20px;
    transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry));
    transform-style: preserve-3d;
    transition: transform 0.12s ease-out, box-shadow 0.3s ease;
}

.projects-grid .project {
    height: 100%;
    padding: 20px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-3d);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.projects-grid .project:hover {
    box-shadow:
        0 1px 0 var(--card-highlight) inset,
        0 28px 50px -18px rgba(15, 23, 42, 0.36);
}

.projects-grid .project-image {
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
}

.projects-grid .project-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0;
}

.projects-grid .project-meta {
    min-height: 18px;
    margin-bottom: 12px;
}

.projects-grid .project-title {
    font-size: 22px;
    line-height: 1.35;
    min-height: calc(22px * 1.35 * 3);
    margin-bottom: 12px;
}

.projects-grid .project-desc {
    flex: 1;
    font-size: 15.5px;
    line-height: 1.8;
    margin-bottom: 0;
    min-height: calc(15.5px * 1.8 * 4);
}

.projects-grid .project-link {
    margin-top: 20px;
}

.project.project-large {
    display: grid;
}

.project-image {
    overflow: hidden;
    border-radius: 18px;
    background-color: var(--bg-tertiary);
    aspect-ratio: 4 / 3;
    position: relative;
    transform: translateZ(28px);
    box-shadow: 0 18px 36px -16px rgba(15, 23, 42, 0.4);
}

.project-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.16) 0%, transparent 32%);
    pointer-events: none;
}

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

.project:hover .project-image img {
    transform: scale(1.05);
}

.project-info {
    padding-right: 4px;
}

[dir="rtl"] .project-info, [lang="fa"] .project-info {
    padding-right: 0;
    padding-left: 4px;
}

.project-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 12px;
}

.project-tag {
    color: var(--primary-800);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

[data-theme="dark"] .project-tag {
    color: #5eead4;
}

.project-date {
    color: var(--text-tertiary);
    font-weight: 500;
}

.project-title {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.project-desc {
    font-size: 15.5px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-800);
    transition: gap 0.25s ease;
}

[data-theme="dark"] .project-link {
    color: #5eead4;
}

.project-link:hover {
    gap: 14px;
}

.project-link svg {
    width: 16px;
    height: 16px;
}

/* ===== Personal Projects ===== */
.personal {
    padding: 40px 0 120px;
}

.personal-grid {
    margin-top: 16px;
}

.personal-grid .personal-card {
    height: 100%;
}

.personal-grid .project-image {
    background: #e8eef3;
}

[data-theme="dark"] .personal-grid .project-image {
    background: #14181e;
}

.personal-grid .project-image img {
    object-fit: contain;
    object-position: center;
}

.personal-grid .project-link {
    margin-top: auto;
}

.personal-grid .project-info {
    display: flex;
    flex-direction: column;
}

.personal-grid .award-badge {
    margin-top: auto;
}

.personal-featured {
    position: relative;
    overflow: hidden;
    grid-template-columns: 1fr;
    gap: 28px;
}

.personal-featured::before {
    content: '';
    position: absolute;
    width: 280px;
    height: 280px;
    right: -80px;
    bottom: -90px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(52, 211, 153, 0.28), transparent 68%);
    pointer-events: none;
}

[dir="rtl"] .personal-featured::before,
[lang="fa"] .personal-featured::before {
    right: auto;
    left: -80px;
}

.personal-featured .project-image {
    aspect-ratio: 2 / 1;
    background: #e8eef3;
}

.personal-pinotrip .project-image {
    aspect-ratio: 1 / 1;
    max-height: 480px;
}

.personal-pinotrip .project-image img {
    object-fit: cover;
}

.personal-featured + .personal-featured {
    margin-top: 48px;
}

[data-theme="dark"] .personal-featured .project-image {
    background: #14181e;
}

.personal-featured .project-image img {
    object-fit: contain;
    object-position: center;
}

.personal-featured:hover .project-image img {
    transform: none;
}

.personal-featured .project-image::after {
    display: none;
}

.personal-featured .project-info {
    max-width: 820px;
}

.award-badge {
    display: inline-flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 8px;
    padding: 14px 16px;
    max-width: 100%;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.14), rgba(124, 58, 237, 0.1));
    border: 1px solid rgba(16, 185, 129, 0.28);
    color: var(--text-primary);
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.55;
    box-shadow: 0 1px 0 rgba(255,255,255,0.45) inset;
}

[data-theme="dark"] .award-badge {
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.12), rgba(167, 139, 250, 0.1));
    border-color: rgba(52, 211, 153, 0.28);
    box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset;
}

.award-icon {
    flex-shrink: 0;
    color: #059669;
    font-size: 15px;
    line-height: 1.4;
}

[data-theme="dark"] .award-icon {
    color: #6ee7b7;
}

[lang="fa"] .award-badge {
    font-weight: 700;
    line-height: 1.85;
}

/* ===== Social Presence ===== */
.presence {
    padding: 80px 0 120px;
}

.presence-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.presence-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 340px;
    padding: 32px 34px 28px;
    border-radius: var(--radius-lg);
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-3d);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    overflow: hidden;
    transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry));
    transform-style: preserve-3d;
    transition: transform 0.12s ease-out, box-shadow 0.3s ease, border-color 0.3s ease;
}

.presence-card::before {
    content: '';
    position: absolute;
    width: 240px;
    height: 240px;
    top: -80px;
    right: -70px;
    border-radius: 50%;
    filter: blur(28px);
    opacity: 0.42;
    pointer-events: none;
}

[dir="rtl"] .presence-card::before,
[lang="fa"] .presence-card::before {
    right: auto;
    left: -70px;
}

.presence-ig::before {
    background: #e1306c;
}

.presence-yt::before {
    background: #ff2a2a;
}

.presence-card:hover {
    box-shadow:
        0 1px 0 var(--card-highlight) inset,
        0 32px 64px -20px rgba(15, 23, 42, 0.4);
}

.presence-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 36px;
    position: relative;
    z-index: 1;
}

.presence-platform {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

[lang="fa"] .presence-platform,
[dir="rtl"] .presence-platform {
    letter-spacing: 0.04em;
}

.presence-icon {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    box-shadow: 0 1px 0 var(--card-highlight) inset, 0 8px 18px -12px rgba(15, 23, 42, 0.4);
}

.presence-icon svg {
    width: 40px;
    height: 40px;
}

.presence-ig .presence-icon {
    color: #c13584;
}

.presence-yt .presence-icon {
    color: #e11d2e;
}

[data-theme="dark"] .presence-ig .presence-icon {
    color: #f472b6;
}

[data-theme="dark"] .presence-yt .presence-icon {
    color: #fb7185;
}

.presence-count {
    font-family: var(--font-display);
    font-size: clamp(56px, 8vw, 92px);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 0.9;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

[lang="fa"] .presence-count,
[dir="rtl"] .presence-count {
    font-family: var(--font-fa);
    letter-spacing: 0;
    font-size: clamp(42px, 7vw, 72px);
    line-height: 1.15;
}

.presence-meta {
    margin-top: 10px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
}

.presence-handle {
    margin-top: 6px;
    font-size: 14px;
    color: var(--text-tertiary);
    direction: ltr;
    text-align: left;
    position: relative;
    z-index: 1;
}

[dir="rtl"] .presence-handle,
[lang="fa"] .presence-handle {
    text-align: right;
}

.presence-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 28px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

.presence-cta svg {
    width: 16px;
    height: 16px;
    transition: transform 0.25s ease;
}

.presence-card:hover .presence-cta svg {
    transform: translateX(4px);
}

[dir="rtl"] .presence-card:hover .presence-cta svg,
[lang="fa"] .presence-card:hover .presence-cta svg {
    transform: translateX(-4px) scaleX(-1);
}

/* ===== About & Experience Section ===== */
.about {
    padding: 120px 0;
    background:
        linear-gradient(var(--gradient-accent-soft), var(--gradient-accent-soft)),
        var(--bg-secondary);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    inset: 24px 0;
    pointer-events: none;
    background: radial-gradient(ellipse at 80% 20%, rgba(124, 58, 237, 0.08), transparent 40%);
}

/* About Blocks (Hamsaa-inspired) */
.about-block {
    margin-top: 72px;
}

.about-block-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary-600);
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.12), rgba(124, 58, 237, 0.1));
    border: 1px solid rgba(20, 184, 166, 0.2);
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 20px;
}

[data-theme="dark"] .about-block-label {
    color: #5eead4;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.15), rgba(124, 58, 237, 0.12));
    border-color: rgba(45, 212, 191, 0.25);
}

.about-block-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.about-block-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
}

.about-block-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 36px 40px;
    box-shadow: var(--shadow-3d);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: relative;
    overflow: hidden;
}

.about-block-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-accent);
    border-radius: 3px 3px 0 0;
}

.about-block-text {
    font-size: 17px;
    line-height: 1.9;
    color: var(--text-secondary);
}

.about-block-text strong {
    color: var(--primary-800);
}

[data-theme="dark"] .about-block-text strong {
    color: #5eead4;
}

/* Timeline V2 (Numbered, Hamsaa-inspired) */
.timeline-v2 {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    padding-left: 40px;
}

.timeline-v2::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 24px;
    bottom: 24px;
    width: 2px;
    background: linear-gradient(180deg, var(--primary-400), var(--accent-500));
    opacity: 0.3;
    border-radius: 2px;
}

.tl-item {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    position: relative;
    padding: 20px 0;
}

.tl-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 14px;
    font-weight: 800;
    color: var(--text-secondary);
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.tl-item-active .tl-number {
    background: var(--gradient-accent);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(20, 184, 166, 0.35), 0 0 0 4px rgba(20, 184, 166, 0.12);
}

.tl-card {
    flex: 1;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 24px 28px;
    box-shadow: 0 2px 12px -4px rgba(0,0,0,0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tl-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px -8px rgba(0,0,0,0.15);
}

.tl-item-active .tl-card {
    border-color: rgba(20, 184, 166, 0.3);
    box-shadow: 0 4px 20px -6px rgba(20, 184, 166, 0.2);
}

.tl-year {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-600);
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.1), rgba(124, 58, 237, 0.08));
    padding: 3px 12px;
    border-radius: 100px;
    margin-bottom: 10px;
}

[data-theme="dark"] .tl-year {
    color: #5eead4;
}

.tl-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.tl-role {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.tl-period {
    font-size: 13px;
    color: var(--text-tertiary);
}

/* RTL Timeline V2 */
[dir="rtl"] .timeline-v2,
[lang="fa"] .timeline-v2 {
    padding-left: 0;
    padding-right: 40px;
}

[dir="rtl"] .timeline-v2::before,
[lang="fa"] .timeline-v2::before {
    left: auto;
    right: 19px;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 8px;
}

.skills-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: 0 2px 12px -4px rgba(0,0,0,0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.skills-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px -8px rgba(0,0,0,0.15);
}

.skills-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.about-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    padding: 6px 14px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.skill-tag:hover {
    color: var(--primary-800);
    border-color: rgba(15, 118, 110, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px -6px rgba(15, 118, 110, 0.35);
    background-color: rgba(20, 184, 166, 0.06);
}

[data-theme="dark"] .skill-tag:hover {
    color: #5eead4;
    border-color: rgba(45, 212, 191, 0.4);
    background-color: rgba(20, 184, 166, 0.08);
}

/* Credentials Grid */
.credentials-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 8px;
}

.credential-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    text-align: center;
    box-shadow: 0 2px 12px -4px rgba(0,0,0,0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.credential-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px -8px rgba(0,0,0,0.15);
}

.credential-icon {
    font-size: 32px;
    margin-bottom: 16px;
}

.credential-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    line-height: 1.4;
}

.credential-detail {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ===== Contact Section ===== */
.contact {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
    color: #ffffff;
}

.contact-gradient {
    position: absolute;
    inset: 0;
    background: var(--gradient-contact);
    z-index: -2;
}

.contact::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    z-index: -1;
}

.contact-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}

.contact-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 60px);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.contact-highlight {
    color: #ffffff;
    font-style: italic;
}

.contact-subtitle {
    font-size: 18px;
    color: rgba(255,255,255,0.92);
    line-height: 1.75;
    max-width: 480px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.contact-right {
    padding: 32px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: var(--radius-lg);
    box-shadow:
        0 1px 0 rgba(255,255,255,0.22) inset,
        0 24px 50px -18px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry));
    transform-style: preserve-3d;
    transition: transform 0.12s ease-out;
}

.contact-label {
    display: block;
    font-size: 13px;
    color: rgba(255,255,255,0.88);
    margin-bottom: 12px;
    font-weight: 600;
}

.contact-action {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 16px 20px;
    background-color: rgba(255,255,255,0.16);
    border: 1px solid rgba(255,255,255,0.28);
    border-radius: var(--radius-md);
    backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    transition: background-color 0.25s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 10px 24px -12px rgba(0,0,0,0.4);
}

.contact-copy,
.contact-action-link:not(.social-link) {
    direction: ltr;
}

.contact-action-link:hover,
.contact-copy:hover {
    background-color: rgba(255,255,255,0.22);
}

.contact-action-text {
    flex: 1;
    min-width: 0;
    direction: ltr;
    text-align: left;
    unicode-bidi: plaintext;
    word-break: normal;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contact-action-icon {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    opacity: 0.92;
}

.contact-action-icon svg {
    width: 20px;
    height: 20px;
}

.contact-copy {
    cursor: pointer;
    text-align: left;
}

.contact-copy .contact-action-text {
    flex: 1;
}

.contact-copy .contact-action-icon {
    margin-left: auto;
}

.contact-copy.copied {
    background-color: rgba(255,255,255,0.28);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-link {
    font-size: 15px;
    font-weight: 600;
    color: rgba(255,255,255,0.95);
    direction: ltr;
}

.social-link-label {
    flex-shrink: 0;
}

.social-handle {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    font-weight: 600;
    opacity: 0.9;
    direction: ltr;
    text-align: left;
}

.social-link .contact-action-icon {
    margin-left: 0;
    margin-right: 0;
}

[dir="rtl"] .contact-label,
[lang="fa"] .contact-label {
    text-align: right;
}

/* ===== Footer ===== */
.footer-section {
    position: relative;
    z-index: 1;
    padding: 48px 0 40px;
}

.footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 24px;
}

.footer-name {
    font-weight: 700;
    font-size: 15px;
}

.footer-center {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    color: var(--text-secondary);
}

.footer-link {
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--primary-800);
}

.footer-sep {
    color: var(--text-tertiary);
}

.footer-right {
    font-size: 13px;
    color: var(--text-tertiary);
}

/* ===== Responsive ===== */
@media (max-width: 968px) {
    .project-large {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .projects-grid .project-title {
        min-height: auto;
    }

    .projects-grid .project-desc {
        min-height: auto;
    }

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

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

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

    .contact-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .footer {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .nav-links {
        gap: 12px;
    }

    .nav-links li:not(:nth-last-child(-n+3)) a {
        display: none;
    }

    .hero {
        padding: 34px 0 64px;
    }

    .hero-image-wrapper {
        width: 174px;
        height: 212px;
    }

    .hero-image-frame {
        width: 100%;
        height: 100%;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .work,
    .about,
    .contact,
    .personal,
    .presence {
        padding: 80px 0;
    }

    .section-description {
        margin-bottom: 48px;
    }

    .project-large {
        padding: 20px;
    }

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

    .timeline-v2 {
        padding-left: 28px;
    }

    .timeline-v2::before {
        left: 13px;
    }

    [dir="rtl"] .timeline-v2,
    [lang="fa"] .timeline-v2 {
        padding-left: 0;
        padding-right: 28px;
    }

    [dir="rtl"] .timeline-v2::before,
    [lang="fa"] .timeline-v2::before {
        left: auto;
        right: 13px;
    }

    .tl-number {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .tl-card {
        padding: 18px 20px;
    }

    .about-block-card {
        padding: 24px;
    }
}

[data-theme="dark"] .footer-link:hover {
    color: #5eead4;
}

/* ===== 3D scene orbs ===== */
.scene-orbs {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(48px);
    opacity: 0.38;
    animation: float-orb 22s ease-in-out infinite;
}

.orb-1 {
    width: 320px;
    height: 320px;
    background: #2dd4bf;
    top: 8%;
    left: -80px;
}

.orb-2 {
    width: 260px;
    height: 260px;
    background: #8b5cf6;
    top: 42%;
    right: -70px;
    animation-delay: -7s;
}

.orb-3 {
    width: 220px;
    height: 220px;
    background: #14b8a6;
    bottom: 6%;
    left: 28%;
    animation-delay: -13s;
    opacity: 0.22;
}

[data-theme="dark"] .orb {
    opacity: 0.22;
}

@keyframes float-orb {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(24px, -30px, 0) scale(1.08); }
}

.hero,
.work,
.personal,
.presence,
.about,
.contact,
.footer-section {
    position: relative;
    z-index: 1;
}

.card-3d {
    will-change: transform;
}

/* ===== Scroll Reveal Animations ===== */
.reveal {
    opacity: 0;
    translate: 0 28px;
    transition: opacity 0.7s ease, translate 0.7s ease;
}

.reveal.revealed {
    opacity: 1;
    translate: 0 0;
}

@media (max-width: 768px) {
    .card-3d {
        transform: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .orb { animation: none; }
    .reveal {
        opacity: 1;
        translate: 0;
    }
    .card-3d,
    .hero-image-frame {
        transform: none !important;
    }
}

/* ===== RTL Global Adjustments (Arrow Flips, etc.) ===== */
[dir="rtl"] .arrow-icon,
[lang="fa"] .arrow-icon,
[dir="rtl"] .btn-primary svg,
[lang="fa"] .btn-primary svg,
[dir="rtl"] .project-link svg,
[lang="fa"] .project-link svg,
[dir="rtl"] .social-link .arrow-icon,
[lang="fa"] .social-link .arrow-icon {
    transform: scaleX(-1);
}

[dir="rtl"] .btn-primary:hover svg,
[lang="fa"] .btn-primary:hover svg {
    transform: translateX(-4px) scaleX(-1) !important;
}

[dir="rtl"] .project-link:hover svg,
[lang="fa"] .project-link:hover svg {
    transform: translateX(-8px) scaleX(-1) !important;
}
