/* ============================================================
   Nader Jardak — Portfolio Design System (perfection pass)
   Work Sans · accessible · responsive · dark-mode ready
   ============================================================ */

:root {
  --picto-primary: #9929fb;
  --picto-primary-dark: #650fa0;
  --soft-white: #f0f1f3;
  --soft-dark: #87909d;
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fc;
  --bg-card: #ffffff;
  --text-primary: #132238;
  --text-secondary: #556070;
  --text-muted: #87909d;
  --border-color: #e8eaef;
  --shadow-color: rgba(0,0,0,0.08);
  --font-family: 'Work Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --skin-color: #2563eb;
  --skin-color-2: #1d4ed8;
  --skin-gradient: linear-gradient(135deg, #2563eb, #1d4ed8, #1e40af);
  --footer-bg: #0f1e33;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --nav-h: 66px;
  --transition: all 0.3s ease;
  --shadow-lg: 0 10px 60px var(--shadow-color);
}

body.dark {
  --bg-primary: #0f0f1a;
  --bg-secondary: #1a1a2e;
  --bg-card: #1e1e36;
  --text-primary: #f0f0f5;
  --text-secondary: #a0a0c0;
  --text-muted: #6b6b8a;
  --border-color: rgba(153,41,251,0.15);
  --shadow-color: rgba(0,0,0,0.35);
  --footer-bg: #07070f;
}

* { margin: 0; padding: 0; outline: none; text-decoration: none; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-family);
  line-height: 1.6;
  font-size: 16px;
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}

::selection { background: var(--skin-color); color: white; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--skin-color); border-radius: 4px; }
ul { list-style: none; }
a { color: inherit; transition: color 0.3s ease; }
img { max-width: 100%; }

section[id] { scroll-margin-top: calc(var(--nav-h) + 16px); }

/* Accessible helpers */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 999;
  background: var(--skin-color); color: #fff;
  padding: 12px 20px; border-radius: 0 0 10px 10px;
  font-weight: 600; transition: top 0.25s ease;
}
.skip-link:focus { top: 0; color: #fff; }
:focus-visible {
  outline: 3px solid var(--skin-color);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Scroll progress */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 3px; z-index: 300; background: transparent;
}
.scroll-progress span {
  display: block; height: 100%; width: 0;
  background: var(--skin-gradient);
}

/* ======== PARTICLE CANVAS ======== */
#particles-canvas {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
  opacity: 0.9;
}

/* ======== UTILITY ======== */
.content {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 16px;
  position: relative;
  z-index: 1;
}

.section-title {
  font-size: 38px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--skin-color);
  margin-bottom: 10px;
}
.eyebrow-center { display: flex; justify-content: center; }
.eyebrow::before {
  content: ''; width: 28px; height: 2px;
  background: var(--skin-color); border-radius: 2px;
}
.eyebrow-center::after {
  content: ''; width: 28px; height: 2px;
  background: var(--skin-color); border-radius: 2px;
}

.pulse-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #22c55e; position: relative; flex-shrink: 0;
}
.pulse-dot::after {
  content: ''; position: absolute; inset: -4px;
  border-radius: 50%; border: 2px solid #22c55e;
  animation: pulse 2s ease-out infinite;
}
.pulse-dot.small { width: 8px; height: 8px; display: inline-block; }
@keyframes pulse {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* ======== SCROLL ANIMATION SYSTEM (expert UX: directional reveals + stagger) ======== */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  filter: none;
  transition:
    opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}
.reveal[data-reveal="left"] { transform: translateX(-48px); }
.reveal[data-reveal="right"] { transform: translateX(48px); }
.reveal[data-reveal="scale"] { transform: translateY(22px) scale(0.93); }
.reveal[data-reveal="blur"] { transform: translateY(26px); filter: blur(10px); }
.reveal[data-reveal="none"] { transform: none; }
.reveal.visible { opacity: 1; transform: none; filter: none; }
/* Hero entrance: slightly snappier, plays on load */
.intro-section .reveal { transition-duration: 0.9s; }
/* Section headers: eyebrow rule draws + title rises when section enters */
main section { position: relative; }
main section .eyebrow::before,
main section .eyebrow-center::after {
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
}
main section.in-view .eyebrow::before,
main section.in-view .eyebrow-center::after { transform: scaleX(1); }
main section .section-title {
  opacity: 0; transform: translateY(26px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.1s,
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.1s;
}
main section.in-view .section-title { opacity: 1; transform: none; }
/* Animated counters pop */
.stat-num.counting { animation: count-pop 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes count-pop { 0% { transform: scale(0.85); } 60% { transform: scale(1.06); } 100% { transform: scale(1); } }
/* Skill bars: shimmer sweep after fill */
.skill-fill { position: relative; overflow: hidden; }
.skill-fill::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,0.55) 50%, transparent 80%);
  transform: translateX(-100%);
}
.skill-fill.filled::after { animation: bar-shimmer 1.4s ease 0.35s 1; }
@keyframes bar-shimmer { to { transform: translateX(100%); } }
/* Cards: staged hover physics (stagger delay cleared by JS after entrance) */
.skill-card, .project-card, .step-card, .service-card, .exp-card, .lang-item, .detail-item {
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.35s ease, border-color 0.35s ease;
  transition-delay: var(--d, 0ms);
}
.project-img { overflow: hidden; }
.project-img i {
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  display: inline-block;
}
.project-card:hover .project-img i { transform: scale(1.18) rotate(-4deg); }
/* Images settle from a soft zoom on reveal */
.intro-image-wrapper img, .profile-image-wrap img {
  transform: scale(1.07);
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.visible.intro-image .intro-image-wrapper img,
.profile-card.visible .profile-image-wrap img,
.in-view .intro-image-wrapper img,
.in-view .profile-image-wrap img { transform: scale(1); }
/* Timeline: line draws with scroll + items slide in */
.timeline::before {
  transform: scaleY(var(--tp, 0));
  transform-origin: top;
  opacity: 1;
  transition: transform 0.2s linear;
}
.timeline-item { opacity: 0; transform: translateX(28px); transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); transition-delay: var(--d, 0ms); }
.timeline-item.visible { opacity: 1; transform: none; }
.timeline-item.visible .timeline-dot { animation: dot-pop 0.45s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes dot-pop { 0% { transform: scale(0); } 70% { transform: scale(1.5); } 100% { transform: scale(1); } }
/* Navbar stays pinned while scrolling (shadow handled by .scrolled) */
.navbar { transition: box-shadow 0.3s ease, background 0.3s ease; }
/* Buttons: subtle magnetic lift already; add press depth */
.btn { transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease; }
@media (prefers-reduced-motion: reduce) {
  .reveal, main section .section-title, .timeline-item { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
}

/* ======== BUTTONS ======== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; font-size: 15px; font-weight: 600;
  font-family: var(--font-family); line-height: 1;
  min-height: 48px;
  border-radius: 10px; cursor: pointer;
  transition: var(--transition); border: 2px solid transparent;
  color: white; background: var(--skin-color);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(37,99,235,0.25); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }
.btn-outline {
  background: transparent; border-color: var(--skin-color);
  color: var(--skin-color);
}
.btn-outline:hover { background: var(--skin-color); color: white; }
.btn-primary { background: var(--skin-color); color: white; border-color: var(--skin-color); }
.btn-sm { padding: 10px 20px; font-size: 14px; min-height: 42px; }
.btn-block { width: 100%; }
.btn-ghost-light {
  background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.3);
  color: #fff;
}
.btn-ghost-light:hover { background: rgba(255,255,255,0.22); box-shadow: none; }

/* ======== NAVBAR — glass signature art for a developer portfolio ======== */
.navbar {
  position: sticky; top: 0; z-index: 100;
  min-height: var(--nav-h);
  background: color-mix(in srgb, var(--bg-primary) 82%, transparent);
  backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--border-color);
  transition: transform 0.35s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.navbar::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--skin-color) 22%, var(--skin-color-2) 50%, var(--skin-color) 78%, transparent);
  opacity: 0.75;
}
.navbar.scrolled { box-shadow: 0 8px 32px var(--shadow-color); }
.nav-content {
  display: flex; align-items: center;
  justify-content: space-between; gap: 12px;
  padding: 10px 16px; max-width: 1320px;
  margin: 0 auto; min-height: var(--nav-h);
}
.nav-left { display: flex; align-items: center; gap: 12px; }
/* Logo: gradient monogram tile + wordmark */
.nav-logo {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; line-height: 1;
}
.nav-logo-mark {
  width: 38px; height: 38px; border-radius: 12px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 800; letter-spacing: 0.5px; color: #fff;
  background: var(--skin-gradient);
  box-shadow: 0 4px 16px color-mix(in srgb, var(--skin-color) 40%, transparent), inset 0 1px 0 rgba(255,255,255,0.35);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}
