/* ============================================================
   DESIGN TOKENS
============================================================ */
:root {
  --bg-light:      #ffffff;
  --bg-gray:       #f4f6f9;
  --bg-dark:       #0e1b2e;
  --bg-dark-2:     #152236;
  --bg-dark-3:     #1c2e46;
  --accent:        #c9a227;
  --accent-hover:  #ddb52f;
  --text-dark:     #0e1b2e;
  --text-mid:      #3d5166;
  --text-muted:    #7a8ea0;
  --text-light:    #c8d6e5;
  --text-white:    #ffffff;
  --border-light:  #e4eaf1;
  --border-dark:   rgba(255,255,255,0.08);

  --font-head: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm:   8px;
  --radius-md:   16px;
  --radius-lg:   24px;
  --radius-full: 9999px;

  --shadow-sm:  0 2px 8px rgba(14,27,46,0.08);
  --shadow-md:  0 8px 32px rgba(14,27,46,0.12);
  --shadow-lg:  0 16px 48px rgba(14,27,46,0.16);
  --shadow-accent: 0 8px 30px rgba(201,162,39,0.35);

  --nav-h: 72px;
  --max-w: 1240px;
  --section-py: 100px;

  --ease: cubic-bezier(0.4,0,0.2,1);
  --t-fast: 150ms;
  --t-mid:  300ms;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

/* ============================================================
   TYPOGRAPHY HELPERS
============================================================ */
.section-pill {
  display: inline-flex;
  align-items: center;
  background: rgba(201,162,39,0.12);
  border: 1px solid rgba(201,162,39,0.3);
  color: var(--accent);
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 18px;
}
.section-pill.light {
  background: rgba(201,162,39,0.15);
  border-color: rgba(201,162,39,0.4);
}

.section-heading {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-dark);
  letter-spacing: -0.02em;
}
.section-heading.light { color: var(--text-white); }

.accent-word { color: var(--accent); }

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

/* ============================================================
   BUTTONS
============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 13px 24px;
  border-radius: var(--radius-full);
  transition: all var(--t-mid) var(--ease);
  white-space: nowrap;
  cursor: pointer;
}

.btn-arrow {
  width: 28px;
  height: 28px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: background var(--t-fast);
  flex-shrink: 0;
}

/* Dark filled */
.btn-dark {
  background: var(--bg-dark);
  color: var(--text-white);
  border: 2px solid var(--bg-dark);
}
.btn-dark:hover {
  background: var(--bg-dark-2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-dark .btn-arrow { background: rgba(255,255,255,0.15); }
.btn-dark:hover .btn-arrow { background: var(--accent); color: #000; }

/* Gold accent */
.btn-accent {
  background: var(--accent);
  color: var(--bg-dark);
  border: 2px solid var(--accent);
  font-weight: 800;
}
.btn-accent:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
}
.btn-accent .btn-arrow { background: rgba(0,0,0,0.15); color: var(--bg-dark); }

/* Outline dark */
.btn-outline-dark {
  background: transparent;
  color: var(--text-dark);
  border: 2px solid var(--border-light);
}
.btn-outline-dark:hover {
  border-color: var(--bg-dark);
  background: var(--bg-dark);
  color: var(--text-white);
  transform: translateY(-2px);
}

/* Nav CTA */
.btn-nav {
  background: var(--accent);
  color: var(--bg-dark);
  border: 2px solid var(--accent);
  padding: 10px 22px;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: var(--radius-full);
}
.btn-nav:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: var(--shadow-accent);
}

.btn-full { width: 100%; justify-content: center; }

/* ============================================================
   NAVBAR
============================================================ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 1000;
  background: rgba(255,255,255,0.0);
  border-bottom: 1px solid transparent;
  transition: all var(--t-mid) var(--ease);
}
#navbar.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--border-light);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-logo {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-link {
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-mid);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  transition: all var(--t-fast);
}
.nav-link:hover, .nav-link.active {
  color: var(--text-dark);
  background: var(--bg-gray);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all var(--t-mid);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
============================================================ */
#hero {
  background: var(--bg-light);
  padding-top: calc(var(--nav-h) + 60px);
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}
/* Subtle background shape */
#hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(201,162,39,0.07) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

/* Hero Left */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-gray);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 7px 16px;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-mid);
  margin-bottom: 24px;
}
.badge-pulse {
  width: 7px;
  height: 7px;
  background: #22c55e;
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.5); }
  50%      { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
}

.hero-heading {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.hero-social-proof {
  display: flex;
  align-items: center;
  gap: 16px;
}
.sp-avatars {
  display: flex;
  align-items: center;
}
.sp-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-dark);
  color: var(--accent);
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-light);
  margin-left: -8px;
}
.sp-avatar:first-child { margin-left: 0; }

