:root {
  --bg: #07090f;
  --glass: rgba(255, 255, 255, 0.03);
  --glass-hover: rgba(255, 255, 255, 0.055);
  --border: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(255, 255, 255, 0.15);
  --text: #e8edf5;
  --muted: rgba(232, 237, 245, 0.42);
  --faint: rgba(232, 237, 245, 0.15);
  --orange: #f97316;
  --orange-deep: #ea580c;
  --orange-light: #fb923c;
  --orange-glow: rgba(249, 115, 22, 0.18);
  --btn-gradient: linear-gradient(135deg, #fb923c 0%, #f97316 50%, #ea580c 100%);
}

body.projects-premium-page {
  background: #07090f;
  color: var(--text);
  font-family: "Manrope", sans-serif;
  position: relative;
}

body.projects-premium-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
}

body.projects-premium-page::after {
  content: "";
  position: fixed;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(249, 115, 22, 0.07) 0%, transparent 65%);
  z-index: 0;
  pointer-events: none;
}

body.projects-premium-page main,
body.projects-premium-page .site-header,
body.projects-premium-page .site-footer {
  position: relative;
  z-index: 1;
}

body.projects-premium-page main {
  background: transparent !important;
}

body.projects-premium-page .mobile-nav {
  position: fixed !important;
  inset: 0;
  z-index: 40 !important;
}

