/* Projects Page Interactive Styles */

/* Hide legacy viewport UI on the new page structure if present */
.projects-viewport { display: none !important; }

/* Enhanced Projects Hero with Stats */
.projects-hero__kicker {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #e11d48;
  background: linear-gradient(135deg, #fff1f2, #fce7f3);
  border: 1px solid rgba(225, 29, 72, 0.2);
  border-radius: 9999px;
  padding: 0.3rem 0.75rem;
  box-shadow: 0 2px 6px rgba(225, 29, 72, 0.1);
}

.projects-hero__stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(226, 232, 240, 0.6);
  border-radius: 1rem;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.stat-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.stat-number {
  font-size: 1.875rem;
  font-weight: 800;
  color: #e11d48;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Enhanced Featured Project Section - Larger Hero */
.projects-featured {
  position: relative;
  margin: 3rem auto 2rem;
  max-width: 1400px;
  padding: 0 1rem;
}

.projects-featured__container {
  position: relative;
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.9), rgba(255, 255, 255, 0.95));
  border: 1px solid rgba(226, 232, 240, 0.6);
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 20px 40px -16px rgba(15, 23, 42, 0.1);
}

/* Hide the featured badge styles since we removed the badge */
.projects-featured__badge {
  display: none !important;
}

.projects-featured__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  align-items: center;
  gap: 2.5rem;
  padding: 2.5rem;
  min-height: 500px;
}

.projects-featured__media {
  position: relative;
}

.media-wrapper {
  position: relative;
  border-radius: 1rem;
    overflow: hidden;
  box-shadow: 0 16px 32px -12px rgba(15, 23, 42, 0.25);
}

.projects-featured__image {
  width: 100%;
  aspect-ratio: 16/10;
  max-height: 400px;
  object-fit: cover;
  display: block;
  transition: transform 400ms cubic-bezier(0.22, 1, 0.36, 1);
}

.media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    145deg,
    rgba(15, 23, 42, 0.1) 0%,
    rgba(225, 29, 72, 0.08) 50%,
    rgba(15, 23, 42, 0.15) 100%
  );
  opacity: 0;
  transition: opacity 300ms ease;
}

.projects-featured__media:hover .projects-featured__image {
  transform: scale(1.02);
}

.projects-featured__media:hover .media-overlay {
  opacity: 1;
}

.projects-featured__content {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  padding: 1.5rem 0;
}

.content-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.project-category {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #e11d48;
  background: #fff1f2;
  border: 1px solid rgba(225, 29, 72, 0.2);
  border-radius: 9999px;
  padding: 0.35rem 0.75rem;
  align-self: flex-start;
}

.projects-featured__title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.02em;
}

.projects-featured__desc {
  font-size: 1.125rem;
  line-height: 1.7;
  color: #475569;
  margin: 0;
}



/* Enhanced Project Pills - Smaller */
.projects-featured__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.project-pill {
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  padding: 0.25rem 0.6rem;
  border: 1px solid;
  transition: all 200ms ease;
}



.project-pill--neutral {
  color: #374151;
  background: #f9fafb;
  border-color: rgba(55, 65, 81, 0.15);
}

.project-pill--sm {
  font-size: 0.6875rem;
  padding: 0.2rem 0.5rem;
}

/* Enhanced Buttons - Larger */
.projects-featured__actions {
    display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.btn-primary--lg {
  padding: 1.125rem 2.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  border-radius: 0.875rem;
  box-shadow: 0 8px 20px -8px rgba(225, 29, 72, 0.4);
  transition: all 200ms ease;
}

.btn-primary--lg:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -8px rgba(225, 29, 72, 0.5);
}

/* Projects grid section uses section-header-home for consistency */

/* Ensure Projects page section headers are centered consistently like About and Proxmox pages */
.projects-grid-section .section-header-home {
  text-align: center !important;
  max-width: 800px;
  margin: 0 auto 3rem;
}

.projects-grid-section .section-header-home .section-label {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #FF0054; /* rose-500 */
  margin-bottom: 1rem;
  text-align: center;
}

.projects-grid-section .section-header-home .section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #0f172a; /* slate-900 */
  margin: 0 auto 1rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
  text-align: center !important;
  display: block;
}