.nav-logo:hover .nav-logo-mark { transform: rotate(-8deg) scale(1.06); box-shadow: 0 8px 24px color-mix(in srgb, var(--skin-color) 52%, transparent), inset 0 1px 0 rgba(255,255,255,0.35); }
.nav-logo-text {
  font-size: 21px; font-weight: 800;
  color: var(--text-primary); letter-spacing: 0.3px;
  white-space: nowrap;
}
.nav-logo-text span { color: var(--skin-color); }
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 10px 6px; min-width: 44px; min-height: 44px;
  align-items: center; justify-content: center;
}
.nav-hamburger span {
  width: 22px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px; transition: var(--transition);
}
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Link pill bar with sliding gradient indicator */
.nav-links {
  position: relative;
  display: flex; gap: 2px; align-items: center;
  background: color-mix(in srgb, var(--bg-secondary) 70%, transparent);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  padding: 5px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 2px 12px var(--shadow-color);
}
body.dark .nav-links { box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 2px 12px var(--shadow-color); }
.nav-links li { position: relative; z-index: 1; display: flex; }
.nav-links a {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 15px; font-size: 14px; font-weight: 600;
  color: var(--text-secondary); border-radius: 999px;
  min-height: 40px; white-space: nowrap;
  transition: color 0.25s ease, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-links a:hover { color: var(--skin-color); transform: translateY(-1px); }
.nav-links a.active { color: var(--skin-color); background: color-mix(in srgb, var(--skin-color) 12%, transparent); }
/* Sliding indicator (positioned by JS): theme gradient pill behind the active link */
.nav-indicator {
  position: absolute; top: 5px; bottom: 5px; left: 0; width: 0; z-index: 0;
  border-radius: 999px;
  background: var(--skin-gradient);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--skin-color) 45%, transparent);
  opacity: 0;
  transition: left 0.38s cubic-bezier(0.22, 1, 0.36, 1), width 0.38s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
  pointer-events: none;
}
body.nav-indicator-on .nav-indicator { opacity: 1; }
/* White label only where the gradient pill exists (desktop) — never on mobile drawer */
@media (min-width: 921px) {
  body.nav-indicator-on .nav-links a.active, body.nav-indicator-on .nav-links a.active .nav-ico { color: #fff; }
  body.nav-indicator-on .nav-links a.active { background: transparent; }
  body.nav-indicator-on .nav-links a.active .nav-ico { opacity: 1; }
}
.nav-ico { font-size: 14px; color: inherit; opacity: 0.65; transition: opacity 0.25s ease, transform 0.25s ease; width: 16px; text-align: center; }
.nav-links a:hover .nav-ico { opacity: 1; transform: scale(1.15); }
.nav-links a.active .nav-ico { opacity: 1; }
/* CTA: gradient button with shine sweep + flying plane */
.nav-cta {
  position: relative; overflow: hidden;
  padding: 10px 22px; font-size: 14px; min-height: 42px;
  border-radius: 999px !important;
  background: var(--skin-gradient) !important;
  border: none !important;
  box-shadow: 0 4px 18px color-mix(in srgb, var(--skin-color) 42%, transparent);
}
.nav-cta::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 60px;
  left: -80px; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.45), transparent);
}
.nav-cta:hover::after { animation: cta-shine 0.8s ease; }
@keyframes cta-shine { to { left: 130%; } }
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 28px color-mix(in srgb, var(--skin-color) 55%, transparent) !important; }
.nav-cta-ico { font-size: 13px; transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1); }
.nav-cta:hover .nav-cta-ico { transform: translate(2px, -2px) rotate(8deg); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; font-size: 13px; font-weight: 700;
  font-family: var(--font-family);
  background: transparent; border: 2px solid var(--border-color);
  border-radius: 999px; cursor: pointer; min-height: 42px;
  color: var(--text-secondary); transition: var(--transition);
  letter-spacing: 0.5px;
}
.lang-toggle:hover { border-color: var(--skin-color); color: var(--skin-color); transform: translateY(-1px); }
.nav-lang-mobile { display: none; }

