:root {
  /* Base color values for easy theming */
  --panel-hex: #1b103a;   /* deep neon purple panel */
  --primary-hex: #6366f1; /* indigo (blue/purple) */
  --accent-hex: #22d3ee;  /* cyan/blue accent */
  --white-hex: #ffffff;
  --black-hex: #000000;

  /* Base colors built from hex values */
  --bg: #0a0516;          /* dark purple background */
  --panel: var(--panel-hex);
  --muted: #120a26;       /* muted purple surface */
  --text: #efe9ff;        /* light lavender text */
  --text-dim: #b7a9f0;    /* dim lavender text */
  --white: var(--white-hex);
  --black: var(--black-hex);

  /* Brand colors built from hex values */
  --primary: var(--primary-hex);
  --primary-600: #5457e0; /* darker indigo */
  --accent: var(--accent-hex);

  /* Panel/Background variations using hex values with opacity */
  --bg-blur: color-mix(in srgb, var(--panel-hex) 60%, transparent);

  /* Overlay variations using black with opacity */
  --overlay-light: color-mix(in srgb, var(--black-hex) 30%, transparent);
  --overlay-medium: color-mix(in srgb, var(--black-hex) 35%, transparent);
  --overlay-heavy: color-mix(in srgb, var(--black-hex) 50%, transparent);
  --overlay-dark: color-mix(in srgb, var(--black-hex) 70%, transparent);
  --overlay-darker: color-mix(in srgb, var(--black-hex) 90%, transparent);

  /* White opacity variations using hex values */
  --white-02: color-mix(in srgb, var(--white-hex) 2%, transparent);
  --white-03: color-mix(in srgb, var(--white-hex) 3%, transparent);
  --white-04: color-mix(in srgb, var(--white-hex) 4%, transparent);
  --white-06: color-mix(in srgb, var(--white-hex) 6%, transparent);
  --white-08: color-mix(in srgb, var(--white-hex) 8%, transparent);
  --white-14: color-mix(in srgb, var(--white-hex) 14%, transparent);

  /* Shadow variations using hex values */
  --shadow-base: color-mix(in srgb, var(--black-hex) 35%, transparent);
  --shadow-primary: color-mix(in srgb, var(--primary-hex) 35%, transparent);
  --shadow-heavy: color-mix(in srgb, var(--black-hex) 50%, transparent);

  /* Gradient variations using hex values */
  --gradient-accent: color-mix(in srgb, var(--accent-hex) 15%, transparent);
  --gradient-primary: color-mix(in srgb, var(--primary-hex) 12%, transparent);

  /* Other properties */
  --radius: 14px;
  --shadow: 0 10px 30px var(--shadow-base);
  /* Defaults for ripple tracking CSS variables (overridden per .btn by JS) */
  --mouse-x: -100px;
  --mouse-y: -100px;
  --r-scale: 1;
}

* { box-sizing: border-box; }

html, body {
  padding: 0;
  margin: 0;
  scroll-behavior: smooth;
  background: radial-gradient(1200px 600px at 20% -10%, rgba(34, 211, 238, 0.15), transparent 60%),
              radial-gradient(1200px 600px at 80% 110%, rgba(99, 102, 241, 0.12), transparent 60%),
              #0a0516;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.6;
}

/* Ensure consistent background across all pages */
html {
  background: radial-gradient(1200px 600px at 20% -10%, rgba(34, 211, 238, 0.15), transparent 60%),
              radial-gradient(1200px 600px at 80% 110%, rgba(99, 102, 241, 0.12), transparent 60%),
              #0a0516;
  min-height: 100vh;
}

/* Utility classes extracted from inline styles in templates */
.mt-0 { margin-top: 0 !important; }
.mt-8 { margin-top: 8px !important; }
.mt-10 { margin-top: 10px !important; }
.mt-16 { margin-top: 16px !important; }
.mt-24 { margin-top: 24px !important; }
.mb-16 { margin-bottom: 16px !important; }

.icon-inline { display: inline-flex; align-items: center; gap: 8px; }

.panel-simple {
  margin-top: 16px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 16px;
  background: rgba(255,255,255,.03);
}

.stack-v-12 { display: flex; flex-direction: column; gap: 12px; }

.max-w-640 { max-width: 640px; }


.container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-header {
  position: sticky;
  top: 20px;
  backdrop-filter: saturate(180%) blur(32px) brightness(1.15) contrast(1.1);
  background: 
    linear-gradient(135deg, 
      rgba(27, 16, 58, 0.4) 0%,
      rgba(34, 211, 238, 0.15) 50%,
      rgba(27, 16, 58, 0.3) 100%
    );
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 30px;
  margin: 0 20px;
  padding: 20px 0;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2),
    0 0 40px rgba(34, 211, 238, 0.15);
  z-index: 10;
  overflow: hidden;
}

.site-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    /* Subtle liquid distortion - much more natural */
    linear-gradient(90deg,
      transparent 0%,
      rgba(27, 16, 58, 0.15) 20%,
      rgba(27, 16, 58, 0.25) 40%,
      rgba(27, 16, 58, 0.15) 60%,
      rgba(27, 16, 58, 0.25) 80%,
      transparent 100%
    ),
    /* Subtle light positioning */
    radial-gradient(circle at 20% 80%, rgba(34, 211, 238, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.08) 0%, transparent 50%);
  border-radius: 30px;
  pointer-events: none;
  z-index: -1;
  filter: blur(0.5px);
}

