/* ===========================
   Professional Portfolio CSS
   Willian Pereira César
   =========================== */

/* CSS Variables - Color Palette */
:root {
  --vista-blue: #809bce;
  --powder-blue: #95b8d1;
  --tiffany-blue: #b8e0d2;
  --honeydew: #d6eadf;
  
  /* Semantic Colors */
  --primary-color: var(--vista-blue);
  --secondary-color: var(--powder-blue);
  --accent-color: var(--tiffany-blue);
  --background-tint: var(--honeydew);
  
  /* Text Colors */
  --text-dark: #2c3e50;
  --text-light: #ffffff;
  --text-medium: #6c757d;
  
  /* UI Colors */
  --background-white: #ffffff;
  --gray-light: #f8f9fa;
  --border-light: rgba(128, 155, 206, 0.2);
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(128, 155, 206, 0.1);
  --shadow-md: 0 4px 6px rgba(128, 155, 206, 0.1);
  --shadow-lg: 0 8px 25px rgba(128, 155, 206, 0.15);
  --shadow-xl: 0 20px 25px rgba(128, 155, 206, 0.1);
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  
  /* Typography */
  --font-heading: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Monaco', monospace;
  
  /* Misc */
  --border-radius: 8px;
  --border-radius-lg: 12px;
  --transition: all 0.3s ease;
  --max-width: 1200px;
}

/* ===========================
   Reset & Base Styles
   =========================== */

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

html {
  scroll-behavior: smooth;
}

/* Enhanced smooth scrolling for better performance */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--background-white);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

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

/* ===========================
   Typography
   =========================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-dark);
  margin-bottom: var(--space-sm);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
}

h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 600;
}

p {
  margin-bottom: var(--space-sm);
  color: var(--text-medium);
}

.text-large {
  font-size: 1.25rem;
}

.text-small {
  font-size: 0.875rem;
}

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

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

.text-white {
  color: var(--text-light);
}

/* ===========================
   Layout Components
   =========================== */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

.section {
  padding: var(--space-2xl) 0;
}

.section-alt {
  background: linear-gradient(135deg, var(--background-tint) 0%, rgba(214, 234, 223, 0.3) 100%);
}

/* Grid System */
.grid {
  display: grid;
  gap: var(--space-lg);
}

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

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

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

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

/* Responsive Grid */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .section {
    padding: var(--space-xl) 0;
  }
}

/* Flexbox Utilities */
.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.flex-column {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

/* ===========================
   Navigation
   =========================== */

.main-navigation {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
  padding: var(--space-sm) 0;
  transition: var(--transition);
}

/* CSS-only scroll effect using :has() and sticky positioning */
@supports (selector(:has(*))) {
  body:has(.main-navigation) {
    scroll-padding-top: 70px;
  }
}

.main-navigation.scrolled,
.main-navigation:has(~ *:target) {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 20px rgba(128, 155, 206, 0.1);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--primary-color);
}

.nav-brand a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

.nav-brand a:hover {
  color: var(--secondary-color);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: var(--space-lg);
}

.nav-links a {
  font-weight: 500;
  color: var(--text-dark);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--background-tint);
  color: var(--primary-color);
}

/* Hidden checkbox for mobile nav toggle */
.nav-toggle-checkbox {
  display: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: var(--space-xs);
  background: none;
  border: none;
  position: relative;
}

.nav-toggle__line {
  width: 25px;
  height: 3px;
  background: var(--primary-color);
  margin: 3px 0;
  transition: var(--transition);
  display: block;
}

/* Hamburger animation when checked */
.nav-toggle-checkbox:checked ~ .nav-toggle .nav-toggle__line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle-checkbox:checked ~ .nav-toggle .nav-toggle__line:nth-child(2) {
  opacity: 0;
}

.nav-toggle-checkbox:checked ~ .nav-toggle .nav-toggle__line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--background-white);
    flex-direction: column;
    padding: var(--space-lg);
    box-shadow: var(--shadow-lg);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }
  
  /* Show menu when checkbox is checked */
  .nav-toggle-checkbox:checked ~ .nav-links {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav-toggle {
    display: flex;
  }
}

/* ===========================
   Buttons
   =========================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--border-radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  line-height: 1;
}

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

.btn-primary:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: var(--secondary-color);
  color: var(--text-light);
}

.btn-secondary:hover {
  background: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-outline:hover {
  background: var(--primary-color);
  color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-ghost {
  background: transparent;
  color: var(--primary-color);
  border: none;
}

.btn-ghost:hover {
  background: var(--background-tint);
  transform: translateY(-1px);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* ===========================
   Cards
   =========================== */

