/* Modern multi-page portfolio styles */

/* 1. Root variables & theming */

:root {
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;

  --color-bg: #0f172a;
  --color-bg-soft: #020617;
  --color-surface: #020617;
  --color-surface-alt: #020617;
  --color-text: #e5e7eb;
  --color-muted: #9ca3af;
  --color-primary: #38bdf8;
  --color-primary-soft: rgba(56, 189, 248, 0.15);
  --color-accent: #22c55e;
  --color-border: rgba(148, 163, 184, 0.4);

  --radius-full: 999px;
  --radius-lg: 16px;
  --radius-md: 10px;
  --shadow-soft: 0 24px 60px rgba(15, 23, 42, 0.7);
  --transition-fast: 180ms ease-out;
  --transition-med: 230ms ease-out;

  --layout-max-width: 1120px;
}

/* Light mode override if user switches */

/* Light mode override if user switches */
html[data-theme="light"] {
  --color-bg: #e2e8f0;          /* soft slate */
  --color-bg-soft: #cbd5e1;     /* slightly darker */
  --color-surface: #f1f5f9;     /* card / panel */
  --color-surface-alt: #e5edf7; /* alt sections */
  --color-text: #0f172a;        /* slate-900 */
  --color-muted: #64748b;       /* slate-500 */
  --color-primary: #0284c7;     /* cyan-600 */
  --color-primary-soft: rgba(2, 132, 199, 0.12);
  --color-accent: #0d9488;
  --color-border: rgba(148, 163, 184, 0.6);
}


/* Dim, elegant light-mode background */
html[data-theme="light"] body {
  background:
    radial-gradient(circle at top left, rgba(148, 163, 184, 0.35), transparent 55%),
    radial-gradient(circle at bottom right, rgba(148, 163, 184, 0.25), transparent 60%),
    linear-gradient(to bottom, #e2e8f0, #cbd5e1 55%, #e2e8f0 100%);
}

/* Light-mode section backgrounds */
html[data-theme="light"] .section {
  background: linear-gradient(to bottom, #e2e8f0, #e5edf7);
}
html[data-theme="light"] .section-alt {
  background: linear-gradient(to bottom, #d9e2f2, #e2e8f0);
}

/* Light-mode timeline adjustments */
html[data-theme="light"] .timeline {
  border-left-color: rgba(148, 163, 184, 0.7);
}

html[data-theme="light"] .timeline::before {
  background: var(--color-primary);
}

html[data-theme="light"] .timeline-item::before {
  background: #ffffff;
  border-color: var(--color-primary);
}

html[data-theme="light"] .timeline-meta h3 {
  color: var(--color-text);
}

html[data-theme="light"] .timeline-meta p,
html[data-theme="light"] .timeline ul li {
  color: var(--color-muted);
}

/* Light-mode cards on non-hero sections */
html[data-theme="light"] .card {
  background: #ffffff;
  border-color: rgba(209, 213, 219, 0.9);
  color: var(--color-text);
}

html[data-theme="light"] .meta {
  color: var(--color-muted);
}


/* Header in light mode */
html[data-theme="light"] .site-header {
  background: linear-gradient(
    to bottom,
    rgba(226, 232, 240, 0.95),
    rgba(203, 213, 225, 0.9),
    transparent
  );
  border-bottom: 1px solid rgba(148, 163, 184, 0.7);
}

/* Light-mode Cards + hero panel */
html[data-theme="light"] .card,
html[data-theme="light"] .hero-panel {
  background: var(--color-surface);
  border-color: rgba(148, 163, 184, 0.6);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

/* Light-mode contact form fields */
html[data-theme="light"] input,
html[data-theme="light"] textarea {
  background: #ffffff;
  border-color: rgba(148, 163, 184, 0.7);
  color: var(--color-text);
}

html[data-theme="light"] input::placeholder,
html[data-theme="light"] textarea::placeholder {
  color: rgba(148, 163, 184, 0.9);
}

/* Light-mode social links */
html[data-theme="light"] .social-links a {
  color: var(--color-primary);
}

/* Light-mode mobile icon styling */
html[data-theme="light"] .icon-button.mobile-menu-toggle {
  background: rgba(243, 244, 246, 0.9);
  border-color: rgba(209, 213, 219, 0.9);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] .icon-button.mobile-menu-toggle .icon-bar {
  background: #020617;
}


/* 2. Global reset & base */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: var(--font-sans);
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.25), transparent 55%),
    radial-gradient(circle at top right, rgba(34, 197, 94, 0.18), transparent 55%),
    linear-gradient(to bottom, var(--color-bg-soft), #020617 60%);
  color: var(--color-text);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* 3. Layout helpers */

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: var(--layout-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

main {
  flex: 1;
}

.section {
  padding: 4.5rem 0;
}

.section-alt {
  padding: 4.5rem 0;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.95), #020617);
}

.section-header {
  max-width: 640px;
  margin: 0 auto 2.75rem auto;
  text-align: left;
}

.section-header h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.9rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
}

.section-header p {
  margin: 0;
  color: var(--color-muted);
}

/* 4. Header & navigation */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.9),
    rgba(15, 23, 42, 0.7),
    transparent
  );
  border-bottom: 1px solid rgba(15, 23, 42, 0.7);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 1rem;
}