@media (max-width: 1100px) {
  .nav-links a { padding: 9px 11px; font-size: 13px; gap: 6px; }
}
@media (max-width: 920px) {
  .nav-hamburger { display: flex; }
  .nav-links {
    display: none; position: fixed; top: calc(var(--nav-h) + 8px); left: 12px; right: 12px;
    background: color-mix(in srgb, var(--bg-card) 92%, transparent);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    flex-direction: column; align-items: stretch; padding: 12px;
    box-shadow: 0 24px 60px var(--shadow-color);
    z-index: 99; gap: 4px; border-radius: 20px;
  }
  .nav-links.open { display: flex; }
  .nav-links.open li { opacity: 0; transform: translateX(-14px); animation: nav-item-in 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
  .nav-links.open li:nth-child(1) { animation-delay: 0.03s; }
  .nav-links.open li:nth-child(2) { animation-delay: 0.07s; }
  .nav-links.open li:nth-child(3) { animation-delay: 0.11s; }
  .nav-links.open li:nth-child(4) { animation-delay: 0.15s; }
  .nav-links.open li:nth-child(5) { animation-delay: 0.19s; }
  .nav-links.open li:nth-child(6) { animation-delay: 0.23s; }
  .nav-links.open li:nth-child(7) { animation-delay: 0.27s; }
  @keyframes nav-item-in { to { opacity: 1; transform: none; } }
  .nav-links a { width: 100%; padding: 13px 16px; font-size: 15px; border-radius: 14px; }
  .nav-links a .nav-ico {
    width: 36px; height: 36px; border-radius: 11px; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 15px; color: var(--skin-color); opacity: 1;
    background: color-mix(in srgb, var(--skin-color) 12%, transparent);
  }
  .nav-indicator { display: none; }
  .nav-cta { display: none; }
  .nav-lang-mobile { display: block; }
  .nav-lang-mobile .lang-toggle {
    width: 100%; padding: 12px 16px; font-size: 15px;
    text-align: left; border: none; border-radius: 14px;
    font-weight: 500;
  }
}

/* ======== INTRODUCTION / HERO ======== */
.intro-section {
  padding: 72px 0 90px;
  background:
    radial-gradient(circle at 12% 100%, #ffe2b0f5 1% 5px, transparent 15%),
    radial-gradient(circle at 95% -15%, #da4df166 5%, transparent 30%),
    radial-gradient(circle at center right, #c4f5e9b2 2%, transparent 35%),
    linear-gradient(to bottom, transparent 55%, var(--bg-primary) 100%);
  position: relative;
}
body.dark .intro-section {
  background:
    radial-gradient(circle at 12% 100%, rgba(153,41,251,0.14) 1% 5px, transparent 25%),
    radial-gradient(circle at 95% -15%, rgba(153,41,251,0.18) 5%, transparent 30%),
    linear-gradient(to bottom, transparent 60%, rgba(15,15,26,0.6) 85%, var(--bg-primary) 100%);
}
.intro-grid { display: flex; align-items: center; gap: 60px; }
.intro-text { flex: 1; min-width: 0; }
.intro-heading {
  font-size: clamp(32px, 5vw, 54px); font-weight: 800; line-height: 1.1;
  color: var(--text-primary); margin-bottom: 10px; letter-spacing: -1px;
}
.intro-name {
  color: var(--skin-color);
  background: var(--skin-gradient);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.intro-role { font-size: 21px; color: var(--text-secondary); margin-bottom: 20px; min-height: 32px; }
.typed-highlight { color: var(--skin-color); font-weight: 700; }
.typed-cursor { color: var(--skin-color); font-weight: 400; }
.intro-desc {
  font-size: 17px; color: var(--text-secondary);
  line-height: 1.8; margin-bottom: 30px; max-width: 600px;
}
.intro-desc strong { color: var(--text-primary); }
.intro-buttons { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 36px; }
.intro-stats { display: flex; gap: 36px; border: 0; }
.stat-item dd { display: flex; flex-direction: column; margin: 0; }
.stat-num {
  font-size: 32px; font-weight: 800; color: var(--skin-color);
  line-height: 1;
}
.stat-label { font-size: 14px; color: var(--text-muted); margin-top: 4px; }
.intro-image { flex-shrink: 0; position: relative; }
.intro-image-wrapper {
  width: 400px; height: 460px; border-radius: var(--radius-xl);
  overflow: hidden; position: relative;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
}
.intro-image-wrapper img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: var(--radius-xl);
}
.intro-badge-card {
  position: absolute; z-index: 3; left: -28px; bottom: 36px;
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: 18px; padding: 14px 22px 14px 14px;
  display: flex; align-items: center; gap: 14px;
  box-shadow: 0 18px 50px var(--shadow-color);
  animation: badge-float 5s ease-in-out infinite;
  max-width: calc(100% + 28px);
}
.intro-badge-icon {
  width: 54px; height: 54px; border-radius: 15px; flex-shrink: 0;
  background: var(--skin-gradient); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 23px;
  box-shadow: 0 8px 20px rgba(37,99,235,0.35);
}
.intro-badge-card strong {
  font-size: 44px; font-weight: 800; line-height: 1; letter-spacing: -1.5px;
  color: var(--skin-color);
  background: var(--skin-gradient);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .intro-badge-card strong { -webkit-text-fill-color: currentColor; }
}
.intro-badge-text {
  font-size: 14px; font-weight: 600; color: var(--text-secondary);
  line-height: 1.35; max-width: 120px;
}
@keyframes badge-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (max-width: 990px) {
  .intro-grid { flex-direction: column-reverse; text-align: center; gap: 40px; }
  .intro-desc { margin: 0 auto 30px; }
  .intro-buttons { justify-content: center; }
  .intro-stats { justify-content: center; }
  .intro-image-wrapper { width: 300px; height: 360px; }
  .intro-badge-card { left: 50%; transform: translateX(-50%); bottom: -24px; animation: none; padding: 12px 18px 12px 12px; gap: 12px; }
}
@media (max-width: 600px) {
  .intro-section { padding: 48px 0 70px; }
  .intro-image-wrapper { width: 250px; height: 310px; }
  .intro-stats { gap: 22px; flex-wrap: wrap; }
  .stat-num { font-size: 24px; }
  .intro-badge-card strong { font-size: 34px; }
  .intro-badge-icon { width: 44px; height: 44px; font-size: 19px; border-radius: 12px; }
  .intro-badge-text { font-size: 12.5px; max-width: 105px; }
}

/* ======== HERO ARTWORK (tilt + orbit + glass chips) ======== */
.intro-image { perspective: 1100px; }
.intro-image-wrapper {
  transition: transform 0.25s ease-out;
  transform-style: preserve-3d;
  will-change: transform;
  position: relative; z-index: 1;
}
.hero-blob {
  position: absolute; z-index: 0;
  width: 72%; aspect-ratio: 1 / 1; border-radius: 50%;
  background: var(--skin-gradient);
  filter: blur(90px); opacity: 0.35;
  top: 6%; right: -12%;
  pointer-events: none;
}
.hero-ring {
  position: absolute; z-index: 0;
  width: 116%; aspect-ratio: 1 / 1; border-radius: 50%;
  top: 50%; left: 50%; translate: -50% -50%;
  border: 2px dashed rgba(37,99,235,0.3);
  border: 2px dashed color-mix(in srgb, var(--skin-color) 32%, transparent);
  animation: orbit-spin 46s linear infinite;
  pointer-events: none;
}
.hero-chip {
  position: absolute; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px;
  font-size: 13px; font-weight: 700; color: var(--text-primary);
  background: var(--bg-card);
  background: color-mix(in srgb, var(--bg-card) 78%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 30px var(--shadow-color);
  animation: hero-float 6s ease-in-out infinite;
  white-space: nowrap;
}
.hero-chip i { color: var(--skin-color); font-size: 17px; }
.chip-java { top: 7%; right: -26px; }
.chip-angular { top: 44%; left: -38px; animation-delay: -2s; }
.chip-docker { bottom: 15%; right: -16px; animation-delay: -4s; }
@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-11px); }
}

@media (max-width: 990px) {
  .chip-java { right: -4px; top: -16px; }
  .chip-angular { left: -4px; }
  .chip-docker { right: 0; }
  .hero-ring { width: 122%; }
}
@media (max-width: 600px) {
  .hero-chip { padding: 8px 14px; font-size: 12px; }
  .hero-chip i { font-size: 15px; }
}

/* ======== PROFILE / ABOUT ======== */
.profile-section { padding: 0 0 40px; position: relative; z-index: 2; }
.profile-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  padding: 56px 48px;
  position: relative; top: -30px;
}
.profile-grid { display: flex; gap: 50px; align-items: flex-start; }
.profile-image-col { flex-shrink: 0; text-align: center; }
.profile-image-wrap {
  width: 280px; height: 340px; border-radius: var(--radius-md);
  overflow: hidden; background: var(--bg-secondary);
  border: 1px solid var(--border-color);
}
.profile-image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.profile-social {
  display: flex; justify-content: center; gap: 10px;
  margin-top: -20px; position: relative; z-index: 2;
}
.profile-social a {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; background: var(--bg-card);
  color: var(--text-secondary); font-size: 18px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 20px var(--shadow-color);
  transition: var(--transition);
}
.profile-social a:hover { background: var(--skin-color); border-color: var(--skin-color); color: white; transform: translateY(-3px); }
.profile-info-col { flex: 1; min-width: 0; }
.profile-name {
  font-size: 22px; font-weight: 700; color: var(--text-primary);
  margin-bottom: 12px;
}
.profile-name span { color: var(--skin-color); }
.profile-desc {
  font-size: 16px; color: var(--text-secondary); line-height: 1.8;
  margin-bottom: 18px;
}
.profile-highlights { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
.profile-highlights li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 15px; color: var(--text-secondary);
}
.profile-highlights i { color: var(--skin-color); margin-top: 4px; }
.profile-details {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  margin-bottom: 24px;
}
.detail-item {
  padding: 12px 16px; background: var(--bg-secondary);
  border-radius: 10px; border: 1px solid var(--border-color);
  min-width: 0;
}
.detail-label {
  display: block; font-size: 11px; font-weight: 700;
  color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.8px;
  margin-bottom: 3px;
}
.detail-value { font-size: 14px; color: var(--text-secondary); word-break: break-word; }
.detail-value a { color: var(--skin-color); font-weight: 500; }
.detail-value a:hover { text-decoration: underline; }
.status-open { display: inline-flex; align-items: center; gap: 8px; color: #16a34a !important; font-weight: 600; }
.profile-buttons { display: flex; gap: 12px; flex-wrap: wrap; }

@media (max-width: 990px) {
  .profile-grid { flex-direction: column; align-items: center; text-align: center; }
  .profile-highlights li { justify-content: center; text-align: left; }
  .profile-details { grid-template-columns: 1fr; width: 100%; }
  .profile-buttons { justify-content: center; }
  .profile-card { padding: 36px 22px; }
  .profile-image-wrap { width: 220px; height: 280px; }
}

/* ======== WORK PROCESS ======== */
.workprocess-section { padding: 80px 0; background: var(--soft-white); }
body.dark .workprocess-section { background: var(--bg-secondary); }
.workprocess-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: center;
}
.workprocess-text p {
  font-size: 16px; color: var(--text-secondary);
  line-height: 1.7; margin-bottom: 16px;
}
.workprocess-text .btn { margin-top: 10px; }
.workprocess-steps {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.step-card {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px 24px; box-shadow: 0 4px 20px var(--shadow-color);
  transition: var(--transition); position: relative; overflow: hidden;
}
.step-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px var(--shadow-color); border-color: var(--skin-color); }
.step-card.step-2, .step-card.step-4 { margin-top: 28px; }
.step-num {
  position: absolute; top: 12px; right: 16px;
  font-size: 40px; font-weight: 800; line-height: 1;
  color: var(--text-primary); opacity: 0.07;
}
.step-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(37,99,235,0.1);
  color: var(--skin-color); margin-bottom: 16px;
  transition: var(--transition);
}
.step-card:hover .step-icon { background: var(--skin-color); color: white; }
.step-icon i { font-size: 20px; }
.step-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; color: var(--text-primary); }
.step-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

