/* ==========================================================================
   NEXORYA — Case Study: PawPaw Snack
   Dark spatial theme matching nexorya.com
   ========================================================================== */

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--body-font);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: rgba(255, 255, 255, 0.85);
  background: #050507;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

::selection {
  background: var(--selection-bg);
  color: var(--selection-color);
}

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  background: rgba(5, 5, 7, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav__logo img {
  height: 22px;
  width: auto;
  filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.4));
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
}

.nav__links a:hover { color: white; }

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  background: var(--color-orange);
  color: white !important;
  font-weight: 600;
  transition: transform 0.2s var(--ease-2), box-shadow 0.2s;
}

.nav__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(255, 95, 46, 0.4);
}

.cta-dots { display: inline-flex; gap: 3px; }
.cta-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  animation: cta-blink 1.4s infinite;
}
.cta-dot:nth-child(2) { animation-delay: 0.2s; }
.cta-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes cta-blink {
  0%, 80%, 100% { opacity: 0.3; }
  40% { opacity: 1; }
}

.case__back {
  display: none;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s;
}
.case__back:hover { color: white; }

/* ===== CASE HERO ===== */
.case-hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: flex-end;
  padding: 0 0 80px;
  overflow: hidden;
}

.case-hero__bg {
  position: absolute;
  inset: 0;
}

.case-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.case-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, #050507 0%, rgba(5, 5, 7, 0.7) 40%, rgba(5, 5, 7, 0.3) 100%),
    linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, transparent 60%);
}

.case-hero__content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 40px;
}

.case-hero__tag {
  display: inline-block;
  font-family: var(--body-font);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-orange);
  margin-bottom: 16px;
}

.case-hero__title {
  font-family: var(--heading-font);
  font-size: clamp(48px, 8vw, 96px);
  line-height: 1;
  color: white;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.case-hero__subtitle {
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
}

.case-hero__subtitle strong {
  color: white;
}

/* ===== STATS BAR ===== */
.case-stats {
  background: #0a0a10;
  border-top: 1px solid rgba(139, 92, 246, 0.15);
  border-bottom: 1px solid rgba(139, 92, 246, 0.15);
  padding: 48px 40px;
}

.case-stats__grid {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.case-stats__number {
  display: block;
  font-family: var(--heading-font);
  font-size: clamp(32px, 4vw, 48px);
  color: white;
  line-height: 1;
  margin-bottom: 8px;
}

.case-stats__label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ===== SECTIONS ===== */
.case-section {
  padding: clamp(60px, 8vw, 120px) 0;
}

.case-section--dark {
  background: #0a0a10;
}

.case-section--accent {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.12) 0%, rgba(6, 182, 212, 0.08) 100%);
  border-top: 1px solid rgba(139, 92, 246, 0.15);
  border-bottom: 1px solid rgba(6, 182, 212, 0.15);
}

.case-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.case-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-orange);
  margin-bottom: 16px;
}

.case-label--dark {
  color: var(--color-orange);
}

.case-section h2,
.case-h2--dark {
  font-family: var(--heading-font);
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  color: white;
  margin-bottom: 32px;
  max-width: 700px;
}

/* ===== TWO COLUMN LAYOUT ===== */
.case-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.case-two-col__left h2 {
  margin-bottom: 0;
}

.case-two-col__right p {
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 16px;
}

.case-two-col__right strong {
  color: white;
}

/* ===== CLIENT META ===== */
.case-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 32px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.case-meta__label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 6px;
}

.case-meta__value {
  font-size: 15px;
  font-weight: 500;
  color: white;
}

/* ===== CHALLENGES ===== */
.case-challenges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.case-challenge {
  padding: 32px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: border-color 0.3s var(--ease-2);
}

.case-challenge:hover {
  border-color: rgba(139, 92, 246, 0.25);
}

.case-challenge__number {
  font-family: var(--heading-font);
  font-size: 36px;
  color: rgba(139, 92, 246, 0.3);
  margin-bottom: 16px;
}

.case-challenge h3 {
  font-family: var(--heading-font);
  font-size: 20px;
  color: white;
  margin-bottom: 12px;
}

.case-challenge p {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
}

/* ===== SOLUTION ===== */
.case-solution {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.case-solution__block {
  padding: 36px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.3s var(--ease-2), border-color 0.3s;
}

.case-solution__block:hover {
  transform: translateY(-4px);
  border-color: rgba(6, 182, 212, 0.3);
}

.case-solution__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(139, 92, 246, 0.12);
  color: #a78bfa;
  margin-bottom: 20px;
}

.case-solution__block h3 {
  font-family: var(--heading-font);
  font-size: 22px;
  color: white;
  margin-bottom: 12px;
}

