/* Default Theme variables */
:root {
    --bg-color: #f3f4f6;
    --text-color: #374151;
    --nav-bg: #ffffff;
    --overlay-bg: rgba(0, 0, 0, 0.755);
}

[data-theme="dark"] {
    --bg-color: #1f2937;
    --text-color: #f3f4f6;
    --nav-bg: #111827;
    --overlay-bg: rgba(0, 0, 0, 0.855);
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

a, button, img {
    transition: all 0.3s ease-in-out;
}

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

#mobileMenu {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    background-color: var(--nav-bg);
}

#mobileMenu.active {
    opacity: 1;
    visibility: visible;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: -1;
}

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

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-bg);
}

/* Inquiry Tabs */
.inquiry-tabs {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.inquiry-tab {
    background: var(--nav-bg);
    padding: 15px;
    border-radius: 10px 0 0 10px;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.inquiry-tab:hover {
    background: var(--nav-bg);
    transform: translateX(-10px);
}

/* Mobile Navigation */
.mobile-nav-icon {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-right: 15px;
}

.mobile-nav-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    padding: 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    gap: 15px;
    margin-left: 12px;
}

.mobile-nav-link:hover {
    background: rgba(59, 130, 246, 0.1);
    transform: translateY(-4px);
}

/* Stats Section */
.stats-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 4rem 2rem;
    flex-wrap: wrap;
    background-color: var(--bg-color);
    opacity: 0;
    transform: translateY(50px);
    height: auto;
    align-items: center;
}

.stat-card {
    background: var(--nav-bg);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    min-width: 200px;
    transition: transform 0.3s ease;
    opacity: 0;
    transform: translateY(50px);
}

.stat-card:hover {
    transform: translateY(-10px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #3B82F6;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-color);
}

/* About Us Section */
.about-section {
    padding: 4rem 2rem;
    background-color: var(--bg-color);
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 3rem;
}

.about-content {
    display: flex;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
}

.about-image {
    flex: 1;
    position: relative;
    padding: 15px;
}

.about-image::before,
.about-image::after {
    content: '';
    position: absolute;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    border: 3px solid #3B82F6;
    border-radius: 1rem;
    width: 45%;
    height: 45%;
    opacity: 0;
}

.about-image::before {
    top: 0;
    left: 0;
    border-right: 0;
    border-bottom: 0;
    transform: translate(15px, 15px);
}

.about-image::after {
    bottom: 0;
    right: 0;
    border-top: 0;
    border-left: 0;
    transform: translate(-15px, -15px);
}

.about-image:hover::before {
    transform: translate(-15px, -15px);
    opacity: 1;
}

.about-image:hover::after {
    transform: translate(15px, 15px);
    opacity: 1;
}

.about-image img {
    width: 100%;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Services Section */
.services-section {
    padding: 4rem 2rem;
    background-color: var(--bg-color);
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.services-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 3rem;
}

.slider-container {
    width: 100%;
    max-width: 1200px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 0 auto;
}

.slider-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding-top: 20px;
    padding-bottom: 20px;
}

.slider {
    display: flex;
    gap: 2rem;
    transition: transform 0.5s ease;
    margin: 0 auto;
}

.service-card {
    min-width: calc(33.333% - 1.33rem);
    perspective: 1000px;
    margin: 0 auto;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 400px;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 1rem;
    background: var(--nav-bg);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1rem;
}

.flip-btn {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 1.5rem;
    background: #3B82F6;
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.flip-btn:hover {
    background: #2563EB;
    transform: translateX(-50%) scale(1.05);
}

.card-back {
    transform: rotateY(180deg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-color);
}

.card-back h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.card-back p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.back-btn {
    padding: 0.5rem 1.5rem;
    background: #3B82F6;
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: #2563EB;
    transform: scale(1.05);
}

.service-card.flipped .card-inner {
    transform: rotateY(180deg);
}

.slider-btn {
    background: var(--nav-bg);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    color: var(--text-color);
}

.slider-btn:hover {
    background: #3B82F6;
    color: white;
    transform: scale(1.1);
}
.trainer-card {
    min-width: calc(33.333% - 1.33rem);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    cursor: pointer;
}

.trainer-image-wrapper {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #3B82F6;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.trainer-image-wrapper:hover {
    transform: scale(1.05);
    border-color: #2563EB;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.trainer-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.trainer-slider {
    display: flex;
    transition: transform 1s ease;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #CBD5E1;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: #3B82F6;
}

.trainer-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    width: 90%;
    max-width: 800px;
    background: var(--nav-bg);
    border-radius: 15px;
    padding: 2rem;
    z-index: 1000;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: all 0.3s ease;
}

.trainer-popup.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.trainer-popup-content {
    display: flex;
    gap: 2rem;
}

.trainer-popup-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    transform: translateX(-50px);
    opacity: 0;
    transition: all 0.5s ease;
}

.trainer-popup.active .trainer-popup-image {
    transform: translateX(0);
    opacity: 1;
}

