/* UI/UX Design System: Cyber Dark Professional Portfolio */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700&family=Inter:wght@400;500;600&family=Fira+Code&display=swap');

:root {
  /* Cyber Dark Color Palette */
  --bg-base: #09090B; /* Zinc 950 */
  --bg-surface: #18181B; /* Zinc 900 */
  --bg-surface-hover: #27272A; /* Zinc 800 */
  
  --text-primary: #FAFAFA; /* Off-White */
  --text-secondary: #A1A1AA; /* Zinc 400 */
  
  --accent-cyan: #00E5FF; /* Neon Aqua */
  --accent-purple: #B388FF; /* Deep Cyber Purple */
  
  --border-subtle: #27272A; /* Zinc 800 */
  --border-hover: #00E5FF; 
  --card-shadow: none;

  /* Typography */
  --font-heading: 'Outfit', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-code: 'Fira Code', monospace;

  /* Specific Component Variables */
  --header-bg: rgba(9, 9, 11, 0.8); /* Zinc 950 semi-transparent */
  --header-border: rgba(255, 255, 255, 0.05);

  /* Category Color Tokens - Distinct from Cyan/Purple Theme Accents */
  --accent-speaking: #FFD54F; /* Cyber Amber/Gold */
  --accent-writing: #00E676;  /* Vibrant Green */
  --accent-event: #F06292;    /* Vibrant Pink/Rose */
}

:root[data-theme="light"] {
  --bg-base: #FAFAFA; /* Zinc 50 */
  --bg-surface: #F4F4F5; /* Zinc 100 */
  --bg-surface-hover: #E4E4E7; /* Zinc 200 */
  
  --text-primary: #09090B; /* Zinc 950 */
  --text-secondary: #52525B; /* Zinc 600 */
  
  --accent-cyan: #0891b2; /* Cyan 600 for contrast */
  --accent-purple: #9333ea; /* Purple 600 for contrast */
  
  --border-subtle: #E4E4E7; /* Zinc 200 */
  --border-hover: #0891b2; 
  --card-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);

  /* Specific Component Variables */
  --header-bg: rgba(250, 250, 250, 0.8); /* Zinc 50 semi-transparent */
  --header-border: rgba(9, 9, 11, 0.05);
}

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

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.7;
  font-size: 1.125rem; /* Base 18px */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* Layout */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
}

/* Floating Glass Pill Header */
.site-header {
  position: sticky;
  top: 1.5rem;
  z-index: 100;
  margin-bottom: 4rem;
  background-color: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--header-border);
  border-radius: 16px;
  padding: 0 1.5rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  transition: all 0.3s ease;
}

/* Header inner row: title, nav, and actions */
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; /* Allows mobile menu to slide down */
  padding: 0.75rem 0;
}

/* Action buttons */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  order: 2; /* Desktop: Right side */
}

/* Desktop single-row Navigation */
nav.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 0 auto; /* Optional: centers navigation if desired */
}

.appearance-menu-container {
  position: relative;
  display: flex;
  align-items: center;
}

button.appearance-toggle-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  padding: 0.5rem;
  border-radius: 50%;
  transition: color 0.2s ease, transform 0.2s ease;
}

button.appearance-toggle-btn:hover, button.appearance-toggle-btn[aria-expanded="true"] {
  color: var(--text-primary);
}

.appearance-dropdown {
  position: absolute;
  top: 120%;
  right: 0;
  width: 280px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.appearance-dropdown.hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  pointer-events: none;
}

.dropdown-header {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.75rem;
  margin-bottom: 0.25rem;
}

.dropdown-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.dropdown-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dropdown-section label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Segmented Control for Theme */
.segmented-control {
  display: flex;
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 2px;
}

