/* F14 — Projects: glass stage + image cards */

#projects.section-projects {
  overflow: hidden;
  position: relative;
  z-index: 1;
}

#projects.section-projects .container {
  position: relative;
  isolation: isolate;
  padding: clamp(28px, 4vw, 40px);
  border-radius: var(--radius-xl);
  background-color: rgba(26, 54, 93, 0.42);
  background-image:
    linear-gradient(
      145deg,
      rgba(26, 54, 93, 0.62) 0%,
      rgba(42, 58, 78, 0.38) 55%,
      rgba(255, 87, 34, 0.12) 100%
    ),
    var(--blueprint-pattern);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 24px 56px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

#projects.section-projects .container::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 3px;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  background: linear-gradient(
    90deg,
    var(--orange) 0%,
    var(--orange-soft) 45%,
    transparent 100%
  );
  pointer-events: none;
}

#projects.section-projects .section-header {
  margin-bottom: clamp(20px, 3vw, 28px);
}

#projects.section-projects .section-title {
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

#projects.section-projects .section-desc {
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.28);
}

#projects.section-projects .projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

#projects.section-projects .project-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  position: relative;
  will-change: transform, box-shadow;
  transition:
    transform var(--dur-med) cubic-bezier(0.16, 1, 0.3, 1),
    border-color var(--dur-fast) ease,
    box-shadow var(--dur-med) ease;
}

/* Shimmer Light Reflection Sweep */
#projects.section-projects .project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 35%,
    rgba(255, 255, 255, 0.12) 50%,
    transparent 65%
  );
  transform: translateX(-100%);
  transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 2;
}

#projects.section-projects .project-card:hover::after {
  transform: translateX(100%);
}

#projects.section-projects .project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 140, 100, 0.55);
  box-shadow:
    0 22px 50px rgba(0, 0, 0, 0.28),
    0 0 24px rgba(255, 87, 34, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

#projects.section-projects .project-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.45);
}

#projects.section-projects .project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

#projects.section-projects .project-card:hover .project-image img {
  transform: scale(1.08);
}

#projects.section-projects .project-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(15, 23, 42, 0.5) 0%,
    transparent 60%
  );
  pointer-events: none;
}

#projects.section-projects .project-type-badge {
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
  z-index: 1;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 87, 34, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
}

#projects.section-projects .project-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#projects.section-projects .project-body h3 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
  margin: 0;
}

#projects.section-projects .project-body p {
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#projects.section-projects .project-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  padding-top: 4px;
}

#projects.section-projects .project-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.76rem;
}

#projects.section-projects .project-meta-label {
  color: var(--text-muted);
  font-weight: 400;
}

#projects.section-projects .project-meta-label::after {
  content: ":";
}

#projects.section-projects .project-meta-value {
  color: var(--text-secondary);
  font-weight: 500;
}

@media (max-width: 992px) {
  #projects.section-projects .container {
    padding: clamp(20px, 5vw, 28px);
    border-radius: var(--radius-lg);
  }

  #projects.section-projects .projects-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  #projects.section-projects .project-card:hover .project-image img {
    transform: none;
  }
}
