/* ============================================
   S. M. Yonus Saiedy — Portfolio Stylesheet
   Modern · Animated · Dark/Light Switchable
   ============================================ */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: 'Inter', system-ui, -apple-system, sans-serif; line-height: 1.65; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
ul { list-style: none; }
input, textarea, select { font-family: inherit; }

/* ---------- Theme Tokens ---------- */
:root {
  --primary: #6366f1;
  --primary-light: #818cf8;
  --primary-dark: #4f46e5;
  --accent: #06b6d4;
  --accent-2: #ec4899;
  --gradient-1: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
  --gradient-2: linear-gradient(135deg, #ec4899 0%, #6366f1 100%);
  --gradient-3: linear-gradient(135deg, #06b6d4 0%, #10b981 100%);

  --shadow-sm: 0 2px 8px rgba(0,0,0,.08);
  --shadow-md: 0 8px 24px rgba(0,0,0,.12);
  --shadow-lg: 0 24px 60px rgba(0,0,0,.18);
  --shadow-glow: 0 0 60px rgba(99, 102, 241, .35);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  --transition: 250ms cubic-bezier(.4,0,.2,1);
}

[data-theme="dark"] {
  --bg: #0a0e1a;
  --bg-2: #0f1424;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --nav-bg: rgba(10, 14, 26, 0.75);
  --orb-1: rgba(99,102,241,.35);
  --orb-2: rgba(6,182,212,.30);
  --orb-3: rgba(236,72,153,.25);
  --grid-color: rgba(255,255,255,.04);
}

[data-theme="light"] {
  --bg: #f6f8fc;
  --bg-2: #ffffff;
  --surface: rgba(255, 255, 255, 0.85);
  --surface-2: rgba(255, 255, 255, 1);
  --border: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.14);
  --text: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;
  --nav-bg: rgba(255, 255, 255, 0.78);
  --orb-1: rgba(99,102,241,.18);
  --orb-2: rgba(6,182,212,.18);
  --orb-3: rgba(236,72,153,.13);
  --grid-color: rgba(15,23,42,.04);
}

body { background: var(--bg); color: var(--text); transition: background var(--transition), color var(--transition); }

/* ---------- Background ---------- */
.bg-decoration {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
}
.orb {
  position: absolute; border-radius: 50%; filter: blur(120px);
  animation: float 18s ease-in-out infinite;
}
.orb-1 { width: 520px; height: 520px; background: var(--orb-1); top: -120px; left: -120px; }
.orb-2 { width: 460px; height: 460px; background: var(--orb-2); top: 35%; right: -120px; animation-delay: -6s; }
.orb-3 { width: 420px; height: 420px; background: var(--orb-3); bottom: -120px; left: 30%; animation-delay: -12s; }
@keyframes float {
  0%,100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(40px, -40px) scale(1.05); }
  66% { transform: translate(-30px, 30px) scale(.95); }
}
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 0%, transparent 80%);
}

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg); display: flex; align-items: center; justify-content: center;
  transition: opacity .6s, visibility .6s;
}
.loader.hidden { opacity: 0; visibility: hidden; }
.loader-inner { text-align: center; }
.loader-logo {
  font-size: 4rem; font-weight: 800; letter-spacing: -.02em;
  background: var(--gradient-1); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 1rem; animation: pulse 1.4s ease-in-out infinite;
}
.loader-bar { width: 200px; height: 3px; background: var(--border); border-radius: 99px; overflow: hidden; }
.loader-progress { height: 100%; background: var(--gradient-1); width: 0; animation: load 1.6s ease forwards; }
@keyframes pulse { 50% { opacity: .55; transform: scale(.96);} }
@keyframes load { to { width: 100%; } }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  background: var(--nav-bg);
  border-bottom: 1px solid transparent;
  transition: all var(--transition);
}
.nav.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.nav-container {
  max-width: 1280px; margin: 0 auto; padding: 1rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.nav-logo { display: flex; align-items: center; gap: .65rem; font-weight: 800; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--gradient-1); display: grid; place-items: center;
  color: white; font-weight: 800; font-size: .95rem;
  box-shadow: var(--shadow-glow);
}
.logo-text { font-size: 1.1rem; letter-spacing: -.01em; }

