.nav-link {position: relative;}
    
    
  /* Optional: Prevent text selection entirely on non-interactive areas */
body,
p,
h1, h2, h3, h4, h5, h6,
span,
div,
li,
.text-zinc-600,
.text-zinc-900,
.venture-desc,
.hero-desc,
.hero-sub,
.case-content p,
.case-company,
.tag-pill {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  cursor: default !important;
}

/* AUTOMATIC CUSTOM SCROLL CURSOR – works on any vertical scrollbar */
.auto-scrollable-cursor,
.auto-scrollable-cursor * {
  cursor: none !important;
}
/* Allow selection in contact section or anywhere you want copyable text */
#contact,
a[href^="mailto"],
a[href^="tel"] {
  user-select: text;
  -webkit-user-select: text;
  -moz-user-select: text;
}

#work .project-card,
#work .project-card *, .case-study-btn span, .project-wrapper, #project-modal.open, .comparison-slider, .comparison-handle-circle {
  cursor: pointer !important;
}





/* SITE-WIDE TRANSPARENT FLOATING NAV (transparent over hero everywhere) */
.menunav {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  box-shadow: none;
  transition: background 0.4s ease, transform 0.45s cubic-bezier(0.25, 0.1, 0.25, 1);
  /* backdrop-filter: blur(12px);  */
}



.menunav.solid {
 background:rgb(250 250 250); }

    .solid .text-white,  .solid.text-white {
        color: rgb(24 24 27 / var(--tw-text-opacity, 1));}
    
    .menunav.solid #mobile-menu-btn span {
        background: rgb(24 24 27 / var(--tw-text-opacity, 1));}

.menu-open .menunav.solid {
 background:rgb(250 250 250);
 backdrop-filter: none;
}




.nav-link:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: rgb(var(--accent));
  transition: width 0.3s ease;
}
.nav-link:hover:after { width: 100%; }


/* Existing menunav styles stay, just make sure this is there */
.menunav {
  z-index: 50;
  transition: transform 0.45s cubic-bezier(0.25, 0.1, 0.25, 1);  /* slower = more noticeable slide */
  will-change: transform;
}

@media (max-width: 768px) {.menunav {position:relative;}}



.menunav.smart-active {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}

.menunav.nav-up {
  transform: translateY(0);
}

.menunav.nav-down {
  transform: translateY(-100%);
}

#mobile-menu {
  background: rgba(24, 24, 27, 0.0); 
  transform: translateY(-100%);
  backdrop-filter: blur(26px);
  transition: 
    transform 0.68s cubic-bezier(0.32, 0.72, 0, 1), 
    opacity 0.58s cubic-bezier(0.25, 0.1, 0.25, 1);
  min-height: 100dvh;
  padding-bottom: env(safe-area-inset-bottom);
  display: flex;
  flex-direction: column;
  will-change: transform;
}

#mobile-menu.solid {
  background: rgb(250 250 250);}
  
  
#mobile-menu.pasthero {
    background: rgb(250 250 250);}
  

 
#mobile-menu.open {
  transform: translateY(0);
}
/* Give content space so it doesn't overlap fixed icons */
#mobile-menu .flex-1 {
  padding-bottom: calc(56px + env(safe-area-inset-bottom));
}

/* Menu panel itself blocks clicks except on its content */
#mobile-menu {
  pointer-events: none; /* blocks clicks on the background */
}

#mobile-menu > * {
  pointer-events: auto; /* allows clicks on menu items, icons, etc. */
}

/* But explicitly allow clicks on the nav bar (including hamburger/X) */
nav, #mobile-menu-btn {
  pointer-events: auto !important;
  z-index: 60 !important; /* make sure nav stays above menu */
}

/* Hamburger → X animation (already partially there, but ensure it's smooth) */
#mobile-menu-btn {
  width: 32px;
  height: 14px;
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  display: none;
  padding: 0;
}

@media (max-width: 767px) {
  #mobile-menu-btn { display: block; }
}

#mobile-menu-btn span {
  position: absolute;
  left: auto;
  right: 0;
  height: 2px;
  background: white;
  border-radius: 1px;
  transition: all 0.2s cubic-bezier(0.65, 0.05, 0.36, 1);
  transform-origin: right center;
}

#mobile-menu-btn span:first-child {
  top: 0;
  width: 18px;
  transform: translateY(0) rotate(0deg);
}

#mobile-menu-btn span:last-child {
  bottom: 0;
  width: 28px;
  transform: translateY(0) rotate(0deg);
}

