/*
Theme Name: The Dev Lab Portfolio
Theme URI: https://thedevlabde.vercel.app
Author: The Dev Lab
Author URI: https://thedevlabde.vercel.app
Description: WordPress conversion of the The Dev Lab portfolio.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: thedevlab
Tags: portfolio, one-page, blog, custom-background
*/

/* =========================
   The Dev Lab – Multipage Hybrid
   Vanilla CSS, no inline styles
   ========================= */

/* Tokens */
:root {
  --bg: #0c0f17;
  --card: #131824;
  --card2: #1c2333;
  --text: #ffffff;
  --text-secondary: #94a3b8;
  --muted: #94a3b8;
  --line: rgba(255, 255, 255, .08);
  --border: rgba(255, 255, 255, .08);

  --primary: #3b82f6;
  --accent: #3b82f6;
  --primary-glow: rgba(59, 130, 246, .45);

  --glass: rgba(255, 255, 255, .03);

  --shadow: 0 20px 40px rgba(0, 0, 0, .45);

  --radius-md: 16px;
  --radius-lg: 24px;

  --font-head: 'Bricolage Grotesque', sans-serif;
  --font-body: 'Inter', sans-serif;

  --container: 1200px;

  --focus: 0 0 0 3px rgba(59, 130, 246, .35);
  --t: all .28s cubic-bezier(.25, .8, .25, 1);
}

:root[data-theme="light"] {
  --bg: #f5f7fb;
  --card: #ffffff;
  --card2: #f0f3fb;
  --text: #0b1220;
  --text-secondary: #475569;
  --muted: #475569;
  --line: rgba(2, 6, 23, .10);
  --border: rgba(2, 6, 23, .10);
  --glass: rgba(2, 6, 23, .04);
  --shadow: 0 18px 40px rgba(2, 6, 23, .10);
  --primary-glow: rgba(59, 130, 246, .25);
}

/* Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

h1,
h2,
h3 {
  font-family: var(--font-head);
  line-height: 1.1;
  letter-spacing: -.02em;
}

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

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

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 12px;
}

.layout-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 10;
}

.text-muted {
  color: var(--muted);
}

.muted-inline {
  color: var(--muted);
  font-weight: 700;
}

.text-gradient {
  background: linear-gradient(135deg, var(--text) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.spacer-12 {
  height: 12px;
}

.spacer-18 {
  height: 18px;
}

.tiny {
  font-size: .85rem;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* Glow */
.glow-bg {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.glow-top-left {
  top: -200px;
  left: -200px;
  background: radial-gradient(circle, rgba(59, 130, 246, .22) 0%, rgba(0, 0, 0, 0) 70%);
}

.glow-bottom-right {
  bottom: -200px;
  right: -200px;
  background: radial-gradient(circle, rgba(139, 92, 246, .18) 0%, rgba(0, 0, 0, 0) 70%);
}

/* Navbar */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0;
  margin-bottom: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.15rem;
}

.logo-img {
  height: 240px;
  width: auto;
  object-fit: contain;
}

.logo-icon {
  font-size: 1.35rem;
}

.nav-links {
  display: flex;
  gap: 18px;
  padding: 12px 18px;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(10px);
}

.nav-links a {
  font-size: .95rem;
  font-weight: 700;
  color: var(--muted);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Active nav link */
.nav-links .nav-link.is-current {
  color: var(--text);
  position: relative;
}

.nav-links .nav-link.is-current::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  border-radius: 2px;
  background: rgba(59, 130, 246, .65);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 100px;
  font-weight: 800;
  font-size: .95rem;
  border: none;
  cursor: pointer;
  user-select: none;
  transition: var(--t);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(59, 130, 246, .35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 36px rgba(59, 130, 246, .45);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
}

.btn-outline:hover {
  background: var(--card2);
  border-color: color-mix(in srgb, var(--line) 20%, var(--muted));
}

.btn.full {
  width: 100%;
}

.btn.icon-only {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 14px;
}

.btn-white {
  background: #fff;
  color: var(--primary);
  padding: 14px 30px;
  border-radius: 100px;
  font-weight: 900;
}

.btn-outline-white {
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
  padding: 14px 30px;
  border-radius: 100px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, .12);
}

.sm-hidden {
  display: inline-flex;
}

/* Cards & Sections */
.section {
  padding: 70px 0;
}

.section-compact {
  padding: 40px 0;
}

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

.section-header h2 {
  font-size: 2.2rem;
  margin-bottom: 6px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .12);
}

/* Page hero */
.page-hero {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  padding: 22px 0 18px;
  margin-bottom: 10px;
}

