/* CSS Variables */
:root {
  --github-dark: #0d1117;
  --github-card: #161b22;
  --github-border: #30363d;
  --github-text: #f0f6fc;
  --github-text-secondary: #8b949e;
  --accent-red: #ff4757;
  --accent-red-light: #ff6b7a;
  --accent-red-dark: #e84545;
  --accent-white: #ffffff;
  --accent-gray: #6c757d;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
  --gradient-red: linear-gradient(135deg, var(--accent-red), var(--accent-red-light));
  --gradient-dark: linear-gradient(135deg, var(--github-dark), var(--github-card));
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background-color: var(--github-dark);
  color: var(--github-text);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Font Loading */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter-var.woff2') format('woff2');
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--github-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--github-border);
  border-radius: 5px;
  transition: var(--transition);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-red);
}

/* Selection */
::selection {
  background: var(--accent-red);
  color: var(--accent-white);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  margin-bottom: 1rem;
  line-height: 1.25;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  background: var(--gradient-red);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from { filter: drop-shadow(0 0 10px rgba(255, 71, 87, 0.5)); }
  to { filter: drop-shadow(0 0 20px rgba(255, 71, 87, 0.8)); }
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  position: relative;
  padding-bottom: 0.5rem;
  margin-bottom: 2rem;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--gradient-red);
  border-radius: 2px;
  animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
  from { width: 0; }
  to { width: 60px; }
}

h3 {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  color: var(--accent-white);
}

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

/* Links */
a {
  color: var(--accent-red);
  text-decoration: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-red);
  transition: width 0.3s ease;
}

a:hover::before {
  width: 100%;
}

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

/* Navigation */
.navbar {
  background: rgba(13, 17, 23, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--github-border);
  padding: 1rem 0;
  transition: var(--transition);
  z-index: 1000;
}

.navbar.scrolled {
  padding: 0.5rem 0;
  box-shadow: var(--shadow-lg);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--accent-white) !important;
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.navbar-brand:hover {
  transform: translateX(5px);
}

.navbar-brand i {
  color: var(--accent-red);
  margin-right: 10px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.nav-link {
  color: var(--github-text-secondary) !important;
  margin: 0 15px;
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0 !important;
  transition: var(--transition);
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-red);
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.nav-link:hover::before,
.nav-link.active::before {
  width: 80%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-white) !important;
}

/* Search Bar */
.search-container {
  position: relative;
  max-width: 300px;
  margin-left: 20px;
}

.search-input {
  background: var(--github-card);
  border: 1px solid var(--github-border);
  border-radius: 25px;
  color: var(--github-text);
  padding: 0.5rem 2.5rem 0.5rem 1rem;
  width: 100%;
  transition: var(--transition);
}

.search-input:focus {
  outline: none;
  border-color: var(--accent-red);
  box-shadow: 0 0 0 3px rgba(255, 71, 87, 0.1);
  width: 350px;
}

.search-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--github-text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.search-btn:hover {
  color: var(--accent-red);
  transform: translateY(-50%) scale(1.2);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--github-dark) 0%, var(--github-card) 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('https://images.unsplash.com/photo-1555066931-4365d14bab8c?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover;
  opacity: 0.1;
  z-index: -1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 20px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 2rem;
}

/* Buttons */
.btn {
  padding: 0.75rem 2rem;
  border-radius: 30px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--gradient-red);
  color: var(--accent-white);
  box-shadow: 0 4px 15px rgba(255, 71, 87, 0.3);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: left 0.5s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 71, 87, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--accent-white);
  border: 2px solid var(--github-border);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-outline:hover {
  border-color: var(--accent-red);
  background: var(--github-card);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 71, 87, 0.2);
}

/* Section Styles */
section {
  padding: 100px 0;
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
}

/* Blog Section */
.blog-section {
  background: var(--github-dark);
}

.blog-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.5rem 1.5rem;
  background: var(--github-card);
  border: 1px solid var(--github-border);
  border-radius: 25px;
  color: var(--github-text-secondary);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--gradient-red);
  border-color: var(--accent-red);
  color: var(--accent-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 71, 87, 0.3);
}

.blog-card {
  background: var(--github-card);
  border: 1px solid var(--github-border);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.blog-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-red);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.blog-card:hover::before {
  transform: scaleX(1);
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  border-color: var(--accent-red);
}

.blog-img-wrapper {
  position: relative;
  overflow: hidden;
  height: 250px;
}

