@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600&family=Space+Grotesk:wght@400;500;600;700&family=Vazirmatn:wght@300;400;500;600;700;800&display=swap');

/* ========================================================
   AHMAD AMJAD — PORTFOLIO
   "The Void" — Dark, cinematic, ultra-minimal
   ======================================================== */

/* ─── DESIGN TOKENS ─── */
:root {
    --black:       #000000;
    --off-black:   #0a0a0a;
    --surface:     #0d0d0d;
    --border:      #1a1a1a;
    --border-light:#252525;
    --mid-gray:    #444444;
    --text-muted:  #777777;
    --text-subtle: #555555;
    --white:       #f0f0f0;
    --pure-white:  #ffffff;
    --gold:        #C8A84E;
    --gold-dim:    #9B7B31;
    --gold-glow:   rgba(200, 168, 78, 0.15);

    --font-heading: 'Space Grotesk', sans-serif;
    --font-body:    'Inter', sans-serif;

    --nav-height:  72px;
    --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scrollbar-width: thin;
    scrollbar-color: var(--border-light) var(--black);
}

body {
    background: var(--black);
    color: var(--white);
    font-family: var(--font-body);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
}

::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--black);
}
::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 3px;
}

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

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

button {
    cursor: pointer;
    font-family: inherit;
}

::selection {
    background: var(--gold);
    color: var(--black);
}

/* ─── UTILITIES ─── */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 4rem);
}

.section {
    padding: clamp(6rem, 12vh, 10rem) 0;
}

/* ─── SCROLL REVEAL ─── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s var(--ease-out),
                transform 0.9s var(--ease-out);
    will-change: opacity, transform;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ─── GRAIN OVERLAY ─── */
.grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    mix-blend-mode: overlay;
    transition: opacity 0.5s;
}

.grain.active {
    opacity: 1;
}

/* ========================================================
   NAVIGATION
   ======================================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(1.5rem, 5vw, 4rem);
    z-index: 1000;
    transition: background 0.4s, backdrop-filter 0.4s;
}

.nav.scrolled {
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-logo img {
    height: 36px;
    width: 36px;
    border-radius: 50%;
    object-fit: cover;
    transition: opacity 0.3s;
}

.nav-logo:hover img {
    opacity: 0.7;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    position: relative;
}

.nav-link {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    position: relative;
    padding: 0.25rem 0;
    transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--pure-white);
}

.nav-indicator {
    position: absolute;
    bottom: -4px;
    height: 1.5px;
    background: var(--gold);
    transition: left 0.35s cubic-bezier(0.25, 1, 0.5, 1),
                width 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    pointer-events: none;
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 7px;
    background: none;
    border: none;
    padding: 6px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--white);
    transition: transform 0.3s var(--ease-out), opacity 0.3s;
    transform-origin: center;
}

.nav-toggle.active span:first-child {
    transform: rotate(45deg) translate(3px, 3px);
}

.nav-toggle.active span:last-child {
    transform: rotate(-45deg) translate(3px, -3px);
}

/* ========================================================
   HERO
   ======================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: var(--nav-height) clamp(1.5rem, 5vw, 4rem) 0;
    overflow: hidden;
}

.hero-schematic-bg {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.15;
    pointer-events: none;
    mask-image: radial-gradient(circle at center, black 20%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black 20%, transparent 80%);
    animation: gridDrift 30s linear infinite;
}

@keyframes gridDrift {
    0% { background-position: 0 0; }
    100% { background-position: 50px 50px; }
}

.scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(200, 168, 78, 0) 0%,
        rgba(200, 168, 78, 0) 10%,
        rgba(200, 168, 78, 0.04) 50%,
        rgba(200, 168, 78, 0) 90%,
        rgba(200, 168, 78, 0) 100%
    );
    pointer-events: none;
    z-index: 1;
    animation: scan 10s linear infinite;
}

@keyframes scan {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

.hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(2rem, 4vw, 4rem);
    width: 100%;
    max-width: 1200px;
    z-index: 2;
    margin-top: -3vh; /* Adjust vertical centering slightly up */
}