.segment-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.segment-btn.active {
  background: var(--bg-surface);
  color: var(--text-primary);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Toggle Switch */
.dropdown-toggle-btn {
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  width: 44px;
  height: 24px;
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.2s, border-color 0.2s;
}

.dropdown-toggle-btn[aria-pressed="true"] {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

.toggle-switch {
  position: absolute;
  top: 1px;
  left: 1px;
  width: 20px;
  height: 20px;
  background: var(--text-secondary);
  border-radius: 50%;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s;
}

.dropdown-toggle-btn[aria-pressed="true"] .toggle-switch {
  transform: translateX(20px);
  background: #000;
}

/* Stepper Control for Text Size */
.stepper-control {
  display: flex;
  align-items: center;
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  overflow: hidden;
}

.stepper-btn {
  background: none;
  border: none;
  color: var(--text-primary);
  padding: 0.35rem 0.6rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.stepper-btn:hover {
  background: var(--bg-surface);
}

.stepper-value {
  padding: 0 0.5rem;
  font-size: 0.85rem;
  min-width: 45px;
  text-align: center;
  font-weight: 500;
}

/* Hamburger button — hidden by default on desktop */
.nav-toggle-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  padding: 0.5rem;
  border-radius: 6px;
  transition: color 0.2s ease;
  line-height: 0;
}

.nav-toggle-btn:hover {
  color: var(--text-primary);
}

/* By default show hamburger, hide close */
.nav-toggle-btn .close-icon {
  display: none;
}

.nav-toggle-btn .hamburger-icon {
  display: block;
}

/* When open, swap icons */
.nav-toggle-btn.is-open .close-icon {
  display: block;
}

.nav-toggle-btn.is-open .hamburger-icon {
  display: none;
}

nav a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

nav a:hover, nav a[aria-current="page"] {
  color: var(--text-primary);
}

/* Typography Scale */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 1rem;
}

/* Accessibility */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--accent-cyan);
  color: #000;
  padding: 8px 16px;
  z-index: 9999;
  transition: top 0.2s ease;
  font-weight: 700;
}

.skip-link:focus {
  top: 0;
}

*:focus-visible {
  outline: 2px solid var(--accent-cyan) !important;
  outline-offset: 2px;
}

/* Base HTML Scaling for Text Size */
html { font-size: 16px; }
html[data-text-size="90"] { font-size: 14.4px; }
html[data-text-size="100"] { font-size: 16px; }
html[data-text-size="110"] { font-size: 17.6px; }
html[data-text-size="120"] { font-size: 19.2px; }
html[data-text-size="130"] { font-size: 20.8px; }
html[data-text-size="140"] { font-size: 22.4px; }

[data-font="dyslexic"] * {
  font-family: 'Lexend', sans-serif !important;
}

h1 { font-size: clamp(2.5rem, 8vw, 4rem); letter-spacing: -0.03em; margin-top: 0; }
h2 { font-size: clamp(2rem, 6vw, 3rem); margin-top: 3rem; letter-spacing: -0.02em; }
h3 { font-size: clamp(1.5rem, 4vw, 2.25rem); font-weight: 600; margin-top: 2rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

a {
  color: var(--accent-cyan);
  text-decoration: underline;
  text-underline-offset: 4px;
}

a:hover {
  filter: brightness(1.2);
}

/* Gradient Text Effect */
.gradient-text {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Components */
.btn {
  display: inline-block;
  background-color: var(--bg-surface);
  color: var(--accent-cyan);
  padding: 0.75rem 1.75rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid var(--accent-cyan);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn:hover {
  background-color: rgba(0, 229, 255, 0.1);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
}

.card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
  box-shadow: var(--card-shadow);
}

.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 1rem;
}
.card h3 a {
  text-decoration: none;
  color: var(--text-primary);
}

/* --- Blog Listing UX --- */

/* Featured Post */
.featured-post-card {
  display: flex;
  flex-direction: column;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-bottom: 2rem;
  box-shadow: var(--card-shadow);
}

@media (min-width: 768px) {
  .featured-post-card {
    flex-direction: row;
    min-height: 350px;
  }
}

.featured-post-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-cyan);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  background-color: var(--bg-surface-hover);
}

.featured-image-container {
  flex: 1.2;
  min-height: 250px;
  border-bottom: 1px solid var(--border-subtle);
  filter: brightness(0.9);
  transition: filter 0.3s ease;
  overflow: hidden;
  display: flex;
}

