
:root {
  /* Common variables */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --bg-body: #fafafa;
  --bg-shell: #ffffff;
  --ring-color: #f4f4f5;
  /* zinc-100 */
  --ring-shadow: rgba(0, 0, 0, 0.05);
  --text-primary: #27272a;
  /* zinc-800 */
  --text-secondary: #71717a;
  /* zinc-500 */
  --text-muted: #a1a1aa;
  /* zinc-400 */
  --accent: #14b8a6;
  /* teal-500 */
  --accent-hover: #0d9488;
  /* teal-600 */
  --card-border: #f4f4f5;
  --card-hover-bg: #f4f4f5;
  --input-bg: #ffffff;
  --btn-bg: #27272a;
  --btn-text: #ffffff;
  --btn-hover: #3f3f46;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
}

.dark {
  /* Dark theme colors */
  --bg-body: #000000;
  --bg-shell: #09090b;
  /* zinc-950 */
  --ring-color: rgba(63, 63, 70, 0.2);
  /* zinc-700/20 */
  --ring-shadow: rgba(0, 0, 0, 0.3);
  --text-primary: #f4f4f5;
  /* zinc-100 */
  --text-secondary: #a1a1aa;
  /* zinc-400 */
  --text-muted: #52525b;
  /* zinc-600 */
  --accent: #2dd4bf;
  /* teal-400 */
  --accent-hover: #5eead4;
  /* teal-300 */
  --card-border: rgba(63, 63, 70, 0.4);
  /* zinc-700/40 */
  --card-hover-bg: rgba(39, 39, 42, 0.4);
  /* zinc-800/40 */
  --input-bg: rgba(39, 39, 42, 0.2);
  --btn-bg: #27272a;
  --btn-text: #f4f4f5;
  --btn-hover: #3f3f46;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
}

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