.card {
  background: var(--background-white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--border-light);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.card-header {
  padding: var(--space-lg);
  background: linear-gradient(135deg, var(--background-tint) 0%, rgba(214, 234, 223, 0.5) 100%);
}

.card-body {
  padding: var(--space-lg);
}

.card-footer {
  padding: var(--space-lg);
  background: var(--gray-light);
  border-top: 1px solid var(--border-light);
}

/* ===========================
   Profile Image
   =========================== */

.profile-image {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255,255,255,0.2);
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  margin: 0 auto;
  display: block;
}

@media (max-width: 768px) {
  .profile-image {
    width: 250px;
    height: 250px;
  }
}

@media (max-width: 480px) {
  .profile-image {
    width: 200px;
    height: 200px;
  }
}

/* ===========================
   Hero Section
   =========================== */

.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,255,255,0.05)" points="0,1000 1000,0 1000,1000"/></svg>');
  background-size: cover;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
}

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

.hero-title {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 800;
  margin-bottom: var(--space-sm);
  color: var(--text-light);
}

.hero-subtitle {
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 300;
  margin-bottom: var(--space-md);
  color: rgba(255, 255, 255, 0.9);
}

.hero-description {
  font-size: 1.25rem;
  margin-bottom: var(--space-xl);
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

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

.hero-stats {
  display: flex;
  gap: var(--space-xl);
  justify-content: center;
  margin: var(--space-xl) 0;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-light);
}

.stat-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Hero Section Modifiers */
.hero-section--compact {
  min-height: 60vh;
}

.hero-text--centered {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr 1fr;
    text-align: left;
  }
  
  .hero-text {
    text-align: left;
  }
  
  .hero-text--centered {
    text-align: center;
  }
  
  .hero-description {
    margin-left: 0;
    margin-right: 0;
  }
  
  .hero-actions {
    justify-content: flex-start;
  }
  
  .hero-text--centered .hero-actions {
    justify-content: center;
  }
  
  .hero-stats {
    justify-content: flex-start;
  }
}

/* ===========================
   Skills Section
   =========================== */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.skill-category {
  background: var(--background-white);
  padding: var(--space-lg);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.skill-category:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.skill-category h3 {
  color: var(--primary-color);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  list-style: none;
  margin: 0;
  padding: 0;
}

.skill-tag {
  background: var(--background-tint);
  color: var(--primary-color);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--border-radius);
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid rgba(128, 155, 206, 0.2);
  transition: var(--transition);
}

.skill-tag:hover {
  background: var(--primary-color);
  color: var(--text-light);
  transform: translateY(-1px);
}

/* ===========================
   Projects Section
   =========================== */

.project-card {
  background: var(--background-white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid var(--border-light);
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.project-header {
  padding: var(--space-lg);
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--background-tint) 100%);
}

.project-title {
  color: var(--primary-color);
  margin-bottom: var(--space-sm);
}

.project-status {
  display: inline-block;
  background: var(--primary-color);
  color: var(--text-light);
  padding: 0.25rem 0.5rem;
  border-radius: var(--border-radius);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.project-description {
  margin-bottom: var(--space-md);
  color: var(--text-medium);
}

.project-problem {
  background: var(--gray-light);
  padding: var(--space-md);
  border-radius: var(--border-radius);
  margin-bottom: var(--space-md);
  border-left: 4px solid var(--accent-color);
}

.project-problem h4 {
  color: var(--primary-color);
  margin-bottom: var(--space-xs);
}

.tech-stack {
  margin-bottom: var(--space-md);
}

.tech-stack h4 {
  margin-bottom: var(--space-sm);
  color: var(--primary-color);
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  list-style: none;
  margin: 0;
  padding: 0;
}

.tech-tag {
  background: var(--primary-color);
  color: var(--text-light);
  padding: 0.25rem 0.5rem;
  border-radius: var(--border-radius);
  font-size: 0.75rem;
  font-weight: 500;
  list-style: none;
}

.project-links {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.project-features-heading {
  color: var(--primary-color);
  margin-bottom: var(--space-sm);
}

.project-status-text {
  color: var(--text-medium);
}

/* Download Actions */
.download-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* CV Content */
.cv-content {
  padding: var(--space-xl) 0;
}

/* Back to Top */
.back-to-top {
  text-align: center;
  padding: var(--space-xl) 0;
}

.back-to-top__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
}

/* ===========================
   CV Section
   =========================== */

.cv-section {
  background: var(--background-white);
  padding: var(--space-lg);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--space-lg);
  border: 1px solid var(--border-light);
}

