/*---------------------------------------
  BANNER SIZING              
-----------------------------------------*/

#banner {
  height: 100vh;        /* Fallback for older/unsupported browsers */
  height: 100dvh;       /* Preferred: accounts for mobile browser UI toolbars */
  height: 100svh;       /* Extra fallback: newer spec alias for small viewport height */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 0 24px;       /* Adds breathing room on small screens */
  margin: 0;
  text-align: center;
}

@media (max-width: 767px) {
  .projectLogo {
    max-height: 50px;
  }
}


/*---------------------------------------
  BANNER PARALLAX              
-----------------------------------------*/

.parallax-banner {
  position: relative;
  height: 100vh;
  background-attachment: scroll; /* Don't use fixed (bad on mobile) */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: background-position;
  z-index: 0;
}

.parallax-banner .hero {
  position: relative;
  z-index: 1;
}

.parallax-foreground {
  position: relative;
  will-change: transform;
  z-index: 1;
}

/*---------------------------------------
  BANNER SCROLL INDICATOR             
-----------------------------------------*/

.scroll-indicator {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 10;
  font-family: sans-serif;
}

.scroll-text {
  font-size: 14px;
  animation: bounceText 1s ease-in-out infinite;
  display: block;
}

/* Caret made from two lines forming a V */
.scroll-caret {
  position: relative;
  width: 24px;
  height: 12px;
  margin: 4px auto 0;
}

.scroll-caret span {
  position: absolute;
  bottom: 0;
  width: 20px;
  height: 2px;
  background-color: currentColor;
  display: block;
  transition: background-color 0.3s;
}

.scroll-caret span:first-child {
  transform: rotate(40deg) translateX(-6px);
  left: 0;
}

.scroll-caret span:last-child {
  transform: rotate(-40deg) translateX(8px) translateY(1px);
  right: 0;
}

/* Color themes via class */
.scroll-indicator.light {
  color: white;
}

.scroll-indicator.dark {
  color: black;
}

/* Bounce animation for text only */
@keyframes bounceText {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

/*---------------------------------------
  HEADER SIZING             
-----------------------------------------*/

.title-padding {
  padding-top: 5vh;
  padding-bottom: 8vh;
}

@media (max-width: 767px) {
.title-padding {
  padding-top: 0vh;
  padding-bottom: 0vh;
}
}

.main-header {
  font-size: clamp(4rem, 8vw, 8rem); /* min: 32px, fluid up to max ~88px */
  font-weight: 300;
  line-height: 1.1;
  color: #444444;
  margin: 0.3em 0;
}

.sub-header {
  font-size: clamp(2rem, 3.85vw, 2.85rem); /* min: 32px, fluid up to max ~88px */
  font-weight: 300;
  line-height: 2;
  color: #444444;
  margin: 0.3em 0;
}

.statement {
  font-size: clamp(2rem, 3.85vw, 2.85rem); /* min: 32px, fluid up to max ~88px */
  font-weight: 100;
  line-height: 2;
  color: #444444;
  margin: 0.3em 0;
}

@media (max-width: 767px) {

.main-header {
  text-align: center;
}

.sub-header {
  text-align: center;
  line-height: 1.4;
  font-size: 13pt;
}

.statement {
  text-align: center;
  line-height: 1.4;
  font-size: 13pt;
}

}


.project-header {
  font-size: clamp(6rem, 9vw, 9rem); /* min: 32px, fluid up to max ~88px */
  font-weight: 300;
  color: #444444;
  margin: 0.3em 0;
}

 .project-metrics {
  font-size: clamp(2rem, 6vw, 4rem); min: 32px, fluid up to max ~88px
  font-weight: 300;
  color: #444444;
  margin: 0.3em 0;
}

/* .project-metrics {
  font-size: clamp(3rem, 6vw, 6rem); min: 32px, fluid up to max ~88px
  font-weight: 300;
  color: #444444;
  margin: 0.3em 0;
} */

.project-tags {
  color: #B2B6BA;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 300;
}

.project-desc {
  color: #444444;
  font-weight: 300;
}

@media (min-width: 768px) {

.project-intro {
  padding-top: 150px;
  padding-bottom: 150px;
  text-align: center;
}
}

@media (max-width: 767px) {

.project-intro {
  padding-top: 90px;
  padding-bottom: 90px;
  text-align: center;
}
}

/*---------------------------------------
  MASONRY GRID LAYOUT            
-----------------------------------------*/

/* ------- GLOBAL RESET ------- */
html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: inherit;
}

