/* Performance optimizations */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: 'lato', Arial, sans-serif;
  background: #f6f6f6;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Force hardware acceleration for elements that transform */
.floating-logo,
.radio-pill,
.toolbar-btn,
.project-content,
.landing-content {
  will-change: transform;
  transform: translateZ(0);
}

#particleCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

#actionButton{
  width: fit-content;
  background: #333;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 500;
  font-family: 'Bricolage Grotesque', sans-serif;
  cursor: pointer;
  transition: background 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

}


#actionButton:hover{
    background-color:#222;
    color:white;
    cursor: pointer;
}

.sec-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid rgba(13, 11, 70, 0.065);
    border-radius: 50px;
    padding: 8px 8px;    
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
    box-shadow: 0 .5px .5px rgba(31, 38, 135, 0.26);
    cursor: pointer;
  }
  
  .sec-btn:hover,
  .sec-btn:focus {
    transform: translateY(-2px) scale(1.04);
    outline: none;
    border: 1px solid rgba(177, 161, 144, 0.5);

    
    
  }
  .sec-btn svg {
    display: block;
    color: #737373;

  }

.landing-grid {
margin-top: calc(100vh * .25);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  justify-content: start;
  align-items: stretch;
  max-width: 900px;
  padding:  16px;
}

.about-grid {
  margin-top: calc(100vh * .15);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    justify-content: start;
    align-items: stretch;
    max-width: 900px;
    padding:  16px;
  }



.landing-content {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  text-align: left;
  background-color: rgb(255, 255, 255);
  padding:24px;
  border-radius:32px;
  border-style: solid;
  border-color: rgba(74, 60, 47, 0.095);
  border-width: 1px;
transition: box-shadow .25s;
  box-shadow:75px var(--card-box-shadow-1-y) var(--card-box-shadow-1-blur) var(--card-box-shadow-1), 0px var(--card-box-shadow-2-y) var(--card-box-shadow-2-blur) var(--card-box-shadow-2), 0 0 0 1px var(--card-border-color);
 
}

.answer-content {
  min-width: 0;
  width: 95vw;
  max-width: 900px;
  box-sizing: border-box;
  text-align: center;
  text-align: left;
  background-color: rgb(255, 255, 255);
  padding:24px;
  border-radius:32px;
  height: 100%;
  border-style: solid;
  border-color: rgba(74, 60, 47, 0.095);
  border-width: 1px;
transition: box-shadow .25s;
  box-shadow:75px var(--card-box-shadow-1-y) var(--card-box-shadow-1-blur) var(--card-box-shadow-1), 0px var(--card-box-shadow-2-y) var(--card-box-shadow-2-blur) var(--card-box-shadow-2), 0 0 0 1px var(--card-border-color);
 margin-bottom: 24px;
 margin-top:8px;
 
}


.project-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  justify-content: start;
  align-items: start;
  max-width: 75vw;
  height: auto;
  padding: 24px;
  animation: fadeInUp 1.0s cubic-bezier(0.23, 1, 0.32, 1);
  margin-bottom: 48px;
}

/* Smaller desktop: 2 columns for project grid */
@media (max-width: 1440px) {
  .project-grid {
    grid-template-columns: 1fr 1fr;
  }
}



.project-content {

  width: 100%;
  box-sizing: border-box;
  text-align: center;
  text-align: left;
  background-color: #fff;
  padding:24px;
  border-radius:24px;
  height: 100%;
  border-style: solid;
  border-color: rgba(74, 60, 47, 0.095);
  border-width: 1.5px;
transition: box-shadow .25s;
  box-shadow:75px var(--card-box-shadow-1-y) var(--card-box-shadow-1-blur) var(--card-box-shadow-1), 0px var(--card-box-shadow-2-y) var(--card-box-shadow-2-blur) var(--card-box-shadow-2), 0 0 0 1px var(--card-border-color);
 
}


.landing-content img{
    width: 100%;
    height: 350px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(31, 38, 135, 0.08);
    transition: transform 0.15s;
    flex: 0 0 auto;     
}

  .content-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 28px 0 28px 0;
    color: #947b57;
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 1px;
  }
  
  .content-divider::before,
  .content-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #947b57;
    opacity: 0.3;
    margin: 0 16px;
width: 20vw;  }
  
  .last-row {
    min-width: 0;
    width: 100%;
    max-width: 100vw;
    margin-top: auto;
    margin-bottom: 0;
    box-sizing: border-box;
    background-color: #fcfcfc;
    padding: 14px 24px;
    border-style: solid;
    border-color: rgba(74, 60, 47, 0.15);
    border-width: .75px;
    transition: box-shadow .25s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
   
  
  }

  .last-row h4 {
    margin: 0;
    flex-shrink: 0;
  }

  .last-row-content {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
  }

  .last-row .social-row {
    margin: 0;
    justify-content: flex-end;
  }

  .last-row p {
    margin: 0;
    text-align: right;
  }

 h1 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #222;
  line-height: 1.3;
 
}

 h2 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #333;
    line-height: 1;
  }



 h3 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #555;
  }




 h4 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #555;
}


p {
  font-family: 'lato', Arial, sans-serif;
  font-family: 'lato', Arial, sans-serif;
  font-size: 18px;
  color: #605D5D;
  font-weight: 300;
  line-height: 1.65;
  letter-spacing: 0.25px;
  
}

p b, p strong {
  font-weight: 700;
}

/* Button font family */
button {
  font-family: 'Bricolage Grotesque', sans-serif;
}

/* Smooth image loading */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.15s ease-in-out;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

/* Preloaded images should appear immediately */
img[src="Feature Intro Thumbnail.png"],
img[src="taskforce.png"],
img[src="coverimage.png"],
img[src="Notionme.png"],
img.preloaded {
  opacity: 1 !important;
  transition: none !important;
  transform: none !important;
}

/* Enhanced mobile image loading */
@media (max-width: 768px) {
  img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.25s ease-in-out, transform 0.25s ease-in-out;
    transform: translateY(10px);
  }
  
  img[loading="lazy"].loaded {
    opacity: 1;
    transform: translateY(0);
  }
  
 
  

}

/* Universal image animations - works on all devices and pages */
.image-item, .content-image, .photo-row {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  will-change: opacity, transform;
}

