/* ============================================================
   WORK PAGE STYLESHEET
   2x2 Grid, Clean Dark Aesthetic, 4K Typography & Cards
   ============================================================ */

body.work-page-body {
  background-color: #030304;
  color: #FFFFFF;
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Subtle Ambient Gradient Glow behind Hero Header */
.work-bg-ambient {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 500px;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(56, 107, 255, 0.08) 0%, rgba(3, 3, 4, 0) 100%);
  pointer-events: none;
  z-index: 0;
}

/* Main Container */
.work-page-main {
  position: relative;
  z-index: 1;
  width: 100%;
}

/* Hero Header Section */
.work-hero-header {
  text-align: center;
  padding: 140px 24px 44px;
  max-width: 1240px;
  margin: 0 auto;
}

.work-eyebrow {
  font-family: 'Geist Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: #8E8E93;
  text-transform: uppercase;
  display: block;
  margin-bottom: 20px;
}

.work-main-title {
  font-family: 'Merriweather', serif;
  font-size: clamp(28px, 4.2vw, 56px);
  font-weight: 400;
  color: #FFF8F0;
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 0;
  white-space: nowrap;
}

.work-main-title em {
  font-family: 'Merriweather', serif;
  font-style: italic;
  font-weight: 400;
  color: #FFF8F0;
}

/* 6-Petal Star Flower Icon */
.work-star-flower-svg {
  display: inline-block;
  vertical-align: middle;
  width: 34px;
  height: 34px;
  margin: -4px 6px 0;
  animation: workStarSpin 24s linear infinite;
  transform-origin: center;
}

@keyframes workStarSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* 2x2 Grid Container (1 & 2 on top, 3 & 4 on bottom) */
.work-grid-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 28px 120px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px 40px;
  box-sizing: border-box;
}

/* Individual Project Card */
.work-project-card {
  display: flex;
  flex-direction: column;
  position: relative;
  text-decoration: none;
  height: 100%;
}

/* Card Media Preview Container */
.work-card-media-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 28px;
  overflow: visible;
  background: #0B0D12;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 36px -12px rgba(0, 0, 0, 0.6);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease;
}

.work-card-media-inner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  display: block;
}

.work-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-project-card:hover .work-card-media-wrap {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 24px 50px -12px rgba(0, 0, 0, 0.85);
}

.work-project-card:hover .work-card-img {
  transform: scale(1.045);
}

/* Decorative 3D Popout Sticker */
.work-card-sticker {
  position: absolute;
  z-index: 10;
  pointer-events: none;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.45));
  transition: transform 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.work-sticker-top-right {
  top: -22px;
  right: -16px;
  width: 74px;
  height: auto;
  transform: rotate(12deg);
}

.work-sticker-bottom-right {
  bottom: -22px;
  right: -16px;
  width: 78px;
  height: auto;
  transform: rotate(-10deg);
}

.work-sticker-top-left {
  top: -24px;
  left: -16px;
  width: 76px;
  height: auto;
  transform: rotate(-14deg);
}

.work-project-card:hover .work-card-sticker {
  transform: scale(1.12) rotate(6deg) translateY(-4px);
}

/* Card 02 Specific Sticker: Wireframe "From insights to impact" (Made Bigger) */
.work-sticker-insights {
  width: 142px !important;
  top: -46px !important;
  right: -28px !important;
  transform: rotate(10deg) !important;
}

.work-project-card:hover .work-sticker-insights {
  transform: scale(1.1) rotate(5deg) translateY(-4px) !important;
}

/* Card 04 Specific Sticker: "EXPLORE" Map (Made Bigger) */
.work-sticker-map {
  width: 144px !important;
  bottom: -44px !important;
  right: -28px !important;
  transform: rotate(-8deg) !important;
}

.work-project-card:hover .work-sticker-map {
  transform: scale(1.1) rotate(-4deg) translateY(-4px) !important;
}

/* Card Meta Row: Tags on Left, Arrow Button on Right */
.work-card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 22px;
  margin-bottom: 14px;
  gap: 14px;
}

.work-card-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.work-tag-pill {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 6px 14px;
  border-radius: 9999px;
  backdrop-filter: blur(8px);
  white-space: nowrap;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.work-project-card:hover .work-tag-pill {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
}

/* Circular Arrow Button (Matches Image 3) */
.work-card-arrow-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #000000;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-decoration: none;
  transition: background 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-arrow-icon {
  width: 18px;
  height: 18px;
  display: block;
  transition: transform 0.3s ease;
}

.work-project-card:hover .work-card-arrow-btn {
  background: #FFFFFF;
  color: #000000;
  border-color: #FFFFFF;
  transform: scale(1.08);
}

.work-project-card:hover .work-arrow-icon {
  transform: translate(2px, -2px);
}

/* Card Title */
.work-card-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 8px 0;
  letter-spacing: -0.01em;
}

.work-card-title-link {
  color: #FFFFFF;
  text-decoration: none;
  transition: color 0.2s ease;
}

.work-project-card:hover .work-card-title-link {
  color: #60A5FA;
}

/* Card Description */
.work-card-desc {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: #9CA3AF;
  line-height: 1.6;
  margin: 0;
}

/* Responsive Breakpoints */
@media (max-width: 920px) {
  .work-hero-header {
    padding: 120px 20px 36px;
  }
  
  .work-grid-container {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 16px 20px 80px;
  }
  
  .work-card-title {
    font-size: 22px;
  }
}

@media (max-width: 640px) {
  .work-main-title {
    white-space: normal;
    font-size: clamp(28px, 6.5vw, 36px);
  }

  .work-sticker-insights {
    width: 104px !important;
    top: -30px !important;
    right: -14px !important;
  }

  .work-sticker-map {
    width: 108px !important;
    bottom: -28px !important;
    right: -16px !important;
  }
}

@media (max-width: 480px) {
  .work-hero-header {
    padding: 110px 16px 32px;
  }
  
  .work-main-title {
    font-size: 28px;
  }
  
  .work-card-media-wrap {
    border-radius: 22px;
  }
  
  .work-card-media-inner {
    border-radius: 22px;
  }
  
  .work-tag-pill {
    font-size: 12px;
    padding: 5px 12px;
  }
  
  .work-card-arrow-btn {
    width: 40px;
    height: 40px;
  }
}
