@charset "UTF-8";

body {
  margin: 0;
  font-family: "Quicksand", serif;
  background-color: #f4f4f4;
  color: #333;
}
.hero {
  height: 100vh;
  background-color: #ffffff;
  color: #000000;
  display: flex;
  align-items: center;
}
.hero .content h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-left: 40px;
}
.hero .content p {
  font-size: 1.2rem;
  margin: 20px 40px;
}
.hero .content .cta a {
  text-decoration: none;
  padding: 10px 20px;
  margin-right: 10px;
  margin-left: 40px;
  border: 2px solid white;
  border-radius: 25px;
  background-color: white;
  color: #2575fc;
  font-weight: bold;
  transition: all 0.3s ease;
}
.hero .content .cta a:hover {
  background-color: #2575fc;
  color: white;
}
.hero .visuals img {
  max-width: 100%;
}
.dynamic-text {
  display: inline-block;
  font-size: 2.0rem;
  font-weight: bold;
  color: #4A90E2;
  text-align: center;
}
@media (max-width: 768px) {
  .hero .content h1 {
    font-size: 2.5rem;
    font-family: Arial, Helvetica, sans-serif;
  }
}
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
  transition: background-color 0.3s ease;
  font-weight: bold;
  padding: 0.5rem 1rem;
}
.navbar-toggler {
  border: none;
}
.navbar-black {
  background-color: black;
}
.navbar-white {
  background-color: white;
}
.navbar-white a {
  color: black !important;
}
.navbar-black a {
  color: white !important;
}
.navbar a:hover {
  color: #4A90E2 !important;
}
.navbar-brand img {
  height: 40px;
  transition: all 0.3s ease;
}
.navbar-white .navbar-brand img {
  filter: invert(1);
}
.navbar-nav {
  margin-left: auto;
  flex-direction: column;
  align-items: flex-start;
}
.navbar-nav .nav-item {
  margin-bottom: 0.5rem;
}
.navbar-nav .dropdown-menu {
  position: relative;
  width: 100%;
  margin: 0;
}
.dropdown-menu .dropdown-item {
  color: black !important;
}
.dropdown-menu .dropdown-item:hover {
  color: #4A90E2 !important;
}
.fade-in-images img {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in-images img.visible {
  opacity: 1;
  transform: translateY(0);
}
.footer {
  background-color: #000000;
  padding: 20px;
  color: #ffffff;
  font-size: small;
}
.juggling-container {
  position: relative;
  width: 792px;
  height: 612px;
  margin: auto;
  background: url('images/juggling_2.jpg') no-repeat center center;
  background-size: contain;
}
.juggling-container img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: fade-in 1s ease-out forwards, rotate 16s linear infinite;
  opacity: 0;
  width: 80px;
  height: 80px;
  border-radius: 50%;
}
.juggling-container img:nth-child(1) {
  animation: fade-in 1s ease-out forwards, rotate-slow 24s linear infinite;
  width: 78px;
  height: 78px;
  border-radius: 50%;
}
.juggling-container img:nth-child(2) {
  animation: fade-in 1s ease-out forwards, rotate-slow 9s linear infinite;
  width: 90px;
  height: 90px;
  border-radius: 50%;
}
.juggling-container img:nth-child(3) {
  animation: fade-in 1s ease-out forwards, rotate-slow 12s linear infinite;
  width: 80px;
  height: 80px;
  border-radius: 50%;
}
.juggling-container img:nth-child(4) {
  animation: fade-in 1s ease-out forwards, rotate-slow 18s linear infinite;
  width: 75px;
  height: 75px;
  border-radius: 50%;
}
.juggling-container img:nth-child(5) {
  animation: fade-in 1s ease-out forwards, rotate-slow 20s linear infinite;
  width: 84px;
  height: 84px;
  border-radius: 50%;
}
.juggling-container img:nth-child(6) {
  animation: fade-in 1s ease-out forwards, rotate-slow 10s linear infinite;
  width: 99px;
  height: 99px;
  border-radius: 50%;
}
.juggling-container img:nth-child(7) {
  animation: fade-in 1s ease-out forwards, rotate-slow 11s linear infinite;
  width: 75px;
  height: 75px;
  border-radius: 50%;
}
.juggling-container img:nth-child(8) {
  animation: fade-in 1s ease-out forwards, rotate-slow 8s linear infinite;
  width: 80px;
  height: 80px;
  border-radius: 50%;
}
@keyframes rotate-varied {
  0% {
    transform: translate(-50%, -50%) rotate(0deg) translateX(200px) rotate(0deg);
  }
  25% {
    transform: translate(-50%, -50%) rotate(90deg) translateX(250px) rotate(-90deg);
  }
  50% {
    transform: translate(-50%, -50%) rotate(180deg) translateX(180px) rotate(-180deg);
  }
  75% {
    transform: translate(-50%, -50%) rotate(270deg) translateX(220px) rotate(-270deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg) translateX(200px) rotate(-360deg);
  }
}
@keyframes fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@keyframes rotate {
  0% {
    transform: translate(-50%, -50%) rotate(0deg) translateX(250px) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg) translateX(250px) rotate(-360deg);
  }
}
@keyframes rotate-slow {
  0% {
    transform: translate(-50%, -50%) rotate(0deg) translateX(250px) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg) translateX(250px) rotate(-360deg);
  }
}
.item {
  margin-bottom: 20px;
  cursor: pointer;
  transition: transform 0.3s ease-in-out; /* Smooth transition */
}
.project-details {
  margin-top: 10px;
  display: none;
  transition: all 0.3s ease-in-out; /* Smooth reveal effect */ padding: 20px;
  background-color: #f4f4f4;
  border-radius: 5px;
}
.item.expanded .project-details {
  display: block;
  padding-top: 20px;
}
.item.expanded {
  transform: translateY(100px); /* Move the item down when expanded */
}
.row {
  display: flex;
  flex-wrap: wrap;
  transition: all 0.3s ease-in-out;
}
.PremeracaseStudy-container {
  position: relative;
  width: 792px;
  height: 612px;
  margin: auto;
  background: url('images/android_HMO_792x612.png') no-repeat center center;
  background-size: contain;
}
.alternating-section {
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.alternating-section img {
  max-width: 40%;
  height: auto;
}
.text-left {
  flex-direction: row;
}
.text-right {
  flex-direction: row-reverse;
}
@media (max-width: 768px) {
  .alternating-section {
    flex-direction: column;
    text-align: center;
  }
  .alternating-section img {
    max-width: 100%;
  }
}
.alternating-offset {
  margin-top: -112px; /* Moves the alternating section up */
}
.slider-container {
  position: relative;
  max-width: 800px;
  margin: auto;
  overflow: hidden;
}
.slider {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: calc(100% * 7); /* Number of slides */
}
.slide {
  min-width: 100%;
  height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f4f4f4;
  font-size: 24px;
  text-align: center;
  border: 1px solid #ddd;
}
button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 1000;
}
button.prev {
  left: 10px;
}
button.next {
  right: 10px;
}
button:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