.hero-content {
    flex: 1.2; /* Give text slightly more weight */
    min-width: 0;
    position: relative;
}

.hero-name-wrapper {
    position: relative;
}

.hero-name {
    font-family: var(--font-heading);
    line-height: 0.9;
    margin-bottom: clamp(1.5rem, 3vh, 2rem);
}

.hero-name-line {
    display: block;
    font-size: clamp(4rem, 9vw, 8.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--pure-white);
}

/* Character sliding animations */
.char-wrapper {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
}

.char {
    display: inline-block;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.8s ease;
}

.char.revealed {
    transform: translateY(0);
    opacity: 1;
}

.typewriter-cursor {
    color: var(--gold);
    font-weight: 400;
    animation: cursorBlink 0.8s step-end infinite;
    margin-left: 2px;
}

@keyframes cursorBlink {
    from, to { color: transparent }
    50% { color: var(--gold) }
}

.hero-status-wrapper {
    margin-bottom: clamp(1rem, 2.5vh, 1.8rem);
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(0.9rem, 1.3vw, 1.15rem);
    font-weight: 300;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    min-height: 1.6em;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.42rem 1.15rem;
    background: rgba(22, 22, 26, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9999px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: default;
    user-select: none;
}

.status-indicator:hover {
    border-color: rgba(212, 175, 55, 0.45);
    background: rgba(28, 28, 34, 0.9);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.55), 0 0 24px rgba(212, 175, 55, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

.status-indicator:hover .status-text {
    color: #f5f5f5;
}

.pulse-dot {
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981, 0 0 2px #fff;
    flex-shrink: 0;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.7);
    transform: translate(-50%, -50%);
    animation: status-radar-ping 2.2s cubic-bezier(0, 0, 0.2, 1) infinite;
    pointer-events: none;
}

@keyframes status-radar-ping {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.95;
    }
    60%, 100% {
        transform: translate(-50%, -50%) scale(3.5);
        opacity: 0;
    }
}

.status-text {
    font-family: var(--font-heading, 'Space Grotesk', sans-serif);
    font-size: 0.76rem;
    font-weight: 500;
    color: rgba(245, 245, 245, 0.88);
    letter-spacing: 0.02em;
    text-transform: none;
    transition: color 0.3s ease;
}

/* ========================================================
   HERO CALL-TO-ACTION (CTA) BUTTONS - LUXURY TECH STYLE
   ======================================================== */
.hero-cta-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: clamp(2rem, 4vh, 2.8rem);
    flex-wrap: wrap;
}

/* 1. Primary Download CV Button (Luminous Gold) */
.btn-cta-cv {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 0.85rem 1.65rem;
    background: linear-gradient(135deg, #d4af37 0%, #b8922e 60%, #9a7820 100%);
    color: #0d0d0d !important;
    font-family: var(--font-heading, 'Space Grotesk', sans-serif);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.35), 0 0 1px rgba(255, 255, 255, 0.4) inset;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    cursor: pointer;
}

.btn-cta-cv svg {
    width: 16px;
    height: 16px;
    stroke: #0d0d0d;
    stroke-width: 2.2;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-cta-cv:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.55), 0 0 20px rgba(212, 175, 55, 0.4);
    filter: brightness(1.08);
}

.btn-cta-cv:hover svg {
    transform: translateY(2px);
}

.btn-cta-cv:active {
    transform: translateY(0) scale(0.98);
}

/* 2. Secondary Contact Button (Dark Frosted Glass) */
.btn-cta-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 0.82rem 1.6rem;
    background: rgba(18, 18, 18, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #f5f5f5 !important;
    font-family: var(--font-heading, 'Space Grotesk', sans-serif);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 8px;
    text-decoration: none;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.btn-cta-contact svg {
    width: 16px;
    height: 16px;
    stroke: #c8a84e;
    stroke-width: 2;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), stroke 0.3s;
}