.site-header::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    /* Very subtle liquid distortion - barely visible */
    linear-gradient(90deg,
      transparent 0%,
      rgba(27, 16, 58, 0.08) 30%,
      rgba(27, 16, 58, 0.12) 50%,
      rgba(27, 16, 58, 0.08) 70%,
      transparent 100%
    ),
    /* Noise texture for the fuzzy, hairy edge effect */
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0.08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.6'/%3E%3C/svg%3E");
  border-radius: 30px;
  pointer-events: none;
  z-index: -1;
  opacity: 0.4;
  filter: blur(0.8px);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Removed the horizontal line that was creating weird effects */

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 6px 0;
}

.logo {
  width: 40px;
  height: 40px;
  display: block;
}

.logo-link {
  position: relative;
  display: block;
}

.logo-link::before {
  content: '';
  position: absolute;
  top: -16px;
  left: -16px;
  right: -16px;
  bottom: -16px;
  background: 
    radial-gradient(circle, 
      rgba(34, 211, 238, 0.8) 0%, 
      rgba(34, 211, 238, 0.4) 30%, 
      rgba(99, 102, 241, 0.2) 60%, 
      transparent 80%
    );
  border-radius: 50%;
  opacity: 0.9;
  z-index: -1;
  filter: blur(16px);
  animation: liquid-glow 4s ease-in-out infinite alternate;
}

.logo-link::after {
  content: '';
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  background: 
    radial-gradient(circle, 
      rgba(255, 255, 255, 0.3) 0%, 
      transparent 70%
    );
  border-radius: 50%;
  opacity: 0.6;
  z-index: -1;
  filter: blur(8px);
  animation: liquid-glow 4s ease-in-out infinite alternate-reverse;
}

@keyframes liquid-glow {
  0% {
    opacity: 0.7;
    transform: scale(1) rotate(0deg);
    filter: blur(16px) brightness(1);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.02) rotate(1deg);
    filter: blur(18px) brightness(1.1);
  }
  100% {
    opacity: 0.8;
    transform: scale(1.05) rotate(-1deg);
    filter: blur(20px) brightness(0.95);
  }
}

@keyframes liquid-flow {
  0% {
    opacity: 0.3;
    transform: translateY(-50%) scaleX(1);
    filter: blur(1px) brightness(1);
  }
  25% {
    opacity: 0.6;
    transform: translateY(-50%) scaleX(1.1);
    filter: blur(1.5px) brightness(1.2);
  }
  50% {
    opacity: 0.8;
    transform: translateY(-50%) scaleX(0.9);
    filter: blur(0.8px) brightness(0.9);
  }
  75% {
    opacity: 0.5;
    transform: translateY(-50%) scaleX(1.05);
    filter: blur(1.2px) brightness(1.1);
  }
  100% {
    opacity: 0.3;
    transform: translateY(-50%) scaleX(1);
    filter: blur(1px) brightness(1);
  }
}

.brand-text .site-title {
  margin: 0;
  font-size: 18px;
  letter-spacing: .3px;
}

.brand-text .site-subtitle {
  margin: 2px 0 0 0;
  color: var(--text-dim);
  font-size: 13px;
}

.actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn {
  position: relative;
  display: inline-flex; /* inline-flex ensures consistent vertical sizing */
  align-items: center;  /* center icon/text vertically */
  gap: 8px;            /* consistent spacing between icon and text when present */
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  text-decoration: none;
  line-height: 1.2;     /* prevent tall line-height from affecting button height */
  background: 
    linear-gradient(135deg, 
      rgba(27, 16, 58, 0.4) 0%,
      rgba(34, 211, 238, 0.15) 50%,
      rgba(27, 16, 58, 0.3) 100%
    );
  backdrop-filter: saturate(180%) blur(25px) brightness(1.15) contrast(1.1);
  box-shadow: 
    0 6px 24px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease, transform .06s ease, border-color .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease, filter .2s ease;
  will-change: transform;
  overflow: hidden;
  z-index: 0; /* create stacking context for ripple below content */
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    /* Subtle liquid distortion */
    linear-gradient(90deg,
      transparent 0%,
      rgba(27, 16, 58, 0.15) 20%,
      rgba(27, 16, 58, 0.25) 40%,
      rgba(27, 16, 58, 0.15) 60%,
      rgba(27, 16, 58, 0.25) 80%,
      transparent 100%
    ),
    /* Subtle light positioning */
    radial-gradient(circle at 20% 80%, rgba(34, 211, 238, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.08) 0%, transparent 50%);
  border-radius: 10px;
  pointer-events: none;
  z-index: -2;
  filter: blur(0.5px);
}