@media (max-width: 820px) {
  .workprocess-grid { grid-template-columns: 1fr; gap: 36px; }
  .workprocess-text { text-align: center; }
  .workprocess-text .eyebrow { justify-content: center; display: flex; }
  .step-card.step-2, .step-card.step-4 { margin-top: 0; }
}

/* ======== SKILLS ======== */
.skills-section { padding: 88px 0; background: var(--bg-primary); }
.skills-header { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.skills-header p { font-size: 16px; color: var(--text-secondary); }
.skills-tabs {
  display: flex; justify-content: center; gap: 8px;
  margin-bottom: 30px; flex-wrap: wrap;
}
.skill-tab {
  padding: 10px 22px; font-size: 14px; font-weight: 600;
  font-family: var(--font-family); min-height: 44px;
  background: transparent; border: 2px solid var(--border-color);
  border-radius: 10px; cursor: pointer;
  color: var(--text-secondary); transition: var(--transition);
}
.skill-tab:hover { border-color: var(--skin-color); color: var(--skin-color); }
.skill-tab.active { background: var(--skin-color); border-color: var(--skin-color); color: white; box-shadow: 0 6px 20px rgba(37,99,235,0.25); }
.skill-panel { display: none !important; }
.skill-panel.active { display: grid !important; }

.skills-grid { grid-template-columns: repeat(6, 1fr); gap: 14px; }
.skill-card {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-lg); padding: 22px 18px; text-align: center;
  transition: var(--transition); position: relative;
}
.skill-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px var(--shadow-color); border-color: var(--skin-color); }
.skill-card h3 { font-size: 14px; font-weight: 600; margin-bottom: 12px; min-height: 40px; display: flex; align-items: center; justify-content: center; }
.skill-icon { font-size: 30px; color: var(--skin-color); margin-bottom: 10px; }
.skill-bar { width: 100%; height: 6px; background: var(--soft-white); border-radius: 3px; overflow: hidden; }
body.dark .skill-bar { background: rgba(255,255,255,0.1); }
.skill-fill { height: 100%; background: var(--skin-gradient); border-radius: 3px; transition: width 1.1s cubic-bezier(0.22,1,0.36,1); width: 0; }
.skill-pct { display: inline-block; margin-top: 8px; font-size: 12px; font-weight: 700; color: var(--text-muted); }