.sp-stars {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 2px;
}
.sp-stars span {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--text-dark);
  margin-left: 4px;
}
.sp-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Hero Right — Photo */
.hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-photo-wrap {
  position: relative;
  width: 420px;
  max-width: 100%;
}

.hero-photo-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-dark-2) 100%);
  border-radius: var(--radius-lg);
  transform: rotate(3deg) scale(0.98);
  z-index: 0;
}

.hero-photo-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(160deg, #1a2e45 0%, #0e1b2e 100%);
  border: 2px solid var(--border-light);
  box-shadow: var(--shadow-lg);
}

#hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-initials {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 5rem;
  font-weight: 800;
  color: var(--accent);
}

/* Floating badges on photo */
.float-badge {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-dark);
  box-shadow: var(--shadow-md);
  white-space: nowrap;
}
.float-badge i { color: var(--accent); font-size: 1rem; }

.float-tl { top: 24px; left: -32px; }
.float-tr { top: 80px; right: -28px; }
.float-br { bottom: 48px; right: -32px; }

/* ============================================================
   STATS STRIP
============================================================ */
#stats {
  background: var(--bg-dark);
  padding: 48px 0;
}

.stats-grid {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 32px;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-icon {
  font-size: 1.6rem;
  color: var(--accent);
  opacity: 0.85;
  flex-shrink: 0;
}

.stat-num {
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text-white);
  line-height: 1;
  margin-bottom: 4px;
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.stat-num span:last-child {
  font-size: 1.8rem;
  color: var(--accent);
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-light);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.stat-divider {
  width: 1px;
  height: 56px;
  background: var(--border-dark);
  flex-shrink: 0;
}

/* ============================================================
   ABOUT
============================================================ */
#about {
  background: var(--bg-light);
  padding: var(--section-py) 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}

.about-text {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.8;
}
.about-text strong { color: var(--text-dark); font-weight: 600; }

.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 28px 0 32px;
}

.about-hl {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-mid);
  font-weight: 500;
}
.about-hl i { color: var(--accent); font-size: 0.9rem; flex-shrink: 0; }

/* ============================================================
   PROFESSIONAL SUMMARY
============================================================ */
#summary {
  background: var(--bg-gray);
  padding: var(--section-py) 0;
}

.summary-wrap { text-align: center; }

.summary-quote {
  font-family: var(--font-head);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 600;
  color: var(--text-dark);
  font-style: italic;
  max-width: 760px;
  margin: 0 auto 56px;
  line-height: 1.6;
  padding: 28px 36px;
  border-left: 4px solid var(--accent);
  background: var(--bg-light);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  text-align: left;
  position: relative;
}
.summary-quote::before {
  content: '\201C';
  position: absolute;
  top: -12px;
  left: 24px;
  font-size: 4rem;
  color: var(--accent);
  font-family: Georgia, serif;
  line-height: 1;
}

.summary-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.sum-card {
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 28px 22px;
  text-align: left;
  transition: all var(--t-mid) var(--ease);
}
.sum-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(201,162,39,0.3);
}

.sum-card-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-dark);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.sum-card h4 {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
  line-height: 1.3;
}

.sum-card p {
  font-size: 0.85rem;
  color: var(--text-mid);
  line-height: 1.65;
}

/* ============================================================
   SKILLS
============================================================ */
#skills {
  background: var(--bg-light);
  padding: var(--section-py) 0;
}

.skills-header {
  text-align: center;
  margin-bottom: 48px;
}

.skills-sub {
  font-size: 1rem;
  color: var(--text-mid);
  max-width: 600px;
  margin: 8px auto 0;
  line-height: 1.7;
}

.skills-group-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.skills-group {
  background: var(--bg-gray);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  transition: all var(--t-mid);
}
.skills-group:hover {
  border-color: rgba(201,162,39,0.3);
  box-shadow: var(--shadow-sm);
}

.sg-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}
.sg-header i  { color: var(--accent); font-size: 0.9rem; }
.sg-header h4 {
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: 0.01em;
}

.sg-pills { display: flex; flex-wrap: wrap; gap: 7px; }

.sp-pill {
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  color: var(--text-mid);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  transition: all var(--t-fast);
  cursor: default;
}
.sp-pill:hover {
  background: var(--bg-dark);
  border-color: var(--bg-dark);
  color: var(--accent);
}

/* ============================================================
   EXPERTISE
============================================================ */
#expertise {
  background: var(--bg-dark);
  padding: var(--section-py) 0;
}

.expertise-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 56px;
}

