/* CSS Variables - Premium Dark Theme */
:root {
  /* Color Palette */
  --color-bg-primary: #0a0a0a;
  --color-bg-secondary: #111111;
  --color-bg-card: #161616;
  --color-accent: #22c55e;
  --color-accent-hover: #16a34a;
  --color-command: #FCD0A1;
  --color-text-primary: #ffffff;
  --color-text-secondary: #a3a3a3;
  --color-border: #262626;
  
  /* Type Scale */
  --type-display: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --type-body: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --type-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --type-leading: 1.5;
  --type-tracking: -0.02em;
  --type-tracking-tight: -0.04em;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-bg-primary);
  color: var(--color-text-primary);
  font-family: var(--type-body);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: var(--type-leading);
  letter-spacing: var(--type-tracking);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.font-mono {
  font-family: var(--type-mono);
}

/* Page fade-in animation */
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.page-fade-in {
  animation: pageFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Scroll-triggered fade-in */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Terminal cursor blink */
@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.cursor-blink {
  animation: blink 1s infinite;
}

.bg-grid {
  position: relative;
  background-color: var(--color-bg-primary);
  background-image: 
    radial-gradient(ellipse at 20% 20%, rgba(34, 197, 94, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(34, 197, 94, 0.02) 0%, transparent 50%);
}

.bg-grid::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(34, 197, 94, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 197, 94, 0.03) 1px, transparent 1px),
    repeating-radial-gradient(ellipse at 15% 35%, rgba(34, 197, 94, 0.22) 0 1px, transparent 1px 44px),
    repeating-radial-gradient(ellipse at 85% 60%, rgba(34, 197, 94, 0.16) 0 1px, transparent 1px 36px),
    repeating-radial-gradient(ellipse at 55% 10%, rgba(34, 197, 94, 0.14) 0 1px, transparent 1px 58px),
    repeating-radial-gradient(ellipse at 30% 85%, rgba(34, 197, 94, 0.1) 0 1px, transparent 1px 64px),
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(34, 197, 94, 0.08), transparent 60%);
  background-size: 48px 48px, 48px 48px, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%;
  background-attachment: fixed;
  -webkit-mask-image: radial-gradient(ellipse 130% 95% at 50% 10%, #000 0%, rgba(0, 0, 0, 0.5) 55%, transparent 100%);
  mask-image: radial-gradient(ellipse 130% 95% at 50% 10%, #000 0%, rgba(0, 0, 0, 0.5) 55%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.bg-grid::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse 60% 40% at 80% 80%, rgba(34, 197, 94, 0.02), transparent);
  pointer-events: none;
  z-index: 1;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Navigation */
nav {
  background-color: rgba(10, 10, 10, 0.95);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 1rem 0;
  backdrop-filter: blur(10px);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--type-mono);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-logo span {
  color: var(--color-accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

@media (max-width: 768px) {
  .nav-links {
    gap: 1.25rem;
  }
}

.nav-link {
  font-family: var(--type-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  text-decoration: none;
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.2s ease;
}

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

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

/* Main content */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Section headings */
.section-heading {
  font-family: var(--type-mono);
  color: var(--color-accent-cyan);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(42, 42, 62, 0.4);
}

/* Card styles */
.card {
  position: relative;
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Cursor pointer on clickable elements */
a, button, [role="button"], .card, .tag, .social-link, .project-card, .contact-card {
  cursor: pointer;
}

/* Status badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

@keyframes badgePulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
  }
}

.status-online {
  background-color: rgba(34, 197, 94, 0.1);
  color: var(--color-accent);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.status-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background-color: var(--color-accent);
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.8); }
}

/* Tags */
.tag {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-family: var(--type-mono);
  transition: all 0.2s ease;
}

.tag:hover {
  transform: translateY(-1px);
}

.tag-cyan {
  background-color: rgba(34, 197, 94, 0.1);
  color: var(--color-accent);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.tag-green {
  background-color: rgba(34, 197, 94, 0.1);
  color: var(--color-accent);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.tag-orange {
  background-color: rgba(34, 197, 94, 0.1);
  color: var(--color-accent);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

/* Bento grid layout */
.bento-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto;
}

.bento-grid .col-span-2 {
  grid-column: span 2;
}

.bento-grid .row-span-2 {
  grid-row: span 2;
}

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

  .bento-grid .col-span-2 {
    grid-column: span 1;
  }
}

/* Proficiency bars */
.proficiency-bar {
  height: 0.25rem;
  background-color: var(--color-border);
  border-radius: 9999px;
  overflow: hidden;
}

.proficiency-fill {
  height: 100%;
  border-radius: 9999px;
  transition: width 0.5s ease;
}

/* Grid layout for sections */
.grid {
  display: grid;
  gap: 1rem;
}

.grid-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 768px) {
  .grid-cols-2,
  .grid-cols-4 {
    grid-template-columns: 1fr;
  }
}

.md\:grid-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.md\:grid-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {
  .md\:grid-cols-2,
  .md\:grid-cols-3 {
    grid-template-columns: 1fr;
  }
}

/* Flex utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-8 > * + * { margin-top: 2rem; }

.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }

.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 4rem; }
.ml-2 { margin-left: 0.5rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

.text-center { text-align: center; }
.text-left { text-align: left; }

.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }

.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.leading-relaxed { line-height: 1.625; }

.text-cyan { color: var(--color-accent-cyan); }
.text-green { color: var(--color-accent-green); }
.text-orange { color: var(--color-accent-orange); }
.text-primary { color: var(--color-text-primary); }
.text-secondary { color: var(--color-text-secondary); }

/* Hero section */
.hero {
  min-height: calc(100vh - 4rem);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.hero-eyebrow {
  font-family: var(--type-mono);
  font-size: 0.875rem;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: var(--space-lg);
}

.hero-title {
  font-family: var(--type-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: var(--space-xl);
  color: var(--color-text-primary);
}

.hero-title .highlight {
  color: var(--color-accent);
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  max-width: 500px;
  margin-bottom: var(--space-2xl);
}

.hero-cta {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.5rem;
  font-family: var(--type-body);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: none;
}

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

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-1px);
}

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

.btn-secondary:hover {
  border-color: var(--color-text-secondary);
  transform: translateY(-1px);
}

/* Terminal window */
.terminal-window {
  max-width: 42rem;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 0.75rem;
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  padding: 0;
  aspect-ratio: 16 / 10;
  display: flex;
  flex-direction: column;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background-color: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--color-border);
  border-radius: 0.75rem 0.75rem 0 0;
}

.terminal-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
}

.terminal-dot.red { background-color: #ff5f56; }
.terminal-dot.yellow { background-color: #ffbd2e; }
.terminal-dot.green { background-color: #27c93f; }

.terminal-title {
  font-family: var(--type-mono);
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  margin-left: 0.5rem;
}

.terminal-content {
  flex: 1;
  text-align: left;
  padding: 1rem;
  overflow-y: auto;
  scroll-behavior: smooth;
}

.terminal-content::-webkit-scrollbar {
  display: none;
}

.terminal-content {
  scrollbar-width: none;
}

.terminal-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
  background-color: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--color-border);
  border-radius: 0 0 0.75rem 0.75rem;
  font-family: var(--type-mono);
  font-size: 0.625rem;
  color: var(--color-text-secondary);
}

.terminal-status-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.terminal-status-dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background-color: var(--color-accent);
}

.terminal-line {
  margin-bottom: 0.5rem;
  min-height: 1.2em;
}

.terminal-prompt {
  color: var(--color-accent);
  font-family: var(--type-mono);
}

.terminal-command {
  color: var(--color-command);
  font-family: var(--type-mono);
  font-size: 0.875rem;
}

.terminal-output {
  color: var(--color-text-primary);
  font-family: var(--type-mono);
  font-size: 0.875rem;
}

.terminal-highlight {
  color: var(--color-accent);
  font-family: var(--type-mono);
  font-size: 0.875rem;
  font-weight: 600;
}

.terminal-cursor {
  display: inline-block;
  width: 0.5em;
  height: 1em;
  background-color: var(--color-accent);
  margin-left: 2px;
  animation: cursorBlink 1s step-end infinite;
  vertical-align: text-bottom;
}

@keyframes cursorBlink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* Social links */
.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  color: var(--color-text-secondary);
  padding: 0;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.social-link svg {
  width: 1.25rem;
  height: 1.25rem;
  transition: transform 0.2s ease;
}

.social-link:hover {
  color: var(--color-text-primary);
  border-color: var(--color-accent);
  transform: translateY(-1px);
}

/* Stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

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

.stat-card {
  text-align: center;
  padding: 2rem 1rem;
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-accent);
  font-family: var(--type-mono);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  font-family: var(--type-body);
}

/* Project cards */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .project-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  
  .card {
    padding: 1.25rem;
  }
}

.project-card {
  text-decoration: none;
  display: block;
}

.project-title {
  transition: color 0.3s ease;
}

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

.project-diagram {
  margin-bottom: 1rem;
}

.project-diagram-inner {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 0.5rem;
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-diagram-text {
  color: var(--color-text-secondary);
  font-size: 0.875rem;
}

/* Certification cards */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

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

.cert-card {
  text-align: center;
}

.cert-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1rem auto;
  border-radius: 50%;
  background-color: var(--color-bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
}

.cert-icon svg {
  width: 2rem;
  height: 2rem;
}

.cert-icon img {
  width: 1.5rem;
  height: 1.5rem;
  object-fit: contain;
}

.cert-card:hover .cert-icon {
  border-color: var(--color-accent-cyan);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.25);
}

/* Experience timeline */
.experience-card {
  margin-bottom: 1rem;
}

.experience-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .experience-header {
    flex-direction: column;
  }
}

.experience-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background-color: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.2);
  flex-shrink: 0;
}