.image-item.in-view, .content-image.in-view, .photo-row.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animations for image grids */
.image-grid .image-item:nth-child(1) { transition-delay: 0ms; }
.image-grid .image-item:nth-child(2) { transition-delay: 150ms; }
.image-grid .image-item:nth-child(3) { transition-delay: 300ms; }

/* Special handling for preloaded images */
.image-item.preloaded, .content-image.preloaded, .photo-row.preloaded {
  opacity: 1;
  transform: none;
  transition: none;
}

/* Feature Gallery - News article stream style */
.feature-gallery {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin: 32px 0;
}

.feature-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  background: #fff;
  border-radius: 24px;
  border: .5px solid rgba(0, 0, 0, 0.08);
}

.feature-content {
  order: 2; /* Put content after image */
}

.feature-headline {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 24px;
  font-weight: 625;
  color: #333;
  margin: 0 0 24px 0;
  line-height: 1.3;
}

.feature-description {
  font-size: 17px;
  line-height: 1.6;
  color: #737373;
  margin: 0;
}

.feature-image {
  order: 1; /* Put image on top */
  width: 100%;
  height: auto; /* Let container fit image height */
}

/* Feature image styling is handled by .image-item img which provides:
   - Box shadow: 0 2px 8px rgba(0, 0, 0, 0.1)
   - Border radius: 8px
   - Lightbox functionality
   - Fade-in animations
*/
.feature-image img {
  width: 100%;
  height: auto; /* Natural image height */
  max-height: 480px; /* Uniform max height for consistency - 20% taller */
  object-fit: cover; /* Maintain aspect ratio and fill container */
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .feature-card {
    padding: 20px;
  }
  
  .feature-headline {
    font-size:20px;
    margin-bottom: 8px;
  }
  
  .feature-description {
    font-size: 18px;
  }
}

.floating-toolbar {
  position: fixed;
  left: 50%;
  top: 32px;
  bottom: auto;
  transform: translateX(-50%);
  display: flex;
  gap: 1.5rem;
  background: rgb(255, 255, 255,.65); /* More pronounced glass */
  border-radius: 28px;
  border: .5px solid rgb(51, 51, 51, .15);
  backdrop-filter: blur(16px) saturate(50%); /* Stronger blur */
  -webkit-backdrop-filter: blur(16px) saturate(50%);
  padding: 8px;
  z-index: 1000;
  width: auto;
  overflow: visible;
  box-shadow:
    0 2px 8px 0 rgba(31, 38, 135, 0.06),  /* even lighter main shadow */
    0 1px 2px 0 rgba(80, 80, 120, 0.03),   /* very subtle secondary shadow */
    0 0.5px 1px 0 rgba(255,255,255,0.05); /* faint highlight */

  }
  
.floating-toolbar.animate-toolbar {
  animation: floatIn 1.2s cubic-bezier(0.23, 1, 0.32, 1);
  animation-fill-mode: both;
}

@keyframes floatIn {
  0% {
    opacity: 0;
    top: 72px; /* 32px + 40px offset */
    transform: translateX(-50%) scale(0.98);
  }
  100% {
    opacity: 1;
    top: 32px;
    transform: translateX(-50%) scale(1);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

  .toolbar-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  font-family: 'Bricolage Grotesque', sans-serif;
  color: #737373;
  border: 1px solid rgba(255, 255, 255, 0.05);

  
  text-decoration: none;
  border-radius: 1.2rem;
  padding: 8px 10px;
  transition: background 0.2s, box-shadow 0.2s, color 0.2s;
  vertical-align: middle;
  width:auto;

  
}

.toolbar-btn svg {
  display: block;
  height: 16px;
  width: auto;
}

.toolbar-btn:hover {
  background: #ffffff;
  color: #333333;
outline: none;
border: 1px solid rgba(13, 11, 70, 0.05);

}

 .toolbar-btn:focus {
    background: rgba(255,255,255,0.85);
    color: #222;
    outline: none;
    border: 1px solid rgba(13, 11, 70, 0.15);
  
  }

.toolbar-btn.active,
.toolbar-btn[aria-current="page"] {
    background: rgba(255,255,255,0.85);
    border: 1px solid rgba(13, 11, 70, 0.15);
    color: #222;



}

.toolbar-hamburger {
  display: none;
  background: rgba(255,255,255,0.7);
  border: none;
  border-radius: 50%;
  padding: 8px;
  box-shadow: 0 2px 8px rgba(31, 38, 135, 0.06);
  cursor: pointer;
  z-index: 1100;
}

.toolbar-options {
  display: flex;
  gap: 1.5rem;
  z-index: 1100;
}

.toolbar-hamburger .icon-close {
  display: none;
}
.floating-toolbar.open .toolbar-hamburger .icon-hamburger {
  display: none;
}
.floating-toolbar.open .toolbar-hamburger .icon-close {
  display: inline;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin: 64px 0;
  margin-left:60px;
}


@media (max-width: 515px) {



    .toolbar-scrim {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(30, 34, 45, 1);
        z-index: 1040;
        transition: opacity 0.1s;
        opacity: 2;
      }
  

    .landing-content h1 {
        font-family: 'Bricolage Grotesque', sans-serif ;
        font-size: 32px;
        font-weight: 800;
        margin-bottom: 0.5rem;
        color: #222;
        
      }
      
 
 
 
    .floating-toolbar {
   left:98vw;
    bottom: 32px;
    gap: 8px;
    background: none;
    border-style: none;
    box-shadow:none;
    backdrop-filter: none;
    
  }


  .toolbar-btn {
    font-size: 1rem;
    padding: 16px;
    border-radius:8px;
    bottom: 32px;
    justify-content: left;
    line-height: 1.6;
  }


  #actionButton{
   width:100%;

}


  .landing-content h1 {
    font-size: 32px;
    width:auto;
    line-height: 1.5;
  }

  .landing-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height:auto;
    width: 88vw;
    text-align: center;
    text-align: left;
    background-color: white;
    padding:24px;
    border-radius:32px;
  }

  .answer-content {
    min-width: 0;
    width: 88vw;
    box-sizing: border-box;
    text-align: center;
    text-align: left;
    background-color: rgb(255, 255, 255);
    padding:24px;
    border-radius:32px;
    height: 100%;
    border-style: solid;
    border-color: rgba(74, 60, 47, 0.095);
    border-width: 1px;
  transition: box-shadow .25s;
    box-shadow:75px var(--card-box-shadow-1-y) var(--card-box-shadow-1-blur) var(--card-box-shadow-1), 0px var(--card-box-shadow-2-y) var(--card-box-shadow-2-blur) var(--card-box-shadow-2), 0 0 0 1px var(--card-border-color);
   margin-bottom: 24px;
   
  }




  .last-row{
    width: 100%;
    max-width: 100vw;
    margin-bottom: 0;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 16px;
    margin-top: 24px;
  }

  .last-row-content {
    align-items: flex-start;
  }

  .last-row .social-row {
    justify-content: flex-start;
  }

  .last-row p {
    text-align: left;
  }


  .toolbar-hamburger {
    display: block;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    padding: 5px;
    box-shadow: 0 2px 8px rgba(31, 38, 135, 0.06);
    cursor: pointer;
    z-index: 1100;
    border: .5px solid rgb(51, 51, 51, .15);
    border-style: solid;
    align-items: center;
    width: 50px;
    height:50px;
  }

 
    .toolbar-hamburger {
      display: block;
      position: fixed;
      right: 24px;
      left: auto;
      z-index: 1200;
    }
   
  





  .floating-toolbar.open .toolbar-options {
    display: flex;
  }





  .toolbar-options {
    display: flex;
    flex-direction: column;
    position: fixed;
    right: 0;
    bottom: -50px;
    width: calc(100vw - 32px);
    max-width: 480px;
    min-width: 0;
    margin: 0 auto 12px auto;
    background: rgba(255,255,255,1);
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -8px 32px 0 rgba(31, 38, 135, 0.12), 0 1.5px 6px 0 rgba(80, 80, 120, 0.08);
    z-index: 1100;
    overflow-y: auto;
    max-height: 70vh;
    padding: 32px 16px 32px 16px;
    text-align: left;
    border: none;
    gap: 16px;
    margin-bottom: 0;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(.4,0,.2,1);
    align-items: stretch;
  }
  .floating-toolbar.open .toolbar-options {
    transform: translateY(0);
  }
  .toolbar-options::before {
    content: "";
    display: block;
    width: 48px;
    height: 5px;
    background: #d1d5db;
    border-radius: 3px;
    margin: 0 auto 20px auto;
    cursor: pointer;
  }
}



