@import url("https://fonts.googleapis.com/css2?family=Playball&display=swap");

::-webkit-scrollbar {
    width: 0;
    background: transparent;
}

@font-face {
    font-family: "Playball";
    /* Name you’ll use in CSS */
    src: url("https://fonts.googleapis.com/css2?family=Playball&display=swap");
    /* Path to font */
    font-weight: normal;
    /* optional */
    font-style: normal;
    /* optional */
    font-display: swap;
    /* recommended for performance */
}

.playball {
    font-family: "Playball", cursive !important;
    padding-right: 4px;
}

@font-face {
    font-family: "HelveticaNeueBold";
    src: url("./fonts/HelveticaNeueBold.otf") format("opentype");
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

.heading-fonts {
    font-family: "HelveticaNeueBold", Arial, sans-serif !important;
}

html {
    scroll-behavior: smooth;
}

body {
    /* font-family: 'HelveticaNeueBold', Arial, sans-serif; */
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: #ffffff;
}

.script-font {
    font-family: "Great Vibes", cursive;
    font-weight: 400;
    /* Script fonts usually don't have bold weights */
    font-size: 3rem;
    /* Adjust size as needed */
    color: #f59e0b;
    /* Matches the orange color in your image */
}

/* ACTIVE FLOATING IMAGE */
#active-image {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 50;
    object-fit: cover;
    transform-origin: top left;
    will-change: transform, width, height, opacity;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    width: 0;
    height: 0;
}

/* START PLACEHOLDER (Below Text) */
#start-placeholder {
    width: 90%;
    height: 70vh;
    visibility: hidden;
    margin: auto;
}

/* TARGET SLOT (Inside Grid) */
#target-slot {
    position: relative;
    background-color: #f3f4f6;
}

/* FINAL STATIC IMAGE */
#final-static-img {
    opacity: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.1s ease;
}

/* SECTION OPACITY */
#project-section {
    opacity: 0.1;
    transition: opacity 0.1s linear;
}

/* --- 1. TEXTURES --- */
.bg-grid-soft {
    background-size: 40px 40px;
    background-image:
        linear-gradient(
            to right,
            rgba(212, 163, 115, 0.1) 1px,
            transparent 1px
        ),
        linear-gradient(
            to bottom,
            rgba(212, 163, 115, 0.1) 1px,
            transparent 1px
        );
}

.bg-noise {
    filter: contrast(120%) brightness(100%);
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.06'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

/* --- 2. CANVA-STYLE STICKER ANIMATIONS --- */
@keyframes float-sticker {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(3deg);
    }
}

@keyframes drift-sticker {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(20px, -20px) rotate(-5deg);
    }

    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

.sticker-float {
    animation: float-sticker 8s ease-in-out infinite;
}

.sticker-drift {
    animation: drift-sticker 12s ease-in-out infinite;
}

/* --- 3. PILL ANIMATION --- */
#icon-stack {
    width: fit-content;
}

.rolling-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 70px;
    width: fit-content;
    white-space: nowrap;
}

#word-stack {
    padding: 0px 15px 0px 0px;
    align-items: flex-start;
    width: fit-content;
}

#icon-stack {
    align-items: flex-start;
    width: fit-content;
}

#word-box {
    display: inline-flex;
    padding-left: 5px;
    padding-right: 17px;
    box-sizing: content-box;
    align-items: center;
    overflow: hidden;
    transition:
        width 0.4s ease,
        background-color 0.4s ease;
}
.mask-container-second,
.mask-container {
    overflow: hidden;
    height: 70px;
}

#icon-stack img {
    width: 68px;
    height: 48px;
    flex-shrink: 0;
}

.spin-icon {
    transition:
        transform 0.7s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.7s ease;
    /* transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1); */
}

/* Image animation classes */
.pill-icon-img {
    width: 24px;
    /* height: 24px; */
    margin-right: 12px;
    flex-shrink: 0;
    position: relative;
    transition: transform 0.6s ease;
    opacity: 1;
    transform: translateY(0);
}

.pill-icon-img.exit {
    transform: translateY(-20px);
}

.pill-icon-img.enter {
    transform: translateY(20px);
}