.logo {
  font-weight: 700;
  letter-spacing: -0.04em;
  font-size: 1.5rem;
}

.logo::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 0.45rem;
  border-radius: 999px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  font-size: 1.05rem;
}

.logo-mark {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
}

/* Default: dark theme */
.logo-dark {
  display: block;
}
.logo-light {
  display: none;
}

/* Light mode: swap which logo is visible */
html[data-theme="light"] .logo-dark {
  display: none;
}
html[data-theme="light"] .logo-light {
  display: block;
}

.logo-text {
  white-space: nowrap;
}


.nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.nav a {
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  color: var(--color-muted);
  border: 1px solid transparent;
  transition: background var(--transition-fast), color var(--transition-fast),
    border-color var(--transition-fast), transform var(--transition-fast);
}

.nav a:hover {
  background: rgba(15, 23, 42, 0.7);
  color: var(--color-text);
  border-color: rgba(148, 163, 184, 0.7);
  transform: translateY(-1px);
}

.nav a.active {
  background: var(--color-primary-soft);
  color: var(--color-primary);
  border-color: rgba(56, 189, 248, 0.5);
}

@media (max-width: 768px) {
  .nav {
    display: none; /* keep it simple; later you can add a hamburger menu */
  }
}

/* 5. Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  padding: 0.6rem 1.4rem;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--transition-med),
    box-shadow var(--transition-med),
    background var(--transition-med),
    color var(--transition-med),
    border-color var(--transition-med);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #0ea5e9, #22c55e);
  color: #0b1120;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.45);
}

.btn-primary:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.55);
}

.btn-secondary {
  background: rgba(15, 23, 42, 0.85);
  color: var(--color-text);
  border-color: rgba(148, 163, 184, 0.6);
}

.btn-secondary:hover {
  background: rgba(15, 23, 42, 0.75);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.4);
  color: var(--color-muted);
  padding-inline: 0.7rem;
}

.btn-ghost:hover {
  background: rgba(15, 23, 42, 0.85);
  color: var(--color-primary);
}
/* Light-mode secondary buttons (e.g., Download resume) */
html[data-theme="light"] .btn-secondary {
  background: #e5e7eb;
  color: #111827;
  border-color: rgba(148, 163, 184, 0.8);
}

html[data-theme="light"] .btn-secondary:hover {
  background: #d1d5db;
}

/* Project action buttons */
.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.9rem;
}

.btn-pill {
  font-size: 0.85rem;
  padding-inline: 1.1rem;
}

/* Slightly different look for secondary action */
.project-actions .btn-secondary {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.7);
  color: var(--color-text);
}

.project-actions .btn-secondary:hover {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(148, 163, 184, 0.9);
}

/* 6. Hero (home) */

.hero {
  display: flex;
  align-items: center;
  min-height: calc(100vh - 72px);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.2fr);
  gap: 2rem;
  align-items: center;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

.hero-left {
  max-width: 34rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  letter-spacing: -0.05em;
  margin: 0 0 0.8rem;
}

.hero h1 span.accent {
  background: linear-gradient(135deg, #38bdf8, #22c55e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-muted);
  margin-bottom: 0.8rem;
}

.hero .lead {
  margin-top: 0.4rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.8rem;
}

.hero-right {
  justify-self: stretch;
}

.hero-panel {
  padding: 1.4rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), transparent 55%),
    radial-gradient(circle at bottom right, rgba(34, 197, 94, 0.1), transparent 55%),
    rgba(15, 23, 42, 0.96);
  box-shadow: var(--shadow-soft);
  font-size: 0.9rem;
  color: var(--color-muted);
}

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

/* 7. Cards, grids, and layout */

.card {
  background: rgba(15, 23, 42, 0.96);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 1.5rem 1.6rem;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition-med), box-shadow var(--transition-med),
    border-color var(--transition-med), background var(--transition-med);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.96);
  border-color: rgba(56, 189, 248, 0.7);
}

/* Project card header with actions on the right */
.project-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.project-card-heading h3 {
  margin: 0 0 0.2rem;
}

.project-card-heading .meta {
  margin: 0;
}

/* Reuse existing project-actions styles but align right */
.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.btn-pill {
  font-size: 0.85rem;
  padding-inline: 1.1rem;
}

@media (max-width: 700px) {
  .project-card-header {
    flex-direction: column;
    align-items: flex-start;
  }

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

/* Split project card: text + media */

.project-card-split {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.2fr);
  gap: 1.4rem;
  align-items: stretch;
}

