:root {
  /* Base variables */
  --background: oklch(0.985 0.002 260);
  --foreground: oklch(0.12 0.015 260);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.12 0.015 260);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.12 0.015 260);
  --primary: oklch(0.68 0.17 160);
  /* Emerald default */
  --primary-foreground: oklch(0.98 0 0);
  --secondary: oklch(0.96 0.008 260);
  --secondary-foreground: oklch(0.22 0.015 260);
  --muted: oklch(0.96 0.008 260);
  --muted-foreground: oklch(0.48 0.01 260);
  --accent: oklch(0.68 0.17 160);
  --accent-foreground: oklch(0.98 0 0);
  --destructive: oklch(0.577 0.245 27.325);
  --destructive-foreground: oklch(0.98 0 0);
  --border: oklch(0.92 0.008 260);
  --input: oklch(0.92 0.008 260);
  --ring: oklch(0.68 0.17 160);
  --radius: 0.625rem;
  --glow-color: oklch(0.68 0.17 160 / 0.15);
  --glow-color-strong: oklch(0.68 0.17 160 / 0.25);

  /* Font families */
  --font-sans: 'Geist', 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-mono: 'Geist Mono', 'SF Mono', Consolas, monospace;
}

.dark {
  --background: oklch(0.06 0.015 260);
  --foreground: oklch(0.96 0 0);
  --card: oklch(0.1 0.015 260);
  --card-foreground: oklch(0.96 0 0);
  --popover: oklch(0.1 0.015 260);
  --popover-foreground: oklch(0.96 0 0);
  --primary: oklch(0.72 0.16 165);
  --primary-foreground: oklch(0.1 0.01 260);
  --secondary: oklch(0.16 0.015 260);
  --secondary-foreground: oklch(0.88 0 0);
  --muted: oklch(0.16 0.015 260);
  --muted-foreground: oklch(0.58 0 0);
  --accent: oklch(0.72 0.16 165);
  --accent-foreground: oklch(0.1 0.01 260);
  --border: oklch(0.2 0.015 260);
  --input: oklch(0.2 0.015 260);
  --ring: oklch(0.72 0.16 165);
  --glow-color: oklch(0.72 0.16 165 / 0.12);
  --glow-color-strong: oklch(0.72 0.16 165 / 0.22);
}

/* Light Theme */
.light {
  --background: oklch(0.985 0.002 260);
  --foreground: oklch(0.12 0.015 260);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.12 0.015 260);
  --primary: oklch(0.68 0.17 160);
  --primary-foreground: oklch(0.98 0 0);
  --secondary: oklch(0.96 0.008 260);
  --secondary-foreground: oklch(0.22 0.015 260);
  --muted: oklch(0.96 0.008 260);
  --muted-foreground: oklch(0.48 0.01 260);
  --accent: oklch(0.68 0.17 160);
  --border: oklch(0.92 0.008 260);
  --input: oklch(0.92 0.008 260);
  --ring: oklch(0.68 0.17 160);
  --glow-color: oklch(0.68 0.17 160 / 0.15);
  --glow-color-strong: oklch(0.68 0.17 160 / 0.25);
}

/* Theme Colors */
.theme-golden {
  --primary: oklch(0.72 0.16 85);
  --accent: oklch(0.72 0.16 85);
  --ring: oklch(0.72 0.16 85);
}

.theme-cyan {
  --primary: oklch(0.7 0.15 200);
  --accent: oklch(0.7 0.15 200);
  --ring: oklch(0.7 0.15 200);
}

.theme-purple {
  --primary: oklch(0.65 0.18 300);
  --accent: oklch(0.65 0.18 300);
  --ring: oklch(0.65 0.18 300);
}

.theme-emerald {
  --primary: oklch(0.7 0.15 150);
  --accent: oklch(0.7 0.15 150);
  --ring: oklch(0.7 0.15 150);
}

.theme-rose {
  --primary: oklch(0.65 0.2 25);
  --accent: oklch(0.65 0.2 25);
  --ring: oklch(0.65 0.2 25);
}

.theme-dropdown.open,
.theme-dropdown-backdrop.open {
  display: block !important;
}

.theme-option:hover {
  background: oklch(from var(--secondary) l c h / 0.8) !important;
}

.theme-option.active {
  background: oklch(from var(--primary) l c h / 0.1) !important;
  border-color: oklch(from var(--primary) l c h / 0.5) !important;
}

.theme-option.active .theme-name {
  color: var(--foreground) !important;
  font-weight: 500 !important;
}

/* Typing cursor animation */
.typing-cursor::after {
  content: "▋";
  animation: blink 1s step-end infinite;
  color: var(--primary);
}

@keyframes blink {

  0%,
  50% {
    opacity: 1;
  }

  51%,
  100% {
    opacity: 0;
  }
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--muted-foreground);
}

/* Selection */
::selection {
  background: oklch(from var(--primary) l c h / 0.3);
  color: var(--foreground);
}

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

/* ============================================
   CURSOR GLOW EFFECT
   ============================================ */
.cursor-glow {
  pointer-events: none;
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow-color) 0%, transparent 65%);
  transform: translate(-50%, -50%);
  z-index: 0;
  opacity: 0;
  transition: opacity 0.4s ease, width 0.3s ease, height 0.3s ease;
  filter: blur(10px);
}

.cursor-glow.visible {
  opacity: 1;
}

.cursor-glow.hovering {
  width: 500px;
  height: 500px;
}

.cursor-dot {
  pointer-events: none;
  position: fixed;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.2s ease;
  filter: blur(4px);
  mix-blend-mode: screen;
}

.cursor-dot.visible {
  opacity: 0.15;
}