.nav-menu { display: flex; gap: 2rem; align-items: center; }
.nav-link {
  font-size: .92rem; font-weight: 500; color: var(--text-muted);
  position: relative; transition: color var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link::after {
  content: ''; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
  background: var(--gradient-1); border-radius: 99px; transition: width var(--transition);
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-controls { display: flex; align-items: center; gap: .6rem; }
.nav-btn {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .55rem .85rem; border-radius: 10px;
  font-size: .85rem; font-weight: 600;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); transition: all var(--transition);
}
.nav-btn:hover { background: var(--surface-2); border-color: var(--border-strong); transform: translateY(-2px); }
.cv-builder-btn {
  background: var(--gradient-1); border-color: transparent; color: white;
}
.cv-builder-btn:hover { color: white; box-shadow: var(--shadow-glow); }

.nav-burger { display: none; flex-direction: column; gap: 4px; padding: .55rem; }
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 99px; transition: all var(--transition); }

/* ---------- Containers / Sections ---------- */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 7rem 0; position: relative; }
.section-alt::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent, var(--surface), transparent);
  pointer-events: none;
}
.section-header { text-align: center; margin-bottom: 4rem; }
.section-tag {
  display: inline-block; padding: .4rem .9rem; border-radius: 99px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 1rem;
}
.section-title {
  font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800;
  letter-spacing: -.025em; line-height: 1.1;
}
.gradient-text {
  background: var(--gradient-1);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh; display: flex; flex-direction: column; justify-content: center;
  padding: 9rem 0 4rem; position: relative;
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 4rem; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .5rem 1rem; border-radius: 99px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: .85rem; font-weight: 500; color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.hero-status {
  width: 8px; height: 8px; border-radius: 50%; background: #10b981;
  box-shadow: 0 0 0 0 #10b981; animation: pulseDot 2s infinite;
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(16,185,129,.6); }
  70% { box-shadow: 0 0 0 12px rgba(16,185,129,0); }
  100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}
.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 800;
  letter-spacing: -.03em; line-height: 1.05; margin-bottom: 1.2rem;
}
.hero-title span { display: block; }
.hero-subtitle {
  font-size: clamp(1.2rem, 2.4vw, 1.6rem); font-weight: 600;
  color: var(--text-muted); margin-bottom: 1.4rem; min-height: 2.2em;
}
.cursor { display: inline-block; color: var(--primary); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-desc { font-size: 1.05rem; color: var(--text-muted); max-width: 600px; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.2rem; }

.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .9rem 1.5rem; border-radius: 12px; font-weight: 600; font-size: .95rem;
  transition: all var(--transition); position: relative; overflow: hidden;
}
.btn-primary {
  background: var(--gradient-1); color: white;
  box-shadow: 0 8px 30px rgba(99,102,241,.35);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(99,102,241,.5); }
.btn-ghost {
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
}
.btn-ghost:hover { background: var(--surface-2); border-color: var(--border-strong); transform: translateY(-3px); }

.hero-socials { display: flex; gap: .8rem; }
.hero-socials a {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 1.05rem; color: var(--text-muted); transition: all var(--transition);
}
.hero-socials a:hover {
  color: white; background: var(--gradient-1); border-color: transparent;
  transform: translateY(-3px); box-shadow: var(--shadow-glow);
}

/* Profile card */
.hero-visual { display: flex; justify-content: center; }
.profile-card {
  position: relative; width: 100%; max-width: 420px; aspect-ratio: 1;
}
.profile-glow {
  position: absolute; inset: -20px; border-radius: 50%;
  background: var(--gradient-1); filter: blur(60px); opacity: .35; z-index: 0;
  animation: glowPulse 4s ease-in-out infinite;
}
@keyframes glowPulse { 50% { opacity: .55; transform: scale(1.05);} }
.profile-frame {
  position: relative; z-index: 1; width: 100%; height: 100%;
  border-radius: 50%; overflow: hidden;
  border: 4px solid var(--border-strong);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  animation: floatUp 6s ease-in-out infinite;
}
@keyframes floatUp { 50% { transform: translateY(-10px); } }
.profile-frame img { width: 100%; height: 100%; object-fit: cover; }