.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    /* Very subtle liquid distortion */
    linear-gradient(90deg,
      transparent 0%,
      rgba(27, 16, 58, 0.08) 30%,
      rgba(27, 16, 58, 0.12) 50%,
      rgba(27, 16, 58, 0.08) 70%,
      transparent 100%
    ),
    /* Noise texture for the fuzzy, hairy edge effect */
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0.08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.6'/%3E%3C/svg%3E");
  border-radius: 10px;
  pointer-events: none;
  z-index: -1;
  opacity: 0.4;
  filter: blur(0.8px);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25);
}

/* Mouse-follow ripple positioning and animation */
.btn .ripple {
  position: absolute;
  top: 0;
  left: 0;
  width: 16px;
  height: 16px;
  pointer-events: none;
  border-radius: 999px;
  /* start hidden off-button */
  transform: translate(calc(var(--mouse-x, -100px) - 8px), calc(var(--mouse-y, -100px) - 8px)) scale(0);
  transition: transform .22s ease, opacity .45s ease;
  filter: blur(10px);
  opacity: 0;
  mix-blend-mode: screen;
}

.btn.rippling .ripple {
  /* expand and show at the mouse position */
  transform: translate(calc(var(--mouse-x, -100px) - 8px), calc(var(--mouse-y, -100px) - 8px)) scale(var(--r-scale, 10));
  opacity: .6; /* was .35; stronger glow */
}

.btn.rippling-out .ripple {
  /* fade away after mouse leaves */
  opacity: 0;
}

/* Faint blue ripple that tracks mouse; no purple */
.btn .ripple,
.btn.primary .ripple {
  background: radial-gradient(
    circle at center,
    color-mix(in srgb, var(--accent) 85%, transparent) 0%,
    color-mix(in srgb, var(--accent) 50%, transparent) 55%,
    transparent 100%
  );
  opacity: .6; /* was .35; stronger base intensity */
}

/* Remove purple fill on primary hover */
.btn.primary:hover {
  background:
    linear-gradient(135deg,
      rgba(27, 16, 58, 0.5) 0%,
      rgba(34, 211, 238, 0.2) 50%,
      rgba(27, 16, 58, 0.4) 100%
    );
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text);
  filter: none;
}

/* Repo button: remove static glow and purple hover */
.repo-button {
  box-shadow:
    0 6px 24px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}
.repo-button:hover {
  background:
    linear-gradient(135deg,
      rgba(27, 16, 58, 0.4) 0%,
      rgba(34, 211, 238, 0.15) 50%,
      rgba(27, 16, 58, 0.3) 100%
    );
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--text);
  transform: translateY(-1px);
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25);
}

.hero {
  padding: 64px 0;
}

.hero-title {
  font-size: 28px;
  margin: 0 0 10px 0;
}

.hero-text {
  color: var(--white);
  max-width: 800px;
  margin: 0 0 20px 0;
}

.hero-ctas {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.section {
  padding: 48px 0;
}

.section.muted {
  background: linear-gradient(0deg, var(--white-02), var(--white-02)), var(--muted);
  border-top: 1px solid var(--white-06);
  border-bottom: 1px solid var(--white-06);
}

.grid.two {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 860px) {
  .grid.two {
    grid-template-columns: 1fr 1fr;
  }
}

/* Ensure inner content wrapper inserted by JS aligns consistently */
.btn .btn-content,
.btn .icon-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Prevent SVGs from adding extra baseline height inside buttons */
.btn svg { display: block; }

.feature-list {
  margin: 0;
  padding-left: 18px;
}

.note {
  color: var(--white);
  font-size: 14px;
}

.site-footer {
  padding: 32px 0;
  color: var(--text-dim);
  text-align: center;
  font-size: 14px;
  border-top: 1px solid var(--white-06);
  background: var(--bg-blur);
}

/* Larger, prominent repo button with theme hover */
.repo-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px; /* match standard .btn size */
  font-weight: 500; /* align closer to base button weight */
  border-radius: 10px; /* match standard .btn radius */
  background: 
    linear-gradient(135deg, 
      rgba(27, 16, 58, 0.4) 0%,
      rgba(34, 211, 238, 0.15) 50%,
      rgba(27, 16, 58, 0.3) 100%
    );
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  text-decoration: none;
  backdrop-filter: saturate(180%) blur(25px) brightness(1.15) contrast(1.1);
  box-shadow: 
    0 6px 24px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease, transform .06s ease, background .2s ease, color .2s ease, box-shadow .2s ease, border-color .2s ease;
  overflow: hidden;
}

.repo-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    /* Subtle liquid distortion */
    linear-gradient(90deg,
      transparent 0%,
      rgba(27, 16, 58, 0.15) 20%,
      rgba(27, 16, 58, 0.25) 40%,
      rgba(27, 16, 58, 0.15) 60%,
      rgba(27, 16, 58, 0.25) 80%,
      transparent 100%
    ),
    /* Subtle light positioning */
    radial-gradient(circle at 20% 80%, rgba(34, 211, 238, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.08) 0%, transparent 50%);
  border-radius: 12px;
  pointer-events: none;
  z-index: -1;
  filter: blur(0.5px);
}