/* ------- MASONRY GRID ------- */
.masonry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  width: 100%;
}

/* ------- MASONRY ITEMS ------- */
.masonry-item {
  width: 100%;
  display: block;
  overflow: hidden;
}

/* Aspect ratios by layout role */
.masonry-item[data-aspect="1-1"] {
  aspect-ratio: 1 / 1;
}
.masonry-item[data-aspect="2-1"] {
  aspect-ratio: 2 / 1;
}
.masonry-item[data-aspect="1-2"] {
  aspect-ratio: 1 / 2;
}

/* Image styling */
.masonry-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Masonry Filters */

.masonry-filters {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0;
  padding: 0;
}

.masonry-filters a {
  text-decoration: none;
  color: inherit;
  font-weight: 500;
  position: relative;
  padding-bottom: 4px;
}

.masonry-filters a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 100%;
  background-color: currentColor;
}

/* Responsive Mobile Layout */
@media (max-width: 767px) {
  .masonry-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .masonry-item {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
    height: auto;
  }

  .masonry-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
  }

  .masonry-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
  }
}

/* Masonry Hover Effect */

.masonry-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.masonry-item-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease;
}

.masonry-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.masonry-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6); /* dark overlay */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.masonry-overlay {
  pointer-events: none; /* ensure hover/touch reaches parent */
}

.masonry-caption {
  color: white;
  text-align: center;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
  padding-left: 3rem;
  padding-right: 3rem;
  max-width: 100%;
  word-wrap: break-word;
  box-sizing: border-box;
}

.masonry-caption h2 {
  color: white;
  font-size: 3rem;
  margin: 0 0 0.25rem 0;
}

.masonry-caption p {
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
}

@media (min-width: 768px) and (max-width: 1024px) {
  .masonry-caption h2 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
  }

  .masonry-caption p {
    font-size: clamp(1.2rem, 1vw, 1rem);
  }
}

.masonry-item:hover .masonry-item-inner {
  transform: scale(1.05);
}

.masonry-item:hover img {
  transform: scale(1.1);
  filter: grayscale(100%);
}

.masonry-item:hover .masonry-overlay {
  opacity: 1;
}

.masonry-item:hover .masonry-caption {
  opacity: 1;
  transform: translateY(0);
}



/* Transition for smooth effect */
.masonry-item img {
  transition: transform 0.4s ease, filter 0.4s ease;
}

/* Masonry Label */

.masonry-label {
  position: absolute;
  bottom: 0;   /* 1rem; */
  left: 50%;
  width: 100%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(6px);    /* Blur the background */
  -webkit-backdrop-filter: blur(6px); /* For Safari */
  color: rgba(256, 256, 256, .9);
  font-size: 1.4rem;
  text-align: center;
  padding: 0.4rem 1rem;
  border-radius: 4px;
  z-index: 2;
  opacity: 1;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

@media (max-width: 767px) {
.masonry-label {
  font-size: 1.6rem;
  opacity: 0.75;
  margin-top: 0.25rem;
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(6px);    /* Blur the background */
  -webkit-backdrop-filter: blur(6px); /* For Safari */
  padding: 1rem 1rem;
}
}


.masonry-item:hover .masonry-label {
  opacity: 0;
}

.fade-in-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transform: translateX(-50%);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  will-change: opacity, transform;
}

.fade-in-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
  transform: translateX(-50%);
}




/* === PAGE TRANSITION === */

#page-fade {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: white;
  pointer-events: none;
  opacity: 1;               /* start fully visible */
  transition: opacity 0.5s ease;
  z-index: 9999;
  visibility: visible;
}