.project-card-main {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.project-card-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.9), #020617);
}

.project-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Mobile: stack text above images */
@media (max-width: 800px) {
  .project-card-split {
    grid-template-columns: minmax(0, 1fr);
  }

  .project-card-media {
    max-height: 220px;
  }
}

.meta {
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-bottom: 0.75rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  padding: 0;
  margin: 0.9rem 0 0.5rem;
}

.tags li {
  padding: 0.18rem 0.7rem;
  border-radius: 999px;
  background: var(--color-primary-soft);
  font-size: 0.7rem;
  color: var(--color-primary);
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.text-link {
  font-size: 0.85rem;
  color: var(--color-primary);
  position: relative;
}

.text-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.1rem;
  width: 0;
  height: 1px;
  background: var(--color-primary);
  transition: width var(--transition-fast);
}

.text-link:hover::after {
  width: 100%;
}

.grid {
  display: grid;
  gap: 1.6rem;
}

/* Stack projects vertically */
.grid-2,
.grid-3 {
  grid-template-columns: minmax(0, 1fr);
}


.layout-2col {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .layout-2col {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  }
}

/* 8. Lists, bullets */

.bullets {
  padding-left: 1.2rem;
}

/* 9. Timeline (experience) */

.timeline {
  display: grid;
  gap: 1.6rem;
  border-left: 1px solid rgba(148, 163, 184, 0.4);
  padding-left: 1.4rem;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 0.5rem;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--color-primary);
}

.timeline-item {
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.35rem;
  top: 0.3rem;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 1);
  border: 2px solid var(--color-primary);
}

.timeline-meta h3 {
  margin: 0 0 0.2rem;
  font-size: 1rem;
}

.timeline-meta p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--color-muted);
}

/* 10. Contact form */

.contact-form {
  display: grid;
  gap: 0.85rem;
}

.contact-form label {
  font-size: 0.85rem;
  display: grid;
  gap: 0.35rem;
}

input,
textarea {
  padding: 0.55rem 0.75rem;
  border-radius: 9px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  font: inherit;
  background: rgba(15, 23, 42, 0.96);
  color: var(--color-text);
}

input:focus,
textarea:focus {
  outline: 2px solid var(--color-primary-soft);
  outline-offset: 2px;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 0.75rem;
}

.social-links a {
  font-size: 0.9rem;
  color: var(--color-primary);
}

.hero-contact {
  margin-top: 1.5rem;
  font-size: 0.95rem;
}

.hero-contact p {
  margin: 0 0 0.25rem;
}

.hero-contact a {
  color: var(--color-primary);
}

.social-icons {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.6rem;
}

.social-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  background: rgba(15, 23, 42, 0.95);
  color: var(--color-primary);
  transition: transform 160ms ease-out, box-shadow 160ms ease-out,
              border-color 160ms ease-out, background 160ms ease-out;
}

.social-icons a:hover .social-icon {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.7);
  border-color: rgba(56, 189, 248, 0.9);
  background: rgba(15, 23, 42, 1);
}

/* Light mode tweak */
html[data-theme="light"] .social-icon {
  background: #e5edf7;
  border-color: rgba(148, 163, 184, 0.7);
}

/* 11. Footer */

.site-footer {
  padding: 2rem 0 2.4rem;
  font-size: 0.8rem;
  color: var(--color-muted);
  text-align: center;
}

/* 12. Scroll animations */

.animate-fade-up {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 260ms ease-out, transform 260ms ease-out;
}

.animate-fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 13. Small screen tweaks */

@media (max-width: 600px) {
  .section {
    padding: 3.4rem 0;
  }

  .header-inner {
    padding-inline: 0.25rem;
  }
}

/* Header actions wrapper */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Icon button for mobile menu */
/* Modern pill-shaped mobile menu button */
.icon-button.mobile-menu-toggle {
  display: none; /* shown only on small screens */
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  background: radial-gradient(circle at 30% 0%, rgba(56, 189, 248, 0.2), transparent 60%),
    rgba(15, 23, 42, 0.96);
  cursor: pointer;
  padding: 0;
  box-sizing: border-box;
  transition: background 160ms ease-out, border-color 160ms ease-out,
    transform 160ms ease-out, box-shadow 160ms ease-out;
}

.icon-button.mobile-menu-toggle:hover {
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.8);
  transform: translateY(-1px);
  border-color: rgba(56, 189, 248, 0.9);
}

/* Icon bars: modern equal sign that morphs into an X */
.icon-button.mobile-menu-toggle .icon-bar {
  position: absolute;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: #e5e7eb;
  transition: transform 180ms ease-out, opacity 160ms ease-out,
    background 160ms ease-out;
}