.btn-cta-contact:hover {
    border-color: #c8a84e;
    color: #c8a84e !important;
    background: rgba(200, 168, 78, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(200, 168, 78, 0.25);
}

.btn-cta-contact:hover svg {
    transform: translateX(3px);
}

.btn-cta-contact:active {
    transform: translateY(0) scale(0.98);
}

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

.dot {
    display: inline-block;
    color: var(--gold-dim);
    opacity: 0.5;
}

/* Hero Photo */
.hero-photo {
    flex-shrink: 0;
    width: clamp(280px, 32vw, 420px);
}

.hero-photo-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
}

.hero-photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%; /* Waist-up tight crop */
    display: block;
    filter: grayscale(40%) brightness(0.8) contrast(1.15);
    transition: filter 0.6s var(--ease-smooth);
}

.hero-photo-wrapper:hover img {
    filter: grayscale(10%) brightness(0.95) contrast(1.05);
}

.hero-photo-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to right, var(--black) 0%, transparent 30%),
        linear-gradient(to left, var(--black) 0%, transparent 30%),
        linear-gradient(to bottom, transparent 40%, var(--black) 95%),
        linear-gradient(to top, var(--black) 0%, transparent 15%);
    pointer-events: none;
    box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.8); /* Heavy vignette */
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.scroll-indicator span {
    font-family: var(--font-body);
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    color: var(--text-subtle);
}

.scroll-track {
    width: 1px;
    height: 50px;
    background: var(--border);
    position: relative;
    overflow: hidden;
}

.scroll-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--gold);
    position: absolute;
    left: -1px;
    top: 0;
    animation: scrollMove 2.5s ease-in-out infinite;
}

@keyframes scrollMove {
    0%   { top: 0; opacity: 0; }
    20%  { opacity: 1; }
    80%  { opacity: 1; }
    100% { top: calc(100% - 3px); opacity: 0; }
}

/* ========================================================
   PROJECTS
   ======================================================== */
.projects {
    background: var(--off-black);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    font-weight: 500;
    letter-spacing: 0.35em;
    color: var(--white);
    margin-bottom: clamp(2.5rem, 5vh, 4rem);
}

/* Filter Toggle */
.project-filter {
    display: flex;
    gap: 2.5rem;
    margin-bottom: clamp(3rem, 6vh, 5rem);
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
}

.filter-btn {
    background: none;
    border: none;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    color: var(--text-muted);
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s;
}

.filter-btn::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.4s var(--ease-out);
}

.filter-btn.active {
    color: var(--pure-white);
}

.filter-btn.active::after {
    width: 100%;
}

.filter-btn:hover {
    color: var(--white);
}

/* Project Grid */
.projects-grid {
    display: flex;
    flex-direction: column;
    gap: clamp(5rem, 10vh, 8rem);
}

/* Project Item */
.project-item {
    display: flex;
    align-items: center;
    gap: clamp(2rem, 5vw, 4rem);
}

.project-item:nth-child(even) {
    flex-direction: row-reverse;
}

.project-item.hidden {
    display: none;
}

/* Project Media / Placeholder */
.project-media {
    flex: 1.3;
    min-width: 0;
}