@media (max-width: 1100px) { .skills-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) {
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .skill-tab { padding: 8px 14px; font-size: 13px; }
}

/* ======== PROJECTS (new) ======== */
.projects-section {
  padding: 88px 0;
  background:
    radial-gradient(circle at -10% 0%, #da4df166 1%, transparent 25%),
    radial-gradient(circle at 110% 30%, #c4f5e9b2 5%, transparent 25%);
}
body.dark .projects-section { background: var(--bg-secondary); }
.projects-header { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.projects-header p { font-size: 16px; color: var(--text-secondary); }
.projects-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.project-card {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-lg); overflow: hidden; transition: var(--transition);
  display: flex; flex-direction: column;
}
.project-card:hover { transform: translateY(-8px); box-shadow: 0 20px 60px var(--shadow-color); border-color: var(--skin-color); }
.project-img {
  height: 190px; display: flex; align-items: center; justify-content: center;
  font-size: 52px; color: rgba(255,255,255,0.95); position: relative;
}
.project-gradient-1 { background: linear-gradient(135deg, #2563eb, #7c3aed); }
.project-gradient-2 { background: linear-gradient(135deg, #0d9488, #2563eb); }
.project-gradient-3 { background: linear-gradient(135deg, #ec4899, #8b5cf6); }
.project-gradient-4 { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.project-gradient-5 { background: linear-gradient(135deg, #0ea5e9, #10b981); }
.project-badge {
  position: absolute; top: 14px; left: 14px;
  background: rgba(0,0,0,0.35); backdrop-filter: blur(6px);
  color: #fff; font-size: 12px; font-weight: 600;
  padding: 5px 12px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.25);
}
.project-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.project-meta { display: flex; gap: 14px; flex-wrap: wrap; }
.project-meta span { font-size: 12px; color: var(--text-muted); display: inline-flex; align-items: center; gap: 5px; }
.project-meta i { color: var(--skin-color); }
.project-body h3 { font-size: 18px; font-weight: 700; line-height: 1.3; }
.project-body > p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }
.project-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.project-tags span, .timeline-tags span {
  font-size: 12px; font-weight: 600; padding: 4px 12px;
  background: var(--bg-secondary); border: 1px solid var(--border-color);
  border-radius: 20px; color: var(--text-secondary);
}
.timeline-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.project-impact {
  display: flex; gap: 18px; margin-top: auto; padding-top: 14px;
  border-top: 1px dashed var(--border-color);
}
.project-impact strong { color: var(--skin-color); font-size: 16px; }
.project-impact span span { font-size: 12px; color: var(--text-muted); }
.project-card-cta {
  align-items: center; justify-content: center; text-align: center;
  background: linear-gradient(180deg, var(--bg-card), var(--bg-secondary));
  border-style: dashed;
}
.project-cta-content { padding: 40px 28px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.project-cta-content p { font-size: 14px; color: var(--text-secondary); margin-bottom: 8px; }

@media (max-width: 990px) { .projects-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .projects-grid { grid-template-columns: 1fr; } }

/* ======== WORK TOGETHER ======== */
.worktogether-section {
  background: linear-gradient(135deg, #132238 0%, #1e3a5f 60%, #2563eb 130%);
  padding: 84px 0; position: relative; overflow: hidden;
}
.worktogether-section::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.12), transparent 40%);
}
body.dark .worktogether-section { background: linear-gradient(135deg, #0a0a15, #1a1a2e); }
.worktogether-content {
  text-align: center; max-width: 720px; margin: 0 auto; position: relative;
}
.worktogether-content h2 {
  font-size: clamp(26px, 4vw, 38px); font-weight: 700; color: white;
  margin-bottom: 16px; line-height: 1.3; letter-spacing: -0.5px;
}
.worktogether-content p { font-size: 17px; color: #b9c2cc; margin-bottom: 30px; }
.worktogether-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ======== SERVICES ======== */
.services-section { padding: 88px 0; background: var(--soft-white); }
body.dark .services-section { background: var(--bg-secondary); }
.services-grid {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px;
  align-items: start;
}
.services-text p {
  font-size: 16px; color: var(--text-secondary); line-height: 1.7;
  margin-bottom: 16px;
}
.services-text .btn { margin-top: 14px; }
.services-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.service-card {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-lg); padding: 28px 20px; text-align: center;
  transition: var(--transition); position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--skin-gradient); transform: scaleX(0);
  transform-origin: left; transition: transform 0.4s ease;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover { transform: translateY(-8px); box-shadow: 0 20px 60px var(--shadow-color); border-color: var(--skin-color); }
.service-icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; background: rgba(37,99,235,0.1);
  font-size: 24px; color: var(--skin-color); transition: var(--transition);
}
.service-card:hover .service-icon {
  background: var(--skin-color); color: white; border-radius: 50%; transform: rotateY(180deg);
}
.service-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.service-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

@media (max-width: 920px) {
  .services-grid { grid-template-columns: 1fr; gap: 36px; }
  .services-text { text-align: center; }
  .services-text .eyebrow { justify-content: center; display: flex; }
}
@media (max-width: 500px) { .services-cards { grid-template-columns: 1fr; } }

/* ======== EXPERIENCE & EDUCATION ======== */
.exp-section { padding: 88px 0; background: var(--bg-primary); }
.exp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.exp-col .section-title { font-size: 26px; margin-bottom: 24px; }
.exp-col .section-title i { color: var(--skin-color); margin-right: 8px; }
.timeline { position: relative; padding-left: 28px; }
.timeline::before {
  content: ''; position: absolute; left: 8px; top: 6px; bottom: 6px;
  width: 2px; background: var(--skin-gradient); border-radius: 1px; opacity: 0.5;
}
.timeline-item { position: relative; padding-bottom: 28px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute; left: -24px; top: 5px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--skin-color); box-shadow: 0 0 0 4px rgba(37,99,235,0.15);
  z-index: 1;
}
.timeline-date {
  font-size: 13px; font-weight: 600; color: var(--skin-color); margin-bottom: 5px;
  display: flex; align-items: center; gap: 6px;
}
.timeline-item h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; line-height: 1.4; }
.timeline-item p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }
.exp-subtitle {
  font-size: 20px; font-weight: 700; margin: 32px 0 16px;
  display: flex; align-items: center; gap: 8px;
}
.exp-subtitle i { color: var(--skin-color); }
.lang-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.lang-item {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: 12px; padding: 16px 12px; text-align: center;
}
.lang-item h4 { font-size: 15px; font-weight: 700; margin-bottom: 2px; }
.lang-item p { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
.lang-dots { display: flex; gap: 5px; justify-content: center; }
.lang-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--border-color); }
.lang-dots span.on { background: var(--skin-color); }
.cv-card {
  margin-top: 20px; padding: 20px;
  background: var(--bg-secondary); border: 1px dashed var(--border-color);
  border-radius: 12px; display: flex; align-items: center;
  justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.cv-card h4 { font-size: 16px; margin-bottom: 4px; }
.cv-card p { font-size: 13px; color: var(--text-muted); }
.cv-buttons { display: flex; gap: 8px; }

@media (max-width: 820px) { .exp-grid { grid-template-columns: 1fr; gap: 40px; } }

/* ======== CLIENTS / TECHNOLOGIES MARQUEE ======== */
.clients-section { padding: 80px 0; background: var(--soft-white); }
body.dark .clients-section { background: var(--bg-secondary); }
.clients-header { text-align: center; max-width: 600px; margin: 0 auto 40px; }
.clients-header p { font-size: 16px; color: var(--text-secondary); }
.clients-marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track {
  display: flex; gap: 44px;
  animation: marquee 28s linear infinite;
  width: fit-content;
}
.clients-marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; gap: 44px; align-items: center; }
.marquee-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 17px; font-weight: 600; color: var(--text-muted);
  white-space: nowrap;
}
.marquee-item i { font-size: 26px; color: var(--skin-color); }
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ======== TESTIMONIAL ======== */
.testimonial-section { padding: 88px 0; background: var(--bg-primary); }
.testimonial-section .section-title { margin-bottom: 8px; }
.testimonial-carousel { max-width: 720px; margin: 24px auto 0; position: relative; }
.testimonial-slide { display: none; }
.testimonial-slide.active { display: block; animation: fadeIn 0.5s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.testimonial-content {
  text-align: center; padding: 40px 32px 32px;
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-xl); box-shadow: 0 4px 30px var(--shadow-color);
}
.testimonial-quote { font-size: 30px; color: var(--skin-color); opacity: 0.35; margin-bottom: 14px; }
.testimonial-message {
  font-size: 18px; font-weight: 600; color: var(--text-primary);
  line-height: 1.6; margin-bottom: 14px;
}
.testimonial-text {
  font-size: 15px; color: var(--text-secondary); line-height: 1.7;
  margin-bottom: 22px;
}
.testimonial-author {
  display: flex; align-items: center; justify-content: center; gap: 12px;
}
.author-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--skin-gradient); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 15px; line-height: 1;
  flex: 0 0 auto; /* never squish into an oval next to long names */
  padding-top: 2px; /* optical correction: capital initials sit high in the em box */
  text-align: center;
}
.testimonial-author h3 { font-size: 16px; font-weight: 700; color: var(--text-primary); text-align: left; }
.testimonial-author div span { font-size: 13px; color: var(--text-muted); display: block; text-align: left; }
.testimonial-controls {
  display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 26px;
}
.testimonial-arrow {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--border-color); background: var(--bg-card);
  color: var(--text-secondary); cursor: pointer; transition: var(--transition);
  display: inline-flex; align-items: center; justify-content: center;
}
.testimonial-arrow:hover { background: var(--skin-color); border-color: var(--skin-color); color: #fff; }
.testimonial-nav { display: flex; justify-content: center; gap: 10px; }
.testimonial-dot {
  width: 10px; height: 10px; border-radius: 20px;
  background: var(--text-muted); opacity: 0.4; border: none; cursor: pointer;
  transition: var(--transition); padding: 0; min-width: 10px; min-height: 10px;
}
.testimonial-dot.active { background: var(--skin-color); opacity: 1; width: 30px; }

/* ======== CONTACT ======== */
.contact-section {
  padding: 40px 0 88px;
  background: var(--soft-white);
  position: relative;
}
body.dark .contact-section { background: var(--bg-secondary); }
.contact-card {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: 0 4px 40px var(--shadow-color);
  padding: 48px;
}
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; }
.contact-info h2 {
  font-size: clamp(26px, 3vw, 32px); font-weight: 700; color: var(--text-primary);
  margin-bottom: 14px; letter-spacing: -0.5px;
}
.contact-info > p {
  font-size: 16px; color: var(--text-secondary); line-height: 1.7;
  margin-bottom: 28px;
}
.contact-details { display: flex; flex-direction: column; gap: 18px; margin-bottom: 28px; }
.contact-detail { display: flex; gap: 16px; align-items: flex-start; }
.contact-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(37,99,235,0.1); color: var(--skin-color);
  font-size: 18px; flex-shrink: 0;
}
.contact-detail h3 { font-size: 15px; font-weight: 700; margin-bottom: 2px; }
.contact-detail a,
.contact-detail p { font-size: 14px; color: var(--text-secondary); }
.contact-detail a { color: var(--skin-color); font-weight: 500; }
.contact-detail a:hover { text-decoration: underline; }
.contact-social { display: flex; gap: 10px; flex-wrap: wrap; }