.expertise-sub {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.75;
  max-width: 440px;
  margin-bottom: 8px;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.exp-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-dark-2);
  border: 1px solid var(--border-dark);
  transition: transform var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease), border-color var(--t-mid);
  cursor: default;
}
.exp-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.5);
  border-color: rgba(201,162,39,0.25);
}

.exp-card-bg {
  height: 140px;
  position: relative;
  overflow: hidden;
}
.bg-1 { background: linear-gradient(135deg, #0e3a5c 0%, #0a2240 100%); }
.bg-2 { background: linear-gradient(135deg, #1a3a1a 0%, #0d2310 100%); }
.bg-3 { background: linear-gradient(135deg, #2d1a4a 0%, #1a0d33 100%); }
.bg-4 { background: linear-gradient(135deg, #3a2200 0%, #251600 100%); }
.bg-5 { background: linear-gradient(135deg, #3a0a0a 0%, #220505 100%); }
.bg-6 { background: linear-gradient(135deg, #0a2a3a 0%, #051820 100%); }
.bg-7 { background: linear-gradient(135deg, #1a0a3a 0%, #0f0522 100%); }
.bg-8 { background: linear-gradient(135deg, #002a1a 0%, #00170e 100%); }

.exp-card-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image: radial-gradient(circle, rgba(255,255,255,0.4) 1px, transparent 1px);
  background-size: 22px 22px;
}

.exp-icons {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 16px;
}

.exp-icon {
  font-size: 3rem;
  opacity: 0.82;
  filter: drop-shadow(0 4px 14px rgba(0,0,0,0.5));
  transition: transform 0.35s ease, opacity 0.35s ease;
  color: #fff;
  flex-shrink: 0;
}

.exp-card:hover .exp-icon {
  transform: translateY(-5px) scale(1.12);
  opacity: 1;
}

.exp-card-body {
  padding: 24px;
}

.exp-tag {
  display: inline-block;
  background: rgba(201,162,39,0.15);
  border: 1px solid rgba(201,162,39,0.3);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.exp-title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.3;
  margin-bottom: 10px;
}

.exp-desc {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.65;
  margin-bottom: 16px;
}

.exp-skills {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-dark);
  padding-top: 14px;
  line-height: 1.6;
}

/* ============================================================
   PROJECTS — table style
============================================================ */
#projects {
  background: var(--bg-gray);
  padding: var(--section-py) 0;
}

.projects-table {
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.pt-head {
  display: grid;
  grid-template-columns: 1fr 140px 80px 48px;
  gap: 16px;
  padding: 14px 28px;
  background: var(--bg-gray);
  border-bottom: 1px solid var(--border-light);
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.pt-row {
  display: grid;
  grid-template-columns: 1fr 140px 80px 48px;
  gap: 16px;
  padding: 20px 28px;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
  transition: background var(--t-fast);
  text-decoration: none;
  color: inherit;
}
.pt-row:last-child { border-bottom: none; }
.pt-row:hover { background: rgba(201,162,39,0.04); }

.pt-name {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 10px;
}
.pt-name-icon {
  width: 36px;
  height: 36px;
  background: var(--bg-dark);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 0.8rem;
  flex-shrink: 0;
}

.pt-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
  font-weight: 400;
}

.pt-lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-mid);
}
.lang-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.pt-stars {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-mid);
  display: flex;
  align-items: center;
  gap: 5px;
}
.pt-stars i { color: #e3b341; font-size: 0.72rem; }

.pt-arrow {
  width: 36px;
  height: 36px;
  background: var(--bg-gray);
  border: 1px solid var(--border-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--text-mid);
  transition: all var(--t-fast);
  justify-self: end;
}
.pt-row:hover .pt-arrow {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg-dark);
}

/* skeleton rows */
.skeleton-row { pointer-events: none; }
.sk {
  height: 14px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--bg-gray) 25%, #e8ecf1 50%, var(--bg-gray) 75%);
  background-size: 400% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}
.sk-xs  { width: 40px;  }
.sk-sm  { width: 80px;  }
.sk-md  { width: 60%;   }
.sk-lg  { width: 80%;   }
@keyframes shimmer {
  0%   { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* ============================================================
   BLOG
============================================================ */
#blog {
  background: var(--bg-light);
  padding: var(--section-py) 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Every 10th card (last one) spans full width as a featured row */
.blog-grid .blog-card:nth-child(10) {
  grid-column: 1 / -1;
  flex-direction: row;
}
.blog-grid .blog-card:nth-child(10) .blog-thumb {
  width: 340px;
  height: auto;
  flex-shrink: 0;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
}
.blog-grid .blog-card:nth-child(10) .blog-thumb-placeholder {
  width: 340px;
  flex-shrink: 0;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
}
.blog-grid .blog-card:nth-child(10) .blog-body {
  padding: 28px 32px;
}
.blog-grid .blog-card:nth-child(10) .blog-title {
  font-size: 1.2rem;
}

.blog-card {
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--t-mid) var(--ease);
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(201,162,39,0.3);
}

.blog-thumb {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.blog-thumb-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-dark-2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.blog-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  font-family: var(--font-mono);
}
.blog-meta .dot { width: 3px; height: 3px; background: var(--text-muted); border-radius: 50%; }

.blog-title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.4;
  margin-bottom: 10px;
  transition: color var(--t-fast);
}
.blog-card:hover .blog-title { color: var(--accent); }

.blog-excerpt {
  font-size: 0.85rem;
  color: var(--text-mid);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 16px;
}

.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.blog-tag {
  background: var(--bg-gray);
  color: var(--text-muted);
  font-size: 0.7rem;
  font-family: var(--font-mono);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.blog-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-dark);
  transition: gap var(--t-fast), color var(--t-fast);
}
.blog-link:hover { gap: 10px; color: var(--accent); }

/* skeleton blog card */
.blog-card.skeleton-card { pointer-events: none; }
.sk-img {
  width: 100%;
  height: 200px;
  background: linear-gradient(90deg, var(--bg-gray) 25%, #e8ecf1 50%, var(--bg-gray) 75%);
  background-size: 400% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}

/* API error state */
.api-error {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.api-error i { font-size: 2rem; color: var(--border-light); display: block; margin-bottom: 12px; }

/* ============================================================
   LINKEDIN
============================================================ */
#linkedin {
  background: var(--bg-dark);
  padding: var(--section-py) 0;
}

.linkedin-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.li-sub {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.75;
  margin-bottom: 32px;
  margin-top: 8px;
}

.li-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 24px;
}

.li-feat {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--bg-dark-2);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--text-light);
  transition: border-color var(--t-fast);
}
.li-feat:hover { border-color: rgba(201,162,39,0.3); }
.li-feat i { color: var(--accent); font-size: 0.95rem; flex-shrink: 0; }

/* ============================================================
   CONTACT
============================================================ */
#contact {
  background: var(--bg-gray);
  padding: var(--section-py) 0;
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: start;
}

.contact-sub {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.75;
  margin: 12px 0 28px;
}

.contact-items { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }

.ci {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  transition: all var(--t-fast);
  color: inherit;
}
.ci:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}

.ci-icon {
  width: 40px;
  height: 40px;
  background: var(--bg-dark);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 0.95rem;
  flex-shrink: 0;
}
.ci-label { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; margin-bottom: 2px; }
.ci-val   { font-size: 0.9rem; color: var(--text-dark); font-weight: 500; }

.contact-avail {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: rgba(34,197,94,0.06);
  border: 1px solid rgba(34,197,94,0.2);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: #166534;
  font-weight: 500;
}
.avail-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

/* Form */
.contact-right {
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.fg {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.fg label {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: 0.02em;
}

.fg input, .fg textarea {
  background: var(--bg-gray);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text-dark);
  outline: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  resize: none;
}
.fg input::placeholder, .fg textarea::placeholder { color: var(--text-muted); }
.fg input:focus, .fg textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201,162,39,0.12);
  background: var(--bg-light);
}

#submit-btn { margin-top: 4px; }
#submit-btn:disabled { opacity: 0.65; cursor: not-allowed; }

#form-status {
  font-size: 0.85rem;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-top: 14px;
  display: none;
}
#form-status.sending {
  display: block;
  background: var(--bg-gray);
  color: var(--text-mid);
  border: 1px solid var(--border-light);
}
#form-status.success {
  display: block;
  background: rgba(34,197,94,0.08);
  color: #166534;
  border: 1px solid rgba(34,197,94,0.25);
}
#form-status.error {
  display: block;
  background: rgba(239,68,68,0.08);
  color: #991b1b;
  border: 1px solid rgba(239,68,68,0.25);
}