.projects-grid-section .section-header-home .section-subtitle {
  font-size: 1.125rem;
  line-height: 1.7;
  color: #475569; /* slate-600 */
  margin: 0 auto;
  max-width: 700px;
  text-align: center;
}

/* Responsive adjustments for Projects section headers */
@media (max-width: 768px) {
  .projects-grid-section .section-header-home {
    margin-bottom: 2rem;
  }
  
  .projects-grid-section .section-header-home .section-title {
    font-size: 2rem;
  }
  
  .projects-grid-section .section-header-home .section-subtitle {
    font-size: 1rem;
  }
}

/* Enhanced Project Cards */
.projects-grid-section { 
  max-width: 1200px; 
  margin: 0 auto; 
  padding: 0 1rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.project-card--enhanced {
  background: white;
  border: 1px solid rgba(226, 232, 240, 0.6);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  transition: all 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card--enhanced:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.15);
  border-color: rgba(225, 29, 72, 0.2);
}

.project-card__link {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.project-card__media {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.project-card__image {
        width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card__overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(15, 23, 42, 0.1) 60%,
    rgba(15, 23, 42, 0.3) 100%
  );
  opacity: 0;
  transition: opacity 300ms ease;
}

.project-card--enhanced:hover .project-card__image {
  transform: scale(1.05);
}

.project-card--enhanced:hover .project-card__overlay-gradient {
  opacity: 1;
}

.project-card__content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.project-card__category {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #e11d48;
}

.project-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  line-height: 1.3;
}

.project-card__summary {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #64748b;
  margin: 0;
}

.project-card__impact {
  margin: 0.5rem 0;
}

.impact-highlight {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 700;
  color: #0369a1;
  background: #f0f9ff;
  border: 1px solid rgba(3, 105, 161, 0.2);
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
}

.project-card__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Projects CTA Section - Development Style */
.projects-cta-wrapper {
    background: linear-gradient(135deg, rgb(225 29 72), rgb(190 18 60));
    color: white;
}

.projects-cta-wrapper .final-cta {
    text-align: center;
    padding: 2rem 0;
}

.projects-cta-wrapper .final-cta .cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: white;
}

.projects-cta-wrapper .final-cta .cta-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.projects-cta-wrapper .cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0;
    flex-wrap: wrap;
}

.projects-cta-wrapper .cta-button.main {
    background: white;
    color: rgb(225 29 72);
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.projects-cta-wrapper .cta-button.main:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.projects-cta-wrapper .secondary-button {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.projects-cta-wrapper .secondary-button:hover {
    background: white;
    color: rgb(225 29 72);
    transform: translateY(-2px);
}



/* Enhanced Modal Styles */
.project-modal--enhanced {
  pointer-events: auto;
  position: fixed;
  inset: 0;
  display: none;
  z-index: 1000;
}

.project-modal--enhanced.is-open {
  display: block;
}

.project-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 300ms ease-out;
  pointer-events: auto;
}

.project-modal--enhanced.is-open .project-modal__backdrop {
  opacity: 1;
}

.project-modal__dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  width: 90vw;
  max-width: 900px;
  max-height: 90vh;
  background: white;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: all 350ms cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.project-modal--enhanced.is-open .project-modal__dialog {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.project-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 9999px;
  color: #64748b;
  cursor: pointer;
  z-index: 50;
  transition: all 200ms ease;
  backdrop-filter: blur(8px);
}

.project-modal__close:hover {
  background: white;
  color: #e11d48;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.2);
}

/* Enhanced Modal Content - Now Scrollable Container */
.project-modal__content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  background: white;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* Custom Scrollbar */
.project-modal__content::-webkit-scrollbar {
  width: 8px;
}

.project-modal__content::-webkit-scrollbar-track {
  background: transparent;
}

.project-modal__content::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.4);
  border-radius: 4px;
}

.project-modal__content::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.6);
}

/* Enhanced Modal Hero - Now Part of Scrollable Content */
.project-modal__hero {
  position: relative;
  height: 450px;
  overflow: hidden;
  border-radius: 0;
}

.project-modal__hero-media {
  position: relative;
  height: 100%;
  width: 100%;
}