#mobile-menu-btn.active span {
  right: 0;
  left: 0;
  margin: 0 auto;
  width: 28px;
  transform-origin: center center;
}


#mobile-menu-btn.active span:first-child {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

#mobile-menu-btn.active span:last-child {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}
/* Menu items hover effect */
#mobile-menu a.nav-link {
  position: relative;
  display: inline-block;
}

#mobile-menu a.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 3px;
  bottom: -8px;
  left: 50%;
  background: rgb(var(--accent));
  transition: all 0.4s ease;
  transform: translateX(-50%);
}

#mobile-menu a.nav-link:hover::after {
  width: 80%;
}

/* Bottom icons */
#mobile-menu .fa-brands {
  transition: transform 0.3s ease, color 0.3s ease;
}

#mobile-menu .fa-brands:hover {
  transform: scale(1.2);
  color: rgb(var(--accent));
}


/* Strong scroll lock */
body.menu-open {
  overflow: hidden !important;
  touch-action: none !important;
}


/* Case Studies styles */
.case-card {
  background: white;
  border-radius: 1.5rem;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.case-card:hover {
 /* box-shadow: 0 20px 30px -10px rgba(0,0,0,0.1); */
}

.tag-pill {
  background: #f3f4f6;
  color: #4b5563;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  display: inline-block;
}

.case-content {
  padding: 3.5rem 4rem;
}

.case-image {
  background: linear-gradient(135deg, #eff2f6, #f7f9fc);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
  overflow: hidden;
  height: 100%;
  min-height: 420px;
}

.case-image img {
  max-width: 100%;
  border-radius: 1rem;
  transition: transform 0.6s ease;
}

.case-image.no-padding {
  padding: 0 !important;
}

.case-card:hover .case-image img {
  /* transform: scale(1.05); */
}

@media (max-width: 1023px) {
   .case-image { padding: 2rem 1.5rem; }
   .case-image.pop-out { border-radius: 1.5rem 1.5rem 0 0 !important;}
  
}

@media (max-width: 768px) {
 .case-content { padding: 2.5rem 1.75rem; }}



.case-company {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 0.5rem;
}

/* Pop-out effect */
.case-image.pop-out {
  background: #F1F4F8;
  position: relative;
  overflow: visible !important;
  min-height: 600px;
  border-radius: 0 1.5rem 1.5rem 0;
  transition: all 0.5s ease;
}

/*originals numio #E8F5E9  bju f9e9df s5 #f0f8ff */

.case-card.numio:hover .case-image.pop-out { background: #E1EEE2 !important; }
.case-card.bju:hover .case-image.pop-out { background: #F0E0D2 !important; }
.case-card.shape5:hover .case-image.pop-out { background: #E4EBF2 !important; }

    @media (max-width: 1023px) {
    .case-card.numio .case-image.pop-out { background: #E1EEE2 !important; }
    .case-card.bju .case-image.pop-out { background: #F0E0D2 !important; }
    .case-card.shape5 .case-image.pop-out { background: #E4EBF2 !important; }
    }


.case-image.pop-out > div {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: visible !important;
  background: inherit;
  border-radius: 0 1.5rem 1.5rem 0;
}

.case-card.lg\:flex-row-reverse .case-image.pop-out,
.case-card.lg\:flex-row-reverse .case-image.pop-out > div {
  border-radius: 1.5rem 0 0 1.5rem;
  padding-top:1.2rem;
}

 @media (max-width: 1023px) {
    .case-card.lg\:flex-row-reverse .case-image.pop-out,
    .case-card.lg\:flex-row-reverse .case-image.pop-out > div {
    border-radius: 1.5rem;}}


.case-image.pop-out .pop-out-img {
  top: -6.5rem !important;
  left: 0 !important;
  width: 110% !important;
  height: auto !important;
  object-fit: cover;
}

.case-image.pop-out {
  padding: 0 !important;
  margin: 0 !important;
}

.case-card:has(.pop-out) {
  overflow: visible !important;
}


/* STRONGER TABLET FIX — specifically targets iPad Mini / Surface Duo overlap */
@media (min-width: 769px) and (max-width: 1024px) {



  /* Reset the pop-out image completely */
  .case-image.pop-out .pop-out-img,
  .case-image.pop-out img {
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;

    object-fit: contain !important;
    border-radius: 1rem !important;
  }

  /* Push content down with extra spacing */
  .case-content {
    order: 2 !important;

    margin-top: 0 !important;
  }


}



@media (max-width: 768px) and (max-width: 1023px) {
  .case-image.pop-out .pop-out-img {
    top: 0rem !important;
    width: 105% !important;
    margin-left: 0% !important;
    position: relative;
  }
}

.space-y-32 > .case-card:nth-child(2),
.space-y-40 > .case-card:nth-child(2) {
  margin-top: 15rem !important;
  margin-bottom: 15rem !important;
}

@media (min-width: 1024px) {
  .space-y-40 > .case-card:nth-child(2) {
    margin-top: 20rem !important;
    margin-bottom: 20rem !important;
  }
}



@media (max-width: 1023px) {
  .case-image.pop-out,
  .case-image.pop-out img {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    box-shadow: none !important;
  }

  .case-image.pop-out {

   
  }

  .case-card:has(.pop-out) {

  }
  
  .space-y-32 > .case-card:nth-child(2),
  .space-y-40 > .case-card:nth-child(2) {
    margin-top: 5rem !important;
    margin-bottom: 5rem !important;
  }
}





/* Make .case-card the group parent for hover */
.case-card {
  transition: all 0.8s ease; /* optional subtle card lift if you want */
}
/* Button base */
.case-study-btn {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgb(37 99 235);
  color: rgb(37 99 235);
  border-radius: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  transition: padding-right 0.55s ease;
}


@media (min-width: 768px) {
    /* Arrow */
    .arrow {
      opacity: 0;
      width: 0;
      overflow: hidden;
      transform: translateX(-18px);
      transition: 
        opacity 0.45s ease 0.08s,
        transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.08s,
        width 0.5s ease 0.08s;
      flex-shrink: 0;
      margin-left: 0;
    }
    
    /* Card hover - reveals arrow with nice spacing */
    .case-card:hover .case-study-btn {
      padding-right: 2.0rem;
    }
    
    .case-card:hover .arrow {
      opacity: 1;
      width: auto;
      transform: translateX(0);
      margin-left: 14px;
    }
    
    .case-study-btn:hover .arrow {
      color: white;
    }
}

/* Direct hover on the button itself */
.case-study-btn:hover {
  background-color: rgb(var(--accent));
  border-color: rgb(var(--accent));
  color: white;
}


/* Lock text */
.button-text {
  transition: none;
  flex-shrink: 0;
}

      




#rotator {
  display: inline-block;
  /* color: rgb(var(--accent));*/
  /*border-right: 3px solid rgb(var(--accent));*/
 border-right: 3px solid #fff;
  font-weight: 700;
  padding-right: 2px;
  animation: blink-caret 1s step-end infinite;
  font-size: inherit;
}

@keyframes blink-caret {
  from, to { /*border-color: rgb(var(--accent));*/ border-color:#fff;  }
  50% { border-color: transparent; }
}

.down-arrow {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20% { transform: translateY(0); }
  50% { transform: translateY(6px); }
  80%, 100% { transform: translateY(0); }
}



  

/* HERO SECTION – Desktop + Mobile */
.hero-section {
 position: sticky !important;
  top: 0;
  z-index: 3;
  height: 100vh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to br, #18181b, #27272a);
  overflow: hidden;
  box-sizing: border-box;
}


/* Optional dark tint on background (only when .hero-with-overlay is on body) */
body.hero-with-overlay .hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);     /* adjust 0.25–0.45 as needed */
  z-index: 1;                          /* behind content, above background */
  pointer-events: none;
}

/* Ensure text/content stays bright & on top */
.hero-section > * {
  position: relative;
  z-index: 2;                          /* above overlay */
}

@media (min-width: 769px) {
/* Specific inner wrapper safety (your #hero-content) */
  #hero-content {
    width: 100%;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    text-align: center;
    margin-top: calc(env(safe-area-inset-top) + 9vh); 

  }
}

/* Make sure the down arrow & other elements aren't cut off */
.down-arrow,
.hero-greeting,
.hero-headline,
.hero-sub,
.hero-desc {
  position: relative;
  z-index: 2;
}
 



.hero-greeting { font-size: clamp(2.125rem, 4.8vh, 2.875rem); }
.hero-headline { font-size: clamp(7.75rem, 16.5vh, 13.5rem); line-height: 0.88; letter-spacing: -0.05em; }
.hero-sub { font-size: clamp(1.25rem, 3.8vh, 2.25rem); }
.hero-desc { font-size: clamp(0.95rem, 2.2vh + 0.3rem, 1.3rem); }

@media (max-height: 1250px) {

  .hero-headline { font-size: clamp(7.75rem, 14.5vh, 11.5rem); }
}



/* tablet */
/* Tablet only — stricter range to avoid catching most desktops */
@media (min-width: 769px) and (max-width: 1024px) and (max-height: 2200px) {
  #hero-content {
    margin-top: calc(env(safe-area-inset-top) + 1vh);
  }
    
  .hero-headline {
    font-size: clamp(4.0rem, 7.5vh, 6.0rem) !important;
    line-height: 0.93 !important;
  }

  .hero-greeting {
    font-size: clamp(1.9rem, 4.0vh, 2.3rem) !important;
  }

  .hero-sub {
    font-size: clamp(1.05rem, 2.8vh, 1.6rem) !important;
  }
}

/* mobile */

@media (max-width: 768px) {
 .hero-section {
    height: 100vh;
    min-height: 100dvh;
    padding: 0 !important;
  }

  #hero-content {
    width: 100%;
    max-width: none;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    padding-top: env(safe-area-inset-top, 1rem);
    padding-bottom: env(safe-area-inset-bottom, 1.5rem);
    text-align: center;
    /* No margin-top at all — let flex do the centering */
  }
  
  .hero-greeting {
    font-size: clamp(1.75rem, 5vh, 1.30rem);
    margin-top: 0;
    margin-bottom: 1rem !important;
    
  }
  .hero-headline {
    font-size: clamp(3.5rem, 8vh, 6rem);
    line-height: 0.95;
  }
  .hero-sub {
    font-size: clamp(1rem, 3.5vh, 1.2em);
    margin: 0.25rem 0;
  }
  .hero-desc {
    font-size: clamp(0.875rem, 3vh, 1.125rem);
    margin-top: 0.5rem;
  }
  .down-arrow i { font-size: 1.475rem; }
}



/* Extra-small phones (iPhone SE, older Androids ~320–375px wide, short height) */
@media (max-width: 375px) and (max-height: 700px) {
  #hero-content {
    /* Scale the whole text block down slightly */
    transform: scale(0.92);          /* 92% size — tweak to 0.88–0.95 as needed */
    transform-origin: center center; /* scales from center, no shift */
  }

  /* Or, if you prefer not using transform (more accessible), tighten clamps instead: */
  .hero-greeting {
    font-size: clamp(1.4rem, 4.5vh, 1.6rem) !important;
    margin-top: 2rem;
  }
  .hero-headline {
    font-size: clamp(2.8rem, 9vh, 4.5rem) !important;
    line-height: 0.92 !important;
  }
  .hero-sub {
    font-size: clamp(0.9rem, 3vh, 1.1rem) !important;
    margin: 0.5rem 0 !important;
  }
  .hero-desc {
    font-size: clamp(0.8rem, 2.6vh, 0.95rem) !important;
    max-width: 90% !important; /* prevents wrapping issues */
  }

}




#about {
  background: #f3f4f6;
}








@media (max-width: 768px) {
  #contact h2 {
    line-height: 1.05 !important;
    padding-bottom: 0.25em !important;
  }
}