/* ============================================================
   FOOTER
============================================================ */
#footer {
  background: var(--bg-dark);
}

/* CTA Strip */
.footer-cta-strip {
  background: linear-gradient(135deg, var(--bg-dark-2) 0%, #1a2e4a 100%);
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
  padding: 40px 0;
}

.footer-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-cta-title {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.footer-cta-sub {
  font-size: 0.92rem;
  color: var(--text-light);
}

/* Footer Main Grid */
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--border-dark);
}

.footer-logo {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}
.footer-logo span { color: var(--accent); }

.footer-brand p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.75;
  max-width: 280px;
  margin-bottom: 20px;
}

.footer-location {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}
.footer-location i { color: var(--accent); font-size: 0.78rem; }

.fn-col h4 {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-dark);
}

.fn-col a {
  display: block;
  font-size: 0.88rem;
  color: var(--text-light);
  margin-bottom: 12px;
  transition: color var(--t-fast), padding-left var(--t-fast);
}
.fn-col a:hover {
  color: var(--accent);
  padding-left: 4px;
}

/* Social links with icons */
.footer-social-link {
  display: flex !important;
  align-items: center;
  gap: 10px;
}
.footer-social-link i {
  width: 28px;
  height: 28px;
  background: var(--bg-dark-2);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
  transition: all var(--t-fast);
}
.footer-social-link:hover i {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg-dark);
}

