/* Portfolio Styles - Bilingual (EN/AR) with RTL Support */

/* CSS Custom Properties (CSS Variables) */
:root {
  /* Dark theme (default) */
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #dbeafe;
  --secondary: #64748b;
  --accent: #06b6d4;
  --bg: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --text: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --info: #3b82f6;
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-arabic: 'Noto Kufi Arabic', 'IBM Plex Sans Arabic', 'Cairo', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
  
  /* 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;
  
  /* Border radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  
  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-normal: 250ms ease-in-out;
  --transition-slow: 350ms ease-in-out;
}

/* Dark theme variables are set by theme.js */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  transition: background-color var(--transition-normal), color var(--transition-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* RTL Support */
[dir="rtl"] {
  font-family: var(--font-arabic);
}

[dir="rtl"] body {
  text-align: right;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: var(--space-md);
  color: var(--text);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: var(--space-md);
  color: var(--text-secondary);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

/* Skip to content link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary);
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: var(--radius-sm);
  z-index: 1000;
}

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

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* Header */
.header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
  z-index: 100;
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

.header-content {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: var(--space-md) 0;
  width: 100%;
  position: relative;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  position: relative;
  z-index: 1;
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  position: relative;
  z-index: 1;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

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

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

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

.btn-secondary:hover {
  background: var(--bg-tertiary);
  color: var(--text);
}

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

.btn-ghost:hover {
  background: var(--bg-secondary);
  color: var(--text);
}

/* Icon buttons */
.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-icon svg {
  width: 20px;
  height: 20px;
}

/* Theme toggle */
.theme-toggle {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.theme-toggle:hover {
  background: var(--bg-tertiary);
  color: var(--text);
}

/* Language toggle */
.lang-toggle {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  font-size: 0.75rem;
  font-weight: 600;
  min-width: 40px;
}

.lang-toggle:hover {
  background: var(--bg-tertiary);
  color: var(--text);
}

/* Main content */
.main {
  min-height: calc(100vh - 200px);
  padding: var(--space-2xl) 0;
}

/* Hero section */
.hero {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .tagline {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* Projects grid */
.projects-section {
  margin-bottom: var(--space-3xl);
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

/* Project card */
.project-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-normal);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

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

.project-image-container {
  position: relative;
}

.project-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--bg-secondary);
}

.project-image-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: var(--space-md) var(--space-sm) var(--space-sm);
  font-size: 0.875rem;
  text-align: center;
  margin: 0;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.project-content {
  padding: var(--space-lg);
}

.project-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--text);
}

.project-tagline {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: var(--space-md);
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.project-year {
  background: var(--primary-light);
  color: var(--primary);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
}

.project-status {
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
}

.project-status.shipped {
  background: #dcfce7;
  color: #166534;
}

.project-status.wip {
  background: #fef3c7;
  color: #92400e;
}


.stack-tag {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: var(--space-3xl) var(--space-md);
  color: var(--text-muted);
}

.empty-state-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-lg);
  opacity: 0.5;
}

.empty-state h3 {
  margin-bottom: var(--space-md);
  color: var(--text-secondary);
}

/* Footer */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: var(--space-2xl) 0 var(--space-lg);
  margin-top: var(--space-3xl);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-xl);
  align-items: center;
}

.footer-socials {
  display: flex;
  gap: var(--space-md);
}

.footer-socials a {
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer-socials a:hover {
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Project page styles */
.project-page {
  max-width: 800px;
  margin: 0 auto;
}

.project-header {
  margin-bottom: var(--space-2xl);
  text-align: center;
}

.project-title {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
  color: var(--text);
}

.project-tagline {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.project-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  text-align: center;
  padding: var(--space-md);
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.meta-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.meta-value {
  font-size: 1rem;
  color: var(--text);
  font-weight: 600;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.project-section {
  margin-bottom: var(--space-2xl);
}

.project-section h3 {
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--border);
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, max-content));
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
  justify-content: center;
}

.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-secondary);
  cursor: pointer;
  transition: transform var(--transition-fast);
  display: flex;
  flex-direction: column;
  max-width: 400px;
  width: fit-content;
}

.gallery-item:hover {
  transform: scale(1.02);
}

.gallery-item img {
  width: auto;
  max-width: 100%;
  height: auto;
  display: block;
  max-height: 500px;
}

.image-caption {
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: 0.875rem;
  text-align: center;
  margin: 0;
  border-top: 1px solid var(--border-light);
}

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

.project-list li {
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
}

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

/* Back button */
.back-button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
  font-weight: 500;
}

.back-button:hover {
  color: var(--primary);
}

/* Project content sections */
.project-content-section {
  margin-bottom: var(--space-2xl);
  padding: var(--space-xl);
  background: var(--bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.project-content-section h3 {
  color: var(--text);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--border);
}

.project-content-section p {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Project links styling */
.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
  justify-content: center;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  background: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: var(--radius-md);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.project-link:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.project-link.secondary {
  background: var(--bg-secondary);
  color: var(--text);
  border: 1px solid var(--border);
}

.project-link.secondary:hover {
  background: var(--bg-tertiary);
  color: var(--text);
}

/* Project gallery */
.project-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, max-content));
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
  justify-content: center;
}

.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-secondary);
  cursor: pointer;
  transition: transform var(--transition-fast);
  display: flex;
  flex-direction: column;
  max-width: 400px;
  width: fit-content;
}

.gallery-item:hover {
  transform: scale(1.02);
}

.gallery-item img {
  width: auto;
  max-width: 100%;
  height: auto;
  display: block;
  max-height: 500px;
}

