/* ==========================================
   PREMIUM SPOTLIGHT CARD EFFECT
   Inspired by modern design systems with radial hover effects
   ========================================== */

/* Section styling - Override impact-first.css */
.how-i-work.section {
  position: relative;
  min-height: auto;
  padding: 8rem 0 !important;
  transition: background-color 0.7s ease-in-out, color 0.7s ease-in-out;
}

/* Hide old section-header if present */
.how-i-work > .container > .section-header {
  display: none;
}

/* Grain texture overlay */
.how-i-work::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.03;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  z-index: 0;
}

.how-i-work .container {
  position: relative;
  z-index: 10;
}

/* Header section with grid layout */
.how-i-work-header-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 6rem;
  align-items: end;
}

@media (min-width: 1024px) {
  .how-i-work-header-grid {
    grid-template-columns: 7fr 5fr;
  }
}

.how-i-work-header-left h2 {
  font-family: var(--font-display);
  font-size: var(--display-size-xl);
  font-weight: var(--weight-semibold);
  line-height: var(--display-line-height);
  letter-spacing: var(--display-letter-spacing);
  color: var(--text-display);
  margin-bottom: 1.5rem;
}

.how-i-work-methodology {
  font-family: var(--font-body);
  font-size: var(--body-size-sm);
  font-weight: var(--weight-medium);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: 1.5rem;
}

.how-i-work-fade {
  color: var(--text-muted);
}

.how-i-work-header-right {
  position: relative;
  padding-left: 2rem;
  border-left: 1px solid;
}

:root:not([data-theme="dark"]) .how-i-work-header-right {
  border-left-color: rgba(0, 0, 0, 0.1);
}

.how-i-work-header-right p {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 300;
  line-height: 1.6;
  color: var(--text-body);
}

/* Spotlight Cards Grid - Override stacked-cards.css */
.how-i-work .how-i-work-grid {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 1rem;
  position: relative;
  z-index: 1;
  flex-direction: unset;
  max-width: 100%;
  padding-top: 0;
  margin: 0;
}