/* Top and bottom lines; middle line is used for animation only */
.icon-button.mobile-menu-toggle .icon-bar:nth-child(1) {
  transform: translateY(-4px);
}
.icon-button.mobile-menu-toggle .icon-bar:nth-child(2) {
  transform: translateY(0);
  opacity: 0; /* hidden by default for a two-line look */
}
.icon-button.mobile-menu-toggle .icon-bar:nth-child(3) {
  transform: translateY(4px);
}

/* OPEN STATE – turn into an X */
.icon-button.mobile-menu-toggle.is-open .icon-bar:nth-child(1) {
  transform: rotate(45deg);
}
.icon-button.mobile-menu-toggle.is-open .icon-bar:nth-child(2) {
  opacity: 0;
}
.icon-button.mobile-menu-toggle.is-open .icon-bar:nth-child(3) {
  transform: rotate(-45deg);
}

/* Light mode variant */
html[data-theme="light"] .icon-button.mobile-menu-toggle {
  background: radial-gradient(circle at 30% 0%, rgba(148, 163, 184, 0.25), transparent 60%),
    rgba(226, 232, 240, 0.98);
  border-color: rgba(148, 163, 184, 0.8);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}
html[data-theme="light"] .icon-button.mobile-menu-toggle .icon-bar {
  background: #0f172a;
}


/* Mobile nav container */
.nav-mobile {
  position: fixed;
  inset: 56px 0 auto 0; /* just below header */
  max-height: 0;
  overflow: hidden;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.98), #020617);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.9);
  z-index: 35;
  transition: max-height 220ms ease-out, opacity 160ms ease-out;
  opacity: 0;
}

.nav-mobile.open {
  max-height: 420px; /* large enough for all links */
  opacity: 1;
}

/* Light-mode mobile nav background */
html[data-theme="light"] .nav-mobile {
  background: linear-gradient(to bottom, #d9e2f2, #e2e8f0);
  border-bottom: 1px solid rgba(148, 163, 184, 0.7);
}
html[data-theme="light"] .nav-mobile a {
  background: rgba(241, 245, 249, 0.96);
  color: var(--color-text);
  border-color: rgba(148, 163, 184, 0.6);
}
html[data-theme="light"] .nav-mobile a:hover {
  background: #e0e7ff;
  border-color: rgba(2, 132, 199, 0.7);
}




.nav-mobile-inner {
  max-width: var(--layout-max-width);
  margin: 0 auto;
  padding: 0.8rem 1.5rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.nav-mobile a {
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  color: var(--color-text);
  font-size: 0.95rem;
  border: 1px solid transparent;
  background: rgba(15, 23, 42, 0.7);
  transition: background 150ms ease-out, border-color 150ms ease-out,
    transform 150ms ease-out;
}

/* Light-mode mobile nav links */
html[data-theme="light"] .nav-mobile a {
  background: rgba(255, 255, 255, 0.9);
  color: #020617;
  border-color: rgba(209, 213, 219, 0.6);
}

html[data-theme="light"] .nav-mobile a:hover {
  background: #e5f2ff;
  border-color: rgba(2, 132, 199, 0.7);
}


.nav-mobile a:hover {
  background: rgba(15, 23, 42, 0.95);
  border-color: rgba(56, 189, 248, 0.8);
  transform: translateY(-1px);
}


/* Mobile/desktop visibility rules */

@media (max-width: 768px) {
  .nav-desktop {
    display: none;
  }

  .icon-button.mobile-menu-toggle {
    display: inline-flex;
  }
}

@media (min-width: 769px) {
  .nav-mobile {
    display: none;
  }
}


/* Experience cards inside the timeline */
.experience-card {
  background: rgba(15, 23, 42, 0.96);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.5);
  padding: 1.3rem 1.4rem;
  box-shadow: var(--shadow-soft);
}

html[data-theme="light"] .experience-card {
  background: var(--color-surface);
  border-color: rgba(148, 163, 184, 0.5);
}

.experience-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.7rem;
}

.experience-card-header h3 {
  margin: 0;
  font-size: 1rem;
}

.experience-subtitle {
  margin: 0.1rem 0 0;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.experience-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
  font-size: 0.8rem;
}

.experience-dates {
  padding: 0.12rem 0.6rem;
  border-radius: 999px;
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

.experience-location {
  color: var(--color-muted);
}

/* Body lists stay compact */
.experience-body ul {
  margin: 0.4rem 0 0;
  padding-left: 1.1rem;
}
.experience-body li + li {
  margin-top: 0.2rem;
}

@media (max-width: 600px) {
  .experience-card-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .experience-meta {
    align-items: flex-start;
  }
}
/* Split project card: text + media */
.project-card-split {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.2fr);
  gap: 1.4rem;
  align-items: stretch;
}

.project-card-main {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.project-card-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.9), #020617);
}

