/* =========================================================
   WEATHER FORECAST APP CASE STUDY
   Anne Amor Portfolio
========================================================= */


/* =========================================================
   PAGE VARIABLES
========================================================= */

.weather-case-study {
  --weather-midnight: #191970;
  --weather-sky: #87CEEB;
  --weather-emerald: #00A36C;
  --weather-green: #097969;
  --weather-yellow: #FAFA33;

  --weather-ink: #172033;
  --weather-muted: #5f6878;
  --weather-light: #f5f9fc;
  --weather-white: #ffffff;
  --weather-border: rgba(25, 25, 112, 0.14);

  color: var(--weather-ink);
}


/* =========================================================
   HERO
========================================================= */

.weather-hero {
  position: relative;
  overflow: hidden;

  padding: 5rem 0 5.5rem;

  background:
    radial-gradient(
      circle at 85% 20%,
      rgba(135, 206, 235, 0.28),
      transparent 32%
    ),
    linear-gradient(
      135deg,
      #f8fbff 0%,
      #edf8fc 50%,
      #f7fff9 100%
    );
}


.weather-hero::after {
  content: "";

  position: absolute;

  width: 28rem;
  height: 28rem;

  right: -10rem;
  bottom: -15rem;

  border-radius: 50%;

  background: rgba(0, 163, 108, 0.08);

  pointer-events: none;
}


.weather-hero .container {
  position: relative;
  z-index: 1;
}


.weather-hero .back-link {
  display: inline-block;

  margin-bottom: 3rem;

  color: var(--weather-midnight);

  font-weight: 700;
  text-decoration: none;

  transition:
    transform 0.2s ease,
    color 0.2s ease;
}


.weather-hero .back-link:hover {
  color: var(--weather-green);
  transform: translateX(-4px);
}


.weather-hero .eyebrow {
  margin-bottom: 1rem;

  color: var(--weather-green);

  font-size: 0.8rem;
  font-weight: 800;

  letter-spacing: 0.14em;
  text-transform: uppercase;
}


.weather-hero h1 {
  max-width: 900px;

  margin: 0 0 1.5rem;

  color: var(--weather-midnight);

  font-size: clamp(2.8rem, 7vw, 5.7rem);
  line-height: 0.98;

  letter-spacing: -0.045em;
}


.weather-intro {
  max-width: 760px;

  margin-bottom: 2rem;

  color: #414c60;

  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.75;
}


/* =========================================================
   CASE TAGS
========================================================= */

.weather-case-study .case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;

  margin: 2rem 0 0;
  padding: 0;

  list-style: none;
}


.weather-case-study .case-tags li {
  padding: 0.55rem 0.9rem;

  border: 1px solid rgba(25, 25, 112, 0.18);
  border-radius: 999px;

  background: rgba(255, 255, 255, 0.7);

  color: var(--weather-midnight);

  font-size: 0.84rem;
  font-weight: 700;
}


/* =========================================================
   GENERAL SECTIONS
========================================================= */

.weather-section,
.weather-overview {
  padding: 6rem 0;
}


.weather-section h2,
.weather-overview h2 {
  margin-top: 0;

  color: var(--weather-midnight);

  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.08;

  letter-spacing: -0.03em;
}


.weather-section p,
.weather-overview p {
  line-height: 1.8;
}


.weather-case-study .section-label {
  margin-bottom: 0.8rem;

  color: var(--weather-green);

  font-size: 0.76rem;
  font-weight: 800;

  letter-spacing: 0.15em;
  text-transform: uppercase;
}


.weather-case-study .section-intro {
  max-width: 760px;

  margin-bottom: 3rem;

  color: var(--weather-muted);

  font-size: 1.05rem;
}


/* =========================================================
   OVERVIEW
========================================================= */

.weather-overview {
  background: var(--weather-white);
}


.weather-overview-grid {
  display: grid;

  grid-template-columns:
    minmax(0, 1.55fr)
    minmax(280px, 0.75fr);

  gap: 5rem;

  align-items: start;
}


.weather-overview-grid > div > p {
  max-width: 720px;

  color: var(--weather-muted);
}


/* =========================================================
   PROJECT FACTS
========================================================= */

.weather-case-study .project-facts {
  padding: 2rem;

  border: 1px solid var(--weather-border);
  border-radius: 22px;

  background:
    linear-gradient(
      145deg,
      #ffffff,
      #f3f9fc
    );

  box-shadow:
    0 20px 55px rgba(25, 25, 112, 0.08);
}