.wave-hand {
  display: inline-block;
  transform-origin: bottom center;
  animation: waveOnce 1.6s ease-in-out;   /* remove 'forwards' here */
}

/* Keep your @keyframes as-is */
@keyframes waveOnce {
  0% { transform: rotate(0deg); }
  20% { transform: rotate(15deg); }
  40% { transform: rotate(-10deg); }
  60% { transform: rotate(8deg); }
  80% { transform: rotate(-5deg); }
  100% { transform: rotate(0deg); }
}
.hero-sub {
  margin-top: clamp(1rem, 8vh, 5rem);
  margin-bottom: clamp(0.5rem, 6vh, 5rem);
}

@media (min-height: 1100px) { .hero-sub { margin-top: 5rem !important; margin-bottom: 5rem !important; } }
@media (min-height: 1400px) { .hero-sub { margin-top: 7rem !important; margin-bottom: 7rem !important; } }
@media (min-height: 939px) { .hero-sub { margin-top: 2rem !important; margin-bottom: 2rem !important; } }
@media (max-height: 900px) { .hero-sub { margin-top: 1.5rem !important; margin-bottom: 1.5rem !important; } }

#contact h2 {
  padding-bottom: 0.1em;
}

#contact .pb-8 { padding-bottom: 0em; }


#contact {
  position: sticky;
  bottom: 0;               /* pins it to the bottom of the viewport */
  z-index:2;
  min-height: 50vh;        /* or whatever feels good – prevents it being too short */
  background: transparent;

}

