/*-------------------------------------------Background Image---------------------------------------------*/
#bg {
    width: 100%;
    height: auto;
}

/*-------------------------------------------Title Animation---------------------------------------------*/
/* .add-animation-zoom { */
    /* animation: zoomBounce 0.3s ease; */
    /* animation: zoomOut 0.3s ease; */
/* }  */

/* Comment all if using Zoomout keyframe  */
.add-animation { 
    animation: frmslideLeft 0.3s ease;
    animation: frmslideRight 0.8s ease;
} 

/* Comment all if using Zoomout keyframe */
.exit-animation { 
    animation: toslideRight 0.3s ease; 
    animation: toslideLeft 0.8s ease;
} 

/*-------------------------------------------Redirect Button---------------------------------------------*/
.redirect-btn {
    top: 28%;
    z-index: 10;
}

.redirect-btn img {
    width:50%;
    animation: pulse 0.9s  infinite linear;
}

.redirect-ele1 {
    top:38%;
    z-index: 9;
}

.redirect-ele1 img {
    width:60%;
    animation: pulse 1s  infinite linear;
}
.redirect-ele2 {
    top:52%;
    right:25%;
}

.redirect-ele2 img {
    width:35%;
    animation: randomMove 7s  infinite linear;
}
.redirect-ele3 {
    top:32%;
    right: 15%;
    z-index: 8;
}

.redirect-ele3 img {
    width:30%;
    animation: randomMove 8s  infinite linear;
}
.redirect-ele4 {
    top:35%;
    left:32%;
}

.redirect-ele4 img {
    width:25%;
    animation: randomMove 9s  infinite linear;
}
.redirect-ele5 {
    top:65%;
    z-index: 11;
}

.redirect-ele5 img {
    width:85%;
}

/*-------------------------------------------Keyframe Animation---------------------------------------------*/
@keyframes pulse {
    0% {
        transform: scale(0.9);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(0.9);
    }
}

@keyframes zoomOut {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    35% {
        transform: scale(0.9);
        opacity: 0.5;
    }

    65% {
        transform: scale(1.2);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes zoomBounce {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    35% {
        transform: scale(0.7);
        opacity: 0.5;
    }

    55% {
        transform: scale(1.1);
        opacity: 0.7;
    }

    65% {
        transform: scale(0.8);
        opacity: 0.8;
    }

    85% {
        transform: scale(1.2);
        opacity: 0.9;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes frmslideLeft {
    0% {
        transform: translateX(-50%);
        opacity: 0;
    }

    50% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toslideRight {
    0% {
        transform: translateX(0);
        opacity: 1;
    }

    50% {
        transform: translateX(50%);
        opacity: 0;
    }
}

@keyframes frmslideRight {
    0% {
        transform: translateX(10%);
        opacity: 0;
    }

    50% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toslideLeft {
    0% {
        transform: translateX(0);
        opacity: 1;
    }

    50% {
        transform: translateX(-10%);
        opacity: 0;
    }
}
@keyframes randomMove {
    0% {
        transform: translate(0px, 0px);
    }
    
    10% {
        transform: translate(8px, -5px);
    }
    
    20% {
        transform: translate(-3px, 12px);
    }
    
    30% {
        transform: translate(15px, 3px);
    }
    
    40% {
        transform: translate(-8px, -10px);
    }
    
    50% {
        transform: translate(5px, 8px);
    }
    
    60% {
        transform: translate(-12px, 2px);
    }
    
    70% {
        transform: translate(10px, -8px);
    }
    
    80% {
        transform: translate(-5px, 15px);
    }
    
    90% {
        transform: translate(3px, -3px);
    }
    
    100% {
        transform: translate(0px, 0px);
    }
}

/*-------------------------------------------Multi Device Screen Size---------------------------------------------*/
/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    #bg {
        height: 100vh;
    }
}

/*-------------------------------------------Navigation---------------------------------------------*/
.tm-nav {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    padding: 10px 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.tm-nav-container {
    display: flex;
    gap: 15px;
}

.tm-nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.tm-nav-link:hover {
    background: #00d1b2;
    color: white;
    transform: translateY(-2px);
}

.tm-nav-link.active {
    background: #00d1b2;
    color: white;
}

/* Mobile navigation */
@media (max-width: 768px) {
    .tm-nav {
        top: 10px;
        right: 10px;
        padding: 8px 15px;
    }
    
    .tm-nav-container {
        gap: 10px;
    }
    
    .tm-nav-link {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/*-------------------------------------------Page Transitions---------------------------------------------*/
.tm-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.tm-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #00d1b2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Smooth page transitions */
.tm-container {
    transition: opacity 0.3s ease-in-out;
}

.tm-container.loading {
    opacity: 0.7;
}

/* Page content fade effect */
.item {
    transition: all 0.3s ease;
}

.item.fade-in {
    animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*-------------------------------------------Header Banner---------------------------------------------*/
.header-banner {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(0, 209, 178, 0.3);
    transition: all 0.3s ease;
}

.header-banner:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.3);
    border-color: rgba(0, 209, 178, 0.6);
}

.banner-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s ease;
}

.banner-link:hover {
    transform: scale(1.05);
}

.banner-image {
    position: relative;
    width: 160px;
    height: 160px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 209, 178, 0.8), rgba(0, 150, 136, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.banner-image:hover .banner-overlay {
    opacity: 1;
}

.banner-image:hover .banner-img {
    transform: scale(1.1);
}

.banner-text {
    color: white;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.7);
    letter-spacing: 0.5px;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Mobile responsive header banner */
@media (max-width: 768px) {
    .header-banner {
        top: 15px;
        left: 15px;
        padding: 15px;
    }
    
    .banner-image {
        width: 130px;
        height: 130px;
    }
    
    .banner-text {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .header-banner {
        top: 10px;
        left: 10px;
        padding: 12px;
    }
    
    .banner-image {
        width: 110px;
        height: 110px;
    }
    
    .banner-text {
        font-size: 12px;
    }
}

/*-------------------------------------------Accessibility & UX Enhancements---------------------------------------------*/
.tm-skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #fff;
    color: #000;
    padding: 8px 12px;
    z-index: 1000;
}
.tm-skip-link:focus {
    top: 0;
    outline: 3px solid #00d1b2;
}

.visually-hidden {
    position: absolute !important;
    height: 1px; width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

/* Focus styles for better keyboard navigation */
button:focus, a:focus, input:focus, textarea:focus {
    outline: 3px solid rgba(0, 209, 178, 0.9);
    outline-offset: 2px;
}

/* Improve form control tap targets */
.form-control {
    min-height: 44px;
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}