/* ============================================================
   AIDZGO PORTFOLIO — WordPress Theme CSS
   Dark / Light Mode + RTL Support
   ============================================================ */

/* ── CSS Variables — Dark Mode (default) ───────────────── */
:root,
[data-theme="dark"] {
  --bg:          #0a0a0f;
  --bg-2:        #0f0f18;
  --bg-card:     #12121e;
  --bg-card-2:   #16162a;
  --accent:      #6c63ff;
  --accent-2:    #ff6584;
  --accent-glow: rgba(108, 99, 255, 0.35);
  --green:       #00f5a0;
  --text:        #e8e8f0;
  --text-muted:  #7070a0;
  --text-faint:  #3a3a5c;
  --border:      rgba(108, 99, 255, 0.18);
  --border-2:    rgba(255,255,255,0.06);
  --font-mono:   'Space Mono', monospace;
  --font-display:'Syne', 'Cairo', sans-serif;
  --font-ar:     'Cairo', sans-serif;
  --radius:      12px;
  --radius-lg:   20px;
  --shadow:      0 8px 32px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 40px var(--accent-glow);
  --transition:  0.3s cubic-bezier(0.4,0,0.2,1);
  --noise-opacity: 0.4;
  --nav-bg:      rgba(10,10,15,0.9);
  --input-bg:    #12121e;
}

/* ── Light Mode ─────────────────────────────────────────── */
[data-theme="light"] {
  --bg:          #f5f5ff;
  --bg-2:        #eeeeff;
  --bg-card:     #ffffff;
  --bg-card-2:   #f0f0ff;
  --accent:      #6c63ff;
  --accent-2:    #ff6584;
  --accent-glow: rgba(108, 99, 255, 0.25);
  --green:       #00b876;
  --text:        #1a1a2e;
  --text-muted:  #555578;
  --text-faint:  #aaaacc;
  --border:      rgba(108, 99, 255, 0.25);
  --border-2:    rgba(108,99,255,0.1);
  --shadow:      0 8px 32px rgba(108,99,255,0.08);
  --shadow-glow: 0 0 40px var(--accent-glow);
  --noise-opacity: 0.15;
  --nav-bg:      rgba(245,245,255,0.92);
  --input-bg:    #ffffff;
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}
.lang-ar body, body.lang-ar { font-family: var(--font-ar); }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Noise Overlay ──────────────────────────────────────── */
.noise-overlay {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: var(--noise-opacity);
}

