:root {
  --bg-navy: linear-gradient(to right, #2C367A, #A6B4EE);
  --bg-panel: #ffffff;
  --bg-inner: #dadddf;

  --gap: 16px;
  --padding: 24px;
  --btn: #A6B4EE;
  --radius-panel: 24px;
  --radius-pill: 9999px;
  --radius-small: 16px;

  --ui-scale: 1.1;
  --text-white: #ffffff;
  --text-color: #2C367A;
  --font-primary: 'Roboto', sans-serif;
  --font-heading: 'Changa', sans-serif;
}

html {
  background: var(--bg-navy);
  overflow-x: hidden;
}

* {
  -webkit-tap-highlight-color: transparent !important;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

input,
textarea {
  -webkit-user-select: auto;
  user-select: auto;
}

body {
  margin: 0;
  padding: var(--padding);
  background: var(--bg-navy);
  color: var(--text-color);
  font-family: var(--font-primary);

  /* Fit To Screen constraints */
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;

  display: flex;
  position: relative;
  z-index: 0;
}

body.home-page {
  height: 100vh;
  overflow: hidden;
}

h1,
h2 {
  font-family: var(--font-heading);
}

/* ================================= */
/* NAVBAR: Detached Glassmorphism    */
/* ================================= */
bento-navbar,
.navbar {
  position: fixed;
  top: 32px;
  left: 0;
  right: 0;
  margin-inline: auto;
  z-index: 1000;

  display: flex;
  gap: 32px;
  /* padding: 16px 36px; removed to respect fixed dimensions properly */
  border-radius: calc(25px * var(--ui-scale));
  width: calc(726px * var(--ui-scale));
  height: calc(60px * var(--ui-scale));
  box-sizing: border-box;
  align-items: center;
  justify-content: center;

  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  /* shadow removed */
  opacity: 1;
  /* locked natively visible to prevent glitching */
}

.nav-item {
  color: var(--text-color);
  text-decoration: none;
  font-family: 'Roboto', sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  text-transform: capitalize !important;
  letter-spacing: 0.5px !important;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.nav-item:hover {
  color: #1a204a;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
}

.nav-water-drop {
  position: absolute;
  top: -8px;
  width: 16px;
  height: 16px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  /* shadow removed */
  border-radius: 50%;
  transition: left 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

@keyframes water-drop-jump {
  0% {
    transform: translateY(0) scale(1, 1);
  }

  45% {
    transform: translateY(-16px) scale(0.8, 1.2);
  }

  80% {
    transform: translateY(0) scale(1.3, 0.7);
  }

  100% {
    transform: translateY(0) scale(1, 1);
  }
}

.nav-water-drop.jumping {
  animation: water-drop-jump 0.5s forwards cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Careers Page Overrides */
.careers-page .nav-item {
  color: #ffffff;
}

.careers-page .nav-water-drop {
  background-color: rgba(255, 255, 255, 0.6);
}

.careers-page .floating-action-btn {
  color: #ffffff;
}

/* ================================= */
/* CORE BENTO SYSTEM                 */
/* ================================= */
.bento-container {
  display: flex;
  flex-direction: row;

  /* Allows absolute 100% full screen fluid stretching */
  width: 100%;
  height: 100%;
  gap: var(--gap);
  box-sizing: border-box;
}

/* 
  CRITICAL IMMUNITY: 
  Forces all structural flex containers to obey their flex ratios strictly 
  without dynamically bulging if their child textual or pixel contents overflow.
*/
.col-left,
.col-right,
.top-left,
.bottom-left,
.sub-col-a,
.sub-col-b,
.panel {
  min-width: 0;
  min-height: 0;
}

.panel {
  background-color: var(--bg-panel);
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-panel);
}

/* MAIN COLUMNS */
.col-left {
  display: flex;
  flex-direction: column;
  flex: 496;
  gap: var(--gap);
}

.col-right {
  display: flex;
  flex-direction: column;
  flex: 485;
  gap: var(--gap);
}

/* LEFT COLUMN STRUCTURE */
.top-left {
  display: flex;
  flex-direction: row;
  flex: 366;
  width: 100%;
  gap: var(--gap);
}

.bottom-left {
  display: flex;
  flex-direction: row;
  flex: 313;
  width: 100%;
  gap: var(--gap);
}

/* SUB-COLUMNS */
.sub-col-a {
  display: flex;
  flex-direction: column;
  flex: 228.5;
  gap: var(--gap);
}

.sub-col-b {
  display: flex;
  flex-direction: column;
  flex: 231.5;
  gap: var(--gap);
}

/* INDIVIDUAL PANELS */
.p1 {
  flex: 65;
  border-radius: var(--radius-pill);
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  padding: 16px 0;
}

.p1-img {
  width: 60%;
  aspect-ratio: 1/1;
  object-fit: contain;
}

.p2 {
  flex: 395;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px;
  box-sizing: border-box;
}

.p2-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
}

.p2-logo-wrapper {
  height: 45px;
  /* Reduced container height */
  display: flex;
  align-items: center;
}

.p2-logo {
  width: auto;
  height: 100%;
  object-fit: contain;
  transform: scale(1.4);
  transform-origin: left center;
}

.p2-btn {
  background-color: var(--btn);
  border-radius: 9999px;
  padding: 8px 16px;
  text-decoration: none;
  color: #fff;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 600;
  transition: opacity 0.2s ease;
  position: absolute;
  bottom: 22px;
  right: 32px;
  z-index: 10;
}

.p2-btn:hover {
  opacity: 0.8;
}

/* Text Carousel Logic (Panel 2) */
.text-carousel-container {
  position: relative;
  width: 100%;
  height: 100%;
  flex-grow: 1;
  margin-top: 32px;
}

.text-slide {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 100%;
  opacity: 0;
  pointer-events: none;
}

.text-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.text-slide.exit {
  opacity: 1;
  pointer-events: none;
}

.text-slide .slide-heading,
.text-slide p {
  opacity: 0;
  transform: translateY(30px);
  filter: blur(12px);
  will-change: transform, opacity, filter;
}

.text-slide.active .slide-heading {
  animation: blurFadeInUp 1.2s cubic-bezier(0.25, 0.8, 0.25, 1) both;
  animation-delay: 0.15s;
}

.text-slide.active p:nth-of-type(1) {
  animation: blurFadeInUp 1.2s cubic-bezier(0.25, 0.8, 0.25, 1) both;
  animation-delay: 0.4s;
}

.text-slide.active p:nth-of-type(2) {
  animation: blurFadeInUp 1.2s cubic-bezier(0.25, 0.8, 0.25, 1) both;
  animation-delay: 0.6s;
}

.text-slide.active p:nth-of-type(3) {
  animation: blurFadeInUp 1.2s cubic-bezier(0.25, 0.8, 0.25, 1) both;
  animation-delay: 0.8s;
}

.text-slide.exit .slide-heading {
  animation: blurFadeOutUp 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) both;
  animation-delay: 0s;
}

.text-slide.exit p:nth-of-type(1) {
  animation: blurFadeOutUp 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) both;
  animation-delay: 0.15s;
}

.text-slide.exit p:nth-of-type(2) {
  animation: blurFadeOutUp 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) both;
  animation-delay: 0.25s;
}