/* Scanlines */
.scanlines::before {
  content: "";
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(0deg,
      transparent,
      transparent 3px,
      oklch(0 0 0 / 0.015) 3px,
      oklch(0 0 0 / 0.015) 6px);
  pointer-events: none;
  z-index: 100;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes scale-in {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes float {

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

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

@keyframes pulse-glow {

  0%,
  100% {
    box-shadow: 0 0 0 0 var(--glow-color);
    opacity: 1;
  }

  50% {
    box-shadow: 0 0 20px 4px var(--glow-color);
    opacity: 0.8;
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

@keyframes blink {

  0%,
  50% {
    opacity: 1;
  }

  51%,
  100% {
    opacity: 0;
  }
}

@keyframes ping {

  75%,
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

@keyframes glitch {

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

  10% {
    transform: translate(-1px, 1px);
  }

  30% {
    transform: translate(1px, -1px);
  }

  50% {
    transform: translate(-1px, -1px);
  }

  70% {
    transform: translate(1px, 1px);
  }

  90% {
    transform: translate(0.5px, -0.5px);
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

.animate-fade-in-up {
  animation: fade-in-up 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  opacity: 0;
}

.animate-fade-in {
  animation: fade-in 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  opacity: 0;
}

.animate-scale-in {
  animation: scale-in 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  opacity: 0;
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

.animate-pulse-glow {
  animation: pulse-glow 2.5s ease-in-out infinite;
}

.animate-shimmer {
  background: linear-gradient(90deg, transparent, var(--glow-color), transparent);
  background-size: 200% 100%;
  animation: shimmer 2s linear infinite;
}

.glitch:hover {
  animation: glitch 0.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* Stagger delays */
.stagger-1 {
  animation-delay: 0.1s;
}

.stagger-2 {
  animation-delay: 0.2s;
}

.stagger-3 {
  animation-delay: 0.3s;
}

.stagger-4 {
  animation-delay: 0.4s;
}

.stagger-5 {
  animation-delay: 0.5s;
}

.stagger-6 {
  animation-delay: 0.6s;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.glass {
  background: oklch(from var(--card) l c h / 0.6);
  backdrop-filter: blur(12px) saturate(1.5);
  -webkit-backdrop-filter: blur(12px) saturate(1.5);
}

.hover-lift {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px -8px oklch(0 0 0 / 0.12);
}

.dark .hover-lift:hover {
  box-shadow: 0 12px 40px -8px oklch(0 0 0 / 0.4);
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary), oklch(0.65 0.18 200));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.underline-animate {
  position: relative;
}

.underline-animate::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.underline-animate:hover::after {
  width: 100%;
}

.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* ============================================
   HEADER STYLES
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.header.scrolled {
  border-bottom: 1px solid oklch(from var(--border) l c h / 0.5);
  background-color: oklch(from var(--background) l c h / 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 3px oklch(0 0 0 / 0.05);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  position: relative;
  display: flex;
  height: 36px;
  width: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid oklch(from var(--primary) l c h / 0.5);
  background-color: oklch(from var(--primary) l c h / 0.1);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--primary);
  transition: all 0.4s ease;
}

.logo:hover .logo-icon {
  border-color: var(--primary);
  background-color: var(--primary);
  color: var(--primary-foreground);
  transform: scale(1.05);
  box-shadow: 0 8px 24px oklch(from var(--primary) l c h / 0.25);
}

.logo-text {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  letter-spacing: -0.02em;
}

.logo-text span {
  background: linear-gradient(to left, oklch(from var(--primary) l c h / 0.5), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
}

/* Desktop Navigation */
.nav-desktop {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

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

.nav-link {
  position: relative;
  padding: 0.625rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-foreground);
  transition: all 0.3s ease;
  border-radius: 8px;
}

.nav-link:hover {
  color: var(--foreground);
  background-color: oklch(from var(--secondary) l c h / 0.5);
}

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

.nav-link .arrow {
  position: absolute;
  left: 0.375rem;
  color: var(--primary);
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.2s ease;
}

.nav-link:hover .arrow,
.nav-link.active .arrow {
  opacity: 1;
  transform: translateX(0);
}

.nav-link .text {
  display: inline-block;
  transition: transform 0.2s ease;
}

.nav-link:hover .text,
.nav-link.active .text {
  transform: translateX(8px);
}

.nav-link .underline-bar {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  height: 2px;
  width: 0;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.nav-link:hover .underline-bar,
.nav-link.active .underline-bar {
  width: 24px;
}

/* Header Right Section */
.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.social-links {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

@media (min-width: 640px) {
  .social-links {
    display: flex;
  }
}

.social-link {
  position: relative;
  display: flex;
  height: 36px;
  width: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--muted-foreground);
  transition: all 0.3s ease;
}

.social-link:hover {
  color: var(--primary);
  background-color: oklch(from var(--primary) l c h / 0.1);
}

.social-link:hover svg {
  transform: scale(1.1);
}

.social-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.social-link .tooltip {
  position: absolute;
  bottom: -32px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  border-radius: 6px;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 0.25rem 0.625rem;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted-foreground);
  opacity: 0;
  transition: all 0.2s ease;
  pointer-events: none;
  box-shadow: 0 8px 24px oklch(0 0 0 / 0.1);
}

.social-link:hover .tooltip {
  opacity: 1;
  bottom: -36px;
}

.divider {
  display: none;
  height: 20px;
  width: 1px;
  background: var(--border);
}

@media (min-width: 640px) {
  .divider {
    display: block;
  }
}

.status-badge {
  display: none;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted-foreground);
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  background: oklch(from var(--secondary) l c h / 0.5);
  border: 1px solid oklch(from var(--border) l c h / 0.5);
}

@media (min-width: 640px) {
  .status-badge {
    display: flex;
  }
}

.status-dot {
  position: relative;
  display: flex;
  height: 8px;
  width: 8px;
}

.status-dot .ping {
  position: absolute;
  display: inline-flex;
  height: 100%;
  width: 100%;
  border-radius: 9999px;
  background: var(--primary);
  opacity: 0.75;
  animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.status-dot .dot {
  position: relative;
  display: inline-flex;
  height: 8px;
  width: 8px;
  border-radius: 9999px;
  background: var(--primary);
}

/* Theme Controls */
.theme-controls {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 0.5rem;
}

.theme-btn {
  position: relative;
  display: flex;
  height: 36px;
  width: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--muted-foreground);
  transition: all 0.3s ease;
}

.theme-btn:hover {
  color: var(--primary);
  background-color: oklch(from var(--primary) l c h / 0.1);
}

.theme-btn svg {
  width: 16px;
  height: 16px;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: flex;
  height: 40px;
  width: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: oklch(from var(--card) l c h / 0.5);
  transition: background-color 0.2s ease;
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-menu-btn:hover {
  background: var(--secondary);
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 20px;
}

.hamburger span {
  height: 2px;
  background: var(--foreground);
  transition: all 0.3s ease;
  transform-origin: center;
}

.hamburger span:nth-child(1) {
  width: 20px;
}

.hamburger span:nth-child(2) {
  width: 14px;
}

.hamburger span:nth-child(3) {
  width: 20px;
}

.mobile-menu-btn.open .hamburger span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-menu-btn.open .hamburger span:nth-child(2) {
  opacity: 0;
  transform: translateX(8px);
}

.mobile-menu-btn.open .hamburger span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.4s ease;
  background: var(--background);
}

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

.mobile-menu.open {
  max-height: 400px;
  opacity: 1;
  padding-top: 1rem;
}

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  border-top: 1px solid oklch(from var(--border) l c h / 0.5);
  padding-top: 1rem;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-foreground);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.mobile-nav-link:hover {
  color: var(--foreground);
  background: oklch(from var(--secondary) l c h / 0.5);
}

.mobile-nav-link .arrow {
  color: var(--primary);
}

.mobile-social-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  border-top: 1px solid oklch(from var(--border) l c h / 0.5);
  padding: 1rem;
}

.mobile-social-link {
  display: flex;
  height: 44px;
  width: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid oklch(from var(--border) l c h / 0.5);
  color: var(--muted-foreground);
  transition: all 0.2s ease;
}

.mobile-social-link:hover {
  border-color: oklch(from var(--primary) l c h / 0.5);
  color: var(--primary);
  background: oklch(from var(--primary) l c h / 0.1);
}

.mobile-social-link svg {
  width: 16px;
  height: 16px;
}

.mobile-status {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin: 0.75rem 1rem;
  padding: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted-foreground);
  background: oklch(from var(--secondary) l c h / 0.3);
  border-radius: 8px;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  padding: 7rem 0 4rem;
}

@media (min-width: 640px) {
  .hero {
    padding: 9rem 0 6rem;
  }
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    min-height: 70vh;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 640px) {
  .hero-content {
    gap: 2.5rem;
  }
}

.hero-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--primary);
}

@media (min-width: 640px) {
  .hero-label {
    letter-spacing: 0.35em;
  }
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

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

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

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

.hero-title .gradient-text {
  background: linear-gradient(to left, oklch(from var(--primary) l c h / 0.5), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  max-width: 32rem;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--muted-foreground);
}

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

.hero-description .highlight {
  color: var(--foreground);
  font-weight: 500;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }
}

.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--primary);
  background: oklch(from var(--primary) l c h / 0.1);
  padding: 1rem 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--primary);
  transition: all 0.5s ease;
}

@media (min-width: 640px) {
  .btn-primary {
    padding: 0.875rem 1.75rem;
  }
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-primary .btn-bg {
  position: absolute;
  inset: 0;
  background: var(--primary);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.btn-primary:hover .btn-bg {
  transform: translateX(0);
}

.btn-primary .btn-text,
.btn-primary .btn-arrow {
  position: relative;
  z-index: 10;
}

.btn-primary:hover {
  color: var(--primary-foreground);
}

.btn-primary .btn-arrow {
  transition: transform 0.3s ease;
}

.btn-primary:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  padding: 1rem 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: all 0.3s ease;
}

@media (min-width: 640px) {
  .btn-secondary {
    padding: 0.875rem 1.75rem;
  }
}

.btn-secondary:hover {
  border-color: var(--foreground);
  color: var(--foreground);
  background: oklch(from var(--secondary) l c h / 0.5);
}

.btn-secondary:active {
  transform: scale(0.98);
}

.btn-secondary .btn-arrow {
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.3s ease;
}

.btn-secondary:hover .btn-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Hero Visual */
.hero-visual {
  position: relative;
}

.terminal-card {
  position: relative;
  border-radius: 12px;
  border: 1px solid var(--border);
  background-color: hsl(240, 1.59%, 24.71%);
  backdrop-filter: blur(12px);
  padding-top: 2.5rem;
}

/* @media (min-width: 640px) {
  .terminal-card {
    padding: 2rem;
  }
} */

.terminal-dots {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.terminal-dot {
  height: 12px;
  width: 12px;
  border-radius: 9999px;
  transition: background-color 0.2s ease;
  cursor: pointer;
}

.terminal-dot.red {
  background: #fb615d;
}

.terminal-dot.red:hover {
  background: var(--destructive);
}

.terminal-dot.yellow {
  background: #fbbd2e;
}

.terminal-dot.yellow:hover {
  background: oklch(0.8 0.15 85);
}

.terminal-dot.green {
  background: #1ec13d;
}

.terminal-dot.green:hover {
  background: var(--primary);
}

.terminal-title {
  position: absolute;
  top: 10px;
  right: 3%;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.796);
}

.terminal-content {
  overflow: hidden;
  font-family: 'Courier New', Courier, monospace;
  background: hsl(0, 0%, 11.37%);
  font-size: 12px;
  display: flex;
  flex-direction: column;
  margin: 0;
  height: 58vh;
  max-height: 58vh;
  padding: 0.5rem;
  letter-spacing: 1px;
  border-radius: 0 0 12px 12px;
  color: rgba(255, 255, 255, 0.732);
  white-space: pre;
}

.terminal-input-line {
  padding: 0;
  display: flex;
  flex-direction: column;
}

.terminal-prompt-user {
  display: flex;
  gap: 1rem;
}

.terminal-prompt-user input {
  background: none;
  border: none;
  outline: none;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
}


@media (min-width: 640px) {
  .terminal-content {
    font-size: 0.75rem;
  }
}

@media (min-width: 768px) {
  .terminal-content {
    font-size: 0.875rem;
  }
}

.terminal-mobile {
  display: block;
}

.terminal-desktop {
  display: none;
}

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

  .terminal-desktop {
    display: block;
  }
}

/* Floating badges */
.floating-badge {
  position: absolute;
  border-radius: 8px;
  padding: 0.375rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 11px;
  backdrop-filter: blur(12px);
  animation: floatSoft 6s ease-in-out infinite;
}

@keyframes floatSoft {
  0% {
    transform: translateY(0);
  }

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

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

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

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

@media (min-width: 640px) {
  .floating-badge {
    padding: 0.375rem 1rem;
    font-size: 0.75rem;
  }
}

.floating-badge.version {
  right: -8px;
  top: -8px;
  border: 1px solid oklch(from var(--primary) l c h / 0.4);
  background: oklch(from var(--primary) l c h / 0.15);
  color: var(--primary);
}

@media (min-width: 640px) {
  .floating-badge.version {
    right: -24px;
    top: -24px;
  }
}

.floating-badge.version .status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
}

.floating-badge.version .pulse-dot {
  height: 6px;
  width: 6px;
  border-radius: 9999px;
  background: var(--primary);
  animation: pulse 2s ease-in-out infinite;
}

.floating-badge.date {
  left: -8px;
  bottom: -12px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted-foreground);
}

@media (min-width: 640px) {
  .floating-badge.date {
    left: -24px;
    bottom: -24px;
  }
}

/* Hero glow */
.hero-glow {
  position: absolute;
  z-index: -10;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  border-radius: 9999px;
  background: oklch(from var(--primary) l c h / 0.05);
  filter: blur(48px);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

@media (min-width: 1024px) {
  .scroll-indicator {
    display: flex;
  }
}

.scroll-indicator span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.scroll-indicator .line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, oklch(from var(--primary) l c h / 0.5), transparent);
  animation: pulse 2s ease-in-out infinite;
}