@media (min-width: 768px) {
  .how-i-work .how-i-work-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Individual Spotlight Card - Premium Design */
.spotlight-card {
  position: relative;
  min-height: 220px;
  border-radius: 16px;
  padding: 2rem 2rem 2rem 2.5rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: pointer;
}

/* Left accent bar */
.spotlight-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg,
    var(--accent-primary, #d4923f) 0%,
    var(--accent-secondary, #e8a960) 100%);
  opacity: 0.6;
  transition: all 0.4s ease;
}

@media (hover: hover) {
  .spotlight-card:hover::before {
    width: 4px;
    opacity: 1;
  }
}

/* Card border and background - Light mode */
:root:not([data-theme="dark"]) .spotlight-card {
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(250, 248, 245, 0.9) 100%);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 4px 12px rgba(0, 0, 0, 0.03);
}

:root:not([data-theme="dark"]) .spotlight-card::before {
  background: linear-gradient(180deg, #d4923f 0%, #e8a960 100%);
}

/* Card border and background - Dark mode - Premium bluish glass */
:root[data-theme="dark"] .spotlight-card {
  border: 1px solid rgba(100, 150, 255, 0.08);
  background: linear-gradient(135deg,
    rgba(15, 22, 41, 0.7) 0%,
    rgba(10, 15, 30, 0.85) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    0 4px 24px rgba(0, 15, 40, 0.35),
    inset 0 1px 0 rgba(100, 150, 255, 0.04);
}

:root[data-theme="dark"] .spotlight-card::before {
  background: linear-gradient(180deg,
    var(--palette-night-accent, #c4d7ff) 0%,
    var(--palette-night-accent-2, #8cb6ff) 100%);
}

/* Card content container */
.spotlight-card-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Top row: Number - Large watermark style */
.spotlight-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.spotlight-card-number {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -0.03em;
  transition: all 0.4s ease;
}

/* Light mode number - subtle gold tint */
:root:not([data-theme="dark"]) .spotlight-card-number {
  color: rgba(212, 146, 63, 0.15);
}

@media (hover: hover) {
  :root:not([data-theme="dark"]) .spotlight-card:hover .spotlight-card-number {
    color: rgba(212, 146, 63, 0.25);
  }
}

/* Dark mode number - subtle silver-blue tint */
:root[data-theme="dark"] .spotlight-card-number {
  color: rgba(140, 182, 255, 0.12);
}

@media (hover: hover) {
  :root[data-theme="dark"] .spotlight-card:hover .spotlight-card-number {
    color: rgba(140, 182, 255, 0.2);
  }
}

/* Hide the external icon */
.spotlight-card-icon {
  display: none;
}

/* Bottom row: Content - Premium typography */
.spotlight-card-bottom h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 1.75rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-heading);
  margin-bottom: 0.375rem;
  transition: color 0.3s ease;
}

.spotlight-card-subtitle {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Subtitle dot accent */
.spotlight-card-subtitle::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  flex-shrink: 0;
}

:root:not([data-theme="dark"]) .spotlight-card-subtitle {
  color: var(--palette-sun-brown-mid, #8B6F47);
}

:root:not([data-theme="dark"]) .spotlight-card-subtitle::before {
  background: var(--accent-primary, #d4923f);
}

:root[data-theme="dark"] .spotlight-card-subtitle {
  color: var(--palette-night-accent, #c4d7ff);
}

:root[data-theme="dark"] .spotlight-card-subtitle::before {
  background: var(--palette-night-accent, #c4d7ff);
}

.spotlight-card-text {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 95%;
}

/* Animation on scroll in */
.spotlight-card {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

.spotlight-card:nth-child(1) {
  animation-delay: 0.1s;
}

.spotlight-card:nth-child(2) {
  animation-delay: 0.2s;
}

.spotlight-card:nth-child(3) {
  animation-delay: 0.3s;
}

.spotlight-card:nth-child(4) {
  animation-delay: 0.4s;
}

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

/* Responsive adjustments - Tablet */
@media (max-width: 1024px) {
  .how-i-work-header-grid {
    margin-bottom: 4rem;
  }

  .how-i-work-header-left h2 {
    font-size: clamp(2.5rem, 6vw, 4rem);
  }

  .spotlight-card {
    padding: 1.75rem 1.75rem 1.75rem 2rem;
    min-height: auto;
  }

  .spotlight-card-number {
    font-size: 2.5rem;
  }

  .spotlight-card-bottom h3 {
    font-size: 1.35rem;
  }

  .spotlight-card-subtitle {
    font-size: 0.65rem;
    margin-bottom: 0.75rem;
  }

  .spotlight-card-text {
    font-size: 0.875rem;
    font-weight: 400;
  }
}

/* Responsive adjustments - Mobile */
@media (max-width: 768px) {
  .how-i-work.section {
    padding: 5rem 0 !important;
  }

  .how-i-work-header-grid {
    grid-template-columns: 1fr;
    margin-bottom: 3rem;
    gap: 1.5rem;
  }

  .how-i-work-header-left h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
  }

  .how-i-work-methodology {
    font-size: 0.75rem;
    margin-bottom: 1rem;
  }

  .how-i-work-header-right {
    padding-left: 0;
    border-left: none;
    padding-top: 1rem;
    border-top: 1px solid;
  }

  :root:not([data-theme="dark"]) .how-i-work-header-right {
    border-top-color: rgba(0, 0, 0, 0.08);
  }

  :root[data-theme="dark"] .how-i-work-header-right {
    border-top-color: rgba(100, 150, 255, 0.12);
  }

  .how-i-work-header-right p {
    font-size: 1rem;
    font-weight: 300;
  }

  .how-i-work .how-i-work-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .spotlight-card {
    padding: 1.5rem 1.5rem 1.5rem 1.75rem;
    min-height: auto;
    border-radius: 12px;
  }

  .spotlight-card-top {
    margin-bottom: 0.25rem;
  }

  .spotlight-card-number {
    font-size: 2.25rem;
    font-weight: 300;
  }

  .spotlight-card-bottom h3 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.35rem;
  }

  .spotlight-card-subtitle {
    font-size: 0.7rem;
    margin-bottom: 0.75rem;
    font-weight: 400;
  }

  .spotlight-card-text {
    font-size: 0.85rem;
    line-height: 1.55;
    font-weight: 400;
  }
}

/* Responsive adjustments - Small Mobile */
@media (max-width: 480px) {
  .how-i-work.section {
    padding: 4rem 0 !important;
  }

  .how-i-work-header-left h2 {
    font-size: 2rem;
  }

  .spotlight-card {
    padding: 1.25rem 1.25rem 1.25rem 1.5rem;
    border-radius: 10px;
  }

  .spotlight-card-number {
    font-size: 1.75rem;
  }

  .spotlight-card-subtitle {
    font-size: 0.6rem;
    gap: 0.375rem;
  }

  .spotlight-card-subtitle::before {
    width: 3px;
    height: 3px;
  }

  .spotlight-card-bottom h3 {
    font-size: 1.1rem;
  }

  .spotlight-card-text {
    font-size: 0.8rem;
    font-weight: 400;
    line-height: 1.55;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .spotlight-card {
    animation: none;
    opacity: 1;
    transform: none;
    transition: box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  }

  @media (hover: hover) {
    .spotlight-card:hover {
      transform: none;
    }
  }

  .spotlight-card::before {
    transition: width 0.3s ease, opacity 0.3s ease;
  }
}

/* ===========================================
   DARK MODE TEXT COLORS
   =========================================== */

/* Dark mode header text - Silver-blue refined */
:root[data-theme="dark"] .how-i-work-header-left h2 {
  color: rgba(255, 255, 255, 0.95);
}

:root[data-theme="dark"] .how-i-work-methodology {
  color: var(--palette-night-accent, #c4d7ff);
  opacity: 0.7;
}

:root[data-theme="dark"] .how-i-work-fade {
  color: rgba(140, 182, 255, 0.5);
}

:root[data-theme="dark"] .how-i-work-header-right {
  border-left-color: rgba(100, 150, 255, 0.15);
}

:root[data-theme="dark"] .how-i-work-header-right p {
  color: rgba(203, 213, 225, 0.8);
}

/* Dark mode card text - Silver-blue refined */
:root[data-theme="dark"] .spotlight-card-bottom h3 {
  color: rgba(255, 255, 255, 0.95);
}

@media (hover: hover) {
  :root[data-theme="dark"] .spotlight-card:hover .spotlight-card-bottom h3 {
    color: #ffffff;
  }
}

:root[data-theme="dark"] .spotlight-card-text {
  color: rgba(203, 213, 225, 0.75);
}

@media (hover: hover) {
  :root[data-theme="dark"] .spotlight-card:hover .spotlight-card-text {
    color: rgba(203, 213, 225, 0.85);
  }
}

/* Light mode card text - Warm tones */
:root:not([data-theme="dark"]) .spotlight-card-bottom h3 {
  color: var(--text-display, #1a1a1a);
}

:root:not([data-theme="dark"]) .spotlight-card-text {
  color: var(--text-body, #2d2d2d);
  opacity: 0.8;
}

@media (hover: hover) {
  :root:not([data-theme="dark"]) .spotlight-card:hover .spotlight-card-text {
    opacity: 1;
  }
}

/* ===========================================
   HOVER BORDER GLOW EFFECT
   =========================================== */

/* Light mode hover - Elegant lift */
@media (hover: hover) {
  :root:not([data-theme="dark"]) .spotlight-card:hover {
    border-color: rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
    box-shadow:
      0 8px 24px rgba(0, 0, 0, 0.06),
      0 16px 48px rgba(0, 0, 0, 0.04);
  }
}

/* Dark mode hover - Premium bluish glow */
@media (hover: hover) {
  :root[data-theme="dark"] .spotlight-card:hover {
    border-color: rgba(100, 150, 255, 0.15);
    transform: translateY(-4px);
    background: linear-gradient(135deg,
      rgba(18, 28, 50, 0.85) 0%,
      rgba(12, 18, 35, 0.95) 100%);
    box-shadow:
      0 8px 32px rgba(0, 15, 40, 0.45),
      0 16px 48px rgba(0, 20, 50, 0.35),
      inset 0 1px 0 rgba(100, 150, 255, 0.08);
  }
}

/* ===========================================
   PAST WORK SPOTLIGHT SECTION
   Premium design with centered heading and refined cards
   =========================================== */

.past-work-spotlight.section {
  position: relative;
  padding: 7rem 0 8rem;
  overflow: hidden;
  transition: background-color 0.5s ease, color 0.5s ease;
}

/* Transparent background - inherits from page */
:root[data-theme="dark"] .past-work-spotlight.section {
  background: transparent;
}

:root:not([data-theme="dark"]) .past-work-spotlight.section {
  background: transparent;
}

/* Section Title - Centered */
.past-work-title {
  font-family: var(--font-heading);
  font-size: var(--heading-size-xl);
  font-weight: var(--heading-weight);
  line-height: var(--heading-line-height);
  letter-spacing: var(--heading-letter-spacing);
  color: var(--text-heading);
  margin-bottom: 3.5rem;
  text-align: center;
}

/* Grid Layout - Premium spacing */
.past-work-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .past-work-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Individual Card - Premium styling */
.past-work-card {
  position: relative;
  border-radius: 20px;
  padding: 2.5rem 2.25rem;
  min-height: 340px;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
}

/* Dark mode card styling - Deep glass effect */
:root[data-theme="dark"] .past-work-card {
  background: linear-gradient(
    155deg,
    rgba(18, 18, 28, 0.95) 0%,
    rgba(12, 12, 22, 0.98) 100%
  );
  border: 1px solid rgba(100, 140, 220, 0.12);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.5),
    0 2px 8px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(120, 160, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Light mode card styling - Clean elevated look */
:root:not([data-theme="dark"]) .past-work-card {
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #fefefe 100%
  );
  border: 1px solid rgba(139, 90, 43, 0.08);
  box-shadow:
    0 4px 24px rgba(139, 90, 43, 0.06),
    0 1px 3px rgba(0, 0, 0, 0.04);
}

/* Shader glow element - animated gradient on hover */
.past-work-card-glow {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

/* Shader gradient effect - Light mode (warm tones) */
:root:not([data-theme="dark"]) .past-work-card-glow::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 80% 50% at 20% 80%,
      rgba(255, 180, 120, 0.25) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse 60% 40% at 80% 20%,
      rgba(255, 140, 80, 0.2) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse 50% 60% at 50% 50%,
      rgba(255, 200, 150, 0.15) 0%,
      transparent 60%
    );
  animation: shaderPulse 4s ease-in-out infinite;
}

/* Shader gradient effect - Dark mode (cool bluish tones) */
:root[data-theme="dark"] .past-work-card-glow::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 80% 50% at 20% 80%,
      rgba(100, 150, 255, 0.2) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse 60% 40% at 80% 20%,
      rgba(150, 100, 255, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse 50% 60% at 50% 50%,
      rgba(120, 180, 255, 0.1) 0%,
      transparent 60%
    );
  animation: shaderPulse 4s ease-in-out infinite;
}

@keyframes shaderPulse {
  0%, 100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
  50% {
    transform: scale(1.1) rotate(2deg);
    opacity: 0.8;
  }
}

/* Card content - above glow */
.past-work-card-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Large stat number - Premium typography */
.past-work-stat {
  font-family: var(--font-display);
  font-size: var(--display-size-lg);
  font-weight: var(--weight-light);
  line-height: var(--display-line-height);
  letter-spacing: -0.04em;
  color: var(--text-display);
  margin-bottom: 0.4rem;
}

/* Uppercase label - Refined */
.past-work-label {
  font-family: var(--font-body);
  font-size: var(--body-size-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: 2rem;
}

/* Heading - Elegant italic */
.past-work-heading {
  font-family: var(--font-heading);
  font-size: var(--heading-size-md);
  font-weight: var(--heading-weight);
  font-style: italic;
  line-height: var(--heading-line-height);
  color: var(--text-heading);
  margin-bottom: 0.85rem;
}

/* Description text - Refined readability */
.past-work-desc {
  font-family: var(--font-body);
  font-size: var(--body-size-sm);
  font-weight: var(--body-weight);
  line-height: var(--body-line-height);
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  flex-grow: 1;
}


/* Tags container - Better spacing */
.past-work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: auto;
}

/* Individual tag - Premium pill style */
.past-work-tag {
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.45rem 0.9rem;
  border-radius: 100px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.02em;
}

:root[data-theme="dark"] .past-work-tag {
  background: rgba(100, 140, 220, 0.08);
  color: rgba(180, 200, 255, 0.8);
  border: 1px solid rgba(100, 150, 255, 0.15);
}

:root:not([data-theme="dark"]) .past-work-tag {
  background: rgba(139, 90, 43, 0.04);
  color: rgba(139, 90, 43, 0.75);
  border: 1px solid rgba(139, 90, 43, 0.12);
}

/* ===========================================
   PAST WORK HOVER EFFECTS - PREMIUM SPOTLIGHT
   =========================================== */

/* Dark mode hover - bluish spotlight */
@media (hover: hover) {
  :root[data-theme="dark"] .past-work-card:hover {
    border-color: rgba(120, 160, 255, 0.25);
    box-shadow:
      0 12px 40px rgba(80, 120, 200, 0.18),
      0 0 80px rgba(100, 150, 255, 0.06),
      inset 0 1px 0 rgba(150, 180, 255, 0.12);
    transform: translateY(-4px);
  }
}

@media (hover: hover) {
  :root[data-theme="dark"] .past-work-card:hover .past-work-card-glow {
    opacity: 1;
  }
}

/* Light mode hover - Warm elegant lift */
@media (hover: hover) {
  :root:not([data-theme="dark"]) .past-work-card:hover {
    border-color: rgba(139, 90, 43, 0.15);
    box-shadow:
      0 16px 48px rgba(139, 90, 43, 0.1),
      0 4px 12px rgba(0, 0, 0, 0.05);
    transform: translateY(-6px);
  }
}

/* Show shader glow on hover - Light mode */
@media (hover: hover) {
  :root:not([data-theme="dark"]) .past-work-card:hover .past-work-card-glow {
    opacity: 1;
  }
}

/* Tag hover effects - Dark mode */
@media (hover: hover) {
  :root[data-theme="dark"] .past-work-card:hover .past-work-tag {
    background: rgba(100, 150, 255, 0.12);
    border-color: rgba(120, 160, 255, 0.25);
    color: rgba(200, 220, 255, 0.9);
  }
}

/* Tag hover effects - Light mode with brown accent */
@media (hover: hover) {
  :root:not([data-theme="dark"]) .past-work-card:hover .past-work-tag {
    background: rgba(139, 90, 43, 0.08);
    border-color: rgba(139, 90, 43, 0.2);
    color: rgba(139, 90, 43, 0.9);
  }
}

/* ===========================================
   PAST WORK ANIMATION - FADE IN
   =========================================== */

.past-work-card {
  opacity: 0;
  transform: translateY(30px);
  animation: pastWorkFadeIn 0.6s ease forwards;
}

.past-work-card:nth-child(1) { animation-delay: 0.1s; }
.past-work-card:nth-child(2) { animation-delay: 0.2s; }
.past-work-card:nth-child(3) { animation-delay: 0.3s; }
.past-work-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes pastWorkFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===========================================
   PAST WORK RESPONSIVE ADJUSTMENTS
   =========================================== */

@media (max-width: 1024px) {
  .past-work-grid {
    gap: 1rem;
  }

  .past-work-card {
    padding: 2.25rem 2rem;
    min-height: 300px;
  }

  .past-work-stat {
    font-size: clamp(3rem, 8vw, 4rem);
  }
}

@media (max-width: 768px) {
  .past-work-spotlight.section {
    padding: 5rem 0;
  }

  .past-work-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .past-work-card {
    padding: 1.5rem 1.25rem;
    min-height: auto;
    border-radius: 16px;
  }

  .past-work-stat {
    font-size: 3rem;
  }

  .past-work-label {
    font-size: 0.6rem;
    margin-bottom: 1.5rem;
  }

  .past-work-heading {
    font-size: 1.25rem;
  }

  .past-work-desc {
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
  }

  .past-work-title {
    margin-bottom: 2.5rem;
    font-size: 2.25rem;
  }

  .past-work-tag {
    font-size: 0.65rem;
    padding: 0.4rem 0.75rem;
  }
}

@media (max-width: 480px) {
  .past-work-spotlight.section {
    padding: 4rem 0;
  }

  .past-work-grid {
    gap: 0.65rem;
  }

  .past-work-card {
    padding: 1.25rem 1rem;
  }

  .past-work-stat {
    font-size: 2.25rem;
  }

  .past-work-label {
    font-size: 0.55rem;
  }

  .past-work-heading {
    font-size: 1.05rem;
  }

  .past-work-desc {
    font-size: 0.8rem;
  }

  .past-work-title {
    font-size: 2rem;
  }
}

/* ===========================================
   PAST WORK REDUCED MOTION SUPPORT
   =========================================== */

@media (prefers-reduced-motion: reduce) {
  .past-work-card {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .past-work-card,
  .past-work-card-glow,
  .past-work-tag {
    transition: none;
  }

  .past-work-card-glow::before {
    animation: none;
  }
}