/* =========================================================
   PREMERA / CASE STUDY LAYOUT (namespaced to avoid conflicts)
   ========================================================= */

.case-study-page {
  padding: 4rem 1.5rem 5rem;
  background-color: #f4f4f4;
  box-sizing: border-box;
}

.case-study-page * {
  font-family: "Quicksand", serif;
}

.cs-container {
  max-width: 1100px;
  margin: 0 auto;
}

.cs-hero {
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  padding: 2.5rem 2rem;
  margin-bottom: 3rem;
  box-sizing: border-box;
}

.cs-hero-inner {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.cs-hero-left {
  flex: 1 1 55%;
}

.cs-hero-right {
  flex: 1 1 35%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.cs-eyebrow {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #777;
  margin: 0 0 0.75rem;
}

.cs-hero-title {
  font-size: 2.2rem;
  line-height: 1.25;
  margin: 0 0 0.75rem;
}

.cs-hero-subtitle {
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 1.25rem;
}

.cs-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cs-tag {
  font-size: 0.8rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background-color: #f0f4ff;
  color: #4A90E2;
  border: 1px solid #d5e2ff;
}

.cs-stat-card {
  background-color: #f9fafc;
  border-radius: 12px;
  padding: 0.9rem 1rem;
  border: 1px solid #e3e6ee;
  box-sizing: border-box;
}

.cs-stat-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #777;
  margin-bottom: 0.25rem;
}

.cs-stat-value {
  font-size: 0.95rem;
  font-weight: 600;
}

.cs-section {
  margin-bottom: 3rem;
  box-sizing: border-box;
}

.cs-section-header {
  margin-bottom: 1rem;
}

.cs-section-kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #999;
  margin-bottom: 0.25rem;
}

