/* Modern Project Card Styles */
.modern-project-card {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  transform-origin: center;
  contain: layout style paint;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-5px);
  }
}

.modern-project-card:hover {
  animation-play-state: paused;
}

.modern-project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(0, 240, 255, 0.1),
      transparent);
  transition: left 0.5s ease;
  pointer-events: none;
  z-index: 0;
}

.modern-project-card:hover::before {
  left: 100%;
}

.modern-project-card:hover {
  border-color: rgba(0, 240, 255, 0.3);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(0, 240, 255, 0.1),
    0 0 30px rgba(0, 240, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.modern-project-card__image-container {
  position: relative;
  height: 220px;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.05), rgba(0, 0, 0, 0.1));
  z-index: 1;
}

.modern-project-card__image-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
}

.modern-project-card__image {
  width: 100%;
  height: 100%;
  object-fit: fill;
  transition: transform 0.4s ease;
}

.modern-project-card__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg,
      rgba(0, 240, 255, 0.1) 0%,
      rgba(0, 240, 255, 0.05) 50%,
      rgba(0, 0, 0, 0.4) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modern-project-card__actions {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  transform: translateY(20px);
  transition: transform 0.3s ease 0.1s;
}

.modern-project-card:hover .modern-project-card__actions {
  transform: translateY(0);
}

.modern-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 25px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

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

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

.modern-btn--primary {
  background: rgba(0, 240, 255, 0.9);
  color: #000;
  box-shadow: 0 8px 20px rgba(0, 240, 255, 0.3);
}

.modern-btn--primary:hover {
  background: rgba(0, 240, 255, 1);
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(0, 240, 255, 0.4);
  color: #000;
  text-decoration: none;
}

.modern-btn--secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.modern-btn--secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
  color: #ffffff;
  text-decoration: none;
}

.modern-btn svg {
  transition: transform 0.3s ease;
}

.modern-btn:hover svg {
  transform: translateX(3px);
}

.modern-project-card__content {
  padding: 24px;
  flex: 1 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  z-index: 2;
}

.modern-project-card__header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modern-project-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  background: linear-gradient(135deg, #ffffff, rgba(255, 255, 255, 0.8));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.modern-project-card__company {
  display: flex;
  align-items: center;
  gap: 8px;
}

.modern-project-card__company-link {
  color: #00f0ff;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  position: relative;
}

.modern-project-card__company-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #00f0ff, rgba(0, 240, 255, 0.5));
  transition: width 0.3s ease;
}

.modern-project-card__company-link:hover::after {
  width: 100%;
}

.modern-project-card__company-link:hover {
  color: #ffffff;
  text-decoration: none;
  transform: translateX(2px);
}

.modern-project-card__description {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.modern-project-card__tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.modern-project-card__tech-tag {
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.2);
  color: #00f0ff;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.modern-project-card__tech-tag::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.modern-project-card__tech-tag:hover::before {
  left: 100%;
}

.modern-project-card__tech-tag:hover {
  background: rgba(0, 240, 255, 0.2);
  border-color: rgba(0, 240, 255, 0.4);
  transform: translateY(-1px);
}

.modern-project-card__tech-tag--more {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.7);
}

.modern-project-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: auto;
}

.modern-project-card__duration {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.modern-project-card__links {
  display: flex;
  gap: 12px;
}

.modern-project-card__link {
  color: #00f0ff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.3s ease;
  position: relative;
  padding: 4px 8px;
  border-radius: 8px;
}

.modern-project-card__link:hover {
  color: #ffffff;
  text-decoration: none;
  transform: translateX(3px);
  background: rgba(0, 240, 255, 0.1);
}

.modern-project-card__link svg {
  transition: transform 0.3s ease;
}

.modern-project-card__link:hover svg {
  transform: translateX(3px);
}

.modern-project-card__border {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(135deg,
      transparent 0%,
      rgba(0, 240, 255, 0.3) 25%,
      transparent 50%,
      rgba(0, 240, 255, 0.3) 75%,
      transparent 100%);
  background-size: 200% 200%;
  animation: borderAnimation 3s ease-in-out infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.modern-project-card:hover .modern-project-card__border {
  opacity: 1;
}

@keyframes borderAnimation {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

/* Loading skeleton animation */
@keyframes shimmer {
  0% {
    background-position: -468px 0;
  }

  100% {
    background-position: 468px 0;
  }
}

.modern-project-card.loading {
  background: linear-gradient(90deg,
      rgba(255, 255, 255, 0.05) 0px,
      rgba(255, 255, 255, 0.1) 40px,
      rgba(255, 255, 255, 0.05) 80px);
  background-size: 800px 104px;
  animation: shimmer 1.5s ease-in-out infinite;
}

/* Staggered animation effects */
.modern-project-card:nth-child(1) {
  animation-delay: 0s;
}

.modern-project-card:nth-child(2) {
  animation-delay: 1s;
}

.modern-project-card:nth-child(3) {
  animation-delay: 2s;
}

.modern-project-card:nth-child(4) {
  animation-delay: 3s;
}

.modern-project-card:nth-child(5) {
  animation-delay: 4s;
}

.modern-project-card:nth-child(6) {
  animation-delay: 5s;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .modern-project-card__image-container {
    height: 180px;
  }

  .modern-project-card__content {
    padding: 20px;
    gap: 12px;
  }

  .modern-project-card__title {
    font-size: 1.125rem;
  }

  .modern-btn {
    padding: 8px 16px;
    font-size: 13px;
  }
}

@media (max-width: 576px) {
  .modern-project-card__image-container {
    height: 160px;
  }

  .modern-project-card__content {
    padding: 16px;
  }

  .modern-project-card__footer {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
}

/* Dark mode enhancements */
@media (prefers-color-scheme: dark) {
  .modern-project-card {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
  }

  .modern-project-card:hover {
    background: rgba(255, 255, 255, 0.05);
  }
}

/* Performance optimizations */
.modern-project-card * {
  will-change: auto;
}

.modern-project-card:hover * {
  will-change: transform;
}

/* Focus states for accessibility */
.modern-project-card:focus-visible {
  outline: 2px solid #00f0ff;
  outline-offset: 2px;
}

.modern-btn:focus-visible,
.modern-project-card__link:focus-visible,
.modern-project-card__company-link:focus-visible {
  outline: 2px solid #00f0ff;
  outline-offset: 2px;
  border-radius: 4px;
}

