/* =================================================================== */
/* ==                      1. ROOT VARIABLES                        == */
/* =================================================================== */
:root {
  /* --- Colors --- */
  --color-text-dark: #000000;
  --color-text-light: #f0f0f0;
  --color-text-body: #333333;
  --color-text-subtle: #555555;
  --color-text-link: #926c00;
  --color-text-quote: #1d1d1f;
  --color-text-disabled: #aaa;

  --color-bg-white: #ffffff;
  --color-bg-light: #f0f0f0;
  --color-bg-medium: #f3f6f6;
  --color-bg-dark: #0e0e0e;
  --color-bg-dark-accent: #0d1117;
  --color-bg-top-bar: #e4e4e4;
  --color-bg-toolkit: #7fc5de;
  --color-bg-arrow-nav: #e8e8ed;
  --color-bg-arrow-nav-dark: #2a2a2e;

  --color-primary-gold: #926c00;
  --color-primary-gold-hover: #a17a00;
  --color-secondary-gold: #ffd60a;
  --color-secondary-gold-hover: #ffab3c;

  /* --- Typography --- */
  --font-primary: 'Inter', sans-serif;
  --font-size-small: 1rem;
  --font-size-base: 16pt;
  --font-size-mid: 19pt;
  --font-size-ML: 30pt;
  --font-size-large: 37pt;
  --line-height-base: 1.6;

  /* --- Sizing & Spacing --- */
  --space-xxs: 0.5rem;   /* 8px */
  --space-xs: 0.75rem;   /* 12px */
  --space-sm: 0.8125rem; /* 13px */
  --space-md: 1.25rem;   /* 20px */
  --space-lg: 2.5rem;    /* 40px */
  --space-xl: 3.75rem;   /* 60px */
  --space-xxl: 5rem;     /* 80px */

  /* --- Borders & Shadows --- */
  --radius-pill: 999px;
  --radius-lg: 3.75rem;   /* 60px */
  --radius-md: 1.875rem;  /* 30px */
  --radius-sm: 1.25rem;   /* 20px */
  --radius-xs: 0.625rem;  /* 10px */
  --shadow-card: 0 0.625rem 1.875rem rgba(0, 0, 0, 0.07);
  --shadow-card-hover: 0 1.25rem 2.5rem rgba(0, 0, 0, 0.12);

  /* --- Layout --- */
  --container-width-xl: 120rem;    /* 1920px */
  --container-width-lg: 1400px;    /* 1680px */
  --container-width-md: 78.75rem;  /* 1260px */
  --container-width-sm: 56.25rem;  /* 900px */
}

/* =================================================================== */
/* ==                 2. GLOBAL & UTILITY STYLES                    == */
/* =================================================================== */

body {
  margin: 0;
  font-family: var(--font-primary);
  background-color: var(--color-bg-white);
  color: var(--color-text-body);
  overflow-x: hidden;
}

.bg-cover-center {
  background-size: cover;
  background-position: center;
}
.no-scrollbar {
  -ms-overflow-style: none; 
  scrollbar-width: none;
}
.no-scrollbar::-webkit-scrollbar {
  display: none;
}

/* =================================================================== */
/* ==                 4. SHARED COMPONENT STYLES                    == */
/* =================================================================== */

/* --- Page Header --- */
.page-header {
  max-width: 1400px;
  padding: var(--space-md);
  margin: 0 auto;

}
.page-header-container {
  padding: 0 ;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.page-title {
  font-size: var(--font-size-large);
  font-weight: 600;
  margin: 0;
  color: var(--color-text-dark);
}
.page-slogan {
  font-size: 1.6rem; /* 30px */
  font-weight: 400;
  margin: 0;
  color: var(--color-text-dark);
}

/* --- Arrow Navigation --- */
.carousel-arrow-nav {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-xs);
  margin-top: 1.5rem;
}
.arrow-button {
  width: 2.375rem; /* 38px */
  height: 2.375rem;
  border-radius: 50%;
  background-color: var(--color-bg-arrow-nav);
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, opacity 0.3s ease;
}
.arrow-button:hover {
  background-color: #f0f0f4;
}
.arrow-button svg {
  width: 1.875rem; /* 30px */
  height: 1.875rem;
  stroke: #6e6e6e;
}
.arrow-button.disabled {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}