.repo-button::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    /* Very subtle liquid distortion */
    linear-gradient(90deg,
      transparent 0%,
      rgba(27, 16, 58, 0.08) 30%,
      rgba(27, 16, 58, 0.12) 50%,
      rgba(27, 16, 58, 0.08) 70%,
      transparent 100%
    ),
    /* Noise texture for the fuzzy, hairy edge effect */
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0.08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.6'/%3E%3C/svg%3E");
  border-radius: 12px;
  pointer-events: none;
  z-index: -1;
  opacity: 0.4;
  filter: blur(0.8px);
}

.repo-button:hover {
  background:
    linear-gradient(135deg,
      rgba(27, 16, 58, 0.4) 0%,
      rgba(34, 211, 238, 0.15) 50%,
      rgba(27, 16, 58, 0.3) 100%
    );
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--text);
  transform: translateY(-1px);
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25);
}

/** Spotlight carousels **/
.spotlight-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 16px 0 24px 0;
}

@media (min-width: 860px) {
  .spotlight-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.project-card {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 16px;
  background:
    linear-gradient(135deg,
      rgba(14, 34, 96, 0.32) 0%,
      rgba(14, 34, 96, 0.20) 50%,
      rgba(14, 34, 96, 0.28) 100%
    );
  backdrop-filter: saturate(180%) blur(25px) brightness(1.15) contrast(1.05); /* match spotlight-split */
  box-shadow:
    0 6px 24px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15),
    0 0 30px rgba(99, 102, 241, 0.12); /* blue glow */
}

.project-card::before {
  /* Match spotlight overlay but tinted deep blue */
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    linear-gradient(90deg,
      transparent 0%,
      rgba(14, 34, 96, 0.06) 30%,
      rgba(14, 34, 96, 0.08) 50%,
      rgba(14, 34, 96, 0.06) 70%,
      transparent 100%
    );
  border-radius: 20px;
  pointer-events: none;
  z-index: -1;
  filter: blur(1px);
  opacity: 0.3;
}

/* Remove extra noise overlay to match spotlight-split exactly */
.project-card::after {
  content: none;
  background: none;
}

.project-card:hover {
  transform: translateY(-1px); /* match spotlight-split */
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2),
    0 0 40px rgba(99, 102, 241, 0.15); /* blue glow */
}

/* Ensure project card content is above the pseudo-elements */
.project-card > * {
  position: relative;
  z-index: 1;
}

/* Reusable glass card that matches project-card appearance */
.glass-card {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 16px;
  background:
    linear-gradient(135deg,
      rgba(14, 34, 96, 0.32) 0%,
      rgba(14, 34, 96, 0.20) 50%,
      rgba(14, 34, 96, 0.28) 100%
    );
  backdrop-filter: saturate(180%) blur(25px) brightness(1.15) contrast(1.05);
  box-shadow:
    0 6px 24px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15),
    0 0 30px rgba(99, 102, 241, 0.12);
}
.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,
      transparent 0%,
      rgba(14, 34, 96, 0.06) 30%,
      rgba(14, 34, 96, 0.08) 50%,
      rgba(14, 34, 96, 0.06) 70%,
      transparent 100%
    );
  border-radius: 20px;
  pointer-events: none;
  z-index: -1;
  filter: blur(1px);
  opacity: 0.3;
}
.glass-card::after { content: none; }
.glass-card:hover {
  transform: translateY(-1px);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2),
    0 0 40px rgba(99, 102, 241, 0.15);
}
.glass-card > * { position: relative; z-index: 1; }

/* Title glass: compact card look for headings */
.title-glass {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  /* Less purple, slightly desaturated blue-gray for header badges */
  background:
    linear-gradient(135deg,
      rgba(24, 36, 64, 0.20) 0%,
      rgba(24, 36, 64, 0.12) 50%,
      rgba(24, 36, 64, 0.18) 100%
    );
  backdrop-filter: saturate(180%) blur(20px) brightness(1.12) contrast(1.04);
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.carousel {
  position: relative;
  margin-top: 10px;
}

.carousel-viewport {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: 
    linear-gradient(135deg, 
      rgba(27, 16, 58, 0.25) 0%,
      rgba(34, 211, 238, 0.08) 50%,
      rgba(27, 16, 58, 0.2) 100%
    );
  backdrop-filter: saturate(180%) blur(20px) brightness(1.05) contrast(1.02);
  box-shadow: 
    0 4px 16px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  aspect-ratio: 1.9/1; /* Made slightly taller - was 2.5:1 */
  width: 100%;
  transition: all 0.3s ease;
}

.carousel-viewport::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    /* Very subtle liquid distortion */
    linear-gradient(90deg,
      transparent 0%,
      rgba(27, 16, 58, 0.04) 30%,
      rgba(27, 16, 58, 0.06) 50%,
      rgba(27, 16, 58, 0.04) 70%,
      transparent 100%
    );
  border-radius: 20px;
  pointer-events: none;
  z-index: -1;
  filter: blur(1px);
  opacity: 0.2;
}

.carousel-viewport:hover {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 
    0 6px 20px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform .35s ease;
}

.slide {
  min-width: 100%;
  height: 100%; /* Changed from aspect-ratio to full height */
  display: grid;
  place-items: center;
  overflow: hidden;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  position: relative;
  z-index: 1; /* Ensure images are above other elements for click detection */
}

