/* ════════════════════════════════════════════════════════════
   DESIGN SYSTEM — Saeed Ahmad Jahash Portfolio
   Dark Tech × Human Artistry × Bilingual (EN / AR)
════════════════════════════════════════════════════════════ */

/* ── Variables ── */
:root {
    --bg:           #05050c;
    --bg-2:         #0b0b18;
    --card-bg:      rgba(255, 255, 255, 0.042);
    --card-hover:   rgba(255, 255, 255, 0.07);
    --text:         #eaeaf4;
    --text-2:       #9898b0;
    --text-3:       #55556a;
    --gold:         #d4af37;
    --gold-light:   #f0cc55;
    --gold-dim:     rgba(212, 175, 55, 0.14);
    --cyan:         #4fc3f7;
    --cyan-dim:     rgba(79, 195, 247, 0.08);
    --border:       rgba(255, 255, 255, 0.07);
    --border-gold:  rgba(212, 175, 55, 0.28);
    --shadow:       rgba(0, 0, 0, 0.6);
    --font-head:    'Playfair Display', Georgia, serif;
    --font-body:    'Montserrat', Arial, sans-serif;
    --ease:         cubic-bezier(0.4, 0, 0.2, 1);
    --t-fast:       0.2s;
    --t-base:       0.35s;
    --t-slow:       0.7s;
    --radius:       16px;
    --section-pad:  clamp(5rem, 9vw, 9rem);
}

/* Arabic font override */
html[lang="ar"] {
    --font-head: 'Cairo', 'Arial', sans-serif;
    --font-body: 'Cairo', 'Arial', sans-serif;
}

/* ── Reset ── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.65;
    overflow-x: hidden;
    cursor: none;
}

img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── Typography ── */
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; }
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3 { line-height: 1.4; }

/* ── Container ── */
.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

/* ── Gold highlight ── */
.gold { color: var(--gold); }

/* ════════════════════════════════════════════════════════════
   AMBIENT BACKGROUND
════════════════════════════════════════════════════════════ */
.bg-grid {
    position: fixed;
    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: 64px 64px;
    pointer-events: none;
    z-index: 0;
}

.bg-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.13;
    pointer-events: none;
    z-index: 0;
    animation: orbDrift 25s var(--ease) infinite;
}
.bg-orb-1 {
    width: 700px; height: 700px;
    background: radial-gradient(circle, #d4af37, transparent 65%);
    top: -180px; left: -200px;
    animation-delay: 0s;
}
.bg-orb-2 {
    width: 550px; height: 550px;
    background: radial-gradient(circle, #4fc3f7, transparent 65%);
    top: 35%; right: -150px;
    animation-delay: -9s;
}
.bg-orb-3 {
    width: 450px; height: 450px;
    background: radial-gradient(circle, #7c3aed, transparent 65%);
    bottom: 8%; left: 15%;
    animation-delay: -17s;
}

@keyframes orbDrift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%       { transform: translate(40px, -40px) scale(1.06); }
    66%       { transform: translate(-25px, 25px) scale(0.94); }
}

/* ════════════════════════════════════════════════════════════
   CUSTOM CURSOR
════════════════════════════════════════════════════════════ */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0; left: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
}
.cursor-dot {
    width: 7px; height: 7px;
    background: var(--gold);
}
.cursor-outline {
    width: 38px; height: 38px;
    border: 1.5px solid var(--gold);
    opacity: 0.7;
    transition: width var(--t-fast), height var(--t-fast), background var(--t-fast), opacity var(--t-fast);
}

/* ════════════════════════════════════════════════════════════
   GLASS CARD BASE
════════════════════════════════════════════════════════════ */
.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: background var(--t-base) var(--ease),
                border-color var(--t-base) var(--ease),
                transform var(--t-base) var(--ease),
                box-shadow var(--t-base) var(--ease);
}
.glass-card:hover {
    background: var(--card-hover);
    border-color: var(--border-gold);
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.45), 0 0 0 1px var(--border-gold);
}