.featured-image-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 768px) {
  .featured-image-container {
    border-bottom: none;
    border-right: 1px solid var(--border-subtle);
  }
}

.featured-post-card:hover .featured-image-container {
  filter: brightness(1);
}

.featured-content {
  flex: 1;
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-content h2 {
  font-size: 2.25rem;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  line-height: 1.15;
}

.featured-content .featured-summary {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  flex-grow: 1;
}

.featured-post-card:hover .read-more {
  transform: translateX(8px);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2.5rem;
}

.blog-card {
  display: flex;
  flex-direction: column;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: var(--card-shadow);
}

.blog-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-cyan);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  background-color: var(--bg-surface-hover);
}

.blog-card-image-container {
  height: 200px;
  border-bottom: 1px solid var(--border-subtle);
  filter: brightness(0.85);
  transition: filter 0.3s ease;
  overflow: hidden;
  display: flex;
}

.blog-card-image-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card:hover .blog-card-image-container {
  filter: brightness(1);
}

.blog-card-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card-content h3 {
  color: var(--text-primary);
  margin-top: 1rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  line-height: 1.3;
}

.blog-card-content p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.read-more {
  color: var(--accent-cyan);
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: auto;
  letter-spacing: 0.5px;
  transition: transform 0.2s ease;
}

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

/* Badges & Meta */
.blog-meta-badges, .post-meta-badges {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.badge {
  background: rgba(0, 229, 255, 0.1);
  color: var(--accent-cyan);
  padding: 0.35rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-code);
  border: 1px solid rgba(0, 229, 255, 0.2);
}

/* --- Reading Experience (Post) --- */
.blog-post {
  max-width: 70ch;
  margin: 0 auto;
}

.post-header {
  margin-bottom: 3rem;
  text-align: center;
}

.post-title {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.post-header .post-meta-badges {
  justify-content: center;
}

.lead-paragraph > p:first-of-type {
  font-size: 1.4rem;
  color: var(--text-primary);
  line-height: 1.6;
  font-weight: 500;
  margin-bottom: 2.5rem;
}

.post-divider {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-subtle), transparent);
  margin: 4rem 0;
}

/* Author Bio Card */
.author-bio-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 2.5rem;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.bio-content h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: var(--accent-purple);
}

.bio-content p {
  margin-bottom: 0;
  font-size: 1.05rem;
}

.nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.2s ease;
}

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

@media (max-width: 768px) {
  .post-title { font-size: 2.5rem; }
  .lead-paragraph > p:first-of-type { font-size: 1.25rem; }
  .author-bio-card { flex-direction: column; text-align: center; }
  .blog-grid { grid-template-columns: 1fr; }
}

.content p, .post-content p {
  color: var(--text-primary);
}

/* Markdown Content Styling */
.content img, .post-content img { 
  max-width: 100%; 
  height: auto; 
  border-radius: 8px; 
  display: block; 
  margin: 2rem auto; 
}
.content pre, .post-content pre {
  background-color: var(--bg-base);
  border: 1px solid var(--border-subtle);
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  font-family: var(--font-code);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}
.content code, .post-content code {
  font-family: var(--font-code);
  background-color: var(--bg-surface);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--accent-cyan);
}
.content pre code, .post-content pre code {
  color: var(--text-primary);
  background-color: transparent;
  padding: 0;
}
.content blockquote, .post-content blockquote {
  border-left: 4px solid var(--accent-purple);
  padding-left: 1.5rem;
  margin-left: 0;
  color: var(--text-secondary);
  font-style: italic;
  font-size: 1.1rem;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 0.95rem;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 1rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-primary);
  transition: all 0.2s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 1px var(--accent-cyan);
}

::placeholder {
  color: var(--text-secondary);
  opacity: 0.7; 
}

textarea {
  resize: vertical;
  min-height: 150px;
}

/* Utilities */
.site-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.site-title:hover {
  filter: none;
}