/* --- Hero --- */
.hero-section {
  padding: 2rem 0;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-image {
  width: 1680px;
  height: 850px;
  border-radius: var(--radius-lg);
}

.top-bar-background {
  height: 44px;
  background-color: var(--color-bg-top-bar);
}

/* --- Buttons --- */
.button-group {
  display: flex;
  justify-content: center;
  gap: 1rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.75rem; /* 44px */
  padding: 0;
  box-sizing: border-box;
  border: 1px solid;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-size: var(--font-size-base);
  font-weight: 400;
  transition: background-color 0.2s ease, color 0.2s ease;
  cursor: pointer;
}
.btn.btn-solid-gold {
  width: 8.4375rem; /* 135px */
  background-color: var(--color-primary-gold);
  border-color: var(--color-primary-gold);
  color: var(--color-bg-white);
}
.btn.btn-solid-gold:hover {
  background-color: var(--color-primary-gold-hover);
  border-color: var(--color-primary-gold-hover);
}
.btn.btn-outline-gold {
  width: 8.4375rem; /* 135px */
  border-color: var(--color-primary-gold);
  color: var(--color-primary-gold);
}
.btn.btn-outline-gold:hover {
  background-color: var(--color-primary-gold);
  color: var(--color-bg-white);
}
.btn.btn-outline-white {
  width: 11.0625rem; /* 177px */
  border-color: var(--color-secondary-gold);
  color: var(--color-secondary-gold);
}
.btn.btn-outline-white:hover {
  background-color: var(--color-secondary-gold);
  color: var(--color-bg-dark);
}

/* --- Glass Button --- */
.realistic-glass-button {
  display: inline-block;
  padding: 0.75rem 1.875rem;
  text-decoration: none;
  border-radius: var(--radius-pill);
  position: relative;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.2), inset 0 -2px 4px rgba(0, 0, 0, 0.15);
  color: var(--color-bg-white);
  font-size: 1.25rem;
  font-weight: 300;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.realistic-glass-button:hover {
  transform: translateY(0px) scale(1.05);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.3), inset 0 -2px 4px rgba(0, 0, 0, 0.1), 0 0.625rem 1.25rem rgba(0, 0, 0, 0.1);
}
.realistic-glass-button:active {
  transform: translateY(0px) scale(1.02);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.3), inset 0 -1px 2px rgba(0, 0, 0, 0.2);
}
.realistic-glass-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0) 70%);
  opacity: 0.3;
}
/* --- 6. Final Navigation Section --- */

.final-nav-section {
    background-color: #ffff; 
    padding: var(--space-xl) var(--space-lg);
    margin-bottom: var(--space-sm);
    border-top: 1px solid rgba(0, 0, 0, 0.1) ;
}

.final-nav-container {
    max-width: 1560px;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: flex-start; 
    gap: var(--space-xxl);
}

.final-nav-column h3 {
    font-size: var(--font-size-small);
    font-weight: 400;
    text-transform: uppercase;
    color: var(--color-text-dark);
    margin: 0 0 var(--space-md) 0;
}

.final-nav-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.final-nav-column a {
    font-size: var(--font-size-mid);
    font-weight: 600;
    color: var(--color-text-dark);
    text-decoration: none;
    transition: color 0.2s ease;
}
/* ============================================= */
/* ==   UNIFIED LIGHTBOX (CSS SCROLL SNAP)      == */
/* ============================================= */

/* --- Main Overlay --- */
.linkedin-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s 0.3s;
}

.linkedin-lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0s;
}

/* --- Content Wrapper (holds viewer and sidebar) --- */
.lightbox-content-wrapper {
    display: flex;
    width: 95%;
    height: 90%;
    max-width: 1600px;
    position: relative;
    background-color: #000;
}

/* --- Media Viewer Area: The Core of the Scroll Snap --- */
.lightbox-viewer-wrapper {
    flex-grow: 1;
    position: relative;
    display: flex; /* Changed from grid to flex */
    align-items: center;
    justify-content: center;
}

.lightbox-image-viewer {
    width: 100%;
    height: 100%;
    display: flex; /* The track will now sit inside this flex container */
    overflow-x: auto; /* Enable horizontal scrolling */
    scroll-snap-type: x mandatory; /* Enable snapping on the X-axis */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    scrollbar-width: none; /* Hide scrollbar on Firefox */
}
/* Hide scrollbar on Chrome, Safari, Edge */
.lightbox-image-viewer::-webkit-scrollbar {
    display: none;
}

.lightbox-video-container {
    width: 100%;
    height: 100%;
    display: none; /* Only visible when a video is active */
}

.lightbox-video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* --- Image Track and Slides for Swiping --- */
.lightbox-image-track {
    display: flex;
    height: 100%;
    position: relative;
}

.lightbox-slide {
    flex: 0 0 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    scroll-snap-align: center; /* This is the point where the slide will "snap" */
}

.lightbox-slide .lightbox-image {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    user-select: none;
    pointer-events: none; /* Prevents image drag interference */
}

/* --- Sidebar (for Insights page) --- */
.lightbox-sidebar {
    flex: 0 0 360px;
    background-color: #fff;
    overflow-y: auto;
    display: none;
}
.lightbox-sidebar:not(:empty) {
    display: flex;
    flex-direction: column;
}

/* --- Navigation Buttons (Prev/Next) --- */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    width: 44px;
    height: 44px;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background-color 0.2s, opacity 0.2s;
}

.lightbox-nav:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.lightbox-nav.prev { left: 15px; }
.lightbox-nav.next { right: 15px; }

/* NEW: Style for when an arrow is disabled */
.lightbox-nav.disabled {
    opacity: 0.2;
    cursor: not-allowed;
    pointer-events: none;
}