.photo-row {
  display: flex;
  flex-wrap: nowrap;         /* Prevent wrapping */
  gap: 8px;
  justify-content: flex-start;
  align-items: center;
  overflow-x: auto;          /* Enable horizontal scroll */
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
  scrollbar-width: thin;     /* Optional: thinner scrollbar for Firefox */
}

.photo-row img {
  width: auto;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(31, 38, 135, 0.08);
  transition: transform 0.15s;
  flex: 0 0 auto;     
  gap:48px;       /* Prevent shrinking/growing */
}

.photo-row img:hover {
filter: blur(.5px);}



.lightbox {
  position: fixed;
  z-index: 2000;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(30,34,45,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.lightbox-content {
  background: #fafafa;
  border-radius: 24px;
  padding: 56px;
  width: 50vw;
  height: 72vh;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.lightbox-image-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  width: 100%;
  min-height: 0;
  gap: 12px;
}



.lightbox img {
  max-width: 100vw;
  max-height: 50vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.lightbox p {
  color: #333;
  font-size: 16px;
  margin-bottom: 0;
  text-align: center;
}

#lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 25%;
  padding: 8px;
  box-shadow: 0 2px 8px rgba(31, 38, 135, 0.06);
  z-index: 1100;
  border: .5px solid rgb(51, 51, 51, .15);
  border-style: solid;
  align-items: center;
  width: 50px;
  height:48px;
}

/* Lightbox navigation container */
.lightbox-nav {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  align-items: center;
  justify-content: center;
}

#lightbox-prev, #lightbox-next {
  background: rgba(255,255,255,0.95);
  border: 1px solid #e0e0e0;
  font-size: 1.5rem;
  color: #333;
  cursor: pointer;
  position: static;
  z-index: 1;
  padding: 12px;
  border-radius: 50%;
  transition: background 0.2s, transform 0.2s;
  height: 48px;
  width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#lightbox-prev:hover, #lightbox-next:hover { 
  background: #f1f1f1; 
  transform: scale(1.05);
}

#lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255,255,255,0.95);
  border: 1px solid #e0e0e0;
  border-radius: 50%;
  padding: 8px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#lightbox-close:hover {
  background: #f1f1f1;
  transform: scale(1.05);
}
.lightbox-content {
  position: relative;
}


    


      .lightbox img {
        max-width: 100%;
        max-height: 55vh;
        width: auto;
        height: auto;
        object-fit: contain;
        border-radius: 8px;
        margin-bottom: 16px;
        flex-shrink: 0;
      }

      .lightbox-image-container {
        max-height: 70vh;
        overflow: hidden;
      }

/* Image optimization and animations */
img {
  transition: opacity 0.6s ease, filter 0.6s ease;
}

img[src="coverimage.png"] {
  width: auto;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: 16px;
}

img[src="Clvye.gif"] {
  width: auto;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: 16px;
}

img.loaded {
  opacity: 1 !important;
  filter: none !important;
}

/* GIF Styling - 16:10 aspect ratio */
img[src$=".gif"], 
img[src*=".gif"] {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 2px 2px rgba(31, 38, 135, 0.15);
  display: block;
  box-sizing: border-box;
}

/* Mobile-specific GIF fixes */
@media (max-width: 768px) {
  img[src$=".gif"], 
  img[src*=".gif"] {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    flex-shrink: 1;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    overflow: hidden;
  }
}