/* ════════════════════════════════════════════════════════════
   HEADER / NAV
════════════════════════════════════════════════════════════ */
#header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 1.1rem 0;
    background: rgba(5, 5, 12, 0.75);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    transition: padding var(--t-base);
}
#header.scrolled { padding: 0.75rem 0; }

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

/* Logo */
.logo {
    font-family: var(--font-head);
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1;
}
.logo-s  { color: var(--gold); }
.logo-dot { color: var(--cyan); font-size: 2rem; line-height: 0.8; vertical-align: bottom; }

/* Nav links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.nav-links a {
    padding: 0.45rem 0.9rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-2);
    transition: color var(--t-fast), background var(--t-fast);
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); background: rgba(255,255,255,0.06); }
.btn-nav {
    background: var(--gold-dim) !important;
    color: var(--gold) !important;
    border: 1px solid var(--border-gold);
}
.btn-nav:hover { background: rgba(212,175,55,0.22) !important; }

/* Nav actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Language Toggle */
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 5px 13px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--text-2);
    transition: border-color var(--t-base), color var(--t-base);
}
.lang-toggle:hover { border-color: var(--border-gold); color: var(--text); }
.lang-divider {
    width: 1px;
    height: 12px;
    background: var(--border);
    display: block;
}
.lang-label { transition: color var(--t-fast); }
.lang-toggle.ar-active .lang-ar-label  { color: var(--gold); }
.lang-toggle:not(.ar-active) .lang-en-label { color: var(--gold); }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
    transition: transform var(--t-base), opacity var(--t-base);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ════════════════════════════════════════════════════════════
   HERO SECTION
════════════════════════════════════════════════════════════ */
#hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
    padding: 7rem clamp(1.25rem, 4vw, 2.5rem) 5rem;
    max-width: 1160px;
    margin: 0 auto;
    position: relative;
}

/* Availability tag */
.hero-availability-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(79, 195, 247, 0.08);
    border: 1px solid rgba(79, 195, 247, 0.22);
    border-radius: 30px;
    padding: 5px 14px;
    font-size: 0.73rem;
    font-weight: 600;
    color: var(--cyan);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 1.4rem;
    animation: heroFadeUp 0.8s var(--ease) both;
}
.pulse-dot {
    width: 7px; height: 7px;
    background: var(--cyan);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(79,195,247,0.5);
    animation: pulseDot 2s infinite;
}
@keyframes pulseDot {
    0%   { box-shadow: 0 0 0 0 rgba(79,195,247,0.5); }
    70%  { box-shadow: 0 0 0 8px rgba(79,195,247,0); }
    100% { box-shadow: 0 0 0 0 rgba(79,195,247,0); }
}

/* Greeting */
.hero-greeting {
    font-size: 0.95rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-2);
    margin-bottom: 0.6rem;
    animation: heroFadeUp 0.8s 0.1s var(--ease) both;
}

/* Name */
.hero-name {
    font-family: var(--font-head);
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 1.4rem;
    animation: heroFadeUp 0.8s 0.2s var(--ease) both;
}
html[lang="ar"] .hero-name { font-size: clamp(2.4rem, 5vw, 4.2rem); }
.name-line-1 { display: block; color: var(--text); }
.name-line-2 { display: block; color: var(--text); }
.name-accent { font-style: italic; color: var(--gold); }

/* Typewriter */
.hero-typewriter-wrap {
    font-size: clamp(0.95rem, 2vw, 1.2rem);
    color: var(--text-2);
    min-height: 2em;
    margin-bottom: 2.2rem;
    animation: heroFadeUp 0.8s 0.3s var(--ease) both;
}
.typewriter-cursor {
    color: var(--gold);
    animation: cursorBlink 0.9s infinite;
    font-weight: 300;
    margin-left: 2px;
}
@keyframes cursorBlink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