.project-placeholder {
    aspect-ratio: 16 / 9;
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: border-color 0.4s, transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.project-item:hover .project-placeholder {
    border-color: var(--gold-dim);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px var(--gold-glow);
}

.project-placeholder-num {
    font-family: var(--font-heading);
    font-size: clamp(5rem, 10vw, 9rem);
    font-weight: 700;
    color: #111111;
    user-select: none;
    line-height: 1;
    transition: color 0.4s;
}

.project-item:hover .project-placeholder-num {
    color: #181818;
}

/* Decorative circuit-trace lines on placeholder */
.project-placeholder-lines {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.project-placeholder-lines::before,
.project-placeholder-lines::after {
    content: '';
    position: absolute;
    background: var(--border);
    transition: background 0.4s;
}

.project-placeholder-lines::before {
    top: 25%;
    right: 0;
    width: 35%;
    height: 1px;
}

.project-placeholder-lines::after {
    bottom: 30%;
    left: 0;
    width: 25%;
    height: 1px;
}

.project-item:hover .project-placeholder-lines::before,
.project-item:hover .project-placeholder-lines::after {
    background: var(--gold-dim);
}

/* Project Info */
.project-info {
    flex: 1;
    min-width: 0;
}

.project-label {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    display: block;
    margin-bottom: 0.75rem;
}

.project-title {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 600;
    color: var(--pure-white);
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.project-desc {
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    max-width: 440px;
}

/* Tags */
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    border: 1px solid var(--border-light);
    color: var(--text-subtle);
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    transition: border-color 0.3s, color 0.3s;
}

.tag:hover {
    border-color: var(--gold-dim);
    color: var(--gold);
}

/* Project Links */
.project-links {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.project-details-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1.4rem;
    background: linear-gradient(135deg, var(--gold), #b8922e);
    border: none;
    color: #0a0a0a;
    font-size: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s, filter 0.4s;
    text-decoration: none;
    border-radius: 3px;
    box-shadow: 0 2px 12px rgba(200, 168, 78, 0.25);
}

.project-details-btn svg {
    transition: transform 0.4s var(--ease-out);
    stroke: #0a0a0a;
}

.project-details-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(200, 168, 78, 0.45);
    filter: brightness(1.15);
}

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

.project-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: color 0.3s, transform 0.3s var(--ease-out);
    padding: 0.5rem;
}

.project-link-icon:hover {
    color: var(--gold);
    transform: translateY(-2px);
}

/* Projects Empty State */
.projects-empty {
    padding: 4rem 0;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.empty-icon {
    color: var(--border-light);
    margin-bottom: 0.5rem;
}

.empty-text {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.empty-sub {
    font-size: 0.8rem;
    color: var(--text-subtle);
}

/* ========================================================
   SKILLS
   ======================================================== */
.skills {
    background: var(--black);
}

.skills-sec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-top: clamp(2rem, 5vh, 4rem);
}

.skills-sec-cat {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 2.2rem 2rem;
    border-radius: 4px;
    transition: border-color 0.4s, transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.skills-sec-cat:hover {
    border-color: var(--gold-dim);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px var(--gold-glow);
}

.skills-sec-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--pure-white);
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.skills-sec-title svg {
    color: var(--gold);
    flex-shrink: 0;
}

.skills-sec-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.skills-sec-list li {
    font-size: 0.875rem;
    font-weight: 300;
    color: var(--text-muted);
    position: relative;
    padding-left: 1.2rem;
    transition: color 0.3s;
}

.skills-sec-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: var(--gold-dim);
    border-radius: 50%;
    transition: background 0.3s, transform 0.3s;
}

.skills-sec-cat:hover .skills-sec-list li {
    color: var(--white);
}

.skills-sec-list li:hover {
    color: var(--gold);
}

.skills-sec-list li:hover::before {
    background: var(--gold);
    transform: translateY(-50%) scale(1.5);
}

/* ========================================================
   ABOUT
   ======================================================== */
.about {
    background: var(--black);
}

.about-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: clamp(3rem, 6vw, 5rem);
    align-items: start;
}

.about-photo-wrapper {
    width: clamp(220px, 22vw, 300px);
    aspect-ratio: 3 / 4;
    overflow: hidden;
    position: relative;
}

.about-photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    filter: grayscale(25%) brightness(0.85) contrast(1.1);
    transition: filter 0.6s var(--ease-smooth);
}

.about-photo-wrapper:hover img {
    filter: grayscale(0%) brightness(0.9) contrast(1.05);
}

.about-photo-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, transparent 60%, var(--black) 100%);
    pointer-events: none;
}

.about-content {
    padding-top: 0.5rem;
}