.project-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Header with buttons on the right */
.project-card-header {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.project-card-heading h3 {
  margin: 0 0 0.2rem;
}

.project-card-heading .meta {
  margin: 0;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.btn-pill {
  font-size: 0.85rem;
  padding-inline: 1.1rem;
}

@media (max-width: 800px) {
  .project-card-split {
    grid-template-columns: minmax(0, 1fr);
  }
  .project-card-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .project-actions {
    justify-content: flex-start;
  }
}


.hobby-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.9rem;
}

.hobby-card {
  background: rgba(15, 23, 42, 0.9);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 0.85rem 0.95rem;
  font-size: 0.9rem;
}

html[data-theme="light"] .hobby-card {
  background: var(--color-surface);
}

.hobby-icon {
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
}

.hobby-card h4 {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
}

.hobby-card p {
  margin: 0;
  color: var(--color-muted);
}

.about-intro {
  max-width: 680px;
  margin: 0 auto 2rem auto;
}

.about-intro p {
  margin: 0 0 0.9rem;
}

/* Snapshot card */
.about-snapshot {
  margin: 0 auto 2.2rem auto;
  max-width: 680px;              /* match intro width */
  padding: 1.1rem 1.3rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.96);
  box-shadow: 0 10px 12px rgba(15, 23, 42, 0.2); /* smaller, softer shadow */
}


html[data-theme="light"] .about-snapshot {
  background: var(--color-surface);
}

.about-snapshot-grid {
  display: grid;
  gap: 1.2rem;
}

@media (min-width: 800px) {
  .about-snapshot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.about-snapshot h3 {
  margin: 0 0 0.8rem;
}

.about-snapshot h4 {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
}

.about-snapshot p {
  margin: 0;
  color: var(--color-muted);
}

/* Hobbies (reuse previous hobby styles) */
.about-hobbies h3 {
  margin-bottom: 0.9rem;
}

.hobby-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.9rem;
}

.hobby-card {
  background: rgba(15, 23, 42, 0.9);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 0.85rem 0.95rem;
  font-size: 0.9rem;
}

html[data-theme="light"] .hobby-card {
  background: var(--color-surface);
}

.hobby-icon {
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
}

.hobby-card h4 {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
}

.hobby-card p {
  margin: 0;
  color: var(--color-muted);
}

.hero-tagline {
  max-width: 32rem;
  margin: 0.6rem 0 0;
  color: var(--color-muted);
}

/* Tighter hero layout for business-card feel */
.hero-inner {
  grid-template-columns: minmax(0, 2.4fr) minmax(0, 2fr);
  align-items: start;
}

.hero-panel h3 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
}

/* Contact + icons (reuse from earlier) */
.hero-contact {
  margin-top: 1.6rem;
  font-size: 0.9rem;
}

.hero-contact p {
  margin: 0 0 0.2rem;
}

.hero-contact a {
  color: var(--color-primary);
}

/* Icons already styled; ensure size */
.social-icon i {
  font-size: 0.9rem;
}

/* Ensure hero stacks cleanly on mobile */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.6rem;
  }

  .hero-panel {
    width: 100%;
  }
}

.hero-agent-callout {
  margin-top: 0;
  max-width: 100%;
  padding: 1.2rem 1.4rem;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.7);
}

.hero-agent-text {
  margin: 0 0 0.9rem;
  font-size: 1.4rem;          /* much larger, easy to read */
  line-height: 1.7;
  font-weight: 500;
  font-family: "Caveat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
               sans-serif;
}

/* Put each sentence on its own line */
.hero-agent-text br {
  display: block;
  margin-bottom: 0.25rem;
}




.hero-agent-text span {
  display: inline-block;
  margin-top: 0.2rem;
  font-weight: 500;
}

@media (max-width: 600px) {
  .hero-agent-callout {
    transform: none;
    max-width: 100%;
  }
}
.hero-agent-callout {
  margin-top: 1.6rem;
  max-width: 20rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.96);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.75);
  transform: rotate(-1.5deg);
}

.hero-agent-text {
  margin: 0 0 0.55rem;
  font-size: 0.9rem;
  font-family: var(--font-mono);
  line-height: 1.5;
}

/* Light mode version of the sticky note */
html[data-theme="light"] .hero-agent-callout {
  background: #f9fafb;
  border-color: rgba(148, 163, 184, 0.7);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.16);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 2.4fr) minmax(0, 2fr);
  gap: 2rem;
  align-items: start;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.8rem;
  }

  .hero-panel {
    width: 100%;
  }

  .hero-agent-callout {
    max-width: 100%;
    transform: none;
  }
}


.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 2.4fr) minmax(0, 2fr);
  gap: 2rem;
  align-items: start;
}

.hero-right {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

/* Existing hero-panel + hero-agent-callout styles can stay as-is */

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.8rem;
  }

  .hero-right {
    order: 2;
  }

  .hero-agent-callout {
    max-width: 100%;
    transform: none;
  }
}