.text-slide.exit p:nth-of-type(3) {
  animation: blurFadeOutUp 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) both;
  animation-delay: 0.35s;
}

@keyframes blurFadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(12px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes blurFadeOutUp {
  0% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }

  100% {
    opacity: 0;
    transform: translateY(-30px);
    filter: blur(12px);
  }
}

.slide-heading {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 20px 0;
  text-transform: uppercase;
  color: var(--text-color);
  font-family: var(--font-heading);
}

.slide-heading .highlight {
  color: #A6B4EE;
  /* Explicitly requested accent color */
}

.text-slide p {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  opacity: 0.9;
  margin: 0 0 16px 0;
  color: var(--text-color);
}

.text-slide p .bold {
  font-weight: 700;
  opacity: 1;
  color: var(--text-color);
}

.who-we-are-slide p {
  font-size: 13px;
  line-height: 1.5;
}

.p2-tagline {
  font-family: var(--font-primary);
  font-size: 13px;
  font-style: italic;
  font-weight: 500;
  color: var(--text-color);
  opacity: 0.6;
  margin-top: 20px;
  align-self: flex-start;
}

.p3 {
  flex: 80;
  border-radius: var(--radius-pill);
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  box-sizing: border-box;
}

.p3-img {
  height: 100%;
  aspect-ratio: 1/1;
  background-color: var(--bg-inner);
  border-radius: 50%;
}

