/* ======================================================
   GLOBAL RESET
====================================================== */

/* ======================================================
   HERO SECTION
====================================================== */

.work-hero {
  padding: 140px 0 90px;
  text-align: center;
}

.work-hero .eyebrow {
  font-size: 13px;
  letter-spacing: 1px;
  font-weight: 600;
  color: var(--brand);
  display: block;
  margin-bottom: 18px;
}

.work-hero h1 {
  font-size: 54px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 25px;
}

.work-hero span {
  color: var(--brand);
}

.work-hero p {
  max-width: 820px;
  margin: auto;
  font-size: 18px;
  color: var(--text-gray);
}

/* ======================================================
   FILTER BAR
====================================================== */

.work-filter {
  position: sticky;
  top: 80px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid #eee;
  z-index: 50;
}

.filter-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
}

.tabs button {
  background: none;
  border: none;
  margin-right: 26px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  color: #333;
  transition: .25s ease;
}

.tabs button:hover,
.tabs .active {
  color: var(--brand);
}

.filters select {
  padding: 8px 16px;
  border-radius: 30px;
  border: 1px solid #ddd;
  font-size: 14px;
}

/* ======================================================
   FEATURED WORK
====================================================== */

.featured-work {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 50px;
  margin-top: 70px;
}

.featured-card {
  position: relative;
  height: 480px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
}

.featured-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-strong);
}

.featured-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: .8s ease;
}

.featured-card:hover img {
  transform: scale(1.08);
}

/* overlay */

.featured-card .overlay {
  position: absolute;
  inset: 0;
  padding: 42px;
  background: linear-gradient(
    to top,
    rgba(0,0,0,.85),
    rgba(0,0,0,.35),
    transparent
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  transform: translateY(20px);
  transition: .6s ease;
}

.featured-card:hover .overlay {
  transform: translateY(0);
}

.featured-card span {
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: .9;
}

.featured-card h3 {
  font-size: 28px;
  margin: 12px 0 10px;
}

.featured-card p {
  font-size: 15px;
  opacity: .9;
  max-width: 420px;
}

.featured-card a {
  margin-top: 12px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
}
/* ===============================
   PORTFOLIO GRID
================================ */

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 45px;
  margin: 120px auto;
}

/* reuse featured card */
.featured-card.small {
  height: 360px;
}

/* hover animation */
.featured-card.small .overlay {
  transform: translateY(25px);
  transition: 0.6s ease;
}

.featured-card.small:hover .overlay {
  transform: translateY(0);
}

.featured-card.small h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.featured-card.small p {
  font-size: 15px;
  opacity: 0.9;
}

.featured-card.small span {
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.85;
}

/* ======================================================
   NEXT BUTTON
====================================================== */

.featured-next {
  margin-top: 70px;
  text-align: center;
}

.next-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 46px;
  border-radius: 50px;
  border: 2px solid #e4002b;
  color: #e4002b;
  font-weight: 700;
  text-decoration: none;
  font-size: 16px;
  transition: .35s ease;
}

.next-btn span {
  font-size: 20px;
  transition: .35s ease;
}

.next-btn:hover {
  background: #e4002b;
  color: #fff;
  transform: translateY(-4px);
}

.next-btn:hover span {
  transform: translateX(6px);
}

/* ======================================================
   WORK TAXONOMY SECTION
====================================================== */

.work-taxonomy {
  padding: 120px 0;
  padding-bottom: 0px;
  background: #ffffff;
}

.taxonomy-block {
  margin-bottom: 90px;
}

.taxonomy-block h2 {
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 40px;
  color: #111;
}

/* ================= GRID ================= */

.taxonomy-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

/* ================= CARD ================= */

.taxonomy-card {
  position: relative;
  padding: 26px 28px;
  border-radius: 18px;
  background: #fafafa;
  border: 1px solid #eee;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  color: #222;

  transition: 
    transform .35s ease,
    box-shadow .35s ease,
    border .35s ease,
    color .35s ease;
}

/* arrow */
.taxonomy-card::after {
  content: "→";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  font-size: 18px;
  transition: .35s ease;
}

/* hover */

.taxonomy-card:hover {
  background: #fff;
  border-color: #e4002b;
  color: #e4002b;
  transform: translateY(-6px);
  box-shadow: 0 25px 60px rgba(0,0,0,.08);
}

.taxonomy-card:hover::after {
  opacity: 1;
  right: 18px;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 1100px) {
  .taxonomy-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .taxonomy-grid {
    grid-template-columns: 1fr;
  }

  .taxonomy-block h2 {
    font-size: 28px;
  }
}

/* ===============================
   RESPONSIVE
================================ */

@media (max-width: 1100px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .featured-card.small {
    height: 320px;
  }
}

/* ======================================================
   CALL TO ACTION
====================================================== */

.work-cta {
  background: linear-gradient(135deg,#000,#111);
  padding: 120px 20px;
  text-align: center;
  color: #fff;
}

.work-cta h2 {
  font-size: 44px;
  margin-bottom: 12px;
}

.work-cta p {
  color: #aaa;
  margin-bottom: 30px;
}

.btn {
  background: var(--brand);
  padding: 16px 52px;
  border-radius: 40px;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: .35s ease;
}

.btn:hover {
  background: var(--brand-dark);
  transform: translateY(-3px);
}

/* ======================================================
   RESPONSIVE
====================================================== */

@media (max-width: 1100px) {
  .featured-work {
    grid-template-columns: 1fr;
  }

  .work-grid {
    grid-template-columns: repeat(2,1fr);
  }
}

@media (max-width: 768px) {
  .work-grid {
    grid-template-columns: 1fr;
  }

  .work-hero h1 {
    font-size: 38px;
  }

  .featured-card {
    height: 380px;
  }
}