.site-logo {
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.site-title:hover .site-logo {
  transform: rotate(15deg) scale(1.1);
}

/* Logos & Portfolio */
.company-logo {
  max-height: 32px;
  width: auto;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.card:hover .company-logo {
  opacity: 1;
}

/* Career Section Navigation */
.career-nav-container {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 3rem;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.career-nav-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.career-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.career-nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 30px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.career-nav-link:hover {
  color: var(--text-primary);
  background: rgba(0, 229, 255, 0.1);
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 229, 255, 0.15);
}

.career-nav-link:active {
  transform: translateY(0);
}

@media (max-width: 768px) {
  .career-nav-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  justify-items: center;
  align-items: center;
  gap: 3.5rem;
  margin-top: 3rem;
  padding: 4rem 3rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  box-shadow: inset 0 2px 20px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.portfolio-grid::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  opacity: 0.2;
}

.portfolio-grid img {
  max-width: 160px;
  max-height: 32px;
  width: auto;
  height: auto;
  opacity: 0.5;
  filter: grayscale(100%) brightness(1.4);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  object-fit: contain;
}

.portfolio-grid img.logo-tall {
  max-height: 44px;
}

.portfolio-grid img:hover {
  opacity: 1;
  filter: grayscale(0%) brightness(1);
  transform: scale(1.08);
}

/* Reset trailing margins for consistent footer spacing */
main.content > section:last-child,
.carousel-section:last-child {
  margin-bottom: 0 !important;
}

.site-footer {
  margin-top: 6rem;
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    text-align: left;
  }
}

.footer-info p {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

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

.social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.social-link:hover, .social-link:focus {
  color: var(--accent-cyan);
  transform: translateY(-2px);
}

/* Timeline Styles */
.timeline {
  position: relative;
  margin: 2rem 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--border-subtle);
}

.timeline-item {
  position: relative;
  padding-left: 50px;
  margin-bottom: 2rem;
  --timeline-accent: var(--accent-purple); /* Default */
}

.timeline-item[data-accent="cyan"] {
  --timeline-accent: var(--accent-cyan);
}

.timeline-item[data-accent="purple"] {
  --timeline-accent: var(--accent-purple);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 2.5rem;
  width: 12px;
  height: 12px;
  background-color: var(--bg-surface);
  border: 2px solid var(--timeline-accent);
  border-radius: 50%;
  transition: all 0.3s ease;
  z-index: 2;
}

.timeline-item:hover::before {
  background-color: var(--timeline-accent);
  box-shadow: 0 0 10px var(--timeline-accent);
  transform: scale(1.2);
}

.timeline-header {
  display: grid;
  grid-template-columns: 1fr auto; /* Pinned date column */
  gap: 1.5rem;
  align-items: baseline;
  margin-bottom: 0.5rem;
}

.timeline-title {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
}

.timeline-date {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  flex-shrink: 0;
  text-align: right;
  font-family: var(--font-body);
  letter-spacing: 0.02em;
}

.timeline-company {
  color: var(--accent-cyan);
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1rem;
}

@media (max-width: 768px) {
  .timeline-header {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
  
  .timeline-date {
    text-align: left;
    margin-bottom: 0.5rem;
  }
}

/* TIDIR Diagram */
.tidir-pipeline {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 3rem 0;
}
@media (min-width: 768px) {
  .tidir-pipeline {
    flex-direction: row;
    align-items: stretch;
  }
}
.tidir-node {
  flex: 1;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.tidir-node:hover {
  transform: translateY(-5px);
  border-color: var(--accent-cyan);
}
.tidir-node::after {
  content: "↓";
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--accent-purple);
  font-weight: bold;
}
@media (min-width: 768px) {
  .tidir-node::after {
    content: "→";
    right: -20px;
    bottom: auto;
    top: 50%;
    transform: translateY(-50%);
    left: auto;
  }
}
.tidir-node:last-child::after {
  display: none;
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 1.5rem;
  }

  .site-header {
    top: 0.75rem;
    padding: 0 1rem;
    margin-bottom: 3.5rem; /* Increased to prevent overlap with sticky header */
  }

  /* Show hamburger on mobile */
  .nav-toggle-btn {
    display: flex;
  }

  /* Mobile nav drawer: hidden by default, slides down when .open is added */
  nav.main-nav {
    flex-direction: column;
    align-items: stretch;
    order: 3; /* Forces menu to its own row below title and actions */
    gap: 0;
    width: 100%;
    /* Slide animation via max-height */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0;
    border-top: 1px solid transparent;
  }

  nav.main-nav.open {
    max-height: 400px;
    padding-bottom: 1rem;
    border-top-color: var(--border-subtle);
  }

  nav a {
    display: block;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 1rem;
  }

  nav a:last-child {
    border-bottom: none;
  }

  /* Fluid typography handled by clamp() above */
}

/* AI Transparency */
.ai-transparency-footer {
  font-size: 0.85rem !important;
  opacity: 0.8;
  margin-top: 0.25rem;
  display: block;
}

.ai-transparency-card {
  background-color: rgba(0, 229, 255, 0.05);
  border: 1px dashed rgba(0, 229, 255, 0.3);
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 2rem;
  transition: all 0.3s ease;
}

.ai-transparency-card:hover {
  background-color: rgba(0, 229, 255, 0.1);
  border-color: rgba(0, 229, 255, 0.6);
}

.ai-transparency-content h4 {
  color: var(--accent-cyan);
  margin-top: 0;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  font-size: 1.1rem;
}

.ai-transparency-content p {
  margin-bottom: 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* CSP Extracted Utilities */
.page-header-title { margin-bottom: 0.5rem; font-size: 3.5rem; }
.page-header-subtitle { font-size: 1.25rem; margin-bottom: 4rem; color: var(--text-secondary); }
.post-divider-large { margin: 4rem 0; }
.previous-transmissions-title { margin-bottom: 2rem; }
.mt-1 { margin-top: 1rem; }
.mt-4 { margin-top: 4rem; }
.flex-between { display: flex; justify-content: space-between; }
.theme-icon-hidden { display: none; }
.theme-icon-visible { display: block; }
.icon-inline { vertical-align: text-bottom; margin-right: 0.5rem; }
.icon-inline-middle { vertical-align: middle; margin-right: 0.5rem; }

/* Unified Page Hero System */
.page-hero { position: relative; margin-bottom: 4rem; max-width: 750px; margin-top: 1rem; }
.page-hero h1 { font-size: 3.25rem; line-height: 1.1; margin-bottom: 1rem; letter-spacing: -0.03em; color: var(--text-primary); margin-top: 0; }
.page-hero .subtitle { font-size: 1.5rem; font-weight: 500; margin-bottom: 1rem; margin-top: -0.5rem; color: var(--text-primary); }
.page-hero .description { font-size: 1.15rem; line-height: 1.6; color: var(--text-secondary); margin-bottom: 2rem; }
.page-hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; margin-top: 1.5rem; }
.section-mb-large { margin-bottom: 6rem; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }
.card-service { margin-bottom: 0; display: flex; flex-direction: column; justify-content: space-between; }
.service-title { margin-top: 0; font-size: 1.2rem; }
.service-title-cyan { color: var(--accent-cyan); }
.service-title-purple { color: var(--accent-purple); }
.text-default { color: var(--text-primary); }
.service-desc { font-size: 0.95rem; }
.btn-service { text-align: center; margin-top: 1rem; }
.btn-outline-purple { background-color: transparent; border-color: var(--accent-purple); color: var(--accent-purple); }
.btn-outline-default { background-color: transparent; border-color: var(--border-subtle); color: var(--text-primary); }
.recent-writing-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 2rem; }
.mt-0 { margin-top: 0; }
.view-all-link { font-size: 0.95rem; font-weight: 500; }
.recent-writing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }

/* Advisory Specific Utilities */
.section-advisory { margin-top: 4rem; margin-bottom: 6rem; max-width: 800px; }
.advisory-subtitle { margin-top: 0.5rem; font-size: 2rem; }
.advisory-description { font-size: 1.25rem; line-height: 1.8; margin-top: 2rem; }
.advisory-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; margin-bottom: 4rem; }
.card-advisory { display: flex; flex-direction: column; justify-content: flex-start; }
.card-advisory-purple { border-color: var(--accent-purple); }

/* Span full width if it's the 3rd item in a 2-col layout */
@media (min-width: 768px) {
  .advisory-grid {
    grid-template-columns: 1fr 1fr;
  }
  .card-full-width {
    grid-column: span 2 !important;
  }
}
.advisory-heading { margin-top: 0; color: var(--accent-purple); font-size: 1.5rem; }
.advisory-heading-default { margin-top: 0; font-size: 1.5rem; }
.advisory-subtext { font-size: 1.05rem; margin-bottom: 1.5rem; }
.advisory-list { list-style-type: none; padding: 0; margin: 0; color: var(--text-secondary); }
.advisory-list li { position: relative; padding-left: 1.5rem; margin-bottom: 0.8rem; }
.bullet-cyan { position: absolute; left: 0; color: var(--accent-cyan); }
.tidir-title { margin-top: 4rem; text-align: center; }
.tidir-subtitle { text-align: center; color: var(--text-secondary); max-width: 800px; margin: 0 auto 2rem; }
.node-title { margin-top: 0; margin-bottom: 0.5rem; font-size: 1.1rem; }
.node-cyan { color: var(--accent-cyan); }
.node-purple { color: var(--accent-purple); }
.node-desc { font-size: 0.9rem; margin: 0; color: var(--text-secondary); }
.portfolio-title { margin-top: 6rem; text-align: center; }
.portfolio-subtitle { text-align: center; color: var(--text-secondary); margin-bottom: 2rem; }
.portfolio-grid-mb { margin-bottom: 5rem; }
.card-cta { text-align: center; max-width: 600px; margin: 0 auto; padding: 3rem; }
.cta-title { margin-top: 0; margin-bottom: 1rem; }
.cta-desc { margin-bottom: 2rem; }
.btn-cta { background-color: transparent; border-color: var(--accent-purple); color: var(--text-primary); padding: 1rem 2rem; font-size: 1.1rem; }

