html,
body {
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    width: 100vw !important;
}

main {
    width: 100vw !important;
    margin: 0;
    padding: 0;
}

.container {
    margin: 0 auto;
    padding: 0 5%;
}

.home-sections-wrapper {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    margin-top: 0;
}

.home-sections-wrapper::before {
    content: "";
    position: absolute;
    top: 750px;
    right: -4%;
    width: 80%;
    height: 100%;
    background-image: url('../assets/images/objectsBG2.png');
    background-size: contain;
    background-position: center top;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: -1000;
    opacity: 0.8;
}

.mega-banner {
    width: 100.1vw !important;
    min-height: 40vh !important;
    position: relative !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden;
}

.bannerSwiper {
    width: 100% !important;
    height: 100% !important;
}

.banner-slide-content {
    position: relative;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden;
    mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
}

.banner-image {
    width: 100vw !important;
    height: 100%;
    object-fit: cover;
    display: block;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(13, 12, 12, 0.8) 0%, rgba(13, 12, 12, 0) 40%, rgba(13, 12, 12, 0) 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
}

.banner-content-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    pointer-events: none;
}

.banner-content-wrapper * {
    pointer-events: auto;
}

.banner-footer-row {
    position: relative;
    width: 100%;
    max-width: 1565px;
    margin: 0 auto !important;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    box-sizing: border-box;
    gap: 30px;
}

.banner-title-dynamic {
    width: 78%;
    max-width: 80%;
}

.banner-slide-title {
    font-family: var(--font-circe);
    color: var(--white);
    font-size: 70px;
    font-style: normal;
    font-weight: 800;
    line-height: 1.1;
    margin: 0;
}

.banner-top-right {
    position: absolute;
    top: 160px;
    right: 5%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 40px;
}

.banner-disclaimer {
    color: var(--white);
    margin: 0 !important;
    font-family: var(--font-circular);
    font-size: 52px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
}

.banner-auth-buttons {
    display: flex;
    gap: 25px;
}

.banner-title {
    font-family: 'Circe', sans-serif;
    font-weight: 800;
    font-size: 84px;
    margin-bottom: 40px;
    line-height: 1.1;
}