body.projects-premium-page .site-header {
  border-bottom: 1px solid rgba(249, 115, 22, 0.22);
  background: rgba(7, 9, 15, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body.projects-premium-page .brand,
body.projects-premium-page .nav a,
body.projects-premium-page .contact-cta,
body.projects-premium-page .icon-btn {
  font-family: "Manrope", sans-serif;
}

body.projects-premium-page .brand {
  color: var(--text);
}

body.projects-premium-page .brand .accent {
  color: var(--orange-light);
  background: none;
  -webkit-text-fill-color: currentColor;
}

body.projects-premium-page .nav a {
  color: var(--muted);
}

body.projects-premium-page .nav a:hover,
body.projects-premium-page .nav a.active {
  color: var(--text);
  background: rgba(249, 115, 22, 0.1);
}

body.projects-premium-page .nav a::after {
  background: var(--btn-gradient);
}

body.projects-premium-page .contact-cta {
  border: 1px solid rgba(249, 115, 22, 0.45);
  background: transparent;
  color: var(--orange-light) !important;
}

body.projects-premium-page .contact-cta:hover {
  background: rgba(249, 115, 22, 0.12);
  border-color: rgba(249, 115, 22, 0.7);
}

body.projects-premium-page main > section.pp-hero,
body.projects-premium-page main > section.pp-filters,
body.projects-premium-page main > section.pp-featured,
body.projects-premium-page main > section.pp-other {
  padding: 0 !important;
  min-height: auto !important;
  background: transparent !important;
}

.pp-container {
  width: min(calc(100% - 96px), 1080px);
  margin: 0 auto;
}

.pp-hero .pp-container {
  padding: 96px 0 0;
}

.pp-hero-inner {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 64px;
  margin-bottom: 64px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.pp-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pp-kicker {
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 0.62rem;
  color: var(--orange-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.pp-kicker::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--orange-light);
}

.pp-title {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(2.15rem, 6.3vw, 5.1rem);
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -0.02em;
  color: var(--text);
}

.pp-title span {
  display: block;
  margin-top: 6px;
  font-style: italic;
  opacity: 0.35;
}

.pp-subtitle {
  max-width: 690px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.78;
  font-weight: 300;
}

.pp-ghost-number {
  position: absolute;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%);
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: clamp(5.5rem, 16vw, 11rem);
  color: #ffffff;
  opacity: 0.025;
  line-height: 0.9;
  user-select: none;
  pointer-events: none;
  z-index: 0;
}

.pp-filters .pp-container {
  margin-bottom: 48px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  padding: 7px 18px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  color: rgba(232, 237, 245, 0.42);
  font-size: 0.68rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: "Manrope", sans-serif;
  cursor: pointer;
  transition: all 0.2s;
}

.pill.active {
  background: linear-gradient(135deg, #fb923c, #ea580c);
  border-color: transparent;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(249, 115, 22, 0.3);
}

.featured-list {
  display: grid;
  gap: 24px;
  transition: opacity 0.24s ease;
}

.featured-list.is-switching,
.other-grid.is-switching {
  opacity: 0.45;
}

.card {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 32px;
  transition: background 0.3s, border-color 0.3s, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card:hover {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #fb923c, #f97316, #ea580c);
  border-radius: 16px 16px 0 0;
  opacity: 0;
  transition: opacity 0.3s;
}

.card:hover::before {
  opacity: 1;
}

.feature-card {
  display: grid;
  grid-template-columns: 40% 60%;
  gap: 24px;
}

.feature-visual {
  height: 260px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  position: relative;
  overflow: hidden;
}

.feature-visual::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 26px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(circle at 14px 13px, #ff5f57 0 4px, transparent 4.2px),
    radial-gradient(circle at 30px 13px, #ffbd2e 0 4px, transparent 4.2px),
    radial-gradient(circle at 46px 13px, #28ca42 0 4px, transparent 4.2px),
    rgba(0, 0, 0, 0.28);
  z-index: 2;
}

.feature-visual img {
  width: calc(100% - 20px);
  height: calc(100% - 34px);
  margin: 28px 10px 6px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.feature-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.project-number {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 600;
}

.tag-row,
.tech-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cat-badge,
.tech-chip {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.68rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
}

.cat-ai {
  color: #b39dfa;
  border-color: rgba(179, 157, 250, 0.3);
  background: rgba(179, 157, 250, 0.08);
}

.cat-web {
  color: #4ecca3;
  border-color: rgba(78, 204, 163, 0.3);
  background: rgba(78, 204, 163, 0.08);
}

.cat-data {
  color: #5ab4ef;
  border-color: rgba(90, 180, 239, 0.3);
  background: rgba(90, 180, 239, 0.08);
}

.cat-ml {
  color: #f0914e;
  border-color: rgba(240, 145, 78, 0.3);
  background: rgba(240, 145, 78, 0.08);
}

.cat-ux {
  color: #f07ab0;
  border-color: rgba(240, 122, 176, 0.3);
  background: rgba(240, 122, 176, 0.08);
}

.feature-title,
.other-card h3,
.other-header h2 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

.feature-title {
  font-size: clamp(1.5rem, 2.2vw, 2rem);
}

.feature-description,
.other-card p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.8;
  color: var(--muted);
}

.feature-footer {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 16px;
}

.link-arrow {
  color: var(--orange-light);
  font-size: 1.2rem;
  line-height: 1;
  text-decoration: none;
  transition: transform 0.2s ease, color 0.2s ease;
}

.link-arrow:hover {
  color: #fff;
  transform: translateX(2px);
}

.btn-primary {
  font-family: "Manrope", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 13px 28px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(135deg, #fb923c 0%, #f97316 50%, #ea580c 100%);
  color: #fff;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.3s;
  box-shadow: 0 4px 20px rgba(249, 115, 22, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(249, 115, 22, 0.4);
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: left 0.4s;
}

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

.btn-ghost {
  font-family: "Manrope", sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 12px 28px;
  border-radius: 8px;
  border: 1px solid rgba(249, 115, 22, 0.3);
  background: transparent;
  color: #f97316;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s;
}

.btn-ghost:hover {
  background: rgba(249, 115, 22, 0.08);
  border-color: rgba(249, 115, 22, 0.6);
}

.btn-primary[aria-disabled="true"],
.btn-ghost[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}

.pp-other .pp-container {
  padding: 64px 0 96px;
}

.other-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}

.other-title-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  flex: 1;
}

.other-line {
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, var(--border), transparent);
}

.other-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  transition: opacity 0.24s ease;
}

.other-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 320px;
}

.other-top {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 2;
}

.project-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(7, 9, 15, 0.58);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: 1rem;
}

.other-index {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(232, 237, 245, 0.45);
  background: rgba(7, 9, 15, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 6px 10px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.other-media {
  position: relative;
  height: 170px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.other-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 6, 10, 0.08), rgba(4, 6, 10, 0.5)),
    radial-gradient(90% 70% at 50% 6%, rgba(249, 115, 22, 0.1), transparent 72%);
  pointer-events: none;
}

.other-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: saturate(0.88) contrast(1.02) brightness(0.9);
  transform: scale(1.01);
  transition: transform 0.3s ease, filter 0.3s ease;
}

.other-card:hover .other-media img {
  transform: scale(1.03);
  filter: saturate(0.96) contrast(1.04) brightness(0.94);
}

.other-card h3 {
  font-size: 1.3rem;
}

.other-divider {
  height: 1px;
  margin-top: auto;
  background: var(--border);
}

.other-footer {
  display: flex;
  justify-content: flex-end;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.project-item.enter {
  animation: projectIn 0.45s ease forwards;
}

@keyframes projectIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Projects page footer aligned to Contact page footer design */
body.projects-premium-page .site-footer {
  position: relative;
  z-index: 2;
  background: #0a0a0e;
  border-top: 1px solid #1c1c28;
  padding: 3rem 0 2rem;
  overflow: hidden;
}

body.projects-premium-page .site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 84% 10%, rgba(168, 85, 247, 0.09), transparent 45%);
  pointer-events: none;
}