body {
  background-color: var(--bg-body);
  color: var(--text-primary);
  font-family: var(--font-sans);
  min-height: 100vh;
  line-height: 1.6;
  position: relative;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Background centered page shell (fixed column backdrop) */
.fixed-shell-bg {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  pointer-events: none;
  z-index: 0;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .fixed-shell-bg {
    padding: 0 2rem;
  }
}

.fixed-shell-bg-inner {
  width: 100%;
  max-width: 80rem;
  /* 1280px */
  background-color: var(--bg-shell);
  border-left: 1px solid var(--ring-color);
  border-right: 1px solid var(--ring-color);
  box-shadow: 0 0 0 1px var(--ring-color), var(--shadow-sm);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* Relative content wrapper on top of backdrop */
.relative-wrapper {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .relative-wrapper {
    padding: 0 2rem;
  }
}

.content-container {
  padding: 0 1rem;
}

@media (min-width: 1024px) {
  .content-container {
    padding: 0 3rem;
  }
}

/* Header & Floating Navigation */
header {
  padding-top: 1.5rem;
  padding-bottom: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.header-left {
  flex: 1;
}

.header-center {
  display: flex;
  justify-content: center;
}

.header-right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.header-avatar {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  padding: 0.125rem;
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px 0 rgba(0, 0, 0, 0.06), 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  object-fit: cover;
  transition: transform 0.2s ease, background-color 0.3s ease;
}

.dark .header-avatar {
  background-color: rgba(39, 39, 42, 0.9);
  border-color: rgba(255, 255, 255, 0.1);
}

.header-avatar:hover {
  transform: scale(1.05);
}

/* Floating Navigation Bar */
.floating-nav {
  pointer-events: auto;
}

.floating-nav ul {
  list-style: none;
  display: flex;
  gap: 0.25rem;
  padding: 0.35rem 0.75rem;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 9999px;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.dark .floating-nav ul {
  background-color: rgba(39, 39, 42, 0.9);
  border-color: rgba(255, 255, 255, 0.1);
}

.floating-nav-link {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: 9999px;
  transition: color 0.15s ease, background-color 0.15s ease;
}

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

.floating-nav-link.active {
  color: var(--accent);
}

/* Theme Toggle Button */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 10px 15px -3px rgba(0, 0, 0, 0.05);
  color: var(--text-secondary);
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.dark .theme-toggle {
  background-color: rgba(39, 39, 42, 0.9);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--accent);
}

.theme-toggle:hover {
  color: var(--text-primary);
  border-color: rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.dark .theme-toggle:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.theme-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  transition: transform 0.5s ease;
}

.theme-toggle:hover svg {
  transform: rotate(20deg);
}

.theme-toggle .sun-icon {
  display: block;
}

.theme-toggle .moon-icon {
  display: none;
}

.dark .theme-toggle .sun-icon {
  display: none;
}

.dark .theme-toggle .moon-icon {
  display: block;
}

/* Hero Section */
.hero-section {
  max-width: 42rem;
  margin-top: 1.5rem;
  margin-bottom: 3.5rem;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 3rem;
  }
}

.hero-bio {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 2rem;
}

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

.social-icon-link {
  color: var(--text-secondary);
  transition: color 0.15s ease;
  display: inline-flex;
}

.social-icon-link:hover {
  color: var(--text-primary);
}

.social-icon-link svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: currentColor;
}

/* Image Carousel Gallery */
.gallery-wrapper {
  margin-left: -1rem;
  margin-right: -1rem;
  overflow: hidden;
  margin-bottom: 5rem;
}

@media (min-width: 640px) {
  .gallery-wrapper {
    margin-left: -2rem;
    margin-right: -2rem;
  }
}

.gallery-track {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem 1rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.gallery-track::-webkit-scrollbar {
  display: none;
}

.gallery-item {
  flex: 0 0 14rem;
  height: 16rem;
  border-radius: 1rem;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease;
  background: linear-gradient(135deg, #14b8a6 0%, #3b82f6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

@media (min-width: 640px) {
  .gallery-item {
    flex: 0 0 18rem;
    height: 20rem;
    border-radius: 1.5rem;
  }
}

.gallery-item:nth-child(1) {
  transform: rotate(1.5deg);
}

.gallery-item:nth-child(2) {
  transform: rotate(-1.5deg);
}

.gallery-item:nth-child(3) {
  transform: rotate(2deg);
}

.gallery-item:nth-child(4) {
  transform: rotate(-2.5deg);
}

.gallery-item:nth-child(5) {
  transform: rotate(1deg);
}

.gallery-item:hover {
  transform: scale(1.03) rotate(0deg) !important;
  z-index: 20;
}

.gallery-item-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: left;
  font-family: var(--font-mono);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Home Grid Content */
.home-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5rem;
  margin-bottom: 6rem;
}

@media (min-width: 1024px) {
  .home-grid {
    grid-template-columns: 1.25fr 0.75fr;
    gap: 4rem;
  }
}

/* Articles column */
.articles-col {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.spotlight-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  cursor: pointer;
}

.spotlight-card-bg {
  position: absolute;
  inset: -1rem;
  border-radius: 1rem;
  background-color: var(--card-hover-bg);
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}

.spotlight-card:hover .spotlight-card-bg {
  opacity: 1;
  transform: scale(1);
}

.spotlight-card-content {
  position: relative;
  z-index: 10;
  width: 100%;
}

.spotlight-card-date {
  font-size: 0.875rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  padding-left: 0.75rem;
  border-left: 2px solid var(--ring-color);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.spotlight-card-title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  transition: color 0.15s ease;
}

.spotlight-card-title a {
  color: inherit;
  text-decoration: none;
}

.spotlight-card-title a::after {
  content: "";
  position: absolute;
  inset: -1rem;
  z-index: 20;
  border-radius: 1rem;
}

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

.spotlight-card-excerpt {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.spotlight-card-action {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transition: color 0.15s ease;
}

.spotlight-card-action svg {
  width: 1rem;
  height: 1rem;
  stroke: currentColor;
  stroke-width: 2;
  transition: transform 0.2s ease;
}

.spotlight-card:hover .spotlight-card-action svg {
  transform: translateX(3px);
}

/* Sidebar Column */
.sidebar-col {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

/* Sidebar widgets */
.sidebar-card {
  border: 1px solid var(--card-border);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: border-color 0.3s ease;
}

.sidebar-card-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.sidebar-card-title svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--text-muted);
}

.sidebar-card-description {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

/* Newsletter Input Form */
.newsletter-form {
  display: flex;
  gap: 0.75rem;
}

.newsletter-input {
  flex: 1;
  background-color: var(--input-bg);
  color: var(--text-primary);
  border: 1px solid var(--card-border);
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  box-shadow: var(--shadow-sm);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.newsletter-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.1);
}

.newsletter-button {
  background-color: var(--btn-bg);
  color: var(--btn-text);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.newsletter-button:hover {
  background-color: var(--btn-hover);
}

/* Work experience list */
.work-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.work-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.work-logo {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: #ffffff;
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.dark .work-logo {
  background-color: #27272a;
}

.work-logo-img {
  width: 1.5rem;
  height: 1.5rem;
  object-fit: contain;
}

.work-details {
  flex: 1;
  display: flex;
  flex-direction: column;
}

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

.work-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.work-role {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.work-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.btn-secondary {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: #f4f4f5;
  color: var(--text-primary);
  border: 1px solid var(--card-border);
  border-radius: 0.5rem;
  padding: 0.6rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.dark .btn-secondary {
  background-color: rgba(39, 39, 42, 0.5);
}

.btn-secondary:hover {
  background-color: #e4e4e7;
}

.dark .btn-secondary:hover {
  background-color: #27272a;
}

.btn-secondary svg {
  width: 1rem;
  height: 1rem;
  stroke: var(--text-muted);
}

/* Post Container Layout */
.post-layout {
  max-width: 40rem;
  margin: 3rem auto 6rem auto;
}

.post-back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid var(--card-border);
  background-color: var(--bg-shell);
  color: var(--text-secondary);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2.5rem;
  transition: all 0.2s ease;
}

.post-back-btn:hover {
  color: var(--text-primary);
  border-color: rgba(0, 0, 0, 0.1);
  transform: translateX(-2px);
}

.dark .post-back-btn:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.post-back-btn svg {
  width: 1.25rem;
  height: 1.25rem;
  stroke: currentColor;
  stroke-width: 2.5;
}

.post-meta-spotlight {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.post-meta-spotlight-line {
  width: 1.5rem;
  height: 1px;
  background-color: var(--ring-color);
}

.post-title-spotlight {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02e;
  color: var(--text-primary);
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .post-title-spotlight {
    font-size: 2.75rem;
  }
}

.post-content-spotlight {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.post-content-spotlight p {
  margin-bottom: 1.75rem;
}

.post-content-spotlight h2 {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.post-content-spotlight a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.post-content-spotlight a:hover {
  color: var(--accent-hover);
}

.post-content-spotlight blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--text-primary);
}

.post-content-spotlight code {
  font-family: var(--font-mono);
  background-color: var(--card-hover-bg);
  padding: 0.125rem 0.35rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  color: var(--text-primary);
}

.post-content-spotlight pre {
  background-color: #18181b;
  /* zinc-900 */
  padding: 1.5rem;
  border-radius: 0.75rem;
  overflow-x: auto;
  margin: 2rem 0;
  border: 1px solid rgba(63, 63, 70, 0.4);
}

.post-content-spotlight pre code {
  background-color: transparent;
  color: #f4f4f5;
  padding: 0;
  font-size: 0.875rem;
}

/* Footer Section */
footer {
  margin-top: auto;
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

.footer-border {
  border-top: 1px solid var(--ring-color);
  padding-top: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .footer-border {
    flex-direction: row;
  }
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-nav-link {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

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

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

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 6rem;
}

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

@media (min-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.project-card {
  text-decoration: none;
  color: inherit;
  display: block;
  border-radius: 1rem;
  border: 1px solid var(--card-border);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.project-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-md);
  transform: translateY(-2px);
}

.project-card-inner {
  padding: 1.5rem;
}

.project-card-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: background 0.2s ease;
}

.dark .project-card-icon {
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.15) 0%, rgba(96, 165, 250, 0.15) 100%);
}

.project-card:hover .project-card-icon {
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.2) 0%, rgba(59, 130, 246, 0.2) 100%);
}

.project-card-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--accent);
}

.project-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  transition: color 0.15s ease;
}

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

.project-card-description {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

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

.project-tag {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  background-color: var(--card-hover-bg);
  color: var(--text-secondary);
  border: 1px solid var(--card-border);
}

.project-tag--status {
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.15) 0%, rgba(20, 184, 166, 0.05) 100%);
  color: var(--accent);
  border-color: rgba(20, 184, 166, 0.3);
}