.about-bio {
    font-size: clamp(0.9rem, 1.1vw, 1rem);
    font-weight: 300;
    color: var(--white);
    line-height: 1.8;
    margin-bottom: 1rem;
    max-width: 560px;
}

.about-bio-secondary {
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: clamp(2.5rem, 5vh, 3.5rem);
    max-width: 560px;
}

.about-details {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.about-block-title {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1.8rem;
}

.skill-item {
    font-size: 0.875rem;
    font-weight: 300;
    color: var(--text-muted);
    position: relative;
    padding-left: 1rem;
}

.skill-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: var(--gold-dim);
}

.about-row {
    display: flex;
    gap: clamp(2rem, 4vw, 4rem);
}

.about-block-text {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--white);
    line-height: 1.6;
    margin-bottom: 0.25rem;
}

.about-block-sub {
    font-size: 0.8rem;
    font-weight: 300;
    color: var(--text-muted);
}

.lang-tag {
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-subtle);
    margin-left: 0.5rem;
}

/* ========================================================
   EXPERIENCE
   ======================================================== */
.experience {
    background: var(--off-black);
}

.experience-list {
    max-width: 700px;
}

.exp-item {
    padding: clamp(2rem, 4vh, 3rem) 0;
    border-bottom: 1px solid var(--border);
}

.exp-item:first-child {
    padding-top: 0;
}

.exp-item:last-child {
    border-bottom: none;
}

.exp-header {
    margin-bottom: 1.5rem;
}

.exp-company {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    font-weight: 600;
    color: var(--pure-white);
    margin-bottom: 0.4rem;
    letter-spacing: -0.01em;
}

.exp-role {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--gold);
    letter-spacing: 0.05em;
}

.exp-bullets {
    list-style: none;
}

.exp-bullets li {
    font-size: 0.875rem;
    font-weight: 300;
    color: var(--text-muted);
    line-height: 1.7;
    padding-left: 1.25rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.exp-bullets li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 4px;
    height: 4px;
    background: var(--gold-dim);
}

/* ========================================================
   CONTACT
   ======================================================== */
.contact {
    background: var(--black);
    text-align: center;
    padding-bottom: clamp(3rem, 6vh, 5rem);
}

.contact .section-title {
    text-align: center;
    margin-top: 1rem;
}

.contact-logo-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.contact-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border);
    filter: drop-shadow(0 0 15px var(--gold-glow));
    transition: transform 0.4s var(--ease-out);
}

.contact-logo-wrapper:hover .contact-logo {
    transform: rotate(360deg);
}

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

.contact-email {
    font-family: var(--font-heading);
    font-size: clamp(1.1rem, 2.8vw, 2.2rem);
    font-weight: 500;
    color: var(--pure-white);
    letter-spacing: -0.01em;
    position: relative;
    display: inline-block;
    transition: color 0.3s;
    margin-bottom: 2.5rem;
}

.contact-email::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform 0.4s var(--ease-out);
    transform-origin: right;
}

.contact-email:hover {
    color: var(--gold);
}

.contact-email:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.contact-details {
    display: flex;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 300;
}

.contact-item svg {
    color: var(--text-subtle);
    flex-shrink: 0;
}

.contact-socials {
    display: flex;
    gap: 2rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    padding: 0.5rem 0;
    transition: color 0.3s;
}

.social-link svg {
    flex-shrink: 0;
    transition: color 0.3s;
}

.social-link:hover {
    color: var(--gold);
}

/* ========================================================
   FOOTER
   ======================================================== */