/* Floating Toolbar */
.floating-logo {
  position: fixed;
  top: 4.6vh;
  left: 8vw;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 8px 0 rgba(31, 38, 135, 0.06), 0 1px 2px 0 rgba(80, 80, 120, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-logo:hover {
  transform: scale(1.05);
}

.welcome-message {
  position: absolute;
  top: 50%;
  left: calc(100% + 16px);
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(31, 38, 135, 0.1);
  opacity: 1;
  transition: opacity 0.5s ease;
  z-index: 1001;
  pointer-events: none;
}

.welcome-message.fade-out {
  opacity: 0;
}

.welcome-message::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -6px;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 6px solid rgba(255, 255, 255, 0.95);
}

.logo-image {
  width: 45px;
  height: 45px;
  object-fit: contain;
  border-radius: 50%;
}





#tagdiv {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.context-tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  background: rgba(148, 123, 87, 0.1);
  color: #947b57;
  border: 1px solid rgba(148, 123, 87, 0.2);
  border-radius: 16px;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
}



/* AI Answer Machine */
#questionsBox {
  max-width: 95vw;
  border-radius: 24px;
}

#identifier {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-start;
  align-items: stretch;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(74, 60, 47, 0.065);
  /* Extend line full width */
  position: relative;
  margin-left: -24px;
  margin-right: -24px;
  padding-left: 24px;
  padding-right: 24px;
}

#identifier p {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  color: #737373;
  text-wrap: nowrap;
}

#statusID {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(148, 123, 87, 0.08);
  border-radius: 24px;
  position: relative;
  width:fit-content
}

#statusID::before {
  content: '';
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: statusBlink .8s infinite;
  box-shadow: 0 0 4px rgba(34, 197, 94, 0.4);
}

@keyframes statusBlink {
  0%, 40% {
    opacity: 1;
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.6), 0 0 16px rgba(34, 197, 94, 0.2);
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    background: #16a34a;
    box-shadow: 0 0 4px rgba(34, 197, 94, 0.3), 0 0 8px rgba(34, 197, 94, 0.1);
    transform: scale(0.9);
  }
  60%, 100% {
    opacity: 1;
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.6), 0 0 16px rgba(34, 197, 94, 0.2);
    transform: scale(1);
  }
}

#QA {
  margin-bottom: 24px;
  text-align: left;
  border-bottom: 1px solid rgba(74, 60, 47, 0.065);
  padding-bottom: 20px;
  /* Extend line full width */
  position: relative;
  margin-left: -24px;
  margin-right: -24px;
  padding-left: 24px;
  
}

#QA p {
  margin: 0 0 8px 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

#question {
  margin: 0 0 16px 0;
  color: #333;
  font-size: 18px;
  font-weight: 600;
}

#answer1 {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(74, 60, 47, 0.2);
  border-radius: 12px;
  background: white;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

#answer1:focus {
  outline: none;
  border-color: #947b57;
}

#radioPills {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 12px;
}

/* Mobile horizontal scroll for radio pills */
@media (max-width: 768px) {
  #radioPills {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 8px 0;
  }
  
  #radioPills::-webkit-scrollbar {
    display: none;
  }
  

  
  .radio-pill {
    flex-shrink: 0;
    white-space: nowrap;
  }
  
  .radio-pill:last-child {
    margin-right: 24px;
  }
}

.radio-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background: #fafafa;
  border: 1.5px solid rgb(148, 123, 87,.35);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.radio-pill:hover {
  background: rgba(148, 123, 87, 0.08);
  border-color: rgba(148, 123, 87, 0.4);
  transform: translateY(-1px);
  
}

.radio-pill.selected {
  background: rgba(148, 123, 87, 0.15);
  border-color: #947b57;
  color: #333;
  cursor: default;
}

.radio-pill.selected:hover {
  background: rgba(148, 123, 87, 0.15);
  transform: translateY(0);
}

.radio-pill.disabled {
  opacity: 0.7 !important;
  cursor: pointer !important;
  background: rgba(0, 0, 0, 0.08) !important;
  color: #737373 !important;
  border-color: rgba(0, 0, 0, 0.15) !important;
}

.radio-pill.disabled:hover {
  background: rgba(0, 0, 0, 0.12) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1) !important;
}

#output {
  padding: 16px;
  background: rgba(148, 123, 87, 0.05);
  border-radius: 12px;
  min-height: 60px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 8px;
}

.typer-wrapper {
  display: flex;
  align-items: center;
  width: 100%;
}

#redoButton {
  align-self: flex-end;
  margin-top: 4px;
  /* Ensure perfect centering on all devices */
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 34px;
  height: 34px;
  padding: 5px !important;
  /* Force consistent rendering across browsers */
  box-sizing: border-box;
  line-height: 1;
}




#redoButton svg {
  display: block;
  margin: 0 auto;
  width: 18px ;
  height: 18px;
}

/* Interactive GIF Styles */
.interactive-gif {
  position: relative;
  cursor: pointer;
}

.gif-interactive {
  transition: opacity 0.3s ease;
  width: 100%;
  height: auto;
  display: block;
  max-width: 100%;
  vertical-align: top;
}

.gif-play-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.8;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.interactive-gif:hover .gif-play-indicator {
  opacity: 1;
}

.gif-annotation {
  text-align: center;
  font-size: 12px;
  color: #737373;
  margin-top: 8px;
  font-style: italic;
}

/* Show/hide text based on device */
.desktop-text {
  display: inline;
}

.mobile-text {
  display: none;
}

@media (max-width: 768px) {
  .desktop-text {
    display: none;
  }
  
  .mobile-text {
    display: inline;
  }
}

/* Image Slider Styles */
.image-slider-container {
  position: relative;
  width: 100%;
  background: transparent;
  padding: 0;
  margin: 0;
}

.image-slider {
  position: relative;
  width: 100%;
  height: auto;
  overflow: hidden;
  border-radius: 8px;
  cursor: grab;
  user-select: none;
  background: transparent;
  touch-action: none; /* Prevent default touch behaviors for better drag performance */
}

.image-slider:active {
  cursor: grabbing;
}

.slider-image {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
  object-fit: contain;
  max-height: none;
  border: none;
  box-shadow: none;
  background: transparent;
}

/* Override any parent .feature-image img styles */
.image-slider-container .slider-image {
  object-fit: contain !important;
  max-height: none !important;
  box-shadow: none !important;
}

.slider-before {
  position: relative;
  z-index: 1;
  display: block;
}

.slider-after {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  clip-path: polygon(50% 0%, 100% 0%, 100% 100%, 50% 100%);
  transition: clip-path 0.1s ease;
}