#contact.on-top {
  z-index:9;
}








@media (max-height: 850px) {  /* wider range to catch real laptop usable height */
  #contact {
    padding-top: 5rem !important;     /* 96px — much more top space */
    padding-bottom:1rem !important;
  }

  #contact .footer-content {
    padding-top: 3rem !important;     /* push inner content down */
  }

  #contact h2 {
    line-height: 1.0 !important;
    margin-bottom: 1.5rem !important;
    padding-top: 2rem !important;     /* extra push */
  }

  /* Make sure the email block doesn't eat space */
  #contact .flex.justify-center.mb-12 {
    margin-top: 1rem !important;
    margin-bottom: 1.5rem !important;
  }
  
  .cright {margin-top:4rem !important;padding-bottom:1rem;}
  .saccounts {margin-top:3rem;}
}

@media (max-width: 767px) {
    #contact { padding-top: 3rem !important;}
    .cright {padding-bottom:2rem;}
}


#contact {
  /* Prevent any horizontal overflow from scale */
  overflow-x: hidden !important;
  
}

/* Extra safety for inner content */
.footer-content {
  overflow-x: hidden !important;
}



#mobile-menu.closing {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
}



/* ──────────────────────────────────────────────── */
/* UNIVERSAL SCROLLER – Reusable anywhere           */
/* ──────────────────────────────────────────────── */
.universal-scroller {
  position: relative;
}