.experience-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.experience-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .experience-meta {
    width: 100%;
    justify-content: flex-start;
  }
}

.experience-list {
  list-style-type: disc;
  padding-left: 1.25rem;
  margin: 0;
}

.experience-item {
  font-family: var(--type-mono);
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin-bottom: 0.375rem;
}

.experience-item::marker {
  color: var(--color-accent-cyan);
}

/* Contact cards */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

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

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

.contact-card {
  text-decoration: none;
  display: block;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-card:hover {
  border-color: rgba(0, 212, 255, 0.2);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

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

.contact-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  background-color: rgba(0, 212, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 212, 255, 0.2);
  transition: border-color 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
}

.contact-card:hover .contact-icon {
  border-color: rgba(0, 212, 255, 0.3);
}

.contact-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.contact-title {
  font-family: var(--type-mono);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 0.125rem;
  transition: color 0.2s;
}

.contact-value {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

/* About section card */
.about-card {
  width: 100%;
}

.about-layout {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
}

@media (max-width: 640px) {
  .about-layout {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

.about-avatar-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.about-avatar-ring {
  width: 12rem;
  height: 12rem;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-hover));
}

.about-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  filter: grayscale(30%);
  transition: filter 0.3s ease;
}

.about-card:hover .about-avatar {
  filter: grayscale(0%);
}

.about-status {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.about-content {
  flex: 1;
  min-width: 0;
}

@media (max-width: 640px) {
  .about-content .flex {
    justify-content: center;
  }
}

/* Awards section */
.awards-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.education-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

/* Section spacing */
section {
  padding: 3.5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

section + section {
  border-top: 1px solid var(--color-border);
}

section + section::before {
  content: '///';
  display: block;
  font-family: var(--type-mono);
  font-size: 0.625rem;
  color: var(--color-border);
  letter-spacing: 0.15em;
  margin-top: 2rem;
  margin-bottom: 0;
  text-align: center;
  opacity: 0.5;
}

/* Footer */
footer {
  border-top: 1px solid var(--color-border);
  position: relative;
  z-index: 1;
}

/* Page title */
h1 {
  color: var(--color-text-primary);
  margin-top: 0;
  margin-bottom: 1.5rem;
  letter-spacing: var(--type-tracking-tight);
  line-height: 1.1;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
}

/* Links */
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-accent);
}

/* Section headings */
.section-heading {
  font-family: var(--type-mono);
  color: var(--color-accent);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0;
  margin-bottom: 2rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border);
}