.footer {
    padding: 2rem 0;
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copy {
    font-size: 0.75rem;
    color: var(--text-subtle);
    letter-spacing: 0.05em;
}

.footer-note {
    font-size: 0.7rem;
    color: var(--mid-gray);
    font-style: italic;
}

/* ========================================================
   RESPONSIVE
   ======================================================== */

/* Tablet */
@media (max-width: 1024px) {
    .hero-inner {
        gap: 3rem;
    }

    .hero-photo {
        width: clamp(200px, 30vw, 280px);
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-photo-wrapper {
        width: 200px;
    }

    .about-row {
        flex-direction: column;
        gap: 2rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --nav-height: 60px;
    }

    /* Nav */
    .nav-toggle {
        display: flex;
    }

    #desktop-lang-switcher {
        display: none;
    }

    .mobile-lang-switcher {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        background: var(--black);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.4s var(--ease-smooth);
    }

    .nav-links.open {
        opacity: 1;
        pointer-events: all;
    }

    .nav-links .nav-link {
        font-size: 1rem;
        letter-spacing: 0.2em;
    }

    /* Hero */
    .hero {
        padding-top: calc(var(--nav-height) + 2rem);
        min-height: 100vh;
        min-height: 100dvh;
    }

    .hero-inner {
        flex-direction: column;
        text-align: center;
        gap: 2.5rem;
    }

    .hero-logo {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-photo {
        width: clamp(200px, 60vw, 280px);
        order: -1;
    }

    .hero-subtitle .dot {
        display: block;
        margin: 0.3rem 0;
        font-size: 0;
    }

    .hero-subtitle .dot::after {
        content: '';
    }

    .scroll-indicator {
        display: none;
    }

    /* Projects */
    .project-item,
    .project-item:nth-child(even) {
        flex-direction: column;
        gap: 1.5rem;
    }

    .project-desc {
        max-width: 100%;
    }

    /* Contact */
    .contact-details {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-inner {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .hero-name-line {
        font-size: clamp(3rem, 15vw, 5rem);
    }

    .project-filter {
        gap: 1.5rem;
    }

    .project-links {
        gap: 1rem;
    }
}

/* ========================================================
   LANGUAGE SWITCHER & ACTIONS
   ======================================================== */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lang-switcher {
    display: inline-flex;
    align-items: center;
    background: rgba(20, 20, 20, 0.7);
    border: 1px solid var(--border);
    border-radius: 9999px;
    padding: 3px;
    gap: 2px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: border-color 0.3s, box-shadow 0.3s;
    z-index: 10;
}

.lang-switcher:hover {
    border-color: var(--gold-dim);
    box-shadow: 0 0 16px var(--gold-glow);
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 9999px;
    transition: all 0.25s var(--ease-out);
    font-family: inherit;
    cursor: pointer;
    line-height: 1.2;
}

.lang-btn:hover {
    color: var(--pure-white);
}

.lang-btn.active {
    background: var(--gold);
    color: var(--black);
    font-weight: 700;
    box-shadow: 0 0 10px rgba(200, 168, 78, 0.4);
}

/* Mobile Lang Switcher inside Drawer */
.mobile-lang-switcher {
    display: none;
    margin-top: 1.5rem;
}

/* Nav Contact Quick Button */
.nav-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.42rem 0.95rem;
    background: rgba(200, 168, 78, 0.08);
    border: 1px solid var(--gold-dim);
    color: var(--gold);
    font-size: 0.72rem;
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.3s var(--ease-out);
    white-space: nowrap;
}

.nav-contact-btn:hover {
    background: var(--gold);
    color: #0a0a0a;
    box-shadow: 0 0 16px var(--gold-glow);
    transform: translateY(-1px);
}

@media (max-width: 820px) {
    .nav-contact-btn {
        display: none;
    }
}

/* Contact Email & Copy Button */
.contact-email-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-copy-email {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 1rem;
    background: rgba(20, 20, 20, 0.7);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.72rem;
    font-family: var(--font-heading);
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.25s var(--ease-out);
    backdrop-filter: blur(8px);
}

.btn-copy-email:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(200, 168, 78, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px var(--gold-glow);
}

.btn-copy-email.copied {
    border-color: #22c55e !important;
    color: #22c55e !important;
    background: rgba(34, 197, 94, 0.12) !important;
}

.btn-copy-email svg {
    transition: transform 0.25s;
}

/* Admin Access Button in Footer */
.footer-admin-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--text-subtle);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.4rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: rgba(13, 13, 13, 0.6);
    transition: all 0.3s;
}

.footer-admin-btn:hover {
    color: var(--gold);
    border-color: var(--gold-dim);
    background: rgba(200, 168, 78, 0.08);
    box-shadow: 0 0 12px var(--gold-glow);
}

.footer-admin-btn svg {
    opacity: 0.7;
    transition: transform 0.3s;
}

.footer-admin-btn:hover svg {
    opacity: 1;
    transform: rotate(45deg);
}

/* ========================================================
   RTL & MULTILINGUAL (KURDISH & ARABIC) STYLES
   ======================================================== */
[dir="rtl"],
html[lang="ku"],
html[lang="ar"] {
    --font-heading: 'Vazirmatn', 'IBM Plex Sans Arabic', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body:    'Vazirmatn', 'IBM Plex Sans Arabic', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

[dir="rtl"],
html[lang="ku"],
html[lang="ar"],
[dir="rtl"] *,
html[lang="ku"] *,
html[lang="ar"] * {
    letter-spacing: normal !important;
    word-spacing: normal !important;
    text-transform: none !important;
    font-feature-settings: "liga" 1, "calt" 1;
    text-rendering: optimizeLegibility;
}

[dir="rtl"] body {
    direction: rtl;
    text-align: right;
    font-family: var(--font-body);
    line-height: 1.8;
}

[dir="rtl"] .hero-inner {
    direction: rtl;
}

[dir="rtl"] .hero-name {
    font-family: var(--font-heading) !important;
    margin-bottom: clamp(1.2rem, 2.5vh, 1.8rem);
}

[dir="rtl"] .hero-name-line {
    font-family: var(--font-heading) !important;
    font-size: clamp(3.2rem, 8vw, 6.5rem);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: normal !important;
    text-align: right;
    display: block;
}

[dir="rtl"] .hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(0.95rem, 1.3vw, 1.15rem);
    letter-spacing: normal !important;
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .typewriter-cursor {
    margin-left: 0;
    margin-right: 4px;
}

[dir="rtl"] .section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 2.2vw, 1.6rem);
    font-weight: 700;
    letter-spacing: normal !important;
    text-align: right;
}