/* Placeholder slide visuals for when images haven't loaded */
.slide.placeholder {
  background: repeating-linear-gradient(135deg, var(--white-06), var(--white-06) 10px, var(--white-03) 10px, var(--white-03) 20px);
  color: var(--text-dim);
  font-weight: 600;
}
.slide.placeholder span {
  background: var(--overlay-light);
  padding: 6px 10px;
  border-radius: 8px;
}

/* Blur-up placeholder effect for images */
.blur-up {
  filter: blur(16px);
  transform: scale(1.02);
  transition: filter .4s ease, transform .4s ease, opacity .3s ease;
  opacity: 0.9;
}
.blur-up.is-loaded {
  filter: blur(0);
  transform: none;
  opacity: 1;
}

.carousel-btn {
  position: absolute; /* was relative */
  top: 50%;
  transform: translateY(-50%);
  background: 
    linear-gradient(135deg, 
      rgba(27, 16, 58, 0.6) 0%,
      rgba(34, 211, 238, 0.2) 50%,
      rgba(27, 16, 58, 0.5) 100%
    );
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: saturate(180%) blur(20px) brightness(1.1) contrast(1.05);
  box-shadow: 
    0 4px 16px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2),
    0 0 20px rgba(34, 211, 238, 0.15);
  transition: all 0.3s ease, background .2s ease, transform .06s ease;
  overflow: hidden;
  z-index: 2; /* ensure above images */
}

.carousel-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    /* Subtle liquid distortion */
    linear-gradient(90deg,
      transparent 0%,
      rgba(27, 16, 58, 0.2) 20%,
      rgba(27, 16, 58, 0.3) 40%,
      rgba(27, 16, 58, 0.2) 60%,
      rgba(27, 16, 58, 0.3) 80%,
      transparent 100%
    ),
    /* Subtle light positioning */
    radial-gradient(circle at 20% 80%, rgba(34, 211, 238, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  filter: blur(0.5px);
}

.carousel-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    /* Very subtle liquid distortion */
    linear-gradient(90deg,
      transparent 0%,
      rgba(27, 16, 58, 0.1) 30%,
      rgba(27, 16, 58, 0.15) 50%,
      rgba(27, 16, 58, 0.1) 70%,
      transparent 100%
    ),
    /* Noise texture for the fuzzy, hairy edge effect */
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0.08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.6'/%3E%3C/svg%3E");
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  opacity: 0.3;
  filter: blur(0.8px);
}

.carousel-btn:hover {
  background: 
    linear-gradient(135deg, 
      rgba(27, 16, 58, 0.7) 0%,
      rgba(34, 211, 238, 0.3) 50%,
      rgba(27, 16, 58, 0.6) 100%
    );
  transform: translateY(-50%) scale(1.05);
  box-shadow: 
    0 6px 20px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25),
    0 0 30px rgba(34, 211, 238, 0.2);
}

/* Ensure carousel button content is above the pseudo-elements */
.carousel-btn > * {
  position: relative;
  z-index: 1;
}

.carousel-btn.prev { left: 8px; }
.carousel-btn.next { right: 8px; }

/* Larger, dedicated carousel sections */
.carousel-section {
  position: relative;
  padding: 48px 0;
  overflow: hidden;
}

.carousel-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    /* Subtle liquid distortion */
    linear-gradient(90deg,
      transparent 0%,
      rgba(27, 16, 58, 0.08) 20%,
      rgba(27, 16, 58, 0.12) 40%,
      rgba(27, 16, 58, 0.08) 60%,
      rgba(27, 16, 58, 0.12) 80%,
      transparent 100%
    ),
    /* Subtle light positioning */
    radial-gradient(circle at 20% 80%, rgba(34, 211, 238, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
  filter: blur(0.8px);
  opacity: 0.6;
}

.carousel-section .container {
  max-width: 1280px;
}

/* Make carousels larger when marked as .large */
.carousel.large .slide {
  height: 100%; /* Remove aspect-ratio, use full height instead */
}
@media (max-width: 640px) {
  .carousel.large .slide {
    height: 100%; /* Remove aspect-ratio, use full height instead */
  }
}
.carousel.large .carousel-btn {
  width: 44px;
  height: 44px;
}

/* Spotlight split layout and typography */
.spotlight-split {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start; /* Changed back to start for fixed sizing */
  padding: 24px;
  border-radius: 20px;
  background: 
    linear-gradient(135deg, 
      rgba(27, 16, 58, 0.3) 0%,
      rgba(34, 211, 238, 0.1) 50%,
      rgba(27, 16, 58, 0.25) 100%
    );
  backdrop-filter: saturate(180%) blur(25px) brightness(1.15) contrast(1.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 
    0 6px 24px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15),
    0 0 30px rgba(34, 211, 238, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
}

.spotlight-split::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    /* Very subtle liquid distortion */
    linear-gradient(90deg,
      transparent 0%,
      rgba(27, 16, 58, 0.06) 30%,
      rgba(27, 16, 58, 0.08) 50%,
      rgba(27, 16, 58, 0.06) 70%,
      transparent 100%
    );
  border-radius: 20px;
  pointer-events: none;
  z-index: -1;
  filter: blur(1px);
  opacity: 0.3;
}

.spotlight-split:hover {
  transform: translateY(-1px);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2),
    0 0 40px rgba(34, 211, 238, 0.15);
}