/* ============================================
   PROJECTS SECTION
   ============================================ */
.projects {
  padding: 5rem 0;
}

@media (min-width: 640px) {
  .projects {
    padding: 7rem 0;
  }
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 640px) {
  .section-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 3.5rem;
  }
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--primary);
}

@media (min-width: 640px) {
  .section-label {
    letter-spacing: 0.35em;
  }
}

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

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

.section-description {
  max-width: 42rem;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--muted-foreground);
}

@media (min-width: 640px) {
  .section-description {
    font-size: 1.125rem;
  }
}

/* Filter buttons */
.filters {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin: 0 -1rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .filters {
    overflow: visible;
    flex-wrap: wrap;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
  }
}

.filter-btn {
  flex-shrink: 0;
  border-radius: 8px;
  border: 1px solid var(--border);
  padding: 0.625rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
  transition: all 0.3s ease;
}

.filter-btn:hover {
  border-color: oklch(from var(--foreground) l c h / 0.5);
  color: var(--foreground);
  background: oklch(from var(--secondary) l c h / 0.5);
}

.filter-btn:active {
  transform: scale(0.98);
}

.filter-btn.active {
  border-color: var(--primary);
  background: oklch(from var(--primary) l c h / 0.15);
  color: var(--primary);
  box-shadow: 0 2px 8px oklch(from var(--primary) l c h / 0.2);
}