.blog-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-img {
  transform: scale(1.1);
}

.blog-date {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--gradient-red);
  color: var(--accent-white);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
}

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

.blog-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--github-text-secondary);
}

.blog-meta i {
  color: var(--accent-red);
}

.blog-title {
  color: var(--accent-white);
  margin-bottom: 1rem;
  font-weight: 600;
  font-size: 1.3rem;
  transition: color 0.3s ease;
}

.blog-card:hover .blog-title {
  color: var(--accent-red);
}

.blog-excerpt {
  color: var(--github-text-secondary);
  margin-bottom: 1.5rem;
  flex-grow: 1;
  line-height: 1.6;
}

.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.blog-tag {
  background: rgba(255, 71, 87, 0.1);
  color: var(--accent-red-light);
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition);
}

.blog-tag:hover {
  background: var(--gradient-red);
  color: var(--accent-white);
  transform: translateY(-2px);
}

/* Article Page */
.article-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

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

.article-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--accent-white);
}

.article-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 2rem;
  color: var(--github-text-secondary);
}

.article-meta i {
  color: var(--accent-red);
}

.article-featured-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 3rem;
}

.article-content {
  background: var(--github-card);
  border: 1px solid var(--github-border);
  border-radius: 12px;
  padding: 3rem;
  box-shadow: var(--shadow-lg);
}

.article-content h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.article-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.article-content ul,
.article-content ol {
  margin: 1rem 0;
  padding-left: 2rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

.article-content blockquote {
  border-left: 4px solid var(--accent-red);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--github-text-secondary);
}

.article-content blockquote cite {
  display: block;
  margin-top: 0.5rem;
  font-weight: 600;
  color: var(--accent-red);
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--github-border);
}

/* About Section */
.about-section {
  background: linear-gradient(180deg, var(--github-dark) 0%, var(--github-card) 100%);
}

.about-card {
  background: var(--github-card);
  border: 1px solid var(--github-border);
  border-radius: 12px;
  padding: 2.5rem;
  height: 100%;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 71, 87, 0.05) 0%, transparent 70%);
  transform: scale(0);
  transition: transform 0.5s ease;
}

.about-card:hover::before {
  transform: scale(1);
}

.about-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  border-color: var(--accent-red);
}

.about-icon {
  font-size: 3.5rem;
  color: var(--accent-red);
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.about-card:hover .about-icon {
  transform: scale(1.1) rotate(5deg);
  color: var(--accent-red-light);
}

.competency-list {
  list-style: none;
  padding: 0;
}

.competency-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--github-border);
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.competency-list li:last-child {
  border-bottom: none;
}

.competency-list li:hover {
  padding-left: 15px;
  color: var(--accent-red);
}

.competency-list i {
  color: var(--accent-red);
  margin-right: 15px;
  font-size: 1.2rem;
  transition: var(--transition);
}

.competency-list li:hover i {
  transform: scale(1.2) rotate(10deg);
}

/* Projects Section */
.projects-section {
  background: var(--github-dark);
}

.project-card {
  background: var(--github-card);
  border: 1px solid var(--github-border);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 60%, rgba(13, 17, 23, 0.9) 100%);
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover::before {
  opacity: 1;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  border-color: var(--accent-red);
}

.project-img-wrapper {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-img {
  transform: scale(1.1);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 71, 87, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-links {
  display: flex;
  gap: 15px;
}

.project-link {
  width: 50px;
  height: 50px;
  background: var(--accent-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-red);
  font-size: 1.2rem;
  transition: var(--transition);
}

.project-link:hover {
  transform: scale(1.1);
  background: var(--accent-white);
}

.project-body {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
}

.project-title {
  color: var(--accent-white);
  margin-bottom: 1rem;
  font-weight: 600;
  font-size: 1.3rem;
  transition: color 0.3s ease;
}

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

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.tech-badge {
  background: rgba(255, 71, 87, 0.1);
  color: var(--accent-red-light);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: 'Fira Code', monospace;
  transition: var(--transition);
}

.tech-badge:hover {
  background: var(--gradient-red);
  color: var(--accent-white);
  transform: translateY(-2px);
}

/* Footer */
footer {
  background: var(--github-card);
  border-top: 1px solid var(--github-border);
  padding: 60px 0 30px;
}

.footer-logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-white);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.footer-logo:hover {
  transform: translateX(10px);
}

.footer-logo i {
  color: var(--accent-red);
  margin-right: 10px;
}

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

.footer-links a {
  color: var(--github-text-secondary);
  transition: var(--transition);
  position: relative;
  padding-left: 0;
}

.footer-links a::before {
  content: '▶';
  position: absolute;
  left: -20px;
  opacity: 0;
  transition: all 0.3s ease;
  font-size: 0.7rem;
  color: var(--accent-red);
}

.footer-links a:hover {
  color: var(--accent-white);
  padding-left: 25px;
}

.footer-links a:hover::before {
  opacity: 1;
  left: 0;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 1.5rem;
}

.social-link {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--github-dark);
  border: 2px solid var(--github-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--github-text-secondary);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.social-link::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: var(--gradient-red);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease;
  z-index: -1;
}

