/* ===================================================
   DESIGN TOKENS
=================================================== */
:root {
  /* Colors */
  --bg-primary:     #ffffff;
  --bg-secondary:   #f8fafc;
  --bg-dark:        #0f172a;
  --bg-dark-2:      #1e293b;
  --bg-dark-3:      #334155;

  --text-primary:   #0f172a;
  --text-secondary: #475569;
  --text-muted:     #94a3b8;
  --text-inverse:   #f1f5f9;

  --accent:         #2563eb;
  --accent-hover:   #1d4ed8;
  --accent-light:   #eff6ff;
  --accent-border:  #bfdbfe;

  --green:          #16a34a;
  --green-light:    #f0fdf4;

  --border:         #e2e8f0;
  --border-dark:    #cbd5e1;

  /* Shadows */
  --shadow-sm:  0 1px 2px rgba(0,0,0,0.05);
  --shadow:     0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md:  0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg:  0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
  --shadow-xl:  0 20px 25px rgba(0,0,0,0.1), 0 10px 10px rgba(0,0,0,0.04);

  /* Spacing */
  --section-padding: 5rem 0;

  /* Border radius */
  --radius-sm:  4px;
  --radius:     8px;
  --radius-lg:  12px;
  --radius-xl:  16px;
  --radius-2xl: 24px;

  /* Typography */
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:  'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;

  /* Transitions */
  --transition: 0.2s ease;
  --transition-slow: 0.3s ease;
}

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

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

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent-hover);
}

ul {
  list-style: none;
}

/* ===================================================
   LAYOUT
=================================================== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: var(--section-padding);
}

/* ===================================================
   TYPOGRAPHY
=================================================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }

p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

.lead {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--bg-secondary);
  padding: 0.2em 0.4em;
  border-radius: var(--radius-sm);
  color: var(--accent);
}

pre {
  background: var(--bg-dark);
  color: var(--text-inverse);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  overflow-x: auto;
  margin: 1.5rem 0;
}

pre code {
  background: none;
  color: inherit;
  padding: 0;
  font-size: 0.9rem;
}

/* ===================================================
   BUTTONS
=================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  font-family: var(--font-sans);
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border);
}

.btn-ghost:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-color: var(--border-dark);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* ===================================================
   TAGS / BADGES
=================================================== */
.tag {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 50px;
  font-size: 0.8125rem;
  font-weight: 500;
  border: 1px solid var(--accent-border);
  transition: all var(--transition);
}

.tag:hover {
  background: var(--accent);
  color: white;
}

.tag-sm {
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
}

.tag-dark {
  background: var(--bg-dark-2);
  color: var(--text-inverse);
  border-color: var(--bg-dark-3);
}

/* ===================================================
   SECTION HEADERS
=================================================== */
.section-header {
  margin-bottom: 3rem;
}

.section-label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 600px;
}

/* ===================================================
   CARDS
=================================================== */
.card {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all var(--transition-slow);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: var(--accent-border);
}

/* ===================================================
   NAVIGATION
=================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 1px;
}

.nav-logo:hover {
  color: var(--text-primary);
}

.logo-dot {
  color: var(--accent);
  font-size: 1.5rem;
  line-height: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  padding: 0.5rem 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9375rem;
  border-radius: var(--radius);
  transition: all var(--transition);
  text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  background: var(--bg-secondary);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ===================================================
   HERO SECTION
=================================================== */
.hero {
  min-height: calc(100vh - 4rem);
  display: flex;
  align-items: center;
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
  padding: 5rem 0;
}

.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -20%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(37,99,235,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(37,99,235,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.875rem;
  background: var(--accent-light);
  border: 1px solid var(--accent-border);
  border-radius: 50px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.85); }
}