/* Prevent horizontal scrollbar only on carousel */
.universal-scroller {
  overflow: hidden;   
  width: 100%;
}


.scroller-track::-webkit-scrollbar {
  display: none;
}


.scroller-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 1.5rem;                    /* keep your gap */
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 15px;
}

.scroller-track::-webkit-scrollbar { display: none; }

.scroller-card {
  flex-shrink: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

/* Arrows */
.scroller-prev, .scroller-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 35;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(12px);
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.45);
  border-radius: 9999px;
  color: #4b5563;
  transition: all 0.3s ease;
}

.scroller-prev { left: 1.5rem; }
.scroller-next { right: 1.5rem; }

.scroller-prev:hover, .scroller-next:hover {
  background: rgba(255,255,255,0.3);
  color: rgb(var(--accent));
}

/* Mobile - clean swipe with padding */
@media (max-width: 1023px) {
  .scroller-track {
    margin-left: 0 !important;
    padding-left: 1.75rem !important;
    padding-right: 100vw !important;
    scroll-padding-left: 1.75rem !important;
  }
  .scroller-prev, .scroller-next { display: none !important; }
}


/* Extra safety on mobile */
@media (max-width: 1023px) {
  .universal-scroller {
    overflow: hidden;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
.scroller-track {
    margin-left: 22px !important;}
}






 

.mobilenote {display:none;}
@media (max-width: 767px) { .mobilenote {display:block;}}

@media (max-width: 768px) {
#work {
    padding-top: 0px;
}
}






/* Loading Bar */
  .loading-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: rgb(var(--accent));
    width: 0%;
    z-index: 99999;
    /*box-shadow: 0 0 10px rgb(var(--accent));*/
    transition: width 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  }

  @media (max-width: 768px) {
    .loading-bar {
      display: none !important;
    }
  }

  /* Single Loading Overlay - acts as a backdrop */
  .loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(24, 24, 27, 0.08);   /* very subtle dark tint */
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.45s ease;
  }

  body.transitioning .loading-overlay {
    opacity: 1;
  }

  /* Progressive blur applied to the actual content */
  body.transitioning .menunav,
  body.transitioning .hero-section,
  body.transitioning .main-content-wrapper,
  body.transitioning section {
    transition: filter 0.75s cubic-bezier(0.4, 0, 0.2, 1);
    filter: blur(1px);
  }

  body.transitioning.loading-heavy .menunav,
  body.transitioning.loading-heavy .hero-section,
  body.transitioning.loading-heavy .main-content-wrapper,
  body.transitioning.loading-heavy section {
    filter: blur(4px) !important;
  }

  body.transitioning {
    overflow: hidden;
  }


/* Other work scroller */

.marquee-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.marquee-track {
  display: flex;
  padding-bottom: 20px;
  flex-wrap: nowrap;
  width: max-content;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  transition: none;
}