#page-fade.fade-out {
  opacity: 0;              /* fade out to show page */
}

#page-fade.fade-in {
  opacity: 1;              /* fade in to block page */
  pointer-events: auto;    /* block clicks */
  visibility: visible;
}

/*---------------------------------------
  NAVIGATION: NAVBAR             
-----------------------------------------*/

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0); /* transparent initially */
  z-index: 1000;
  /* box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); */
  transition: background 0.4s ease, transform 0.4s ease;
  transform: translateY(-100%);
  margin: 0;
  padding: 0;
}

.navbar.slide-down {
  transform: translateY(0);
}

.navbar.slide-up {
  transform: translateY(-100%);
}

/* Navbar background white only when menu open */
.navbar.open {
  background: white;
}

/* Inner container */
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}

/* Logo */
.navbar-brand {
  display: flex;
  align-items: center;
}

.navbar-brand img {
  display: block;
  max-height: 80px;
  height: auto;
  margin: 0;
  transition: max-height 0.3s ease;
}

/* Navigation - desktop default flex */
.navbar-nav {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Nav links desktop */
.navbar-nav li a {
  color: #000;
  font-size: 14px;
  font-weight: normal;
  padding: 0 15px;
  display: flex;
  align-items: center;
  height: 90px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.navbar-nav li a:hover,
.navbar-nav li.active a {
  color: #00aeef;
}

/* Toggle (Hamburger) */
.navbar-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 60px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  gap: 4px; /* Keeps consistent spacing */
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.navbar-toggle .icon-bar {
  height: 2px;
  width: 24px;
  background-color: black;
  border-radius: 1px;
  transition: all 0.3s ease;
}

.navbar-toggle:hover {
  gap: 4px; /* On hover, increase spacing between bars */
}

.navbar-toggle:hover .icon-bar:nth-child(1) {
  transform: translateY(-2px);
}

.navbar-toggle:hover .icon-bar:nth-child(3) {
  transform: translateY(2px);
}

.navbar-toggle:hover .icon-bar {
  background-color: black;
}

.navbar-toggle:focus,
.navbar-toggle:active {
  outline: none;
  box-shadow: none;
}

/* === DARK MODE NAVBAR === */

.navbar-dark .navbar {
  background: rgba(0, 0, 0, 0); /* Transparent by default */
  transition: background 0.3s ease, transform 0.4s ease;
}

/* Default: transparent background for hidden menu */
.navbar-dark .navbar-nav {
  background-color: transparent;
}

/* When menu is open: background becomes black */
.navbar-light .navbar-nav.open {
  background-color: white;
}
.navbar-light .navbar.open {
  background: white;
}

header.navbar-light.scrolled .navbar {
  background-color: rgba(0, 0, 0, 0.2)
}

header.navbar-light.scrolled .navbar.open {
  background-color: white;
}


/* When menu is open: background becomes black */
.navbar-dark .navbar-nav.open {
  background-color: black;
}
.navbar-dark .navbar.open {
  background: black;
}

.navbar-dark .navbar-nav li a {
  color: white;
}

.navbar-dark .navbar-nav li a:hover,
.navbar-dark .navbar-nav li.active a {
  color: white;
}

.navbar-dark .navbar-toggle .icon-bar {
  background-color: white;
}

.navbar-dark .navbar-toggle:hover .icon-bar {
  background-color: white;
}

/* X close transformation bars in dark mode */
.navbar-dark .navbar.open .navbar-toggle .icon-bar:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

.navbar-dark .navbar.open .navbar-toggle .icon-bar:nth-child(2) {
  opacity: 0;
  pointer-events: none;
}

.navbar-dark .navbar.open .navbar-toggle .icon-bar:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}


/* === RESPONSIVE === */

@media (max-width: 767px) {
  .navbar-inner {
    flex-wrap: wrap;
    padding: 20px 24px;
  }

  .navbar-toggle {
    display: flex;
  }

  .navbar-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: white;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  z-index: 500;
  /* 👇 No transition by default */
  transition: none;
}

.navbar-nav.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
  /* 👇 Transition only when opening */
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.navbar-nav.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

  /* Center menu items */
  .navbar-nav li {
    width: 100%;
    text-align: center;
  }

  .navbar-nav li a {
    height: auto;
    line-height: normal;
    padding: 12px 0;
    display: inline-block;
  }

  .navbar-brand img {
    max-height: 50px;
  }
}