.profile-floating {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: .55rem;
  padding: .6rem 1rem; border-radius: 14px;
  background: var(--bg-2); border: 1px solid var(--border-strong);
  font-size: .85rem; font-weight: 600;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
  animation: floatTag 5s ease-in-out infinite;
}
.profile-floating i { color: var(--primary); }
.tag-1 { top: 8%; left: -10%; animation-delay: 0s; }
.tag-2 { top: 30%; right: -12%; animation-delay: -1s; }
.tag-3 { bottom: 22%; left: -14%; animation-delay: -2s; }
.tag-4 { bottom: 6%; right: -8%; animation-delay: -3s; }
@keyframes floatTag {
  0%,100% { transform: translateY(0);}
  50% { transform: translateY(-12px);}
}

/* Marquee */
.marquee {
  margin-top: 4rem; padding: 1.4rem 0;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: flex; gap: 2.5rem; white-space: nowrap;
  animation: marquee 30s linear infinite;
  font-weight: 600; color: var(--text-muted); font-size: 1rem;
}
.marquee-track span:nth-child(odd) { color: var(--text); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 4rem; align-items: start; }
.about-text p { color: var(--text-muted); margin-bottom: 1.2rem; font-size: 1.05rem; }
.about-info {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 2rem;
}
.info-item {
  padding: 1rem 1.2rem; border-radius: var(--radius-md);
  background: var(--surface); border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: .25rem;
  transition: all var(--transition);
}
.info-item:hover { transform: translateY(-3px); border-color: var(--primary); }
.info-item span { font-size: .8rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: .08em; }
.info-item strong { font-size: 1rem; }

.about-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.stat-card {
  padding: 2rem 1.5rem; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border);
  text-align: center; position: relative; overflow: hidden;
  transition: all var(--transition);
}
.stat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gradient-1); transform: scaleX(0); transform-origin: left;
  transition: transform .6s;
}
.stat-card:hover { transform: translateY(-5px); border-color: var(--border-strong); }
.stat-card:hover::before { transform: scaleX(1); }
.stat-number {
  font-size: 3rem; font-weight: 800; line-height: 1;
  background: var(--gradient-1); -webkit-background-clip: text; background-clip: text; color: transparent;
  display: inline-block;
}
.stat-suffix {
  font-size: 2rem; font-weight: 800;
  background: var(--gradient-1); -webkit-background-clip: text; background-clip: text; color: transparent;
  display: inline-block;
}
.stat-card p { margin-top: .6rem; color: var(--text-muted); font-weight: 500; }

/* ---------- Timeline ---------- */
.timeline {
  position: relative; max-width: 980px; margin: 0 auto;
}
.timeline::before {
  content: ''; position: absolute; left: 24px; top: 0; bottom: 0;
  width: 2px; background: linear-gradient(180deg, var(--primary), var(--accent), transparent);
}
.timeline-item {
  position: relative; padding-left: 80px; margin-bottom: 2.5rem;
}
.timeline-dot {
  position: absolute; left: 16px; top: 24px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--gradient-1); box-shadow: 0 0 0 4px var(--bg), 0 0 0 6px var(--primary);
}
.timeline-card {
  padding: 2rem; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border);
  transition: all var(--transition);
}
.timeline-card:hover { transform: translateX(8px); border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.timeline-meta { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: .9rem; font-size: .85rem; color: var(--text-muted); font-weight: 500; }
.timeline-meta i { margin-right: .25rem; }
.timeline-date { padding: .25rem .7rem; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--border); }
.timeline-card h3 { font-size: 1.25rem; margin-bottom: .35rem; font-weight: 700; }
.timeline-card h4 { font-size: .98rem; margin-bottom: 1rem; color: var(--primary); font-weight: 600; }
.timeline-card ul { display: grid; gap: .55rem; }
.timeline-card li {
  padding-left: 1.4rem; position: relative; color: var(--text-muted); font-size: .94rem;
}
.timeline-card li::before {
  content: ''; position: absolute; left: 0; top: .65em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--primary);
}

/* Education */
.edu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px,1fr)); gap: 1.5rem; }
.edu-card {
  padding: 2rem; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border);
  position: relative; overflow: hidden; transition: all var(--transition);
}
.edu-card:hover { transform: translateY(-5px); border-color: var(--border-strong); }
.edu-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--gradient-1); display: grid; place-items: center;
  color: white; font-size: 1.3rem; margin-bottom: 1.2rem;
}
.edu-date { font-size: .85rem; color: var(--text-muted); font-weight: 500; }
.edu-card h3 { font-size: 1.25rem; margin: .35rem 0 .35rem; }
.edu-card h4 { font-size: 1rem; color: var(--primary); margin-bottom: .9rem; font-weight: 600; }
.edu-card p { color: var(--text-muted); font-size: .94rem; margin-bottom: .35rem; }