/* Ensure spotlight-split content is above the pseudo-elements */
.spotlight-split > * {
  position: relative;
  z-index: 1;
}

@media (min-width: 860px) {
  .spotlight-split {
    grid-template-columns: 1fr 1fr;
  }
  .spotlight-split.reverse .spotlight-text {
    order: 2;
  }
  .spotlight-split.reverse .spotlight-media {
    order: 1;
  }
}

.spotlight-title {
  margin: 0 0 10px 0;
  font-size: 30px;
  line-height: 1.2;
}

@media (min-width: 860px) {
  .spotlight-title {
    font-size: 34px;
  }
}

.spotlight-desc {
  color: var(--text); /* keep spotlight descriptions non-white for hierarchy */
  font-size: 18px;
}

@media (min-width: 860px) {
  .spotlight-desc {
    font-size: 20px;
  }
}

/* Carousel title link styles */
.spotlight-title a {
  color: var(--white);
  text-decoration: none;
}

/* Spotlight text link styles */
.spotlight-text-link {
  color: inherit;
  text-decoration: none;
  display: block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.spotlight-text-link:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

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

/* Image Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: var(--overlay-darker);
  backdrop-filter: blur(5px);
}

.modal-content {
  position: relative;
  margin: auto;
  padding: 20px;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: var(--white);
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
  transition: opacity 0.2s ease;
}

.modal-close:hover {
  opacity: 0.7;
}

#modalImage {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 40px var(--shadow-heavy);
}

.modal-caption {
  margin-top: 15px;
  text-align: center;
}

.modal-caption p {
  color: var(--text);
  font-size: 16px;
  margin: 0;
  background: var(--overlay-dark);
  padding: 10px 20px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

/* Utility: screen-reader only */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/* Form styles */
.form-field { margin: 0 0 14px 0; }
.form-field label { display: block; margin: 0 0 6px 0; font-size: 14px; color: var(--text-dim); }
.input, .textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.input:focus, .textarea:focus {
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12);
  background: rgba(255, 255, 255, 0.04);
}
.textarea { resize: vertical; }

/* Repo search input alignment */
.repo-search-wrap input[type="search"] {
  font-size: 15px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: radial-gradient(1200px 600px at 20% -10%, var(--gradient-accent), transparent 60%),
                radial-gradient(1200px 600px at 80% 110%, var(--gradient-primary), transparent 60%),
                var(--bg);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header styles - consolidated with main site-header rule above */

/* Brand and button styles consolidated with main rules above */

/* Main content */
main {
    padding: 40px 0;
}

.section {
    margin-bottom: 40px;
}

h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--white);
}

.note {
    color: var(--text-dim);
    margin-bottom: 24px;
}


/* Footer */
.site-footer {
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: #a1a1aa;
    font-size: 14px;
}

/* Responsive design */
@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .actions {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

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

    .contact-box {
        flex-direction: column;
        text-align: center;
    }

    .contact-icon {
        margin-bottom: 8px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .contact-box {
        padding: 20px;
    }

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

    .btn {
        flex: 1;
        text-align: center;
        min-width: 0;
    }
}



/* Repository card liquid glass effect - matching the header style */

/* Glass effect for muted sections */


/* Section title utility: standardized subtitle styling across pages */
.section-title {
  /* Technology-esque monospace stack for titles */
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  color: var(--white);
  font-weight: 700;
  /* Responsive, consistently large size */
  font-size: clamp(28px, 3.2vw, 36px);
  line-height: 1.2;
  letter-spacing: 0.2px;
  margin-bottom: 16px; /* keep existing spacing harmony */
}


/* Technology-esque title font applied globally to headings */
h1, h2, h3, h4, .site-title, .hero-title, .spotlight-title {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-feature-settings: "calt" 0;
  color: var(--white);
}


/* Preserve original font for the brand title in the header "island" */
.site-header .site-title {
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

.type-caret {
  display: inline-block;
  width: 2px; /* thicker caret */
  height: 0.9em;
  background: currentColor;
  margin-left: 1px;
  vertical-align: -0.1em;
}

/* Blink only when typing is finished */
.type-caret.blink {
  animation: caret-blink 1s step-end infinite;
}

@keyframes caret-blink {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}


/* Light theme overrides using data-theme on <html> */
html[data-theme="light"] {
  /* Base palette for light mode */
  --bg: #f7f7fb;
  --panel-hex: #ffffff;
  --muted: #ffffff;
  --text: #0f1220;
  --text-dim: #4b5563;
  /* Keep brand colors consistent */
  --primary: var(--primary-hex);
  --primary-600: #4f52d6;
}

/* Override page background gradients for light mode */
html[data-theme="light"],
html[data-theme="light"] body {
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(34, 211, 238, 0.12), transparent 60%),
    radial-gradient(1200px 600px at 80% 110%, rgba(99, 102, 241, 0.10), transparent 60%),
    #f7f7fb;
  color: var(--text);
}

/* Light theme form controls: ensure visible borders/outlines */
html[data-theme="light"] .input,
html[data-theme="light"] .textarea,
html[data-theme="light"] .repo-search-input {
  border: 1px solid rgba(17, 24, 39, 0.18); /* subtle dark border for light bg */
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
}
html[data-theme="light"] .input:focus,
html[data-theme="light"] .textarea:focus,
html[data-theme="light"] .repo-search-input:focus {
  border-color: var(--primary-600);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 22%, transparent);
  background: #ffffff;
}