/* Contact form */
.contact-form-col form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group label { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.form-control {
  width: 100%; padding: 14px 16px; font-size: 15px;
  font-family: var(--font-family); min-height: 50px;
  color: var(--text-primary); background: var(--bg-secondary);
  border: 1.5px solid var(--border-color); border-radius: 10px;
  transition: var(--transition);
}
.form-control::placeholder { color: var(--text-muted); }
.form-control:focus { border-color: var(--skin-color); box-shadow: 0 0 0 3px rgba(37,99,235,0.14); outline: none; }
.form-control:invalid:not(:placeholder-shown) { border-color: #ef4444; }
textarea.form-control { min-height: 130px; resize: vertical; }
select.form-control { appearance: none; }
.hidden-honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-status { font-size: 14px; font-weight: 600; min-height: 22px; }
.form-status.success { color: #16a34a; }
.form-status.error { color: #dc2626; }
.form-note { font-size: 13px; color: var(--text-muted); display: flex; gap: 8px; align-items: center; }

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-card { padding: 30px 22px; }
}

/* ======== CONTACT ARTWORK (orbit showpiece) ======== */
.contact-art { display: flex; }
.art-card {
  position: relative; overflow: hidden; flex: 1;
  background: linear-gradient(160deg, var(--bg-secondary), var(--bg-card));
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 36px 30px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.art-card::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(37,99,235,0.14), transparent 65%);
  opacity: 0; transition: opacity 0.35s ease;
}
.art-card:hover::before { opacity: 1; }
.orbit-wrap {
  position: relative;
  width: min(280px, 68vw); aspect-ratio: 1 / 1;
  margin: 28px auto 10px;
}
.orbit-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1.5px dashed rgba(37,99,235,0.3);
  border: 1.5px dashed color-mix(in srgb, var(--skin-color) 38%, transparent);
  animation: orbit-spin 26s linear infinite;
}
.orbit-ring.ring-2 {
  inset: 15%;
  border-color: var(--border-color);
  animation-duration: 38s; animation-direction: reverse;
}
.orbit-center {
  position: absolute; top: 50%; left: 50%;
  width: 96px; height: 96px; margin: -48px 0 0 -48px;
  border-radius: 50%; background: var(--skin-gradient); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; font-weight: 800; letter-spacing: 1px;
  box-shadow: 0 12px 34px rgba(37,99,235,0.35);
}
.orbit-center::after {
  content: ''; position: absolute; inset: -8px; border-radius: 50%;
  border: 2px solid var(--skin-color);
  animation: orbit-ping 2.6s ease-out infinite;
}
@keyframes orbit-ping {
  0% { transform: scale(0.85); opacity: 0.5; }
  100% { transform: scale(1.15); opacity: 0; }
}
.orbit-icon {
  position: absolute; width: 46px; height: 46px; border-radius: 50%;
  background: var(--bg-card); border: 1px solid var(--border-color);
  color: var(--skin-color); font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px var(--shadow-color);
  animation: orbit-spin 26s linear infinite reverse;
}
.ring-2 .orbit-icon { animation-duration: 38s; animation-direction: normal; }
.oi-top { top: -23px; left: calc(50% - 23px); }
.oi-bottom { bottom: -23px; left: calc(50% - 23px); }
.oi-left { left: -23px; top: calc(50% - 23px); }
.oi-right { right: -23px; top: calc(50% - 23px); }
@keyframes orbit-spin { to { transform: rotate(360deg); } }
.art-card:hover .orbit-ring, .art-card:hover .orbit-icon { animation-play-state: paused; }
.art-tagline { font-size: 15px; color: var(--text-secondary); line-height: 1.7; max-width: 340px; }
.art-clock {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--text-secondary);
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: 999px; padding: 9px 18px;
}
.art-clock i { color: var(--skin-color); }
.art-clock strong { color: var(--text-primary); font-variant-numeric: tabular-nums; letter-spacing: 0.5px; }
.art-copied { min-height: 22px; font-size: 14px; font-weight: 600; color: #16a34a; }

/* ======== FOOTER ======== */
.site-footer {
  background: #0f1e33; padding: 56px 0 28px; color: #cbd5e1;
}
body.dark .site-footer { background: #07070f; }
.footer-grid {
  display: flex; flex-direction: column;
  align-items: center; gap: 26px; text-align: center;
}
.footer-brand { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.footer-logo {
  font-size: 28px; font-weight: 800; color: white; letter-spacing: 0.5px;
}
.footer-logo span { color: var(--skin-color); font-size: 32px; }
.footer-brand p { font-size: 15px; color: rgba(255,255,255,0.6); max-width: 480px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 44px; height: 44px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08); color: #fff; font-size: 17px;
  transition: var(--transition);
}
.footer-social a:hover { background: var(--skin-color); transform: translateY(-3px); }
.footer-links { display: flex; gap: 8px 22px; flex-wrap: wrap; justify-content: center; }
.footer-links a {
  color: rgba(255,255,255,0.65); font-size: 15px;
  transition: color 0.3s ease; position: relative; padding: 6px 2px;
}
.footer-links a:hover { color: white; }
.footer-bottom {
  width: 100%; padding-top: 22px; margin-top: 6px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap;
}
.footer-copy { color: rgba(255,255,255,0.45); font-size: 14px; }
.footer-made { color: rgba(255,255,255,0.35); font-size: 13px; }
@media (max-width: 600px) { .footer-bottom { justify-content: center; text-align: center; } }

/* ======== ANIMATED BACKGROUNDS (global aurora + per-section glows) ======== */
.aurora {
  position: fixed; inset: 0; z-index: 0;
  overflow: hidden; pointer-events: none;
}
.aurora-orb {
  position: absolute; border-radius: 50%;
  filter: blur(100px); will-change: transform;
}
.orb-a {
  width: 46vmax; height: 46vmax; left: -13vmax; top: -12vmax;
  background: radial-gradient(circle, rgba(37,99,235,0.20), transparent 70%);
  animation: aurora-a 26s ease-in-out infinite alternate;
}
.orb-b {
  width: 40vmax; height: 40vmax; right: -12vmax; top: 32vh;
  background: radial-gradient(circle, rgba(168,85,247,0.16), transparent 70%);
  animation: aurora-b 33s ease-in-out infinite alternate;
}
.orb-c {
  width: 38vmax; height: 38vmax; left: 18vw; bottom: -15vmax;
  background: radial-gradient(circle, rgba(13,148,136,0.15), transparent 70%);
  animation: aurora-c 39s ease-in-out infinite alternate;
}
@keyframes aurora-a { from { transform: translate(0,0) scale(1); } to { transform: translate(8vw,6vh) scale(1.15); } }
@keyframes aurora-b { from { transform: translate(0,0) scale(1.1); } to { transform: translate(-7vw,6vh) scale(1); } }
@keyframes aurora-c { from { transform: translate(0,0) scale(1); } to { transform: translate(6vw,-6vh) scale(1.12); } }

.profile-section, .workprocess-section, .skills-section, .projects-section,
.services-section, .exp-section, .clients-section, .testimonial-section,
.contact-section { position: relative; }
.section-glow {
  position: absolute; z-index: 0;
  width: 44vmax; height: 44vmax; max-width: 640px; max-height: 640px;
  border-radius: 50%; filter: blur(110px);
  pointer-events: none; opacity: 0.6;
}
.section-glow.glow-a {
  top: -10vmax; right: -12vmax;
  background: radial-gradient(circle, rgba(37,99,235,0.13), transparent 70%);
  animation: glow-a 24s ease-in-out infinite alternate;
}
.section-glow.glow-b {
  bottom: -12vmax; left: -10vmax;
  background: radial-gradient(circle, rgba(168,85,247,0.11), transparent 70%);
  animation: glow-b 30s ease-in-out infinite alternate;
}
@keyframes glow-a { from { transform: translate(0,0) scale(1); } to { transform: translate(-5vw,4vh) scale(1.12); } }
@keyframes glow-b { from { transform: translate(0,0) scale(1.08); } to { transform: translate(5vw,-4vh) scale(1); } }

.worktogether-section::before { animation: cta-sheen 12s ease-in-out infinite alternate; }
@keyframes cta-sheen { from { transform: translateX(-5%); } to { transform: translateX(5%); } }

/* ======== SCROLL TO TOP ======== */
.scroll-top {
  position: fixed; bottom: 28px; right: 28px;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--skin-color); color: white; border: none;
  cursor: pointer; font-size: 18px; z-index: 99;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,99,235,0.35);
  opacity: 0; transform: translateY(20px);
  transition: var(--transition); pointer-events: none;
}
.scroll-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.scroll-top:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(37,99,235,0.45); }

