/* ============================================================
   IBRAHIM ELGHAZALY — PORTFOLIO v6.0
   Aurora Glass Developer Aesthetic — Full Professional
   ============================================================ */

/* ============================================================
   1. RESET
   ============================================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

button,
input,
textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

button {
    border: none;
    background: none;
    cursor: pointer;
}

ul,
ol {
    list-style: none;
}

/* ============================================================
   2. DESIGN TOKENS
   ============================================================ */
:root,
[data-theme="dark"] {
    --bg: #05060a;
    --bg-2: #0a0b12;
    --surface: rgba(255, 255, 255, 0.03);
    --surface-2: rgba(255, 255, 255, 0.05);
    --surface-3: rgba(255, 255, 255, 0.08);

    --text: #ffffff;
    --text-2: #d4d4d8;
    --text-3: #a1a1aa;
    --text-4: #71717a;
    --text-5: #52525b;

    --purple: #a855f7;
    --purple-2: #c084fc;
    --cyan: #22d3ee;
    --cyan-2: #67e8f9;
    --amber: #fbbf24;
    --pink: #ec4899;
    --blue: #60a5fa;
    --green: #4ade80;

    --grad-aurora: linear-gradient(135deg, #a855f7 0%, #22d3ee 50%, #fbbf24 100%);
    --grad-primary: linear-gradient(135deg, #a855f7 0%, #22d3ee 100%);
    --grad-text: linear-gradient(135deg, #c084fc 0%, #67e8f9 50%, #fbbf24 100%);
    --grad-subtle: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(34, 211, 238, 0.1));

    --border: rgba(255, 255, 255, 0.06);
    --border-2: rgba(255, 255, 255, 0.1);
    --border-3: rgba(255, 255, 255, 0.15);
    --border-glow: rgba(168, 85, 247, 0.4);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 12px 40px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 24px 80px rgba(0, 0, 0, 0.6);
    --shadow-glow-p: 0 0 60px rgba(168, 85, 247, 0.3);
    --shadow-glow-c: 0 0 60px rgba(34, 211, 238, 0.3);

    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: 24px;
}

[data-theme="light"] {
    --bg: #fafafa;
    --bg-2: #f4f4f5;
    --surface: rgba(255, 255, 255, 0.7);
    --surface-2: rgba(255, 255, 255, 0.85);
    --surface-3: #ffffff;

    --text: #09090b;
    --text-2: #18181b;
    --text-3: #52525b;
    --text-4: #71717a;
    --text-5: #a1a1aa;

    --purple: #7e22ce;
    --purple-2: #9333ea;
    --cyan: #0891b2;
    --cyan-2: #06b6d4;
    --amber: #d97706;
    --pink: #db2777;
    --blue: #2563eb;
    --green: #16a34a;

    --grad-text: linear-gradient(135deg, #7e22ce 0%, #0891b2 50%, #d97706 100%);
    --grad-subtle: linear-gradient(135deg, rgba(126, 34, 206, 0.08), rgba(8, 145, 178, 0.08));

    --border: rgba(9, 9, 11, 0.06);
    --border-2: rgba(9, 9, 11, 0.1);
    --border-3: rgba(9, 9, 11, 0.15);
    --border-glow: rgba(126, 34, 206, 0.35);

    --shadow-sm: 0 2px 8px rgba(9, 9, 11, 0.06);
    --shadow-md: 0 12px 40px rgba(9, 9, 11, 0.08);
    --shadow-lg: 0 24px 80px rgba(9, 9, 11, 0.12);
    --shadow-glow-p: 0 0 60px rgba(126, 34, 206, 0.15);
    --shadow-glow-c: 0 0 60px rgba(8, 145, 178, 0.15);

    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(9, 9, 11, 0.06);
}

:root {
    --font-sans: 'Inter', system-ui, sans-serif;
    --font-ar: 'Cairo', 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --font-display: 'Playfair Display', Georgia, serif;

    --container: 1280px;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-2xl: 36px;
    --radius-full: 9999px;

    --t: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --t-2: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --t-3: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================================
   3. BASE
   ============================================================ */
body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-2);
    background: var(--bg);
    overflow-x: hidden;
    transition: background 0.4s ease, color 0.4s ease;
    position: relative;
}

[dir="rtl"] body {
    font-family: var(--font-ar);
}

[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3 {
    letter-spacing: 0;
}

::selection {
    background: var(--purple);
    color: #fff;
}

::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--purple), var(--cyan));
    border-radius: var(--radius-full);
    border: 2px solid var(--bg-2);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--purple-2), var(--cyan-2));
}

