* {
    box-sizing: border-box;
}

body {
    font-family: 'PPSans', sans-serif;
    font-weight: 400;
    letter-spacing: 0.2px;
    overflow: visible;
}

html, body {
    font-size: 14px !important;
    height: 100%;
    padding: 0;
    overflow-x: hidden;
}

.h1, .h2, .h3, .h4, .h5, .h6,
h1, h2, h3, h4, h5, h6 {
   font-family: 'PPSans', sans-serif;
   font-weight: 500;
   line-height: 1.1;
   color: inherit;
}

b, strong {
    font-weight: 600;
}

.content {
    position: relative;
    z-index: 3;
    color: #2c2e2f;
    text-align: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.video-background {
    position: fixed;
    top: 0;
    left: 0;
    min-width: 100%;
    min-height: 100%;
    z-index: -1;
    overflow: hidden;
}

.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

.image-background {
    background-image: url('/assets/images/background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    width: 100%;
    min-height: 100vh;
    position: relative;
    z-index: 1;
    overflow: auto;
}

.image-background .overlay {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.image-background > *:not(.overlay) {
    position: relative;
    z-index: 3;
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    pointer-events: none;
}

.join-container {
    margin: 0 auto;
}

.tm-page-wrap {
    position: relative;
    z-index: 4;
}

.tm-body-wrap {
    padding: 50px 20px 40px;
}

.tm-page {
    position: relative;
    margin: 16px auto;
    padding: 32px 0;
    max-width: 450px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    border: 1px solid #fff0;
    background-image: radial-gradient( circle farthest-corner at 10% 20%, rgb(248, 255, 255) 0.1%, rgb(239, 249, 251) 90.1% );
    background-size: 200% auto;
    transition: 0.5s;
    z-index: 4;
}

.tm-page:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.12);
    background-position: right center;
}

.tm-page-photo {
    text-align: center;
    padding-bottom: 16px;
}

.tm-page-photo-img {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease-in-out;
}

.tm-page-photo-img:hover {
    transform: scale(1.05);
    transition: all 0.3s ease-in-out;
    filter: contrast(105%) brightness(110%);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.tm-page-title {
    font-size: 26px;
    line-height: 1.5;
    font-weight: 600;
    text-align: center;
    max-width: 340px;
    padding: 0;
    margin: 0 auto;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tm-page-title-link {
    color: #0070ba !important;
    transition: all 0.3s ease-in-out 0s;
}

.tm-page-title-link:hover,
.tm-page-title-link:active {
    color: #005ea6 !important;
    font-size: 1.87rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.tm-page-title-link:focus {
    outline: none; 
}

.tm-hr {
    margin: 15px auto;
    padding: 0;
    border-bottom: 1px solid #ccc;
    border-top: 0px;
    width: 50%;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

.tm-header {
    text-transform: capitalize;
    text-align: center;
    margin:0;
}

.tm-header h4 {
    font-size: 1.4rem;
    line-height: 1.4;
    font-weight: 600;
    margin: 0 auto 17px;
    padding: 0;
}

.tm-p {
    text-align: left;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    padding: 0 2.2em;
    margin-bottom: 20px;
    display: block;
}


.tm-page-action {
    margin-top: 24px;
    line-height: 0;
}


a.tm-action-button {
    background-image: linear-gradient(270deg, rgba(100, 181, 239, 0) 48.44%, #64b5ef 75.52%, rgba(100, 181, 239, 0) 100%);
    background-repeat: no-repeat;
    animation: bg-move linear 5s infinite;
    background-color: #229ED9;
    color: #FFF;
    font-size: 16px;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 600;
    line-height: 1.5;
    height: 50px;
    gap: 10px;
    border-radius: 22px;
    overflow: hidden;
    margin: 0px 25px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    align-content: center;
    flex-wrap: nowrap;
    padding: 30px 21px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.5s ease-in-out;
}

a.tm-action-button:hover,
a.tm-action-button:active {
    background-color: #2AABEE;
    text-decoration: none;
    color: #004879;
    transform: scale(1.02);
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.25);
}

a.tm-action-button:focus {
    text-decoration: none; 
}

.telegram-icon {
    font-size: 35px;
    color: #fff;
    transition: transform 0.2s ease-in-out;
}

.telegram-icon:hover {
    color: #fff;
    transform: scale(1.1);
    background-color: #004879;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-right: 8px;
    transform: rotate(360deg);
}

#tm-jc {
    transition: all 0.3s ease-in-out 0s;
}

#tm-jc:hover {
    transform: scale(1.03);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}


.tm-page-text {
    display: block;
    position: relative;
    margin: 0 12px 30px;
    z-index: 5;
}

.tm-page-text p {
    visibility: visible;
    opacity: 1;
    color: #fff8f8;
    font-size: 16px;
    margin: 0;
    padding: 2px 0;
    text-shadow: 0 2px 2px rgba(0, 0, 0, 0.75);
    font-weight: 500;
  }

.area-title h3 {
    font-size: 1.2rem;
    color: #fff8f8;
    line-height: 1.4;
    font-weight: 600;
    margin: 35px auto 7px;
    padding: 0;
}

.row {
    margin: 10px !important;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 10px;
}

.col-screen {
    position: relative;
    display: block;
    max-width: 1200px;
    min-height: 1px;
    width: 95%;
    padding: 10px 0;
    margin: 0 auto;
}
  
.card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease-in-out, filter 0.5s ease-in-out;
    will-change: transform, filter;
}
  
.card:hover {
    transform: translateY(-5px);
    transform: scale(1.07);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
  
.img-container {
    overflow: hidden;
}
  
.img-container img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
    transition: transform 0.5s ease-in-out, filter 0.5s ease-in-out;
    filter: grayscale(10%) brightness(100%) contrast(100%) saturate(100%);
    will-change: transform;
    image-rendering: auto;
    backface-visibility: hidden;
    transform-style: preserve-3d;
}
  
.img-container img:hover {
    transform: scale(1.06);
    filter: brightness(103%) contrast(103%) saturate(105%);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    image-rendering: auto;
}

.tm-footer {
    padding: 20px 0;
    margin:0 auto 0 auto;
    display: inline-block;
    width: 80%;
}

.tm-footer-text {
    font-size: 15px;
    text-align: center;
    word-break: break-word;
    color: #fff8f8;
    margin: 0;
    padding: 0;
    text-shadow: 0 2px 2px rgba(0, 0, 0, 0.75);
    font-weight: 500;
}

.tm-footer-text p {
    color: #ffffff !important;
}

.footer-copyright {
    font-size: 16px;
    text-align: center;
    color: #fff8f8;
    margin: 0;
    padding: 0;
    font-weight: 500;
}

.footer-copyright-info p {
  color: #e0e0e0;
}

.footer-copyright-info p a {
    color: #00A1FF;
}

.footer-copyright-info p a:hover {
    color: #009cde;
}

.footer-main-menu li a:hover {
    color: #009cde;
}
    
.footer-copyright-info p a {
    text-transform: uppercase;
}

.footer-copyright-info p a:hover {
    font-weight: 600;
}
    
.footer-main-menu li a {
    color: #e0e0e0;
    text-transform: uppercase;
}

/* ------------------------- 
Telegram Chat Icon Styles 
------------------------- */
        
/* Floating icon styles */
.tg-icon {
    width: 50px;
    height: 50px;
    scale: 1.2;
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    border-radius: 50%;
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
}
        
.tg-float-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999999;
    animation: float 3s ease-in-out infinite;
}
        
.tg-button {
    position: relative;
    width: 50px;
    height: 50px;
    background: #fff !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}
        
/* Tooltip modifications */
.tooltip {
    position: absolute;
    right: 75px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(to right, #0088CC 0%, #2AABEE  51%, #0088CC 100%);
    background-size: 200% auto;
    transition: 0.5s;
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
    color: #fff;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 14px;
    font-family: 'PPSans', sans-serif;
    opacity: 0;
    visibility: hidden;
    white-space: nowrap;
    cursor: pointer;
    pointer-events: auto;
}
        
.tooltip::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 8px 0 8px 8px;
    border-style: solid;
    border-color: transparent transparent transparent #2AABEE;
    box-shadow: transparent transparent transparent rgba(0, 0, 0, 0.2);
}
        
.tooltip:hover::after {
    border-color: transparent transparent transparent #0088CC;
}
        
/* Hover improvements */
.tg-button:hover .tooltip,
.tooltip:hover {
    opacity: 1 !important;
    visibility: visible !important;
    right: 70px;
    transition-delay: 0.1s;
    background-position: right center;
}
        
/* Hover effects for icon */
.tg-button:hover {
    background: #fff;
    transform: scale(1.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}
        
.tg-button:hover .tg-icon {
    transform: rotate(360deg);
    scale: 1.1;
}

/* Add gradient reflection effect */
    .tg-button:hover .tg-icon path {
    animation: gradientReverse 0.6s forwards;
}
  

/* ------------------------------
    media-responsive
---------------------------------*/

@media (min-width: 1200px) {
    .join-container {
        width: auto;
    }
}

@media (min-width: 900px) and (max-width: 1199px) {
    .join-container {
        width: auto;
    }

}

@media (min-width: 769px) and (max-width: 899px) {
    .join-container {
        width: auto;
    }
}

@media (max-width: 768px) {
    .join-container {
        width: auto;
    }
    
    .tg-float-container {
        bottom: 25px;
        right: 20px;
    }
    
    .tg-button {
        width: 50px;
        height: 50px;
    }
            
    .tg-icon {
        width: 50px;
        height: 50px;
        scale: 1.1;
        transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55);
        border-radius: 50%;
        box-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
    }
            
    .tooltip {
        display: block;
        right: 70px;
    }
            
    .tg-button:hover .tooltip,
    .tooltip:hover {
        right: 65px;
    }
}


/* ------------------------------ 
1- expert loader start
---------------------------------*/

#expert-loader {
    background-image: linear-gradient(to top, #2aabee 0%, #0088CC 50%, #2aabee 100%) !important;
}


/* ------------------------- 
keyframes 
-------------------------*/

@-webkit-keyframes bg-move {
    0%   { background-position: -500px 0; }
    100% { background-position: 1000px 0; }
}

@keyframes gradientReverse {
    to {
        fill: url(#grad-reverse);
    }
}
        
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes bg-move {
    0%   { background-position: -500px 0; }
    100% { background-position: 1000px 0; }
}
    
@keyframes moveRight {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(100px);
    }
}

