/* ============================= HERO / BUBBLES ============================= */
#bubble-container {
  position: relative;
  width: 100%;
  height: 75vh;
  min-height: 300px;
  overflow: hidden;
  background: transparent;
}

#bubble-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

#bubble-container .bubble-title {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  pointer-events: none;
  z-index: 2;
}

#bubble-container .bubble-title h1 {
  margin: 0;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: center;
  line-height: 1;
  font-size: clamp(4rem, 12vw, 9rem);
  color: #fff;
  text-shadow: 0 0 10px rgba(255,107,147,0.28), 0 0 32px rgba(45,229,154,0.08);
  animation: bubbleGlow 35s ease-in-out infinite;
}
#bubble-container .bubble-title h3 {
  margin: 0;
  font-weight: 400;
  font-size: clamp(1rem, 2.2vw, 1.8rem);
  color: rgba(255,255,255,0.92);
  text-align: center;
  opacity: 0.95;
}
@keyframes bubbleGlow {
  0%,100% {
    color: #ff0066;
    text-shadow: 0 0 12px rgba(255,107,147,0.85), 0 0 36px rgba(40,240,138,0.06);
  }
  50% {
    color: #00a6ff;
    text-shadow: 0 0 16px rgba(45, 165, 229, 0.9), 0 0 48px rgba(255,85,140,0.06);
  }
}
/* ============================= SCROLL BUTTON ============================= */
.scroll-button {
  text-align: center; 
  margin-top: 2rem;   
}

.scroll-button a {
  display: inline-block;
  font-size: 1rem;
  color: #ffffffff;
  padding: 0.8rem 1.5rem;
  background: transparent;
  border-radius: 2rem;
  text-decoration: none;
  transition: 0.3s;
}

.scroll-button a:hover {
  background: #ff2d8e;
  color: #fff !important;
  box-shadow: 0 0 15px #ff2d8e;
}
/* ============================= HOME CONTAINER ============================= */
.scene {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
  margin: 100px auto;
  text-align: center;
  max-width: 1000px;
  scroll-margin: 100px; 
}

.scene.visible {
  opacity: 1;
}

.hidden { 
  opacity: 0;        
}
/* ============================= BACKGROUND SNAKE ============================= */
.background-snake {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%; 
  z-index: -1;
  pointer-events: none;
  overflow: visible;
}

#snake path {
  stroke: #ff007f;
  stroke-width: 0.4375rem; 
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 0.625rem #ff2d8e) drop-shadow(0 0 1.25rem #ff2d8e); /* 10px / 20px */
}

.background-snake svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  z-index: -1;
}
.main-home {
  position: relative; 
  overflow: visible;
  min-height: 100vh;
}
/* ============================= OVERLAP IMAGES ============================= */
.overlap-img {
  position: absolute;       
  top: 3.125rem;                 
  left: 50%;
  transform: translateX(60%);
  z-index: 20;             
  width: 12.5rem;                
  overflow: visible;    
}

.shortline .overlap-img {
  position: absolute;
  top: -10rem;        
  left: 80%;       
  transform: translateX(10%); 
  width: 31.25rem;    
  height: auto;
  z-index: 0;
}

.overlap-img.tetramer {
  position: absolute;
  top: -6rem;         
  left: -50%;          
  transform: translateX(40%);
  width: 31.25rem;    
  height: auto;
  opacity: 0.5;
  z-index: 10;       
}

/* ============================= QUESTIONS SECTION ============================= */
.qa-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;  
  margin: 2rem 0;
  width: 100%;
  
}
.qa-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;              
}
.qa-item {
  padding: 2rem;
  margin: 5rem 0;
  border-radius: 2rem;
  background: rgba(255,255,255,0.03);
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  text-align: center;
  color: #ffffffff; 
  max-width: 500px;
  opacity: 0;
  transform: translateX(0);
  transition: transform 0.8s ease, opacity 0.8s ease;
  cursor: default;
  overflow: visible;
  position: relative;
  flex: 1;                 
  z-index: 2;
}
/* ============================= ANIMATION STATES ============================= */
.qa-item.left { 
  transform: translateX(-400px); 
}
.qa-item.right { 
  transform: translateX(400px); 
}

.qa-item.left.visible {
  opacity: 1;
  transform: translateX(-100px);
}
.qa-item.right.visible {
  opacity: 1;
  transform: translateX(100px);
}
.qa-item.left.path-element {
  position: relative;      
}
.qa-item:hover {
  box-shadow: 0 0 10px #ff007f; 
  }

.qa-item:active {
  box-shadow: 0 0 10px #ff007f; 
  transform: scale(0.98);   
}
/* ============================= QUESTIONS + ANSWERS ============================= */
.question {
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  font-size: 1.5rem;
}
.question[aria-expanded="true"] .arrow-down {
  transform: rotate(180deg);
}
.answer {
  opacity: 0;
  overflow: hidden;    
}
.answer.visible {
  max-height: 500px; 
  opacity: 1;
  padding: 0.5rem 0; 
  margin-top: 0.5rem;
}
.answer p { 
  margin: 0; 
  font-weight: 400;
  text-align: center;
}