/* ============================================================
   4. AURORA BACKGROUND
   ============================================================ */
.aurora-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background: var(--bg);
}

.aurora-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.35;
    will-change: transform;
}

.aurora-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #a855f7, transparent 70%);
    top: -200px;
    left: -100px;
    animation: auroraMove1 22s ease-in-out infinite;
}

.aurora-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #22d3ee, transparent 70%);
    top: 20%;
    right: -150px;
    animation: auroraMove2 26s ease-in-out infinite;
}

.aurora-3 {
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, #ec4899, transparent 70%);
    bottom: -200px;
    left: 20%;
    animation: auroraMove3 24s ease-in-out infinite;
}

.aurora-4 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #fbbf24, transparent 70%);
    top: 60%;
    right: 20%;
    animation: auroraMove4 28s ease-in-out infinite;
}

@keyframes auroraMove1 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(80px, -60px) scale(1.15);
    }

    66% {
        transform: translate(-60px, 40px) scale(0.9);
    }
}

@keyframes auroraMove2 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(-70px, 50px) scale(1.1);
    }

    66% {
        transform: translate(50px, -80px) scale(0.95);
    }
}

@keyframes auroraMove3 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(60px, 70px) scale(1.05);
    }

    66% {
        transform: translate(-80px, -40px) scale(0.9);
    }
}

@keyframes auroraMove4 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-60px, 60px) scale(1.15);
    }
}

.aurora-noise {
    position: absolute;
    inset: 0;
    opacity: 0.015;
    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='0.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    pointer-events: none;
}

.aurora-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    pointer-events: none;
}

/* ============================================================
   5. UTILITIES
   ============================================================ */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 32px;
    position: relative;
    z-index: 1;
}

.grad {
    background: var(--grad-text);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradShift 8s ease infinite;
}

@keyframes gradShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* ============================================================
   6. NAVBAR
   ============================================================ */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    padding: 10px 14px;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur)) saturate(180%);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-md);
    transition: all var(--t);
    max-width: calc(100% - 40px);
}

.navbar.scrolled {
    top: 12px;
    padding: 8px 12px;
    box-shadow: var(--shadow-lg);
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 6px;
    border-radius: var(--radius-full);
    transition: all var(--t);
    font-weight: 700;
    color: var(--text);
}

.brand:hover {
    background: var(--surface-2);
}

.brand-avatar {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-full);
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    padding: 2px;
    background: var(--grad-primary);
    box-shadow: 0 4px 16px rgba(168, 85, 247, 0.3);
}

.brand-avatar::after {
    content: '';
    position: absolute;
    inset: 2px;
    border-radius: 50%;
    background: var(--bg);
    z-index: 1;
}

.brand-avatar img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-text strong {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}

.brand-text small {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    color: var(--purple-2);
}

.nav {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 0 8px;
}

.nav-link {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-3);
    padding: 8px 14px;
    border-radius: var(--radius-full);
    transition: all var(--t);
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--text);
    background: var(--surface-2);
}

.nav-link.is-active {
    color: var(--text);
    background: var(--surface-3);
}

.nav-tools {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-left: 6px;
    border-left: 1px solid var(--border-2);
}

[dir="rtl"] .nav-tools {
    padding-left: 0;
    padding-right: 6px;
    border-left: none;
    border-right: 1px solid var(--border-2);
}

.tool-btn {
    height: 36px;
    min-width: 36px;
    padding: 0 10px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-3);
    transition: all var(--t);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    gap: 4px;
}

.tool-btn:hover {
    color: var(--text);
    background: var(--surface-2);
    border-color: var(--border-2);
}

.theme-btn svg {
    position: absolute;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] .i-sun {
    opacity: 1;
    transform: rotate(0) scale(1);
}

[data-theme="dark"] .i-moon {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

[data-theme="light"] .i-sun {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

[data-theme="light"] .i-moon {
    opacity: 1;
    transform: rotate(0) scale(1);
}

.nav-cv {
    padding: 8px 18px;
    background: var(--text);
    color: var(--bg);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all var(--t);
    white-space: nowrap;
}

.nav-cv:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.15);
}

[data-theme="light"] .nav-cv:hover {
    box-shadow: 0 8px 24px rgba(9, 9, 11, 0.2);
}

.burger {
    display: none;
    width: 36px;
    height: 36px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    border-radius: var(--radius-full);
    transition: background var(--t);
}

.burger:hover {
    background: var(--surface-2);
}