/* Project Detail Page */
.project-status-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.15) 0%, rgba(20, 184, 166, 0.05) 100%);
  color: var(--accent);
  border: 1px solid rgba(20, 184, 166, 0.3);
  letter-spacing: 0.02em;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 2rem 0 2.5rem 0;
}

.project-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  background-color: var(--btn-bg);
  color: var(--btn-text);
  border: 1px solid transparent;
}

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

.project-link-btn svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

.project-link-btn--secondary {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--card-border);
}

.project-link-btn--secondary:hover {
  background-color: var(--card-hover-bg);
  border-color: var(--accent);
}

.project-link-btn--secondary svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

/* Environment Table */
.project-env-table-wrapper {
  overflow-x: auto;
  margin: 1.5rem 0 2rem 0;
  border-radius: 0.75rem;
  border: 1px solid var(--card-border);
}

.project-env-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.project-env-table th {
  text-align: left;
  font-weight: 600;
  color: var(--text-primary);
  padding: 0.75rem 1rem;
  background-color: var(--card-hover-bg);
  border-bottom: 1px solid var(--card-border);
}

.project-env-table td {
  padding: 0.75rem 1rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--card-border);
  vertical-align: top;
}

.project-env-table tr:last-child td {
  border-bottom: none;
}

.project-env-table code {
  font-family: var(--font-mono);
  background-color: var(--card-hover-bg);
  padding: 0.1rem 0.3rem;
  border-radius: 0.25rem;
  font-size: 0.8125rem;
  color: var(--accent);
  white-space: nowrap;
}