/* Hero CTA button */
.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(130deg, var(--gold) 0%, #b8860b 100%);
    color: #000;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    padding: 0.85rem 1.8rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: transform var(--t-base), box-shadow var(--t-base);
    animation: heroFadeUp 0.8s 0.4s var(--ease) both;
}
.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(212,175,55,0.35);
}
.btn-hero-arrow {
    width: 28px; height: 28px;
    background: rgba(0,0,0,0.18);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem;
    transition: transform var(--t-base);
}
.btn-hero:hover .btn-hero-arrow { transform: translateX(4px); }
html[dir="rtl"] .btn-hero:hover .btn-hero-arrow { transform: translateX(-4px); }
html[dir="rtl"] .btn-hero-arrow i { transform: rotate(180deg); }

/* Stats row */
.hero-stats-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
    animation: heroFadeUp 0.8s 0.5s var(--ease) both;
}
.hero-stat { display: flex; flex-direction: column; gap: 2px; }
.stat-num {
    font-family: var(--font-head);
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}
.stat-lbl { font-size: 0.72rem; color: var(--text-2); text-transform: uppercase; letter-spacing: 1px; }
.stat-sep { width: 1px; height: 36px; background: var(--border); }

@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Hero Visual ── */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 420px;
    animation: heroFadeIn 1.2s 0.6s var(--ease) both;
}
@keyframes heroFadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to   { opacity: 1; transform: scale(1); }
}

/* Rings */
.ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(212,175,55,0.18);
}
.ring-1 { width: 240px; height: 240px; border-color: rgba(212,175,55,0.25); animation: spinRing 18s linear infinite; }
.ring-2 { width: 320px; height: 320px; border-color: rgba(212,175,55,0.12); animation: spinRing 30s linear infinite reverse; border-style: dashed; }
.ring-3 { width: 400px; height: 400px; border-color: rgba(79,195,247,0.1); animation: spinRing 45s linear infinite; }
@keyframes spinRing { to { transform: rotate(360deg); } }

/* Avatar */
.avatar-core {
    width: 160px; height: 160px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bg-2) 0%, #161630 100%);
    border: 2px solid var(--border-gold);
    display: flex; align-items: center; justify-content: center;
    position: relative;
    z-index: 2;
}
.avatar-initials {
    font-family: var(--font-head);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 2px;
}
.avatar-glow {
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212,175,55,0.18) 0%, transparent 70%);
    z-index: -1;
}

/* Floating badges */
.float-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 7px;
    background: rgba(5,5,12,0.85);
    border: 1px solid var(--border-gold);
    border-radius: 30px;
    padding: 7px 14px;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--gold);
    backdrop-filter: blur(12px);
    z-index: 5;
    white-space: nowrap;
}
.float-badge i { font-size: 0.9rem; }
.badge-pmp  { top: 18%;  right: 2%;  animation: floatBadge 4s ease-in-out infinite; }
.badge-iso  { bottom: 22%; left: 1%; animation: floatBadge 4s 1.3s ease-in-out infinite; }
.badge-ai   { top: 65%;  right: 5%;  animation: floatBadge 4s 2.6s ease-in-out infinite; }
@keyframes floatBadge {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-8px); }
}

/* Scroll cue */
.scroll-cue {
    position: absolute;
    bottom: 2.2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    animation: heroFadeIn 1s 1.2s var(--ease) both;
}
.scroll-wheel-wrap {
    width: 22px; height: 36px;
    border: 2px solid var(--text-3);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}
.scroll-wheel-inner {
    width: 4px; height: 8px;
    background: var(--gold);
    border-radius: 4px;
    animation: scrollWheel 2s ease-in-out infinite;
}
@keyframes scrollWheel {
    0%   { transform: translateY(0); opacity: 1; }
    80%  { transform: translateY(10px); opacity: 0; }
    100% { transform: translateY(0); opacity: 0; }
}

/* ════════════════════════════════════════════════════════════
   SECTION SHARED STYLES
════════════════════════════════════════════════════════════ */
section {
    padding: var(--section-pad) 0;
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    background: var(--gold-dim);
    border: 1px solid var(--border-gold);
    padding: 4px 14px;
    border-radius: 30px;
    margin-bottom: 0.9rem;
}

.section-title {
    font-family: var(--font-head);
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 700;
    color: var(--text);
}

/* ── Scroll animation classes ── */
.anim {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
}
.anim.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ════════════════════════════════════════════════════════════
   ABOUT SECTION