.cs-section-title {
  font-size: 1.5rem;
  margin: 0;
}

.cs-section-body {
  font-size: 0.98rem;
  line-height: 1.7;
  color: #444;
}

.cs-split {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.cs-split-left,
.cs-split-right {
  flex: 1 1 280px;
}

/* ============================
   FIXED BULLET LIST SECTION
   ============================ */

.cs-list {
  list-style: none;      /* remove browser bullets */
  padding-left: 0;
  margin: 0.75rem 0 0;
}

.cs-list li {
  list-style: none;      /* safety for Bootstrap/Safari */
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

/* custom bullet using safe hex code */
.cs-list li::before {
  content: "\2022";      /* Hex for bullet point - solves the diamond symbol issue */
  position: absolute;
  left: 0;
  top: 0;
  color: #4A90E2;
  font-size: 1.1rem;
  line-height: 1.4;
}

/* Safari / Bootstrap nuclear fix */
.cs-list li::marker {
  content: "";
}

/* Safari / Bootstrap nuclear fix */
.cs-list li::marker {
  content: "";
}


/* insight cards */

.cs-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.cs-card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 1rem;
  border: 1px solid #e5e7eb;
  font-size: 0.9rem;
  box-sizing: border-box;
}

.cs-card-title {
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}

.cs-card-body {
  color: #555;
}

/* IA placeholder */

.cs-diagram-wrapper {
  margin-top: 1.5rem;
  border-radius: 12px;
  border: 1px dashed #c8cfde;
  background-color: #f9fafc;
  padding: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: #666;
  box-sizing: border-box;
}

/* wireframes & finals */

.cs-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.cs-media-item {
  background-color: #ffffff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  padding: 1rem;
  box-sizing: border-box;
}

.cs-media-thumb {
  width: 100%;
  border-radius: 8px;
  display: block;
  background-color: #f4f4f4;
}

.cs-media-caption {
  font-size: 0.85rem;
  color: #555;
  margin-top: 0.6rem;
}

/* outcomes */

.cs-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.cs-metric-card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 1rem;
  border: 1px solid #e5e7eb;
  text-align: left;
  box-sizing: border-box;
}