.hero-highlight {
  background: linear-gradient(135deg, #38bdf8, #22c55e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 600;
}

.hero-agent-text {
  margin: 0 0 0.55rem;
  font-size: 1rem;
  font-family: "Caveat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
               sans-serif;
  line-height: 1.5;
}

.hero-agent-text span {
  display: inline-block;
  margin-top: 0.2rem;
  font-weight: 600;
}


/* Language Toggle */
.lang-toggle {
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
}

.lang-toggle:hover {
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

/* ===========================================
   /* SKILLS PAGE REFINEMENTS
   =========================================== */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.skill-card {
  background: rgba(15, 23, 42, 0.96);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition-med), box-shadow var(--transition-med),
    border-color var(--transition-med);
}

.skill-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.96);
  border-color: rgba(56, 189, 248, 0.6);
}

html[data-theme="light"] .skill-card {
  background: var(--color-surface);
  border-color: rgba(148, 163, 184, 0.5);
}

html[data-theme="light"] .skill-card:hover {
  border-color: var(--color-primary);
}

.skill-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.skill-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.skill-icon-tech {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(34, 197, 94, 0.2));
  color: #38bdf8;
}

.skill-icon-product {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(236, 72, 153, 0.2));
  color: #a855f7;
}

.skill-icon-consulting {
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.2), rgba(250, 204, 21, 0.2));
  color: #fb923c;
}

.skill-card h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

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

.skill-tag {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  font-size: 0.8rem;
  font-weight: 500;
  transition: transform 150ms ease, background 150ms ease;
}

.skill-tag:hover {
  transform: translateY(-1px);
  background: rgba(56, 189, 248, 0.25);
}

html[data-theme="light"] .skill-tag {
  background: rgba(2, 132, 199, 0.12);
  color: var(--color-primary);
}

/* Tools Section */
.tools-section {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(148, 163, 184, 0.3);
}

.tools-section h3 {
  margin: 0 0 1.5rem;
  font-size: 1.1rem;
  color: var(--color-muted);
  font-weight: 500;
}

.tools-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.tool-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.3);
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
  min-width: 80px;
}

.tool-item:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.5);
  background: rgba(15, 23, 42, 0.8);
}

html[data-theme="light"] .tool-item {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(148, 163, 184, 0.4);
}

html[data-theme="light"] .tool-item:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--color-primary);
}

.tool-item i {
  font-size: 1.6rem;
  color: var(--color-primary);
}

.tool-item span {
  font-size: 0.75rem;
  color: var(--color-muted);
}

@media (max-width: 600px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }
  
  .tools-grid {
    gap: 0.75rem;
  }
  
  .tool-item {
    padding: 0.75rem 1rem;
    min-width: 70px;
  }
}

/* ===========================================
   /* ABOUT PAGE REFINEMENTS
   =========================================== */

/* Snapshot Section V2 */
.about-snapshot-v2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

.snapshot-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.4rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.96);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.4);
  transition: transform var(--transition-med), box-shadow var(--transition-med),
    border-color var(--transition-med);
}

.snapshot-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.5);
  border-color: rgba(56, 189, 248, 0.5);
}

html[data-theme="light"] .snapshot-card {
  background: var(--color-surface);
  border-color: rgba(148, 163, 184, 0.5);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .snapshot-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.12);
}

.snapshot-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(34, 197, 94, 0.2));
  color: #38bdf8;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.snapshot-icon-alt {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(168, 85, 247, 0.2));
  color: #ec4899;
}

.snapshot-content h4 {
  margin: 0 0 0.3rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.snapshot-content p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* Hobbies Section V2 */
.about-hobbies-v2 {
  max-width: 800px;
  margin: 0 auto;
}

.about-hobbies-v2 h3 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  color: var(--color-text);
}

.hobby-grid-v2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (max-width: 640px) {
  .hobby-grid-v2 {
    grid-template-columns: 1fr;
  }
}

.hobby-card-v2 {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.85);
  transition: transform 200ms ease, border-color 200ms ease, 
    background 200ms ease, box-shadow 200ms ease;
}

.hobby-card-v2:hover {
  transform: translateY(-2px) scale(1.01);
  border-color: rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.95);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.5);
}

html[data-theme="light"] .hobby-card-v2 {
  background: var(--color-surface);
  border-color: rgba(148, 163, 184, 0.4);
}

html[data-theme="light"] .hobby-card-v2:hover {
  background: #ffffff;
  border-color: var(--color-primary);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.1);
}

.hobby-icon-v2 {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.hobby-icon-climb {
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.2), rgba(250, 204, 21, 0.2));
  color: #fb923c;
}

.hobby-icon-photo {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(236, 72, 153, 0.2));
  color: #a855f7;
}

.hobby-icon-run {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(56, 189, 248, 0.2));
  color: #22c55e;
}

.hobby-icon-build {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(99, 102, 241, 0.2));
  color: #38bdf8;
}

.hobby-content h4 {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.hobby-content p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.85rem;
  line-height: 1.45;
}