/* --- Close Button (X) --- */
.lightbox-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2.5em;
    font-weight: bold;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1010;
    line-height: 1;
    padding: 0;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}



/* =================================================================== */
/* ==           COMMON SKELETON PLACEHOLDER STYLES                  == */
/* =================================================================== */

/* The shimmer animation used by all placeholders */
@keyframes placeholder-shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

/* Key rule for the loading system */
body.is-loading .page-content {
  opacity: 1;
  transition: none;
}

/* Hide images in common components */
body.is-loading .hero-image {
  visibility: hidden;
}

/* --- Placeholders for Components on Sub-Pages (About, Characters, etc.) --- */

/* For the main titles on pages like Characters, About, etc. */
body.is-loading .page-title,
body.is-loading .page-slogan {
  animation: placeholder-shimmer 2s linear infinite;
  background-color: #e0e0e0;
  background-image: linear-gradient(to right, #e0e0e0 0%, #f0f0f0 40%, #e0e0e0 80%, #e0e0e0 100%);
  background-repeat: no-repeat;
  background-size: 2000px 100%;
  color: transparent !important;
  border-radius: var(--radius-xs);
}

body.is-loading .page-title {
  height: 65px;
  width: 270px;
}

body.is-loading .page-slogan {
  height: 36px;
  width: 325px;
}

/* For the large hero image section found on many sub-pages */
body.is-loading .hero-image-wrapper {
  animation: placeholder-shimmer 2s linear infinite;
  background-color: #e0e0e0;
  background-image: linear-gradient(to right, #e0e0e0 0%, #f0f0f0 40%, #e0e0e0 80%, #e0e0e0 100%);
  background-repeat: no-repeat;
  background-size: 2000px 100%;
  border-radius: var(--radius-lg);
  width: 1920px; 
  height: 1260px;
}


@media (max-width: 1440px) {
  /* --- Main Layout Styles --- */
  .hero-image {
    width: 965px;
    height: auto;
    display: block;
    border-radius: var(--radius-md);
  }
  .page-header {
    max-width: 965px;
  }
  .page-title, .page-slogan {
    margin: 0;
  }
.final-nav-container {
    max-width: 935px;
}
.final-nav-column h3{
  font-size: 0.75rem;
}
.final-nav-column a{
  font-size: var(--font-size-small);
}
  /* --- Skeleton Placeholder Styles --- */
  body.is-loading .hero-image-wrapper {
    width: 100%;
    max-width: 935px;
    height: auto;
    aspect-ratio: 1680 / 850;
  }
  body.is-loading .page-title {
    height: 52px;
    width: 220px;
  }
  body.is-loading .page-slogan {
    height: 29px;
    width: 260px;
  }
}

@media (max-width: 1069px) {
  /* --- Main Layout Styles --- */
  .hero-image {
    width: 775px;
    height: auto;
    display: block;
    border-radius: var(--radius-md);
  }
  .page-header {
    max-width: 775px;
  }
  .page-title, .page-slogan {
    margin: 0;
  }
.final-nav-container {
    max-width: 935px;
}
.final-nav-column h3{
  font-size: 0.75rem;
}
.final-nav-column a{
  font-size: var(--font-size-small);
}
  /* --- Skeleton Placeholder Styles --- */
  body.is-loading .hero-image-wrapper {
    width: 100%;
    max-width: 935px;
    height: auto;
    aspect-ratio: 1680 / 850;
  }
  body.is-loading .page-title {
    height: 52px;
    width: 220px;
  }
  body.is-loading .page-slogan {
    height: 29px;
    width: 260px;
  }
}

@media (max-width: 832px) {
  .page-header{
    max-width: 700px;
    margin: 0 auto;
    padding: 1rem 0 1rem 0;
  }
  .hero-image{
   width: 620px;
  }
  .hero-section {
    padding:0 0 2rem 0;
    }
  .page-title{
    font-size: 2rem;
  }
  .page-slogan{
    font-size: 1.4rem;
  }
    body.is-loading .hero-image-wrapper {
        display: none;
    }
}

@media (max-width: 734px) {
  .page-header{
    max-width: 360px;
  }
  .page-title{
    font-size: 2rem;
    margin: 0 auto;
  }
  .page-slogan{
    font-size: 1.4rem;
    margin: 0 auto;
  }
  .hero-image{
    display: none;
  }
  .final-nav-container {
      gap: 2rem;
  }
  body.is-loading .page-title {
      height: 40px;
      width: 180px;
  }
  body.is-loading .page-slogan {
      height: 24px;
      width: 210px;
  }
  .page-header-container{
    display: flex;
    flex-direction: column;
    text-align: center;
  }

.lightbox-sidebar:not(:empty) {
    display: none;
}

/* --- 6. Final Navigation Section --- */
  .final-nav-container {
    flex-direction: column;
    gap: var(--space-xl); 
    padding: 0;
  }

.final-nav-column a {
    font-size: 1.4rem;
    font-weight: 400;
}

}