/* Transform hamburger bars to X when menu open */
.navbar.open .navbar-toggle .icon-bar:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

.navbar.open .navbar-toggle .icon-bar:nth-child(2) {
  opacity: 0;
  pointer-events: none;
}

.navbar.open .navbar-toggle .icon-bar:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

/* === NAV OVERLAY === */
.nav-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0);
  opacity: 0;
  visibility: hidden;
  transition: background 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
  z-index: 900;
}

.nav-overlay.visible {
  background: rgba(0, 0, 0, 0.4);
  opacity: 1;
  visibility: visible;
}

header.navbar-dark.scrolled .navbar {
  background-color: rgba(0, 0, 0, 0.2);
}

header.navbar-dark.scrolled .navbar.open {
  background-color: black !important;
}

/*---------------------------------------
  NAVIGATION: BACK TO TOP (FOR MOBILE)            
-----------------------------------------*/

/* Hide on desktop (default)
.back-to-top {
  display: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
*/

/* Back to Top button - mobile only
@media (max-width: 767px) { */
  .back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;               /* keep flex to position bars */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1100;              /* above navbar */
    padding: 0;
    opacity: 0;                 /* start hidden */
    pointer-events: none;       /* disable clicks when hidden */
    transition: opacity 1s ease; /* smooth fade */
  }

  /* When visible, fade in */
  .back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
  }

  .back-to-top:focus {
    outline: 2px solid #00aeef;
    outline-offset: 2px;
  }

  /* Each bar is 2px high, 18px wide */
  .back-to-top .icon-bar {
    display: block;
    width: 24px;
    height: 2px;
    background-color: black; /* or white for dark mode */
    border-radius: 1px;
    transition: background-color 0.3s ease;
  }

  /* Dark mode variant */
.back-to-top.backtotop-dark .icon-bar {
  background-color: white;
}

  /* Two bars rotated to form an upward caret */
  .back-to-top .icon-bar:nth-child(1) {
    transform: rotate(40deg) translateX(9px);
  }

  .back-to-top .icon-bar:nth-child(2) {
    transform: rotate(-40deg) translateX(-10px) translateY(-3px);
  }
}

/* =================================
   TOOLBAR FADE SYSTEM
================================= */

.toolbarFade .navbar {

    background: rgba(0,0,0,0);

    transition:
        background-color 0.45s ease,
}

/* activated after scroll */

.toolbarFade.scrolled .navbar {

    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
}


/*---------------------------------------
  PADDING - GLOBAL CONTENT PADDING            
-----------------------------------------*/

.content-padding {
  padding-left: 26px;
  padding-right: 26px;
  padding-top: 16px;
  padding-bottom: 16px;

}

@media (min-width: 768px) and (max-width: 1279px) {
  .content-padding {
    padding-left: 120px;
    padding-right: 120px;
    padding-top: 16px;
    padding-bottom: 16px;
  }
}

@media (min-width: 1280px) {
  .content-padding {
    width: 1200px;
    margin-left: auto;
    margin-right: auto;
  }
}

/*---------------------------------------
  PROJECT: TABS            
-----------------------------------------*/

.tab-bar {
  display: flex;
  width: 100%;
  background-color: var(--tab-bar-bg);
  position: relative; /* Needed for tab-indicator positioning */
}