.project-modal__slides {
  position: absolute;
  inset: 0;
}

.project-modal__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 500ms ease, transform 800ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.project-modal__slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.project-modal__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(226, 232, 240, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  cursor: pointer;
  transition: all 200ms ease;
  z-index: 15;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.project-modal__nav:hover {
  background: white;
  color: #e11d48;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(225, 29, 72, 0.3);
}

.project-modal__nav--prev {
  left: 1.5rem;
}

.project-modal__nav--next {
  right: 1.5rem;
}

.project-modal__hero-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(15, 23, 42, 0.4) 50%,
    rgba(15, 23, 42, 0.8) 100%
  );
  padding: 3rem 2rem 2rem;
  color: white;
  z-index: 10;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}



.project-modal__title {
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  margin: 0;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  line-height: 1.1;
}

/* Content Sections - Now Flow Naturally */
.content-section {
  padding: 2rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

.content-section:last-child {
  border-bottom: none;
  padding-bottom: 3rem;
}

/* Modal content section headers */
.content-section .section-header {
  text-align: left;
  margin-bottom: 1.5rem;
}

.content-section .section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.5rem 0;
}

.content-section .section-subtitle {
  font-size: 1rem;
  color: #64748b;
  margin: 0;
}

/* Overview Section */
.overview-section {
  background: #f8fafc;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.overview-item {
  text-align: center;
  padding: 1rem;
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
}

.overview-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.overview-value {
  display: block;
  font-size: 1.125rem;
  font-weight: 700;
  color: #0f172a;
}

/* Metrics Section - Smaller Modal Features */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.metric-card {
  text-align: center;
  padding: 1rem 0.75rem;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border: 1px solid rgba(226, 232, 240, 0.6);
  border-radius: 0.75rem;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
}

.metric-card .metric-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: #e11d48;
  line-height: 1;
  margin-bottom: 0.375rem;
}

.metric-card .metric-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Description Section */
.description-text {
  font-size: 1.125rem;
  line-height: 1.7;
  color: #475569;
  margin: 0;
}

/* Challenges & Solutions */
.challenges-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.challenges-column,
.solutions-column {
  background: #f8fafc;
  border-radius: 1rem;
  padding: 1.5rem;
}

.column-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 1rem 0;
}

.column-title i {
  color: #e11d48;
}

.challenges-list,
.solutions-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.challenge-item,
.solution-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #475569;
}

.challenge-item i {
  color: #dc2626;
  margin-top: 0.125rem;
  flex-shrink: 0;
}

.solution-item i {
  color: #059669;
  margin-top: 0.125rem;
  flex-shrink: 0;
}