.p3-text {
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-color);
  opacity: 0.9;
}

.p5 {
  flex: 217;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  box-sizing: border-box;
}

.p5-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
}

.p5-title-group {
  display: flex;
  gap: 12px;
  align-items: center;
}

.p5-service-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.8s ease;
}

.p5-service-name {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  color: var(--text-color);
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.8s ease;
}

.p5-dot {
  width: 24px;
  height: 12px;
  background-color: #fff;
  border-radius: 6px;
  opacity: 0.8;
}

.p5-desc {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: left;
}

.p5-service-desc {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-color);
  opacity: 0.8;
  margin: 0;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.8s ease;
}

.p4 {
  flex: 217;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  box-sizing: border-box;
  position: relative;
}

.p4-carousel-container {
  position: relative;
  width: 100%;
  height: 100%;
  flex-grow: 1;
}

.p4-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
  transform: translateX(10%);
}

.p4-slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.p4-slide.exit {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-10%);
}

.p4-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
}

.p4-profile {
  width: 50px;
  height: 50px;
  background-color: var(--bg-inner);
  background-size: cover;
  background-position: center;
  border-radius: 50%;
}

.p4-logo {
  max-width: 80px;
  max-height: 40px;
  object-fit: contain;
}

.p4-mid {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 16px 0;
}

.p4-test {
  font-family: var(--font-primary);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-color);
  font-style: italic;
}

.p4-bottom {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.p4-name {
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-color);
}

.p6 {
  flex: 80;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  background-color: var(--bg-panel);
  /* Standard panel color */
}

/* Marquee Carousel Logic for P6 */
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 15s linear infinite;
}

.marquee-content {
  display: flex;
  gap: 32px;
  padding-right: 32px;
  align-items: center;
}

.p6-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
}

@keyframes marquee-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}


/* ================================= */
/* PANEL 7 INTERNAL ISOLATION        */
/* ================================= */
.p7 {
  flex: 460;
  background-color: #ffffff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 11px;
  box-sizing: border-box;
  overflow: hidden;
}

.p7-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: 483 / 408;
}

@media (min-width: 768px) {
  .p7-inner {
    width: auto;
    height: 96%;
    aspect-ratio: 690 / 424;
  }

  .p7-row-top {
    height: 48%;
    width: 100%;
    margin: 0 auto;
  }

  .p7-row-bot-wrapper {
    width: 100%;
  }

  .p7-block-l {
    width: 21.8% !important;
    aspect-ratio: 4 / 5 !important;
    height: auto !important;
  }

  .p7-block-m {
    width: 20.8% !important;
    aspect-ratio: 4 / 5 !important;
    height: auto !important;
    background-position: bottom !important;
  }

  .p7-stack {
    width: 9.5% !important;
    aspect-ratio: auto;
  }

  .desktop-only-block {
    display: block !important;
  }
}

.desktop-only-block {
  display: none;
}