/* ============================= IMAGE ============================= */
.qa-image {
  display: flex;
  justify-content: flex-end; 
  width: 100%;               
  margin: 3rem;        
  max-width: 750px;         
  position: relative;       
  opacity: 0;              
}

.qa-image.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================= SHORTLINE ============================= */
.story-container {
  position: relative; 
}
.shortline {
  position: relative;
  margin: 0 auto;      
  padding: 10rem 0;
  max-width: 70rem;    
  text-align: center;   
}

.shortline p {
  font-size: 2rem;
  color: #ffffffff;
  background : #041922;
  text-align: center;
  display: inline;
   padding: 0.1em 0.2em;  
   border-radius: 0.5em; 
   

}
.shortline p .glow {
  /*
  color: #ff2d8e;  
  text-shadow:
    0 0 5px #ff2d8e,
    0 0 10px #ff2d8e,
    0 0 20px #ff2d8e,
    0 0 40px #ff2d8e;*/
	color: #ffd9ea; /*brighter core*/
	text-shadow: /*more glow*/
    0 0 4px #ff0076,
    0 0 8px #ff0076,
    0 0 16px #ff0076,
    0 0 32px #ff0076,
    0 0 64px #ff0076,
    0 0 128px #ff0076,
    0 0 256px #ff0076;
}

/* ============================= PROJECT TABS ============================= */
#project-tabs {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  max-width: 700px;
  margin: 3rem auto;
  position: relative;
}
#project-tabs .section {
  padding: 2rem;
  width: 100%;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  max-width: 600px;

}
#project-tabs .section p {
  color: rgb(255, 255, 255) !important; 
  font-weight: 800;

}
#project-tabs .section h1 {
  color: rgb(255, 255, 255) !important; 
  font-weight: 00; 
  font-size: 2.5rem;
}
.section {
  background: rgba(255, 255, 255, 1);
  padding: 2rem;
  width: auto;
  border-radius: 3rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
#project-tabs .section:nth-child(1) { margin-left: 0; z-index: 3; }
#project-tabs .section:nth-child(2) { margin-left: 3rem; z-index: 2; }
#project-tabs .section:nth-child(3) { margin-left: 6rem; z-index: 1; }

#project-tabs .section:hover {
  transform: translateY(-5px) translateX(-5px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  z-index: 10;
}

#project-tabs .section a {
  text-decoration: none;      
}

#project-tabs .section:nth-child(1) { background-color: #02318cbb; border: 0.5rem solid #4cb9fd; color: #4cb9fd; }
#project-tabs .section:nth-child(2) { background-color: #02bdbbbb; border: 0.5rem solid #1beedd; color: #1beedd; }
#project-tabs .section:nth-child(3) { background-color: #bc02c2bb; border: 0.5rem solid #e827ab; color: #e827ab; }

/*============================ Connie and Speechbubble ===================*/

.speech-bubble-home{
  background: rgba(245, 245, 250, 0.95);  
  color: #1c1c1e;                         
  border-radius: 1.5rem;
  padding: 1rem 1.5rem;
  max-width: 280px;
  position: relative;
  font-size: 1rem;
  line-height: 1.5;
  transform: translateX(900px);
  transition: transform 0.6s ease, opacity 0.4s ease;
  opacity: 1;
  z-index: 10;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12); 
}
.speech-bubble-home::after {
  content: "";
  position: absolute;
  top: -10px;
  right: 20px;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid rgba(245, 245, 250, 0.95);
}
.speech-bubble-home p {
  color: inherit;  
  font-weight: 800;    
  margin: 0;
  text-align: center;
}

#connie-outro {
  text-align: center;
  position: relative;
  min-height:  20vh;
    margin-top: 4rem;
}

#connie-outro .connie {
  width: 120px;
  transform: translateX(700px);
}
.connie {
  width: 120px;
  transform: translateX(700px);
}

#connie-intro .connie,
#connie-intro .speech-bubble-home {
  position: relative;
  z-index: 10; 
}

.qa-item.left { transform: translateX(-150px); }
.qa-item.right { transform: translateX(150px); }

.scene:nth-child(odd) { margin-left: 100px; }
.scene:nth-child(even) { margin-left: -100px; }


.spacer-small { height: 2rem; }
.spacer-medium { height: 4rem; }
.spacer-large { height: 8rem; }

.story-container .shortline {
  margin: 3rem 0; 
}

.qa-section {
  margin-bottom: 7rem;
}


/* ============================= VIDEO CONTAINER ============================= */
.video-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2rem 0;
  z-index: 10;
}
.video-container iframe {
  width: 80%;
  max-width: 750px;
  aspect-ratio: 16 / 9;
  border: none;
  z-index: 10;
}