/* Animation Utilities */
.content {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.content.content-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Contact Specific Utilities */
.contact-desc { margin-bottom: 2rem; max-width: 700px; }
.contact-btn-wrapper { margin-bottom: 3rem; }

/* Contact form iframe wrapper — full width, no clipping */
.contact-form-wrapper {
  width: 100%;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  background-color: var(--bg-surface);
}

.contact-iframe {
  display: block;
  width: 100%;
  height: 1300px;
  border: none;
}

@media (max-width: 768px) {
  .contact-iframe {
    height: 1500px;
  }
}

/* Career Specific Utilities */
.career-hero-desc { font-size: 1.125rem; margin-bottom: 2rem; }
.career-resume-wrapper { margin-bottom: 3rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border-subtle); }
.career-section-title { margin-top: 3rem; }
.card-timeline { margin-bottom: 0; }
.timeline-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.5rem; flex-wrap: wrap; gap: 0.5rem; }
.timeline-title { margin: 0; display: flex; align-items: center; gap: 1rem; }
.timeline-date { color: var(--accent-cyan); font-family: var(--font-body); font-size: 0.9rem; font-weight: 600; }
.timeline-company { color: var(--text-primary); font-size: 1.05rem; margin-bottom: 1rem; font-weight: 500; }
.timeline-list { list-style-type: none; padding: 0; margin: 0; color: var(--text-secondary); }
.timeline-list li { position: relative; padding-left: 1.5rem; margin-bottom: 0.5rem; }
.timeline-bullet { position: absolute; left: 0; color: var(--timeline-accent); }
.card-transparent { border-color: rgba(255,255,255,0.05); background: transparent; }
.community-list { display: flex; flex-direction: column; gap: 1rem; }
.edu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.card-edu { margin-bottom: 0; display: flex; align-items: flex-start; gap: 1rem; }
.badge-edu { background-color: var(--accent-purple); color: var(--bg-base); padding: 0.5rem; border-radius: 4px; font-weight: bold; }
.badge-exec { background-color: var(--accent-cyan); color: var(--bg-base); padding: 0.5rem; border-radius: 4px; font-weight: bold; }
.edu-title { margin: 0; }
.edu-desc { font-size: 0.9rem; margin-bottom: 0; }
.cert-grid { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }
.cert-badge {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.05), rgba(179, 136, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.6rem 1.2rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  display: inline-block;
}