[dir="rtl"] .nav-links {
    flex-direction: row;
}

[dir="rtl"] .nav-link {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: normal !important;
}

[dir="rtl"] .filter-btn {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: normal !important;
}

[dir="rtl"] .project-label {
    font-weight: 600;
    color: var(--gold);
    letter-spacing: normal !important;
}

[dir="rtl"] .project-title {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: normal !important;
}

[dir="rtl"] .project-desc {
    line-height: 1.8;
}

[dir="rtl"] .btn-primary svg,
[dir="rtl"] .project-details-btn svg {
    transform: scaleX(-1);
    margin-right: 0.4rem;
    margin-left: 0;
}

[dir="rtl"] .skills-sec-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 700;
}

[dir="rtl"] .skills-sec-list li {
    padding-left: 0;
    padding-right: 1.25rem;
    font-family: var(--font-body);
}

[dir="rtl"] .skills-sec-list li::before {
    left: auto;
    right: 0;
}

[dir="rtl"] .about-bio,
[dir="rtl"] .about-bio-secondary {
    line-height: 1.85;
    font-size: 0.95rem;
    font-family: var(--font-body);
}

[dir="rtl"] .about-block-title {
    text-align: right;
    font-family: var(--font-heading);
    font-weight: 700;
}

[dir="rtl"] .exp-company {
    font-family: var(--font-heading);
    font-weight: 700;
}

[dir="rtl"] .exp-bullets li {
    padding-left: 0;
    padding-right: 1.5rem;
    line-height: 1.75;
}

[dir="rtl"] .exp-bullets li::before {
    left: auto;
    right: 0;
}

[dir="rtl"] .contact-item {
    justify-content: flex-start;
}

[dir="rtl"] .contact-item svg {
    margin-left: 0.6rem;
    margin-right: 0;
}