════════════════════════════════════════════════════════════ */
.about-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 3rem;
    align-items: start;
}

.about-text {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: clamp(1.8rem, 3vw, 2.8rem);
}
.about-text p {
    color: var(--text-2);
    font-size: clamp(0.9rem, 1.5vw, 1.05rem);
    line-height: 1.85;
    margin-bottom: 1.4rem;
}
.about-text p:last-child { margin-bottom: 0; }
.about-text strong { color: var(--gold); font-weight: 600; }

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hl-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.1rem 1.3rem;
    transition: border-color var(--t-base), transform var(--t-base);
}
.hl-card:hover { border-color: var(--border-gold); transform: translateX(6px); }
html[dir="rtl"] .hl-card:hover { transform: translateX(-6px); }

.hl-icon {
    min-width: 40px; height: 40px;
    background: var(--gold-dim);
    border: 1px solid var(--border-gold);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: var(--gold);
    font-size: 1rem;
}
.hl-body h4 {
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
}
.hl-body p {
    font-size: 0.78rem;
    color: var(--text-2);
}

/* ════════════════════════════════════════════════════════════
   EXPERIENCE / TIMELINE
════════════════════════════════════════════════════════════ */
.timeline {
    max-width: 760px;
    margin: 0 auto;
}

.tl-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    margin-bottom: 2.2rem;
}
.tl-item:last-child .tl-line { display: none; }

.tl-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    padding-top: 0.3rem;
}

.tl-icon {
    width: 44px; height: 44px;
    background: linear-gradient(135deg, var(--gold-dim), rgba(212,175,55,0.05));
    border: 1.5px solid var(--border-gold);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--gold);
    font-size: 0.9rem;
    z-index: 1;
    position: relative;
    flex-shrink: 0;
}

.tl-line {
    width: 1.5px;
    flex: 1;
    min-height: 30px;
    background: linear-gradient(to bottom, var(--border-gold), var(--border));
    margin-top: 6px;
}

.tl-card {
    flex: 1;
    padding: clamp(1.2rem, 2.5vw, 1.8rem);
    margin-bottom: 0;
}

.tl-meta {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}
.tl-date {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 0.3px;
}
.tl-badge {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--text-2);
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2px 10px;
}

.tl-card h3 {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.25rem;
}
.tl-card h4 {
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 400;
    color: var(--text-2);
    margin-bottom: 1rem;
}
.tl-card ul { display: flex; flex-direction: column; gap: 0.45rem; }
.tl-card li {
    font-size: 0.88rem;
    color: var(--text-2);
    padding-inline-start: 1rem;
    position: relative;
}
.tl-card li::before {
    content: '▸';
    position: absolute;
    inset-inline-start: 0;
    color: var(--gold);
    font-size: 0.7rem;
    top: 2px;
}

/* ════════════════════════════════════════════════════════════
   PROJECTS GRID
════════════════════════════════════════════════════════════ */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.proj-card {
    padding: clamp(1.4rem, 2.5vw, 2rem);
    position: relative;
    overflow: hidden;
}

.proj-num {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    font-family: var(--font-head);
    font-size: 3.5rem;
    font-weight: 700;
    color: rgba(255,255,255,0.03);
    line-height: 1;
    pointer-events: none;
    transition: color var(--t-base);
}
html[dir="rtl"] .proj-num { right: auto; left: 1.2rem; }
.proj-card:hover .proj-num { color: rgba(212,175,55,0.06); }

.proj-icon {
    font-size: 1.7rem;
    color: var(--gold);
    margin-bottom: 1.1rem;
    transition: transform var(--t-base);
}
.proj-card:hover .proj-icon { transform: scale(1.1) rotate(-5deg); }

.proj-card h3 {
    font-family: var(--font-body);
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}
.proj-card p {
    font-size: 0.85rem;
    color: var(--text-2);
    line-height: 1.7;
    margin-bottom: 1.2rem;
}