/* Projects Grid */
.projects-grid {
  display: grid;
  gap: 1.25rem;
}

@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 */
.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid oklch(from var(--border) l c h / 0.6);
  background: oklch(from var(--card) l c h / 0.4);
  backdrop-filter: blur(12px);
  padding: 1.5rem;
  transition: all 0.4s ease;
}

@media (min-width: 640px) {
  .project-card {
    padding: 1.75rem;
  }
}

.project-card:hover {
  border-color: oklch(from var(--primary) l c h / 0.4);
  background: oklch(from var(--card) l c h / 0.7);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px -8px oklch(0 0 0 / 0.12);
}

.dark .project-card:hover {
  box-shadow: 0 12px 40px -8px oklch(0 0 0 / 0.4);
}

.project-card:active {
  transform: scale(0.99);
}

.project-card.highlight {
  grid-column: span 2;
  border-color: oklch(from var(--primary) l c h / 0.3);
  background: linear-gradient(to bottom right, oklch(from var(--primary) l c h / 0.08), oklch(from var(--card) l c h / 0.5), oklch(from var(--primary) l c h / 0.08));
}

@media (max-width: 639px) {
  .project-card.highlight {
    grid-column: span 1;
  }
}

.project-card.featured {
  grid-column: span 2;
}

@media (min-width: 1024px) {
  .project-card.featured {
    grid-column: span 1;
  }
}

@media (max-width: 639px) {
  .project-card.featured {
    grid-column: span 1;
  }
}

/* Featured badge */
.featured-badge {
  position: absolute;
  left: 20px;
  top: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 9999px;
  border: 1px solid oklch(from var(--primary) l c h / 0.4);
  background: oklch(from var(--primary) l c h / 0.15);
  padding: 0.375rem 0.875rem;
  animation: pulse-glow 2.5s ease-in-out infinite;
}

.featured-badge svg {
  width: 14px;
  height: 14px;
  color: var(--primary);
}

.featured-badge span {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  font-weight: 500;
}

/* Status indicator */
.project-status {
  position: absolute;
  right: 20px;
  top: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.project-status .status-dot {
  height: 10px;
  width: 10px;
  border-radius: 9999px;
  transition: box-shadow 0.3s ease;
}

.project-status .status-dot.shipped {
  background: var(--primary);
  box-shadow: 0 2px 8px oklch(from var(--primary) l c h / 0.5);
}

.project-status .status-dot.in-progress {
  background: oklch(0.8 0.15 85);
  animation: pulse 2s ease-in-out infinite;
  box-shadow: 0 2px 8px oklch(0.8 0.15 85 / 0.5);
}

.project-status .status-dot.archived {
  background: var(--muted-foreground);
}

.project-status span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.project-year {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-bottom: 1.25rem;
}

.project-card.highlight .project-year {
  margin-top: 2.5rem;
}

.project-title {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  transition: all 0.3s ease;
}

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

.project-card.highlight .project-title {
  font-size: 1.25rem;
}

@media (min-width: 640px) {
  .project-card.highlight .project-title {
    font-size: 1.5rem;
  }
}

.project-card:hover .project-title {
  background: linear-gradient(135deg, var(--primary), oklch(0.65 0.18 200));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.project-description {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted-foreground);
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-card.highlight .project-description {
  -webkit-line-clamp: 3;
}

.project-stats {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-bottom: 1.25rem;
}

.project-stats .stat {
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.3s ease;
}

.project-card:hover .project-stats .stat.stars {
  color: oklch(0.8 0.15 85);
}

.project-card:hover .project-stats .stat.forks {
  color: var(--foreground);
}

.project-stats svg {
  width: 14px;
  height: 14px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.project-tag {
  border-radius: 6px;
  border: 1px solid oklch(from var(--border) l c h / 0.8);
  background: oklch(from var(--secondary) l c h / 0.6);
  padding: 0.25rem 0.625rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--secondary-foreground);
  transition: all 1s ease;
}

.project-tag:hover {
  border-color: oklch(from var(--primary) l c h / 0.5);
  background: oklch(from var(--primary) l c h / 0.1);
}

.project-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.project-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted-foreground);
  transition: all 0.3s ease;
}

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

.project-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.project-link:hover svg {
  transform: scale(1.1);
}

.project-link.live {
  color: var(--primary);
}

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

.project-link.live:hover svg {
  transform: scale(1.1) rotate(12deg);
}

/* Bottom progress bar */
.project-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  width: 0;
  background: linear-gradient(to right, var(--primary), oklch(from var(--primary) l c h / 0.8), transparent);
  transition: width 0.5s ease;
}

.project-card:hover::after {
  width: 100%;
}

/* ============================================
   LAB NOTES SECTION
   ============================================ */
.lab-notes {
  padding: 5rem 0;
  border-top: 1px solid oklch(from var(--border) l c h / 0.3);
}

@media (min-width: 640px) {
  .lab-notes {
    padding: 7rem 0;
  }
}

.notes-grid {
  display: grid;
  gap: 1.25rem;
}

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

.note-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: oklch(from var(--card) l c h / 0.4);
  backdrop-filter: blur(12px);
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.4s ease;
}

@media (min-width: 640px) {
  .note-card {
    padding: 1.75rem;
  }
}

.note-card:hover {
  border-color: oklch(from var(--primary) l c h / 0.4);
  background: oklch(from var(--card) l c h / 0.6);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px -8px oklch(0 0 0 / 0.12);
}

.dark .note-card:hover {
  box-shadow: 0 12px 40px -8px oklch(0 0 0 / 0.4);
}

.note-card:active {
  transform: scale(0.99);
}

.note-card .gradient-overlay {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.note-card:hover .gradient-overlay {
  opacity: 1;
}

.note-card .content {
  position: relative;
  z-index: 10;
}

.note-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .note-header {
    margin-bottom: 1.25rem;
  }
}

.note-category {
  border-radius: 8px;
  border: 1px solid oklch(from var(--border) l c h / 0.8);
  background: oklch(from var(--secondary) l c h / 0.6);
  padding: 0.375rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted-foreground);
  transition: all 0.3s ease;
}

.note-card:hover .note-category {
  border-color: oklch(from var(--primary) l c h / 0.5);
  color: var(--foreground);
}

.note-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.note-title {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  transition: color 0.3s ease;
}

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

.note-card:hover .note-title {
  background: linear-gradient(135deg, var(--primary), oklch(0.65 0.18 200));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.note-excerpt {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

.note-read-more {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--primary);
  opacity: 1;
  transform: translateX(0);
  transition: all 0.3s ease;
}

@media (min-width: 640px) {
  .note-read-more {
    opacity: 0;
    transform: translateX(-8px);
  }
}

.note-card:hover .note-read-more {
  opacity: 1;
  transform: translateX(0);
}

.note-read-more svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s ease;
}

.note-card:hover .note-read-more svg {
  transform: translateX(4px);
}

/* Bottom progress bar */
.note-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  width: 0;
  background: linear-gradient(to right, var(--primary), transparent);
  transition: width 0.5s ease;
}

.note-card:hover::after {
  width: 100%;
}

/* ============================================
   WORKBENCH SECTION
   ============================================ */