.cv-header {
  text-align: center;
  padding: var(--space-xl) 0;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--text-light);
  border-radius: var(--border-radius-lg);
  margin-bottom: var(--space-lg);
}

.cv-name {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--space-xs);
}

.cv-title {
  font-size: 1.25rem;
  font-weight: 400;
  opacity: 0.9;
  margin-bottom: var(--space-md);
}

.cv-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
  font-size: 0.875rem;
}

.cv-contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.experience-item,
.education-item {
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border-light);
}

.experience-item:last-child,
.education-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.experience-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-sm);
  flex-wrap: wrap;
}

.experience-title {
  font-weight: 700;
  color: var(--primary-color);
}

.experience-company {
  font-weight: 600;
  color: var(--text-dark);
}

.experience-period {
  font-size: 0.875rem;
  color: var(--text-medium);
  font-weight: 500;
}

.experience-achievements {
  list-style: none;
}

.experience-achievements li {
  position: relative;
  padding-left: var(--space-md);
  margin-bottom: var(--space-xs);
  color: var(--text-medium);
}

.experience-achievements li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

/* ===========================
   Contact Section
   =========================== */

.contact-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--text-light);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.contact-item {
  text-align: center;
  padding: var(--space-lg);
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-lg);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
}

.contact-item:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.15);
}

.contact-icon {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
}

.contact-item h4 {
  color: var(--text-light);
  margin-bottom: var(--space-xs);
}

.contact-item a {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.contact-item a:hover {
  color: var(--text-light);
}

/* ===========================
   Footer
   =========================== */

.footer {
  background: var(--text-dark);
  color: var(--text-light);
  padding: var(--space-xl) 0;
  text-align: center;
}

.footer p {
  color: rgba(255, 255, 255, 0.7);
}

/* ===========================
   Utilities
   =========================== */

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

.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;
}

/* Spacing Utilities */
.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.mt-0 { margin-top: 0; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

/* ===========================
   Print Styles
   =========================== */

@media print {
  body {
    font-size: 12pt;
    line-height: 1.4;
    color: #000;
    background: #fff;
  }
  
  .main-navigation,
  .hero-section,
  .btn,
  .contact-section {
    display: none;
  }
  
  .cv-section {
    box-shadow: none;
    border: 1px solid #ddd;
  }
  
  .experience-item,
  .education-item {
    page-break-inside: avoid;
  }
}

/* ===========================
   Animations
   =========================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* CSS-only scroll animations */
.section,
.project-card,
.skill-category,
.experience-item,
.card,
.timeline-item {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s ease-out forwards;
  animation-play-state: paused;
}

/* Trigger animations on scroll using animation-timeline (modern browsers) */
@supports (animation-timeline: view()) {
  .section,
  .project-card,
  .skill-category,
  .experience-item,
  .card,
  .timeline-item {
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
    animation-play-state: running;
  }
}

/* Fallback: animate on load for browsers without animation-timeline */
@supports not (animation-timeline: view()) {
  .section,
  .project-card,
  .skill-category,
  .experience-item,
  .card,
  .timeline-item {
    animation-play-state: running;
    animation-delay: 0.1s;
  }
  
  .section:nth-child(2) { animation-delay: 0.2s; }
  .section:nth-child(3) { animation-delay: 0.3s; }
  .section:nth-child(4) { animation-delay: 0.4s; }
  .section:nth-child(5) { animation-delay: 0.5s; }
  
  .project-card:nth-child(1) { animation-delay: 0.1s; }
  .project-card:nth-child(2) { animation-delay: 0.2s; }
  .project-card:nth-child(3) { animation-delay: 0.3s; }
  
  .card:nth-child(1) { animation-delay: 0.1s; }
  .card:nth-child(2) { animation-delay: 0.2s; }
  .card:nth-child(3) { animation-delay: 0.3s; }
}

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in-left {
  animation: slideInLeft 0.6s ease-out;
}

/* ===========================
   Accessibility
   =========================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
  
  .fade-in-up {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* Focus styles for better accessibility */
a:focus,
button:focus,
.btn:focus,
.nav-toggle:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Skip link for keyboard navigation */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-color);
  color: var(--text-light);
  padding: 8px;
  text-decoration: none;
  border-radius: var(--border-radius);
  z-index: 10000;
  font-weight: 600;
}

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

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #0066cc;
    --secondary-color: #004499;
    --text-dark: #000000;
    --border-light: #666666;
  }
}