.proj-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.proj-tags span {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.7px;
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid var(--border);
    color: var(--text-2);
    background: rgba(255,255,255,0.03);
    transition: border-color var(--t-fast), color var(--t-fast);
}
.proj-card:hover .proj-tags span { border-color: var(--border-gold); color: var(--gold); }
.tag-award { color: var(--gold) !important; border-color: var(--border-gold) !important; background: var(--gold-dim) !important; }

/* Featured project */
.proj-featured {
    border-color: var(--border-gold);
    background: linear-gradient(135deg, rgba(212,175,55,0.06), var(--card-bg));
}
.proj-featured::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ════════════════════════════════════════════════════════════
   SKILLS SECTION
════════════════════════════════════════════════════════════ */
.skills-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.skills-cat-title {
    font-family: var(--font-head);
    font-size: 1.3rem;
    color: var(--gold);
    margin-bottom: 1.8rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

/* Competency grid */
.competency-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
}
.comp-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 0.82rem;
    color: var(--text-2);
    font-weight: 500;
    transition: border-color var(--t-base), color var(--t-base), background var(--t-base);
}
.comp-item:hover { border-color: var(--border-gold); color: var(--text); background: var(--gold-dim); }
.comp-icon {
    width: 32px; height: 32px;
    background: var(--gold-dim);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: var(--gold);
    font-size: 0.82rem;
    flex-shrink: 0;
}

/* Certifications */
.cert-list { display: flex; flex-direction: column; gap: 1rem; }
.cert-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.2rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: border-color var(--t-base), transform var(--t-base);
}
.cert-item:hover { border-color: var(--border-gold); transform: translateX(6px); }
html[dir="rtl"] .cert-item:hover { transform: translateX(-6px); }

.cert-badge {
    width: 40px; height: 40px;
    background: var(--gold-dim);
    border: 1px solid var(--border-gold);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: var(--gold);
    font-size: 1rem;
    flex-shrink: 0;
}
.cert-body { display: flex; flex-direction: column; gap: 3px; }
.cert-name { font-size: 0.86rem; font-weight: 600; color: var(--text); }
.cert-from { font-size: 0.74rem; color: var(--text-2); }

/* ════════════════════════════════════════════════════════════
   EDUCATION
════════════════════════════════════════════════════════════ */
.edu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.edu-card {
    padding: clamp(1.5rem, 3vw, 2.2rem);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
}

.edu-icon {
    width: 56px; height: 56px;
    background: var(--gold-dim);
    border: 1px solid var(--border-gold);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    color: var(--gold);
    transition: transform var(--t-base);
}
.edu-card:hover .edu-icon { transform: rotate(10deg) scale(1.08); }

.edu-status {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 3px 12px;
    border-radius: 20px;
    background: rgba(212,175,55,0.1);
    color: var(--gold);
    border: 1px solid var(--border-gold);
}
.status-progress {
    background: rgba(79,195,247,0.1);
    color: var(--cyan);
    border-color: rgba(79,195,247,0.3);
    animation: pulseBorder 2.5s ease-in-out infinite;
}
@keyframes pulseBorder {
    0%, 100% { box-shadow: 0 0 0 0 rgba(79,195,247,0.3); }
    50%       { box-shadow: 0 0 0 4px rgba(79,195,247,0); }
}

.edu-card h3 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
}
.edu-card p {
    font-size: 0.82rem;
    color: var(--text-2);
}

/* ════════════════════════════════════════════════════════════
   FOOTER / CONTACT
════════════════════════════════════════════════════════════ */
footer#contact {
    padding: clamp(4rem, 8vw, 7rem) 0 2.5rem;
    background: linear-gradient(to top, #000, var(--bg));
    text-align: center;
    position: relative;
    z-index: 1;
}

footer::before {
    content: '';
    position: absolute;
    top: 0; left: 10%; right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-gold), transparent);
}

.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 2.5rem; }

.footer-headline h2 {
    font-family: var(--font-head);
    font-size: clamp(2rem, 5vw, 3.2rem);
    margin-bottom: 0.6rem;
}
.footer-headline p { font-size: 1rem; color: var(--text-2); }