.social-link:hover::before {
  width: 100%;
  height: 100%;
}

.social-link:hover {
  color: var(--accent-white);
  border-color: var(--accent-red);
  transform: translateY(-5px) rotate(360deg);
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--github-border);
  color: var(--github-text-secondary);
  font-size: 0.9rem;
}

/* Loading Screen */
.loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--github-dark);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  transition: opacity 0.5s, visibility 0.5s;
}

.loader {
  width: 60px;
  height: 60px;
  border: 3px solid var(--github-border);
  border-top: 3px solid var(--accent-red);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Reading Progress */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: var(--gradient-red);
  z-index: 10000;
  transition: width 0.2s ease;
  box-shadow: 0 0 10px rgba(255, 71, 87, 0.5);
}

/* Theme Toggle */
.theme-toggle {
  position: fixed;
  top: 100px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: var(--github-card);
  border: 2px solid var(--github-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
}

.theme-toggle:hover {
  transform: scale(1.1) rotate(180deg);
  border-color: var(--accent-red);
  box-shadow: 0 0 20px rgba(255, 71, 87, 0.3);
}

.theme-toggle i {
  font-size: 1.5rem;
  color: var(--accent-red);
  transition: var(--transition);
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: var(--gradient-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-white);
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(255, 71, 87, 0.3);
}

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

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(255, 71, 87, 0.4);
}

/* Error State */
.error-container {
  text-align: center;
  padding: 4rem 2rem;
}

.error-icon {
  font-size: 5rem;
  color: var(--accent-red);
  margin-bottom: 1rem;
}

.error-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--accent-white);
}

.error-message {
  color: var(--github-text-secondary);
  margin-bottom: 2rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .search-input:focus {
    width: 300px;
  }
}

@media (max-width: 992px) {
  section {
    padding: 80px 0;
  }

  .search-container {
    margin-left: 0;
    margin-top: 1rem;
    max-width: 100%;
  }

  .search-input:focus {
    width: 100%;
  }
}

@media (max-width: 768px) {
  section {
    padding: 60px 0;
  }

  .hero {
    min-height: 80vh;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 300px;
  }

  .theme-toggle {
    top: 80px;
    right: 20px;
    width: 50px;
    height: 50px;
  }

  .blog-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .project-links {
    flex-direction: column;
    gap: 10px;
  }

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

  .article-content {
    padding: 2rem;
  }
}

@media (max-width: 576px) {
  section {
    padding: 40px 0;
  }

  .blog-card,
  .about-card,
  .project-card {
    margin-bottom: 2rem;
  }

  .footer-logo {
    font-size: 1.5rem;
  }

  .social-link {
    width: 40px;
    height: 40px;
  }

  .article-container {
    padding: 1rem;
  }

  .article-featured-image {
    height: 250px;
  }
}

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

/* Focus Styles */
*:focus {
  outline: 2px solid var(--accent-red);
  outline-offset: 2px;
}

button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--accent-red);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .navbar,
  .theme-toggle,
  .back-to-top,
  .hero-particles,
  .cursor-trail {
    display: none !important;
  }

  body {
    background: white !important;
    color: black !important;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --github-border: #ffffff;
    --github-text-secondary: #ffffff;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  :root {
    --github-dark: #0d1117;
    --github-card: #161b22;
    --github-border: #30363d;
    --github-text: #f0f6fc;
    --github-text-secondary: #8b949e;
  }
}

/* Light Mode Support */
@media (prefers-color-scheme: light) {
  :root {
    --github-dark: #ffffff;
    --github-card: #f6f8fa;
    --github-border: #d1d9e0;
    --github-text: #24292e;
    --github-text-secondary: #586069;
  }
}