[data-theme="light"] .cert-badge {
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.cert-badge:hover {
  border-color: var(--accent-purple);
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.15), rgba(179, 136, 255, 0.15));
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(179, 136, 255, 0.2);
}

/* Horizontal Scroll Carousel System */
.carousel-section {
  margin-top: 1.5rem;
  margin-bottom: 3.5rem;
}

.glass-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  padding: 1.5rem 0.5rem; /* Increased padding for hover room */
  margin: 0;
}

.glass-masonry {
  columns: 2;
  column-gap: 1.5rem;
  width: 100%;
}

.glass-masonry .glass-card {
  break-inside: avoid;
  margin-bottom: 2rem; /* Increased for hover room */
  display: inline-block; /* Essential for columns logic height support */
  width: 100%;
}

@media (max-width: 900px) {
  .glass-masonry {
    columns: 1;
  }
}

.glass-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 1.5rem;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

[data-theme="dark"] .glass-card {
  background: rgba(24, 24, 27, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.glass-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-cyan);
  background: var(--bg-surface-hover);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .glass-card:hover {
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.glass-card.card-purple {
  border-color: rgba(179, 136, 255, 0.2);
}

.glass-card.card-purple:hover {
  border-color: var(--accent-purple);
}

.glass-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.glass-icon-cyan {
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.glass-icon-purple {
  color: var(--accent-purple);
  flex-shrink: 0;
}

.glass-title {
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
  letter-spacing: -0.01em;
}

.glass-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
  margin-top: auto;
}

/* Education Wide Cards */
.glass-card-wide {
  flex: 0 0 400px;
}

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

.glass-cert-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}
.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-top: 3rem;
}

