/* Web3 specific styles that override the main styles */
:root {
  --primary-color: #2BB36F;
  --text-color: #ffffff;
  --background-color: #000000;
}

/* Override existing styles */
.website {
  background-color: var(--background-color);
}

/* More specific selector for color override, no !important needed */
.website .text-primary-xl-regular,
.website .text-primary-xl-regular-crop,
.website .text-primary-m-regular,
.website .text-primary-m-regular2,
.website .text-primary-l-regular,
.website .text-primary-s-regular,
.website .text-primary-s-semibold,
.website .text-primary-s-semibold2,
.website .text-primary-2-xl-medium,
.website .text-white-xl-regular,
.website .text-white-2-xl-medium,
.website .text-white-ml-semibold,
.website .text-white-l-regular,
.website .text-white-m-regular {
  color: var(--text-color);
}

/* Add any additional web3-specific styles here */

/* Web3 Projects Grid Layout */
.web3-projects-grid {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: -48px 0 0 0;
  padding: 0;
}

.web3-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  width: 100vw;
  margin: 0;
}

.web3-card {
  background: #18181b;
  border-radius: 24px;
  box-shadow: 0 4px 32px 0 rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 48px;
  width: 100%;
  position: relative;
}

.web3-card img,
.web3-card video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 16px;
  transition: transform 0.35s cubic-bezier(.4,2,.6,1);
}

.web3-card.text-card {
  min-height: unset;
  padding: 48px;
  background: #18181b;
  box-shadow: 0 4px 32px 0 rgba(0,0,0,0.25);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content:space-between ;
}
.text-card-content {
  display: flex;
  gap: 8px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}
.text-card-content a:hover {
  opacity: 0.8;
}
.general-gallery {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  height: 200px;
  gap: 16px;
}

.general-gallery > img {
  height: 100%;
  width: auto;
  border-radius: 8px;
  max-width: 100%;
  max-height: 100%;
  display: block;
  transition: transform 0.3s cubic-bezier(.4,2,.6,1);
}

.general-gallery > img:hover {
  transform: scale(1.07);
}

.web3-card.card-1 { background: #23232b; grid-row: span 2; }
.web3-card.card-2 { background: #1e2a3a; grid-row: span 1; }
.web3-card.card-3 { background: #393726; grid-row: span 1; }
.web3-card.card-4 { background: #412543; grid-row: span 1; }
.web3-card.card-5 { background: #2A203B; grid-row: span 2; }
.web3-card.card-6 { background: #27233F; grid-row: span 1; }
.web3-card.card-7 { background: #3D2C28; grid-row: span 1; }
.web3-card.card-8.text-card { background: #18181b; grid-row: span 1; }

/* Ensure text is readable on bright backgrounds */
.web3-card.card-3, .web3-card.card-7 {
  color: #222;
}
.more-works-title, .more-works-link {
  color: inherit;
}

.more-works-title {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-color);
  margin-bottom: 20px;
  text-align: center;
  font-family: 'Hanken Grotesk', Arial, sans-serif;
  line-height: 1.1;
}

.more-works-link {
  font-size: 1.25rem;
  color: #2BB36F;
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
}

.more-works-link:hover {
  color: #23a05c;
  text-decoration: underline;
} 
.footer {
    background: var(--black-80, #262626);}
.approach-wrapper2 {
        background: var(--black-60, #373737);}

.web3-card.card-3 .web3-card-media {
  border-radius: 100%;
}

#memoji-overlay {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 10vh;
  min-height: 64px;
  max-height: 18vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  background: none;
  z-index: 1002;
  opacity: 0;
  transform: none;
  transition: opacity 0.5s cubic-bezier(.4,2,.6,1);
}
#memoji-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.memoji-teleprompter {
  width: 100vw;
  height: 100%;
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-end;
  justify-content: flex-end;
  background: none;
  gap: 0;
  pointer-events: none;
}
#memoji-transcript {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1440px;
  height: 20vh;
  min-height: 64px;
  max-height: 18vh;
  margin: 0 auto;
  padding: 0 32px 2vh 32px;
  color: #fff;
  font-size: var(--xl-regular-font-size, 54px);
  line-height: var(--xl-regular-line-height, 120%);
  font-family: 'Hanken Grotesk', Arial, sans-serif;
  font-weight: var(--xl-regular-font-weight, 400);
  letter-spacing: var(--xl-regular-letter-spacing, -0.011em);
  text-shadow: 0 2px 8px #000, 0 0 2px #000;
  border-radius: 0;
  box-shadow: none;
  pointer-events: none;
  opacity: 1;
  z-index: 1002;
  overflow: hidden;
  display: flex;
  align-items: center; /* Center vertically */
  justify-content: center; /* Center horizontally */
  text-align: center; /* Center text */
  transition: opacity 0.3s;
  white-space: normal;
  scroll-behavior: smooth;
}

.memoji-mute-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  z-index: 10;
  background: rgba(0,0,0,0.5);
  border: none;
  border-radius: 50%;
  padding: 8px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.web3-card:hover .memoji-mute-btn {
  display: block;
}
.memoji-mute-btn svg {
  display: block;
}

.memoji-mute-btn .icon-muted {
  display: inline-block !important;
}
.memoji-mute-btn .icon-unmuted {
  display: none !important;
}
.memoji-mute-btn.unmuted .icon-muted {
  display: none !important;
}
.memoji-mute-btn.unmuted .icon-unmuted {
  display: inline-block !important;
}

.memoji-mute-btn img {
  /* Ensures icon is white and sized properly */
  filter: brightness(0) invert(1) !important;
  width: 24px;
  height: 24px;
  display: block;
}
.memoji-circle {
  position: absolute;
  width: 120px;
  height: 120px;
  z-index: 1001;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}




/* Overlay for dimming everything except hovered web3 card */
#web3-dim-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.8);
  z-index: 1000;
  pointer-events: none;
  transition: opacity 0.3s;
}
body.web3-dim-active #web3-dim-overlay {
  display: block;
}

.web3-card.web3-card-hovered {
  position: relative;
  z-index: 1001;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.3s;
}

.show-memoji-btn {
  display: none;
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  background: #000000;
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 12px 24px;
  font-size: 1rem;
  font-family: 'Hanken Grotesk', Arial, sans-serif;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  cursor: pointer;
  z-index: 20;
  transition: background 0.2s, color 0.2s;
}
#web3-dim-overlay.active .show-memoji-btn {
  pointer-events: none;
}
#web3-dim-overlay.active {
  pointer-events: none;
}

#memoji-close-btn {
  display: none;
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 1003;
  background: rgba(0,0,0,0.5);
  border: none;
  border-radius: 50%;
  padding: 8px 12px;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  transition: background 0.2s;
}
#memoji-close-btn:active {
  background: #222;
}





#memoji-overlay-controls #memoji-mute-btn img {
  filter: brightness(0) invert(1) !important;
  width: 24px;
  height: 24px;
  display: block;
}
#memoji-mute-btn .icon-muted {
  display: inline-block !important;
}
#memoji-mute-btn .icon-unmuted {
  display: none !important;
}
#memoji-mute-btn.unmuted .icon-muted {
  display: none !important;
}
#memoji-mute-btn.unmuted .icon-unmuted {
  display: inline-block !important;
}
#memoji-overlay.active ~ .website .show-memoji-btn,
#memoji-overlay.active .show-memoji-btn {
  display: none;
}

body.memoji-overlay-active {
  overflow: hidden;
  position: fixed;
  width: 100vw;
}
body.memoji-overlay-active .show-memoji-btn {
  display: none;
}