.slider-handle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  background: rgba(148, 123, 87, 0.8);
  transform: translateX(-50%);
  z-index: 3;
  cursor: grab;
  transition: left 0.1s ease;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
}

.slider-handle:active {
  cursor: grabbing;
}

.slider-button {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 48px;
  height: 48px;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.slider-button:hover {
  background: rgba(0, 0, 0, 1);
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 14px;
  color: #737373;
  font-style: italic;
}

.slider-label-left,
.slider-label-right {
  font-weight: 500;
}

@media (max-width: 768px) {
  .image-slider-container {
    width: 100%;
  }
  
  .image-slider {
    width: 100%;
    height: auto;
  }
  
  .slider-image {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
  }
  
  .slider-before,
  .slider-after {
    width: 100% !important;
    height: auto !important;
  }
  
  .slider-after {
    object-fit: cover !important;
    object-position: center !important;
  }
  
  /* Ensure slider handle matches the actual image height */
  .slider-handle {
    height: 100% !important;
  }
  
  .slider-button {
    width: 44px;
    height: 44px;
  }
  
  /* Increase touch target for slider handle on mobile */
  .slider-handle {
    width: 4px; /* Slightly wider for easier touch */
    transition: left 0.05s ease; /* Faster transition for mobile responsiveness */
  }
  
  .slider-after {
    transition: clip-path 0.05s ease; /* Faster transition for mobile responsiveness */
  }
  
  .slider-labels {
    font-size: 12px;
    margin-top: 8px;
  }
  
  /* Hide icons in feature-info on mobile */
  .feature-info .feature-item svg {
    display: none;
  }
}

/* AI Avatar thinking state - golden pulsing border */
.ai-avatar.thinking {
  border: 1px solid rgba(148, 123, 87, 0.5);
  border-radius: 100%;
  animation: goldenPulse 1.5s ease-in-out infinite;
}

/* Blur effect utility class */
.blur-text {
  filter: blur(3px);
  transition: filter 0.3s ease;
}

.blur-text:hover {
  filter: blur(0px);
}

/* GIF Loading State */
.gif-container {
  position: relative;
  display: inline-block;
  width: 100%;
  min-height: 0; /* Prevent height jumping */
}

.gif-loading {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gif-loaded {
  opacity: 1;
}

.gif-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 3px solid rgba(148, 123, 87, 0.2);
  border-top: 3px solid #947b57;
  border-radius: 50%;
  animation: gifSpin 1s linear infinite;
  z-index: 1;
}

@keyframes gifSpin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes goldenPulse {
  0% {
    border-color: rgba(148, 123, 87, 0.5);
    box-shadow: 0 0 0 0 rgba(148, 123, 87, 0.3);
  }
  50% {
    border-color: rgba(148, 123, 87, 0.8);
    box-shadow: 0 0 0 8px rgba(148, 123, 87, 0);
  }
  100% {
    border-color: rgba(148, 123, 87, 0.5);
    box-shadow: 0 0 0 0 rgba(148, 123, 87, 0);
  }
}

/* Password Gate Styles */
.password-gate {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(245, 245, 245, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  /* Prevent scroll issues on mobile */
  overflow: hidden;
  -webkit-overflow-scrolling: touch;
}

/* Prevent body scroll when password gate is visible */
body:has(.password-gate:not([style*="display: none"])) {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}

/* Fallback for browsers that don't support :has() */
.password-gate-active {
  overflow: hidden !important;
  position: fixed !important;
  width: 100% !important;
  height: 100% !important;
}

.password-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input-wrapper input {
  padding-right: 60px; /* Make room for the toggle button */
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 6px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
  font-size: 12px;
  color: #737373;
  min-width: 24px;
  height: 24px;
}

.password-toggle:hover {
  background-color: rgba(148, 123, 87, 0.1);
}

.password-toggle-icon {
  flex-shrink: 0;
}

.password-toggle-text {
  font-weight: 500;
  white-space: nowrap;
}

/* Email copy functionality */
.email-access-text {
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  line-height: 1.4;

  
}

.email-address {
  font-weight: 500;
  color: #5b4b34;
  text-decoration: underline;
  line-height: 1.4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-align: center;
  font-size: 16px;
}

.email-copy-btn {
  background-color: rgba(148, 123, 87, 0.025);  
  border: .25px solid rgba(148, 123, 87, 0.25);
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  padding: 8px 8px;
  border-radius: 4px;
  transition: all 0.5s ease;
  color: #737373;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  vertical-align: baseline;
  position: relative;
}

.email-copy-btn svg {
  transition: opacity 0.2s ease-out, transform 0.2s ease-out;
  transform-origin: center;
}

.email-copy-btn svg.copy-icon {
  opacity: 1;
  transform: scale(1);
}

.email-copy-btn svg.copy-success-icon {
  opacity: 0;
  transform: scale(0.8);
  position: absolute;
}

.email-copy-btn:hover {
  background-color: rgba(148, 123, 87, 0.065);
  color: #947b57;
}

.copy-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}



.password-modal {
  background: white;
  border-radius: 16px;
  padding: 40px;
  max-width: 450px;
  width: 90%;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(148, 123, 87, 0.1);
  text-align: center;
}

.password-header {
  margin-bottom: 32px;
}

.password-header svg {
  margin-bottom: 16px;
}

.password-header h2 {
  font-size: 28px;
  font-weight: 700;
  color: #222;
  margin-bottom: 8px;
}

.password-header p {
  color: #737373;
  font-size: 14px;
  line-height: 1.5;
}

.password-form {
  margin-bottom: 24px;
}

.input-group {
  text-align: left;
  margin-bottom: 20px;
}

.input-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin-bottom: 8px;
}

.input-group input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #e1e5e9;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

.input-group input:focus {
  outline: none;
  border-color: #947b57;
  box-shadow: 0 0 0 3px rgba(148, 123, 87, 0.1);
}