/* Project lists */
.project-list {
  list-style: none;
  padding: 0;
}

.project-list li {
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
}

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

/* Hidden sections */
.project-section-hidden {
  display: none;
}

/* Enhanced Project Page Styles */
.project-page {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.project-header {
  margin-bottom: var(--space-2xl);
  text-align: center;
  position: relative;
  padding: var(--space-xl) 0;
  background: var(--bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.project-title {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
  color: var(--text);
  font-weight: 600;
  line-height: 1.2;
}

.project-tagline {
  font-size: 1.25rem;
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: var(--space-sm);
}

.project-year-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: var(--space-xl);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.project-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.meta-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-lg);
  background: var(--bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: all var(--transition-normal);
}

.meta-item:hover {
  box-shadow: var(--shadow-lg);
}

.meta-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-sm);
}

.meta-value {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
}

.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: flex-start; /* Default left alignment for LTR */
  margin-top: var(--space-md);
}

/* RTL alignment for Arabic */
[dir="rtl"] .project-stack {
  justify-content: flex-end; /* Right alignment for RTL */
}

.stack-tag {
  display: inline-block;
  padding: var(--space-xs) var(--space-md);
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--primary);
  transition: all var(--transition-fast);
}

.stack-tag:hover {
  background: var(--primary);
  color: white;
}

.project-links {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-xl);
}

.project-link-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
}

.project-caption {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
  margin: 0;
  text-align: center;
}

.project-section {
  margin-bottom: var(--space-2xl);
  padding: var(--space-xl);
  background: var(--bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition-normal);
}

.project-section:hover {
  box-shadow: var(--shadow-lg);
}

.project-section h3 {
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-md);
  border-bottom: 2px solid var(--border);
  color: var(--text);
  font-size: 1.5rem;
  font-weight: 600;
  position: relative;
}


.project-description {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

.project-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.project-list li {
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
  line-height: 1.6;
  transition: color var(--transition-fast);
}

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

.project-list li:hover {
  color: var(--text);
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition-normal);
}

.gallery-item:hover {
  box-shadow: var(--shadow-lg);
}

.gallery-item img {
  width: auto;
  max-width: 100%;
  height: auto;
  display: block;
  max-height: 500px;
}

/* Status badges */
.status-badge {
  display: inline-block;
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-badge.shipped {
  background: var(--success);
  color: white;
}

.status-badge.wip {
  background: var(--warning);
  color: white;
}

.status-badge.draft {
  background: var(--text-muted);
  color: white;
}

/* Enhanced back button */
.back-button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-2xl);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition-fast);
  font-weight: 500;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg);
  box-shadow: var(--shadow);
}

.back-button:hover {
  color: var(--primary);
  background: var(--primary-light);
  border-color: var(--primary);
}

/* Subtle project page animations */
.project-section {
  opacity: 0;
  animation: fadeIn 0.4s ease-out forwards;
}

.project-section:nth-child(2) { animation-delay: 0.1s; }
.project-section:nth-child(3) { animation-delay: 0.2s; }
.project-section:nth-child(4) { animation-delay: 0.3s; }
.project-section:nth-child(5) { animation-delay: 0.4s; }

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Responsive design */
@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-sm);
  }
  
  .header-content {
    padding: var(--space-sm) 0;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero .tagline {
    font-size: 1.125rem;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .project-meta-grid {
    grid-template-columns: 1fr;
  }
  
  .project-links {
    flex-direction: column;
  }
  
  .project-gallery {
    grid-template-columns: 1fr;
  }
  
  .project-page {
    max-width: 100%;
  }
  
  .project-header {
    text-align: left;
    padding: var(--space-xl) var(--space-lg);
  }
  
  .project-title {
    font-size: 2.5rem;
  }
  
  .project-meta-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
    gap: var(--space-md);
  }
  
  .project-year-subtitle {
    font-size: 0.875rem;
    margin-bottom: var(--space-lg);
  }
  
  .meta-item {
    padding: var(--space-md);
  }
  
  .project-links {
    flex-direction: column;
    align-items: center;
  }
  
  .project-section {
    padding: var(--space-xl) var(--space-lg);
  }
  
  .project-section h3 {
    font-size: 1.25rem;
  }
  
  .project-description {
    font-size: 1rem;
  }
  
  .project-content-section {
    padding: var(--space-lg);
  }
  
  /* Enhanced mobile styles for new features */
  .lightbox-content {
    max-width: 95%;
    max-height: 95%;
  }
  
  .lightbox-close {
    top: -30px;
    font-size: 1.5rem;
  }
  
  .reading-progress {
    height: 2px;
  }
  
  .section-nav-btn {
    margin-left: var(--space-xs);
  }
  
  .expand-btn {
    width: 100%;
    margin-top: var(--space-md);
  }
}

@media (max-width: 480px) {
  .nav-controls {
    gap: var(--space-sm);
  }
  
  .btn {
    padding: var(--space-sm);
    font-size: 0.8rem;
  }
  
  .hero h1 {
    font-size: 1.75rem;
  }
  
  .project-title {
    font-size: 2rem;
  }
}

/* Print styles */
@media print {
  .header,
  .footer,
  .theme-toggle,
  .lang-toggle,
  .back-button {
    display: none;
  }
  
  .main {
    padding: 0;
  }
  
  .project-card {
    break-inside: avoid;
  }
}

/* Focus styles for accessibility */
*:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.btn:focus,
.project-card:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --border: #000000;
    --text-secondary: #000000;
  }
  
  [data-theme="dark"] {
    --border: #ffffff;
    --text-secondary: #ffffff;
  }
}
