/* ===================== BASE STYLES ===================== */
    body {
      font-family: 'Gidole';
      padding: 0;
      margin: 0;
    }

    h1, h2, h3 {
      font-family: 'KoHo';
    } 

    html {
      scroll-behavior: smooth;
    }

    /* ===================== NAVIGATION ===================== */
    nav {
        background-color: transparent;
        color: #ffffff;
        position: fixed;
        width: 100%;
        top: 0;
        left: 0;
        z-index: 999;

        display: flex;
        align-items: center;
        justify-content: space-between;

        padding: 40px 60px;
        height: 110px;

        box-sizing: border-box;
        transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.3s ease;
    }

    .logo { 
        width: 340px; 
        height: auto; 
    }

    .navBottom {
        display: flex;
        align-items: center;
        gap: 60px;
        margin-right: 20px;
    }

    .navBottom a {
        text-decoration: none;
        color: inherit;
    }

    .menuItem {
        cursor: pointer;
        font-weight: 400;
        font-size: 1.2rem;
        text-transform: none !important;
        transition: color 0.3s ease;
        margin: 0;
    }

    /* ===================== NAV SCROLLED STATE ===================== */
    .scrolled { 
        background-color: white !important;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1); 
    }
    .scrolled .menuItem {
      color: #464C62;
    }

    .menuItem:hover {
        color: #F48C0F !important;
    }

    /* ===================== SERVICES ANCHOR OFFSET ===================== */
    #services {
      scroll-margin-top: 120px;
    }

    /* ===================== SLIDER ===================== */
    .slider {
      clip-path: polygon(0 0, 100% 0, 100% 100%, 0 85%);
      overflow: hidden;
    }

    /* THIS IS THE FIX: Ensures links don't break your alignment */
.sliderLink {
  text-decoration: none;
  color: inherit;
}
    /* ===================== SLIDER DOTS ===================== */
    .sliderDots {
      position: absolute;
      bottom: 18%; 
      left: 50%;
      transform: translateX(-50%); 
      display: flex;
      gap: 12px;
      z-index: 15;
      transform-origin: center;
    }

    .dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      border: 1px solid white;
      background-color: transparent;
      cursor: pointer;
      transition: all 0.3s ease;
    }

    .dot.activeDot {
      background-color: white;
      border-color: white;
      transform: scale(1.2);
    }

    /* ===================== SLIDER WRAPPER ===================== */
    .sliderWrapper {
    display: flex;
    width: max-content;
      transition: all 2s ease-in-out;
    }

    .sliderItem { 
      width: 100vw;
      height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
    }

    .sliderImg {
      width:100%;
      height:100%;
      object-fit: cover;
      z-index: 1;
    }

    /* ===================== SLIDER TEXT ===================== */
    .sliderTagline {
      position: absolute;
      left: 0px;
      top: 170px; /* Kept your original spacing */
      
      font-size: 35px;
      font-weight: 300;
      opacity: 0.9;
      letter-spacing: 3.5px;
      text-align: right;
      margin: 0;

       width: 320px;
    }

    .sliderName {
      position: absolute;
      right: -80px;
      top: 525px; /* Kept your original spacing */
      width: fit-content; /* This fixes the underline length */

      font-size: 45px;
      font-weight: 900;
      margin: 0;
      text-align: right;
      transform: translateX(5%);
      transition: color 0.4s ease;
      display: inline-block;
    }

    /* THE UNDERLINE (Now strictly following fit-content) */
    .sliderName::after {
      content: "";
      position: absolute;
      left: 0;
      bottom: -5px;
      width: 100%;
      height: 3px;
      background-color: #F48C0F;
      transform: scaleX(0);
      transform-origin: center;
      transition: transform 0.4s ease-in-out;
    }

    .sliderName:hover::after {
      transform: scaleX(1);

    }
    .sliderName:hover {
        color: #F48C0F !important;
    }
    .sliderText {
      position: absolute;
      top: 10%;
      left: 10%;
      right: 10%;
      height: 80%; /* Gives the children a "box" to pin to */
      z-index: 2;
      color: white;

      /* We remove display: flex so they don't fight for space */
      opacity: 0;
      transform: translateY(30px);
      transition: all 0.8s ease;
    }

    .sliderItem.active .sliderText {
      opacity: 1;
      transform: translateY(0);
    }
    
    
    /* ===================== SLIDER CONTROLS ===================== */
    .sliderControls {
      position: absolute;
      top: 45%;
      width: 100%;
      display: flex;
      justify-content: space-between;
      z-index: 10;
    }

    .prev, .next {
      background-color: transparent;
      color: white;
      font-size: 50px;
      border: none;
      cursor: pointer;
      padding: 10px;
      margin-right: 25px;
      margin-left: 25px;
    }

    .prev:hover, .next:hover {
      color: lightgray;
    }

    /* ===================== FEATURES ===================== */
    .features {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
      gap: 30px;
      text-align: center;
    }

    .featuresSection {
      padding: 50px 20px;
      text-align: center;
    }

    .featuresHeader {
      font-size: 40px;
      font-weight: 900;
      margin-bottom: 30px;
      letter-spacing: 4px;
      margin-top: auto;
      color: #464C62;
      position: relative;
    }

    .featuresHeader::after {
      content: "";
      width: 60px;
      height: 3px;
      background-color: #F48C0F;
      display: block;
      margin: 10px auto 0;
    }

    .feature {
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      cursor: pointer;
      transition: transform 0.3s ease;
    }

    .feature:hover {
      transform: scale(1.1);
      color: #F48C0F;
    }

    .featureIcon {
      width: 100px;
      height: 100px;
    }

    .featureTitle {
  font-size: 20px;
  font-weight: 600;
  margin: 20px;
  color: #464C62; /* BLUE DEFAULT */
  transition: color 0.3s ease;
}