.workbench {
  padding: 5rem 0;
  border-top: 1px solid oklch(from var(--border) l c h / 0.3);
}

@media (min-width: 640px) {
  .workbench {
    padding: 7rem 0;
  }
}

.workbench-terminal {
  border-radius: 12px;
  border: 1px solid var(--border);
  background: oklch(from var(--card) l c h / 0.4);
  backdrop-filter: blur(12px);
  padding: 1.5rem;
}

@media (min-width: 640px) {
  .workbench-terminal {
    padding: 2rem;
  }
}

.workbench-content {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.workbench-item {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid oklch(from var(--border) l c h / 0.5);
}

.workbench-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.workbench-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.workbench-item-name {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
}

.workbench-item-progress {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--primary);
}

.workbench-progress-bar {
  height: 4px;
  background: oklch(from var(--border) l c h / 0.5);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.workbench-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), oklch(from var(--primary) l c h / 0.7));
  border-radius: 2px;
  transition: width 0.5s ease;
}

.workbench-item-desc {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* ============================================
   CHATBOT WIDGET
   ============================================ */
.chatbot-widget {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  font-family: var(--font-sans);
}

.chatbot-toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-foreground);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px oklch(from var(--primary) l c h / 0.4);
  transition: all 0.3s ease;
  position: relative;
}

.chatbot-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px oklch(from var(--primary) l c h / 0.5);
}

.chatbot-toggle svg {
  width: 24px;
  height: 24px;
}

.chatbot-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0;
  animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }

  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

.chatbot-container {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 380px;
  max-height: 600px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--card);
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 60px oklch(0 0 0 / 0.3);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.chatbot-widget.open .chatbot-container {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.chatbot-header {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: oklch(from var(--card) l c h / 0.8);
}

.chatbot-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), oklch(from var(--primary) l c h / 0.7));
  color: var(--primary-foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.125rem;
}

.chatbot-info h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin: 0;
}

.chatbot-status {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.chatbot-status .status-dot {
  width: 8px;
  height: 8px;
  background: oklch(0.7 0.15 150);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.chatbot-close {
  margin-left: auto;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--muted-foreground);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.chatbot-close:hover {
  background: var(--secondary);
  color: var(--foreground);
}

.chatbot-close svg {
  width: 18px;
  height: 18px;
}

.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 400px;
}

.chatbot-welcome {
  background: oklch(from var(--primary) l c h / 0.1);
  border: 1px solid oklch(from var(--primary) l c h / 0.2);
  border-radius: 12px;
  padding: 1rem;
}

.chatbot-welcome p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--foreground);
  margin: 0 0 0.75rem 0;
}

.suggested-questions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.suggested-q {
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid oklch(from var(--border) l c h / 0.8);
  background: oklch(from var(--card) l c h / 0.6);
  font-size: 0.75rem;
  color: var(--muted-foreground);
  cursor: pointer;
  transition: all 0.2s ease;
}

.suggested-q:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: oklch(from var(--primary) l c h / 0.1);
}

.chatbot-message {
  display: flex;
  gap: 0.75rem;
  max-width: 85%;
}

.chatbot-message.user {
  margin-left: auto;
  flex-direction: row-reverse;
}

.chatbot-message-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
}

.chatbot-message.user .chatbot-message-avatar {
  background: var(--primary);
  color: var(--primary-foreground);
}

.chatbot-message.assistant .chatbot-message-avatar {
  background: oklch(from var(--secondary) l c h / 0.8);
  color: var(--foreground);
}

.chatbot-message-content {
  padding: 0.875rem 1rem;
  border-radius: 12px;
  font-size: 0.875rem;
  line-height: 1.6;
  word-wrap: break-word;
}

.chatbot-message.user .chatbot-message-content {
  background: var(--primary);
  color: var(--primary-foreground);
  border-bottom-right-radius: 4px;
}

.chatbot-message.assistant .chatbot-message-content {
  background: oklch(from var(--secondary) l c h / 0.6);
  color: var(--foreground);
  border-bottom-left-radius: 4px;
}

.chatbot-message-content p {
  margin: 0 0 0.5rem 0;
}

.chatbot-message-content p:last-child {
  margin-bottom: 0;
}

.chatbot-sources {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid oklch(from var(--border) l c h / 0.5);
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.chatbot-sources strong {
  color: var(--foreground);
}

.chatbot-input-area {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
  background: oklch(from var(--card) l c h / 0.8);
}

.chatbot-typing {
  display: none;
  gap: 4px;
  padding: 0.5rem 0;
  margin-bottom: 0.5rem;
}

.chatbot-typing.active {
  display: flex;
}

.chatbot-typing span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  animation: typing-bounce 1.4s ease-in-out infinite both;
}

.chatbot-typing span:nth-child(1) {
  animation-delay: -0.32s;
}

.chatbot-typing span:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes typing-bounce {

  0%,
  80%,
  100% {
    transform: scale(0.6);
    opacity: 0.5;
  }

  40% {
    transform: scale(1);
    opacity: 1;
  }
}

.chatbot-form {
  display: flex;
  gap: 0.75rem;
}

.chatbot-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: oklch(from var(--background) l c h / 0.5);
  color: var(--foreground);
  font-size: 0.875rem;
  outline: none;
  transition: all 0.2s ease;
}

.chatbot-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px oklch(from var(--primary) l c h / 0.15);
}

.chatbot-send {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: none;
  background: var(--primary);
  color: var(--primary-foreground);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.chatbot-send:hover:not(:disabled) {
  transform: scale(1.05);
  box-shadow: 0 4px 12px oklch(from var(--primary) l c h / 0.3);
}

.chatbot-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.chatbot-send svg {
  width: 18px;
  height: 18px;
}

/* Responsive */
@media (max-width: 480px) {
  .chatbot-widget {
    bottom: 1rem;
    right: 1rem;
  }

  .chatbot-container {
    width: calc(100vw - 2rem);
    max-height: 70vh;
    right: -1rem;
  }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 5rem 0 2rem;
  border-top: 1px solid oklch(from var(--border) l c h / 0.3);
}

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

.footer-grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.footer-left .label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--primary);
  margin-bottom: 1rem;
}

.footer-left h2 {
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .footer-left h2 {
    font-size: 2.25rem;
  }
}

.footer-left h2 span {
  background: linear-gradient(135deg, var(--primary), oklch(0.65 0.18 200));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-left>p {
  color: var(--muted-foreground);
  margin-bottom: 2rem;
  max-width: 400px;
  line-height: 1.75;
}

.cta-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--primary);
  background: oklch(from var(--primary) l c h / 0.1);
  padding: 1rem 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--primary);
  transition: all 0.5s ease;
}

.cta-button:hover {
  background: var(--primary);
  color: var(--primary-foreground);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px oklch(from var(--primary) l c h / 0.25);
}

.cta-button .arrow {
  transition: transform 0.3s ease;
}

.cta-button:hover .arrow {
  transform: translateX(4px);
}

.footer-right .label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: oklch(from var(--card) l c h / 0.4);
  transition: all 0.3s ease;
}