/* Tech icons */
.tech-icon {
  width: 1.25rem;
  height: 1.25rem;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.9;
  transition: opacity 0.2s, transform 0.2s;
}

.tech-icon:hover {
  opacity: 1;
  transform: scale(1.1);
}

.card .tech-icon {
  filter: brightness(0) invert(1) drop-shadow(0 0 2px currentColor);
}

/* Proficiency levels */
.proficiency-expert { color: var(--color-accent); }
.proficiency-proficient { color: var(--color-accent); }
.proficiency-familiar { color: var(--color-accent); }
.proficiency-beginner { color: var(--color-accent); }

/* CSS scroll-driven animations (progressive enhancement) */
@supports (animation-timeline: view()) {
  @keyframes reveal {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .fade-in {
    animation: reveal linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 20%;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .fade-in,
  .page-fade-in {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .status-dot {
    animation: none;
  }

  .card,
  .social-link,
  .contact-card {
    transition: none;
  }
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--color-bg-primary); }
::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-text-secondary); }

/* Firefox scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) var(--color-bg-primary);
}

/* Content section max width */
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-6xl { max-width: 72rem; }

/* Padding */
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }

/* Min-height */
.min-h-screen { min-height: 100vh; }

/* Selection */
::selection {
  background-color: rgba(34, 197, 94, 0.25);
  color: var(--color-text-primary);
}

::-moz-selection {
  background-color: rgba(34, 197, 94, 0.25);
  color: var(--color-text-primary);
}

/* Focus styles for accessibility */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

a:focus:not(:focus-visible), button:focus:not(:focus-visible) {
  outline: none;
}

/* Disabled states */
a:disabled, button:disabled {
  opacity: 0.4;
  pointer-events: none;
  cursor: not-allowed;
}

/* Mobile terminal fixes */
@media (max-width: 640px) {
  .terminal-window {
    aspect-ratio: auto;
    min-height: 18rem;
  }
  
  .terminal-content {
    min-height: 12rem;
  }
}
