/* =====================================
   CUSTOM HERO – DESKTOP ONLY
===================================== */
/* FIX SCROLL STOP ISSUE */
html, body{
  height: 100%;
  overflow: auto;
}

.tj-slider-section.custom-hero{
  height: 100vh;
  overflow: hidden;
}

.custom-hero-slider{
  height: 100vh;
  overflow-y: auto;
  scroll-snap-type: y proximity;
}

.custom-slide{
  height: 100vh;
  scroll-snap-align: start;
  overflow: visible;   /* 🔥 REQUIRED */
}

.tj-slider-section.custom-hero{
  position: relative;
  height: 100vh;
  overflow: visible;
}

/* =====================================
   VERTICAL SLIDER
===================================== */

.custom-hero-slider{
  height: 100%;
  overflow-y: auto;
  scroll-snap-type: y proximity;
  scrollbar-width: none;
   overscroll-behavior: contain;
  /* scroll-behavior: smooth; */
}

.custom-hero-slider::-webkit-scrollbar{
  display: none;
}

/* =====================================
   SLIDES
===================================== */

.custom-slide{
  height: 100vh;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  position: relative;
}

/* background colors */
.custom-slide.slide-1{ background-color: rgb(42, 61, 239); }
.custom-slide.slide-2{ background-color: #04ae6a; }
.custom-slide.slide-3{ background-color: rgb(42, 162, 176); }

/* =====================================
   CONTENT
===================================== */

.custom-slide-content{
  max-width: 720px;
  padding-left: 7vw;
  color: #ffffff;
  position: relative;
  z-index: 3;
}

.custom-hero .slider-title{
  font-size: clamp(56px, 7vw, 76px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -1.4px;
  margin-bottom: 8px;
}

.custom-hero .slider-desc{
  max-width: 410px;
  font-size: 16px;
  line-height: 1.7;
  opacity: 0.9;
  margin-bottom: 22px;
}

/* =====================================
   CONTENT ANIMATION (DESKTOP)
===================================== */

.custom-slide-content{
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.8s cubic-bezier(.22,1,.36,1),
    transform 0.8s cubic-bezier(.22,1,.36,1);
}

.custom-slide.active .custom-slide-content{
  opacity: 1;
  transform: translateY(0);
}

.custom-slide.active .slider-title{ transition-delay: 0.05s; }
.custom-slide.active .slider-desc{ transition-delay: 0.15s; }
.custom-slide.active .slider-btn{ transition-delay: 0.25s; }

/* =====================================
   PHONE (DESKTOP)
===================================== */

.custom-phone-fixed{
  position: absolute;
  top: 54%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 520px;
  z-index: 9999;
  pointer-events: none;
}

.custom-phone{
  position: relative;
  width: 100%;
}

.custom-phone-screen{
  position: absolute;
  top: 5%;
  left: 29%;
  width: 45%;
  height: 90%;
  object-fit: cover;
  background: #000;
  border-radius: 18px;
  z-index: 1;
  transition: opacity .3s ease;
}

.custom-phone-frame{
  width: 100%;
  display: block;
  position: relative;
  z-index: 2;
}

/* =====================================
   SLIDE DECOR (DESKTOP)
===================================== */

.custom-slide .slide-decor{
  position: absolute;
  top: 0;
  right: -2%;
  width: 45%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  z-index: 1;
  transition: opacity .6s ease;
}

.custom-slide.active .slide-decor{
  opacity: 1;
}

.slide-decor .decor{
  position: absolute;
  opacity: 0;
  transform: translateY(40px) scale(0.85) rotate(-6deg);
  transition:
    opacity 3s cubic-bezier(.22,1,.36,1),
    transform 3s cubic-bezier(.22,1,.36,1);
}

.custom-slide.active .decor{
  opacity: 1;
  transform: translateY(0) scale(1) rotate(0deg);
}

/* decor positions */
.decor-laptop{
  top: 30%;
  right: -5%;
  max-width: 520px;
}

.decor-mug{
  bottom: 20%;
  right: 9%;
  max-width: 575px;
}

.decor-plant{
  bottom: 9%;
  right: -37%;
  max-width: 610px;
}

/* =====================================
   FLOATING OBJECTS (DESKTOP)
===================================== */

.slide-float{
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.float-item{
  position: absolute;
  opacity: 0;
  transform: translateY(120px) scale(0.9);
  transition:
    transform 1.2s cubic-bezier(.22,1,.36,1),
    opacity 1.2s ease;
}

.custom-slide.active .float-item{
  opacity: 1;
  transform: translateY(0) scale(1);
}

.custom-slide.active .float-pencil{ transition-delay: 0.15s; }
.custom-slide.active .float-eraser{ transition-delay: 0.35s; }
.custom-slide.active .float-coffee{ transition-delay: 0.55s; }

/* slide 1 */
.slide-1 .float-pencil{
  left: 64%;
  bottom: 30%;
  width: 163px;
  transform: translateY(200px) rotate(-12deg);
}

.slide-1 .float-eraser{
  left: 64%;
  bottom: 15%;
  width: 192px;
  transform: translateY(180px) rotate(8deg);
}

.slide-1 .float-coffee{
  right: 10%;
  bottom: 6%;
  width: 220px;
  transform: translateY(200px);
}

/* slide 2 */
.slide-2 .float-pencil{
  left: 63%;
  bottom: 20%;
  width: 300px;
}

.slide-2 .float-eraser{
  right: 6%;
  bottom: 65%;
  width: 125px;
}

.slide-2 .float-coffee{
  right: -1%;
  bottom: 20%;
  width: 289px;
}

/* slide 3 */
.slide-3 .float-pencil{
  left: 65%;
  bottom: 25%;
  width: 500px;
}

.slide-3 .float-eraser{
  left: 70%;
  bottom: 30%;
  width: 100px;
}

.slide-3 .float-coffee{
  right: 6%;
  bottom: 5%;
  width: 230px;
}

/* =====================================
   FLOAT SHADOWS
===================================== */

.float-pencil{
  filter:
    drop-shadow(0 26px 38px rgba(0,0,0,0.22))
    drop-shadow(0 10px 16px rgba(0,0,0,0.14));
}

.float-eraser{
  filter:
    drop-shadow(0 14px 20px rgba(0,0,0,0.2))
    drop-shadow(0 6px 10px rgba(0,0,0,0.12));
}

.float-coffee{
  filter:
    drop-shadow(0 30px 46px rgba(0,0,0,0.26))
    drop-shadow(0 12px 20px rgba(0,0,0,0.16));
}

/* =====================================
   BACKGROUND TEXT (DESKTOP)
===================================== */

.slide-bg-text{
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.slide-bg-text span{
  position: absolute;
  font-size: 58px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.88;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgb(255 255 255 / 42%);
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s ease,
    transform 0.6s cubic-bezier(.22,1,.36,1);
}

.custom-slide.active .slide-bg-text span{
  opacity: 1;
  transform: translateY(0);
}

/* per slide bg text position */
.slide-1 .slide-bg-text span{ top: -8%; left: 109%; }
.slide-2 .slide-bg-text span{ top: -12%; left: 109%; font-size: 64px; }
.slide-3 .slide-bg-text span{ top: 102%; left: 109%; }

/* =====================================
   MOBILE ONLY (<= 768px)
===================================== */

@media (max-width: 768px){

  /* ==============================
     BASE STRUCTURE (GRID REMOVED)
  ============================== */

  .tj-slider-section.custom-hero,
  .custom-hero-slider,
  .custom-slide{
    height: 100vh;
  }

  .custom-slide{
    position: relative;
    display: flex;                 /* ✅ NO GRID */
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    padding-top: 20px;
  }

  /* ==============================
     FIXED PHONE
  ============================== */

  .custom-phone-fixed{
    position: absolute;
    width: 520px;
        left: 74%;
        top: 57%;
    transform: translate(-50%, -50%);
    z-index: 3;
  }

  /* ==============================
     CONTAINER FIX
  ============================== */

  .container.mobile-stack{
    max-width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }

  /* ==============================
     CONTENT WRAPPER
  ============================== */

  .custom-slide-content{
    position: relative;
    width: 100%;
    max-width: 100%;
    padding: 0 16px;
    z-index: 4;
  }

  /* ==============================
     TITLE
  ============================== */

  .custom-hero .slider-title{
    position: absolute;
    top: 250px;
    left: 14px;
    font-size: 60px;
    line-height: 1.1;
    z-index: 5;
  }

  /* ==============================
     BG SUBTITLE
  ============================== */

  .bg-subtitle{
    position: absolute;
    pointer-events: none;
    z-index: 0;
  }

  .bg-subtitle .bg-text{
    display: block;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 0.9;
    text-transform: uppercase;
    color: rgba(255,255,255,0.25);
  }
  .slide-bg-text{
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
  }

  .slide-bg-text .bg-text{
    position: absolute;
    top: 50%;                 /* SAFE CENTER */
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.25;
    font-size: 32px;          /* SAFE SIZE */
    line-height: 1;
    white-space: nowrap;
  }
  /* ==============================
     DESCRIPTION (FIXED – FULL WIDTH)
  ============================== */

  .slider-desc{
    display: block;
    width: 100%;
    margin-top: 415px;
  }

  /* ==============================
     DECOR OFF
  ============================== */

  .slide-decor{
    display: none;
  }

  /* ==============================
     FLOATING OBJECTS OFF
  ============================== */

  .slide-float{
    display: none;
  }

  /* =====================================
     🔥 PER-SLIDE CONTROLS (PRESERVED)
  ===================================== */

  /* ---------- SLIDE 1 ---------- */
  .slide-1 .custom-phone-fixed{
    left: 78%;
    top: 55%;
    width: 350px;
  }

  .slide-1 .slider-title{
    top: -246px;
  }

  .slide-1 .bg-subtitle{
    bottom: -750%;
    left: -16%;
    transform: translateX(-50%);
    width: 31%;
  }

  .slide-1 .bg-text{
    font-size: 40px;
    line-height: 0.95;
  }

  .slide-1 .slider-desc{
    font-size: 15px;
    line-height: 1.5;
    max-width: 60%;
  }

  .slide-1 .slider-btn{
    position: relative;
    margin-top: 25px;
    top: -5px;
    margin-left: -4px;
  }

  /* ---------- SLIDE 2 ---------- */
  .slide-2 .custom-phone-fixed{
    left: 72%;
    top: 58%;
    width: 320px;
  }

  .slide-2 .slider-title{
    top: -125px;
  }
  .slide-2 .bg-subtitle{
    bottom: 5%;
        left: -16%;
        transform: translateX(-50%);
        width: 30%;
  }

  .slide-2 .bg-text{
    font-size: 48px !important;
    line-height: 0.95;
  }
  .slide-2 .slider-desc{
    font-size: 15px;
        line-height: 1.6;
        max-width: 60%;
        margin-top: 335px !important;
  }

  .slide-2 .slider-btn{
            position: relative;
        margin-top: 25px;
        top: -10px;
        margin-left: -4px;
  }

  /* ---------- SLIDE 3 ---------- */
  .slide-3 .custom-phone-fixed{
    left: 80%;
    top: 52%;
    width: 360px;
  }

  .slide-3 .slider-title{
    top: -125px;
  }

.slide-3 .bg-subtitle{
  bottom: 5%;
        left: -16%;
        transform: translateX(-50%);
        width: 30%;
}

.slide-3 .bg-text{
  font-size: 48px !important;
    line-height: 0.95;
}

.slide-3 .slider-desc{
  font-size: 15px;
        line-height: 1.6;
        max-width: 60%;
        margin-top: 335px !important;
}

.slide-3 .slider-btn{
  position: relative;
        margin-top: 25px;
        top: -10px;
        margin-left: -4px;
}
}

@media (max-width: 640px){

  .custom-phone-fixed{
    width: 420px;
    left: 78%;
    top: 58%;
  }

  .custom-hero .slider-title{
    top: 230px;
    left: 14px;
    font-size: 52px;
  }

  .slide-bg-text .bg-text{
    font-size: 30px;
  }

  .slider-desc{
    margin-top: 380px;
  }

  /* ---------- SLIDE 1 ---------- */
  .slide-1 .custom-phone-fixed{ width: 300px; }
  .slide-1 .slider-title{
    top: -225px;
  }
  .slide-1 .bg-text{ font-size: 36px; }
  .slide-1 .slider-desc{ max-width: 64%; }

  /* ---------- SLIDE 2 ---------- */
  .slide-2 .custom-phone-fixed{ width: 280px; }
  .slide-2 .slider-title{
    top: -125px;
  }
  .slide-2 .bg-text{ font-size: 40px !important; }
  .slide-2 .slider-desc{ margin-top: 300px !important; }

  /* ---------- SLIDE 3 ---------- */
  .slide-3 .custom-phone-fixed{ width: 300px; }
  .slide-3 .slider-title{
    top: -125px;
  }
  .slide-3 .bg-text{ font-size: 40px; }
  .slide-3 .slider-desc{ margin-top: 300px !important; }

}

@media (max-width: 480px){

  .custom-phone-fixed{
    width: 340px;
    left: 76%;
    top: 55%;
  }

  .custom-hero .slider-title{
    top: 200px;
    left: 12px;
    font-size: 44px;
  }

  .slide-bg-text .bg-text{
    font-size: 26px;
  }

  .slider-desc{
    margin-top: 330px;
  }

  /* ---------- SLIDE 1 ---------- */
  .slide-1 .custom-phone-fixed{ width: 260px; }
  .slide-1 .slider-title{
    top: -187px;
  }
  .slide-1 .bg-subtitle{
    bottom: -425%;
    left: -15%;
  }
  .slide-1 .bg-text{ font-size: 32px; }
  .slide-1 .slider-desc{ max-width: 59%; }

  /* ---------- SLIDE 2 ---------- */
  .slide-2 .custom-phone-fixed{ width: 250px; }
  .slide-2 .slider-title{
    top: -125px;
  }
  .slide-2 .bg-text{ font-size: 30px !important; }
  .slide-2 .slider-desc{ margin-top: 280px !important; }

  /* ---------- SLIDE 3 ---------- */
  .slide-3 .custom-phone-fixed{ width: 260px; }
  .slide-3 .slider-title{
    top: -125px;
  }
  .slide-3 .bg-text{ font-size: 34px !important; }
  .slide-3 .slider-desc{ margin-top: 280px !important; }

}

@media (max-width: 360px){

  .custom-phone-fixed{
    width: 306px;
    left: 71%;
    top: 58%;
  }

  .custom-hero .slider-title{
    top: -190px;
    left: 10px;
    font-size: 38px;
  }

  .slide-bg-text .bg-text{
    font-size: 22px;
  }

  .slider-desc{
    margin-top: 300px;
  }

  /* ---------- SLIDE 1 ---------- */
  .slide-1 .custom-phone-fixed{
    width: 230px;
  }

  .slide-1 .slider-title{
    top: -107px !important;
  }

  .slide-1 .bg-subtitle{
            bottom: -244%;
        left: 37%;
  }

  .slide-1 .bg-text{
    font-size: 24px;
  }

  .slide-1 .slider-desc{
    max-width: 49% !important;
    margin-top: 216px !important;
  }

  /* ---------- SLIDE 2 ---------- */
  .slide-2 .custom-phone-fixed{
    width: 220px;
  }

.slide-2 .slider-title{
    top: -107px !important;
  }

  .slide-2 .bg-subtitle{
            bottom: 34%;
        left: -15%;
  }

  .slide-2 .bg-text{
    font-size: 18px !important;
  }

  .slide-2 .slider-desc{
    max-width: 49% !important;
    margin-top: 216px !important;   
  }
  .slide-2 .slider-btn{
            position: relative;
        margin-top: 25px;
        top: 135px;
        margin-left: -4px;
  }
  /* ---------- SLIDE 3 ---------- */
  .slide-3 .custom-phone-fixed{
    width: 230px;
  }
  .slide-3 .slider-title{
    top: -107px !important;
  }

  .slide-3 .bg-subtitle{
            bottom: 34%;
        left: -15%;
  }

  .slide-3 .bg-text{
    font-size: 18px !important;
  }

  .slide-3 .slider-desc{
    max-width: 49% !important;
    margin-top: 216px !important;   
  }
  .slide-3 .slider-btn{
            position: relative;
        margin-top: 25px;
        top: 135px;
        margin-left: -4px;
  }

}

/* ============================= */
/* SLIDE DOWN BUTTON (BOTTOM) */
/* ============================= */

.slide-down-btn {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.slide-down-btn button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 40px;
  padding: 10px 16px;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.3s ease;
}

.slide-down-btn button:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-3px);
}

.slide-down-btn .down-text {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.slide-down-btn i {
  font-size: 18px;
  animation: bounceDown 1.6s infinite;
}

/* BOUNCE ANIMATION */
@keyframes bounceDown {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(6px);
  }
  60% {
    transform: translateY(3px);
  }
}

/* MOBILE ADJUSTMENT */
@media (max-width: 768px) {
  .slide-down-btn {
    bottom: 15px;
  }
}
