

body {
  font-family: 'Josefin Sans', sans-serif;
}

/* Container takes full viewport */
.home-wrapper {
  position: fixed;  
  top: 0;
  left: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  overflow: hidden;  
  object-fit: cover;
}

#mainContent {
  width: 100%;
  height: 100%;
  display: flex;
  overflow: hidden;
}

.tab-content {
  display: flex;
}

.banner-image {
  width: 100%;
  height: 100vh;
  object-fit: cover;
  display: block;
}

.slide {
  position: relative !important;
  outline: none;
  overflow: visible !important;
  height: 100%;
  width: 100%;
}

#bannerSlider .slick-slide {
  position: relative !important;
  overflow: visible !important;
}

#bannerSlider .slick-slide .slide {
  position: relative !important;
  height: 100%;
  width: 100%;
  cursor: pointer;
}

.slide .typing-overlay {
  position: absolute !important;
  bottom: 17% !important;
  left: 2.4% !important;
  right: auto !important;
  top: auto !important;
}

/* Ensure slick carousel displays properly */
#bannerSlider {
  width: 100%;
  height: 100vh;
  position: relative;
  overflow: visible !important; /* Allow typing overlay to show */
}

#bannerSlider .slick-list,
#bannerSlider .slick-track {
  height: 100vh;
  overflow: visible !important;
}

#bannerSlider .slick-slide {
  height: 100vh;
  position: relative !important;
  overflow: visible !important;
}

#bannerSlider .slick-slide > div {
  height: 100%;
  position: relative !important;
}

.slide-content {
  position: relative;
  top: 65%;
  left: 50px;
  color: rgb(0, 0, 0);
  z-index: 10;
  max-width: 500px;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
}



.slide-content h1 {
  font-size: 19.5px;
  color: #010c80;
  font-family: 'Josefin Sans', sans-serif;
}

.slide-content h2 {
  font-size: 23.4px;
  color: #010c80;
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 500;
}

.slick-dots {
  bottom: 12% !important;
  text-align: left !important;
  margin-left: 12px !important;
  gap: 2px !important;
}

.slick-dots li button:before {
  color: #ffffff !important;
  font-size: 5px !important;
  opacity: 1 !important;
}

.slick-dots li:hover button:before {
  color: #010c80 !important;
  font-size: 5px !important;
  opacity: 1 !important;
}

.slick-dots li button:hover:before {
  color: #010c80 !important;
}

.slick-dots li.slick-active button:before {
  color: #010c80 !important; /* active dot color */
  opacity: 1 !important;
}

.image-box {
  position: relative;
  width: 100%;
  overflow: hidden;
  flex: 0 0 auto;
}



.image-box .arrow-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.image-box .image-items {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* Smooth GPU-accelerated transform */
  transition: transform 0.6s cubic-bezier(.2,.8,.2,1), opacity 0.35s ease;
  transform-origin: center center;
  will-change: transform, opacity;
  backface-visibility: hidden;
  /* help promote to its own layer for smoother animation */
  transform: translateZ(0);
  opacity: 1;
}

.image-box:hover .image-items {
  /* remove !important so the transition can animate normally */
  transform: scale(1.15);
  cursor: pointer;
  opacity: 0.95;
}



.image-text {
  font-family: "Josefin Sans", sans-serif;
  position: absolute;
  bottom: 20px;
  left: 20px;
  color: white;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.7);
  z-index: 2;
  pointer-events: none; /* so clicks go to image if needed */
}

.image-text h2 {
  font-size: 18px;
}

.arrow-sticker {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background-color: #ffffff00;
  color: rgb(255, 255, 255);
  padding: 6px 12px;
  font-size: 1.2rem;
  font-weight: bold;
  height: 50px;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 3;
}

.image-box:hover .image-text {
  opacity: 0;
}

.image-box:hover .arrow-sticker {
  opacity: 1;
  transform: translateX(0);
}