.feature:hover .featureTitle {
  color: #F48C0F; /* ORANGE ON HOVER */
}

    

    /* ===================== PRODUCT SECTION ===================== */
    .product {
      height: 100vh;
      background-color: whitesmoke;
      overflow: hidden;
      display: flex;
    }

    .productImgWrapper {
      width: 50%;
      height: 100%;
      position: relative;
    }

    .productImg {
      width: 100%;
      height: 100%;
      object-fit: cover;
      opacity: 0.9;
      transition: opacity 0.3s ease;
    }

    .productImgWrapper::after {
      content: "";
      position: absolute;
      top: 0;
      right: 0;
      width: 50%;
      height: 100%;
      background: linear-gradient(to right, rgba(255,255,255,0), whitesmoke);
    }

    .productDetails {
      width: 50%;
      padding: 80px;
      display: flex;
      flex-direction: column;
      justify-content: center;
    }

    .productTitle {
      font-size: 60px;
      font-weight: 900;
      transition: opacity 0.3s ease;
      color: #464C62;
      
    }

    .productPrice {
      font-size: 25px;
      font-weight: 500;
      color: #F48C0F;
      margin-top: 10px;
      margin-bottom: 15px;
      letter-spacing: 1px;
      transition: opacity 0.3s ease;
    }

    .productDesc {
      font-size:25px;
      font-style: 22px;
      color: gray;
      transition: opacity 0.3s ease;
    }

    /* ===================== FOOTER ===================== */
    footer.footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 30px 60px;
        background-color: white;
        border-top: 1px solid #eee;
        position: relative;
        z-index: 10;
    }

    .copyright {
        font-size: 15px; 
        color: #333;
    }

    .fIcons { 
        display: flex; 
        gap: 30px; 
        align-items: center;
    }

    .fIconItem {
        display: flex;
        align-items: center;
        gap: 10px;
        text-decoration: none;
        color: #333;
        transition: color 0.3s ease;
    }

    .fIconItem:hover {
        color: #F48C0F;
    }

    .fIcon { 
        width: 22px;
        height: 22px; 
    }

    .fLabel {
        font-family: 'Gidole';
        font-size: 0.95rem;
        letter-spacing: 0.5px;
        text-transform: none;
        cursor: pointer;
    }

    