.footer-link:hover {
  border-color: oklch(from var(--primary) l c h / 0.4);
  background: oklch(from var(--card) l c h / 0.6);
}

.footer-link-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-link svg {
  width: 18px;
  height: 18px;
  color: var(--muted-foreground);
  transition: color 0.3s ease;
}

.footer-link:hover svg {
  color: var(--primary);
}

.footer-link-name {
  font-weight: 500;
}

.footer-link-handle {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.footer-bottom {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid oklch(from var(--border) l c h / 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.footer-status .heart {
  width: 14px;
  height: 14px;
  color: oklch(0.6 0.2 25);
  animation: pulse 1.5s ease-in-out infinite;
}

.footer-social {
  display: flex;
  gap: 0.5rem;
}

.footer-social-link {
  display: flex;
  height: 36px;
  width: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--muted-foreground);
  transition: all 0.3s ease;
}

.footer-social-link:hover {
  border-color: oklch(from var(--primary) l c h / 0.4);
  color: var(--primary);
  background: oklch(from var(--primary) l c h / 0.1);
}

.footer-social-link svg {
  width: 16px;
  height: 16px;
}

.footer-copyright {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* ============================================
   PROJECTS PAGE
   ============================================ */
.projects-section {
  padding: 7rem 0 5rem;
}

@media (min-width: 640px) {
  .projects-section {
    padding: 9rem 0 7rem;
  }
}

.projects-hero {
  margin-bottom: 3rem;
}

.projects-hero .label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--primary);
  margin-bottom: 1rem;
}

.projects-hero h1 {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

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

@media (min-width: 1024px) {
  .projects-hero h1 {
    font-size: 3.75rem;
  }
}

.projects-hero p {
  max-width: 640px;
  font-size: 1rem;
  color: var(--muted-foreground);
  line-height: 1.75;
}

@media (min-width: 640px) {
  .projects-hero p {
    font-size: 1.125rem;
  }
}

.filters-section {
  margin-bottom: 2.5rem;
}

.search-wrapper {
  position: relative;
  max-width: 448px;
  margin-bottom: 1.5rem;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--muted-foreground);
}

.search-input {
  width: 100%;
  padding: 10px 12px 10px 40px;
  background: oklch(from var(--card) l c h / 0.4);
  border: 1px solid oklch(from var(--border) l c h / 0.6);
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--foreground);
  transition: all 0.3s ease;
  outline: none;
}

.search-input::placeholder {
  color: var(--muted-foreground);
}

.search-input:focus {
  border-color: oklch(from var(--primary) l c h / 0.5);
  box-shadow: 0 0 0 2px oklch(from var(--primary) l c h / 0.1);
}

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

.tag-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.tag-filters .filter-icon {
  width: 16px;
  height: 16px;
  color: var(--muted-foreground);
  margin-right: 8px;
}

.tag-btn {
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid oklch(from var(--border) l c h / 0.6);
  background: oklch(from var(--secondary) l c h / 0.4);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-foreground);
  cursor: pointer;
  transition: all 0.2s ease;
}

.tag-btn:hover {
  border-color: oklch(from var(--primary) l c h / 0.3);
  color: var(--foreground);
}

.tag-btn.active {
  border-color: oklch(from var(--primary) l c h / 0.5);
  background: oklch(from var(--primary) l c h / 0.1);
  color: var(--primary);
}

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--muted-foreground);
}

/* ============================================
   BLOG PAGE
   ============================================ */
.blog-hero {
  padding: 7rem 0 3rem;
}

@media (min-width: 640px) {
  .blog-hero {
    padding: 9rem 0 4rem;
  }
}

.blog-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .blog-hero-inner {
    padding: 0 1.5rem;
  }
}

.blog-hero-content {
  max-width: 700px;
}

.blog-hero-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--primary);
  margin-bottom: 1rem;
}

.blog-hero-title {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

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

@media (min-width: 1024px) {
  .blog-hero-title {
    font-size: 3.75rem;
  }
}

.blog-hero-title span {
  background: linear-gradient(135deg, var(--primary), oklch(0.65 0.18 200));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.blog-hero-desc {
  font-size: 1rem;
  color: var(--muted-foreground);
  line-height: 1.75;
}

@media (min-width: 640px) {
  .blog-hero-desc {
    font-size: 1.125rem;
  }
}

.blog-main {
  padding: 3rem 0 5rem;
}

@media (min-width: 640px) {
  .blog-main {
    padding: 4rem 0 7rem;
  }
}

.blog-main-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .blog-main-inner {
    padding: 0 1.5rem;
  }
}

.blog-grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .blog-grid {
    grid-template-columns: 1fr 320px;
  }
}

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

.blog-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: oklch(from var(--card) l c h / 0.4);
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.4s ease;
}

@media (min-width: 640px) {
  .blog-card {
    padding: 1.75rem;
  }
}

.blog-card:hover {
  border-color: oklch(from var(--primary) l c h / 0.4);
  background: oklch(from var(--card) l c h / 0.6);
}

.blog-card.featured {
  box-shadow: 0 0 0 1px oklch(from var(--primary) l c h / 0.2);
}

.blog-card-gradient {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.blog-card:hover .blog-card-gradient {
  opacity: 1;
}

.blog-card-content {
  position: relative;
  z-index: 1;
}

.blog-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.blog-card-category {
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  border: 1px solid oklch(from var(--border) l c h / 0.8);
  background: oklch(from var(--secondary) l c h / 0.6);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted-foreground);
  transition: all 0.3s ease;
}

.blog-card:hover .blog-card-category {
  border-color: oklch(from var(--primary) l c h / 0.5);
  color: var(--foreground);
}

.blog-card-featured-badge {
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  border: 1px solid oklch(from var(--primary) l c h / 0.5);
  background: oklch(from var(--primary) l c h / 0.1);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--primary);
}

.blog-card-date-time {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.blog-card-date-time span {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.blog-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  transition: color 0.3s ease;
}

@media (min-width: 640px) {
  .blog-card-title {
    font-size: 1.5rem;
  }
}

.blog-card:hover .blog-card-title {
  background: linear-gradient(135deg, var(--primary), oklch(0.65 0.18 200));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.blog-card-excerpt {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.75;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 640px) {
  .blog-card-excerpt {
    font-size: 1rem;
  }
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.blog-card-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.blog-card-avatar {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.blog-card-author-info {
  display: flex;
  flex-direction: column;
}

.blog-card-author-name {
  font-size: 0.875rem;
  font-weight: 500;
}

.blog-card-author-role {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.blog-card-read-more {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--primary);
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.3s ease;
}

@media (max-width: 639px) {
  .blog-card-read-more {
    opacity: 1;
    transform: translateX(0);
  }
}

.blog-card:hover .blog-card-read-more {
  opacity: 1;
  transform: translateX(0);
}

.blog-card-read-more svg {
  transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-read-more svg {
  transform: translateX(4px);
}

.blog-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.blog-card-tag {
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  background: oklch(from var(--secondary) l c h / 0.4);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--muted-foreground);
  transition: background 0.3s ease;
}

.blog-card:hover .blog-card-tag {
  background: oklch(from var(--secondary) l c h / 0.6);
}

.blog-card-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(to right, var(--primary), transparent);
  transition: width 0.5s ease;
}

.blog-card:hover .blog-card-progress {
  width: 100%;
}

/* Blog Sidebar */
.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .blog-sidebar {
    position: sticky;
    top: 7rem;
    align-self: start;
  }
}

.sidebar-search {
  position: relative;
}

.sidebar-search svg {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  color: var(--muted-foreground);
}

.sidebar-search input {
  width: 100%;
  padding: 0.75rem 0.75rem 0.75rem 2.5rem;
  border-radius: 8px;
  border: 1px solid oklch(from var(--border) l c h / 0.5);
  background: oklch(from var(--card) l c h / 0.4);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.3s ease;
}

.sidebar-search input::placeholder {
  color: var(--muted-foreground);
}

.sidebar-search input:focus {
  border-color: oklch(from var(--primary) l c h / 0.5);
}

.sidebar-section {
  display: flex;
  flex-direction: column;
}

.sidebar-section-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.sidebar-section-header svg {
  width: 1rem;
  height: 1rem;
  color: var(--primary);
}

.sidebar-section-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted-foreground);
}