/* Bottom Bar */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom-right { font-family: var(--font-mono); font-size: 0.78rem; }

/* ============================================================
   BACK TO TOP
============================================================ */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 99;
  width: 44px;
  height: 44px;
  background: var(--bg-dark);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 0.85rem;
  opacity: 0;
  pointer-events: none;
  transition: all var(--t-mid);
  box-shadow: var(--shadow-md);
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover   { background: var(--accent); color: var(--bg-dark); transform: translateY(-3px); }

/* ============================================================
   RESPONSIVE — TABLET ≤1024px
============================================================ */
@media (max-width: 1024px) {
  .hero-grid      { grid-template-columns: 1fr; gap: 48px; }
  .hero-right     { justify-content: flex-start; }
  .hero-photo-wrap{ width: 340px; }
  .about-grid     { grid-template-columns: 1fr; gap: 40px; }
  .expertise-header { grid-template-columns: 1fr; }
  .expertise-grid { grid-template-columns: repeat(2, 1fr); }
  .summary-cards { grid-template-columns: repeat(2, 1fr); }
  .skills-group-grid { grid-template-columns: repeat(2, 1fr); }
  .linkedin-wrap  { grid-template-columns: 1fr; gap: 48px; }
  .contact-wrap   { grid-template-columns: 1fr; gap: 48px; }
  .footer-grid    { grid-template-columns: 1fr 1fr; }
  .footer-brand   { grid-column: 1 / -1; }
  .footer-cta-inner { flex-direction: column; text-align: center; }
}

/* ============================================================
   RESPONSIVE — MOBILE ≤768px
============================================================ */
@media (max-width: 768px) {
  :root { --section-py: 64px; }

  .hamburger { display: flex; }

  .nav-links {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(280px, 85vw);
    background: var(--bg-light);
    border-left: 1px solid var(--border-light);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 80px 20px 40px;
    gap: 4px;
    transform: translateX(100%);
    transition: transform var(--t-mid);
    z-index: 999;
    box-shadow: var(--shadow-lg);
    margin-left: 0;
  }
  .nav-links.open  { transform: translateX(0); }
  .nav-link        { padding: 12px 16px; }
  .btn-nav         { display: none; }

  .hero-grid       { gap: 40px; }
  .hero-photo-wrap { width: 100%; max-width: 320px; margin: 0 auto; }
  .float-tl, .float-tr, .float-br { display: none; }
  .hero-actions    { flex-direction: column; }

  .stats-grid      { gap: 20px; }
  .stat-divider    { display: none; }

  .expertise-grid  { grid-template-columns: 1fr; }
  .summary-cards   { grid-template-columns: 1fr; }
  .skills-group-grid { grid-template-columns: 1fr 1fr; }

  .pt-head         { display: none; }
  .pt-row          { grid-template-columns: 1fr auto; gap: 8px; padding: 16px 20px; }
  .pt-row > :nth-child(2),
  .pt-row > :nth-child(3) { display: none; }

  .blog-grid       { grid-template-columns: 1fr; }
  .blog-grid .blog-card:nth-child(10) { flex-direction: column; grid-column: auto; }
  .blog-grid .blog-card:nth-child(10) .blog-thumb,
  .blog-grid .blog-card:nth-child(10) .blog-thumb-placeholder { width: 100%; border-radius: var(--radius-md) var(--radius-md) 0 0; }
  .form-row        { grid-template-columns: 1fr; }
  .about-highlights{ grid-template-columns: 1fr; }
  .li-features     { grid-template-columns: 1fr; }
  .footer-grid     { grid-template-columns: 1fr; gap: 32px; }
  .footer-brand    { grid-column: auto; }
  .footer-bottom   { flex-direction: column; text-align: center; }
}

/* ============================================================
   REDUCED MOTION
============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