/* ==============================================
   BLOG SPECIFIC STYLES
   ============================================== */

/* Blog Hero Section */
.blog-hero {
  padding: 6rem 0 4rem;
  background: linear-gradient(
    135deg,
    rgba(56, 189, 248, 0.1) 0%,
    rgba(34, 197, 94, 0.05) 50%,
    transparent 100%
  );
}

.blog-hero-content {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.blog-hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  margin: 0 0 1rem;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--color-text), var(--color-muted));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.blog-hero-subtitle {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--color-muted);
  margin: 0;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* Featured Article */
.blog-featured {
  padding: 3rem 0 4rem;
}

.blog-featured-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  padding: 2.5rem;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition-med), box-shadow var(--transition-med),
              border-color var(--transition-med);
  position: relative;
  overflow: hidden;
}

.blog-featured-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
}

.blog-featured-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 32px 80px rgba(15, 23, 42, 0.2);
  border-color: rgba(56, 189, 248, 0.6);
}

.featured-content h2 {
  font-size: 1.8rem;
  line-height: 1.3;
  margin: 1rem 0;
  letter-spacing: -0.02em;
}

.featured-content h2 a {
  color: var(--color-text);
  transition: color var(--transition-fast);
}

.featured-content h2 a:hover {
  color: var(--color-primary);
}

.featured-excerpt {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-muted);
  margin: 1.5rem 0;
}

.featured-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  gap: 1rem;
}

@media (max-width: 600px) {
  .featured-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

.author-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.author-info .author {
  font-weight: 600;
  color: var(--color-text);
}

.featured-link {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  position: relative;
  transition: color var(--transition-fast);
}

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

/* Articles Grid */
.blog-articles {
  padding: 0 0 4rem;
}

.articles-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 800px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.article-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  padding: 1.8rem;
  transition: all var(--transition-med);
  position: relative;
  overflow: hidden;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
  border-color: rgba(56, 189, 248, 0.5);
}

.article-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  opacity: 0;
  transition: opacity var(--transition-fast);
}

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

.article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.article-card h3 {
  font-size: 1.25rem;
  line-height: 1.4;
  margin: 0 0 1rem;
  letter-spacing: -0.01em;
}

.article-card h3 a {
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.article-card h3 a:hover {
  color: var(--color-primary);
}

.article-excerpt {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-muted);
  margin: 0 0 1.5rem;
}

.article-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.article-date {
  color: var(--color-muted);
}

.article-link {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition-fast);
}

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

/* Category Tags */
.category-tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid;
}

.category-tag.ai-automation {
  background: rgba(56, 189, 248, 0.1);
  color: var(--color-primary);
  border-color: rgba(56, 189, 248, 0.3);
}

.category-tag.consulting {
  background: rgba(34, 197, 94, 0.1);
  color: var(--color-accent);
  border-color: rgba(34, 197, 94, 0.3);
}

.category-tag.career {
  background: rgba(168, 85, 247, 0.1);
  color: #a855f7;
  border-color: rgba(168, 85, 247, 0.3);
}

.category-tag.tech-projects {
  background: rgba(251, 146, 60, 0.1);
  color: #fb923c;
  border-color: rgba(251, 146, 60, 0.3);
}

/* Reading Time */
.reading-time {
  font-size: 0.75rem;
  color: var(--color-muted);
  font-weight: 500;
}

/* Blog Article Page Styles */
.blog-article {
  max-width: 720px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.blog-nav {
  margin-bottom: 3rem;
}

.blog-nav a {
  color: var(--color-primary);
  text-decoration: none;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color var(--transition-fast);
}

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

.blog-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
}

.blog-header h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.2;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
  color: var(--color-text);
}

.blog-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.blog-content {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--color-text);
}

.blog-content h2 {
  font-size: 1.5rem;
  margin: 3rem 0 1.5rem;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}

.blog-content h3 {
  font-size: 1.3rem;
  margin: 2.5rem 0 1rem;
  color: var(--color-text);
}

.blog-content p {
  margin-bottom: 1.5rem;
}

.blog-content strong {
  color: var(--color-text);
  font-weight: 600;
}

.blog-content em {
  font-style: italic;
  color: var(--color-primary);
}

.blog-content ul,
.blog-content ol {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
}

.blog-content li {
  margin-bottom: 0.5rem;
}

.blog-content blockquote {
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  border-left: 4px solid var(--color-primary);
  background: var(--color-primary-soft);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--color-text);
}

.blog-content code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
}

.blog-content pre {
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  overflow-x: auto;
  margin: 2rem 0;
  font-size: 0.9rem;
}

.blog-content pre code {
  background: none;
  padding: 0;
  color: var(--color-text);
}