.weather-case-study .project-facts h2 {
  margin-bottom: 1.5rem;

  font-size: 1.35rem;
}


.weather-case-study .project-facts dl {
  margin: 0;
}


.weather-case-study .project-facts dl div {
  padding: 1rem 0;

  border-top: 1px solid var(--weather-border);
}


.weather-case-study .project-facts dt {
  margin-bottom: 0.3rem;

  color: var(--weather-green);

  font-size: 0.75rem;
  font-weight: 800;

  letter-spacing: 0.08em;
  text-transform: uppercase;
}


.weather-case-study .project-facts dd {
  margin: 0;

  color: var(--weather-ink);

  line-height: 1.55;
}


/* =========================================================
   DARK SECTIONS
========================================================= */

.weather-dark {
  background:
    linear-gradient(
      135deg,
      #111150,
      var(--weather-midnight)
    );

  color: rgba(255, 255, 255, 0.86);
}


.weather-dark h2,
.weather-dark h3 {
  color: var(--weather-white);
}


.weather-dark .section-label {
  color: var(--weather-sky);
}


.weather-dark p {
  color: rgba(255, 255, 255, 0.76);
}


/* =========================================================
   TECH STACK
========================================================= */

.weather-tech-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 1.25rem;

  margin-top: 3rem;
}


.weather-tech-card {
  position: relative;

  min-height: 225px;

  padding: 2rem;

  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;

  background: rgba(255, 255, 255, 0.07);
}


.weather-tech-number {
  display: block;

  margin-bottom: 2.25rem;

  color: var(--weather-sky);

  font-size: 0.8rem;
  font-weight: 800;
}


.weather-tech-card h3 {
  margin-bottom: 0.75rem;

  font-size: 1.3rem;
}


.weather-tech-card p {
  margin-bottom: 0;

  font-size: 0.94rem;
  line-height: 1.7;
}


/* =========================================================
   APPLICATION FLOW
========================================================= */

.weather-flow {
  position: relative;

  max-width: 820px;

  margin: 3.5rem auto 0;
}


.weather-flow-step {
  display: grid;

  grid-template-columns: 65px 1fr;

  gap: 1.5rem;

  align-items: start;

  padding: 1.6rem 1.75rem;

  border: 1px solid var(--weather-border);
  border-radius: 18px;

  background: var(--weather-white);

  box-shadow:
    0 14px 40px rgba(25, 25, 112, 0.06);
}


.weather-flow-step > span {
  display: grid;

  width: 50px;
  height: 50px;

  place-items: center;

  border-radius: 50%;

  background: var(--weather-midnight);

  color: var(--weather-white);

  font-weight: 800;
}


.weather-flow-step h3 {
  margin: 0 0 0.45rem;

  color: var(--weather-midnight);

  font-size: 1.15rem;
}


.weather-flow-step p {
  margin: 0;

  color: var(--weather-muted);
}


.weather-flow-arrow {
  padding: 0.6rem 0;

  color: var(--weather-emerald);

  font-size: 1.6rem;
  font-weight: 800;

  text-align: center;
}


/* =========================================================
   SOFT BACKGROUND
========================================================= */

.weather-soft {
  background:
    linear-gradient(
      135deg,
      #f5faff 0%,
      #f5fff9 100%
    );
}


/* =========================================================
   INTERFACE SCREENSHOT
========================================================= */

.weather-interface-panel {
  margin: 3rem 0 0;
}


.weather-screenshot-placeholder {
  display: grid;

  min-height: 480px;

  padding: 3rem;

  place-content: center;

  border:
    2px dashed
    rgba(25, 25, 112, 0.25);

  border-radius: 24px;

  background:
    linear-gradient(
      145deg,
      #ffffff,
      #eaf7fb
    );

  text-align: center;
}


.weather-screenshot-placeholder span {
  display: block;

  margin-bottom: 0.5rem;

  color: var(--weather-midnight);

  font-size: 1.4rem;
  font-weight: 800;
}


.weather-screenshot-placeholder p {
  margin: 0;

  color: var(--weather-muted);
}


.weather-interface-panel figcaption {
  margin-top: 1rem;

  color: var(--weather-muted);

  font-size: 0.9rem;

  text-align: center;
}


/* REAL SCREENSHOT
   This will automatically style the image once we
   replace the placeholder with an <img>.
*/

.weather-interface-panel img {
  display: block;

  width: 100%;
  height: auto;

  border: 1px solid var(--weather-border);
  border-radius: 24px;

  box-shadow:
    0 25px 65px rgba(25, 25, 112, 0.12);
}