.marquee-item {
  flex-shrink: 0;
  padding-left: 1rem;
  padding-right: 1rem;
}

.marquee-track > * + * {
  margin-left: 0 !important;
}


/* ──────────────────────────────────────────────── */
/* Profile pic     */
/* ──────────────────────────────────────────────── */


/* The wrapper (already has flex and gap from your HTML) */
.profile-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;          /* your original gap-3 */
}

/* Profile picture - only thing that zooms */
.profile-pic {
  width: 2.25rem;         /* matches w-9 */
  height: 2.25rem;
  border-radius: 9999px;
  overflow: hidden;
  flex-shrink: 0;
  transition: transform 0.3s ease-out;
}

/* Zoom only the image on hover */
.profile-group:hover .profile-pic {
  transform: scale(1.75);
}

/* Name text - slight shift right when image is zoomed */
.profile-name {
  transition: transform 0.3s ease-out;
  white-space: nowrap;     /* prevents wrapping */
}

/* Only move the name when hovered */
.profile-group:hover .profile-name {
  transform: translateX(1.125rem);   /* ≈18px — gentle nudge right */
  /* 
     Alternatives you can try instead:
     transform: translateX(1rem);     → ~16px
     transform: translateX(1.5rem);   → ~24px if you want more space
     padding-left: 1.125rem;          → same effect, but using padding
  */
}



/* ──────────────────────────────────────────────── */
/* Scroll in fade animation     */
/* ──────────────────────────────────────────────── */

/* Vertical sections – full slide-up (safe) */
.fade-in-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: all 650ms cubic-bezier(0.25, 0.1, 0.25, 1);
  will-change: opacity, transform;
}

.fade-in-scroll.visible {
  opacity: 1;
  transform: none !important;
}

/* Headings */
.fade-in-scroll.heading {
  transition-duration: 750ms;
}

/* Stagger for case cards */
.case-card:nth-child(1) { transition-delay: 50ms !important; }
.case-card:nth-child(2) { transition-delay: 180ms !important; }
.case-card:nth-child(3) { transition-delay: 320ms !important; }

/* ─────────────────────────────────────── */
/* Horizontal scrollers – opacity only (fixes everything) */
.scroller-card.fade-in-scroll {
  transition: opacity 600ms cubic-bezier(0.25, 0.1, 0.25, 1) !important;
  transform: none !important;           /* prevent any conflict */
}




/* ──────────────────────────────────────────────── */
/* Venture cards     */
/* ──────────────────────────────────────────────── */



.venture-card {
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.venture-card {
  background: white;
  border-radius: 1.5rem;
  overflow: visible;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  display: flex;
  flex-direction: column;
  min-height: 480px;
  position: relative;
  transition: all 0.3s ease-in-out;
  }

.venture-card:hover {
  /*  box-shadow: 0 20px 30px -10px rgba(0,0,0,0.1);*/
}

/* Focus effect - other cards get slightly transparent */
/* Ventures Grid */
.venture-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

/* Base card styles */
.venture-card {
  transition: all 0.45s cubic-bezier(0.4, 0.0, 0.2, 1);
  position: relative;
}


@media (hover: hover) and (pointer: fine) {

/* When hovering ANY card in the scroller, dim the others */
.scroller-track:has(.venture-card:hover) .venture-card:not(:hover) {
  opacity: 0.68;
  filter: blur(0.8px);
  transition: opacity 0.35s ease, filter 0.35s ease;
}

/* The hovered card stays sharp */
.venture-card:hover {
  opacity: 1 !important;
  filter: none !important;
  transition: opacity 0.35s ease, filter 0.35s ease;
}

    /* .venture-card:hover .venture-tag.sold {background: rgb(239 68 68);color: #fff;  }
   .venture-card:hover .venture-tag.active { background:rgb(34 197 94);   color:#fff; } */

}

.venture-tag {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  z-index: 50;
  transition: all 0.3s ease-in-out;
  opacity:0;
}

@media (max-width: 768px) {
    .venture-tag {opacity:1;}
    #prev-venture, #next-venture {display:none;}
    
}

.venture-card:hover .venture-tag {opacity:1;}

.venture-tag.sold {
  background: rgb(239 68 68 / 0.1);
  color: rgb(239 68 68);
}


.venture-tag.active {
  background: rgb(34 197 94 / 0.1);
  color: rgb(34 197 94);
}


.venture-logo-container {
  height: 8rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 3rem 1rem;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.venture-logo-container svg {
  max-height: 100%;
  max-width: 75%;
}

.venture-content {
  flex: 1;
  padding: 0 2.5rem 2.2rem 2.5rem;
  display: flex;
  flex-direction: column;
}

.venture-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 1rem;
  line-height: 1.35;
}

.venture-desc {
  font-size: 0.85rem;
  line-height: 1.65;
  color: #4b5563;
  margin-bottom: 1.75rem;
  flex-grow: 1;
}

.venture-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: auto;
  justify-content: flex-end;
}