.burger span {
    display: block;
    width: 18px;
    height: 1.5px;
    background: var(--text);
    border-radius: var(--radius-full);
    transition: all var(--t);
}

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

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

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

/* ============================================================
   7. HERO
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 0 100px;
    overflow: hidden;
    z-index: 1;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 80px;
    align-items: center;
}

.hero-main {
    max-width: 640px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px 8px 10px;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-2);
    margin-bottom: 28px;
    transition: all var(--t);
}

.hero-badge:hover {
    border-color: var(--border-glow);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-p);
}

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

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.3);
    }
}

.hero-title {
    font-family: var(--font-sans);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.045em;
    color: var(--text);
    margin-bottom: 20px;
}

.hero-title .grad {
    display: inline-block;
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 700;
    letter-spacing: -0.02em;
    padding-right: 6px;
}

[dir="rtl"] .hero-title .grad {
    font-family: var(--font-ar);
    font-style: normal;
}

.hero-role {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: clamp(0.95rem, 1.5vw, 1.15rem);
    font-weight: 500;
    color: var(--text-3);
    margin-bottom: 28px;
    letter-spacing: -0.01em;
}

[dir="rtl"] .hero-role {
    font-family: var(--font-ar);
}

.hero-role::before {
    content: '';
    width: 32px;
    height: 1px;
    background: var(--purple);
    box-shadow: 0 0 8px var(--purple);
}

.hero-role .typewriter {
    color: var(--cyan-2);
}

.hero-role .cursor-blink {
    display: inline-block;
    width: 2px;
    height: 1.1em;
    background: var(--cyan-2);
    animation: blink 1s steps(2) infinite;
    margin-left: -6px;
    vertical-align: middle;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

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

.hero-lead {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-3);
    margin-bottom: 40px;
    max-width: 540px;
}

.hero-lead strong {
    color: var(--text);
    font-weight: 600;
    position: relative;
    white-space: nowrap;
}

.hero-lead strong::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    background: var(--grad-primary);
    border-radius: 2px;
    opacity: 0.5;
}

.hero-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 44px;
    align-items: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 26px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-full);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--t);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    line-height: 1;
}

.btn svg {
    transition: transform var(--t);
    flex-shrink: 0;
}

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

[dir="rtl"] .btn:hover svg {
    transform: translateX(-4px);
}

.btn-primary {
    background: var(--text);
    color: var(--bg);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.15);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.3), transparent);
    transition: left 0.7s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(255, 255, 255, 0.25);
}

[data-theme="light"] .btn-primary {
    background: var(--text);
    color: #fff;
    box-shadow: 0 8px 30px rgba(9, 9, 11, 0.2);
}

.btn-ghost {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: var(--text);
    border-color: var(--glass-border);
}

.btn-ghost:hover {
    border-color: var(--purple);
    background: rgba(168, 85, 247, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(168, 85, 247, 0.15);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 13px;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 15px;
}

.btn-block {
    width: 100%;
}

.hero-social {
    display: flex;
    gap: 10px;
    align-items: center;
}

.hero-social-label {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-5);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-right: 6px;
}

[dir="rtl"] .hero-social-label {
    margin-right: 0;
    margin-left: 6px;
}

.hero-social a {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    color: var(--text-3);
    transition: all var(--t);
}

.hero-social a:hover {
    color: var(--purple-2);
    border-color: var(--purple);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(168, 85, 247, 0.25);
    background: rgba(168, 85, 247, 0.08);
}

/* Hero Side */
.hero-side {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.hero-photo-wrap {
    grid-column: 1 / -1;
    position: relative;
    aspect-ratio: 1 / 1.05;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg);
    transition: transform var(--t-2);
}

.hero-photo-wrap::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--grad-aurora);
    border-radius: inherit;
    z-index: -1;
    opacity: 0.5;
    filter: blur(30px);
}

.hero-photo-wrap:hover {
    transform: translateY(-6px);
}

.hero-photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: contrast(1.05) saturate(1.1);
    transition: transform var(--t-3);
}

.hero-photo-wrap:hover img {
    transform: scale(1.05);
}

.hero-photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5, 6, 10, 0.6), transparent 50%);
    pointer-events: none;
}

.hero-photo-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    z-index: 2;
}

.badge-num {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 26px;
    font-weight: 700;
    line-height: 1;
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    flex-shrink: 0;
}

[dir="rtl"] .badge-num {
    font-family: var(--font-ar);
    font-style: normal;
}

.badge-txt {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-2);
    line-height: 1.3;
}