.categories-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.category-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.625rem 0.75rem;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted-foreground);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s ease;
}

.category-btn:hover {
  background: oklch(from var(--secondary) l c h / 0.5);
  color: var(--foreground);
}

.category-btn.active {
  background: oklch(from var(--primary) l c h / 0.1);
  border-color: oklch(from var(--primary) l c h / 0.3);
  color: var(--primary);
}

.category-count {
  padding: 0.125rem 0.5rem;
  border-radius: 4px;
  background: oklch(from var(--secondary) l c h / 0.6);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

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

.newsletter-box {
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid oklch(from var(--border) l c h / 0.5);
  background: oklch(from var(--card) l c h / 0.4);
}

.newsletter-desc {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.newsletter-input {
  width: 100%;
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid oklch(from var(--border) l c h / 0.5);
  background: oklch(from var(--background) l c h / 0.5);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.3s ease;
}

.newsletter-input::placeholder {
  color: var(--muted-foreground);
}

.newsletter-input:focus {
  border-color: oklch(from var(--primary) l c h / 0.5);
}

.newsletter-btn {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: none;
  background: var(--primary);
  color: var(--primary-foreground);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.3s ease;
}

.newsletter-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.rss-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  border: 1px solid oklch(from var(--border) l c h / 0.5);
  background: oklch(from var(--card) l c h / 0.4);
  color: var(--muted-foreground);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.rss-link:hover {
  border-color: oklch(from var(--primary) l c h / 0.5);
  background: oklch(from var(--primary) l c h / 0.1);
  color: var(--primary);
}

/* ============================================
   DASHBOARD
   ============================================ */
.dashboard-container {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 280px;
  background: var(--card);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  z-index: 100;
  transition: transform 0.3s ease;
}

.sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--foreground);
}

.sidebar-logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), oklch(from var(--primary) l c h / 0.8));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.25rem;
}

.sidebar-logo-text {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.125rem;
}

.sidebar-logo-sub {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.sidebar-nav {
  flex: 1;
  padding: 1rem 0;
  overflow-y: auto;
}

.nav-section {
  padding: 0 1rem;
  margin-bottom: 1.5rem;
}

.nav-section-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
  padding: 0 0.75rem;
  margin-bottom: 0.5rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 8px;
  color: var(--muted-foreground);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.875rem;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.nav-item:hover {
  background: var(--secondary);
  color: var(--foreground);
}

.nav-item.active {
  background: oklch(from var(--primary) l c h / 0.15);
  color: var(--primary);
}

.nav-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.nav-item-badge {
  margin-left: auto;
  background: var(--border);
  color: var(--muted-foreground);
  font-size: 0.75rem;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
}

.sidebar-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
}

.main-content {
  flex: 1;
  margin-left: 280px;
  min-height: 100vh;
}

.top-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-menu-btn-dash {
  display: none;
  background: none;
  border: none;
  color: var(--foreground);
  cursor: pointer;
  padding: 0.5rem;
}

.page-title {
  font-size: 1.5rem;
  font-weight: 600;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.search-container {
  position: relative;
}

.search-input-dash {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 1rem 0.5rem 2.5rem;
  color: var(--foreground);
  font-size: 0.875rem;
  width: 300px;
  transition: all 0.2s ease;
}

.search-input-dash:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px oklch(from var(--primary) l c h / 0.15);
}

.search-icon-dash {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-foreground);
  width: 18px;
  height: 18px;
}

.content-area {
  padding: 2rem;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.page-header-info h1 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.page-header-info p {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.page-actions {
  display: flex;
  gap: 0.75rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 1200px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  transition: all 0.2s ease;
}

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

.stat-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.stat-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-card-icon.primary {
  background: oklch(from var(--primary) l c h / 0.15);
  color: var(--primary);
}

.stat-card-icon.success {
  background: oklch(0.7 0.15 150 / 0.15);
  color: #22c55e;
}

.stat-card-icon.warning {
  background: oklch(0.75 0.15 85 / 0.15);
  color: #f59e0b;
}

.stat-card-icon.info {
  background: oklch(0.7 0.15 250 / 0.15);
  color: #3b82f6;
}

.stat-card-value {
  font-size: 2rem;
  font-weight: 700;
  font-family: var(--font-mono);
}

.stat-card-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.data-table-container {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.data-table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  text-align: left;
  padding: 1rem 1.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
  background: var(--background);
  border-bottom: 1px solid var(--border);
}

.data-table td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

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

.data-table tr:hover td {
  background: var(--secondary);
}

.table-title {
  font-weight: 500;
  color: var(--foreground);
}

.table-subtitle {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  margin-top: 0.25rem;
}

.table-actions {
  display: flex;
  gap: 0.5rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.badge-shipped {
  background: oklch(0.7 0.15 150 / 0.15);
  color: #22c55e;
}

.badge-shipped .badge-dot {
  background: #22c55e;
}

.badge-progress {
  background: oklch(0.7 0.15 250 / 0.15);
  color: #3b82f6;
}

.badge-progress .badge-dot {
  background: #3b82f6;
}

.badge-archived {
  background: oklch(0.5 0 0 / 0.15);
  color: var(--muted-foreground);
}

.badge-archived .badge-dot {
  background: var(--muted-foreground);
}

.badge-featured {
  background: oklch(from var(--primary) l c h / 0.15);
  color: var(--primary);
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.tag {
  padding: 0.125rem 0.5rem;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95);
  transition: transform 0.2s ease;
}

.modal-overlay.active .modal {
  transform: scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  color: var(--muted-foreground);
  cursor: pointer;
  padding: 0.25rem;
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: var(--foreground);
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1.5rem;
  border-top: 1px solid var(--border);
}

/* Form Elements */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--foreground);
  font-size: 0.875rem;
  font-family: inherit;
  transition: all 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px oklch(from var(--primary) l c h / 0.15);
}

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

.form-hint {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-top: 0.375rem;
}

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

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

/* Section Content */
.section-content {
  display: none;
}

.section-content.active {
  display: block;
}

/* Responsive Dashboard */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
  }

  .mobile-menu-btn-dash {
    display: block;
  }

  .search-input-dash {
    width: 200px;
  }

  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .data-table-header {
    flex-direction: column;
    gap: 1rem;
  }
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.toast-success {
  border-left: 3px solid #22c55e;
}