.tab {
  flex: 1;
  padding: 20px;
  font-size: 1.1em;
  color: var(--text-inactive);
  text-align: center;
  background-color: var(--tab-inactive-bg);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.tab:hover {
  color: var(--text-hover);
  font-weight: 300;
  background-color: var(--tab-hover-bg);
}

.tab.active {
  color: var(--text-active);
  font-weight: 400;
  background-color: var(--tab-active-bg);
  z-index: 1;
}

/* === Sliding Underline for Active Tab === */
.tab-indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 68px;
  width: 50%; /* Adjust if you have more tabs */
  background-color: var(--tab-indicator-bg);
  transition: transform 0.3s ease;
  z-index: 0;
}

/* Inner line */
.tab-indicator::after {
  content: '';
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  border-bottom: 1px solid white;
  transition: width 0.3s ease;
}

.tab-indicator.expanding::after {
  width: 120px; /* or whatever "stretched" width you want */
}

/* === Tab Sections === */
.tab-section {
  display: none;
}

.tab-section.active {
  display: block;
}

/* === Fade Section === */
.fade-section {
  position: relative;
  opacity: 0;
  transition: opacity 0.5s ease;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.fade-section.active {
  opacity: 1;
  height: auto;
  pointer-events: auto;
}

.fade-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: white;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.fade-section.fading-out .fade-overlay {
  opacity: 1;
  pointer-events: auto;
}

.fade-section.fading-in .fade-overlay {
  opacity: 0;
  pointer-events: none;
}

/* === EXAMPLE CUSTOM THEME: customcolorA === */
.color-att {

  /* ACTIVE TAB */
  --tab-active-bg: transparent; /* keep this transparent */
  --tab-indicator-bg: #2486C0; /* this is the bar that moves */
  --text-active: white;

  /* INACTIVE TAB */
  --tab-inactive-bg: transparent; /* keep this transparent */
  --tab-bar-bg: white; /* this is the default state */
  --tab-hover-bg: rgba(36, 134, 192, 0.05); /* this is the hover */
  --text-inactive: black;
  --text-hover: black;
}

.color-lenovo {

  /* ACTIVE TAB */
  --tab-active-bg: transparent; /* keep this transparent */
  --tab-indicator-bg: #A5163D; /* this is the bar that moves */
  --text-active: white;

  /* INACTIVE TAB */
  --tab-inactive-bg: transparent; /* keep this transparent */
  --tab-bar-bg: white; /* this is the default state */
  --tab-hover-bg: rgba(165, 22, 61, 0.05); /* this is the hover */
  --text-inactive: black;
  --text-hover: black;
}

.color-botw {

  /* ACTIVE TAB */
  --tab-active-bg: transparent; /* keep this transparent */
  --tab-indicator-bg: #78a593; /* this is the bar that moves */
  --text-active: white;

  /* INACTIVE TAB */
  --tab-inactive-bg: transparent; /* keep this transparent */
  --tab-bar-bg: white; /* this is the default state */
  --tab-hover-bg: rgba(120, 165, 147, 0.05); /* this is the hover */
  --text-inactive: black;
  --text-hover: black;
}

.color-disney {

  /* ACTIVE TAB */
  --tab-active-bg: transparent; /* keep this transparent */
  --tab-indicator-bg: #16456f; /* this is the bar that moves */
  --text-active: white;

  /* INACTIVE TAB */
  --tab-inactive-bg: transparent; /* keep this transparent */
  --tab-bar-bg: white; /* this is the default state */
  --tab-hover-bg: rgba(22, 69, 111, 0.05); /* this is the hover */
  --text-inactive: black;
  --text-hover: black;
}

.color-ericsson {

  /* ACTIVE TAB */
  --tab-active-bg: transparent; /* keep this transparent */
  --tab-indicator-bg: #334455; /* this is the bar that moves */
  --text-active: white;

  /* INACTIVE TAB */
  --tab-inactive-bg: transparent; /* keep this transparent */
  --tab-bar-bg: white; /* this is the default state */
  --tab-hover-bg: rgba(51, 68, 85, 0.05); /* this is the hover */
  --text-inactive: black;
  --text-hover: black;
}

.color-gameathon {

  /* ACTIVE TAB */
  --tab-active-bg: transparent; /* keep this transparent */
  --tab-indicator-bg: #005b77; /* this is the bar that moves */
  --text-active: white;

  /* INACTIVE TAB */
  --tab-inactive-bg: transparent; /* keep this transparent */
  --tab-bar-bg: white; /* this is the default state */
  --tab-hover-bg: rgba(0, 91, 119, 0.05); /* this is the hover */
  --text-inactive: black;
  --text-hover: black;
}

.color-gamedesign {

  /* ACTIVE TAB */
  --tab-active-bg: transparent; /* keep this transparent */
  --tab-indicator-bg: #0b6160; /* this is the bar that moves */
  --text-active: white;

  /* INACTIVE TAB */
  --tab-inactive-bg: transparent; /* keep this transparent */
  --tab-bar-bg: white; /* this is the default state */
  --tab-hover-bg: rgba(11, 97, 96, 0.05); /* this is the hover */
  --text-inactive: black;
  --text-hover: black;
}

.color-gridlock {

  /* ACTIVE TAB */
  --tab-active-bg: transparent; /* keep this transparent */
  --tab-indicator-bg: #4b4b4b; /* this is the bar that moves */
  --text-active: white;

  /* INACTIVE TAB */
  --tab-inactive-bg: transparent; /* keep this transparent */
  --tab-bar-bg: white; /* this is the default state */
  --tab-hover-bg: rgba(75, 75, 75, 0.05); /* this is the hover */
  --text-inactive: black;
  --text-hover: black;
}

.color-redcross {

  /* ACTIVE TAB */
  --tab-active-bg: transparent; /* keep this transparent */
  --tab-indicator-bg: #843636; /* this is the bar that moves */
  --text-active: white;

  /* INACTIVE TAB */
  --tab-inactive-bg: transparent; /* keep this transparent */
  --tab-bar-bg: white; /* this is the default state */
  --tab-hover-bg: rgba(75, 75, 75, 0.05); /* this is the hover */
  --text-inactive: black;
  --text-hover: black;
}

/*---------------------------------------
  PROCESS INTRO            
-----------------------------------------*/

.processIntro {
  color: white;
}

/*---------------------------------------
  EXPERTISE HEADER SCROLL            
-----------------------------------------*/

.scrolling-words-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 4.5rem; /* You want large text */
  font-weight: 600;
}

