.main-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    padding-top: 5px;
    padding-bottom: 10px;
    margin-top: 0px;
}

.main-content h1 {
    font-size: clamp(2rem, 6vw, 6rem);
    font-weight: 700;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

.underline-animate {
    position: relative;
    display: inline-block;
    font-size: 50px;
}

.underline-animate::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 6px;
    bottom: -8px;
    left: 0;
    background: white;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}

.main-content:hover .underline-animate::after {
    transform: scaleX(1);
    transform-origin: left;
}


/* Video container */

.video {
    border: 5px solid #fff;
    width: 580px;
    height: 380px;
    margin: auto 0px;
    display: flex;
    flex-direction: row;
    align-items: center;
    position: relative;
    z-index: -1;
    padding: 10px;
}


/* Video element */

.video video {
    width: 520px;
    height: auto;
    border-radius: 15px;
    border: 5px solid transparent;
    background: linear-gradient(#fff, #fff) padding-box, linear-gradient(45deg, #ff00cc, #3333ff) border-box;
    box-shadow: 0 0 25px rgba(222, 255, 88, 0.3);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 1;
    position: relative;
    right: 40%;
}

.video video:hover {
    transform: scale(1.03);
    box-shadow: 0 0 30px rgba(232, 8, 12, 0.5);
}

#filled-div1 {
    position: relative;
    border-radius: 30px 30px 0 30px;
    min-height: 190px;
    min-width: 240px;
    max-height: 190px;
    max-width: 240px;
    left: -10%;
    top: -40%;
    background-color: #71A9F7;
    z-index: 0;
    margin-left: 0px;
}

#filled-div2 {
    position: relative;
    border-radius: 0 0 50% 50%;
    min-height: 150px;
    min-width: 150px;
    max-height: 150px;
    max-width: 150px;
    left: -55%;
    bottom: -50%;
    background-color: #C6D8FF;
    z-index: 0;
    margin: 0px 20px 0px 0px;
}

.vertical-scroll h1 {
    position: absolute;
    display: inline-block;
    white-space: nowrap;
    writing-mode: vertical-rl;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    font-size: 60px;
    letter-spacing: 1px;
    font-weight: 750px;
    -webkit-text-stroke-color: #ffffff;
    -webkit-text-stroke-width: 2px;
    color: transparent;
    top: 10%;
    right: -3%;
}

.holi img {
    width: 100%;
    border-radius: 10px;
}


/* Responsive section with flex */

.my-section {
    color: white;
    height: 600px;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
}


/* Container with fixed width */

.container1 {
    display: flex;
    justify-content: center;
    text-align: center;
    width: 100%;
    max-width: 400px;
    margin-left: 20px;
}

.a {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    height: auto;
    padding: 0rem 1rem;
}

.a::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    backdrop-filter: blur(6px);
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.slider-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.slide1 {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50vh;
    padding-top: 20px;
    padding-bottom: 20px;
    margin-top: 40px;
}

.slide {
    width: 400px;
    height: 300px;
    margin: 0 1rem;
    opacity: 0.4;
    transform: scale(0.8);
    transition: all 0.5s ease;
    position: absolute;
    border: 2px solid rgb(255, 255, 255);
    border-radius: 15px;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.6);
}

.slide img {
    border-radius: 15px;
}

.slide.active {
    opacity: 1;
    transform: scale(1.1);
    z-index: 3;
}

.slide.left {
    transform: translateX(-270px) rotateY(20deg) scale(0.9);
    z-index: 2;
}

.slide.right {
    transform: translateX(270px) rotateY(-20deg) scale(0.9);
    z-index: 2;
}

.nav-button {
    position: absolute;
    z-index: 5;
    border: none;
    font-size: 2rem;
    padding: 1rem 1rem;
    cursor: pointer;
    border-radius: 50%;
}

#prevBtn {
    left: 90px;
}

#nextBtn {
    right: 90px;
}

.team-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 2;
    width: 100%;
    position: relative;
    padding-top: 10px;
    align-items: center;
}

.card {
    width: 100%;
    height: 280px;
    background: #fff;
    border-radius: 24px;
    transition: transform 0.4s ease, opacity 0.8s ease;
    opacity: 0;
    z-index: 2;
    position: relative;
    margin: 20px 30px auto auto;
}

.card img {
    object-fit: cover;
}

.card-content {
    padding: 10px;
    text-align: center;
    color: #000000;
}

.card.animate-in-view {
    animation: slideIn 1.5s forwards;
}

.card.left1 {
    transform: rotate(15deg);
    z-index: 3;
}

.card.left2 {
    transform: rotate(-13deg);
    z-index: 2;
}

.card.center {
    transform: rotate(10deg);
    z-index: 1;
}

.card.right2 {
    transform: rotate(-20deg);
    z-index: 2;
}

.card.right1 {
    transform: rotate(-15deg);
    z-index: 3;
}

@keyframes slideIn {
    0% {
        transform: translateX(-100px);
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@media screen and (max-width: 768px) {
    /* Slide adjustments */
    .slide1 {
        height: 25vh;
        padding: 0;
        margin-top: 0;
    }
    .slide {
        width: 35vw;
        margin: 0 1rem;
        height: auto;
        position: absolute;
        border-radius: 10px;
    }
    .slide img {
        border-radius: 10px;
    }
    .slide.active {
        opacity: 1;
        transform: scale(1.1);
    }
    .slide.left {
        transform: translateX(-25vw) rotateY(15deg) scale(0.9);
    }
    .slide.right {
        transform: translateX(25vw) rotateY(-15deg) scale(0.9);
    }
    .nav-button {
        font-size: 1rem;
        cursor: pointer;
        border-radius: 50%;
        padding: 0.5rem;
    }
    #prevBtn {
        left: -70px;
        margin-left: 5rem;
    }
    #nextBtn {
        right: -70px;
        margin-right: 5rem;
    }
    /* Main Content */
    .main-content h1 {
        font-size: 2.5rem;
        margin-bottom: 0px;
    }
    /* My Section */
    .my-section {
        flex-direction: row;
        margin-top: 0px;
        height: auto;
        gap: 0px;
    }
    .container1 {
        font-size: 10px;
        margin-top: 20px;
        margin-bottom: 0px;
        align-items: center;
        max-width: 300px;
        width: 100%;
        margin-left: 0px;
    }
    .container1 p {
        position: relative;
    }
    /* Card Styling */
    .team-container {
        align-items: center;
        flex-wrap: wrap;
        gap: 0px;
        width: 100%;
        padding-top: 0px;
    }
    .card {
        width: calc(50% - 10.5px);
        max-width: 140px;
        height: 240px;
        margin-top: 10px;
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
        margin: 10px auto;
    }
    .card-content {
        padding: 5px;
    }
    .video {
        width: 100%;
        padding: 10px;
        max-width: 580px;
        height: auto;
        margin: auto;
    }
    .video video {
        border-radius: 10px;
        width: 100%;
        height: auto;
        right: 0;
    }
    #filled-div1 {
        display: none;
    }
    #filled-div2 {
        display: none;
    }
    .vertical-scroll h1 {
        display: none;
    }
    @keyframes slideIn {
        0% {
            opacity: 0;
            transform: translateX(15px);
        }
        100% {
            opacity: 1;
            transform: translateX(0px);
        }
    }
}