.venture-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgb(var(--accent));
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  transition: color 0.2s ease;
}

.venture-link:hover {
  color: rgb(var(--accent) / 0.85);
}




/* ──────────────────────────────────────────────── */
/* Other Work – Project Cards with Slide + Arrow     */
/* ──────────────────────────────────────────────── */


/* Base card setup – add group for hover targeting */
.project-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: 1rem;
  transition: all 0.3s ease;
}

.project-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: 1rem;
}

.project-overlay {
  position: absolute;
  inset: 0;
  background-color: rgb(var(--accent));
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
}



.project-title {
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  padding: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}




.project-wrapper {
  background: #F1F4F8;                    /* very dark gray – background layer */
  border-radius: 1.5rem;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  height: 100%;
}

.project-card {
  position: relative;
  height: 100%;
  cursor: pointer;
  z-index: 20;
  transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1); /* smooth overshoot slide */
}

.project-wrapper:hover .project-card {
  transform: translateY(55%) !important;             /* slides down far enough to reveal all text */
}

/* Background text layer – always present, revealed on slide */
.project-wrapper .absolute.inset-0 {
  padding: 2rem 2rem 2rem 2rem;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  text-align: left;
}

.project-wrapper .absolute.inset-0 p {
  font-size: 0.83rem;                    /* or md:text-base */
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;                         /* zinc-300 */
  margin-bottom: 0.60rem;
}

.project-wrapper .absolute.inset-0 h4 {
  font-size: 1.2rem;                     /* md:text-2xl */
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  padding-right: 4rem;                    /* space for arrow circle on right */
}

/* Arrow circle – top-right corner, appears on hover */
.project-wrapper .absolute.top-8.right-8 {
  top: 2rem;
  right: 2rem;
  width: 2.5rem;
  height: 2.5rem;
  background:#fff;                    
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.project-wrapper:hover .absolute.top-8.right-8 {
  opacity: 1;
}

.project-wrapper i.fa-arrow-right {
  color:rgb(24 24 27);
  font-size: 1.0rem;
  transform: rotate(-45deg);
}

/* Optional: subtle image quality on slide (no blur) */
.project-card img {
  width: 100%;
  border-radius:20px;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.project-wrapper:hover .project-card img {
    transform: scale(.95);
}


/* Disable slide animation on mobile/touch devices */
@media (max-width: 767px) {
  .project-wrapper:hover .project-card {
    transform: none !important; /* no slide on mobile */
  }
  
  /* Optional: hide arrow circle on mobile if you don't want hover flicker */
  .project-wrapper .absolute.top-8.right-8 {
    opacity: 0 !important; /* or remove entirely if preferred */
  }
}

/* Ensure click goes through to onclick handler on wrapper */
.project-wrapper .project-card {
  pointer-events: none; /* let clicks pass through image to wrapper */
}

.project-wrapper {
  pointer-events: auto; /* wrapper catches the click */
}






/* ──────────────────────────────────────────────── */
/*                  MODAL STYLES                    */
/* ──────────────────────────────────────────────── */

/* Backdrop (the dark overlay) */
#project-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(26px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;

  /* Initial hidden state */
  opacity: 0;
  visibility: hidden;

  /* Fade in/out transition */
  transition: opacity 0.45s ease, visibility 0s linear 0.45s;
}

/* Visible state */
#project-modal.open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.45s ease, visibility 0s linear 0s;
}

/* Inner modal content (the white card) – now slides left/right */
.modal {
  opacity: 0;
  transform: scale(0.95) translateX(0);
  transition: 
    transform 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    opacity    0.15s ease;
  will-change: transform, opacity;
  max-width: 100%;
}

/* Outgoing: slide farther + fade + tiny rotation for visible motion */
.modal.outgoing-left {
  transform: translateX(-120%) scale(0.9) rotate(-3deg) !important;
  opacity: 0 !important;
}

.modal.outgoing-right {
  transform: translateX(120%) scale(0.9) rotate(3deg) !important;
  opacity: 0 !important;
}