/* ---------- Skills ---------- */
.skills-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 1.4rem;
}
.skill-card {
  padding: 1.8rem; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border);
  transition: all var(--transition); position: relative; overflow: hidden;
}
.skill-card::before {
  content: ''; position: absolute; top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(99,102,241,.15), transparent 50%);
  opacity: 0; transition: opacity var(--transition);
}
.skill-card:hover { transform: translateY(-5px); border-color: var(--primary); }
.skill-card:hover::before { opacity: 1; }
.skill-card > * { position: relative; }
.skill-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--gradient-1); display: grid; place-items: center;
  color: white; font-size: 1.5rem; margin-bottom: 1.2rem;
}
.skill-card h3 { font-size: 1.1rem; margin-bottom: .5rem; font-weight: 700; }
.skill-card p { color: var(--text-muted); font-size: .9rem; margin-bottom: 1.1rem; }
.skill-bar {
  width: 100%; height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden;
}
.skill-bar span {
  display: block; height: 100%; background: var(--gradient-1); border-radius: 99px;
  width: 0; transition: width 1.4s ease;
}
.skill-card.visible .skill-bar span { width: var(--w); }

/* Languages */
.lang-section { margin-top: 4rem; }
.lang-title { font-size: 1.5rem; font-weight: 700; text-align: center; margin-bottom: 1.6rem; }
.lang-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 1.2rem; }
.lang-card {
  padding: 1.5rem; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border);
  text-align: center; transition: all var(--transition);
}
.lang-card:hover { transform: translateY(-5px); border-color: var(--primary); }
.lang-flag { font-size: 2.6rem; margin-bottom: .5rem; }
.lang-card h4 { font-size: 1.1rem; margin-bottom: .3rem; }
.lang-card p { color: var(--text-muted); font-size: .92rem; }

/* ---------- Projects ---------- */
.projects-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px,1fr)); gap: 1.6rem;
}
.project-card {
  padding: 2rem; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border);
  position: relative; overflow: hidden; transition: all var(--transition);
}
.project-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 100%;
  background: var(--gradient-1); opacity: 0;
  transition: opacity var(--transition);
  z-index: 0;
}
.project-card:hover::after { opacity: .04; }
.project-card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.project-card > * { position: relative; z-index: 1; }
.project-icon {
  width: 60px; height: 60px; border-radius: 16px;
  background: var(--gradient-1); display: grid; place-items: center;
  color: white; font-size: 1.6rem; margin-bottom: 1.4rem;
}
.project-card h3 { font-size: 1.2rem; margin-bottom: .8rem; font-weight: 700; line-height: 1.3; }
.project-card p { color: var(--text-muted); font-size: .94rem; margin-bottom: 1.2rem; }
.project-tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.project-tags span {
  padding: .3rem .75rem; border-radius: 99px;
  background: var(--surface-2); border: 1px solid var(--border);
  font-size: .78rem; font-weight: 600; color: var(--text-muted);
}

/* ---------- Publications ---------- */
.pub-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); gap: 1.5rem; }
.pub-card {
  display: block; padding: 2rem; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border);
  transition: all var(--transition); position: relative; overflow: hidden;
}
.pub-card:hover { transform: translateY(-5px); border-color: var(--primary); box-shadow: var(--shadow-md); }
.pub-badge {
  display: inline-block; padding: .3rem .8rem; border-radius: 99px;
  background: var(--gradient-1); color: white; font-size: .75rem; font-weight: 700;
  letter-spacing: .08em; margin-bottom: 1rem;
}
.pub-card h3 { font-size: 1.15rem; margin-bottom: .6rem; font-weight: 700; line-height: 1.4; }
.pub-card p { color: var(--text-muted); font-size: .92rem; margin-bottom: 1.1rem; }
.pub-link {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; color: var(--primary);
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: start; }
.contact-info p { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 2rem; }
.contact-list { display: grid; gap: 1rem; }
.contact-list li {
  display: flex; align-items: center; gap: 1.1rem;
  padding: 1rem 1.2rem; border-radius: var(--radius-md);
  background: var(--surface); border: 1px solid var(--border);
  transition: all var(--transition);
}
.contact-list li:hover { transform: translateX(6px); border-color: var(--primary); }
.contact-list li i {
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--gradient-1); display: grid; place-items: center;
  color: white; font-size: 1rem; flex-shrink: 0;
}
.contact-list li > div { display: flex; flex-direction: column; }
.contact-list span:first-child { font-size: .8rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: .08em; }
.contact-list a, .contact-list span:last-child { font-weight: 600; color: var(--text); }
.contact-list a:hover { color: var(--primary); }

