/**
 * STYLES.CSS - Light-first design with dark mode support
 * Modern, clean, subtly futuristic cybersecurity theme
 */

/* ==================== CSS VARIABLES ==================== */
:root {
  /* Light mode colors */
  --bg: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-elevated: #ffffff;
  --text: #1a1a1a;
  --text-secondary: #6c757d;
  --text-muted: #adb5bd;
  --border: #e9ecef;
  --border-strong: #dee2e6;
  --card: #ffffff;
  --card-hover: #f8f9fa;

  /* Accent colors - cyber blue with subtle gradient */
  --accent: #0066ff;
  --accent-light: #3385ff;
  --accent-dark: #0052cc;
  --accent-glow: rgba(0, 102, 255, 0.15);

  /* Semantic colors */
  --success: #28a745;
  --warning: #ffc107;
  --error: #dc3545;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 20px var(--accent-glow);

  /* Grid pattern for subtle cyber background */
  --grid-color: rgba(0, 102, 255, 0.03);

  /* Layout */
  --nav-height: 64px;
  --max-width: 1200px;
  --radius: 8px;
  --radius-lg: 12px;

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
  --font-mono: 'Consolas', 'Monaco', 'Courier New', monospace;
}

[data-theme="dark"] {
  --bg: #0a0e1a;
  --bg-secondary: #131829;
  --bg-elevated: #1a1f35;
  --text: #e8eaed;
  --text-secondary: #9aa0a6;
  --text-muted: #5f6368;
  --border: #292e47;
  --border-strong: #3a4264;
  --card: #131829;
  --card-hover: #1a1f35;

  --accent: #4d94ff;
  --accent-light: #6ba8ff;
  --accent-dark: #3380ff;
  --accent-glow: rgba(77, 148, 255, 0.2);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);

  --grid-color: rgba(77, 148, 255, 0.05);
}

/* ==================== RESET & BASE ==================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  /* Scroll offset now handled dynamically via JS for precise control */
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
  position: relative;
  overflow-x: hidden;
}

/* Subtle grid background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: -1;
  opacity: 0.4;
}

/* Dark Mode Premium Background: Subtle Accent Glow */
[data-theme='dark'] body::before {
  background-image:
    radial-gradient(circle at 50% -20%,
      color-mix(in srgb, var(--accent) 8%, transparent),
      transparent 70%);
  background-size: 100% 100%;
  opacity: 1;
}

/* Page load fade-in animation */
@keyframes pageLoad {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

body {
  animation: pageLoad 0.6s ease-out;
}

/* Section fade-in animation (applied via JS IntersectionObserver) */
@media (prefers-reduced-motion: no-preference) {
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }

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

  section.fade-in-visible {
    animation: fadeInUp 0.6s ease-out;
  }
}

/* ==================== SKIP LINK ==================== */
.skip-link {
  position: fixed;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: white;
  padding: 12px 24px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  z-index: 10000;
  box-shadow: var(--shadow-lg);
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 20px;
}

/* ==================== NAVIGATION ==================== */
nav {
  position: sticky;
  top: 0;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  height: var(--nav-height);
  z-index: 1000;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}

nav .nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-tabs {
  display: flex;
  gap: 4px;
  list-style: none;
}

.nav-tab {
  position: relative;
}

.nav-tab a {
  display: block;
  padding: 8px 16px;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: var(--radius);
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-tab a:hover {
  color: var(--text);
  background: var(--bg-secondary);
}

.nav-tab.active a {
  color: var(--accent);
  position: relative;
}

.nav-tab.active a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.theme-toggle:hover {
  background: var(--bg-secondary);
  border-color: var(--accent);
}

.theme-toggle:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ==================== LAYOUT ==================== */
#main-content {
  min-height: 100vh;
}

section {
  padding: 80px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

section:first-of-type {
  padding-top: 40px;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
  position: relative;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}

/* HUD corner brackets on section titles */
.section-title::before,
.section-title::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid var(--accent);
}

.section-title::before {
  top: -8px;
  left: -8px;
  border-right: none;
  border-bottom: none;
}

.section-title::after {
  bottom: -8px;
  right: -8px;
  border-left: none;
  border-top: none;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ==================== HERO SECTION ==================== */
#hero {
  padding: 120px 24px 80px;
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr 1.1fr;
  }
}

.hero-text h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--text), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text .title {
  font-size: 1.5rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-text .tagline {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-secondary {
  background: var(--bg-secondary);
  color: var(--text);
  border-color: var(--border-strong);
}

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

/* Terminal card */
.terminal-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
}

.terminal-header {
  background: var(--bg-secondary);
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
}

.terminal-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.terminal-window-title {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--text-secondary);
  opacity: 0.6;
  font-family: var(--font-mono);
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal-dot:nth-child(1) {
  background: #ff5f56;
}

.terminal-dot:nth-child(2) {
  background: #ffbd2e;
}

.terminal-dot:nth-child(3) {
  background: #27c93f;
}

.terminal-body {
  padding: 0;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text-secondary);
  height: 320px;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Scrollbar styling */
.terminal-body::-webkit-scrollbar {
  width: 8px;
}

.terminal-body::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

.terminal-body::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 4px;
}

.terminal-body::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* Firefox scrollbar */
.terminal-body {
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) var(--bg-secondary);
}

.terminal-content {
  padding: 24px;
}

.terminal-session {
  margin-bottom: 16px;
}