.hero-name {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.hero-title {
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.hero-description {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 580px;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-social {
  display: flex;
  gap: 0.75rem;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  font-size: 1rem;
  transition: all var(--transition);
  text-decoration: none;
}

.social-icon:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  transform: translateY(-2px);
}

.hero-avatar {
  width: 260px;
  height: 260px;
  border-radius: var(--radius-2xl);
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  box-shadow: var(--shadow-xl);
  position: relative;
  flex-shrink: 0;
}

.hero-avatar-text {
  font-size: 5rem;
  font-weight: 800;
  color: white;
  letter-spacing: -3px;
  line-height: 1;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ===================================================
   ABOUT SECTION (HOME)
=================================================== */
.about-section {
  background: var(--bg-secondary);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}

.feature-card {
  padding: 1.25rem;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}

.feature-card:hover {
  border-color: var(--accent-border);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.feature-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.feature-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0;
}

/* ===================================================
   SKILLS PREVIEW (HOME)
=================================================== */
.skills-preview {
  background: var(--bg-dark);
}

.skills-preview .section-label {
  color: var(--accent);
}

.skills-preview .section-title {
  color: var(--text-inverse);
}

.skills-preview .section-subtitle {
  color: var(--text-muted);
}

.skills-grid-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.skill-category-card {
  background: var(--bg-dark-2);
  border: 1px solid var(--bg-dark-3);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all var(--transition-slow);
}

.skill-category-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.skill-cat-title {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.skill-cat-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.skill-item {
  font-size: 0.8rem;
  padding: 0.25rem 0.6rem;
  background: var(--bg-dark-3);
  color: var(--text-inverse);
  border-radius: 50px;
  font-weight: 500;
}

/* ===================================================
   FEATURED PROJECTS (HOME)
=================================================== */
.projects-preview {
  background: var(--bg-secondary);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all var(--transition-slow);
  position: relative;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #60a5fa);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  opacity: 0;
  transition: opacity var(--transition);
}

.project-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
  border-color: var(--accent-border);
}

.project-card:hover::before {
  opacity: 1;
}

.project-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.project-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.125rem;
  flex-shrink: 0;
}

.project-links {
  display: flex;
  gap: 0.5rem;
}

.project-link {
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: color var(--transition);
}

.project-link:hover {
  color: var(--accent);
}

.project-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0;
}

.project-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
  flex: 1;
  margin: 0;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* ===================================================
   PAGE HERO
=================================================== */
.page-hero {
  background: var(--bg-dark);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(37,99,235,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.page-title {
  color: var(--text-inverse);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.page-subtitle {
  color: var(--text-muted);
  font-size: 1.0625rem;
}

.page-content {
  padding: 4rem 1.5rem;
}

/* ===================================================
   RESUME PAGE
=================================================== */
.resume-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}

.resume-sidebar {
  position: sticky;
  top: 5rem;
}

.resume-section {
  margin-bottom: 3rem;
}

.resume-section-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border);
}

.resume-section-title i {
  color: var(--accent);
  font-size: 1rem;
}

/* Experience */
.timeline {
  position: relative;
  padding-left: 1.5rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -1.625rem;
  top: 6px;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border: 2px solid var(--bg-primary);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--accent-border);
}

.timeline-header {
  margin-bottom: 0.75rem;
}

.timeline-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.timeline-company {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.timeline-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.timeline-meta span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.timeline-highlights {
  list-style: none;
  margin-top: 0.875rem;
}

.timeline-highlights li {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  padding: 0.375rem 0;
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.6;
}

.timeline-highlights li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.75rem;
  top: 0.5rem;
}