body.projects-premium-page .footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.7fr;
  gap: 1.4rem;
  border: 1px solid #1c1c28;
  border-radius: 4px;
  background: rgba(13, 13, 20, 0.92);
  padding: 1.2rem;
  overflow: hidden;
  isolation: isolate;
}

body.projects-premium-page .footer-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 50%, rgba(0, 245, 212, 0.16), transparent 52%),
    url("../images/background water mark.jpg") 88% center / 300px auto no-repeat;
  filter: blur(1px) grayscale(0.05) contrast(1.12);
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

body.projects-premium-page .footer-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 8, 12, 0.9), rgba(8, 8, 12, 0.72) 56%, rgba(8, 8, 12, 0.46));
  pointer-events: none;
  z-index: 0;
}

body.projects-premium-page .footer-grid > * {
  position: relative;
  z-index: 1;
}

body.projects-premium-page .site-footer strong {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #f0f0f8;
  display: block;
  margin-bottom: 8px;
}

body.projects-premium-page .site-footer p {
  font-size: 0.85rem;
  font-weight: 300;
  color: #5a5a72;
  line-height: 1.7;
  max-width: 280px;
  margin: 0;
}

body.projects-premium-page .site-footer h4 {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #00f5d4;
  margin-bottom: 14px;
  margin-top: 0;
}

body.projects-premium-page .socials {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

body.projects-premium-page .socials a,
body.projects-premium-page .site-footer .footer-grid > div:last-child a {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: #5a5a72;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.25s ease, padding-left 0.25s ease;
}

body.projects-premium-page .site-footer .footer-grid > div:last-child a {
  color: #dbe8ff;
  font-weight: 600;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.18);
}

body.projects-premium-page .site-footer .footer-grid > div:last-child a:focus-visible {
  outline: 2px solid rgba(56, 189, 248, 0.85);
  outline-offset: 3px;
  border-radius: 4px;
}

body.projects-premium-page .socials a::before,
body.projects-premium-page .site-footer .footer-grid > div:last-child a::before {
  content: "\2192";
  opacity: 0;
  transition: opacity 0.25s ease;
  color: #00f5d4;
  font-size: 0.65rem;
}

body.projects-premium-page .socials a:hover,
body.projects-premium-page .site-footer .footer-grid > div:last-child a:hover {
  color: #00f5d4;
  padding-left: 6px;
}

body.projects-premium-page .socials a:hover::before,
body.projects-premium-page .site-footer .footer-grid > div:last-child a:hover::before {
  opacity: 1;
}

body.projects-premium-page .site-footer .footer-grid > div:last-child {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

body.projects-premium-page .copyright {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: #5a5a72;
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #1c1c28;
}

@media (max-width: 980px) {
  .pp-container {
    width: min(calc(100% - 72px), 1080px);
  }

  .feature-card {
    grid-template-columns: 1fr;
  }

  .other-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.projects-premium-page .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.projects-premium-page .footer-grid::before {
    background-size: 220px auto;
    background-position: 96% center;
    opacity: 0.3;
  }
}

@media (max-width: 760px) {
  .pp-container {
    width: min(calc(100% - 48px), 1080px);
  }

  .pp-hero-inner {
    padding-bottom: 52px;
    margin-bottom: 52px;
  }

  .pp-ghost-number {
    font-size: clamp(3.8rem, 24vw, 7.8rem);
    top: 42%;
  }

  .pp-title {
    font-size: clamp(1.8rem, 10vw, 2.8rem);
  }

  .pp-subtitle {
    max-width: 95%;
    font-size: 0.86rem;
  }

  .feature-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .other-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .other-line {
    width: 100%;
  }

  .other-grid {
    grid-template-columns: 1fr;
  }

  .btn-primary,
  .btn-ghost {
    width: 100%;
    text-align: center;
  }

  body.projects-premium-page .site-footer {
    padding: 2.2rem 0 1.4rem;
  }

  body.projects-premium-page .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.1rem;
    padding: 1.1rem;
  }
}