/* Outer box */
.scrolling-words-box {
  height: 5.8rem;             /* Increased from 4.5rem */
  overflow: hidden;
  margin: 0 0.625rem;
  width: 60rem;
  text-align: center;
  position: relative;
}

/* UL holds 2 words stacked */
.scrolling-words-box ul {
  margin: 0;
  padding: 0;
  list-style: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}

/* Each word */
.scrolling-words-box li {
  height: 5.8rem;             /* must match scrolling-words-box height, and update JS */
  padding-top: 0.15rem;
  padding-bottom: 0.15rem;
  line-height: normal; /* reset line height */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
}

/*---------------------------------------
  EXPERTISE MIDDLE ALIGN          
-----------------------------------------*/


.row.rowAdjustGallery {
  margin-left: auto;
  margin-right: auto;
}

/*---------------------------------------
  EXPERTISE MIDDLE ALIGN          
-----------------------------------------*/


.row.rowAdjust {
  display: flex;
  align-items: center;
}

/*---------------------------------------
  PROCESS CHART         
-----------------------------------------*/

.process-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  max-width: 1400px;
  flex-wrap: wrap;
  margin: auto;
  font-size: 14px;
  line-height: 24px;
}

.process-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 0px 4px;
  width: 150px;
}

.circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: white;
  color: red;
  font-size: 30px;
  line-height: 70px;
  margin-bottom: 8px;
  flex-shrink: 0;
  transition: transform 0.3s ease-in-out;
}

.circle:hover {
  transform: scale(1.1);
}

.arrow {
  font-size: 30px;
  color: white;
  margin-left: 10px;
  margin-top: 24px;
  flex-shrink: 0;
}