.case-solution__block p {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 16px;
}

.case-solution__block strong {
  color: rgba(255, 255, 255, 0.85);
}

.case-solution__block ul {
  list-style: none;
  padding: 0;
}

.case-solution__block li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.55);
}

.case-solution__block li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-orange);
  opacity: 0.7;
}

/* ===== DESIGN SHOWCASE ===== */
.case-design-intro {
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
  max-width: 600px;
  margin-bottom: 48px;
}

.case-design {
  display: flex;
  align-items: center;
  gap: 60px;
  margin-bottom: 60px;
}

.case-design__palette {
  display: flex;
  gap: 12px;
}

.case-swatch {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--c);
  border: 2px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.2s var(--ease-2);
}

.case-swatch:hover { transform: scale(1.12); }

.case-swatch--dark {
  border-color: rgba(255, 255, 255, 0.15);
}

.case-design__fonts {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.case-design__font-display {
  font-family: 'Fredoka', 'Varela Round', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: #FF6B9D;
}

.case-design__font-body {
  font-family: 'DM Sans', var(--body-font), sans-serif;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.45);
}

/* Load Fredoka for design showcase */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@700&family=DM+Sans:wght@400&display=swap');

.case-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.case-feature {
  padding: 28px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.case-feature__title {
  display: block;
  font-family: var(--heading-font);
  font-size: 16px;
  color: #06b6d4;
  margin-bottom: 8px;
}

.case-feature p {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.5);
}

/* ===== RESULTS ===== */
.case-results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.case-result {
  padding: 36px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.case-result__number {
  display: block;
  font-family: var(--heading-font);
  font-size: clamp(36px, 4vw, 56px);
  color: white;
  line-height: 1;
  margin-bottom: 8px;
}

.case-result__unit {
  font-size: 0.5em;
  color: rgba(255, 255, 255, 0.4);
}

.case-result__label {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 4px;
}

.case-result__detail {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

/* ===== QUOTE ===== */
.case-quote {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 60px 0;
}

.case-quote__icon {
  display: block;
  margin: 0 auto 24px;
  color: rgba(139, 92, 246, 0.5);
}

.case-quote blockquote p {
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  font-style: italic;
  margin-bottom: 32px;
}

.case-quote__author {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.case-quote__author strong {
  font-size: 16px;
  color: white;
}

.case-quote__author span {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
}

/* ===== CTA ===== */
.case-cta {
  padding: clamp(80px, 10vw, 140px) 0;
  text-align: center;
  background: linear-gradient(180deg, #050507 0%, #0a0a14 50%, #0f0a1a 100%);
}

.case-cta h2 {
  font-family: var(--heading-font);
  font-size: var(--fs-h2);
  color: white;
  margin-bottom: 16px;
}

.case-cta p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 40px;
}

.case-cta__btn {
  display: inline-flex;
  align-items: center;
  padding: 16px 40px;
  border-radius: var(--radius-pill);
  background: var(--color-orange);
  color: white;
  font-family: var(--body-font);
  font-size: 16px;
  font-weight: 600;
  transition: transform 0.2s var(--ease-2), box-shadow 0.2s;
}

.case-cta__btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(255, 95, 46, 0.35);
}

/* ===== FOOTER ===== */
.case-footer {
  padding: 24px 0;
  background: #030305;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.case-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.case-footer p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
}

.case-footer__credit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
}

.case-footer__credit img {
  height: 13px;
  width: auto;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.case-footer__credit img:hover { opacity: 0.8; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .case-two-col { grid-template-columns: 1fr; gap: 32px; }
  .case-meta { grid-template-columns: repeat(2, 1fr); }
  .case-challenges { grid-template-columns: 1fr; }
  .case-solution { grid-template-columns: 1fr; }
  .case-features { grid-template-columns: repeat(2, 1fr); }
  .case-results { grid-template-columns: repeat(2, 1fr); }
  .case-stats__grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

@media (max-width: 768px) {
  .nav__links { display: none; }
  .case__back { display: block; }

  .nav { padding: 16px 20px; }
  .case-hero { min-height: 70vh; padding-bottom: 60px; }
  .case-hero__content { padding: 0 20px; }

  .case-stats { padding: 32px 20px; }
  .case-stats__grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }

  .case-meta { grid-template-columns: 1fr 1fr; }
  .case-features { grid-template-columns: 1fr; }
  .case-results { grid-template-columns: 1fr; }

  .case-design { flex-direction: column; gap: 32px; align-items: flex-start; }

  .case-footer__inner { flex-direction: column; gap: 12px; text-align: center; }
}