.page-hero h1 {
  font-size: 2.6rem;
}

.page-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 24px 0 50px;
}

.hero h1 {
  font-size: 3.6rem;
  margin-bottom: 22px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 100px;
  font-size: .85rem;
  font-weight: 900;
  margin-bottom: 22px;
  color: #4ade80;
  background: rgba(34, 197, 94, .10);
  border: 1px solid rgba(34, 197, 94, .20);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(74, 222, 128, .4);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(74, 222, 128, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0);
  }
}

.hero-bio {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 34px;
  max-width: 560px;
}

.hero-bio strong {
  color: var(--text);
}

.action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}

.social-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.social-item {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--muted);
  box-shadow: 0 10px 22px rgba(0, 0, 0, .12);
  font-size: 1.25rem;
}

.social-item:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-3px);
}

/* Hero visual */
.hero-visual {
  display: flex;
  justify-content: center;
  position: relative;
}

.image-card {
  position: relative;
  width: 100%;
  max-width: 450px;
  border-radius: var(--radius-lg);
  overflow: visible;
}

.profile-img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--card);
  min-height: 360px;
}

.image-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.fallback-badge {
  width: 96px;
  height: 96px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--card) 65%, transparent);
  border: 1px solid var(--line);
  font-family: var(--font-head);
  font-weight: 900;
  letter-spacing: .6px;
}

.floating-badge {
  position: absolute;
  padding: 12px 18px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  font-size: .9rem;
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
  animation: float 6s ease-in-out infinite;
  background: rgba(20, 20, 30, .82);
}

:root[data-theme="light"] .floating-badge {
  background: rgba(255, 255, 255, .72);
  color: var(--text);
}

.badge-1 {
  top: 40px;
  left: -30px;
}

.badge-2 {
  bottom: 60px;
  right: -20px;
  animation-delay: 1.5s;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* Recruiter quick card */
.hero-quick {
  margin: 0 0 6px;
}

.quick-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .12);
}

.quick-title {
  font-family: var(--font-head);
  font-weight: 900;
  margin-bottom: 10px;
}

.quick-list {
  list-style: none;
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-weight: 750;
  margin-bottom: 14px;
}

.quick-actions {
  display: grid;
  gap: 10px;
}

/* Grids */
.recruiter-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

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

.resume-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 18px;
}

/* Lists & pills */
.bullet-list {
  margin-top: 14px;
  padding-left: 18px;
  color: var(--muted);
  font-weight: 650;
}

.bullet-list li {
  margin: 8px 0;
}

.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.pill {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--glass);
  color: var(--muted);
  font-weight: 900;
  font-size: .9rem;
}

/* Highlights */
.highlight-list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.highlight {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--glass);
  border: 1px solid var(--line);
}

.highlight-k {
  font-weight: 900;
}

.highlight-v {
  color: var(--muted);
  font-weight: 800;
}

/* Projects */
.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.filter-pill {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--glass);
  color: var(--muted);
  font-weight: 900;
  cursor: pointer;
  transition: var(--t);
}

.filter-pill:hover {
  transform: translateY(-2px);
}

.filter-pill.active {
  color: var(--text);
  border-color: rgba(59, 130, 246, .55);
  background: rgba(59, 130, 246, .12);
}

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

.project-image {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  margin-bottom: 18px;
  background: var(--card);
  border: 1px solid var(--line);
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .42);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .3s;
}

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

.btn-icon {
  width: 60px;
  height: 60px;
  background: #fff;
  color: #000;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transform: translateY(20px);
  transition: transform .3s cubic-bezier(.175, .885, .32, 1.275);
  cursor: pointer;
}

.project-card:hover .btn-icon {
  transform: translateY(0);
}

.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.tag {
  font-size: .8rem;
  color: var(--primary);
  background: rgba(59, 130, 246, .1);
  padding: 4px 10px;
  border-radius: 100px;
  font-weight: 900;
}