/* Technologies Section */
.technologies-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tech-badge {
  font-size: 0.875rem;
  font-weight: 600;
  color: #0f172a;
  background: linear-gradient(135deg, #e2e8f0, #f1f5f9);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 9999px;
  padding: 0.5rem 1rem;
  transition: all 200ms ease;
}

.tech-badge:hover {
  background: linear-gradient(135deg, #cbd5e1, #e2e8f0);
  transform: translateY(-1px);
}

/* Hide complex CTA elements that are no longer needed */
.projects-cta-enhanced,
.cta-section {
  display: none !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .projects-featured__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    min-height: auto;
    padding: 2rem;
  }
  
  .projects-featured__title {
    font-size: 2.25rem;
  }
  
  .projects-featured__desc {
    font-size: 1.125rem;
  }
  
  .impact-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .challenges-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .overview-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .projects-cta-simplified .cta-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  .projects-hero__stats {
    gap: 1rem;
  }
  
  .stat-item {
    padding: 0.75rem 1rem;
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
  
  .projects-featured__title {
    font-size: 2rem;
  }
  
  .projects-featured__desc {
    font-size: 1rem;
  }
  
  .projects-featured__grid {
    padding: 1.5rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .project-modal__dialog {
    width: 95vw;
    max-height: 92vh;
    top: 4vh;
    left: 2.5vw;
    transform: none;
  }
  
  .project-modal--enhanced.is-open .project-modal__dialog {
    transform: none;
  }
  
  .project-modal__hero {
    height: 280px;
  }
  
  .project-modal__title {
    font-size: 1.75rem;
  }
  
  .project-modal__nav {
    width: 2.5rem;
    height: 2.5rem;
  }
  
  .project-modal__nav--prev {
    left: 1rem;
  }
  
  .project-modal__nav--next {
    right: 1rem;
  }
  
  .project-modal__hero-overlay {
    padding: 2rem 1.5rem 1.5rem;
  }
  
  .content-section {
    padding: 1.5rem;
  }
  
  .content-section:last-child {
    padding-bottom: 2rem;
  }
  
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .challenges-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .overview-grid {
    grid-template-columns: 1fr;
  gap: 1rem;
}
  
  .projects-cta-wrapper .final-cta .cta-title {
    font-size: 2rem;
  }
  
  .projects-cta-wrapper .final-cta .cta-subtitle {
    font-size: 1.125rem;
  }
  
  .projects-cta-wrapper .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  
}

@media (max-width: 480px) {
  .projects-hero__stats {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .projects-featured__grid {
    padding: 1.5rem;
  }
  
  .content-section {
    padding: 1rem;
  }
  
  .project-modal__hero-overlay {
    padding: 1rem;
  }
  
  
}

/* Animations and Interactions */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.projects-featured__content {
  animation: slideInUp 600ms cubic-bezier(0.2, 0.8, 0.2, 1) 200ms both;
}

.project-card--enhanced {
  animation: slideInUp 400ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.project-card--enhanced:nth-child(1) { animation-delay: 100ms; }
.project-card--enhanced:nth-child(2) { animation-delay: 200ms; }
.project-card--enhanced:nth-child(3) { animation-delay: 300ms; }
.project-card--enhanced:nth-child(4) { animation-delay: 400ms; }

/* Focus and Accessibility */
.project-card__link:focus-visible,
.btn-primary:focus-visible,
.btn-cta:focus-visible {
  outline: 3px solid rgba(225, 29, 72, 0.5);
  outline-offset: 2px;
}

.project-modal__close:focus-visible,
.project-modal__nav:focus-visible {
  outline: 3px solid rgba(225, 29, 72, 0.7);
  outline-offset: 2px;
}

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

/* Hide legacy styles that conflict */
.projects-hero,
.project-card:not(.project-card--enhanced),
.projects-cta:not(.projects-cta-enhanced) {
  display: none !important;
}

/* Subtle divider between sections */
.projects-divider {
  height: 1px;
  margin: 2rem auto;
  max-width: 1200px;
  background: linear-gradient(90deg, transparent, rgba(226, 232, 240, 0.8), transparent);
}
.btn-primary--sm i { font-size: 0.9em; } 

.projects-showcase {
    padding: 4rem 0;
    background-color: #f8fafc;
}

.projects-showcase__center {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0 1rem;
}

.projects-showcase__branding {
    margin-bottom: 1.5rem;
}

.projects-showcase__logo {
    width: 120px;
    height: auto;
}

.projects-showcase__header .section-header__label {
    color: #e11d48;
    font-weight: 700;
}

.projects-showcase__header .section-header__title {
    font-size: 2.5rem;
    color: #1e293b;
}

.projects-showcase__header .section-header__subtitle {
    color: #475569;
}

.projects-showcase__carousel {
    margin-top: 3rem;
}

.projects-carousel__item {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.projects-carousel__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: #fff;
}

@media (max-width: 768px) {
    .projects-showcase {
        padding: 3rem 0;
    }

    .projects-showcase__header .section-header__title {
        font-size: 2rem;
    }

    .projects-carousel__item {
        margin-bottom: 1.5rem;
    }
}

.projects-carousel__item--flexible {
    display: flex;
    flex-direction: column;
}

.projects-carousel__item--flexible img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

@media (max-width: 480px) {
    .projects-showcase__header .section-header__title {
        font-size: 1.5rem;
    }

    .projects-showcase__header .section-header__subtitle {
        font-size: 0.9rem;
    }

    .projects-carousel__content {
        padding: 1rem;
    }

    .projects-carousel__title {
        font-size: 0.9rem;
    }

    .projects-carousel__subtitle {
        font-size: 0.8rem;
    }
} 