
.sensory-section {
  width: 100%;
  max-width: 1200px;
  margin: 4rem auto;
  padding: 0 5%;
  box-sizing: border-box;

  
  
  perspective: 1000px; 

  
  opacity: 0;
  
  transform: translateY(200px) scale(0.7) rotateX(30deg);

  
  transition: opacity 1.2s ease-out, transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}


.sensory-section.in-view {
  opacity: 1;
  
  transform: translateY(0) scale(1) rotateX(0deg);
}

  .sensory-container {
    display: flex;
    height: 450px;
    width: 100%;
    overflow: hidden;
    box-shadow: var(--shadow-l);
    
    
    border: 3px solid #ffffff; 
    border-radius: 50px; 
    background-color: var(--bg-1); 
  }
  
  
  .sensory-panel {
    flex: 1;
    position: relative;
    text-decoration: none;
    overflow: hidden;
    transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-1);
    
    border: none;
    
    border-right: 1px solid rgba(255, 255, 255, 0.1); 
  }
  
  
  .sensory-panel:last-child {
    border-right: none;
  }
  
  
  .sensory-container:hover .sensory-panel {
    opacity: 0.5;
    filter: grayscale(0.8);
  }
  
  .sensory-container .sensory-panel:hover {
    flex: 2;
    opacity: 1;
    filter: grayscale(0);
    background-color: var(--bg-0);
  }
  
  
  .panel-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
    width: 100%;
  }
  
  .panel-text {
    margin-top: 2rem;
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.4s ease;
  }
  
  .sensory-panel:hover .panel-text {
    transform: translateY(0);
  }
  
  .panel-text h2 {
    font-family: var(--font-serif);
    font-size: 2rem;
    margin: 0;
    color: var(--text-primary);
    text-decoration: none !important;
    border-bottom: none !important;
  }
  
  
  .link-arrow {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--accent-2);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease 0.1s;
  }
  
  .sensory-panel:hover .link-arrow {
    opacity: 1;
    transform: translateY(0);
  }
  
  .art-stack {
    position: relative;
    width: 160px;
    height: 220px;
    perspective: 1000px;
  }
  
  .card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 3px solid #fff;
    transform-origin: bottom center;
  }
  
  
  .card-1 { z-index: 3; transform: rotate(0deg); }
  .card-2 { z-index: 2; transform: rotate(4deg) translate(5px, -5px); }
  .card-3 { z-index: 1; transform: rotate(8deg) translate(10px, -10px); }
  
  
  .art-panel:hover .card-1 { transform: rotate(-15deg) translateX(-40px) translateY(10px) scale(1.05); }
  .art-panel:hover .card-2 { transform: rotate(0deg) translateY(-20px) scale(1.05); }
  .art-panel:hover .card-3 { transform: rotate(15deg) translateX(40px) translateY(10px) scale(1.05); }

  .visualizer-container {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 8px;
    height: 150px;
    width: 200px;
  }
  
  .bar {
    width: 15px;
    background: var(--text-primary);
    border-radius: 10px;
    animation: equalize 1s ease-in-out infinite;
  }
  
  .bar:nth-child(1) { height: 40%; animation-duration: 0.8s; }
  .bar:nth-child(2) { height: 80%; animation-duration: 1.1s; }
  .bar:nth-child(3) { height: 50%; animation-duration: 0.9s; }
  .bar:nth-child(4) { height: 90%; animation-duration: 1.2s; }
  .bar:nth-child(5) { height: 60%; animation-duration: 0.7s; }
  
  
  .music-panel .bar {
    animation-play-state: paused;
    height: 20%;
    transition: height 0.4s ease;
    opacity: 0.5;
  }
  
  .music-panel:hover .bar {
    animation-play-state: running;
    opacity: 1;
  }
  
  @keyframes equalize {
    0% { height: 20%; }
    50% { height: 100%; }
    100% { height: 20%; }
  }

@media (max-width: 768px) {

  .sensory-section {
    transform: translateY(50px) scale(0.9) rotateX(0deg);
}

.sensory-section.in-view {
    transform: translateY(0) scale(1) rotateX(0deg);
}
  
  
  .sensory-container {
    flex-direction: column;
    height: auto;
    border: none;       
    border-radius: 0;   
    background: transparent;
    box-shadow: none;
    gap: 25px;          
    
    
    overflow: visible; 
  }

  
  .sensory-panel {
    width: 100%;
    
    
    height: auto;
    min-height: 340px; 
    padding: 2rem 0; 
    
    border-radius: 32px; 
    
    
    box-sizing: border-box;
    border: 3px solid #ffffff; 
    
    background-color: var(--bg-1);
    opacity: 1 !important; 
    filter: none !important;
  }
  
  
  .sensory-panel:hover {
    flex: none; 
    background-color: var(--bg-1);
  }

  
  .panel-text {
    transform: translateY(0);
    margin-top: 1.5rem;
  }

  .link-arrow {
    opacity: 1;
    transform: translateY(0);
    color: var(--text-primary);
  }

  
  .music-panel .bar {
    animation-play-state: running;
    opacity: 1;
    height: 40%; 
  }

  
  .art-stack {
    
    transform: scale(0.9); 
  }

  .sensory-panel:last-child {
    border: 3px solid #ffffff !important; 
  }
  
  
  .art-stack .card-1 { transform: rotate(-8deg) translateX(-15px) translateY(5px); }
  .art-stack .card-2 { transform: rotate(0deg) translateY(-8px); }
  .art-stack .card-3 { transform: rotate(8deg) translateX(15px) translateY(5px); }
}