/* ===================== MOBILE ===================== */
@media screen and (max-width: 480px) {

  nav {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 15px 20px;
    gap:4px;
    height: auto;
    background-color: transparent;
  }

  .navTop {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .logo {
    width: 180px;
    margin-bottom: 10px;
  }

  .navBottom {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    width: 100%;
    margin-right: 0;
  }

  .menuItem {
    font-size: 0.85rem;
    margin: 0;
  }

  .sliderItem {
    height: 60vh;
    position: relative;
  }

  .sliderImg {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* TEXT CONTAINER */
.sliderText {
  position: absolute;
  inset: 0;
  z-index: 5;
  color: white;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.sliderItem.active .sliderText {
  opacity: 1;
}

/* TAGLINE */
.sliderTagline {
  position: absolute;
  top: 170px; /* LOWERED MORE */
  left: 15px;

  font-size: 13px;
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: 1.5px;

  width: 150px;
  margin: 0;

  text-align: left;
}


.sliderLink {
  position: absolute;
  right: 105px;
  top: -160px;
  z-index: 20;
}

.sliderName {
  position: relative;
  font-size: 24px;
  font-weight: 900;
  margin: 0;
  text-align: right;
  width: fit-content;
  display: inline-block;
}

.sliderText {
  transform: none !important;
}

.sliderItem.active .sliderText {
  transform: none !important;
}

  .sliderControls {
    top: 35%;
  }

  .prev,
  .next {
    font-size: 32px;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .product {
    flex-direction: column;
    height: auto;
    width: 100%;
  }

  .productImgWrapper {
    width: 100%;
    height: 250px;
  }

  .productImgWrapper::after {
    background: none;
  }

  .productDetails {
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
  }

  .productTitle {
    font-size: 32px;
    margin: 10px 0;
  }

  .productPrice {
    font-size: 20px;
    margin: 6px 0 10px;
  }

  .productDesc {
    font-size: 14px;
    line-height: 1.6;
    margin: 0 auto;
    padding: 0 10px;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* MOBILE FOOTER */
  footer.footer {
    flex-direction: column;
    gap: 25px;
    text-align: center;
    padding: 30px 15px;
  }

  .footerRight { order: 1; width: 100%; }
  .footerLeft { order: 2; }

  .fIcons { 
      display: grid;
      grid-template-columns: 1fr 1fr; 
      gap: 20px 10px; 
      justify-items: center; 
      width: 100%;
      max-width: 300px; 
      margin: 0 auto;
      flex-direction: row; 
  }

  .fIconItem {
      flex-direction: column;
      align-items: center;
      gap: 8px;
      text-align: center;
  }

  .fIcon { width: 20px; height: 20px; }

  .fLabel {
      font-size: 0.8rem;
      letter-spacing: 0.5px;
      line-height: 1.2;
  }
}

@media screen and (max-width: 480px) and (min-height: 800px) {
  .sliderLink {
    top: -50px;
  }
}

/* ===================== TARGETED DEVICE FIXES ===================== */

/* 1. For tall, narrow screens like 390 x 844 (e.g., iPhone 12/13/14) */
@media screen and (max-width: 400px) and (min-height: 800px) {
  .sliderTagline {
    top: 140px !important; /* Pulled up from 170px */
  }
  .sliderLink {
    top: -90px !important; /* Adjust this to move CASA JT up or down */
  }
}

/* For shorter screens like 375 x 667 */
@media screen and (max-width: 380px) and (max-height: 700px) {
  .sliderTagline {
    top: 130px !important; /* Nudges the tagline higher (was 170px) */
  }
  .sliderLink {
    top: -200px !important; /* Makes it more negative to pull CASA JT higher */
  }
  .sliderName {
    font-size: 20px !important; /* Slightly smaller so it doesn't wrap */
  }
}


/* ===================== TABLET OPTIMIZATION (Tab S10 Ultra & Similar) ===================== */
@media screen and (min-width: 481px) and (max-width: 1200px) {
    .sliderText {
        /* Reset the top/left positions that are causing the overlap */
        top: auto !important;
        bottom: 15% !important; /* Positions it safely away from the polygon bottom */
        right: 8% !important;
        width: 350px !important;
    }

    .sliderTagline {
        font-size: 24px !important; /* Slightly smaller than desktop 35px */
        margin-bottom: 10px !important;
    }

    .sliderName {
        font-size: 38px !important; /* Slightly smaller than desktop 45px */
    }

    .sliderLink {
        /* Force reset the top positioning so the flexbox takes over */
        top: auto !important; 
    }
}


/* ===================== RAYA LIVE CHAT UNIFIED UI (BOTTOM-LEFT) ===================== */
.raya-chat-launcher {
    position: fixed;
    bottom: 30px;
    left: 30px; /* Shifted to the left */
    width: 60px;
    height: 60px;
    background-color: #F48C0F;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 10000;
    transition: transform 0.2s ease;
}
.raya-chat-launcher:hover { transform: scale(1.05); }
.raya-chat-launcher svg { width: 28px; height: 28px; fill: white; }

.raya-chat-container {
    position: fixed;
    bottom: 135px;
    left: 30px; /* Shifted to line up with the launcher */
    width: 360px;
    height: 480px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.25);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 10000;
    font-family: Arial, sans-serif;
}
.raya-chat-header {
    background-color: #464C62;
    color: white;
    padding: 15px 20px;
    font-family: 'KoHo', sans-serif;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.raya-chat-header span { font-size: 1.1rem; letter-spacing: 1px; }
.raya-chat-close { cursor: pointer; font-size: 1.3rem; opacity: 0.8; transition: opacity 0.2s; }
.raya-chat-close:hover { opacity: 1; }

.raya-chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
}
.client-setup-screen {
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
    height: 100%;
    padding: 10px;
    text-align: center;
}
.client-setup-screen p { font-size: 1rem; color: #555; margin: 0; line-height: 1.4; text-align: center; }
.client-setup-screen input {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    outline: none;
}
.client-setup-screen button {
    padding: 12px;
    background-color: #F48C0F;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
}

.raya-bubble {
    margin-bottom: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    max-width: 75%;
    font-size: 0.95rem;
    line-height: 1.4;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.bubble-client { background-color: #ffdcb3; color: #333; align-self: flex-end; }
.bubble-admin { background-color: #e1ffd4; color: #333; align-self: flex-start; }
.bubble-meta { font-size: 0.7rem; color: #777; display: block; margin-bottom: 3px; }

.raya-chat-input-wrapper { display: none; border-top: 1px solid #eee; background-color: white; }
.raya-chat-input-wrapper input { flex: 1; padding: 15px; border: none; font-size: 0.95rem; outline: none; }
.raya-chat-input-wrapper button { background-color: transparent; color: #F48C0F; border: none; padding: 0 20px; font-weight: bold; cursor: pointer; font-size: 1rem; }

/* Full screen mobile view alignment */
@media screen and (max-width: 480px) {
    .raya-chat-container { bottom: 0; left: 0; width: 100%; height: 100%; border-radius: 0; }
}

/* Mobile Responsiveness Override */
@media screen and (max-width: 480px) {
    .chat-bubble-launcher {
        left: 20px;
        bottom: 20px;
        width: 52px;
        height: 52px;
    }
    .chat-display-window {
        left: 20px;
        bottom: 85px;
        width: calc(100% - 40px);
        height: 380px;
    }
}

/* --- UNREAD NOTIFICATION BADGE --- */
.raya-chat-launcher {
    position: fixed;
    bottom: 60px;
    left: 30px;
    width: 60px;
    height: 60px;
    background-color: #F48C0F;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 10000;
    transition: transform 0.2s ease;
}

.raya-chat-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #464C62; /* Solid red notification color */
    color: white;
    font-family: 'KoHo', sans-serif;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: none; /* Hidden by default when count is 0 */
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    border: 2px solid white;
}

/* ===================== BRAND DUAL-FUNCTION ARCHITECTURE ===================== */
.mobile-services-list-view {
    display: none; /* Hidden on standard computer monitors */
    width: 100%;
}

/* RESPONSIVE RESPONDERS FOR PHONE RESOLUTIONS */
@media screen and (max-width: 480px) {
    /* 1. Turn off fixed height viewport on your mobile container frame */
    .product {
        height: auto !important;
        background-color: whitesmoke;
        display: block !important;
    }
    
    /* 2. Hide the single-swapping card component display on phones */
    .desktop-product-view {
        display: none !important;
    }
    
    /* 3. Open the full continuous scrolling list catalog layout rules */
    .mobile-services-list-view {
        display: block !important;
        padding: 10px 0;
    }
    
    .mobile-service-card {
        background: transparent;
        margin-bottom: 30px;
        border-bottom: 2px solid transparent;
        scroll-margin-top: 130px; /* Perfect offset padding so navigation bar doesn't cover text after jump link click */
    }
    
    .mob-img-frame {
        width: 100%;
        height: 240px;
        overflow: hidden;
    }
    
    .mob-img-frame img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .mob-details-frame {
        padding: 30px 20px;
        text-align: center;
    }
    
    .mob-details-frame h2 {
        font-family: 'KoHo', sans-serif;
        font-size: 26px;
        color: #464C62;
        margin: 0 0 8px 0;
    }
    
    .mob-details-frame h5 {
        font-family: 'Gidole', sans-serif;
        font-size: 16px;
        color: #F48C0F;
        margin: 0 0 15px 0;
        letter-spacing: 0.5px;
        font-weight: 500;
    }
    
    .mob-details-frame p {
        font-family: 'Gidole', sans-serif;
        font-size: 15px;
        color: gray;
        line-height: 1.6;
        margin: 0;
    }
}