.p7-row-top {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 12px;
  margin: 0 auto;
  width: 100%;
  height: 50%;
  /* 200/408 */
}

.p7-row-bot-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin: 0 auto;
  flex: 1;
  margin-top: 12px;
}

.p7-row-bot {
  flex: 1;
  background-color: var(--bg-inner);
  border-radius: var(--radius-panel);
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.7s ease-out;
  height: 100%;
}

.p7-block-l {
  height: auto;
  aspect-ratio: 4 / 5;
  width: 25.5%;
  background-color: var(--bg-inner);
  border-radius: var(--radius-panel);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease-out;
}

.p7-block-m {
  height: auto;
  aspect-ratio: 4 / 5;
  width: 25.5%;
  background-color: var(--bg-inner);
  border-radius: var(--radius-panel);
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.7s ease-out;
}

.p7-block-m:nth-of-type(3) {
  transition: transform 1.0s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.9s ease-out;
}

.p7-stack {
  height: 100%;
  width: 16%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease-out;
}

.p7-stack>div {
  width: 100%;
  height: 29%;
  /* 58/200 */
}

.p7-stack .shape-circle {
  background-color: transparent;
  /* Using 50% ensures it's perfectly round even when scaling, effectively exactly 29px at base size */
  height: auto;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.p7-stack .shape-circle img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.p7-stack .shape-sq {
  background-color: var(--bg-inner);
  border-radius: 12px;
  /* Reduced from 16px to maintain square shape at smaller scales */
  height: auto;
  aspect-ratio: 1;
  flex-shrink: 0;
}

.p9 {
  flex: 214;
  display: flex;
  flex-direction: row;
  padding: 24px;
  gap: 32px;
  box-sizing: border-box;
  background-color: var(--bg-panel);
  border-radius: var(--radius-panel);
}

.p9-left {
  width: 45%;
  height: 100%;
  display: flex;
  align-items: center;
}

.p9-camp-img {
  width: 100%;
  height: 100%;
  background-color: var(--bg-panel);
  background-size: cover;
  background-position: center;
  border-radius: 16px;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease-out;
}

.p9-right {
  width: 55%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
}

.p9-logo {
  width: 64px;
  height: 64px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: right top;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.7s ease-out;
}

.p9-camp-desc {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  transition: transform 1.0s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.9s ease-out;
}

.p9-desc-1 {
  font-family: var(--font-body, 'Roboto', sans-serif);
  font-size: 11.5px;
  line-height: 1.4;
  font-weight: 500;
  text-align: right;
  color: var(--text-color);
  opacity: 0.8;
}



/* Parallax Staggered Outflow Logic */
.slide-left-fast {
  transform: translateX(-40px);
  opacity: 0;
}

.slide-left-med {
  transform: translateX(-60px);
  opacity: 0;
}

.slide-left-slow {
  transform: translateX(-80px);
  opacity: 0;
}

/* Parallax Staggered Inflow Snaps */
.prepare-right-fast {
  transition: none !important;
  opacity: 0;
  transform: translateX(40px);
}

.prepare-right-med {
  transition: none !important;
  opacity: 0;
  transform: translateX(60px);
}

.prepare-right-slow {
  transition: none !important;
  opacity: 0;
  transform: translateX(80px);
}


/* ================================= */
/* MOBILE OVERRIDES                  */
/* ================================= */
@media (max-width: 768px) {
  body {
    padding: 16px;
    overflow-y: auto;
    overflow-x: hidden !important;
    max-width: 100%;
  }

  html {
    overflow-x: hidden !important;
    max-width: 100%;
  }

  body.home-page {
    height: auto;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .bento-container {
    flex-direction: column;
    width: 100%;
    height: auto;
  }

  .col-left,
  .col-right {
    width: 100%;
  }

  .col-left {
    flex: none;
    height: auto;
    min-height: calc(100vh - 32px);
  }

  .col-right {
    flex: none;
    height: auto;
    min-height: calc(100vh - 32px);
  }

  bento-navbar,
  .navbar {
    top: auto;
    bottom: 24px;
    opacity: 1 !important;
    gap: 16px;
    justify-content: space-evenly;
    width: calc(100% - 64px);
    padding: 0;
    position: fixed;
  }

  .p1 {
    flex: 120;
  }

  .p1-img {
    width: 70%;
    /* Reduces SVG logo size on mobile */
  }

  .p2 {
    flex: 340;
  }

  .p2-btn {
    position: static;
  }

  .p3 {
    padding: 8px 6px;
  }

  .p3-text {
    display: none;
  }

  .p3-img {
    height: 100%;
    width: auto;
    aspect-ratio: 1 / 1;
  }

  /* Mobile text carousel overrides */
  .slide-heading {
    font-size: 32px;
    margin: 0 0 12px 0;
  }

  .text-slide p {
    font-size: 12px;
    margin: 0 0 12px 0;
  }

  .who-we-are-slide p {
    font-size: 10.5px;
  }

  /* Mobile panel 4 (Testimonials) fixes */
  .p4 {
    padding: 16px;
  }

  .p4-test {
    font-size: 11px;
    line-height: 1.3;
  }

  .p4-name {
    font-size: 12px;
  }

  .p4-profile {
    width: 32px;
    height: 32px;
  }

  .p4-logo {
    max-width: 60px;
    max-height: 30px;
  }

  /* Mobile service card (Panel 5) overrides */
  .p5-service-logo {
    width: 32px;
    height: 32px;
  }

  .p5-service-name {
    font-size: 14px;
  }

  .p5-service-desc {
    font-size: 11.5px;
  }

  .p7-block-l {
    aspect-ratio: 4 / 5 !important;
    height: auto !important;
  }
}

/* 
  ==============================================================
  Detailed Service Page Styles (Standalone)
  Useful for applying Zywo's specific styling to content-heavy pages 
  like Branding, Online Ads, Content Pages, etc.
  ==============================================================
*/

/* Core Design Variables */
:root {
  --color-highlight: #A6B4EE;
  --card: linear-gradient(135deg, #2A3276, #7E8DC5);
  --font-heading: 'Changa', sans-serif;
  --font-body: 'Roboto', sans-serif;
}

/* Global Resets for Component Compatibility */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading) !important;
  margin: 0;
}

/* Base Body Styles */
body.service-details-page {
  margin: 0;
  padding: 0;
  margin-top: 10px;
  font-family: var(--font-body, 'Roboto', sans-serif);
  background: var(--bg-navy);
  color: #ffffff;
  height: auto;
  overflow: visible;
  display: block;
}

/* Primary Page Header */
.service-details-page .page-title {
  background: rgba(255, 255, 255, 0.05);
  /* Liquid glass */
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  border-radius: 2rem;
  width: 85%;
  margin: 5rem auto 2rem auto;
  padding: 2.5rem 1rem;
  font-family: var(--font-heading, 'Changa', sans-serif);
}

/* Content Container constraints */
.service-details-page .content-container {
  max-width: 600px;
  margin: 1.5rem auto;
  padding: 0 1rem 4rem 1rem;
}

/* Main Section Heading inside Content */
.service-details-page .section-title {
  font-size: 2rem;
  font-weight: 700;
  font-family: var(--font-heading, 'Changa', sans-serif);
  margin-bottom: 1.5rem;
}

.service-details-page .our {
  color: var(--color-highlight, #A6B4EE);
  font-family: var(--font-heading);
}

.service-details-page .process {
  color: #ffffff;
}

.service-details-page .nav-item {
  color: #ffffff;
}

.service-details-page .floating-action-btn {
  color: #ffffff !important;
}

/* Step/Subheading Styles */
.service-details-page .step-title {
  font-family: var(--font-heading, 'Changa', sans-serif);
  font-size: 1.6rem;
  color: #ffffff;
  font-weight: 600;
  margin-bottom: 0.5rem;
  margin-top: 2rem;
}

.service-details-page .step-title span {
  color: var(--color-highlight, #A6B4EE);
}

/* Descriptive Paragraph Text */
.service-details-page .step-desc {
  color: #ffffff;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Strong accents in descriptions */
.service-details-page .step-desc strong {
  color: #ffffff;
}

/* Service Navigation (Desktop Sticky Arrows) */
.service-nav-arrows {
  position: fixed;
  top: 50%;
  left: 0;
  right: 0;
  width: 100%;
  pointer-events: none;
  display: flex;
  justify-content: space-between;
  padding: 0 40px;
  transform: translateY(-50%);
  z-index: 100;
  box-sizing: border-box;
}

.prev-service-btn,
.next-service-btn {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.3s ease, border-color 0.3s ease;
  text-decoration: none;
}

/* Hide text entirely, rely purely on icons for sticky mode */
.prev-service-btn span,
.next-service-btn span {
  display: none;
}

.prev-service-btn svg,
.next-service-btn svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  transition: transform 0.3s ease;
}

.prev-service-btn:hover,
.next-service-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.prev-service-btn:hover {
  transform: translateX(-4px);
}

.next-service-btn:hover {
  transform: translateX(4px);
}

/* Hide navigation entirely on mobile for swipe gestures */
@media (max-width: 768px) {
  .service-nav-arrows {
    display: none;
  }
}

/* Mobile Swipe Tutorial */
.swipe-tutorial-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  font-family: var(--font-primary, 'Roboto', sans-serif);
}

.swipe-tutorial-overlay.active {
  opacity: 1;
}

.swipe-hand-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  animation: swipeLeftRight 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.swipe-hand-icon svg {
  width: 100%;
  height: 100%;
  fill: #fff;
}

.swipe-text {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

@keyframes swipeLeftRight {
  0% {
    transform: translateX(30px);
    opacity: 0;
  }

  20% {
    opacity: 1;
  }

  80% {
    opacity: 1;
  }

  100% {
    transform: translateX(-30px);
    opacity: 0;
  }
}


/* 
  ===========================================
  Desktop Optimizations (Screens > 768px)
  ===========================================
*/
@media (min-width: 768px) {
  body.service-details-page {
    margin-top: 40px;
  }

  .service-details-page .page-title {
    font-size: 6rem;
    height: 300px;
    width: 1000px;
    padding: 0;
    margin-top: 2rem;
  }

  .service-details-page .content-container {
    max-width: 1000px;
    padding: 0 2rem 6rem 2rem;
  }

  .service-details-page .section-title {
    font-size: 4.5rem;
    display: flex;
    margin-bottom: 3rem;
  }

  .service-details-page .step-title {
    font-size: 2.5rem;
    margin-top: 4rem;
  }

  .service-details-page .step-desc {
    font-size: 1.1rem;
  }
}

/* 
  ===========================================
  Mobile Optimizations (Screens < 767px)
  ===========================================
*/
@media (max-width: 767px) {
  .service-details-page .section-title {
    font-size: 35px;
    display: flex;
    flex-direction: column;
  }

  .service-details-page .step-desc {
    font-size: 14px;
  }

  .service-details-page .step-title {
    font-size: 22px;
  }
}


/* 
  ==============================================================
  GALLERY PAGE (PANEL 7 REPLICATION)
  ==============================================================
*/
body.gallery-page {
  margin: 0;
  padding: 0;
  width: 100vw;
  min-height: 100vh;
  height: auto;
  box-sizing: border-box;
  overflow-y: auto;
  overflow-x: hidden;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: min-content;
  gap: 12px;
  width: 100vw;
  min-height: 100vh;
  height: auto;
  padding: 120px 16px 40px 16px;
  box-sizing: border-box;
}

.gallery-grid bento-panel-7 {
  display: flex;
  width: 100%;
  height: auto;
  aspect-ratio: 690 / 424;
}

.gallery-grid .p7 {
  width: 100%;
  height: 100%;
  flex: none !important;
  /* Strips predefined specific static flex constraints */
}

@media (max-width: 768px) {
  body.gallery-page {
    /* Release grid scaling and allow scrolling back on mobile */
    min-height: 100vh;
    height: auto;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    height: auto;
    padding: 100px 16px 40px 16px;
    gap: 20px;
  }

  .gallery-grid bento-panel-7 {
    width: 100%;
    height: auto;
    /* This forces the panel to perfectly mimic the desktop aspect ratio uniformly scaled down! */
    aspect-ratio: 505 / 430;
  }
}



/* 
  ==============================================================
  CAREERS PAGE STYLING (Premium Form)
  ==============================================================
*/

body.careers-page {
  background: var(--bg-navy, linear-gradient(135deg, #0e1129, #1b214a));
  margin: 0;
  padding: 0;
  min-height: 100vh;
  height: auto;
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: auto;
  display: block;
  font-family: var(--font-body, 'Roboto', sans-serif);
  color: #ffffff;
}

.careers-container {
  max-width: 800px;
  margin: 120px auto 60px auto;
  /* Margin to comfortably clear fixed navbar */
  padding: 0 24px;
}

.careers-header {
  text-align: center;
  margin-bottom: 3rem;
}

.careers-header .page-title {
  font-family: var(--font-heading, 'Changa', sans-serif);
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(to right, #ffffff, var(--color-highlight, #A6B4EE));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.careers-header .step-desc {
  font-size: 1.1rem;
  line-height: 1.6;
  opacity: 0.85;
  max-width: 600px;
  margin: 0 auto;
}

/* Glassmorphism Container */
.glass-form-container {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.input-group {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
}

.input-group label {
  font-family: var(--font-heading, 'Changa', sans-serif);
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: #ffffff;
}

/* Base input styling for text, email, tel, url, select, and textarea */
.input-group input,
.input-group select,
.input-group textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 16px;
  color: #ffffff;
  font-family: var(--font-body, 'Roboto', sans-serif);
  font-size: 1rem;
  box-sizing: border-box;
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.input-group textarea {
  resize: vertical;
}

.input-group select {
  appearance: none;
  /* Removes native OS select styling */
  cursor: pointer;
}

/* Select options inside dark mode need a fallback explicitly */
.input-group select option {
  background: #1b214a;
  /* Fallback for select dropdowns which can't be purely transparent */
  color: #fff;
}

/* Glowing soft focus */
.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
  outline: none;
  border-color: var(--color-highlight, #A6B4EE);
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 0 4px rgba(166, 180, 238, 0.1);
}

/* Styling the generic placeholder texts nicely */
.input-group input::placeholder,
.input-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.736);
}

.submit-btn {
  width: 100%;
  padding: 18px;
  font-family: var(--font-heading, 'Changa', sans-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
  background: var(--btn);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  margin-top: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(126, 141, 197, 0.4);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

@media (max-width: 768px) {
  .careers-container {
    padding: 0 16px;
    margin-top: 100px;
    margin-bottom: 120px;
  }

  .careers-header .page-title {
    font-size: 2.5rem;
  }

  .glass-form-container {
    padding: 24px 16px;
  }
}

/* ================================= */
/* PAGE TRANSITIONS                  */
/* ================================= */

body.page-exit-flow-left [data-flow="exit"] {
  animation-name: slideOutToLeftFlow;
  animation-duration: 0.8s;
  animation-timing-function: cubic-bezier(0.8, 0, 0.2, 1);
  animation-fill-mode: both;
  will-change: transform, opacity;
}

body.page-enter-flow-left [data-flow="enter"] {
  animation-name: slideInFromRightFlow;
  animation-duration: 0.8s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-fill-mode: both;
  will-change: transform, opacity;
}

body.page-exit-flow-right [data-flow="exit"] {
  animation-name: slideOutToRightFlow;
  animation-duration: 0.8s;
  animation-timing-function: cubic-bezier(0.8, 0, 0.2, 1);
  animation-fill-mode: both;
  will-change: transform, opacity;
}

body.page-enter-flow-right [data-flow="enter"] {
  animation-name: slideInFromLeftFlow;
  animation-duration: 0.8s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-fill-mode: both;
  will-change: transform, opacity;
}

@keyframes slideOutToLeftFlow {
  0% {
    transform: translateX(0);
    opacity: 1;
  }

  100% {
    transform: translateX(-100vw);
    opacity: 0;
  }
}

@keyframes slideInFromRightFlow {
  0% {
    transform: translateX(100vw);
    opacity: 0;
  }

  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutToRightFlow {
  0% {
    transform: translateX(0);
    opacity: 1;
  }

  100% {
    transform: translateX(100vw);
    opacity: 0;
  }
}

@keyframes slideInFromLeftFlow {
  0% {
    transform: translateX(-100vw);
    opacity: 0;
  }

  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

/* 
  ==============================================================
  CAMPAIGNS PAGE (PANEL 9 REPLICATION)
  ==============================================================
*/
body.campaigns-page {
  margin: 0;
  padding: 0;
  width: 100vw;
  min-height: 100vh;
  box-sizing: border-box;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--bg-navy);
}

.campaigns-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
  height: auto;
  padding: 100px 16px 40px 16px;
  box-sizing: border-box;
}

.campaigns-grid bento-panel-9 {
  display: flex;
  min-height: 250px;
  width: 100%;
}

.campaigns-grid .p9 {
  width: 100%;
  height: 100%;
  flex: none !important;
}

@media (max-width: 768px) {
  .campaigns-grid {
    grid-template-columns: 1fr;
  }

  .campaigns-grid bento-panel-9 {
    min-height: 200px;
  }
}

/* 
  ==============================================================
  CAMPAIGN DETAILS PAGE
  ==============================================================
*/
.campaign-hero-image {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 2rem;
  width: 85%;
  height: 400px;
  margin: 5rem auto 2rem auto;
  padding: 0;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

.campaign-hero-image .campaign-title-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  color: #fff;
  font-family: var(--font-heading, 'Changa', sans-serif);
  font-size: 3.5rem;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.campaign-desc-image {
  width: 100%;
  height: auto;
  border-radius: 16px;
  margin: 20px 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.campaign-ig-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 16px auto 40px auto;
  width: 100%;
}

.ig-placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: rgba(255, 255, 255, 0.05);
  border: 2px dashed rgba(166, 180, 238, 0.3);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  transition: background 0.3s ease;
  overflow: hidden;
}

.ig-placeholder:hover {
  background: rgba(255, 255, 255, 0.1);
}

.ig-placeholder span {
  font-family: var(--font-body, 'Roboto', sans-serif);
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-highlight, #A6B4EE);
  opacity: 0.8;
}

.ig-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .campaign-hero-image {
    height: 250px;
    width: 92%;
    border-radius: 1.5rem;
  }

  .campaign-hero-image .campaign-title-overlay {
    font-size: 2rem !important;
    padding: 20px;
  }

  .campaign-ig-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .p9-desc-1 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.campaigns-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  padding: var(--padding);
  margin-top: 110px;
  /* offset for nav */
  width: 100%;
  box-sizing: border-box;
  max-width: 1200px;
  margin-inline: auto;
}

@media (max-width: 768px) {
  .campaigns-container {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 90px;
  }

  .bento-container {
    padding-bottom: 120px;
    /* clear fixed navbar */
  }

  .p7 {
    min-height: 400px;
    height: auto;
  }

  .p9 {
    min-height: 220px;
    height: auto;
  }
}