.hero-stat-card {
    padding: 20px 18px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all var(--t-2);
    position: relative;
    overflow: hidden;
}

.hero-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--grad-primary);
    opacity: 0;
    transition: opacity var(--t);
}

.hero-stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow-p);
}

.hero-stat-card:hover::before {
    opacity: 1;
}

.stat-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: var(--grad-subtle);
    border: 1px solid var(--border-2);
    color: var(--purple-2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.stat-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-info strong {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
    letter-spacing: -0.02em;
}

.stat-info span {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-4);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ============================================================
   8. SECTIONS
   ============================================================ */
.section {
    padding: 120px 0;
    position: relative;
    z-index: 1;
}

.sec-head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 64px;
    max-width: 720px;
}

.sec-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 10px;
    background: var(--surface);
    border: 1px solid var(--border-2);
    border-radius: var(--radius-full);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-3);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: all var(--t);
}

.sec-label::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--purple);
    box-shadow: 0 0 8px var(--purple);
}

[dir="rtl"] .sec-label {
    font-family: var(--font-ar);
    letter-spacing: 0;
}

.sec-title {
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.035em;
    color: var(--text);
    margin: 0;
}

.sec-title .display {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 600;
    letter-spacing: -0.02em;
    background: var(--grad-text);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradShift 8s ease infinite;
    padding-right: 4px;
}

[dir="rtl"] .sec-title .display {
    font-family: var(--font-ar);
    font-style: normal;
}

.sec-sub {
    font-size: 17px;
    color: var(--text-3);
    line-height: 1.65;
    max-width: 560px;
}

/* ============================================================
   9. BENTO GRID (About)
   ============================================================ */
.bento {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
}

.card {
    padding: 28px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    transition: all var(--t-2);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.4), transparent 40%, transparent 60%, rgba(34, 211, 238, 0.4));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--t);
    pointer-events: none;
}

.card:hover::before {
    opacity: 1;
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow-p);
    background: var(--surface-2);
}

.about-lead {
    grid-column: span 7;
    min-height: 240px;
    justify-content: center;
}

.about-lead p {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-2);
    font-weight: 400;
}

.about-lead p strong {
    color: var(--text);
    font-weight: 600;
}

.card-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--grad-subtle);
    border: 1px solid var(--border-2);
    color: var(--purple-2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.card-label {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-4);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.about-photo {
    grid-column: span 5;
    grid-row: span 2;
    padding: 0;
    overflow: hidden;
    position: relative;
    min-height: 480px;
}

.about-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--t-3);
}

.about-photo:hover img {
    transform: scale(1.05);
}

.about-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5, 6, 10, 0.9) 0%, transparent 50%);
    pointer-events: none;
}

.about-photo-info {
    position: absolute;
    bottom: 24px;
    left: 24px;
    right: 24px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.about-photo-info strong {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
}

.about-photo-info span {
    font-family: var(--font-mono);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.5px;
}

.about-info {
    grid-column: span 4;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 4px;
}

.info-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 12px;
    border-bottom: 1px dashed var(--border-2);
}

.info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-key {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-val {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-2);
    text-align: end;
}

.about-stack {
    grid-column: span 3;
}

.stack-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.stack-tag {
    font-family: var(--font-mono);
    font-size: 11.5px;
    font-weight: 500;
    color: var(--text-2);
    padding: 5px 12px;
    background: var(--surface-2);
    border: 1px solid var(--border-2);
    border-radius: var(--radius-full);
    transition: all var(--t);
}

.stack-tag:hover {
    color: var(--purple-2);
    border-color: var(--purple);
    background: rgba(168, 85, 247, 0.08);
    transform: translateY(-2px);
}

/* ============================================================
   10. SERVICES
   ============================================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.service-card {
    padding: 32px 28px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    transition: all var(--t-2);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 280px;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow-p);
}

.service-num {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-5);
    letter-spacing: 1.5px;
}

.service-icon {
    width: 54px;
    height: 54px;
    border-radius: var(--radius-lg);
    background: var(--grad-subtle);
    border: 1px solid var(--border-2);
    color: var(--purple-2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--t-2);
}

.service-card:hover .service-icon {
    background: var(--grad-primary);
    color: #fff;
    border-color: transparent;
    transform: rotate(-8deg) scale(1.08);
    box-shadow: 0 12px 32px rgba(168, 85, 247, 0.4);
}

.service-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.015em;
    line-height: 1.35;
    transition: color var(--t);
}

.service-card:hover h3 {
    color: var(--purple-2);
}

.service-card p {
    font-size: 14px;
    line-height: 1.65;
    color: var(--text-3);
    flex: 1;
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 16px;
    margin-top: auto;
    border-top: 1px solid var(--border);
}

.service-features span {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-4);
    padding: 3px 10px;
    background: var(--surface-2);
    border-radius: var(--radius-full);
}

/* ============================================================
   11. SKILLS — With Brand Logos
   ============================================================ */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.skill-panel {
    padding: 36px 32px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    transition: all var(--t-2);
    position: relative;
    overflow: hidden;
}