/* ── Custom Cursor ──────────────────────────────────────── */
.cursor, .cursor-follower {
  position: fixed; border-radius: 50%; pointer-events: none;
  z-index: 9999; mix-blend-mode: difference; transition: transform var(--transition);
}
.cursor          { width: 8px;  height: 8px;  background: #fff; transform: translate(-50%,-50%); }
.cursor-follower { width: 36px; height: 36px; border: 1px solid rgba(255,255,255,0.4);
                   transform: translate(-50%,-50%); transition: all 0.15s ease; }
[data-theme="light"] .cursor          { background: var(--accent); }
[data-theme="light"] .cursor-follower { border-color: var(--accent); }

/* ── Scrollbar ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* ── Utility ────────────────────────────────────────────── */
.container    { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section      { padding: 100px 0; position: relative; }
.section-label {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.25em;
  color: var(--accent); text-transform: uppercase; margin-bottom: 12px;
  display: flex; align-items: center; gap: 10px;
}
.section-label::before { content: '//'; color: var(--text-faint); }
.section-title {
  font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.1;
  margin-bottom: 20px;
}
.section-title span { color: var(--accent); }
.gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.tag {
  display: inline-block; padding: 3px 10px; border-radius: 4px;
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.05em;
  background: rgba(108,99,255,0.12); color: var(--accent); border: 1px solid var(--border);
}

/* ── Theme Toggle Button ────────────────────────────────── */
.theme-toggle {
  position: relative; width: 40px; height: 40px;
  border-radius: 8px; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); transition: all var(--transition);
  overflow: hidden;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle-icon {
  position: absolute; display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem; transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
}
/* dark mode: show moon, hide sun */
[data-theme="dark"] .theme-toggle-dark  { opacity: 1; transform: translateY(0) rotate(0deg); }
[data-theme="dark"] .theme-toggle-light { opacity: 0; transform: translateY(20px) rotate(90deg); }
/* light mode: show sun, hide moon */
[data-theme="light"] .theme-toggle-dark  { opacity: 0; transform: translateY(-20px) rotate(-90deg); }
[data-theme="light"] .theme-toggle-light { opacity: 1; transform: translateY(0) rotate(0deg); }
/* default (no attr yet) same as dark */
.theme-toggle-dark  { opacity: 1; transform: translateY(0); }
.theme-toggle-light { opacity: 0; transform: translateY(20px); }

/* ── Navbar ─────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; inset-inline: 0; z-index: 100;
  padding: 20px 0; transition: all var(--transition);
}
.navbar.scrolled {
  background: var(--nav-bg); backdrop-filter: blur(20px);
  padding: 14px 0; border-bottom: 1px solid var(--border-2);
}
.nav-container {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-mono); font-size: 1.3rem; font-weight: 700;
  display: flex; align-items: center; gap: 2px;
}
.logo-bracket { color: var(--accent); font-size: 1.5rem; }
.logo-text    { color: var(--text); letter-spacing: 0.05em; }

.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-link {
  font-size: 0.85rem; font-weight: 500; letter-spacing: 0.05em;
  color: var(--text-muted); transition: color var(--transition); position: relative;
}
.nav-link::after {
  content: ''; position: absolute; bottom: -4px; inset-inline-start: 0;
  width: 0; height: 1px; background: var(--accent); transition: width var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link:hover::after { width: 100%; }
.nav-link--cta {
  padding: 8px 20px; border: 1px solid var(--accent); border-radius: 6px;
  color: var(--accent) !important;
}
.nav-link--cta:hover { background: var(--accent); color: #fff !important; }
.nav-link--cta::after { display: none; }

.nav-actions { display: flex; align-items: center; gap: 12px; }
.lang-btn {
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.1em;
  padding: 6px 14px; border: 1px solid var(--border); border-radius: 4px;
  color: var(--text-muted); transition: all var(--transition);
}
.lang-btn:hover { border-color: var(--accent); color: var(--accent); }

.hamburger { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.hamburger span {
  display: block; width: 24px; height: 2px; background: var(--text);
  transition: all var(--transition); border-radius: 2px;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
  position: fixed; top: 0; inset-inline-end: -100%; width: 280px; height: 100vh;
  background: var(--bg-card); border-inline-start: 1px solid var(--border);
  z-index: 99; padding: 100px 30px 40px;
  transition: inset-inline-end var(--transition); display: flex; align-items: flex-start;
}
.mobile-menu.open { inset-inline-end: 0; }
.mobile-menu ul   { display: flex; flex-direction: column; gap: 28px; width: 100%; }
.mobile-menu a    { font-size: 1.1rem; font-weight: 600; color: var(--text-muted); transition: color var(--transition); }
.mobile-menu a:hover { color: var(--accent); }
.lang-switch-mobile { border-top: 1px solid var(--border); padding-top: 20px; }

/* ── Hero ───────────────────────────────────────────────── */
#hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 120px 24px 80px; position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 50%, rgba(108,99,255,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 20%, rgba(255,101,132,0.08) 0%, transparent 60%);
}
[data-theme="light"] .hero-bg {
  background:
    radial-gradient(ellipse 60% 50% at 20% 50%, rgba(108,99,255,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 20%, rgba(255,101,132,0.05) 0%, transparent 60%);
}
.hero-grid-lines {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(108,99,255,0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108,99,255,0.5) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.04;
}
[data-theme="light"] .hero-grid-lines { opacity: 0.06; }
.hero-content { position: relative; z-index: 1; max-width: 750px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 100px;
  border: 1px solid var(--border); background: rgba(108,99,255,0.08);
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--accent);
  margin-bottom: 28px; animation: fadeInDown 0.7s ease both;
}
.hero-badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: blink 1.5s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }

.hero-title {
  font-size: clamp(2.5rem, 7vw, 5rem); font-weight: 800; line-height: 1.05;
  margin-bottom: 24px; animation: fadeInUp 0.8s 0.1s ease both;
}
.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.3rem); color: var(--text-muted); max-width: 580px;
  margin-bottom: 44px; font-weight: 400; line-height: 1.8;
  animation: fadeInUp 0.8s 0.2s ease both;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; animation: fadeInUp 0.8s 0.3s ease both; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px; border-radius: var(--radius); font-weight: 600;
  font-size: 0.9rem; transition: all var(--transition); letter-spacing: 0.03em;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 4px 24px var(--accent-glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 36px var(--accent-glow); }