@media (min-width: 900px) {
  .bento-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.bento-col {
  display: flex;
  flex-direction: column;
}

.bento-community-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.volunteer-card {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 1.25rem;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.volunteer-card:hover {
  transform: translateX(6px);
  border-color: var(--accent-cyan);
  background-color: var(--bg-surface-hover);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.volunteer-icon {
  color: var(--accent-cyan);
  flex-shrink: 0;
  margin-top: 2px;
}

.award-icon {
  color: var(--accent-purple);
  flex-shrink: 0;
  margin-top: 2px;
}

.volunteer-content {
  display: flex;
  flex-direction: column;
}

.volunteer-org {
  color: var(--text-primary);
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.volunteer-role {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.4;
}

.bento-edu-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.bento-edu-stack .card-edu {
  margin-bottom: 0;
  padding: 1.5rem;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.bento-cert-title {
  margin-top: 0;
}

.bento-cert-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Showcase Controls & Filtering */
.glass-icon-purple {
  color: var(--accent-purple);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.glass-icon-cyan {
  color: var(--accent-cyan);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.showcase-controls {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  backdrop-filter: blur(10px);
}

@media (min-width: 768px) {
  .showcase-controls {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap; /* Prevent wrapping even if tight */
  }
}

.filter-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-tab {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.6rem 1.2rem;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.tab-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-secondary);
  transition: all 0.3s ease;
}

.dot-speaking { background: var(--accent-speaking); box-shadow: 0 0 8px var(--accent-speaking); }
.dot-writing { background: var(--accent-writing); box-shadow: 0 0 8px var(--accent-writing); }
.dot-event { background: var(--accent-event); box-shadow: 0 0 8px var(--accent-event); }

.filter-tab.active .tab-dot {
  background: var(--bg-base);
  box-shadow: none;
}

.filter-tab:hover {
  border-color: var(--accent-cyan);
  color: var(--text-primary);
}

.filter-tab.active {
  background: var(--text-primary);
  border-color: var(--text-primary);
  color: var(--bg-base) !important;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.filter-count {
  font-size: 0.8rem;
  opacity: 0.5;
  margin-left: 0.4rem;
  font-weight: 500;
  transition: opacity 0.3s ease;
}

.filter-tab.active .filter-count,
.filter-tab:hover .filter-count {
  opacity: 0.8;
}

/* Dynamic Active Tab Colors (via JS or specific classes) */
.filter-tab.active[data-filter="speaking"] { background: var(--accent-speaking); border-color: var(--accent-speaking); box-shadow: 0 0 15px rgba(255, 213, 79, 0.4); }
.filter-tab.active[data-filter="writing"] { background: var(--accent-writing); border-color: var(--accent-writing); box-shadow: 0 0 15px rgba(0, 230, 118, 0.4); }
.filter-tab.active[data-filter="event"] { background: var(--accent-event); border-color: var(--accent-event); box-shadow: 0 0 15px rgba(240, 98, 146, 0.4); }

/* Year Dividers */
.year-divider {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  margin-top: 3rem;
}

.year-label {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary); /* Neutral default */
  font-family: var(--font-display);
  letter-spacing: 1px;
}

.year-line {
  flex-grow: 1;
  height: 1px;
  background: linear-gradient(to right, var(--text-secondary), transparent); /* Neutral default */
  opacity: 0.3;
  transition: background 0.4s ease;
}

/* Dynamic Year Headers based on Filter Class */
.filter-speaking .year-label { color: var(--accent-speaking); }
.filter-speaking .year-line { background: linear-gradient(to right, var(--accent-speaking), transparent); }

.filter-writing .year-label { color: var(--accent-writing); }
.filter-writing .year-line { background: linear-gradient(to right, var(--accent-writing), transparent); }

.filter-event .year-label { color: var(--accent-event); }
.filter-event .year-line { background: linear-gradient(to right, var(--accent-event), transparent); }

.glass-card.hidden {
  display: none !important;
}

/* Category Accents (Badges & Links) */
.glass-card[data-category="speaking"] .category-badge { background: rgba(255, 213, 79, 0.2) !important; color: var(--accent-speaking) !important; border: 1px solid rgba(255, 213, 79, 0.3); }
.glass-card[data-category="writing"] .category-badge { background: rgba(0, 230, 118, 0.2) !important; color: var(--accent-writing) !important; border: 1px solid rgba(0, 230, 118, 0.3); }
.glass-card[data-category="event"] .category-badge { background: rgba(240, 98, 146, 0.2) !important; color: var(--accent-event) !important; border: 1px solid rgba(240, 98, 146, 0.3); }

.secondary-badge {
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.glass-card[data-category="speaking"] .category-accent { color: var(--accent-speaking) !important; }
.glass-card[data-category="writing"] .category-accent { color: var(--accent-writing) !important; }
.glass-card[data-category="event"] .category-accent { color: var(--accent-event) !important; }

.year-group.hidden {
  display: none !important;
}

.no-results {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-secondary);
}

.glass-title-link {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s;
}

.glass-title-link:hover {
  color: var(--accent-cyan);
}

.glass-action-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--accent-cyan);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.2s ease;
  padding: 0.25rem 0; /* Vertical alignment */
}

.glass-action-link:hover {
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.4);
}

/* Card Specific Link Accents */
.glass-card.card-purple .glass-action-link { color: var(--accent-purple); }
.glass-card.card-purple .glass-action-link:hover { text-shadow: 0 0 8px rgba(179, 136, 255, 0.4); }

.glass-icon-link {
  color: var(--text-secondary);
  flex-shrink: 0;
  transition: color 0.2s;
}

.glass-icon-link:hover {
  color: var(--accent-cyan);
}

.hidden {
  display: none !important;
}

/* Floating Back to Top Button */
.back-to-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3rem;
  height: 3rem;
  background: var(--bg-surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  cursor: pointer;
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, 
              border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top-btn:hover {
  transform: translateY(-3px);
  border-color: var(--accent-cyan);
  background: rgba(0, 229, 255, 0.1);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
}

.back-to-top-btn:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 2px;
}