.skill-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.6), transparent);
    opacity: 0;
    transition: opacity var(--t);
}

.skill-panel:hover {
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow-p);
}

.skill-panel:hover::before {
    opacity: 1;
}

.panel-title {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-4);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.panel-title::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--purple);
    box-shadow: 0 0 10px var(--purple);
    flex-shrink: 0;
}

/* Skill Row */
.skill-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    transition: all var(--t);
    position: relative;
}

.skill-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.skill-row:first-child {
    padding-top: 0;
}

.skill-row:hover {
    padding-left: 8px;
}

[dir="rtl"] .skill-row:hover {
    padding-left: 0;
    padding-right: 8px;
}

.skill-row:hover .skill-name {
    color: var(--purple-2);
}

.skill-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    flex: 1;
}

/* ============================================================
   SKILL LOGOS — Brand-colored SVGs
   ============================================================ */
.skill-logo {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--t-2);
    background: var(--surface-2);
    border: 1px solid var(--border-2);
    position: relative;
    overflow: hidden;
}

.skill-logo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: currentColor;
    opacity: 0;
    transition: opacity var(--t);
}

.skill-row:hover .skill-logo {
    transform: translateY(-2px) scale(1.08) rotate(-4deg);
    border-color: transparent;
}

.skill-row:hover .skill-logo svg {
    transform: scale(1.1);
}

.skill-logo svg {
    width: 22px;
    height: 22px;
    transition: transform var(--t-2);
    position: relative;
    z-index: 1;
}

/* HTML5 — Orange */
.skill-logo.html5 {
    color: #e34f26;
    background: rgba(227, 79, 38, 0.08);
    border-color: rgba(227, 79, 38, 0.25);
}