/* UPDATED GRADIENT: Matches the Left(Orange) -> Right(Black) reference image */
.custom-gradient {
    /* background: linear-gradient(90deg, #D95415 0%, #8f2d05 40%, #000000 85%); */
    background-image: url("../images/cts-bg.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}

/* Smooth Accordion CSS */
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition:
        max-height 0.4s ease-in-out,
        opacity 0.4s ease-in-out;
    opacity: 0;
}

.faq-content.open {
    opacity: 1;
}

/* Icon Rotation Transition */
.icon-container svg {
    transition: transform 0.3s ease;
}

.list-style-type {
    list-style-type: disclosure-closed;
}

/* Base styles for all sticky cards */
.video-sticky-cards {
    position: sticky;
    z-index: 10;
    transition: all 0.3s ease-in-out;
}

/* Specific sticky positions for each card */
.video-sticky-cards:nth-child(1) {
    top: 80px;
    margin-bottom: 120px;
}

.video-sticky-cards:nth-child(2) {
    top: 100px;
    margin-bottom: -20px;
}

.video-sticky-cards:nth-child(3) {
    top: 100px;
    margin-bottom: 120px;
}

/*Testimonial*/
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Smooth Transition for the slider track.
           Using cubic-bezier for that premium "Apple-like" easing.
        */
.slider-transition {
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.grid-section-heading {
    position: relative;
    top: -80px;
    padding: 10px;
    z-index: 48;
    /* margin-bottom: 130px; */
}

.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #1c1a24;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 50;

    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: all 0.3s ease;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.arrow {
    position: absolute;
    color: #fff;
    font-size: 14px;
    line-height: 1;
}

.progress-ring {
    position: absolute;
    transform: rotate(-90deg);
}

.progress-ring__circle {
    stroke-dasharray: 163;
    /* circumference */
    stroke-dashoffset: 163;
    transition: stroke-dashoffset 0.2s linear;
}
@media (min-width: 1673px) {
    .sticky-viewport {
        height: 90vh !important;
    }
    .video-margin-top {
        margin-top: 0px !important;
    }
}
@media (max-width: 1672px) and (min-width: 1536px) {
    .sticky-viewport {
        height: 90vh !important;
    }
    .video-margin-top {
        margin-top: 160px !important;
    }
}

@media (max-width: 1535px) and (min-width: 1335px) {
    .sticky-viewport {
        height: 90vh !important;
    }
    .video-margin-top {
        margin-top: 100px !important;
    }
}
@media (max-width: 1334px) and (min-width: 1024px) {    
    .video-margin-top {
        margin-top: 70px !important;
    }
}

@media (max-width: 991px) and (min-width: 768px) {
    .sticky-viewport {
        height: 80vh !important;
    }
    .bento-container {
        height: 600px !important;
    }
}
@media (max-width: 991px) and (min-width: 320px) {
    .color-capsule {
        width: 190px !important;
        height: 80px !important;
        border-radius: 10px !important;
        margin: 0 auto !important;
    }

   /* .color-parent-card .palette-card {
        width: 100px !important;
        height: 70px !important;
        margin: 0 auto !important;
    } */
}

@media (max-width: 767px) and (min-width: 320px) {
    .word-item {
        position: absolute;
        top: 9px;
    }

    #word-box {
        height: 60px !important;
        padding-right: 0px !important;
    }
    .mask-container {
        width: 27%;
    }
    .mask-container-second {
        width: 67% !important;
    }
    /* #word-box {
        width: 100% !important;
    }
    #icon-stack {
        width: 30% !important;
    }
    #word-stack {
        width: 70% !important;
    } */
    /* #icon-stack {
        width: 30% !important;
    } */
    #pill-container {
        height: 70px;
    }

    #icon-stack img {
        width: 42px;
        height: 38px;
    }
}

@media (max-width: 767px) and (min-width: 320px) {
    .word-item {
        position: absolute;
        top: 18px;
    }

    #pill-container {
        height: 70px;
    }

    #pill-icon {
        transition:
            transform 0.6s ease,
            opacity 0.3s ease;
        width: 50px;
        padding-right: 10px;
    }

    .template-grid-cards {
        position: sticky !important;
        top: 80px;
    }
}

/* --- 3. PILL ANIMATION UPDATED --- */
#pill-container {
    transition: width 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    will-change: width;
    display: inline-flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    /* Zaroori hai taaki exit items bahar na dikhein */
}

/* Common animation logic for both Image and Text */
.pill-icon-img,
.word-item {
    transition:
        transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.6s ease;
    opacity: 0;
    pointer-events: none;
}

/* Icon specific sizing */
.pill-icon-img {
    width: 32px;
    /* Sizing adjust kariye zaroorat anusar */
    margin-right: 12px;
    flex-shrink: 0;
}

/* --- ANIMATION STATES --- */

.pill-icon-img.active,
.word-item.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.pill-icon-img.exit,
.word-item.exit {
    opacity: 0;
    transform: translateY(-120%);
    /* Percentage use karne se responsive rehta hai */
}

.pill-icon-img.enter,
.word-item.enter {
    opacity: 0;
    transform: translateY(120%);
}