.btn-outline { border: 1px solid var(--border); color: var(--text); background: transparent; }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

.hero-scroll-hint {
  position: absolute; bottom: 40px; inset-inline-start: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 0.65rem; color: var(--text-faint);
  letter-spacing: 0.15em; text-transform: uppercase; animation: fadeIn 1s 0.8s both;
}
.scroll-line {
  width: 1px; height: 48px; background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollDrop 2s infinite;
}
@keyframes scrollDrop { 0%{height:0;opacity:1} 100%{height:48px;opacity:0} }

/* ── Stats ──────────────────────────────────────────────── */
.stats-row {
  display: flex; gap: 0;
  border-top: 1px solid var(--border-2); border-bottom: 1px solid var(--border-2);
  margin: 60px 0;
}
.stat-item {
  flex: 1; padding: 28px; text-align: center; border-inline-end: 1px solid var(--border-2);
}
.stat-item:last-child { border-inline-end: none; }
.stat-number { font-size: 2.2rem; font-weight: 800; color: var(--accent); font-family: var(--font-mono); }
.stat-label  { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; }

/* ── About ──────────────────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 80px; align-items: center; }

.about-avatar { position: relative; display: flex; justify-content: center; }
.avatar-frame {
  width: 280px; height: 340px; border-radius: var(--radius-lg);
  background: var(--bg-card); border: 1px solid var(--border);
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.avatar-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 6rem; color: var(--text-faint);
  background: linear-gradient(135deg, var(--bg-card), var(--bg-card-2));
}
.avatar-frame::before {
  content: ''; position: absolute; inset: -2px; border-radius: inherit;
  background: linear-gradient(135deg, var(--accent), var(--accent-2), transparent 60%);
  z-index: -1;
}
.avatar-badge {
  position: absolute; bottom: -16px; inset-inline-end: -16px;
  background: var(--bg-card); border: 1px solid var(--border);
  padding: 12px 18px; border-radius: var(--radius);
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--green);
  white-space: nowrap; box-shadow: var(--shadow);
}
.about-text .about-desc { color: var(--text-muted); font-size: 1.02rem; line-height: 1.9; margin-bottom: 32px; }
.about-meta { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 36px; }
.meta-item  { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-muted); }
.meta-item i { color: var(--accent); width: 16px; }

/* Skills */
.skills-tabs { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.skill-tab {
  padding: 6px 16px; border-radius: 100px; font-size: 0.78rem; font-weight: 600;
  border: 1px solid var(--border); color: var(--text-muted); transition: all var(--transition);
}
.skill-tab.active, .skill-tab:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.skill-panel { display: none; }
.skill-panel.active { display: block; }

.skill-bar-item { margin-bottom: 16px; }
.skill-bar-header { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 0.82rem; font-weight: 600; }
.skill-bar-header span:last-child { color: var(--accent); font-family: var(--font-mono); }
.skill-bar-track  { height: 4px; background: var(--bg-card-2); border-radius: 2px; overflow: hidden; }
.skill-bar-fill   {
  height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 2px; width: 0; transition: width 1.2s cubic-bezier(0.4,0,0.2,1);
}

/* ── Services ───────────────────────────────────────────── */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px;
  margin-top: 60px;
}
.service-card {
  background: var(--bg-card); border: 1px solid var(--border-2);
  border-radius: var(--radius-lg); padding: 36px 28px;
  transition: all var(--transition); position: relative; overflow: hidden;
  box-shadow: var(--shadow);
}
.service-card::before {
  content: ''; position: absolute; top: 0; inset-inline-start: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0); transform-origin: left; transition: transform var(--transition);
}
.service-card:hover { transform: translateY(-6px); border-color: var(--border); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 54px; height: 54px; background: rgba(108,99,255,0.12); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: var(--accent); margin-bottom: 22px;
}
.service-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 12px; }
.service-desc  { font-size: 0.88rem; color: var(--text-muted); line-height: 1.8; }
.service-num   { position: absolute; top: 20px; inset-inline-end: 22px; font-family: var(--font-mono); font-size: 0.65rem; color: var(--text-faint); }