/* Services track */
.services-track {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.service-pill {
  padding: 14px 22px;
  border-radius: 100px;
  background: var(--card);
  border: 1px solid var(--line);
  font-size: 1.05rem;
  font-family: var(--font-head);
  font-weight: 900;
  cursor: default;
  transition: var(--t);
}

.service-pill:hover,
.service-pill.active {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

/* CTA */
.cta-section {
  padding: 70px 0;
  text-align: center;
}

.cta-section--compact {
  padding: 40px 0 60px;
}

.cta-card {
  background: linear-gradient(135deg, var(--primary) 0%, #2563eb 100%);
  padding: 70px 36px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(59, 130, 246, .25);
}

.cta-card h2 {
  font-size: 2.6rem;
  margin-bottom: 14px;
  color: #fff;
}

.cta-card p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, .92);
  margin-bottom: 34px;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.contact-kv {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.kv-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px;
  padding: 12px 14px;
  background: var(--glass);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-weight: 800;
}

.kv-row:last-child {
  border-bottom: none;
}

.kv-k {
  color: var(--text);
  font-weight: 900;
}

a.link {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-form {
  display: grid;
  gap: 12px;
}

.field {
  display: grid;
  gap: 6px;
}

.field span {
  font-weight: 900;
}

.input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
}

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

.error {
  color: #ffb4b4;
  font-size: .85rem;
  min-height: 16px;
}

.check {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--muted);
  font-weight: 800;
}

.form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}

/* Footer */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  margin-top: 30px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

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

/* Scroll top */
.scroll-top {
  position: fixed;
  right: 30px;
  bottom: 30px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--text);
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transition: var(--t);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 100;
}

.modal.open {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .62);
}

.modal-dialog {
  position: relative;
  width: min(760px, calc(100% - 24px));
  margin: 6vh auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 18px;
}

.modal-close {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--glass);
  color: var(--text);
  cursor: pointer;
}

.modal-close:hover {
  background: var(--card2);
}

.modal-body h3 {
  font-size: 1.6rem;
  margin: 6px 0 10px;
}

.modal-body p {
  color: var(--muted);
  font-weight: 650;
}

.modal-body ul {
  margin-top: 12px;
  padding-left: 18px;
  color: var(--muted);
  font-weight: 650;
}

.modal-body li {
  margin: 8px 0;
}

/* ===== Project Templates Styles ===== */

/* Archive Page */
.archive-header {
  padding: 4rem 0 2rem;
}

.page-title {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.projects-grid-section {
  padding: 2rem 0 6rem;
}

.grid-projects {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
  margin-bottom: 2rem;
}

/* Single Project Header */
.project-header {
  background: var(--card);
  padding: 4rem 0;
  border-bottom: 1px solid var(--border);
}

.project-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  margin-bottom: 2rem;
  font-size: 0.875rem;
}

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

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

/* Tags */
.tag {
  font-size: 0.875rem;
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent);
  padding: 4px 12px;
  border-radius: 99px;
  display: inline-block;
}

.tags {
  display: flex;
  gap: 8px;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

/* Project Title */
.project-title {
  font-size: 3rem;
  margin: 0;
  line-height: 1.1;
}

/* Project Actions */
.project-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

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

/* Project Meta */
.project-meta {
  color: var(--text-secondary);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Project Media */
.project-media {
  margin-top: -3rem;
  margin-bottom: 4rem;
}

.project-image-wrapper {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.project-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

/* Project Cards (Archive Grid) */
.project-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-4px);
}

.project-image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.project-image a {
  display: block;
  width: 100%;
  height: 100%;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.image-placeholder {
  width: 100%;
  height: 100%;
  background: #262626;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
}

.project-info {
  padding: 1.5rem;
}

.project-info h3 {
  font-size: 1.25rem;
  margin: 0;
}

.project-info a {
  text-decoration: none;
  color: var(--text);
}

.project-info a:hover {
  color: var(--primary);
}

.project-info p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Entry Content */
.entry-content {
  color: #cbd5e1;
  font-size: 1.125rem;
  line-height: 1.8;
}

/* Blog Page */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
  margin-bottom: 2rem;
}

.blog-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.blog-thumbnail {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.blog-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-thumbnail img {
  transform: scale(1.05);
}

.blog-content {
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-content h3 {
  font-size: 1.3rem;
  margin: 0 0 12px 0;
}

.blog-content h3 a {
  color: var(--text);
  text-decoration: none;
}

.blog-content h3 a:hover {
  color: var(--primary);
}

.blog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

.blog-date {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
}

.blog-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
}

.blog-link:hover {
  gap: 10px;
}

/* Reveal animation */
.fade-start {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease-out, transform .6s ease-out;
}

.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

/* Responsive */
@media (max-width: 1020px) {
  .stack-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 900px) {

  .nav-links,
  .sm-hidden {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 34px;
    padding-top: 10px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-bio {
    margin: 0 auto 22px;
  }

  .action-buttons {
    justify-content: center;
  }

  .social-links {
    justify-content: center;
  }

  .section-header {
    flex-direction: column;
    align-items: start;
    gap: 10px;
  }

  .project-filters {
    justify-content: flex-start;
  }

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

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

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

  .page-hero {
    flex-direction: column;
    align-items: start;
  }
}