.toast-error {
  border-left: 3px solid #ef4444;
}

.toast-warning {
  border-left: 3px solid #f59e0b;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
}

.empty-state-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  color: var(--muted-foreground);
}

.empty-state-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.empty-state-text {
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}

/* ============================================
   MODAL STYLES
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 1rem;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(0.95) translateY(10px);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.modal-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0;
}

.modal-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: var(--muted-foreground);
  font-size: 1.5rem;
  line-height: 1;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: var(--muted);
  color: var(--foreground);
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--muted);
}

/* Form Styles */
.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.625rem 0.875rem;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--foreground);
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--glow-color);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
  font-family: var(--font-mono);
}

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
}

.form-select option {
  background: var(--card);
  color: var(--foreground);
}

/* Checkbox styling */
input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}

/* Toast Styles */
.toast {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  animation: slideIn 0.3s ease;
  min-width: 280px;
}

.toast-success {
  border-left: 3px solid #22c55e;
}

.toast-error {
  border-left: 3px solid #ef4444;
}

.toast-warning {
  border-left: 3px solid #f59e0b;
}

.toast-success svg {
  color: #22c55e;
}

.toast-error svg {
  color: #ef4444;
}

.toast-warning svg {
  color: #f59e0b;
}

/* Responsive Modal */
@media (max-width: 640px) {
  .modal-overlay {
    padding: 0.5rem;
    align-items: flex-end;
  }

  .modal {
    max-height: 95vh;
    border-radius: 12px 12px 0 0;
  }

  .modal-overlay.active .modal {
    transform: translateY(0);
  }

  .modal-header {
    padding: 1rem;
  }

  .modal-body {
    padding: 1rem;
  }

  .modal-footer {
    padding: 0.875rem 1rem;
    flex-direction: column;
  }

  .modal-footer .btn {
    width: 100%;
  }
}

/* ============================================================
   PROJECT CARD — CLICKABLE
   ============================================================ */
.project-card-clickable {
  cursor: pointer;
}

.project-card-clickable:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px var(--glow-color-strong);
}

.project-card-clickable:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
}

.project-link-detail {
  color: var(--primary) !important;
  font-weight: 500;
}

.project-link-detail svg {
  stroke: var(--primary);
}

/* ============================================================
   PROJECT DETAIL PAGE
   ============================================================ */
.project-detail-section {
  padding: 6rem 0 4rem;
  min-height: 100vh;
}

/* Back link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  font-family: var(--font-mono);
  text-decoration: none;
  margin-bottom: 2.5rem;
  transition: color 0.2s ease, gap 0.2s ease;
}

.back-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.back-link:hover {
  color: var(--primary);
  gap: 0.75rem;
}

.back-link:hover svg {
  transform: translateX(-3px);
}

/* Header */
.pd-header {
  margin-bottom: 3rem;
  max-width: 720px;
}

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

.pd-year {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted-foreground);
  background: var(--secondary);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.pd-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--foreground) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pd-description {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.pd-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.pd-live-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.pd-live-btn svg {
  width: 16px;
  height: 16px;
}

/* Main grid */
.pd-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 900px) {
  .pd-grid {
    grid-template-columns: 1fr;
  }
}

/* Cards */
.pd-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pd-card:hover {
  border-color: oklch(from var(--primary) l c h / 0.4);
  box-shadow: 0 4px 20px var(--glow-color);
}

.pd-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.pd-card-header h2,
.pd-card-header h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

.pd-card-icon {
  width: 32px;
  height: 32px;
  background: oklch(from var(--primary) l c h / 0.1);
  border: 1px solid oklch(from var(--primary) l c h / 0.25);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pd-card-icon svg {
  width: 16px;
  height: 16px;
  stroke: var(--primary);
}

.pd-card-body {
  padding: 1.5rem;
}

.pd-long-desc {
  font-size: 0.95rem;
  color: var(--muted-foreground);
  line-height: 1.8;
  white-space: pre-wrap;
}

/* Tech Stack Terminal Card */
.pd-tech-card {
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

.pd-tech-card .terminal-dots {
  padding: 0.75rem 1rem;
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--border);
}

.pd-tech-card .terminal-title {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  border-bottom: 1px solid var(--border);
}

.pd-terminal-body {
  padding: 1.25rem 1.5rem;
  line-height: 2;
}

.pd-terminal-body p {
  margin: 0;
}

/* Stats Sidebar Card */
.pd-stats-body {
  padding: 0.5rem 0;
}

.pd-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.5rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s ease;
}

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

.pd-stat-row:hover {
  background: var(--secondary);
}

.pd-stat-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted-foreground);
}

.pd-stat-label svg {
  width: 14px;
  height: 14px;
}

.pd-stat-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--foreground);
  font-family: var(--font-mono);
}

.pd-stat-status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-sans);
  font-weight: 500;
}

/* Tags Cloud */
.pd-tags-cloud {
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pd-tag-chip {
  font-size: 0.8rem;
}

/* Links List */
.pd-links-list {
  display: flex;
  flex-direction: column;
}

.pd-link-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 1rem 1.5rem;
  text-decoration: none;
  color: var(--foreground);
  border-bottom: 1px solid var(--border);
  transition: background 0.15s ease;
}

.pd-link-item:last-child {
  border-bottom: none;
}

.pd-link-item:hover {
  background: var(--secondary);
}

.pd-link-item>svg:first-child {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--muted-foreground);
}

.pd-link-live>svg:first-child {
  stroke: var(--primary);
}

.pd-link-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  flex: 1;
  min-width: 0;
}

.pd-link-label {
  font-size: 0.875rem;
  font-weight: 500;
}

.pd-link-url {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  font-family: var(--font-mono);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pd-link-arrow {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--muted-foreground);
  transition: transform 0.2s ease, color 0.2s ease;
}

.pd-link-item:hover .pd-link-arrow {
  transform: translateX(3px);
  color: var(--primary);
}

.pd-no-links {
  padding: 1.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  text-align: center;
}

/* Bottom CTA */
.pd-bottom-cta {
  margin-top: 4rem;
  margin-bottom: 2rem;
}

.pd-cta-inner {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.pd-cta-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, var(--glow-color) 0%, transparent 70%);
  pointer-events: none;
}

.pd-cta-inner .terminal-dots {
  padding: 0.75rem 1rem;
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--border);
}

.pd-cta-content {
  padding: 2.5rem;
  position: relative;
}

.pd-cta-content .terminal-comment {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--muted-foreground);
  margin-bottom: 0.75rem;
}

.pd-cta-content h3 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--foreground) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pd-cta-content>p {
  color: var(--muted-foreground);
  margin-bottom: 1.75rem;
}

.pd-cta-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .pd-cta-actions {
    flex-direction: column;
  }

  .pd-cta-actions a {
    width: 100%;
    justify-content: center;
  }
}