/* ========================================
   INDEX PAGE SPECIFIC STYLES
   ======================================== */

/* Video Section Container */
.page1 {
    position: relative;
    height: 600px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Video Background Wrapper */
.page-video {
    position: relative;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 1;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

/* Video Overlay (can be used for darkening effect) */
.page-video:before {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
}

/* Video Element - Centered and Covering */
.page-video .video {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
}

/* Content Overlay on Video */
.content1 {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
}

/* White Text for Video Overlay */
.white {
    font-size: 52px;
    font-weight: bold;
    color: #fff !important;
}

/* Mobile: Hide video, show background image instead for performance */
@media (max-width: 480px) {
    .page-video {
        background: 50% 50% no-repeat;
        background-size: cover;
    }
    .page-video .video {
        display: none;
    }
}

/* Animated Text with Fade In/Out Effect */
.textspec {
    animation-name: tspec;
    animation-duration: 20s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

/* Keyframes for Text Animation */
@keyframes tspec {
    0%   { opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { opacity: 0; }
}

/* Utility Class to Hide Elements */
.hidden {
    display: none !important;
}

/* Tablet/Mobile: Remove background image from counter section */
@media (max-width: 990px) {
    .countmainpage {
        background-image: none !important;
    }
}

/* Testimonial Carousel Items - Inactive items are semi-transparent */
.testimony-section .owl-item {
    opacity: 0.5 !important;
    margin-top: 20px;
}

/* Scroll to Top Button - Fixed position with gradient background */
.arrowUp {
    border: 0;
    opacity: 0.5;
    position: fixed;
    bottom: 15%;
    right: 3%;
    color: #fff;
    width: 70px;
    height: 70px;
    background: linear-gradient(130deg, #fda63894 50%, #398a99 50%);
    background-size: 300%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-size: 50px;
    border-radius: 25px;
    transition: .8s;
}

/* Scroll to Top Button Hover Effect */
.arrowUp:hover {
    background-position: 100% 0;
}

/* Owl Carousel Touch Support - Allow vertical scrolling */
.owl-carousel.owl-drag .owl-item {
    touch-action: pan-y !important;
}

/* Mobile: Reduce slider height */
@media (max-width: 700px) {
    .slider-item,
    .owl-carousel {
        height: 350px !important;
    }
}

/* Small Mobile Devices: Additional adjustments */
@media (max-width: 400px) {
    .topsome {
        margin-top: 320px;
    }
    /* Smaller scroll to top button for mobile */
    .arrowUp {
        height: 45px;
        font-size: 30px;
        width: 48px;
        bottom: 20px !important; /* Lowered position */
        z-index: 9999 !important; /* Stay on top */
    }
    /* Remove bottom padding on mobile */
    .padbotmob0 {
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }
}