.password-submit {
  width: 100%;
  background: #333;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 500;
  font-family: 'Bricolage Grotesque', sans-serif;
  cursor: pointer;
  transition: background 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.password-submit:hover {
  background: #222;
}

.password-submit:active {
  transform: translateY(1px);
}

.password-error {
  color: #dc3545;
  font-size: 14px;
  margin-top: 12px;
  padding: 8px 12px;
  background: rgba(220, 53, 69, 0.1);
  border-radius: 6px;
  border: 1px solid rgba(220, 53, 69, 0.2);
}

/* Tokens exhausted alert - similar to password error but with info styling */
.tokens-alert {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #947b57;
  font-size: 14px;
  line-height: 1.4;
  margin-top: 8px;
  margin-left: auto;
  margin-right: auto;
  padding: 12px;
  background: #fafafa;
  border-radius: 12px;
  border: .5px solid rgba(148, 123, 87, 0.2);
  opacity: 0;
  height: 0;
  width:fit-content;
  margin-bottom: 0;
  overflow: hidden;
  transform: translateY(-10px);
  transition: opacity 0.4s ease-in-out, height 0.4s ease-in-out, transform 0.4s ease-in-out, margin 0.4s ease-in-out;
  text-align: center;
}

.tokens-alert.show {
  opacity: 1;
  height: auto;
  margin-bottom: 8px;
  transform: translateY(0);
}

.tokens-alert svg {
  flex-shrink: 0;
}

/* Desktop only - divider after notification icon */
.tokens-divider {
  width: 1px;
  height: 16px;
  background-color: rgba(148, 123, 87, 0.2);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .tokens-divider {
    display: none;
  }
  
  .tokens-alert svg:first-child {
    display: none;
  }
  
  /* Ensure copy button and its SVGs are always visible on mobile */
  .tokens-copy-btn {
    display: inline-flex !important;
  }
  
  .tokens-copy-btn svg.copy-icon {
    display: inline-flex !important;
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.2s ease-out, transform 0.2s ease-out;
  }
  
  .tokens-copy-btn svg.copy-success-icon {
    display: inline-flex;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.2s ease-out, transform 0.2s ease-out;
    position: absolute;
  }
}

.tokens-copy-btn {
  background-color: rgba(148, 123, 87, 0.025);
  border: .25px solid rgba(148, 123, 87, 0.25);
  cursor: pointer;
  padding: 2px;
  margin-left: 4px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.tokens-copy-btn svg {
  transition: opacity 0.2s ease-out, transform 0.2s ease-out;
  transform-origin: center;
}

.tokens-copy-btn svg.copy-icon {
  opacity: 1;
  transform: scale(1);
}

.tokens-copy-btn svg.copy-success-icon {
  opacity: 0;
  transform: scale(0.8);
  position: absolute;
}

.tokens-copy-btn:hover {
  background-color: rgba(148, 123, 87, 0.065);
}

/* Mobile responsive - left align tokens alert */
@media (max-width: 768px) {
  .tokens-alert {
    justify-content: flex-start;
    text-align: left;
    padding:18px;
    width:auto;
    margin-left: 0;
    margin-right: 0;
  }

  .tokens-copy-btn {
    padding: 6px;
    margin-left: 8px;
    background-color: rgba(148, 123, 87, 0.08) !important;
    border: 1px solid rgba(148, 123, 87, 0.3) !important;
    min-width: 32px;
    min-height: 32px;
  }

  .tokens-copy-btn svg {
    width: 18px;
    height: 18px;
  }
}

.password-footer {
  border-top: 1px solid #e1e5e9;
  padding-top: 20px;
}

.password-footer p {
  font-size: 14px;
  color: #737373;
  margin: 0;
}

.password-footer a {
  color: #947b57;
  text-decoration: none;
}

.password-footer a:hover {
  text-decoration: underline;
}

/* Shake animation for incorrect password */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Article/Documentation Layout Styles */
.article-layout {
  display: flex;
  max-width: 1200px;
  width:95vw;
  margin: 80px auto 0;
  padding: 0 24px;
  gap: 40px;
  align-items: flex-start;
  margin-top: 150px;
}

/* Scroll offset for anchor links to account for floating toolbar */
html {
  scroll-padding-top: 120px; /* Adjust based on toolbar height */
  scroll-behavior: smooth; /* Smooth scrolling animation */
}

/* Alternative method for better browser support */
.article-content h2[id] {
  scroll-margin-top: 120px;
}

.table-of-contents {
  flex: 0 0 250px;
  position: sticky;
  top: 120px;
  height: fit-content;
}

.toc-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #737373;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 16px;
  background: #f8f9fa;
  border-radius: 8px;
  text-align: left;
  border: 1px solid rgba(148, 123, 87, 0.05);
  border-radius: 8px 8px 0px 0px;
}

.toc-header svg {
  flex-shrink: 0;
}

.toc-nav {
  display: flex;
  flex-direction: column;
  background-color: #f8f9fa;
  border: 1px solid rgba(148, 123, 87, 0.05);
  border-radius: 0px 0px 8px 8px;
  border-top: none;
  
}

.toc-link {
  display: block;
  padding: 12px 16px;
  color: #737373;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s ease;
  border-left: 2px solid transparent;
}

.toc-link:hover {
  background: rgba(148, 123, 87, 0.05);
  color: #947b57;
  border-left-color: #947b57;
}

.toc-link.active {
  background: rgba(148, 123, 87, 0.075);
  color: #5b4b34;
  border-left-color: #947b57;
  font-weight: 500;
}

.article-container {
  flex: 1;
  min-width: 0;
  line-height: 1.6;
  margin-bottom:48px;
}

.breadcrumb {
  margin-bottom: 32px;
  font-size: 14px;
  color: #737373;
}

.breadcrumb a {
  color: #947b57;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb-separator {
  margin: 0 8px;
  color: #ccc;
}

.article-header {
  margin-bottom: 40px;
}

.article-header h1 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 24px;
  color: #222;
  line-height: 1.5;
}

.feature-info {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 20px;
  margin: 24px 0;
 
}

.feature-item {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
  font-size: 16px;
  color: #737373;
  
}

.feature-item:last-child {
  margin-bottom: 0;
}

.feature-item svg {
  flex-shrink: 0;
  margin-right: 16px;
}

.inline-link {
  color: #947b57;
  text-decoration: none;
}

.inline-link:hover {
  text-decoration: underline;
}

.article-content {
  font-size: 16px;
  color: #333;
}