/* Image takes 70% width and full height, aligned left */
.image-container {
  width: 70%;
  height: 100vh;
  flex-shrink: 0;
  position: relative;
  overflow: visible !important; /* Changed from hidden to visible so typing overlay can show */
  z-index: 1;
  max-width: 70%;
}

.image-container img {
  width: 100%;
  object-fit: cover; /* Ensures it fills container without distortion */
  display: block;
}

.toc{
  display: block;
  justify-content: flex-start;
  color: white;
  text-align: left;
  position: fixed;
  bottom: 0;
  padding: 20px 20px;
}

.toc a{
  font-size: 10.4px;
  color: #010c80;
  text-decoration: none;
  font-weight: bold;
}

.toc a:hover{
  text-decoration: underline;
}

.right-image-stack {
  width: 30%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  z-index: 10;
  max-width: 30%;
  background-color: transparent;
}

/* Target the three image-box divs - all equal height (33.333% each) - DESKTOP ONLY */
@media (min-width: 769px) {
.right-image-stack .image-box {
  display: block !important;
  visibility: visible !important;
  height: 33.333% !important;
  flex: 0 0 33.333% !important;
  }
}

.typing-overlay {
  position: absolute !important;
  bottom: 176px !important;
  left: 2.4% !important;
  top: auto !important;
  right: auto !important;
  color: white;
  z-index: 100 !important; /* Below logo which is 200 */
  max-width: 600px;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.9) !important;
  pointer-events: none;
  background: transparent;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  transform: translateZ(0); /* Force hardware acceleration */
  will-change: contents;
  margin: 0 !important;
  padding: 0 !important;
}

/* Ensure typing overlay is positioned relative to slide, not document */
.slide .typing-overlay {
  position: absolute !important;
  bottom: 176px !important; /* Default for slides 1-2, JS will override for slides 3-9 */
  left: 2.4% !important;
  top: auto !important;
}

/* Slides 3-9 (data-banner 2-8) get 210px bottom padding */
.slide[data-banner="2"] .typing-overlay,
.slide[data-banner="3"] .typing-overlay,
.slide[data-banner="4"] .typing-overlay,
.slide[data-banner="5"] .typing-overlay,
.slide[data-banner="6"] .typing-overlay,
.slide[data-banner="7"] .typing-overlay,
.slide[data-banner="8"] .typing-overlay {
  bottom: 210px !important;
}

.typing-overlay h1 {
  margin-bottom: 10px;
  display: block;
  color: white !important;
  font-size: 19.4px !important;
  text-align: left !important;
}

/* Slide 3 (Kaleidoscope) - Blue title */
.slide[data-banner="2"] .typing-overlay h1 {
  color: #010c80 !important;
}

/* Slide 6 (Master Collections) - Blue title */
.slide[data-banner="5"] .typing-overlay h1 {
  color: #010c80 !important;
}

/* Slide 7 (Customised Solutions) - Blue title */
.slide[data-banner="6"] .typing-overlay h1 {
  color: #010c80 !important;
}

/* Slide 9 (Collections Technology) - Blue title */
.slide[data-banner="8"] .typing-overlay h1 {
  color: #010c80 !important;
}

.typing-text {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  z-index: 101 !important;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 23.4px !important;
  white-space: normal !important;
  overflow: visible !important;
  width: auto !important;
  height: auto !important;
  line-height: 1.4;
  border-right: none !important; /* Remove cursor completely */
  color: white;
}