/* Incoming: start farther off-screen */
.modal.incoming-left {
  transform: translateX(-80%) scale(0.95) !important;
  opacity: 0 !important;
}

.modal.incoming-right {
  transform: translateX(80%) scale(0.95) !important;
  opacity: 0 !important;
}
/* Force centered when open */
#project-modal.open .modal {
  transform: translateX(0) scale(1);
  opacity: 1;
}

/* Images container */
#modal-images {
  background: linear-gradient(to bottom, #f8fafc, #f1f5f9);
  width: 100%;
}

#modal-images img {
  width: 100%;
  display: block;
}

#modal-images img:last-child {
  border-bottom: none;
}

/* Close button */
#modal-close {
  transition: all 0.2s ease;
}

#modal-close:hover {
  background: rgba(0, 0, 0, 0.05);
  color: black;
}

/* Pause marquee when modal is open */
body.modal-open .marquee-track {
  opacity: 0.4;  /* optional: subtle dim when paused */
  transition: opacity 0.4s ease;
}



/* Ensure no jump on any device */
html {
  scroll-behavior: smooth;
}


@media (max-width: 767px) {
  /* Keep the stacking fix */
  #modal-content-wrapper {
    display: block !important;
    width: 100% !important;
  }

  #modal-images,
  #modal-content-wrapper > div:last-child {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  #modal-images {
    max-height: 45vh !important;
    overflow-y: auto !important;
  }

  /* Restore nice padding on the whole text section */
  #modal-content-wrapper > div:last-child {
    padding: 1.5rem 1.8rem !important;
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;     /* extra bottom breathing room */
    min-height: auto !important;
    box-sizing: border-box !important;
  }

  /* Make sure inner content has space too */
  #modal-title,
  #modal-desc,
  #modal-tags {
    margin-bottom: 1rem !important;
  }

  /* Hide the entire "My Role / Platform / Focus" section on mobile */
  #modal-content-wrapper > div:last-child > .space-y-6 {
    display: none !important;
  }
  
  /* Hide Live site and Behance links on mobile */
    #modal-desc .flex.flex-wrap.gap-6.mt-4 {
      display: none !important;
    }
}


/* Top-left navigation arrows inside content area */
.nav-arrow {
  background: transparent;
  color: #6b7280;               /* zinc-500 – subtle gray */
  border: none;
  width: 36px;
  height: 36px;
  font-size: 1.25rem; 
  border-radius: 9999px;
  display: flex;
  margin-top: -14px;
  margin-left: -9px;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  cursor: pointer;
}

.nav-arrow:hover {
  background: #f3f4f6;          /* zinc-100 */
  color: #1f2937;               /* zinc-900 */
}

.nav-arrow:disabled,
.nav-arrow[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

/* Make them more prominent on hover/focus */
.nav-arrow:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(var(--accent), 0.3);
}

/* Hide arrows on small screens (mobile + narrow tablets) */
@media (max-width: 767px) {
  .nav-arrow {
    display: none !important;
  }
}

/* Smooth slide transition for project content */
#modal-content-wrapper {
  display: flex;
  width: 100%;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1); /* smooth easing */
}

/* States when sliding left/right */
#modal-content-wrapper.sliding-left {
  transform: translateX(-100%);
}

#modal-content-wrapper.sliding-right {
  transform: translateX(100%);
}

/* Reset after animation */
#modal-content-wrapper:not(.sliding-left):not(.sliding-right) {
  transform: translateX(0);
}



@media (min-width: 769px) and (max-height: 800px) and (orientation: landscape) {
  #modal-moreinfo {
    display: none !important;
  }
}





.outerwrapback {
        background: linear-gradient(180deg, rgba(0, 0, 0, .8), rgba(0, 0, 0, .4), rgba(0, 0, 0, .8));   }


.bg-zinc-50 {background: linear-gradient(to right, #18181B, #27272a);} 

/* Main white container - rounded top and bottom */
.main-content-wrapper {
 background: rgb(250 250 250);
  border-radius: 40px;   /* rounded on all corners */
  position: relative;
  z-index: 10;
  margin-bottom: -25px;
  box-shadow: 0 -20px 50px -30px rgba(0, 0, 0, 0.2);
  transition: margin-top 0.1s ease-out; /* optional subtle feel */
}


/* Make rounding bigger on large screens */
@media (min-width: 1024px) {
  .main-content-wrapper {
    border-radius:40px;
  }
}  