.skill-row:hover .skill-logo.html5 {
    background: linear-gradient(135deg, #e34f26, #f06529);
    color: #fff;
    box-shadow: 0 8px 24px rgba(227, 79, 38, 0.4);
}

/* CSS3 — Blue */
.skill-logo.css3 {
    color: #1572b6;
    background: rgba(21, 114, 182, 0.08);
    border-color: rgba(21, 114, 182, 0.25);
}

.skill-row:hover .skill-logo.css3 {
    background: linear-gradient(135deg, #1572b6, #33a9dc);
    color: #fff;
    box-shadow: 0 8px 24px rgba(21, 114, 182, 0.4);
}

/* JavaScript — Yellow */
.skill-logo.javascript {
    color: #f7df1e;
    background: rgba(247, 223, 30, 0.1);
    border-color: rgba(247, 223, 30, 0.3);
}

.skill-row:hover .skill-logo.javascript {
    background: linear-gradient(135deg, #f7df1e, #f0db4f);
    color: #000;
    box-shadow: 0 8px 24px rgba(247, 223, 30, 0.4);
}

/* React — Cyan */
.skill-logo.react {
    color: #61dafb;
    background: rgba(97, 218, 251, 0.08);
    border-color: rgba(97, 218, 251, 0.25);
}

.skill-row:hover .skill-logo.react {
    background: linear-gradient(135deg, #61dafb, #22d3ee);
    color: #fff;
    box-shadow: 0 8px 24px rgba(97, 218, 251, 0.4);
}

.skill-row:hover .skill-logo.react svg {
    animation: spin 3s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg) scale(1.1);
    }

    to {
        transform: rotate(360deg) scale(1.1);
    }
}

/* Tailwind — Blue gradient */
.skill-logo.tailwind {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.08);
    border-color: rgba(56, 189, 248, 0.25);
}

.skill-row:hover .skill-logo.tailwind {
    background: linear-gradient(135deg, #38bdf8, #06b6d4);
    color: #fff;
    box-shadow: 0 8px 24px rgba(56, 189, 248, 0.4);
}

/* Responsive Design — Purple */
.skill-logo.responsive {
    color: #c084fc;
    background: rgba(192, 132, 252, 0.08);
    border-color: rgba(192, 132, 252, 0.25);
}

.skill-row:hover .skill-logo.responsive {
    background: linear-gradient(135deg, #c084fc, #a855f7);
    color: #fff;
    box-shadow: 0 8px 24px rgba(192, 132, 252, 0.4);
}

/* Git — Orange/Red */
.skill-logo.git {
    color: #f14e32;
    background: rgba(241, 78, 50, 0.08);
    border-color: rgba(241, 78, 50, 0.25);
}

.skill-row:hover .skill-logo.git {
    background: linear-gradient(135deg, #f14e32, #ff6b4a);
    color: #fff;
    box-shadow: 0 8px 24px rgba(241, 78, 50, 0.4);
}

/* Full-Stack — Green */
.skill-logo.fullstack {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.08);
    border-color: rgba(74, 222, 128, 0.25);
}

.skill-row:hover .skill-logo.fullstack {
    background: linear-gradient(135deg, #4ade80, #10b981);
    color: #fff;
    box-shadow: 0 8px 24px rgba(74, 222, 128, 0.4);
}

.skill-name {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.01em;
    transition: color var(--t);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Skill row hover bottom line */
.skill-row::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: var(--grad-primary);
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.skill-row:hover::after {
    width: 100%;
}

/* ============================================================
   12. PROJECTS
   ============================================================ */
.projects-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 9px 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-3);
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    transition: all var(--t);
}

.filter-btn:hover {
    color: var(--text);
    border-color: var(--purple);
    background: rgba(168, 85, 247, 0.08);
}

.filter-btn.is-active {
    color: var(--bg);
    background: var(--text);
    border-color: var(--text);
    font-weight: 600;
}

[data-theme="light"] .filter-btn.is-active {
    color: #fff;
    background: var(--text);
    border-color: var(--text);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.project {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--t-2);
    display: flex;
    flex-direction: column;
    position: relative;
}

.project:hover {
    transform: translateY(-8px);
    border-color: var(--border-glow);
    box-shadow: var(--shadow-lg), var(--shadow-glow-p);
}

.project-cover {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--bg-2);
}

.project-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    filter: saturate(0.95);
}

.project:hover .project-cover img {
    transform: scale(1.08);
    filter: saturate(1.15);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5, 6, 10, 0.9) 0%, rgba(5, 6, 10, 0.3) 50%, transparent 100%);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 20px;
    opacity: 0;
    transition: opacity var(--t);
}

.project:hover .project-overlay {
    opacity: 1;
}

.project-overlay-actions {
    display: flex;
    gap: 8px;
}

.project-overlay-actions a {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--t);
    transform: translateY(12px);
}

.project:hover .project-overlay-actions a {
    transform: translateY(0);
}

.project-overlay-actions a:hover {
    background: var(--purple);
    border-color: var(--purple);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 24px rgba(168, 85, 247, 0.5);
}

.project-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.project-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.project-cat {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    color: var(--purple-2);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.project-year {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    color: var(--text-4);
    letter-spacing: 0.5px;
}

.project-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
    letter-spacing: -0.02em;
    transition: color var(--t);
}

.project:hover .project-name {
    color: var(--purple-2);
}

.project-text {
    font-size: 14px;
    line-height: 1.65;
    color: var(--text-3);
    flex: 1;
}

.project-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.project-stack span {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    color: var(--text-4);
    padding: 3px 10px;
    background: var(--surface-2);
    border-radius: var(--radius-full);
}

.project.is-filtered-out {
    display: none;
}

/* ============================================================
   13. TESTIMONIALS
   ============================================================ */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.testimonial {
    padding: 32px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    transition: all var(--t-2);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.testimonial::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--grad-primary);
    opacity: 0;
    transition: opacity var(--t);
}

.testimonial:hover {
    transform: translateY(-6px);
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow-p);
}

.testimonial:hover::before {
    opacity: 1;
}

.testi-mark {
    font-family: var(--font-display);
    font-size: 64px;
    line-height: 0.5;
    color: var(--purple);
    opacity: 0.3;
    height: 24px;
    display: flex;
    align-items: flex-start;
    font-weight: 700;
}

[dir="rtl"] .testi-mark {
    font-family: var(--font-ar);
}

.testi-text {
    font-size: 15.5px;
    line-height: 1.75;
    color: var(--text-2);
    flex: 1;
}

.testi-author {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.testi-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--grad-primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(168, 85, 247, 0.3);
    font-family: var(--font-mono);
}

.testi-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.testi-meta strong {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
}

.testi-meta span {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-4);
    letter-spacing: 0.5px;
}