/* =========================================================
   TWO COLUMN SECTIONS
========================================================= */

.weather-case-study .two-column {
  display: grid;

  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 5rem;

  align-items: start;
}


/* =========================================================
   FEATURE LIST
========================================================= */

.weather-case-study .feature-list {
  margin: 0;
  padding: 0;

  list-style: none;
}


.weather-case-study .feature-list li {
  position: relative;

  padding:
    0.9rem
    0
    0.9rem
    1.8rem;

  border-bottom:
    1px solid
    rgba(255, 255, 255, 0.12);

  color: rgba(255, 255, 255, 0.82);

  line-height: 1.6;
}


.weather-case-study .feature-list li::before {
  content: "→";

  position: absolute;

  left: 0;

  color: var(--weather-sky);

  font-weight: 800;
}


/* =========================================================
   TESTING
========================================================= */

.weather-test-grid {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 1.25rem;

  margin-top: 3rem;
}


.weather-test-grid article {
  padding: 2rem;

  border: 1px solid var(--weather-border);
  border-radius: 18px;

  background: var(--weather-white);
}


.weather-test-grid article > span {
  display: grid;

  width: 38px;
  height: 38px;

  margin-bottom: 1.4rem;

  place-items: center;

  border-radius: 50%;

  background: rgba(0, 163, 108, 0.12);

  color: var(--weather-green);

  font-weight: 900;
}


.weather-test-grid h3 {
  margin-bottom: 0.6rem;

  color: var(--weather-midnight);
}


.weather-test-grid p {
  margin-bottom: 0;

  color: var(--weather-muted);
}


/* =========================================================
   LEARNING
========================================================= */

.weather-learning-grid {
  display: grid;

  grid-template-columns:
    minmax(250px, 0.75fr)
    minmax(0, 1.25fr);

  gap: 5rem;

  align-items: start;
}


.weather-learning-grid p {
  color: var(--weather-muted);
}


/* =========================================================
   OUTCOME
========================================================= */

.weather-case-study .outcome-panel {
  display: grid;

  grid-template-columns:
    minmax(250px, 0.8fr)
    minmax(0, 1.2fr);

  gap: 5rem;

  padding: 3.5rem;

  border-radius: 24px;

  background:
    linear-gradient(
      135deg,
      rgba(135, 206, 235, 0.18),
      rgba(0, 163, 108, 0.10)
    );
}


.weather-case-study .outcome-panel p {
  color: var(--weather-muted);
}


/* =========================================================
   NEXT PROJECT
========================================================= */

.weather-next {
  background:
    linear-gradient(
      135deg,
      var(--weather-midnight),
      #24247e
    );
}


.weather-next p {
  color: var(--weather-sky);
}


.weather-next h2 {
  color: var(--weather-white);
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 900px) {

  .weather-overview-grid,
  .weather-learning-grid,
  .weather-case-study .two-column,
  .weather-case-study .outcome-panel {
    grid-template-columns: 1fr;

    gap: 2.5rem;
  }


  .weather-tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }


  .weather-test-grid {
    grid-template-columns: 1fr;
  }


  .weather-case-study .outcome-panel {
    padding: 2.5rem;
  }

}


@media (max-width: 620px) {

  .weather-hero {
    padding:
      3.5rem
      0
      4rem;
  }


  .weather-section,
  .weather-overview {
    padding: 4rem 0;
  }


  .weather-tech-grid {
    grid-template-columns: 1fr;
  }


  .weather-tech-card {
    min-height: auto;
  }


  .weather-flow-step {
    grid-template-columns: 48px 1fr;

    gap: 1rem;

    padding: 1.3rem;
  }


  .weather-flow-step > span {
    width: 42px;
    height: 42px;
  }


  .weather-screenshot-placeholder {
    min-height: 320px;

    padding: 2rem 1.25rem;
  }


  .weather-case-study .outcome-panel {
    padding: 2rem 1.5rem;
  }

}

.weather-interface-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-top: 3rem;
}

.weather-interface-gallery .weather-interface-panel {
  margin: 0;
}

.weather-interface-gallery img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--weather-border);
  border-radius: 24px;
  box-shadow: 0 25px 65px rgba(25, 25, 112, 0.12);
}

.weather-interface-gallery figcaption {
  max-width: 750px;
  margin: 1rem auto 0;
  color: var(--weather-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  text-align: center;
}