.contact-form {
  display: grid; gap: 1rem;
  padding: 2.2rem; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form label { display: grid; gap: .35rem; font-size: .88rem; font-weight: 600; color: var(--text-muted); }
.contact-form input, .contact-form textarea {
  padding: .85rem 1rem; border-radius: 10px;
  background: var(--bg-2); border: 1px solid var(--border);
  color: var(--text); font-size: .96rem;
  transition: all var(--transition);
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: 0; border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(99,102,241,.18);
}
.form-status { font-size: .9rem; min-height: 1.2em; color: var(--primary); }

/* ---------- Footer ---------- */
.footer {
  padding: 3rem 0 2rem; border-top: 1px solid var(--border);
  background: var(--surface);
}
.footer-inner { display: grid; gap: 2rem; }
.footer-left { display: flex; align-items: center; gap: 1rem; }
.footer-left strong { display: block; font-size: 1.05rem; }
.footer-left p { color: var(--text-muted); font-size: .9rem; }
.footer-right { display: flex; gap: .8rem; flex-wrap: wrap; }
.footer-right a {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--bg-2); border: 1px solid var(--border);
  color: var(--text-muted); transition: all var(--transition);
}
.footer-right a:hover { color: white; background: var(--gradient-1); border-color: transparent; transform: translateY(-3px); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  padding-top: 1.5rem; border-top: 1px solid var(--border);
  font-size: .88rem; color: var(--text-muted);
}

/* ---------- Scroll-top ---------- */
.scroll-top {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 90;
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--gradient-1); color: white;
  display: grid; place-items: center;
  box-shadow: var(--shadow-glow);
  opacity: 0; pointer-events: none; transform: translateY(20px);
  transition: all var(--transition);
}
.scroll-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.scroll-top:hover { transform: translateY(-4px); }

/* ---------- Reveal animations ---------- */
.fade-in { opacity: 0; transform: translateY(30px); animation: fadeIn .8s ease forwards; }
.fade-in:nth-child(2) { animation-delay: .15s; }
.fade-in:nth-child(3) { animation-delay: .3s; }
.fade-in:nth-child(4) { animation-delay: .45s; }
.fade-in:nth-child(5) { animation-delay: .6s; }
@keyframes fadeIn { to { opacity: 1; transform: translateY(0); } }

.reveal { opacity: 0; transform: translateY(40px); transition: all .8s cubic-bezier(.4,0,.2,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Mobile menu ---------- */
.mobile-open #navMenu {
  transform: translateY(0); opacity: 1; pointer-events: auto;
}
.mobile-open .nav-burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.mobile-open .nav-burger span:nth-child(2) { opacity: 0; }
.mobile-open .nav-burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
  .hero-actions, .hero-socials { justify-content: center; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .profile-card { max-width: 340px; }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-menu {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 1.2rem; padding: 1.6rem;
    background: var(--bg); border-bottom: 1px solid var(--border);
    transform: translateY(-10px); opacity: 0; pointer-events: none;
    transition: all var(--transition);
  }
  .nav-burger { display: flex; }
  .cv-builder-btn span { display: none; }
  .section { padding: 5rem 0; }
  .form-row { grid-template-columns: 1fr; }
  .about-info { grid-template-columns: 1fr; }
  .timeline-item { padding-left: 60px; }
  .timeline::before { left: 18px; }
  .timeline-dot { left: 10px; }
}
@media (max-width: 480px) {
  .nav-controls .nav-btn span { display: none; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- RTL ---------- */
[dir="rtl"] .hero-grid { direction: rtl; }
[dir="rtl"] .timeline { direction: rtl; }
[dir="rtl"] .timeline::before { left: auto; right: 24px; }
[dir="rtl"] .timeline-item { padding-left: 0; padding-right: 80px; }
[dir="rtl"] .timeline-dot { left: auto; right: 16px; }