/* ============================================================
   14. EXPERIENCE
   ============================================================ */
.exp-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.exp-item {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 32px;
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid transparent;
    transition: all var(--t-2);
    position: relative;
}

.exp-item:hover {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-color: var(--glass-border);
    transform: translateX(4px);
}

[dir="rtl"] .exp-item:hover {
    transform: translateX(-4px);
}

.exp-date {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-4);
    letter-spacing: 1px;
    text-transform: uppercase;
    padding-top: 4px;
}

.exp-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.exp-role {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
    line-height: 1.35;
}

.exp-role .at {
    color: var(--purple-2);
    transition: color var(--t);
}

.exp-item:hover .exp-role .at {
    color: var(--cyan-2);
}

.exp-desc {
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--text-3);
    margin-top: 4px;
}

.exp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.exp-tags span {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    color: var(--text-4);
    padding: 3px 10px;
    background: var(--surface-2);
    border-radius: var(--radius-full);
    transition: all var(--t);
}

.exp-item:hover .exp-tags span {
    color: var(--purple-2);
    background: rgba(168, 85, 247, 0.08);
}

/* ============================================================
   15. CTA
   ============================================================ */
.cta {
    padding: 100px 0;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.cta-wrap {
    padding: 64px 56px;
    background: var(--glass-bg);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-2xl);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.cta-wrap::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.25), transparent 60%);
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
}

.cta-wrap::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.2), transparent 60%);
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
}

.cta-text {
    position: relative;
    z-index: 1;
    max-width: 560px;
}

.cta-title {
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text);
    margin-bottom: 12px;
}

.cta-title .display {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 600;
    background: var(--grad-text);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradShift 8s ease infinite;
}

[dir="rtl"] .cta-title .display {
    font-family: var(--font-ar);
    font-style: normal;
}

.cta-sub {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-3);
}

.cta .btn {
    position: relative;
    z-index: 1;
}

/* ============================================================
   16. CONTACT
   ============================================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 48px;
    align-items: start;
}

.contact-side h3 {
    font-size: 26px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
    line-height: 1.3;
    letter-spacing: -0.025em;
}

.contact-side>p {
    font-size: 15.5px;
    line-height: 1.7;
    color: var(--text-3);
    margin-bottom: 32px;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.c-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    transition: all var(--t);
}

.c-item:hover {
    border-color: var(--border-glow);
    transform: translateX(4px);
    box-shadow: var(--shadow-glow-p);
}

[dir="rtl"] .c-item:hover {
    transform: translateX(-4px);
}

.c-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    background: var(--grad-subtle);
    border: 1px solid var(--border-2);
    color: var(--purple-2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--t);
}

.c-item:hover .c-icon {
    background: var(--grad-primary);
    color: #fff;
    border-color: transparent;
    transform: rotate(-6deg);
}

.c-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.c-meta span {
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 600;
    color: var(--text-5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.c-meta strong {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-2);
    word-break: break-word;
}

.contact-form {
    padding: 36px;
    background: var(--glass-bg);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field label {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-4);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--surface);
    border: 1px solid var(--border-2);
    border-radius: var(--radius-md);
    color: var(--text);
    font-size: 14.5px;
    transition: all var(--t);
    resize: vertical;
    font-family: var(--font-sans);
}

[dir="rtl"] .form-field input,
[dir="rtl"] .form-field textarea {
    font-family: var(--font-ar);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: var(--text-5);
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--purple);
    background: var(--surface-2);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
}

.form-field textarea {
    min-height: 130px;
    line-height: 1.6;
}

.form-status {
    font-family: var(--font-mono);
    font-size: 12.5px;
    font-weight: 500;
    text-align: center;
    min-height: 20px;
    color: var(--green);
    letter-spacing: 0.5px;
}

.form-status.error {
    color: #f87171;
}

/* ============================================================
   17. FOOTER
   ============================================================ */
.footer {
    padding: 64px 0 40px;
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 1;
}

.footer-wrap {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 40px;
}

.footer-desc {
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--text-3);
    margin-top: 20px;
    max-width: 360px;
}

.footer-title {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-5);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

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

.footer-links a {
    font-size: 14.5px;
    font-weight: 500;
    color: var(--text-3);
    transition: all var(--t);
    width: fit-content;
}

.footer-links a:hover {
    color: var(--purple-2);
    transform: translateX(4px);
}

[dir="rtl"] .footer-links a:hover {
    transform: translateX(-4px);
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    color: var(--text-3);
    transition: all var(--t);
}