/* Share Buttons */
.blog-share {
  display: flex;
  gap: 1rem;
  margin: 3rem 0;
  padding: 2rem 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.share-button {
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.share-button:hover {
  background: var(--color-primary-soft);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* Related Articles */
.related-articles {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 2px solid var(--color-border);
}

.related-articles h3 {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: var(--color-text);
}

.related-grid {
  display: grid;
  gap: 1.5rem;
}

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

.related-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: all var(--transition-fast);
}

.related-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.related-card h4 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

.related-card h4 a {
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.related-card h4 a:hover {
  color: var(--color-primary);
}

.related-card p {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin: 0;
  line-height: 1.5;
}

/* Reading Progress Bar */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: transparent;
  z-index: 100;
}

.reading-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  width: 0%;
  transition: width 0.1s ease-out;
}

/* Light theme adjustments for blog */
html[data-theme="light"] .blog-hero {
  background: linear-gradient(
    135deg,
    rgba(2, 132, 199, 0.08) 0%,
    rgba(13, 148, 136, 0.06) 50%,
    transparent 100%
  );
}

html[data-theme="light"] .blog-featured-card,
html[data-theme="light"] .article-card,
html[data-theme="light"] .related-card {
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .blog-featured-card:hover,
html[data-theme="light"] .article-card:hover {
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .blog-featured-card {
    padding: 1.8rem;
  }
  
  .article-card {
    padding: 1.5rem;
  }
  
  .blog-share {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .article-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* ================================================
   SCROLL REVEAL ANIMATIONS & DYNAMIC EFFECTS
   ================================================ */

/* Scroll reveal setup */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Staggered animations for grids */
.scroll-reveal.delay-1 { transition-delay: 0.1s; }
.scroll-reveal.delay-2 { transition-delay: 0.2s; }
.scroll-reveal.delay-3 { transition-delay: 0.3s; }
.scroll-reveal.delay-4 { transition-delay: 0.4s; }
.scroll-reveal.delay-5 { transition-delay: 0.5s; }
.scroll-reveal.delay-6 { transition-delay: 0.6s; }

/* Hero entrance animation */
@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-left {
  animation: heroFadeIn 0.8s ease-out;
}

.hero-right {
  animation: heroFadeIn 0.8s ease-out 0.2s both;
}

/* Page fade-in animation */
@keyframes pageEnter {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

body {
  animation: pageEnter 0.5s ease-out;
}

/* Enhanced hover effects for cards */
.card,
.skill-card,
.experience-card,
.article-card,
.hobby-card-v2,
.snapshot-card {
  transition: transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              border-color 0.2s ease;
}

.card:hover,
.skill-card:hover,
.experience-card:hover,
.article-card:hover {
  transform: translateY(-6px) scale(1.02);
}

/* Gradient animations */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-highlight,
.accent {
  background: linear-gradient(-45deg, #38bdf8, #22c55e, #0ea5e9, #06d6a0);
  background-size: 400% 400%;
  animation: gradientShift 8s ease infinite;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Micro-interactions for buttons */
@keyframes buttonPress {
  0% { transform: scale(1); }
  50% { transform: scale(0.95); }
  100% { transform: scale(1); }
}

.btn:active,
.send-button:active,
.conversation-starter:active {
  animation: buttonPress 0.15s ease-out;
}

.btn,
.send-button,
.conversation-starter {
  transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.2s ease,
              background 0.2s ease,
              border-color 0.2s ease;
}

.btn:hover,
.send-button:hover:not([disabled]) {
  transform: translateY(-2px) scale(1.02);
}

/* Timeline animation */
.timeline-item {
  transition: opacity 0.6s ease,
              transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.timeline-item.scroll-reveal {
  opacity: 0;
  transform: translateX(-30px);
}

.timeline-item.scroll-reveal.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Project card stagger reveal */
.project-card.scroll-reveal {
  transform: translateY(40px) scale(0.95);
}

.project-card.scroll-reveal.is-visible {
  transform: translateY(0) scale(1);
}

/* Blog articles stagger */
.article-card.scroll-reveal {
  transform: translateY(30px) rotateX(5deg);
  opacity: 0;
}

.article-card.scroll-reveal.is-visible {
  transform: translateY(0) rotateX(0deg);
  opacity: 1;
}

/* Enhanced navigation hover */
.nav a {
  position: relative;
  overflow: hidden;
}

.nav a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.2), transparent);
  transition: left 0.5s ease;
}

.nav a:hover::before {
  left: 100%;
}

/* Social icons pulse */
@keyframes socialPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.7); }
  50% { box-shadow: 0 0 0 8px rgba(56, 189, 248, 0); }
}

.social-icon:hover {
  animation: socialPulse 1.5s ease-in-out;
}

/* Floating animation for hero panel */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.hero-panel {
  animation: float 6s ease-in-out infinite;
}

/* Background grid animation */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  background-image: 
    linear-gradient(rgba(56, 189, 248, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

/* Disable animations for reduced motion users */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .scroll-reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  
  body::before {
    animation: none;
  }
}