/* Skills on resume page */
.skills-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.skill-group {
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.skill-group:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.skill-group-name {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.625rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* Sidebar components */
.sidebar-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

.sidebar-card-title {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.contact-item i {
  width: 18px;
  color: var(--accent);
  flex-shrink: 0;
}

.contact-item a {
  color: var(--text-secondary);
  text-decoration: none;
}

.contact-item a:hover {
  color: var(--accent);
}

.cert-list {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.cert-item {
  padding: 0.75rem;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.cert-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.cert-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.edu-item {
  margin-bottom: 1rem;
}

.edu-degree {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.edu-school {
  font-size: 0.875rem;
  color: var(--accent);
  margin-bottom: 0.2rem;
}

.edu-period {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.download-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.875rem;
  background: var(--accent);
  color: white;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all var(--transition);
  margin-top: 1.25rem;
  text-decoration: none;
}

.download-btn:hover {
  background: var(--accent-hover);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* ===================================================
   PROJECTS PAGE
=================================================== */
.projects-page {
  background: var(--bg-secondary);
  min-height: 60vh;
}

.projects-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.project-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.filter-btn {
  padding: 0.4rem 1rem;
  border: 1px solid var(--border);
  background: var(--bg-primary);
  color: var(--text-secondary);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-sans);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* ===================================================
   BLOG PAGE
=================================================== */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  align-items: start;
}

.blog-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.blog-card {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  transition: all var(--transition-slow);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
}

.blog-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  border-color: var(--accent-border);
}

.blog-card-date {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.blog-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  transition: color var(--transition);
  text-decoration: none;
  display: block;
}

.blog-card-title:hover {
  color: var(--accent);
}

.blog-card-excerpt {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.blog-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.blog-card-arrow {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
  transition: all var(--transition);
}

.blog-card:hover .blog-card-arrow {
  background: var(--accent);
  color: white;
}

.blog-sidebar .sidebar-card {
  background: var(--bg-primary);
}

.blog-sidebar {
  position: sticky;
  top: 5rem;
}

.blog-empty {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  color: var(--text-muted);
}

.blog-empty i {
  font-size: 3rem;
  color: var(--border);
  margin-bottom: 1rem;
}

/* ===================================================
   BLOG POST PAGE
=================================================== */
.post-hero {
  background: var(--bg-dark);
  padding: 4rem 0;
}

.post-meta-top {
  margin-bottom: 2rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color var(--transition);
}

.back-link:hover {
  color: var(--accent);
}

.post-title {
  color: var(--text-inverse);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: 1.25rem;
  font-weight: 800;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.post-meta > span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.post-body {
  max-width: 720px;
  margin: 3rem auto 0;
  padding-bottom: 4rem;
}

.post-body h2 {
  font-size: 1.625rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.post-body h3 {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.post-body p {
  margin-bottom: 1.5rem;
}

.post-body ul,
.post-body ol {
  margin: 1rem 0 1.5rem 1.5rem;
  color: var(--text-secondary);
}

.post-body li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.post-body blockquote {
  border-left: 4px solid var(--accent);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: var(--accent-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
}

.post-body blockquote p {
  color: var(--text-primary);
  margin: 0;
}

.post-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

.post-footer {
  max-width: 720px;
  margin: 0 auto;
  padding-bottom: 4rem;
}

/* ===================================================
   CTA SECTION
=================================================== */
.cta-section {
  background: var(--bg-dark);
  text-align: center;
  padding: 5rem 0;
}

.cta-section .section-title {
  color: var(--text-inverse);
}

.cta-section .section-subtitle {
  color: var(--text-muted);
  margin: 0 auto 2rem;
}

/* ===================================================
   FOOTER
=================================================== */
.site-footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--bg-dark-3);
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3rem;
  padding: 3rem 1.5rem 2.5rem;
}

.footer-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-inverse);
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
}

.footer-tagline {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}

.footer-nav a {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-nav a:hover {
  color: var(--text-inverse);
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-links a {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  background: var(--bg-dark-2);
  border: 1px solid var(--bg-dark-3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: all var(--transition);
  text-decoration: none;
}

.social-links a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.footer-bottom {
  border-top: 1px solid var(--bg-dark-3);
  padding: 1.25rem 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0;
}

/* ===================================================
   CONTACT SECTION
=================================================== */
.contact-section {
  background: var(--bg-secondary);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-control {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--text-primary);
  background: var(--bg-primary);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

/* ===================================================
   RESPONSIVE
=================================================== */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-avatar {
    width: 180px;
    height: 180px;
    margin: 0 auto 2rem;
    order: -1;
  }

  .hero-actions,
  .hero-social {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .resume-layout {
    grid-template-columns: 1fr;
  }

  .resume-sidebar {
    position: static;
    order: -1;
  }

  .blog-layout {
    grid-template-columns: 1fr;
  }

  .blog-sidebar {
    position: static;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-container {
    flex-direction: column;
    gap: 2rem;
  }
}

@media (max-width: 640px) {
  :root {
    --section-padding: 3.5rem 0;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    position: absolute;
    top: 4rem;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    box-shadow: var(--shadow-md);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-link {
    width: 100%;
    padding: 0.75rem 1rem;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  .projects-page-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .blog-card {
    grid-template-columns: 1fr;
  }

  .blog-card-arrow {
    display: none;
  }

  .skills-grid-preview {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }

  .hero-actions {
    flex-direction: column;
  }

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

  .post-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* ===================================================
   UTILITIES
=================================================== */
.text-accent { color: var(--accent); }
.text-muted  { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

/* Scroll reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