.footer-social a:hover {
    color: var(--purple-2);
    border-color: var(--purple);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(168, 85, 247, 0.25);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-5);
    letter-spacing: 0.5px;
}

.footer-bottom strong {
    color: var(--text-4);
    font-weight: 600;
}

/* ============================================================
   18. BACK TO TOP
   ============================================================ */
.to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    color: var(--text-2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.85);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 999;
}

[dir="rtl"] .to-top {
    right: auto;
    left: 32px;
}

.to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.to-top:hover {
    color: var(--purple-2);
    border-color: var(--purple);
    transform: translateY(-4px) scale(1.05);
    box-shadow: var(--shadow-lg), var(--shadow-glow-p);
}

/* ============================================================
   19. SCROLL REVEAL
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   20. RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
    .container {
        padding: 0 28px;
    }

    .hero-inner {
        gap: 56px;
    }

    .bento {
        grid-template-columns: repeat(6, 1fr);
    }

    .about-lead {
        grid-column: span 6;
    }

    .about-photo {
        grid-column: span 6;
        grid-row: auto;
        min-height: 380px;
    }

    .about-info {
        grid-column: span 3;
    }

    .about-stack {
        grid-column: span 3;
    }
}

@media (max-width: 1024px) {
    .navbar {
        top: 12px;
        padding: 8px 10px;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 320px;
        height: 100vh;
        background: var(--bg);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding: 80px 40px;
        gap: 8px;
        box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
        transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        border-left: 1px solid var(--border);
        z-index: 999;
    }

    [dir="rtl"] .nav {
        right: auto;
        left: -100%;
        border-left: none;
        border-right: 1px solid var(--border);
        box-shadow: 20px 0 60px rgba(0, 0, 0, 0.5);
    }

    .nav.is-open {
        right: 0;
    }

    [dir="rtl"] .nav.is-open {
        right: auto;
        left: 0;
    }

    .nav-link {
        font-size: 18px;
        font-weight: 600;
        width: 100%;
        padding: 14px 20px;
        color: var(--text-2);
    }

    .burger {
        display: flex;
    }

    .nav-cv {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: 130px 0 80px;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 56px;
        text-align: left;
    }

    [dir="rtl"] .hero-inner {
        text-align: right;
    }

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

    .hero-side {
        max-width: 460px;
    }

    .hero-social {
        justify-content: flex-start;
    }

    .section {
        padding: 88px 0;
    }

    .sec-head {
        margin-bottom: 48px;
    }

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

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

    .footer-wrap {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .navbar {
        left: 20px;
        right: 20px;
        transform: none;
        max-width: none;
    }

    .brand-text {
        display: none;
    }

    .section {
        padding: 72px 0;
    }

    .sec-head {
        margin-bottom: 40px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-lead {
        font-size: 15.5px;
    }

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

    .about-lead,
    .about-photo,
    .about-info,
    .about-stack {
        grid-column: span 1;
        grid-row: auto;
    }

    .about-photo {
        min-height: 360px;
    }

    .services-grid,
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .skill-panel {
        padding: 28px 24px;
    }

    .exp-item {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 18px;
    }

    .exp-item:hover {
        transform: none;
    }

    .cta-wrap {
        padding: 40px 28px;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    [dir="rtl"] .cta-wrap {
        text-align: right;
    }

    .contact-form {
        padding: 24px 20px;
    }

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

    .footer-wrap {
        grid-template-columns: 1fr;
        gap: 32px;
    }

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

    .to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }

    [dir="rtl"] .to-top {
        right: auto;
        left: 20px;
    }

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

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

    .hero {
        padding: 120px 0 60px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-role {
        font-size: 0.95rem;
    }

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

    .hero-cta .btn {
        width: 100%;
    }

    .btn {
        padding: 12px 22px;
    }

    .about-lead p {
        font-size: 15.5px;
    }

    .card {
        padding: 22px 20px;
    }

    .service-card {
        padding: 24px 20px;
        min-height: auto;
    }

    .testimonial {
        padding: 24px 20px;
    }

    .skill-panel {
        padding: 24px 20px;
    }

    .skill-level-label {
        display: none;
    }

    .skill-name {
        font-size: 14px;
    }

    .skill-icon-box {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .contact-side h3 {
        font-size: 22px;
    }

    .project-info {
        padding: 20px 18px;
    }
}

/* ============================================================
   21. REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {

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

    .reveal {
        opacity: 1;
        transform: none;
    }

    .aurora-blob {
        animation: none;
    }
}