/* ── Projects ───────────────────────────────────────────── */
.projects-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(340px,1fr)); gap: 28px;
  margin-top: 60px;
}
.project-card {
  background: var(--bg-card); border: 1px solid var(--border-2);
  border-radius: var(--radius-lg); overflow: hidden; transition: all var(--transition);
  display: flex; flex-direction: column; box-shadow: var(--shadow);
}
.project-card:hover { transform: translateY(-6px); border-color: var(--border); box-shadow: var(--shadow-glow); }
.project-image {
  height: 200px; overflow: hidden; position: relative;
  background: var(--bg-card-2); display: flex; align-items: center; justify-content: center;
}
.project-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.project-card:hover .project-image img { transform: scale(1.05); }
.project-image-placeholder { font-size: 3rem; color: var(--text-faint); }
.project-overlay {
  position: absolute; inset: 0; background: rgba(10,10,15,0.85);
  display: flex; align-items: center; justify-content: center; gap: 12px;
  opacity: 0; transition: opacity var(--transition);
}
.project-card:hover .project-overlay { opacity: 1; }
.project-overlay a {
  display: flex; align-items: center; gap: 6px; padding: 8px 18px;
  border-radius: 6px; font-size: 0.82rem; font-weight: 600;
  background: var(--accent); color: #fff;
}
.project-overlay a.outline { background: transparent; border: 1px solid rgba(255,255,255,0.3); color: var(--text); }
.project-body   { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.project-tags   { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.project-title  { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.project-desc   { font-size: 0.85rem; color: var(--text-muted); line-height: 1.7; flex: 1; }

/* ── Blog ───────────────────────────────────────────────── */
.blog-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); gap: 28px;
  margin-top: 60px;
}
.blog-card {
  background: var(--bg-card); border: 1px solid var(--border-2);
  border-radius: var(--radius-lg); overflow: hidden; transition: all var(--transition);
  box-shadow: var(--shadow);
}
.blog-card:hover { transform: translateY(-4px); border-color: var(--border); }
.blog-image {
  height: 180px; background: var(--bg-card-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; color: var(--text-faint); position: relative; overflow: hidden;
}
.blog-body { padding: 24px; }
.blog-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.blog-date { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-muted); }
.blog-title {
  font-size: 1rem; font-weight: 700; margin-bottom: 10px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.blog-excerpt {
  font-size: 0.84rem; color: var(--text-muted); line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.blog-read-more {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 18px; font-size: 0.82rem; font-weight: 600; color: var(--accent);
  transition: gap var(--transition);
}
.blog-read-more:hover { gap: 10px; }

/* ── Contact ────────────────────────────────────────────── */
.contact-wrapper {
  display: grid; grid-template-columns: 1fr 1.5fr; gap: 80px; align-items: start;
  margin-top: 60px;
}
.contact-info  { display: flex; flex-direction: column; gap: 28px; }
.contact-item  {
  display: flex; align-items: flex-start; gap: 18px;
  padding: 22px; background: var(--bg-card); border-radius: var(--radius);
  border: 1px solid var(--border-2); transition: border-color var(--transition);
}
.contact-item:hover { border-color: var(--border); }
.contact-item-icon {
  width: 44px; height: 44px; background: rgba(108,99,255,0.12);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: var(--accent); flex-shrink: 0;
}
.contact-item-label { font-size: 0.72rem; color: var(--text-muted); margin-bottom: 4px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.1em; }
.contact-item-value { font-size: 0.9rem; font-weight: 600; }

/* Form */
.contact-form  { display: flex; flex-direction: column; gap: 20px; }
.form-row      { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group    { display: flex; flex-direction: column; gap: 8px; }
.form-label    { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.05em; color: var(--text-muted); font-family: var(--font-mono); text-transform: uppercase; }
.form-input, .form-textarea {
  background: var(--input-bg); border: 1px solid var(--border-2);
  border-radius: var(--radius); padding: 14px 18px; color: var(--text);
  font-family: inherit; font-size: 0.9rem; transition: all var(--transition);
  width: 100%; resize: none;
}
.form-input:focus, .form-textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.form-textarea { min-height: 130px; }
.form-status   { font-size: 0.85rem; padding: 12px 16px; border-radius: 8px; display: none; }
.form-status.success { background: rgba(0,245,160,0.1); color: var(--green); border: 1px solid rgba(0,245,160,0.3); display: block; }
.form-status.error   { background: rgba(255,101,132,0.1); color: var(--accent-2); border: 1px solid rgba(255,101,132,0.3); display: block; }

/* ── Footer ─────────────────────────────────────────────── */
.footer {
  background: var(--bg); border-top: 1px solid var(--border-2);
  padding: 48px 0 24px;
}
.footer-grid {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 32px;
}
.footer-brand p { font-size: 0.82rem; color: var(--text-muted); margin-top: 8px; }
.footer-social  { display: flex; gap: 16px; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 8px; background: var(--bg-card);
  border: 1px solid var(--border-2); display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: var(--text-muted); transition: all var(--transition);
}
.footer-social a:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.footer-bottom {
  max-width: 1200px; margin: 0 auto; padding: 20px 24px 0;
  border-top: 1px solid var(--border-2); text-align: center;
  font-size: 0.78rem; color: var(--text-faint); font-family: var(--font-mono);
}

/* ── Back to top ─────────────────────────────────────────── */
.back-to-top {
  position: fixed; bottom: 32px; inset-inline-end: 32px; z-index: 50;
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--accent); color: #fff; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 24px var(--accent-glow);
  opacity: 0; transform: translateY(20px); pointer-events: none;
  transition: all var(--transition);
}
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: all; }
.back-to-top:hover   { transform: translateY(-3px); }

/* ── Post Content ────────────────────────────────────────── */
.post-content h1, .post-content h2, .post-content h3 { color: var(--text); margin: 32px 0 16px; }
.post-content p   { margin-bottom: 20px; }
.post-content a   { color: var(--accent); text-decoration: underline; }
.post-content pre { background: var(--bg-card); padding: 20px; border-radius: var(--radius); overflow-x: auto; font-family: var(--font-mono); font-size: 0.85rem; margin: 24px 0; border: 1px solid var(--border-2); }
.post-content code { font-family: var(--font-mono); background: var(--bg-card); padding: 2px 6px; border-radius: 4px; font-size: 0.88em; }
.post-content blockquote { border-inline-start: 3px solid var(--accent); padding-inline-start: 20px; color: var(--text-muted); font-style: italic; margin: 24px 0; }
.post-content img  { border-radius: var(--radius); margin: 24px 0; }
.post-content ul, .post-content ol { padding-inline-start: 24px; margin-bottom: 20px; }
.post-content li  { margin-bottom: 8px; }

/* ── Animations ──────────────────────────────────────────── */
@keyframes fadeInDown { from{opacity:0;transform:translateY(-20px)} to{opacity:1;transform:none} }
@keyframes fadeInUp   { from{opacity:0;transform:translateY(30px)}  to{opacity:1;transform:none} }
@keyframes fadeIn     { from{opacity:0} to{opacity:1} }

.reveal { opacity: 0; transform: translateY(40px); transition: all 0.7s cubic-bezier(0.4,0,0.2,1); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── RTL Adjustments ────────────────────────────────────── */
[dir="rtl"] .skill-bar-fill     { background: linear-gradient(270deg, var(--accent), var(--accent-2)); }
[dir="rtl"] .service-card::before { transform-origin: right; }
[dir="rtl"] .hero-scroll-hint    { transform: translateX(50%); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .about-grid      { grid-template-columns: 1fr; gap: 48px; }
  .about-avatar    { justify-content: flex-start; }
  .contact-wrapper { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 768px) {
  .section   { padding: 70px 0; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .form-row  { grid-template-columns: 1fr; }
  .stats-row { flex-wrap: wrap; }
  .stat-item { min-width: 50%; }
  .footer-grid { flex-direction: column; gap: 24px; }
  .cursor, .cursor-follower { display: none; }
  .projects-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero-title    { font-size: 2.2rem; }
  .hero-actions  { flex-direction: column; }
  .btn           { width: 100%; justify-content: center; }
}

/* ── WordPress specific fixes ────────────────────────────── */
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.8rem; color: var(--text-muted); text-align: center; margin-top: 8px; }
.alignleft  { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { display: block; margin: 24px auto; }
.gallery    { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 12px; margin: 24px 0; }