.trainer-popup-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.trainer-popup-details {
    flex: 1;
    color: var(--text-color);
    transform: translateX(50px);
    opacity: 0;
    transition: all 0.5s ease;
}

.trainer-popup.active .trainer-popup-details {
    transform: translateX(0);
    opacity: 1;
}

.trainer-popup-details h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.trainer-social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.trainer-social-links a {
    color: #3B82F6;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.trainer-social-links a:hover {
    color: #2563EB;
}

.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.popup-overlay.active {
    opacity: 1;
}

.close-popup {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.close-popup:hover {
    transform: rotate(90deg);
}
.logo-slider-section {
    padding: 2rem 0;
    transition: background-color 0.3s ease;
}

.logo-slider-container {
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
    background: var(--nav-bg);
    margin: 0px 0 0px 0;
    position: relative;
    transition: background-color 0.3s ease;
}

.logo-slider {
        display: flex;
        animation: scroll 10s linear infinite;
        width: calc(200px * 10);
        position: relative;
        z-index: 1;
}
.fade-overlay {
    position: absolute;
    top: 0;
    height: 100%;
    width: 150px;
    pointer-events: none;
    z-index: 2;
}

.fade-left {
    left: 0;
    background: linear-gradient(to right, var(--bg-color) 0%, transparent 100%);
}

.fade-right {
    right: 0;
    background: linear-gradient(to left, var(--bg-color) 0%, transparent 100%);
}

.logo-slider {
    display: flex;
    animation: scroll 10s linear infinite;
    width: calc(200px * 10);
    position: relative;
    z-index: 1;
}

.logo-slide {
    display: flex;
    align-items: center;
    justify-content: space-around;
    min-width: 100%;
}

.logo-slide img {
    height: 50px;
    margin: 0 20px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
    object-fit: contain;
}

.logo-slide img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

[data-theme='dark'] .logo-slide img {
    filter: grayscale(100%) invert(1);
}

[data-theme='dark'] .logo-slide img:hover {
    filter: grayscale(0%) invert(1);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}


/* Media Queries for Responsive Design */
@media (max-width: 768px) {
    /* Inquiry Tabs */
    .inquiry-tabs {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        width: 100%;
        padding: 10px;
        background: transparent;
        justify-content: start;
        margin-top: 100px;
    }

    .inquiry-tab {
        width: 100%;
        height: 50px;
        border-radius: 10px;
        padding: 12px;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        background: var(--nav-bg);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .inquiry-tab:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    }

    .inquiry-tab img {
        margin-right: 10px;
    }

    .inquiry-tab span {
        font-size: 0.7rem;
        font-weight: 500;
    }

    .gym-name-mobile {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        font-weight: bold;
        font-size: 1.2rem;
        color: var(--text-color);
    }

    /* Landing Content */
    .landing-content {
        margin: 0 auto;
        padding: 20px;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: justify;
        padding-bottom: 100px;
    }

    .landing-content h1 {
        font-size: 1.7rem !important;
        margin-top: 16rem !important;
        width: 100%;
        margin-bottom: 10px;
        width: 90%;
    }

    .landing-content p {
        font-size: 0.8rem !important;
        line-height: 1.5;
        width: 100%;
        text-align: justify;
        margin-bottom: 25px;
    }

    .landing-content button {
        font-size: 0.9rem !important;
        padding: 0.75rem 1.5rem !important;
        margin: 0 auto;
    }

    /* About Content */
    .about-content {
        flex-direction: column;
        gap: 2rem;
        margin-bottom: 280px;
    }

    .about-title {
        font-size: 2rem;
        margin-bottom: 2rem;
        margin-top: 20rem;
    }

    .about-text h3 {
        font-size: 1.4rem;
        text-align: center;
    }

    .about-text p {
        font-size: 1rem;
        text-align: justify;
    }
    .about-section{
        padding-bottom: 30rem;
    }
    .stats-container {
        padding-bottom: 30rem;
    }

    .review-section {
        font-size: 0.875rem;
    }

    .review-section .text-sm {
        font-size: 0.75rem;
    }
    .trainer-container {
        display: flex;
        justify-content: center;
        align-items: center;
        overflow: hidden;
        width: 100%;
    }
    
    .trainer-card {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%; /* Full width */
        flex: 0 0 100%; /* Show one at a time */
        transition: transform 0.5s ease-in-out;
    }
    
    .trainer-image-wrapper {
        width: 220px;
        height: 220px;
        border-radius: 50%;
        overflow: hidden;
        margin: 0 auto;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    }
    
    .trainer-image-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

@media (max-width: 480px) {
    .service-card {
        min-width: 100%;
    }
    .trainer-image-wrapper {
        width: 280px;
        height: 280px;
        margin: 0 auto;
    }
    .trainer-card {
        min-width: 100%;
        display: flex;
        justify-content: center;
    }
}
@media (max-width: 1024px) {
    .trainer-image-wrapper {
        width: 200px;
        height: 200px;
    }
    .trainer-card {
        min-width: calc(50% - 1rem);
        display: flex;
        justify-content: center;
    }
    .trainer-popup-content {
        flex-direction: column;
    }
}

