.section {
    height: 50vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    position: relative;
}
.section-1 {
    width: 57%;
    background-color: #374151;
}
main.open .section-1 {
    animation: slideInFromLeft 1.5s forwards;
}
.section-2 {
    width: 43%;
    background-color: #4B5563;
}
main.open .section-2 {
    animation: slideInFromRight 1.5s forwards;
}
.section-3 {
    width: 37%;
    background-color: #6B7280;
}
main.open .section-3 {
    animation: slideInFromLeft 2s forwards;
}
.section-4 {
    width: 63%;
    background-color: #565656;
}
main.open .section-4 {
    animation: slideInFromRight 2s forwards;
}

.section-2,
.section-3 {
    overflow: hidden;
}


.section-1:hover,
.section-2:hover {
    
}
.section-1,
.section-2 {
    transition: all .3s linear; 
}

.section-3, .section-4 {
    transition: all .3s linear; 
}

@keyframes slideInFromLeft {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}
@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}
.curtain-panel {
    position: fixed;
    top: 0;
    width: 100vw; /* 100% of the viewport width */
    height: 100vh; /* 100% of the viewport height */
    background: black;
    transition: transform 1.5s ease; /* Smooth transition for the slide effect */
    z-index: 1;
    /* display: none; */
  }
  .left-panel {
    clip-path: polygon(0 0, 100% 0, 0 100%, 0% 100%); /* Triangle covering the left half */
  }
  .right-panel {
    clip-path: polygon(100% 0, 100% 100%, 0 100%, 100% 0); /* Triangle covering the right half */
  }
  #openButton img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    transform: translate(-50%, -50%);
    /* background: white; */
    color: black;
    padding: 10px 20px;
    border-radius: 100%;
    cursor: pointer;
    z-index: 10; /* Ensure button is above the panels */
  }
  @keyframes slideDown {
    from {
        transform: translateY(-800%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(800%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

main {
    transition: all 2.6s linear;
}

main.open {
    opacity: 1;
}




.shimmer {
    animation: shimmer 2s infinite;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.8) 50%, rgba(255,255,255,0) 100%);
    background-size: 200% 100%;
}
@keyframes shimmer {
    0% {
        background-position: -150%;
    }
    50% {
        background-position: 150%;
    }
    100% {
        background-position: 150%;
    }
}

@keyframes shimmer {
    0% { background-position: -150%; }
    50% { background-position: 150%; }
    100% { background-position: -150%; }
}

#openButton img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    transform: translate(-50%, -50%);
    color: black;
    padding: 2px 2px;
    border-radius: 100%;
    cursor: pointer;
    z-index: 10; /* Ensure button is above the panels */
    /* Shimmer effect */
    animation: shimmer 7s infinite;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.8) 50%, rgba(255,255,255,0) 100%);
    background-size: 200% 100%;
}


#heroSection {
    transition: all 1.5s ease-in-out;
}

.hidden {
    display: none;
}

.animate-bounce {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateY(-20px);
        opacity: 0.5;
    }
}