/* Hide static line1 and line2 elements on slides - they will be replaced by animated typing */
.typing-text.line1,
.typing-text.line2 {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

/* Common typing style */
.slide .line1,
.slide .line2 {
  white-space: nowrap; 
  overflow: hidden; 
   margin: 0; 
   display: block;
  font-size: 1.5rem;
  font-weight: 200;
  text-align: left;
  border-right: 2px solid transparent; /* cursor hidden by default */
}

/* First line typing with cursor */
.slide.active .line1 {
  animation: typing1 4s steps(40, end) 1s 1 normal both,
             blink 0.75s step-end 6; /* blink only during typing */
}

.slide.active .line2 {
  animation: typing2 4s steps(40, end) 6s 1 normal both,
             blink 0.75s step-end 6; /* blink only during typing */
}
/* Typing animations */
@keyframes typing1 {
  from { width: 0; }
  to   { width: 36ch; } /* adjust to text length */
}

@keyframes typing2 {
  from { width: 0; }
  to   { width: 40ch; } /* adjust to text length */
}

/* Cursor blink */
@keyframes blink {
  50% { border-color: transparent; }
}

.blinking-cursor {
  border-right: 2px solid currentColor;
  animation: blink-caret 0.75s step-end infinite;
}

@keyframes blink-caret {
  0%, 100% {
    border-color: transparent;
  }
  50% {
    border-color: currentColor;
  }
}


.logo-image {
  position: absolute;
  top: 30px !important;      
  left: 30px !important;
  z-index: 200 !important; /* Above typing overlay (100) */
}



/* Remove this - images are inside .image-box .image-items */
/* .right-image-stack img rules are handled by .image-box .image-items */

.banner-title {
  font-size: clamp(1.125rem, 2.5vw, 2rem); /* min 18px, fluid up to 32px */
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  /* S20 Ultra measurements: banner 384.44px, images 152.55px each, toc 50.59px */
  /* Converting to viewport units for responsiveness */
  
  .home-wrapper {
    flex-direction: column;
    position: fixed !important;
    height: 100vh !important;
    overflow-y: auto !important;
  }
  
  #mainContent {
    flex-direction: column;
    height: auto !important;
    min-height: 100vh !important;
    overflow: visible !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }
  
  /* Banner: 384.44px on S20 Ultra (915px viewport) = 42vh */
  .image-container {
    width: 100% !important;
    height: 42vh !important;
    max-width: 100% !important;
    position: relative !important;
    flex-shrink: 0;
    overflow: visible !important;
  }
  
  .banner-image {
    width: 100% !important;
    height: 42vh !important;
    object-fit: cover;
  }
  
  #bannerSlider {
    height: 42vh !important;
  }
  
  #bannerSlider .slick-list,
  #bannerSlider .slick-track,
  #bannerSlider .slick-slide {
    height: 42vh !important;
  }
  
  .slide {
    height: 42vh !important;
  }
  
  /* Typing overlay positioning - ensure it's above slick dots */
  .typing-overlay {
    max-width: 90% !important;
    z-index: 100 !important; /* Ensure it's above dots */
  }
  
  .typing-overlay h1 {
    font-size: 14px !important;
    margin-bottom: 5px !important;
  }
  
  .typing-text {
    font-size: 13px !important;
  }
  
  /* Individual slide positioning for mobile - all slides can be tweaked individually */
  /* Slide 1 (data-banner="0") */
  #bannerSlider .slide[data-banner="0"] .typing-overlay {
    bottom: 30% !important;
    left: 2.4% !important;
  }
  
  /* Slide 2 (data-banner="1") */
  #bannerSlider .slide[data-banner="1"] .typing-overlay {
    bottom: #30% !important;
    left: 2.4% !important;
  }
  
  /* Individual slide positioning for mobile - slides 3-9 (data-banner 2-8) */
  /* These rules override the general .slide .typing-overlay rule above */
  /* Slide 3 (data-banner="2") */
  #bannerSlider .slide[data-banner="2"] .typing-overlay {
    bottom: 30% !important;
    left: 2.4% !important;
  }
  
  /* Slide 4 (data-banner="3") */
  #bannerSlider .slide[data-banner="3"] .typing-overlay {
    bottom: 30% !important;
    left: 2.4% !important;
  }
  
  /* Slide 5 (data-banner="4") */
  #bannerSlider .slide[data-banner="4"] .typing-overlay {
    bottom: 30% !important;
    left: 2.4% !important;
  }
  
  /* Slide 6 (data-banner="5") */
  #bannerSlider .slide[data-banner="5"] .typing-overlay {
    bottom: 30% !important;
    left: 2.4% !important;
  }
  
  /* Slide 7 (data-banner="6") */
  #bannerSlider .slide[data-banner="6"] .typing-overlay {
    bottom: 30% !important;
    left: 2.4% !important;
  }
  
  /* Slide 8 (data-banner="7") */
  #bannerSlider .slide[data-banner="7"] .typing-overlay {
    bottom: 30% !important;
    left: 2.4% !important;
  }
  
  /* Slide 9 (data-banner="8") */
  #bannerSlider .slide[data-banner="8"] .typing-overlay {
    bottom: 30% !important;
    left: 2.4% !important;
  }
  
  .logo-image {
    width: 150px !important;
    top: 10px !important;
    left: 10px !important;
    z-index: 200 !important;
  }
  
  /* Right image stack: Each image 152.55px on S20 Ultra, all equal height */
  /* Total: 152.55px × 3 = 457.65px ≈ 50vh on S20 Ultra viewport (915px) */
  /* Width must be exactly 412px (100vw) - override desktop max-width: 30% */
  .right-image-stack {
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 100vw !important;
    height: 50vh !important;
    flex-direction: column !important;
    display: flex !important;
    position: relative !important;
    z-index: 1 !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    /* Override desktop 30% width restriction */
    flex-basis: 100vw !important;
  }
  
  .right-image-stack .image-box {
    display: block !important;
    visibility: visible !important;
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 100vw !important;
    position: relative !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    /* Each image is exactly 1/3 of 50vh container = 16.67vh = 152.55px on S20 Ultra */
    /* Override any desktop rules that might set height to 33.333% of viewport */
    height: calc(50vh / 3) !important;
    flex: 0 0 calc(50vh / 3) !important;
    min-height: calc(50vh / 3) !important;
    max-height: calc(50vh / 3) !important;
    /* Ensure it's not taking percentage of parent incorrectly */
    flex-grow: 0 !important;
    flex-shrink: 0 !important;
  }
  
  .right-image-stack .image-box picture {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }
  
  .right-image-stack .image-box .image-items {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }
  
  /* All three images equal height: exactly 1/3 of 50vh container */
  /* Override desktop rule that sets height: 33.333% !important */
  .right-image-stack .image-box:nth-child(1),
  .right-image-stack .image-box:nth-child(2),
  .right-image-stack .image-box:nth-child(3) {
    height: calc(50vh / 3) !important;
    flex: 0 0 calc(50vh / 3) !important;
    min-height: calc(50vh / 3) !important;
    max-height: calc(50vh / 3) !important;
    flex-grow: 0 !important;
    flex-shrink: 0 !important;
    /* Remove any percentage-based height that might be inherited */
    flex-basis: calc(50vh / 3) !important;
  }
  
  /* Slick dots positioning - ensure it's below typing overlay */
  .slick-dots {
    bottom: 12% !important;
    z-index: 50 !important; /* Below typing overlay (100) */
  }
 
  /* TOC: Position it at the very bottom of the page after all content on mobile */
  /* Using the old working approach: bottom: -55px, but adjusted to appear after right-image-stack */
  #mainContent {
    position: relative !important;
    min-height: calc(42vh + 50vh + 70px) !important; /* banner + images + toc space */
    padding-bottom: 70px !important;
  }
  
  /* Apply old working approach: position absolute with bottom offset */
  /* Position it after right-image-stack: bottom of image-container (-55px) + right-image-stack height (50vh) */
  .toc {
    font-size: 9px !important;
    color: #333 !important;
    position: absolute !important;
    bottom: calc(-50vh - 55px) !important; /* Push down by right-image-stack (50vh) + original offset (55px) */
    left: 0 !important;
    width: 100% !important;
    padding: 10px 15px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    z-index: 10 !important;
    background: #f5f5f5 !important;
    text-align: center !important;
    display: block !important;
    visibility: visible !important;
  }
  
  .toc a {
    font-size: 10px !important;
    color: #010c80 !important;
    text-decoration: none !important;
  }
  
  .toc a:hover {
    text-decoration: underline !important;
  }
}