/* --- MOBILE RESPONSIVENESS FIX --- */
@media (max-width: 767px) {
    .pill-icon-img {
        width: 28px;
    }

    .video-sticky-cards {
        margin-bottom: 20px;
    }

    .video-sticky-cards:nth-child(1) {
        margin-bottom: 200px;
    }

    .video-sticky-cards:nth-child(2) {
        margin-bottom: 200px;
    }

    .video-sticky-cards:last-child {
        margin-bottom: 20px;
    }
}

/* Custom scrollbar for a cleaner look */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.bento-container {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr 0.8fr;
    gap: 12px;
    width: 120%;
    margin-left: -10%;
    height: 400px;
}

/* mute button styles */
.vimeo-mute-btn {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    border: none;
    padding: 7px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    z-index: 48;
    pointer-events: auto;
    transition: background 0.15s;
}

.vimeo-mute-btn:hover {
    background: rgba(0, 0, 0, 0.85);
}

.vimeo-mute-btn.unmuted {
    background: rgba(255, 255, 255, 0.95);
    color: #000;
}

/* keep iframe below the button */
iframe[data-vimeo-embed] {
    z-index: 1;
    position: relative;
    display: block;
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
    /* full screen height */
    overflow: hidden;
}

.vimeo-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    /* important */
    border: none;
}

/* mobile fix */
@media (max-width: 767px) {
    .video-wrapper {
        height: 50vh;
    }
}

@media (max-width: 991px) and (min-width: 768px) {
    .video-wrapper {
        height: 70vh;
    }
}

/* how it works  */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.animate-scroll {
    display: flex;
    width: max-content;
    animation: scroll 20s linear infinite;
}

/* Hide scrollbar but keep functionality */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

/* Row 1: Moving Right to Left */
@keyframes marqueeLeft {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Row 2: Moving Left to Right */
@keyframes marqueeRight {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

.animate-marquee-left {
    animation: marqueeLeft 40s linear infinite;
}

.animate-marquee-right {
    animation: marqueeRight 40s linear infinite;
}

/* Pause on hover for better UX */
.animate-marquee-left:hover,
.animate-marquee-right:hover {
    animation-play-state: paused;
}
.mask-container {
    width: 23%;
}
.mask-container-second {
    width: 79%;
}
/* .icon-stack {
    width: 30%;
} */

/* Hero content must always stay on top */
.hero-content {
    position: relative;
    z-index: 100;
    pointer-events: auto;
}

/* Image animation layer */
#main-image {
    z-index: 10;
    pointer-events: none;
    will-change: transform, width, height;
}

/* Prevent fixed stacking glitches */
.sticky-viewport {
    position: relative;
    height: 100vh;
    /* overflow: hidden; */
}

#scroll-section {
    position: relative;
    /* min-height: 220vh; */
}

.dark\:bg-gray-800 {
    @media (prefers-color-scheme: dark) {
        background-color: oklch(1 0 0) !important;
    }
}
.dark\:border-gray-600 {
    @media (prefers-color-scheme: dark) {
        border-color: oklch(0.76 0.17 57.56 / 0.36) !important;
    }
}
.dark\:text-gray-300 {
    @media (prefers-color-scheme: dark) {
        color: #56595d !important;
    }
}

.dropdown-item {
    @apply flex items-center gap-3 px-5 py-2 text-gray-700 hover:bg-gray-100 cursor-pointer;
}

.dropdown-item i svg {
    width: 16px;
    height: 16px;
}
.faq-item.hidden {
    display: none;
}
/* Hide scrollbar for Chrome, Safari and Opera */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.no-scrollbar {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

#bento-grid div img,
#bento-grid div video {
    object-position: top;
    /* This ensures the portrait images don't stretch */
    object-fit: cover;
}
::-webkit-scrollbar-thumb,
::-webkit-scrollbar-track {
    background: #cacccd !important;
    border-radius: 5px !important;
    scrollbar-width: thin !important;
}
ul.custom-list {
    list-style: none;
    padding-left: 0;
}

ul.custom-list li::before {
    content: "▸";
    margin-right: 8px;
}
.colors-debar-width {
    max-width: 430px;
}
.bg-video-howit-work{
    background-image: url('../images/how-it-work-bg-video.png');
    height: 100%;
    width: 100%;
    background-size: cover;
    background-position: center;
}
.video-text-howitwork{
    left: 50%;
    margin-left: -480px;
    z-index: 10;
    top:15%;
}
@media (min-width:768px) and (max-width:991px){
    .video-text-howitwork{
        left: 50%;
        margin-left: -350px;
        z-index: 10;
        top:15%;
        width: 700px;
    }
}
@media (max-width:767px){
    .video-text-howitwork{
        left: 50%;
        margin-left: -50%;
        z-index: 10;
        top:10%;
        width: 100%;
    }
}