.circular-arrow {
  position: relative;
}

.circular-arrow::after {
  content: '↻';
  font-size: 90px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
}

/* Mobile adjustments */
@media screen and (max-width: 768px) {
  .process-container {
    flex-direction: column;
    align-items: center;
    line-height: 14px;
  }

  .process-column {
    width: 80%;
    margin: 10px 0;
  }

  .arrow {
    margin-left: 0;
    margin-top: 8px;
    margin-bottom: 16px;
    font-size: 40px;
    transform: rotate(90deg);
  }

  .circle {
    width: 60px;
    height: 60px;
    font-size: 20px;
    line-height: 60px;
  }

  .circular-arrow {
    width: 70px;
    height: 70px;
    font-size: 24px;
  }
}

/*---------------------------------------
  COLORS      
-----------------------------------------*/

  .color-att {
    color: #2486C0;
  }

  .color-botw {
    color: #77A592;
  }

  .color-disney {
    color: #16456f;
  }

  .color-ericsson {
    color: #334458;
  }

  .color-lenovo {
    color: #A5163D;
  }

  .color-gat {
    color: #005b77;
  }

  .color-gridlock {
    color: #4b4b4b;
  }

  .color-redcross {
    color: #843636;
  }


  .solid-att {
    background: #2486C0;
  }

  .solid-botw {
    background: #77A592;
  }

  .solid-disney {
    background: #16456f;
  }

  .solid-ericsson {
    background: #334458;
  }

  .solid-lenovo {
    background: #A5163D;
  }

  .solid-gat {
    background: #005b77;
  }

  .solid-gridlock {
    background: #4b4b4b;
  }

  .solid-redcross {
    background: #843636;
  }


  .bg-gat {
    background-color: #005b77; /* Background color */
    background-image: url('../images/nodepattern-fade.png'); /* Path to your SVG */
    background-repeat: no-repeat; /* Prevent tiling */
    background-position: center center; /* Center the image */
    background-size: auto; /* Use image's natural size */
    width: 100%;
}

  .bg-gridlock {
    background-color: #4b4b4b; /* Background color */
    background-image: url('../images/nodepattern-fade.png'); /* Path to your SVG */
    background-repeat: no-repeat; /* Prevent tiling */
    background-position: center center; /* Center the image */
    background-size: auto; /* Use image's natural size */
    width: 100%;
    height: 100vh; /* or whatever height you want */
}





/*---------------------------------------
  PROCESS SECTION LAYOUTS           
-----------------------------------------*/

/* Section spacing */
.cr-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

.cr-end {
  padding-bottom: 60px;
}

.cr-row {
  margin-top: 40px; /* or adjust as needed */
  margin-top: 40px; /* or adjust as needed */
}

.cr-img-stack {
  margin-bottom: 24px;
}

.cr-list {
  list-style-type: disc;
  padding-left: 1.2em; /* Adds just enough space for bullets to sit inside */
  margin-left: 0;
}

.cr-list li {
  padding-left: 0;
  text-indent: 0;
}

hr.solid {
  border: none;
  border-top: 1px solid #ccc;
  margin: 0;
  padding: 0;
  height: 0;
  line-height: 0;
}


/* Bottom spacing between stacked images on mobile */
@media (max-width: 767px) {
  .cr-image-col {
    margin-top: 24px;
  }

  /* Optional: remove bottom margin from last image */
  .cr-image-col:last-child {
    margin-bottom: 0;
  }




  .cr-image-col img {
    margin-bottom: 24px;
  }

  .cr-row .col-sm-12 {
    margin-bottom: 24px;
  }




}

/* Optional: better spacing between header & intro */
.cr-header,
.cr-intro {
  margin-bottom: 24px;
  color: black;
}

.cr-header {
  margin-top: 0px;
}


.cr-section-padding {
  padding-left: 26px;
  padding-right: 26px;
  padding-top: 0px;
  padding-bottom: 0px;
}

@media (min-width: 768px) and (max-width: 1279px) {
  .cr-section-padding {
    padding-left: 120px;
    padding-right: 120px;
  }
}