.lead-paragraph {
  font-size: 18px;
  color: #444;
  font-weight: 400;
  margin-bottom: 32px;
  line-height: 1.7;
}

.content-image {
  margin: 32px 0;
  text-align: center;
}

.content-image img {
  max-width: 100%; /* Full width */
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Keep GIFs at full width */
.content-image img[src$=".gif"],
.content-image img[src$=".GIF"] {
  max-width: 100%;
}

.highlight-box {
  background: rgba(148, 123, 87, 0.0025);
  border-left: 4px solid #947b57;
  border-top: .25px solid rgba(148, 123, 87, 0.25);
  border-bottom: .25px solid rgba(148, 123, 87, 0.25);
  border-right: .25px solid rgba(148, 123, 87, 0.25);  
  padding: 24px;
  border-radius: 4px 16px 16px 4px;
}

.highlight-box h4 {
  margin-top: 0;
  margin-bottom: 16px;
  color: #5b4b34;
}

.image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 32px 0;
}

.image-item img {
  width: 100%; /* Full width */
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: block;
  margin: 0 auto; /* Center align */
}

/* Keep GIFs at full width in image grids too */
.image-item img[src$=".gif"],
.image-item img[src$=".GIF"] {
  width: 100%;
}



.image-caption {
  font-size: 14px;
  color: #737373;
  text-align: center;
  margin-top: 8px;
  font-style: italic;
}

.code-block {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 20px;
  
  font-family: 'Courier New', monospace;
}

.code-blocks-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 24px 0;
}

@media (max-width: 768px) {
  .code-blocks-grid {
    grid-template-columns: 1fr;
  }
}

.code-block h4 {
  margin-top: 0;
  margin-bottom: 12px;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 18px;
}

.code-block-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 768px) {
  .code-block-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

.code-block-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  padding: 2px;
  margin-bottom: 4px;


 
 
}

.results-section {
  background: #fff;
  
  
  border-left: 2px solid #947b57;
  border-right: 1.5px solid #e9ecef;
   border-top: 1.5px solid #e9ecef;
   border-bottom: 1.5px solid #e9ecef;
 
  border-radius: 4px 16px 16px 4px;
  padding: 24px;
  margin: 40px 0;
  text-align: left;
}

.results-list {
  margin: 24px 0;
}

.results-list li {
  margin-bottom: 16px;
  line-height: 1.6;
  padding-left: 8px;
  font-size: 18px;
}

.results-list li:last-child {
  margin-bottom: 0;
}

.results-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, #d1d5db 20%, #d1d5db 80%, transparent 100%);
  margin: 32px 0 24px 0;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.metric {
  text-align: left;
}

.metric-number {
  font-size: 28px;
  font-weight: 700;
  color: #5b4b34;
  margin-bottom: 8px;
  text-align: left;
}

.metric-label {
  font-size: 11px;
  color: #737373;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: left;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .article-layout {
    flex-direction: column;
    margin-top: 60px;
    padding: 0 16px;
    margin-top: 132px;
    width:88vw;
  }
  
  .table-of-contents {
    display: none; /* Hide TOC on mobile */
  }
  
  .article-container {
    margin-top: 0;
  }
  
  .article-header h1 {
    font-size: 32px;
    line-height: 1.2;
  }

  h2 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #333;
    line-height: 1;
  }

  .feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
    font-size: 14px;
    color: #737373;
  }
  
  .image-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .metrics-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .results-section {
    padding: 24px 20px;
    margin: 32px 0;
  }
  
  .results-list li {
    margin-bottom: 12px;
    padding-left: 4px;
  }
  
  .results-divider {
    margin: 24px 0 20px 0;
  }
  
 
  
  /* Password gate mobile responsive */
  .password-modal {
    width: 65vw;
    max-width: 75vw;
    margin: 0 16px;
    padding: 32px 24px;
  }
  
  .password-header h2 {
    font-size: 24px;
  }
  
  .password-header p {
    font-size: 14px;
  }
  
  .input-group input {
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 14px 16px;
  }
  
  .password-submit {
    padding: 14px 20px;
    font-size: 16px;
  }
  
  /* Adjust scroll offset for mobile */
  html {
    scroll-padding-top: 100px; /* Less offset needed on mobile */
  }
  
  .article-content h2[id] {
    scroll-margin-top: 100px;
  }
}

.typer-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 18px;
  color: #333;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.typer-wrapper .ai-avatar {
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  flex-shrink: 0 !important;
  margin-top: 2px !important;
  display: block !important;
  background: #f0f0f0;
  border: 1px solid #ddd;
}

#typedText {
  font-family: 'Courier New', monospace;
  word-break: keep-all;
  overflow-wrap: normal;
  hyphens: none;
  white-space: pre-wrap;
  max-width: 100%;
  flex: 1;
  font-size: 18px;
  line-height: 1.6;
}


#typedText a {
  color: #947b57;
  text-decoration: underline;
  cursor: pointer;
}

#typedText a:hover {
  color: #7a6548;
  text-decoration: none;
}

#buttonSet {
  display: flex;
}

#buttonLine {
  display: flex;
  gap: 8px;
}

 #secondaryButton {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: none;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}




#secondaryButton {
  background: #fafafa;
  color: #333;
  border: 1px solid rgba(148, 123, 87, 0.2);
}

#secondaryButton:hover {
  background: #f5f5f5;
  transform: translateY(-1px);
}




/* ========================================
   RESPONSIVE MEDIA QUERIES - CONSOLIDATED
======================================== */

/* Large tablets and small desktops */
@media (max-width: 900px) {
  .landing-grid {
    margin-top: 100px;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 95vw;
  }

    .about-grid {
      margin-top: 100px;
      grid-template-columns: 1fr;
      gap: 24px;
      max-width: 95vw;
    }
  
  .landing-content {
    max-width: 95vw;
    min-width: 0;
    margin: 0 auto;
  }


  .floating-logo {
    top: 4vh;
    left: 3vw;
    width: 40px;
    height: 40px;
  }



}