.banner-description {
    font-family: 'Circe', sans-serif;
    font-weight: 300;
    font-size: 50px;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.banner-description p {
    display: flex;
    align-items: center;
    gap: 30px;
}

.bullet {
    width: 15px;
    height: 15px;
    background-color: var(--white);
    border-radius: 50%;
    flex-shrink: 0;
}

.banner-disclaimer {
    font-family: 'CircularStd', sans-serif;
    font-weight: 500;
    font-size: 52px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.banner-pagination {
    position: static !important;
    width: auto !important;
    min-width: 100px;
    min-height: 20px;
    display: flex !important;
    justify-content: flex-end;
    gap: 8px;
    padding: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.banner-pagination .swiper-pagination-bullet {
    width: 25px;
    height: 25px;
    background: var(--white) !important;
    opacity: 0.5 !important;
    margin: 0 !important;
    transition: all 0.3s ease;
    display: inline-block !important;
}

.banner-pagination .swiper-pagination-bullet-active {
    width: 25px !important;
    border-radius: 50% !important;
    background: var(--orange) !important;
    opacity: 1 !important;
}

.videos-section {
    padding: 60px 0;
    width: 100%;
    overflow: hidden;
}

.videos-section .container {
    padding: 0 5% !important;
    width: 100%;
    box-sizing: border-box;
    display: block;
}

.videoSwiper {
    width: 100% !important;
    max-width: 1565px;
    margin: 0 auto !important;
    padding: 20px 0 !important;
    overflow: hidden !important;

}

.v-slide {
    height: 645.13px;
}

.video-card {
    position: relative;
    width: 100%;
    height: 600px;
    border-radius: 20px;
    /* Safari/Chrome fix for border-radius + overflow + scale */
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    overflow: hidden;
    background: #000;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.video-card:hover,
.video-card.is-playing {
    transform: scale(1.03) translateZ(0);
    z-index: 50;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.card-thumbnail, 
.video-container,
.video-container video,
.card-overlay {
    border-radius: inherit;
}

.card-thumbnail {
    width: 100%;
    height: 100%;
}

.card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(217, 217, 217, 0.00) 0%, #3E3560 68.75%);
    opacity: 1;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

.card-content-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    z-index: 20;
}

.card-text {
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-text h3 {
    color: var(--white);
    text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
    font-family: Arial, sans-serif;
    font-size: 30px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    text-align: left;
    margin-bottom: 15px;
}

.card-description {
    color: var(--white);
    font-family: Arial, sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    text-align: left;
    max-width: 100%;
}

.btn-play-story {
    background: linear-gradient(102deg, #A5CFD4 -42.51%, #D1E6E9 -1.96%, #F2F8F8 34.54%, #FFF 54.81%, #F9FBFC 60.9%, #A5CFD4 160.24%);
    color: var(--primary-purple);
    border: none;
    width: 220px;
    height: 70px;
    border-radius: 100px;
    font-size: 28px;
    font-weight: 300;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 15px;
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: lowercase;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.play-svg-icon {
    width: 60px;
    height: 60px;
}

.video-card:hover .card-text {
    opacity: 0;
}

.video-card:hover .btn-play-story {
    opacity: 1;
}

.video-card:hover .card-overlay {
    opacity: 0;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 15;
    display: none;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.is-playing .video-container {
    display: block;
}

.is-playing .card-overlay,
.is-playing .card-text {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.is-playing .btn-play-story {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 100;
}

.is-playing:hover .btn-play-story {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.video-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    display: none;
    z-index: 100;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background: var(--btn-gradient);
    transition: width 0.1s linear;
}

.is-playing .video-progress-bar {
    display: block;
}

.video-next,
.video-prev {
    display: none !important;
}

.video-next:after,
.video-prev:after {
    font-size: 20px;
}

.video-pagination {
    position: relative !important;
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.video-pagination .swiper-pagination-bullet {
    width: 25px;
    height: 25px;
    background: var(--white) !important;
    opacity: 0.5 !important;
    margin: 0 !important;
    transition: all 0.3s ease;
    border-radius: 50% !important;
}

.video-pagination .swiper-pagination-bullet-active {
    width: 25px !important;
    border-radius: 50% !important;
    background: var(--orange) !important;
    opacity: 1 !important;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--white);
    background: rgba(62, 53, 96, 0.4);
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 24px;
}

.content-section {
    padding: 0;
    width: 100%;
}

.content-grid {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.content-text {
    width: 100%;
}

.content-action {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 60px;
    align-self: flex-end;
}

.section-title {
    margin-bottom: 60px;
    color: var(--white);
    font-family: var(--font-circe);
    font-size: 84px;
    font-weight: 800;
    line-height: 1.1;
    text-align: left;
    max-width: 1200px;
}

.features-list {
    list-style: none;
    padding-left: 0;
    margin-top: 40px;
}

.features-list li {
    font-family: var(--font-circe);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 25px;
    color: var(--white);
    font-size: 50px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.check-icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    object-fit: contain;
}

.btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 350px;
    height: 85px;
    padding: 14px 102px;
    border-radius: 50px;
    font-family: var(--font-circe);
    font-size: 45px;
    font-style: normal;
    font-weight: 350;
    line-height: normal;
    text-decoration: none;
    box-shadow: 4.89px 4.08px 13.06px 0 rgba(0, 0, 0, 0.55);
    transition: transform 0.2s;
    gap: 10px;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-login-orange {
    background: var(--orange);
    color: var(--white);
}

.btn-register-white {
    background: var(--btn-gradient);
    color: var(--primary-purple);
}

/* ==========================================================================
   RESPONSIVE STYLES (ONLY INSIDE MEDIA QUERIES)
   ========================================================================== */

/* TABLET (max-width: 1024px) */
@media (max-width: 1024px) {

    /* General Handling */
    *,
    *::before,
    *::after {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    img,
    video {
        max-width: 100%;
        height: auto;
    }

    .container {
        padding: 0 4%;
    }

    .videos-section .container {
        padding: 0 !important;
    }

    .home-sections-wrapper {
        margin-top: 100px;
    }

    .home-sections-wrapper::before {
        width: 100%;
        top: 1200px;
        opacity: 0.4;
    }

    /* Mega Banner Section */
    .mega-banner {
        min-height: 50vh !important;
    }

    .banner-top-right {
        top: 60px;
        gap: 25px;
    }

    .banner-disclaimer {
        font-size: 32px !important;
        margin-bottom: 0 !important;
        text-align: right;
    }

    .banner-auth-buttons {
        gap: 15px;
    }

    .banner-slide-title {
        font-size: 42px;
    }

    .banner-footer-row {
        bottom: 60px;
    }

    /* Video Section */
    .videos-section {
        padding: 30px 0;
    }

    .videoSwiper {
        max-width: 90% !important;
        margin: 0 auto !important;
        overflow: hidden !important;
    }

    .v-slide,
    .video-card {
        height: 520px !important;
        width: 100% !important;
    }

    .card-text h3 {
        font-size: 22px;
    }

    .btn-play-story {
        width: 180px !important;
        height: 50px !important;
        font-size: 20px !important;
    }

    /* Always show controls on mobile/tablet */
    .card-content-inner {
        padding-bottom: 20px !important;
        align-items: center !important;
        text-align: center !important;
        gap: 20px !important;
    }

    .card-text {
        opacity: 1 !important;
        visibility: visible !important;
        width: 100%;
        text-align: center;
    }

    .btn-play-story {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        transform: none !important;
        margin: 0 auto !important;
        width: 200px !important;
        height: 60px !important;
        font-size: 24px !important;
    }

    /* When playing, hide only the overlay for clean viewing, keep text as requested */
    .video-card.is-playing .card-overlay {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    .video-card.is-playing .card-text {
        opacity: 1 !important;
        visibility: visible !important;
        z-index: 100;
        /* Ensure text is above the video */
    }

    .video-card.is-playing .btn-play-story {
        opacity: 1 !important;
        visibility: visible !important;
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        transform: none !important;
        margin: 20px auto 0 !important;
        /* Space between text and pause button */
    }

    .play-svg-icon {
        width: 40px;
        height: 40px;
    }

    .video-pagination {
        margin-top: 30px;
    }

    /* Content Section */
    .section-title {
        font-size: 56px;
        margin-bottom: 40px;
        max-width: 100%;
    }

    .features-list li {
        font-size: 32px;
        margin-bottom: 25px;
        gap: 20px;
    }

    .check-icon {
        width: 40px;
        height: 40px;
    }

    .btn {
        width: 280px;
        height: 70px;
        font-size: 32px;
        padding: 10px 30px;
    }

    .content-action {
        gap: 25px;
        margin-top: 40px;
    }
}

/* MOBILE (max-width: 768px) */
@media (max-width: 768px) {
    .home-sections-wrapper {
        margin-top: 100px;
    }

    .mega-banner {
        min-height: auto !important;
        overflow: visible !important;
    }

    .banner-slide-content {
        display: flex;
        flex-direction: column;
    }

    .banner-image {
        position: relative !important;
        width: 100% !important;
        height: 350px !important;
        object-fit: cover;
    }

    .banner-footer-row {
        position: absolute;
        top: auto !important;
        bottom: calc(100% - 340px) !important;
        left: 5% !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 15px;
        width: auto !important;
        transform: none !important;
        z-index: 10;
    }

    .banner-slide-title {
        font-size: 24px;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
        text-align: left !important;
    }

    .banner-pagination {
        position: relative !important;
        justify-content: flex-start !important;
        padding: 0 !important;
    }

    .banner-pagination {
        gap: 5px;
    }

    .banner-title-dynamic {
        width: 100% !important;
        max-width: 100% !important;
    }

    .banner-overlay {
        position: relative !important;
        height: auto !important;
        width: 100% !important;
        padding-top: 20px;
        background: transparent !important;
        z-index: 10;
    }

    .banner-pagination .swiper-pagination-bullet {
        width: 15px !important;
        height: 15px !important;
        opacity: 0.5 !important;
    }

    .banner-pagination .swiper-pagination-bullet-active {
        width: 15px !important;
        border-radius: 50% !important;
        background: var(--orange) !important;
        opacity: 1 !important;
    }

    .banner-pagination .swiper-pagination-bullet {
        opacity: 1 !important;
    }



    .banner-top-right {
        position: relative !important;
        top: 0 !important;
        right: 0 !important;
        transform: none !important;
        align-items: center;
        width: 100%;
        gap: 15px;
        margin-bottom: 20px;
    }

    .banner-disclaimer {
        font-family: var(--font-circe) !important;
        font-size: 32px !important;
        font-weight: 800 !important;
        color: var(--white) !important;
        text-align: center !important;
        margin-bottom: 25px !important;
        line-height: 1.1;
        width: 100%;
    }

    .banner-auth-buttons,
    .content-action {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        align-items: center;
    }

    .banner-auth-buttons .btn,
    .content-action .btn {
        width: 100% !important;
        max-width: 380px !important;
        height: 80px !important;
        font-size: 32px !important;
        padding: 5px 25px !important;
        margin: 0;
    }

    .v-slide,
    .video-card {
        width: 100% !important;
        height: 500px !important;
    }

    .card-text h3 {
        font-size: 26px;
    }

    .btn-play-story {
        width: 220px;
        height: 60px;
        font-size: 24px;
    }

    .video-pagination {
        gap: 5px;
    }

    .video-pagination .swiper-pagination-bullet {
        width: 15px !important;
        height: 15px !important;
        opacity: 0.5 !important;
    }

    .video-pagination .swiper-pagination-bullet-active {
        width: 15px !important;
        border-radius: 50% !important;
        background: var(--orange) !important;
        opacity: 1 !important;
    }

    .section-title {
        font-size: 48px;
        margin-bottom: 30px;
        text-align: left !important;
        width: 100%;
        max-width: 100%;
    }

    .features-list {
        display: inline-block;
        text-align: left;
    }

    .features-list li {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .check-icon {
        width: 45px !important;
        height: 45px !important;
    }
}

@media (max-width: 480px) {
    .banner-image {
        height: 200px !important;
    }

    .banner-footer-row {
        bottom: calc(100% - 190px) !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        width: auto !important;
        left: 5% !important;
        gap: 15px !important;
    }

    .banner-slide-title {
        font-size: 16px;
    }

    .banner-disclaimer {
        font-family: var(--font-circe) !important;
        font-size: 28px !important;
        font-weight: 800 !important;
        color: var(--white) !important;
        text-align: center;
        margin-bottom: 25px !important;
        line-height: 1.1;
        width: 100%;
    }

    .banner-auth-buttons,
    .content-action {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        align-items: center;
    }

    .banner-auth-buttons .btn,
    .content-action .btn {
        width: 100% !important;
        max-width: 300px !important;
        height: 70px !important;
        font-size: 28px !important;
        padding: 5px 20px !important;
        margin: 0;
    }

    .v-slide {
        height: 500px !important;
    }

    .section-title {
        font-size: 32px;
        margin-bottom: 25px;
        text-align: left !important;
        max-width: 100%;
    }

    .features-list {
        display: inline-block;
        text-align: left;
    }

    .features-list li {
        font-size: 15px;
    }

    .check-icon {
        width: 35px !important;
        height: 35px !important;
    }
}