/* Modern Website Improvements */

/* Accessibility Improvements */
.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 Management */
*:focus {
  outline: 2px solid #004aad;
  outline-offset: 2px;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: #004aad;
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 9999;
  border-radius: 4px;
}

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


.navigation-item.w--current {
  position: relative;
  color: #004aad;
  font-weight: 600;
}

.navigation-item.w--current::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: #004aad;
  border-radius: 1px;
}

/* Contact CTA */
.contact-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #004aad;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.2s ease;
  margin-left: 16px;
}

.contact-cta:hover {
  background: #003a8c;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 74, 173, 0.3);
  color: white;
}

/* Improved Typography */
.heading-jumbo {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.2;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.paragraph {
  font-size: 1.125rem;
  line-height: 1.6;
  color: #4a5568;
  margin-bottom: 1.5rem;
}

/* Modern Cards */
.card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1), 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* Blog Post Cards */
#post__link_card {
  border: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  background: white;
  margin: 24px 0;
}

#post__link_card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1), 0 4px 10px rgba(0, 0, 0, 0.05);
}

#post__title_image {
  height: 240px;
  background-position: center;
  background-size: cover;
}

/* Improved Timeline */
.experience-container {
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.experience-container:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.experience-bullet {
  background: linear-gradient(135deg, #004aad, #0066cc);
  box-shadow: 0 2px 8px rgba(0, 74, 173, 0.3);
}

.experience-bullet-inner {
  background: white;
  border: 2px solid #004aad;
}

/* Mobile Improvements */
@media (max-width: 768px) {
  .navigation {
    padding: 16px 20px;
  }
  
  .contact-cta {
    display: none;
  }
  
  .nav-mobile-cta {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 16px;
    padding: 12px;
    background: #004aad;
    color: white;
    text-decoration: none;
    border-radius: 8px;
  }
  
  .container.blog-wrap {
    width: 95%;
    margin: 16px auto;
    padding: 16px;
  }
  
  #post__link_card {
    margin: 16px 0;
  }
}

/* Performance Optimizations */
img {
  max-width: 100%;
  height: auto;
  loading: lazy;
}

/* 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) {
  .navigation-item.w--current::after {
    height: 3px;
  }
  
  .card {
    border: 2px solid #000;
  }
}

/* Contact Section Improvements */
.contact-section {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  padding: 80px 0;
  margin-top: 80px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.contact-info h2 {
  font-size: 2.5rem;
  margin-bottom: 24px;
  color: #1a202c;
}

.contact-info p {
  font-size: 1.25rem;
  color: #4a5568;
  margin-bottom: 32px;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: white;
  border-radius: 8px;
  text-decoration: none;
  color: #2d3748;
  transition: all 0.2s ease;
}

.contact-method:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  color: #004aad;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 0 20px;
  }
  
  .contact-info h2 {
    font-size: 2rem;
  }
}