@media (max-width: 1024px) {
  .landing-grid {
    margin-top: 100px;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 95vw;
  }

  .about-grid {
    margin-top: 100px;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 95vw;
  }
  
  .landing-content {
    max-width: 95vw;
    min-width: 0;
    margin: 0 auto;
  }


  .floating-logo {
    top: 4vh;
    left: 3vw;
    width: 40px;
    height: 40px;
  }

  .answer-content {
    min-width: 0;
    width: 95vw;
    max-width: 95vw;
    box-sizing: border-box;
    text-align: center;
    text-align: left;
    background-color: rgb(255, 255, 255);
    padding:24px;
    border-radius:32px;
    height: 100%;
    border-style: solid;
    border-color: rgba(74, 60, 47, 0.095);
    border-width: 1px;
  transition: box-shadow .25s;
    box-shadow:75px var(--card-box-shadow-1-y) var(--card-box-shadow-1-blur) var(--card-box-shadow-1), 0px var(--card-box-shadow-2-y) var(--card-box-shadow-2-blur) var(--card-box-shadow-2), 0 0 0 1px var(--card-border-color);
   margin-bottom: 24px;
   margin-top:8px;
   
  }



}

/* Tablets */
@media (max-width: 768px) {
  .project-grid {
    grid-template-columns: 1fr;
    max-width: 90vw;
    margin-bottom: 48px;
  }



  .floating-logo {
    top: 3.8vh;
    left: 2.8vw;
    width: 40px;
    height: 40px;
  }
  
  .logo-image {
    width: 48px;
    height: 48px;
  }
  
}

/* Mobile devices */
@media (max-width: 600px) {
  /* Floating logo adjustments */
  .floating-logo {
    top: 6.35vh;
    left: 6.5vw;
    width: 48px;
    height: 48px;
  }
  
  .logo-image {
    width: 42px;
    height: 42px;
  }
  
  /* Show welcome message on mobile (same position as desktop) */
  
  /* Mobile toolbar (bottom sheet) */
  .toolbar-options {
    display: flex;
    flex-direction: column;
    position: fixed;
    right: 0;
    bottom: -50px;
    width: calc(100vw - 32px);
    max-width: 480px;
    min-width: 0;
    margin: 0 auto 12px auto;
    background: rgba(255,255,255,1);
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -8px 32px 0 rgba(31, 38, 135, 0.12), 0 1.5px 6px 0 rgba(80, 80, 120, 0.08);
    z-index: 1100;
    overflow-y: auto;
    max-height: 70vh;
    padding: 32px 16px 32px 16px;
    text-align: left;
    border: none;
    gap: 16px;
    margin-bottom: 0;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(.4,0,.2,1);
    align-items: stretch;
  }
  
  .floating-toolbar.open .toolbar-options {
    transform: translateY(0);
  }
  
  .toolbar-options::before {
    content: "";
    display: block;
    width: 48px;
    height: 5px;
    background: #d1d5db;
    border-radius: 3px;
    margin: 0 auto 20px auto;
    cursor: pointer;
  }
  
  /* Photo row mobile adjustments */
  .photo-row {
    flex-wrap: nowrap;
    gap: 8px;
    justify-content: flex-start;
    align-items: center;
    margin-top: 16px;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }
  
  .photo-row img {
    width: 250px;
    height: 250px;
    flex: 0 0 auto;
  }
  
  /* Lightbox mobile adjustments */
  .lightbox-content {
    background: #fafafa;
    border-radius: 24px;
    padding: 24px;
    width: 80vw;
    height: 75vh;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
  }
  




  .answer-content {
    min-width: 0;
    width: 95vw;
    box-sizing: border-box;
    text-align: center;
    text-align: left;
    background-color: rgb(255, 255, 255);
    padding:24px;
    border-radius:32px;
    height: 100%;
    border-style: solid;
    border-color: rgba(74, 60, 47, 0.095);
    border-width: 1px;
  transition: box-shadow .25s;
    box-shadow:75px var(--card-box-shadow-1-y) var(--card-box-shadow-1-blur) var(--card-box-shadow-1), 0px var(--card-box-shadow-2-y) var(--card-box-shadow-2-blur) var(--card-box-shadow-2), 0 0 0 1px var(--card-border-color);
   margin-bottom: 24px;
   margin-top:8px }



  /* AI Answer Machine mobile adjustments */
  #identifier {
    display: flex;
    flex-direction: column-reverse;
    justify-content: flex-start;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(74, 60, 47, 0.065);
  }
  
  #identifier p {
    margin: 0;
    font-size: 12px;
    font-weight: 500;
    color: #737373;
  }

  /* Mobile typer text wrapping */
  .typer-wrapper {
    font-size: 16px;
    flex-wrap: wrap;
  }

  #typedText {
    font-size: 18px;
    line-height: 1.4;
  }

  #output {
    padding: 12px;
    margin: 16px 0;
  }


  .password-modal {
    width: 88vw;
    max-width: 75vw;
    margin: 0 16px;
    padding: 32px 24px;
  }

  .project-grid {
    margin-top: 32px;
    gap: 24px;
    justify-content: start;
    align-items: start;
    max-width: 85vw;
    height: auto;
    padding: 16px;
    animation: fadeInUp 1.0s cubic-bezier(0.23, 1, 0.32, 1);
    margin-bottom: 32px;
  }

}

/* Small mobile devices */
@media (max-width: 515px) {
  .toolbar-scrim {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(30, 34, 45, 0.32);
    z-index: 1040;
    transition: opacity 0.2s;
    opacity: 0;
  }

  .password-modal {
    width: 88vw;
    max-width: 75vw;
    margin: 0 16px;
    padding: 32px 24px;
  }


  .answer-content {
    min-width: 0;
    width: 88vw;
    max-width: 900px;
    box-sizing: border-box;
    text-align: center;
    text-align: left;
    background-color: rgb(255, 255, 255);
    padding:24px;
    border-radius:32px;
    height: 100%;
    border-style: solid;
    border-color: rgba(74, 60, 47, 0.095);
    border-width: 1px;
  transition: box-shadow .25s;
    box-shadow:75px var(--card-box-shadow-1-y) var(--card-box-shadow-1-blur) var(--card-box-shadow-1), 0px var(--card-box-shadow-2-y) var(--card-box-shadow-2-blur) var(--card-box-shadow-2), 0 0 0 1px var(--card-border-color);
   margin-bottom: 24px;
   margin-top:8px 
}
}


