.workSection-title h1 ,.title h3{
    font-size: 2.5rem; 
    font-weight: 700;
    color: --var(--color-primary-dark, #1e293b);
    margin: 0;
    position: relative !important;
    padding-left: 60px !important; /* space for blocks */
    line-height: 1.2;
}

/* big soft block */
.workSection-title h1::before ,.title h3::before,.fun-fact-content h3::before {
    content: '';
    position: absolute;
    width: 50px;
    height: 50px;
    background: var(--priMayy-color2);
    border-radius: 8px;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 0;
}

/* small overlapping block */
.workSection-title h1::after ,.title h3::after ,.fun-fact-content h3::after {
       content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    background: #ccf4ff;
    border-radius: 4px;
    left: 30px;
    top: calc(60% - 40px);
    z-index: 0;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
}

        .workSection-title { text-align: left; margin-bottom: 50px; }
        .workSection-title h1 { font-size: 2.5rem; color: #1e293b; margin-bottom: 10px; position: relative;}
        .workSection-title p,.journey-area .title p { color: #64748b; font-size: 1.1rem;  padding-left: 60px !important; }

        /* Masonry Grid */
        .workSection-masonry {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 24px;
            position: relative;
            grid-auto-rows: minmax(auto, auto);
        }

        /* Card Base */
        .workSection-card {
            background: white;
            border-radius: 16px;
            /* IMPORTANT: allow popup to render above neighbors */
            overflow: visible;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
            cursor: pointer;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            opacity: 0;
            transform: translateY(60px);
            position: relative;
            display: flex;
            flex-direction: column;
        }

        /* Fixed Heights */
        .workSection-card:nth-child(1) { height: 280px; }
        .workSection-card:nth-child(2) { height: 360px; }
        .workSection-card:nth-child(3) { height: 280px; }
        .workSection-card:nth-child(4) { height: 360px;margin-top: -80px; }
        .workSection-card:nth-child(5) { height: 280px; }
        .workSection-card:nth-child(6) { height: 360px;margin-top: -80px; }

        .workSection-card.workSection-animate { opacity: 1; transform: translateY(0); }
        .workSection-card:hover:not(.expanded) {
            transform: translateY(-4px) scale(1.01);
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
        }
        .workSection-card.expanded { z-index: 100; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25); }

        /* Card Image */
        .workSection-card-image {
            height: 70%;
            background: url('https://html.vikinglab.agency/staffx/assets/img/all-images/projects/project-img1.png');
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            color: transparent;
            font-size: 1.2rem;
            font-weight: 600;
            transition: all 0.4s ease;
            border-top-left-radius: 16px;
            border-top-right-radius: 16px;
        }
        .workSection-card:nth-child(2) .workSection-card-image { background: url('https://html.vikinglab.agency/staffx/assets/img/all-images/projects/project-img2.png'); }
        .workSection-card:nth-child(3) .workSection-card-image { background:url('https://html.vikinglab.agency/staffx/assets/img/all-images/projects/project-img3.png'); }
        .workSection-card:nth-child(4) .workSection-card-image {background:url('https://html.vikinglab.agency/staffx/assets/img/all-images/projects/project-img4.png');  }
        .workSection-card:nth-child(5) .workSection-card-image { background:url('https://html.vikinglab.agency/staffx/assets/img/all-images/projects/project-img5.png');  }
        .workSection-card:nth-child(6) .workSection-card-image { background:url('https://html.vikinglab.agency/staffx/assets/img/all-images/projects/project-img6.png');  }

        /* Card Text */
        .workSection-card-content {
            padding: 12px 16px;
            height: 30%;
            display: flex;
            flex-direction: column;
            justify-content: center;
            border-bottom-left-radius: 16px;
            border-bottom-right-radius: 16px;
        }
        .workSection-card-title { font-size: 1rem; font-weight: 600; color: #1e293b; line-height: 1.3; }

        .workSection-arrow {
            position: absolute; top: 16px; right: 16px;
            background: rgba(255, 255, 255, 0.9);
            border-radius: 50%; width: 32px; height: 32px;
            display: flex; align-items: center; justify-content: center;
            transition: all 0.3s ease; opacity: 1;
        }
        .workSection-card:hover .workSection-arrow { background: rgba(255, 255, 255, 1); transform: scale(1.1); }
        .workSection-card.expanded .workSection-arrow { opacity: 0; }

        /* Popup (Book) */
        .workSection-book-content {
            position: absolute; top: 0; left: 0;
            width: 200%; height: 100%;
            background: white; border-radius: 16px;
            display: flex;
            opacity: 0; visibility: hidden;
            z-index: 9999; /* ensure on top */
            overflow: visible;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
        }
        .workSection-card.expanded .workSection-book-content { opacity: 1; visibility: visible; }

        /* Hide base content when expanded */
        .workSection-card.expanded .workSection-card-image,
        .workSection-card.expanded .workSection-card-content { opacity: 0; }

        /* Book Left (visual panel) */
        .workSection-book-left {
            width: 50%;
            display: flex; align-items: center; justify-content: center;
            color: transparent; font-size: 1.3rem; font-weight: 600;
            border-radius: 16px 0 0 16px;
            transform: rotateY(-20deg);
            transform-origin: right center;
            transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
        }
        .workSection-card.expanded .workSection-book-left { transform: rotateY(0deg); }

        /* Book Right (text panel) */
        .workSection-book-right {
            width: 50%;
            padding: 20px;
            display: flex; flex-direction: column; justify-content: center;
            position: relative; background: white;
            border-radius: 0 16px 16px 0;
            opacity: 0;
            transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
        }
        .workSection-card.expanded .workSection-book-right { opacity: 1; }

        /* Directional animations */
        /* Cards 1 & 4: slide from left to right */
        .workSection-card:nth-child(1) .workSection-book-content,
        .workSection-card:nth-child(4) .workSection-book-content {
            left: 0; transform: translateX(-100%);
            transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
        }
        .workSection-card:nth-child(1).expanded .workSection-book-content,
        .workSection-card:nth-child(4).expanded .workSection-book-content { transform: translateX(0); }

        /* Card 3 & 6: slide from right to left */
        .workSection-card:nth-child(3) .workSection-book-content,
        .workSection-card:nth-child(6) .workSection-book-content {
            left: -100%; transform: translateX(100%);
            transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
        }
        .workSection-card:nth-child(3).expanded .workSection-book-content,
        .workSection-card:nth-child(6).expanded .workSection-book-content { transform: translateX(0); }

        /* Card 2 & 5: slide vertically (already top/bottom motion) */
        .workSection-card:nth-child(2) .workSection-book-content {
            left: 0; transform: translateY(-100%);
            transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
        }
        .workSection-card:nth-child(2).expanded .workSection-book-content { transform: translateY(0); }

        .workSection-card:nth-child(5) .workSection-book-content {
            left: 0; transform: translateY(100%);
            transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
        }
        .workSection-card:nth-child(5).expanded .workSection-book-content { transform: translateY(0);margin-top: -112px !important; }

        /* CLOSE button */
        .workSection-close {
            position: absolute; top: 12px; right: 12px;
            background: rgba(0, 0, 0, 0.1); border: none; border-radius: 50%;
            font-size: 18px; cursor: pointer; color: #64748b;
            transition: all 0.2s ease; z-index: 20;
            width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
        }
        .workSection-close:hover { background: rgba(239, 68, 68, 0.1); color: #e11d48; }

        .workSection-popup-title { font-size: 1.2rem; font-weight: 700; color: #1e293b; margin-bottom: 10px; line-height: 1.3; }
        .workSection-popup-content {     color: rgb(11 32 62);
    font-family: "open sans", sans-serif;
    font-size: 14px;
    line-height: 25px;
 margin-bottom: 16px; flex-grow: 1; }

        .workSection-cta {
            background: linear-gradient(135deg, #2563eb 0%, #1e40af 50%, #1d4ed8 100%);
            color: white; border: none; padding: 8px 16px; border-radius: 6px;
            font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: all 0.3s ease; align-self: flex-start;
        }
        .workSection-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4); }

        /* -------- OVERRIDES FOR CARD 2 & 5: vertical book layout -------- */
        .workSection-card:nth-child(2) .workSection-book-content,
        .workSection-card:nth-child(5) .workSection-book-content {
            /* Stack top/bottom */
            flex-direction: column;
            width: 100% !important;  /* use full card width */
            height: 140%;            /* double height for top+bottom reveal */
        }

        .workSection-card:nth-child(2) .workSection-book-left,
        .workSection-card:nth-child(5) .workSection-book-left {
            width: 100%; height: 50%;
            border-radius: 16px 16px 0 0;
            /* remove horizontal page flip for vertical layout */
            transform: none; transform-origin: center;
        }

        .workSection-card:nth-child(2) .workSection-book-right
        {
            width: 100%; height: 50%;
            border-radius: 0 0 16px 16px;
            padding: 20px;
        }
         .workSection-card:nth-child(5) .workSection-book-right {
            width: 100%; height: 70%;
            border-radius: 0 0 16px 16px;
            padding: 20px;
        }
        /* --------------------------------------------------------------- */

        /* Responsive */
        @media (max-width: 900px) {
            .workSection-title p, .journey-area .title p
{
       padding-left: 40px !important; /* space for blocks */
}
           .journey-area.ptb-60
           {
               padding-top: 60px !important;
           } 
.workSection-title h1, 
.title h3, 
.fun-fact-area .fun-fact-content h3 {
    font-size: 22px !important;
    line-height: 30px;
    margin-bottom: 5px !important;
    font-weight: 700;
    color: var(--color-primary-dark, #1e293b);
    margin: 0;
    position: relative !important;
    padding-left: 40px !important;
}

/* Before */
.workSection-title h1::before, 
.title h3::before, 
.fun-fact-content h3::before {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    background: var(--priMayy-color2);
    border-radius: 8px;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 0;
}

/* After */
.workSection-title h1::after, 
.title h3::after, 
.fun-fact-content h3::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    background: #ccf4ff;
    border-radius: 4px;
    left: 15px;
    top: 25%;
    transform: translateY(-50%);
    z-index: 0;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
}

            .workSection-masonry { grid-template-columns: repeat(2, 1fr); gap: 20px; }
            .workSection-card { height: 240px !important; }

            .workSection-book-content { width: 150%; flex-direction: column; }
          .workSection-book-right { width: 100%; height: 100% !important; }
            .workSection-book-left { border-radius: 16px 16px 0 0; }
            .workSection-book-right { border-radius: 0 0 16px 16px; padding: 16px; }

            .workSection-popup-title { font-size: 1.1rem; }
            .workSection-popup-content { font-size: 0.8rem; }

            /* Simplified animations for mobile (all vertical) */
            .workSection-card .workSection-book-content { transform: translateY(-100%) !important; left: 0 !important; }
            .workSection-card.expanded .workSection-book-content { transform: translateY(0) !important; }
        }

        @media (max-width: 600px) {
            .workSection-masonry { grid-template-columns: 1fr; gap: 16px; }
            .workSection-card { height: 200px !important; }
            .workSection-book-content { width: 100%; }
            .workSection-book-right { padding: 12px; }
        }
    
        /* Corner Animation System - Preserves original + adds scroll animations */
        .workSection-card.scroll-from-corner {
            transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }

        .workSection-container.scroll-hidden .workSection-card:nth-child(1) {
            transform: translate(-100px, -100px) scale(0.8);
            opacity: 0.3;
        }
        .workSection-container.scroll-hidden .workSection-card:nth-child(2) {
            transform: translateY(-100px) scale(0.8);
            opacity: 0.3;
        }
        .workSection-container.scroll-hidden .workSection-card:nth-child(3) {
            transform: translate(100px, -100px) scale(0.8);
            opacity: 0.3;
        }
        .workSection-container.scroll-hidden .workSection-card:nth-child(4) {
            transform: translate(-100px, 100px) scale(0.8);
            opacity: 0.3;
        }
        .workSection-container.scroll-hidden .workSection-card:nth-child(5) {
            transform: translateY(100px) scale(0.8);
            opacity: 0.3;
        }
        .workSection-container.scroll-hidden .workSection-card:nth-child(6) {
            transform: translate(100px, 100px) scale(0.8);
            opacity: 0.3;
        }

        .workSection-container.scroll-visible .workSection-card {
            transform: translateY(0) scale(1);
        }
   /* Success Metrics Ticker styles */
.success-metrics-ticker.hero-ticker {
      margin-top: 18px;
      max-width: 440px;
      
      width: 100%;
      /* Original gradient colors */
      background: linear-gradient(90deg, #06beb6 0%, #f9ea8f 100%);
      color: #222;
      font-size: 0.95rem;
      font-weight: 650;
      border-radius: 25px;
      box-shadow: 0 3px 20px rgba(31, 72, 128, 0.12);
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 12px 28px;
      position: relative;
      animation: ticker-slide-in 0.8s cubic-bezier(.7,.1,.28,.99) both;
      z-index: 2;
      overflow: hidden;
    }

    @keyframes ticker-slide-in {
      from {
        transform: translateY(40px) scale(0.85);
        opacity: 0;
      }
      70% {
        transform: translateY(-3px) scale(1.02);
        opacity: 0.98;
      }
      to {
        transform: translateY(0px) scale(1);
        opacity: 1;
      }
    }

    .ticker-icon {
      font-size: 1.3em;
      animation: icon-pulse 2s ease-in-out infinite;
      flex-shrink: 0;
    }

    @keyframes icon-pulse {
      0%, 100% {
        transform: scale(1);
      }
      50% {
        transform: scale(1.1);
      }
    }

    .ticker-text {
      flex: 1;
      white-space: nowrap;
      overflow: hidden;
      animation: ticker-fadein 1s ease-out;
      transition: all 0.5s ease-in-out;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    @keyframes ticker-fadein {
      from {
        opacity: 0;
        transform: translateX(-30px);
      }
      to {
        opacity: 1;
        transform: translateX(0);
      }
    }

    /* Text fade out animation */
    .ticker-text.fade-out {
      opacity: 0;
      transform: translateX(30px);
    }

    /* Responsive adjustments */
    @media (max-width: 768px) {
      .success-metrics-ticker.hero-ticker {
        max-width: 350px;
        font-size: 0.9rem;
        padding: 10px 24px;
      }
      .workSection-container.scroll-visible .workSection-card
      {
          height: 290px !important;
          margin-top: 0px !important;
      }
      .teams-area
      {
              padding: 0px 0px 05px 0px !important;
      }
      

.workSection-title {
    text-align: left;
    margin-bottom: 20px;
}
    }
    /* latest css for video card and stat box */
    /* Video Card */
    .card { position:absolute; border-radius:1.5rem; overflow:hidden; cursor:pointer; }
    .video-card {
      bottom:3rem; left:3rem; width:20rem; height:12rem;
      background:linear-gradient(135deg,#e8f0ff,#d1e7ff,#bfdbfe);
      box-shadow:0 20px 50px rgba(31,72,128,0.15);
      display:flex; flex-direction:column; justify-content:center; align-items:center;
    }
    @media (max-width: 1600px) and (min-width: 1400px) {
        .video-card {
      bottom:1rem; left:3rem; width:20rem; height:10rem;}
    }
    .video-card::before {
      content:''; position:absolute; inset:0;
      background:radial-gradient(circle at 30% 30%,rgba(99,102,241,0.1),transparent);
      animation:shimmer 3s infinite;
    }
    .play-btn {
      width:4rem; height:4rem; background:rgba(255,255,255,0.9);
      border:none; border-radius:50%; font-size:2rem; color:#4f46e5;
      display:flex; align-items:center; justify-content:center;
      box-shadow:0 8px 25px rgba(79,70,229,0.3);
      animation:playPulse 2s infinite; transition:all .4s;
    }
    .play-btn:hover {
      background:linear-gradient(135deg,#4f46e5,#6366f1); color:#fff;
      transform:scale(1.15) rotate(5deg);
      box-shadow:0 15px 40px rgba(79,70,229,0.5);
    }
    .video-text {
      margin-top:1rem; text-align:center;
      color:#374151; font-size:.9rem; font-weight:600; line-height:1.4;
      max-width:90%;
    }

    /* Stats Card */
    .stats-card {
      top:14rem; right:6rem; width:16rem; height:8rem;
      background:linear-gradient(135deg,#f8faff,#e8f0ff,#dbeafe);
      box-shadow:0 20px 50px rgba(31,72,128,0.12);
      animation:slideInRight 1.2s ease-out 0.8s both;
    }
    .stats-card::before {
      content:''; position:absolute; inset:-100% 0 0 -100%;
      background:conic-gradient(from 0,#0000,#6366f121,#0000);
      animation:rotateBack 10s linear infinite;
    }
    .stats-num {
      position:relative; top:0rem; text-align:center;
      font-size:4rem; font-weight:800;
      background:linear-gradient(135deg,#6366f1,#8b5cf6,#06b6d4);
      -webkit-background-clip:text; color:transparent;
      text-shadow:0 4px 12px rgba(99,102,241,0.3);
      animation:countUp 2s ease-out 1.5s both;
    }
    .stats-desc {
      position:relative; top:-1rem; text-align:center;
      color:#4b5563; font-size:1.1rem; font-weight:600;
      animation:fadeUp 1s ease-out 1.8s both;
    }

    /* Particle */
    .particle {
      position:absolute; width:6px; height:6px; border-radius:50%;
      background:rgba(79,70,229,0.8); mix-blend-mode:screen;
      pointer-events:none; will-change:transform,opacity;
    }

    /* Keyframes */
    @keyframes slideUp { from{opacity:0;transform:translateY(60px);} to{opacity:1;transform:translateY(0);} }
    @keyframes enterTicker {
      from{opacity:0;transform:translateY(50px) scale(0.8) rotateX(20deg);} to{opacity:1;transform:translateY(0) scale(1) rotateX(0);}
    }
    @keyframes shiftGradient {0%,100%{background-position:0% 50%;}50%{background-position:100% 50%;}}
    @keyframes iconDance {0%,100%{transform:scale(1)rotate(0);}25%{transform:scale(1.2)rotate(-10deg);}75%{transform:scale(1.15)rotate(10deg);}}
    @keyframes shimmer {0%,100%{opacity:0.3;}50%{opacity:0.7;}}
    @keyframes playPulse {
      0%,100%{box-shadow:0 8px 25px rgba(79,70,229,0.3),0 0 0 0 rgba(79,70,229,0.1);}
      50%{box-shadow:0 8px 25px rgba(79,70,229,0.4),0 0 0 20px rgba(79,70,229,0);}
    }
    @keyframes slideInRight {from{opacity:0;transform:translateX(150px)scale(0.8);}to{opacity:1;transform:translateX(0)scale(1);}}
    @keyframes rotateBack {to{transform:rotate(360deg);}}
    @keyframes countUp {from{transform:scale(0.5)rotateY(180deg);opacity:0;}to{transform:scale(1)rotateY(0);opacity:1;}}
    @keyframes fadeUp {from{opacity:0;transform:translateY(20px);}to{opacity:1;transform:translateY(0);}}

    /* CSS: Hero ke background element ko parallax-ready banayein */
.hero {
  position: relative;
  overflow: hidden;
  perspective: 1px;            /* very small perspective to exaggerate depth */
  perspective-origin: center;
}
.hero-content,
.stairs-wrapper,
.video-card,
.stats-card {
  transform-style: preserve-3d; /* ensure 3D transforms apply */
}

/* Optional: background layer agar aap image use karna chahte hain */
.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  left: 0;
  width: 100%;
  height: 140%;
 
  transform: translateZ(-1px) scale(2);  /* moves slower than foreground */
  z-index: -1;
}


 .teams-area {
     padding: 60px 0px 05px 0px;
 }
   
    .swiper { padding-bottom: 25px;padding-top: 25px; }
    .swiper-slide { display: flex; justify-content: center; }
    .teams-card {
      background: #fff;
      border-radius: 16px;
      box-shadow: 0 4px 16px rgba(35,30,84,0.08);
      width: 290px; 
      margin: 0 16px;
      display: flex; flex-direction: column; justify-content: space-between;
      transition: transform .24s, box-shadow .24s;
      border-left: 6px solid; padding: 20px 24px;
    }
    .teams-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 8px 28px rgba(35,30,84,0.12);
    }
    .top-row { display: flex; align-items: center; gap: 12px;margin-bottom: 15px; }
    .industry-icon { width: 28px; height: 28px; flex-shrink: 0; }
    .title { font-size: 1.18rem; font-weight: 600; margin: 0; color: #232950; }
    .details-row {
      display: flex; align-items: center; justify-content: space-between;
      border-top: 1px solid #e3e5ec; padding-top: 14px;
    }
    .jobs { font-size: 1rem; color: #232950; }
    .jobs .count { color: #009688; font-weight: 600; }
    .jobs .location { color: #3573e2; font-weight: 600; }
    .arrow-btn {
      width: 36px; height: 36px;
      display: flex; align-items: center; justify-content: center;
      border-radius: 50%; border: 2px solid #ececec; background: #fff;
      transition: background .2s, border-color .2s; text-decoration: none;
    }
    .arrow-btn:hover {
      background: #3573e2; border-color: #3573e2;
    }
    .arrow-btn svg {
      width: 18px; height: 18px; stroke: #3573e2; stroke-width:1.5;
      transition: stroke .2s;
    }
    .arrow-btn:hover svg { stroke: #fff; }
    /* colored left borders */
    .business    { border-color: #009688; }
    .care        { border-color: #FFE0AC; }
    .engineering { border-color: #A0CED9; }
    .marketing   { border-color: #D4A5A5; }
    .technology  { border-color: #BEE3DB; }
    .education   { border-color: #FDE2E4; }
    /* Swiper controls */
    .swiper-button-next, .swiper-button-prev {
      color: #3573e2; background: #fff; border-radius: 50%;
      box-shadow: 0 2px 8px rgba(35,30,84,0.1); width: 36px; height: 36px;
    }
    .swiper-button-next:hover, .swiper-button-prev:hover {
      background: #3573e2; color: #fff;
    }
    .swiper-button-next:after, .swiper-button-prev:after {
      font-size: 18px; font-weight: 600;
    }
    .swiper-pagination-bullet {
      background: #d4d8e5!important; opacity: .45;
    }
    .swiper-pagination-bullet-active {
      background: #3573e2!important; opacity: 1;
    }
    /* Move arrows further away from cards - adjust as needed (e.g., 40px) */
.swiper-button-next {
  right: -40px !important;
}
.swiper-button-prev {
  left: -40px !important;
}
/* You can tweak the value (-40px, -50px, etc.) for your desired gap */

    @media (max-width: 960px) { .teams-card { width: 85vw; } }
    @media (max-width: 600px) {
      .teams-card { width: 90vw; }
      .swiper-button-next, .swiper-button-prev { display: none; }
    }

     .gradient-word {
            /* Define the linear gradient using the Stafforri logo colors */
            background: linear-gradient(to right, #43a1d9, #009344);

            /* Clip the background to the text area */
            -webkit-background-clip: text;
            background-clip: text;

            /* Make the text transparent so the background gradient shows through */
            -webkit-text-fill-color: transparent;
            text-fill-color: transparent;
        }
       
  .fun-fact-card {
        background: var(--color-white, #ffffff);
        border-radius: 16px;
        
        text-align: center;
        transition: all 0.35s ease-in-out;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
        position: relative;
        overflow: hidden;
    }

    /* Hover effect */
    .fun-fact-card:hover {
        transform: translateY(-8px) scale(1.05);
        box-shadow: 0 10px 24px rgba(0,0,0,0.18);
    }

    /* Floating background effect */
    .fun-fact-card::before {
        content: "";
        position: absolute;
        top: -40%;
        left: -40%;
        width: 180%;
        height: 180%;
        background: radial-gradient(circle at center, rgba(0,123,255,0.08), transparent 70%);
        transform: rotate(25deg);
        transition: all 0.5s ease;
    }
    .fun-fact-card:hover::before {
        top: -20%;
        left: -20%;
        background: radial-gradient(circle at center, rgba(0,123,255,0.15), transparent 70%);
    }

  .rotating-image {
            
            animation: rotateImage 40s infinite linear; /* Rotate animation */
            /* Add this to maintain the original aspect ratio if the image is not square */
            object-fit: contain;
        }

        @keyframes rotateImage {
            from {
                transform: rotate(0deg); /* Start at 0 degrees */
            }
            to {
                transform: rotate(360deg); /* Rotate a full 360 degrees */
            }
        }
        

        /* Connect Form Modal Styles */
.connect-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.connect-modal-content {
  background: #ffffff;
  border-radius: 12px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.connect-modal-header {
  padding: 25px 30px 20px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.connect-modal-header h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  color: #1f2937;
}

.connect-modal-close {
  font-size: 28px;
  cursor: pointer;
  color: #6b7280;
  line-height: 1;
  transition: color 0.2s ease;
}

.connect-modal-close:hover {
  color: #ef4444;
}

.connect-modal-body {
  padding: 30px;
}

.connect-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.connect-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.connect-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.connect-form-group label {
  font-weight: 500;
  color: #374151;
  font-size: 14px;
}

.connect-form-group input,
.connect-form-group textarea {
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
}

.connect-form-group input:focus,
.connect-form-group textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.connect-form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* File Upload Styles */
.file-upload-area {
  border: 2px dashed #d1d5db;
  border-radius: 8px;
  padding: 30px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.file-upload-area:hover {
  border-color: #3b82f6;
  background-color: #f8fafc;
}

.file-upload-area.dragover {
  border-color: #3b82f6;
  background-color: #eff6ff;
}

.file-upload-area input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.file-upload-text {
  pointer-events: none;
}

.upload-icon {
  font-size: 32px;
  display: block;
  margin-bottom: 10px;
}

.file-upload-text p {
  margin: 0 0 5px 0;
  color: #6b7280;
  font-size: 14px;
}

.browse-text {
  color: #3b82f6;
  font-weight: 500;
}

.file-upload-text small {
  color: #9ca3af;
  font-size: 12px;
}

.file-list {
  margin-top: 10px;
}

.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background-color: #f3f4f6;
  border-radius: 6px;
  margin-bottom: 8px;
  font-size: 13px;
}

.file-item-name {
  color: #374151;
  font-weight: 500;
}

.file-item-remove {
  color: #ef4444;
  cursor: pointer;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.file-item-remove:hover {
  background-color: #fef2f2;
}

/* Form Actions */
.connect-form-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

.connect-btn-primary,
.connect-btn-secondary {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 120px;
}

.connect-btn-primary {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
}

.connect-btn-primary:hover {
  background: linear-gradient(135deg, #2563eb, #1e40af);
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.connect-btn-secondary {
  background: #f9fafb;
  color: #6b7280;
  border: 1px solid #d1d5db;
}

.connect-btn-secondary:hover {
  background: #f3f4f6;
  color: #374151;
}

/* Responsive Design */
@media (max-width: 768px) {
  .connect-modal {
    padding: 10px;
  }
  
  .connect-modal-content {
    max-height: 95vh;
  }
  
  .connect-modal-header,
  .connect-modal-body {
    padding: 20px;
  }
  
  .connect-form-row {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .connect-form-actions {
    flex-direction: column-reverse;
  }
  
  .connect-btn-primary,
  .connect-btn-secondary {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .connect-modal-header h2 {
    font-size: 20px;
  }
  
  .connect-modal-header,
  .connect-modal-body {
    padding: 15px;
  }
  
  .file-upload-area {
    padding: 20px 15px;
  }
}
.fun-fact-card {
  position: relative;
}

.blinking-dot {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 10px;
  height: 10px;
  background-color: #28a745;
  border-radius: 50%;
  opacity: 0;
  animation: blinkSequence 6s infinite;
}

.fun-fact-card[data-card="1"] .blinking-dot {
  animation-delay: 0s;
}

.fun-fact-card[data-card="2"] .blinking-dot {
  animation-delay: 1s;
}

.fun-fact-card[data-card="3"] .blinking-dot {
  animation-delay: 2s;
}

.fun-fact-card[data-card="4"] .blinking-dot {
  animation-delay: 3s;
}

.fun-fact-card[data-card="5"] .blinking-dot {
  animation-delay: 4s;
}

.fun-fact-card[data-card="6"] .blinking-dot {
  animation-delay: 5s;
}

@keyframes blinkSequence {
  0%, 83.33% {
    opacity: 0;
  }
  16.67% {
    opacity: 1;
  }
}