/* Ensure body copy is not white in light mode */
html[data-theme="light"] .hero-text,
html[data-theme="light"] .note {
  color: var(--text);
}

/* Revert light mode titles to grey */
html[data-theme="light"] .section-title {
  color: var(--text-dim);
}
html[data-theme="light"] .hero .hero-title {
  color: var(--text-dim);
}

/* Theme toggle icon-only button visibility rules */
#theme-toggle { display: inline-flex; align-items: center; justify-content: center; }
#theme-toggle svg { width: 18px; height: 18px; display: block; }
#theme-toggle .icon-sun, #theme-toggle .icon-moon { display: none; }
html[data-theme="light"] #theme-toggle .icon-sun { display: inline-block; }
html[data-theme="dark"] #theme-toggle .icon-moon { display: inline-block; }

/* Theme splash overlay for light↔dark transitions */
:root {
  --splash-x: 0px;
  --splash-y: 0px;
  --splash-size: 0px;
  --splash-color: #000000;
}

.theme-splash-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background: var(--splash-color);
  clip-path: circle(var(--splash-size) at var(--splash-x) var(--splash-y));
  -webkit-clip-path: circle(var(--splash-size) at var(--splash-x) var(--splash-y));
  transition: clip-path 600ms ease-out, -webkit-clip-path 600ms ease-out, background-color 300ms ease-out;
}

@media (prefers-reduced-motion: reduce) {
  .theme-splash-overlay {
    transition: none;
  }
}

/* View Transitions: circular reveal for theme switch (progressive enhancement) */
:root {
  --vt-x: 50vw;
  --vt-y: 50vh;
  --vt-r: 0px;
}

/* Disable default UA animations except during our custom theme transition */
:root:not(.theme-vt-active)::view-transition-old(root),
:root:not(.theme-vt-active)::view-transition-new(root) {
  animation: none;
}

/* Scope animations only while active to avoid interfering with other transitions */
.theme-vt-active::view-transition-group(root) { animation-duration: 600ms; }
.theme-vt-active::view-transition-image-pair(root) { animation-duration: 600ms; }
.theme-vt-active::view-transition-old(root) {
  animation: vt-circle-out 600ms ease-out forwards;
}
.theme-vt-active::view-transition-new(root) {
  animation: vt-circle-in 600ms ease-out forwards;
}

@keyframes vt-circle-in {
  from { clip-path: circle(0 at var(--vt-x) var(--vt-y)); }
  to   { clip-path: circle(var(--vt-r) at var(--vt-x) var(--vt-y)); }
}

@keyframes vt-circle-out {
  from { clip-path: circle(var(--vt-r) at var(--vt-x) var(--vt-y)); }
  to   { clip-path: circle(0 at var(--vt-x) var(--vt-y)); }
}

@media (prefers-reduced-motion: reduce) {
  .theme-vt-active::view-transition-old(root),
  .theme-vt-active::view-transition-new(root) {
    animation: none !important;
  }
}


/* === Reintegration of page-specific styles (undo split) === */

/* From static/css/index.css */
/* Make the two glass-card box titles smaller without affecting other section titles */
.glass-card .section-title {
  font-size: clamp(22px, 2.4vw, 28px);
}

/* Make the hero tagline title white for clarity and emphasis */
.hero .hero-title {
  color: var(--white);
}

/* Put a glass box around the hero intro */
.hero .hero-box {
  display: block; /* stretch to container width to align with lower boxes */
  width: 100%;
}

/* Glass card style aligned exactly with Selected Work project-card */
.glass-card {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 16px;
  background:
    linear-gradient(135deg,
      rgba(14, 34, 96, 0.32) 0%,
      rgba(14, 34, 96, 0.20) 50%,
      rgba(14, 34, 96, 0.28) 100%
    );
  backdrop-filter: saturate(180%) blur(25px) brightness(1.15) contrast(1.05);
  box-shadow:
    0 6px 24px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15),
    0 0 30px rgba(99, 102, 241, 0.12);
}
/* Sweep overlay to match project-card */
.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,
      transparent 0%,
      rgba(14, 34, 96, 0.06) 30%,
      rgba(14, 34, 96, 0.08) 50%,
      rgba(14, 34, 96, 0.06) 70%,
      transparent 100%
    );
  border-radius: 20px;
  pointer-events: none;
  z-index: -1;
  filter: blur(1px);
  opacity: 0.3;
}


/* From static/css/repos.css */
/* Page-specific styles for repos page */

/* Search input specific to repos page */
.repo-search-input {
  width: 100%;
  max-width: 480px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  color: var(--text);
  outline: none;
}

/* Image helper used only in repos carousels */
.cover-pointer { width: 100%; height: 100%; object-fit: cover; cursor: pointer; }