@media (min-width: 1280px) {
  .cr-section-padding {
    width: 1200px;
    margin-left: auto;
    margin-right: auto;
  }
}



/*---------------------------------------
  MASONRY GRID          
-----------------------------------------*/

/* =========================
   PROJECT TILE GRID
   ========================= */

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  width: 100%;
}

/* Mobile: 1 per row */
@media (max-width: 768px) {
  .project-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
   TILE LINK
   ========================= */

.project-tile {
  display: block;
  text-decoration: none;
  color: inherit;
}

.project-tile--full {
  grid-column: 1 / -1;
}

@media (min-width: 768px) {
  .project-tile--full .project-image {
  aspect-ratio: 16 / 8;
}
}


.project-tile--locked {
  position: relative;
}

.project-tile--locked .project-image img {
  filter: grayscale(70%) brightness(0.55);
}

.project-tile--locked::after {
  content: "🔒";
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  background: rgba(0,0,0,.65);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  backdrop-filter: blur(4px);
}


.project-access {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  opacity: .75;
  margin-top: 4px;
}

/* =========================
   IMAGE CONTAINER
   ========================= */

.project-image {
  position: relative;
  width: 100%;
  aspect-ratio: 7 / 5; /* change to 4/3 or 16/9 if desired */
  overflow: hidden;
  border-radius: 18px;
  background: #f2f2f2;
  transition: transform 0.25s ease;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Hover scale down */
.project-tile:hover .project-image {
  transform: scale(1.01);
  filter: brightness(1.05);
}

/* Hover scale down */
.project-tile--locked:hover .project-image {
  transform: none;
  filter: brightness(.9);
  cursor: pointer;
}

/* =========================
   TEXT BELOW TILE
   ========================= */

.project-text {
  margin-top: 14px;
  text-align: left;
}

.project-title {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
  color: #000;
}

.project-subtitle {
  font-size: 16px;
  line-height: 1.3;
  color: #8a8a8a;
  margin-top: 2px;
}

@media (min-width: 992px) {
  .project-title {
    font-size: 24px;
    font-weight: 300;
  }

  .project-subtitle {
    font-size: 18px;
    font-weight: 100;
  }

}


/* =========================
   DISCLAIMER TEXT
   ========================= */

.disclaimer {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.3;
  color: grey;
}

.mobile-disclaimer {
  display: none;
}

@media (max-width: 767px) {
  .disclaimer {
    font-size: 14px;
    font-weight: 200;
  }

  .desktop-disclaimer {
    display: none;
  }

  .mobile-disclaimer {
    display: block;
  }

}


/* =========================
   SPACERS (OLD BREAKPOINTS)
   ========================= */

/* Primary large section spacing */
.spacer-lg {
    height: 32px;
}

@media (min-width: 768px) {
    .spacer-lg {
        height: 72px;
    }
}


/* Smaller UI/modal spacing */
.spacer-sm {
    height: 16px;
}

@media (min-width: 768px) {
    .spacer-sm {
        height: 24px;
    }
}

/* =========================
   NAVBAR FOR PUBLIC PASSWORD AUTH
   ========================= */


.navbar-auth {
    display: flex;
    align-items: center;
}


/* =========================
   HOME FUNCTIONALITY
   ========================= */

.logoColumn {
  opacity: 0;
  transform: scale(0.2);
  transition:
    opacity 0.6s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Active state when visible */
.logoColumn.in-view {
  opacity: 1;
  transform: scale(1);
}

/* stagger effect */
.logoSection > .col-xs-6:nth-of-type(1) .logoColumn { transition-delay: 0ms; }
.logoSection > .col-xs-6:nth-of-type(2) .logoColumn { transition-delay: 80ms; }
.logoSection > .col-xs-6:nth-of-type(3) .logoColumn { transition-delay: 160ms; }
.logoSection > .col-xs-6:nth-of-type(4) .logoColumn { transition-delay: 240ms; }

.logoColumn {
  width: 100%;
}