/* ======== STYLE SWITCHER dots (buttons) ======== */
.style-switcher .colors button {
  height: 30px; width: 30px; border-radius: 50%;
  cursor: pointer; border: 2px solid transparent;
  transition: var(--transition); padding: 0;
}
.style-switcher .colors button:hover { transform: scale(1.15); }
.style-switcher .colors button:focus-visible { outline-offset: 2px; }

/* ======== MOUSE TRACKER + PAGE EFFECTS ======== */
:root {
  --mx: 50vw;
  --my: 30vh;
  --px: 0;
  --py: 0;
}
.cursor-spotlight {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none;

  opacity: 0;
  transition: opacity 0.35s ease;
}
body.mouse-active .cursor-spotlight { opacity: 0; }
/* Aurora parallax — subtle shift toward cursor */
body.mouse-active .aurora { transform: translate(calc(var(--px) * 0px), calc(var(--py) * 14px)); transition: transform 0.25s ease-out; }
.cursor-dot, .cursor-ring, .cursor-coords { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 200; }
.cursor-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--skin-color);
  box-shadow: 0 0 12px var(--skin-color);
  transform: translate(-50%, -50%);
  opacity: 0;
}

.cursor-dot.is-hover { transform: translate(-50%, -50%) scale(0.5); }
body.mouse-active .cursor-dot, body.mouse-active .cursor-ring { opacity: 1; }
.cursor-coords {
  transform: translate(18px, 18px);
  font-size: 11px; font-weight: 600; letter-spacing: 0.5px;
  font-variant-numeric: tabular-nums;
  color: var(--text-secondary);
  background: color-mix(in srgb, var(--bg-card) 82%, transparent);
  border: 1px solid var(--border-color);
  padding: 3px 9px; border-radius: 20px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; transition: opacity 0.3s ease;
  white-space: nowrap;
}
body.mouse-active .cursor-coords { opacity: 0.95; }
.click-ripples { position: fixed; inset: 0; z-index: 199; pointer-events: none; }
.click-ripple {
  position: fixed; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid var(--skin-color);
  transform: translate(-50%, -50%);
  animation: ripple-pop 0.7s ease-out forwards;
}
@keyframes ripple-pop {
  from { opacity: 0.9; width: 14px; height: 14px; }
  to { opacity: 0; width: 120px; height: 120px; border-width: 1px; }
}
/* Card spotlight that follows the cursor (uses --mx/--my set per-card by JS) */
.skill-card, .project-card, .step-card, .service-card, .exp-card {
  position: relative;
}
.skill-card::after, .project-card::after, .step-card::after,
.service-card::after, .exp-card::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  pointer-events: none; opacity: 0; transition: opacity 0.3s ease;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%),
    color-mix(in srgb, var(--skin-color) 13%, transparent), transparent 70%);
}
.skill-card:hover::after, .project-card:hover::after, .step-card:hover::after,
.service-card:hover::after, .exp-card:hover::after { opacity: 1; }
@media (hover: none), (pointer: coarse) {
  .cursor-spotlight, .cursor-dot, .cursor-ring, .cursor-coords, .click-ripples { display: none !important; }
}

/* ======== RESPONSIVE ======== */
@media (max-width: 1200px) { .content { padding: 0 24px; } }
@media (max-width: 768px) {
  .section-title { font-size: 28px; }
  .skills-section, .projects-section, .services-section, .exp-section, .testimonial-section { padding: 64px 0; }
}

/* ======== REDUCED MOTION ======== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
  #particles-canvas { display: none; }
  .cursor-spotlight, .cursor-dot, .cursor-ring, .cursor-coords, .click-ripples { display: none !important; }
}

/* ======== PRINT ======== */
@media print {
  .navbar, .style-switcher, .scroll-top, .scroll-progress,
  #particles-canvas, .cursor-spotlight, .cursor-dot, .cursor-ring, .cursor-coords, .click-ripples, .contact-form-col, .worktogether-section { display: none !important; }
  body { background: #fff; color: #000; }
  .profile-card, .contact-card { box-shadow: none; border: 1px solid #ddd; top: 0; }
}