.cs-metric-value {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.cs-metric-label {
  font-size: 0.85rem;
  color: #666;
}

.cs-reflection {
  font-style: italic;
  color: #555;
}

/* responsive */

@media (max-width: 900px) {
  .cs-hero-inner {
    flex-direction: column;
  }

  .cs-hero {
    padding: 2rem 1.5rem;
  }

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

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

@media (max-width: 640px) {
  .case-study-page {
    padding: 3rem 1rem 4rem;
  }

  .cs-hero-title {
    font-size: 1.8rem;
  }

  .cs-card-grid,
  .cs-media-grid,
  .cs-metric-grid {
    grid-template-columns: 1fr;
  }
}

/* FORCE 4 ACROSS ALWAYS ON DESKTOP */
.cs-media-grid-4 {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 2rem !important;
    margin-top: 2rem;
}

/* Tablet */
@media (max-width: 1024px) {
    .cs-media-grid-4 {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* Mobile landscape */
@media (max-width: 780px) {
    .cs-media-grid-4 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Mobile portrait */
@media (max-width: 500px) {
    .cs-media-grid-4 {
        grid-template-columns: 1fr !important;
    }
}

/* ðŸ”¥ POP EFFECTS â€” Hover, glow, smooth scaling */
.cs-media-item {
    overflow: hidden;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: transform .25s ease, box-shadow .25s ease;
}

.cs-media-item:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

/* Images smooth and crispy */
.cs-media-item img {
    display: block;
    width: 100%;
    border-radius: 20px;
    transition: transform .4s ease;
}

.cs-media-item:hover img {
    transform: scale(1.05);
}

/* Caption styling */
.cs-media-caption {
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
    margin-top: 10px;
    opacity: 0.75;
    transition: opacity .3s ease;
}

.cs-media-item:hover .cs-media-caption {
    opacity: 1;
}

/* ===========================================
   FORCE 4 x 2 LAYOUT FOR FINAL DESIGN GRID
   =========================================== */

/* Desktop: 4 across, 2 rows (8 items) */
#final-designs .cs-media-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 2rem !important;
  margin-top: 2rem;
}

/* Tablet: 3 across */
@media (max-width: 1024px) {
  #final-designs .cs-media-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

/* Small tablet / large phone: 2 across */
@media (max-width: 780px) {
  #final-designs .cs-media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Small phones: 1 across */
@media (max-width: 500px) {
  #final-designs .cs-media-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ============================
   FORCE 4 x 2 FOR FINAL DESIGNS
   ============================ */

/* Desktop: 4 across, 2 rows (8 items) */
@media (min-width: 1024px) {
  #final-designs .cs-media-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 2rem !important;
    margin-top: 2rem;
  }
}

/* Thumbnails inside case study grids:
   keep them from blowing up the layout */
.case-study-page .cs-media-item img {
  width: 100%;
  max-height: 260px;      /* adjust up/down to taste */
  object-fit: contain;    /* fit inside the box without cropping */
  border-radius: 20px;
  display: block;
}
/* Thumbnails inside case study grids:
   keep them from blowing up the layout */
.case-study-page .cs-media-item img {
  width: 100%;
  max-height: 260px;      /* adjust up/down to taste */
  object-fit: contain;    /* fit inside the box without cropping */
  border-radius: 20px;
  display: block;
}



/* =========================
   LIGHTBOX (Sparkly + Safe)
   ========================= */

.no-scroll {
  overflow: hidden;
}

/* hidden by default */
.lightbox-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.85);
  z-index: 3000;
  padding: 24px;
}

/* show when open */
.lightbox-modal.is-open {
  display: flex;
}

/* Bigger lightbox image */
.lightbox-content{
  max-width: min(1400px, 96vw);  /* was ~1100px */
  max-height: 94vh;             /* was 90vh */
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.5);
  background: #111;
}


/* animate in when open */
.lightbox-modal.is-open .lightbox-content {
  transform: scale(1);
  opacity: 1;
}

/* close button */
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 999px;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .2s ease, transform .2s ease;
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.25);
  transform: scale(1.06);
}

/* =========================
   THUMBNAILS (don’t blow out grid)
   ========================= */

.case-study-page .cs-media-item img {
  width: 100%;
  max-height: 260px;     /* keeps grid tidy */
  object-fit: contain;   /* preserve full image without cropping */
  display: block;
}

/* Subtle section reveal */
.cs-section{
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .45s ease, transform .45s ease;
}
.cs-section.is-visible{
  opacity: 1;
  transform: translateY(0);
}

/* Zoom affordance */
.cs-media-item{
  position: relative;
}
.cs-media-item::after{
  content: "Click to zoom";
  position: absolute;
  left: 12px;
  top: 12px;
  font-size: 0.75rem;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.65);
  color: #fff;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
}
.cs-media-item:hover::after{
  opacity: 1;
  transform: translateY(0);
}
.cs-media-caption{
  text-align: center;
  font-size: 0.92rem;
  font-weight: 700;
  margin-top: 10px;
}
.cs-media-caption span{
  display: block;
  margin-top: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  opacity: 0.75;
  line-height: 1.3;
}

.cs-impact{
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1rem;
  margin: -1.5rem 0 2.5rem; /* tucks under hero nicely */
}
.cs-impact-card{
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 10px 24px rgba(0,0,0,0.04);
}
.cs-impact-kicker{
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.7;
}
.cs-impact-value{
  font-size: 1.1rem;
  font-weight: 800;
  margin-top: 0.25rem;
}
.cs-impact-sub{
  margin-top: 0.4rem;
  font-size: 0.85rem;
  opacity: 0.78;
  line-height: 1.35;
}
@media (max-width: 900px){
  .cs-impact{ grid-template-columns: 1fr; margin-top: 1rem; }
}