.footer-contacts {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}
.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1rem 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color var(--t-base), transform var(--t-base);
    text-align: start;
}
.footer-contact-item:hover { border-color: var(--border-gold); transform: translateY(-4px); }
.fc-icon {
    width: 44px; height: 44px;
    background: var(--gold-dim);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: var(--gold);
    font-size: 1.1rem;
    flex-shrink: 0;
}
.fc-body { display: flex; flex-direction: column; gap: 2px; }
.fc-label { font-size: 0.72rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--text-2); }
.fc-value { font-size: 0.9rem; font-weight: 600; color: var(--text); }

.copyright {
    font-size: 0.78rem;
    color: var(--text-3);
    margin-top: 0.5rem;
}

/* ════════════════════════════════════════════════════════════
   RTL OVERRIDES
════════════════════════════════════════════════════════════ */
html[dir="rtl"] .tl-item { flex-direction: row-reverse; }

html[dir="rtl"] .nav-links {
    right: auto;
    left: -100%;
    box-shadow: 5px 0 20px rgba(0,0,0,0.5);
}
html[dir="rtl"] .nav-links.open { left: 0; right: auto; }

html[dir="rtl"] .about-grid { direction: rtl; }

html[dir="rtl"] .footer-contact-item { flex-direction: row-reverse; }

html[dir="rtl"] .tl-card li::before { content: '◂'; }

/* ════════════════════════════════════════════════════════════
   RESPONSIVE — TABLET
════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    #hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 8rem;
        gap: 2rem;
    }
    html[dir="rtl"] #hero { text-align: center; }

    .hero-availability-tag,
    .btn-hero,
    .hero-stats-row { margin-inline: auto; }
    .hero-stats-row { justify-content: center; }

    .hero-visual { height: 340px; }
    .ring-3 { width: 320px; height: 320px; }
    .ring-2 { width: 260px; height: 260px; }
    .ring-1 { width: 200px; height: 200px; }
    .avatar-core { width: 130px; height: 130px; }
    .avatar-initials { font-size: 2.2rem; }

    .about-grid { grid-template-columns: 1fr; }
    .projects-grid { grid-template-columns: repeat(2, 1fr); }
    .skills-layout { grid-template-columns: 1fr; }
    .edu-grid { grid-template-columns: 1fr 1fr; }
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE
════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    body { cursor: auto; }
    .cursor-dot, .cursor-outline { display: none; }

    /* Nav mobile */
    .nav-links {
        position: fixed;
        top: 0; right: -100%; bottom: 0;
        width: min(75vw, 300px);
        flex-direction: column;
        gap: 0;
        background: rgba(5,5,12,0.97);
        backdrop-filter: blur(20px);
        padding-top: 5rem;
        border-left: 1px solid var(--border);
        z-index: 999;
        transition: right var(--t-base) var(--ease);
    }
    .nav-links.open { right: 0; }
    .nav-links li { width: 100%; border-bottom: 1px solid var(--border); }
    .nav-links a { display: block; padding: 1rem 2rem; font-size: 1rem; }
    .hamburger { display: flex; }

    /* Hero */
    #hero { gap: 1.5rem; padding-top: 7rem; }
    .hero-visual { height: 280px; }
    .ring-3 { width: 260px; height: 260px; }
    .ring-2 { width: 210px; height: 210px; }
    .ring-1 { width: 165px; height: 165px; }
    .float-badge { display: none; }

    /* Projects */
    .projects-grid { grid-template-columns: 1fr; }

    /* Skills */
    .competency-grid { grid-template-columns: 1fr; }

    /* Education */
    .edu-grid { grid-template-columns: 1fr; }

    /* Footer */
    .footer-contacts { flex-direction: column; align-items: center; }

    /* Timeline */
    .tl-item { gap: 1rem; }
    .tl-icon { width: 36px; height: 36px; font-size: 0.78rem; }
}

@media (max-width: 480px) {
    .hero-name { font-size: 2.2rem; }
    .section-title { font-size: 1.8rem; }
    .about-highlights { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
    .hl-card { flex-direction: column; text-align: center; }
    .hero-stats-row { gap: 1rem; }
    .stat-sep { height: 28px; }
}