/* Repository card liquid glass effect */
.repo-card {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
  background:
    linear-gradient(135deg,
      rgba(27, 16, 58, 0.4) 0%,
      rgba(34, 211, 238, 0.15) 50%,
      rgba(27, 16, 58, 0.3) 100%
    );
  backdrop-filter: saturate(180%) blur(32px) brightness(1.15) contrast(1.1);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2),
    0 0 40px rgba(34, 211, 238, 0.15);
  overflow: hidden;
  transition: all 0.3s ease;
}

.repo-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    linear-gradient(90deg,
      transparent 0%,
      rgba(27, 16, 58, 0.15) 20%,
      rgba(27, 16, 58, 0.25) 40%,
      rgba(27, 16, 58, 0.15) 60%,
      rgba(27, 16, 58, 0.25) 80%,
      transparent 100%
    ),
    radial-gradient(circle at 20% 80%, rgba(34, 211, 238, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.08) 0%, transparent 50%);
  border-radius: 12px;
  pointer-events: none;
  z-index: -1;
  filter: blur(0.5px);
}

.repo-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    linear-gradient(90deg,
      transparent 0%,
      rgba(27, 16, 58, 0.08) 30%,
      rgba(27, 16, 58, 0.12) 50%,
      rgba(27, 16, 58, 0.08) 70%,
      transparent 100%
    ),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0.08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.6'/%3E%3C/svg%3E");
  border-radius: 12px;
  pointer-events: none;
  z-index: -1;
  opacity: 0.4;
  filter: blur(0.8px);
}

.repo-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25),
    0 0 50px rgba(34, 211, 238, 0.2);
}

/* Ensure repository card content is above the pseudo-elements */
.repo-card > * {
  position: relative;
  z-index: 1;
}

/* Tags (topics) styling */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 4px 0;
}
.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.12);
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(99,102,241,0.12));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.15);
}
.tag:hover {
  border-color: rgba(255,255,255,0.2);
}

/* Muted section wrapper used on repos */
.section.muted {
  background: color-mix(in srgb, var(--muted) 80%, rgba(255, 255, 255, 0.05));
  backdrop-filter: saturate(180%) blur(15px) brightness(1.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  margin: 0 20px;
}

/* From static/css/contact.css */
/* Page-specific styles for contact page */

/* Contact grid and boxes */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.contact-box {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: color-mix(in srgb, var(--bg-blur) 60%, rgba(255, 255, 255, 0.15));
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  backdrop-filter: saturate(200%) blur(25px) brightness(1.2);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.contact-box:hover {
  background: var(--white-08);
  border-color: var(--white-14);
  transform: translateY(-2px);
}

.contact-icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  background: color-mix(in srgb, var(--bg-blur) 70%, rgba(255, 255, 255, 0.2));
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: saturate(200%) blur(20px) brightness(1.15);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.contact-box:hover .contact-icon {
  background: var(--white-08);
  transform: scale(1.05);
}

.contact-info { flex: 1; }

.contact-info h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--white);
}

.contact-info p {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 8px;
}

/* Contact link styles */
.contact-link {
  position: relative;
  display: inline-block;
  padding: 6px 12px;
  background:
    linear-gradient(135deg,
      rgba(27, 16, 58, 0.5) 0%,
      rgba(34, 211, 238, 0.2) 50%,
      rgba(27, 16, 58, 0.4) 100%
    );
  color: var(--white);
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: saturate(180%) blur(20px) brightness(1.1) contrast(1.05);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2),
    0 0 20px rgba(34, 211, 238, 0.15);
  transition: all 0.3s ease;
  overflow: hidden;
}

.contact-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    linear-gradient(90deg,
      transparent 0%,
      rgba(27, 16, 58, 0.2) 20%,
      rgba(27, 16, 58, 0.3) 40%,
      rgba(27, 16, 58, 0.2) 60%,
      rgba(27, 16, 58, 0.3) 80%,
      transparent 100%
    ),
    radial-gradient(circle at 20% 80%, rgba(34, 211, 238, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
  border-radius: 6px;
  pointer-events: none;
  z-index: -1;
  filter: blur(0.5px);
}

.contact-link::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    linear-gradient(90deg,
      transparent 0%,
      rgba(27, 16, 58, 0.1) 30%,
      rgba(27, 16, 58, 0.15) 50%,
      rgba(27, 16, 58, 0.1) 70%,
      transparent 100%
    ),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0.08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.6'/%3E%3C/svg%3E");
  border-radius: 6px;
  pointer-events: none;
  z-index: -1;
  opacity: 0.3;
  filter: blur(0.8px);
}

.contact-link:hover {
  background:
    linear-gradient(135deg,
      rgba(27, 16, 58, 0.6) 0%,
      rgba(34, 211, 238, 0.3) 50%,
      rgba(27, 16, 58, 0.5) 100%
    );
  transform: translateY(-1px);
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25),
    0 0 30px rgba(34, 211, 238, 0.2);
}

/* Ensure contact-link content is above the pseudo-elements */
.contact-link > * { position: relative; z-index: 1; }

/* Contact page button sizing adjustments */
.contact-buttons .btn {
  align-self: flex-start;
  min-width: 240px;
  padding: 14px 20px;
}

.contact-buttons .btn .btn-content {
  padding: 2px 0;
}