.terminal-clickable-cmd {
  cursor: pointer;
  color: var(--accent);
  transition: all 0.15s ease;
  padding-left: 4px;
}

.terminal-clickable-cmd:hover {
  color: var(--accent-dark);
  background: rgba(33, 150, 243, 0.1);
  padding-left: 8px;
}

.terminal-clickable-cmd:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.terminal-output {
  margin-top: 16px;
  animation: fadeInTerminal 0.3s ease-out;
}

@keyframes fadeInTerminal {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

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

.terminal-copy-btn {
  margin-top: 12px;
  padding: 4px 12px;
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: all 0.2s ease;
}

.terminal-copy-btn:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.terminal-line {
  margin-bottom: 4px;
}

.terminal-line.command {
  color: var(--accent);
  font-weight: 600;
}

.terminal-line.output {
  color: var(--text);
  padding-left: 16px;
}

/* ==================== CARDS ==================== */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.3s ease;
  position: relative;
  height: 100%;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border-color: var(--accent);
}

.card-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.card-text {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

/* ==================== ABOUT SECTION ==================== */
.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-text {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 32px;
  text-align: center;
}

.focus-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 48px;
}

.chip {
  padding: 8px 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 24px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  transition: all 0.2s ease;
}

.chip:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.stat {
  text-align: center;
  padding: 24px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.2s ease;
}

.stat:hover {
  border-color: var(--accent);
  transform: scale(1.05);
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  display: block;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ==================== SKILLS SECTION ==================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.skill-category {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.3s ease;
}

.skill-category:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.skill-category h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}

.skill-category ul {
  list-style: none;
}

.skill-category li {
  padding: 10px 0;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.skill-category li:last-child {
  border-bottom: none;
}

.skill-category li::before {
  content: '▸';
  color: var(--accent);
  font-weight: bold;
  font-size: 1em;
}

/* ==================== PROJECTS SECTION ==================== */
.project-filters {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 24px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 24px;
  color: var(--text-secondary);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.95rem;
}

.filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.filter-btn.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
}

.project-card {
  display: flex;
  flex-direction: column;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.tag {
  padding: 4px 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
  cursor: default;
  transition: all 0.2s ease;
}

.tag:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.project-links {
  display: flex;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
}

.project-link {
  padding: 8px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.project-link:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* ==================== PUBLICATIONS & LEADERSHIP ==================== */
.list-items {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.list-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.3s ease;
}

.list-item:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.list-item h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: var(--text);
}

.list-item .meta {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 12px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.list-item .meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.list-item .impact {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}

.list-item-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.list-item-link:hover {
  text-decoration: underline;
}

/* Experience highlights list */
.experience-highlights {
  list-style: none;
  margin: 16px 0;
}

.experience-highlights li {
  padding: 8px 0 8px 24px;
  color: var(--text-secondary);
  line-height: 1.7;
  position: relative;
}

.experience-highlights li::before {
  content: '▸';
  color: var(--accent);
  position: absolute;
  left: 0;
  font-weight: bold;
  font-size: 1em;
}


/* ==================== CONTACT SECTION ==================== */
.contact-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.contact-email {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.copy-email-btn {
  padding: 10px 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.copy-email-btn:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.contact-location {
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-size: 1.1rem;
}

.availability-text {
  color: var(--text-secondary);
  margin-bottom: 32px;
  font-size: 1.05rem;
  line-height: 1.7;
}

.social-links {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 32px;
}

.social-link {
  padding: 12px 28px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.social-link:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* ==================== INFO BUBBLE ==================== */
.info-bubble-container {
  position: fixed;
  bottom: 32px;
  left: 32px;
  z-index: 9999;
}

.info-bubble-btn {
  width: 40px;
  height: 40px;
  background: var(--card);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
}

.info-bubble-btn:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.info-bubble-btn:focus {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.info-popover {
  position: absolute;
  bottom: 50px;
  left: 0;
  background: var(--card);
  color: var(--text);
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  white-space: nowrap;
  font-size: 0.9rem;
  z-index: 1000;
}

.info-popover strong {
  color: var(--accent);
  margin-right: 6px;
}

@media (prefers-reduced-motion: reduce) {
  .info-bubble-btn {
    transition: none;
  }
}

/* ==================== BACK TO TOP BUTTON ==================== */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  z-index: 9999;
  box-shadow: var(--shadow-lg);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--accent-dark);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

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

/* ==================== MOBILE RESPONSIVENESS ==================== */
@media (max-width: 768px) {
  .nav-tabs {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Firefox */
    gap: 8px;
    padding: 0 8px;
  }

  .nav-tabs::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar but keep functionality */
  }

  .nav-tab a {
    white-space: nowrap;
    font-size: 0.9rem;
    padding: 8px 12px;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }

  .hero-text .title {
    font-size: 1.2rem;
  }

  .hero-text .tagline {
    font-size: 1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  section {
    padding: 60px 20px;
  }

  .quick-stats {
    grid-template-columns: 1fr;
  }

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

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

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
  }

  .info-bubble-container {
    bottom: 20px;
    left: 20px;
  }

  .info-bubble-btn {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }

  .info-popover {
    left: 0;
    bottom: 45px;
    font-size: 0.85rem;
  }
}

/* ==================== UTILITIES ==================== */
.hidden {
  display: none !important;
}

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

/* Focus visible for keyboard navigation */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}