/* ==========================================================================
   1. GLOBAL STYLES & TYPOGRAPHY
   ========================================================================== */
.pirata-one-regular { font-family: "Pirata One", system-ui; font-weight: 400; }
.pirata-one-light { font-family: "Pirata One", system-ui; font-weight: 200; }
.rajdhani-light { font-family: "Rajdhani", sans-serif; font-weight: 300; }
.rajdhani-regular { font-family: "Rajdhani", sans-serif; font-weight: 400; }
.rajdhani-medium { font-family: "Rajdhani", sans-serif; font-weight: 500; }
.rajdhani-semibold { font-family: "Rajdhani", sans-serif; font-weight: 600; }
.rajdhani-bold { font-family: "Rajdhani", sans-serif; font-weight: 700; }

#one { display: flex; align-items: center; justify-content: center; }
.navbar { color: white; z-index: 1; }
.content { height: auto; background-color: #f2f2f2; padding: 20px; }
#dutchman_window { height: 100vh; }
#animatedText { z-index: 100; pointer-events: auto; }

.brand-button {
    background-color: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.1s;
}
.brand-button:active {
    background-color: #555;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   2. HERO SECTION & VIDEO
   ========================================================================== */
#bg-video {
    position: fixed;
    top: 50%; left: 50%;
    min-width: 100%; min-height: 100%;
    width: auto; height: auto;
    transform: translate(-50%, -50%);
    z-index: -1;
    object-fit: cover;
}

.overlay {
    position: absolute;
    top: 35%; left: 5%;
    transform: translate(20px);
    padding: 20px 40px;
    opacity: 0;
    pointer-events: none;
    color: white;
    border-radius: 8px;
    text-align: left;
    z-index: 1;
    max-width: 500px;
    display: flex;
    flex-direction: column;
}

.slide-up { animation: slideUpFade 1.5s ease-out forwards; }
@keyframes slideUpFade { to { opacity: 1; transform: translateY(0); } }

/* ==========================================================================
   3. PROGRESSIVE IMAGES
   ========================================================================== */
.progressive-image-container {
    position: relative;
    width: 100%; height: 100%;
    min-height: 300px;
    background-size: cover;
    background-position: center;
    filter: blur(20px);
    transition: filter 500ms;
    border-radius: 8px;
    overflow: hidden;
}

.high-res {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 800ms ease-in-out;
}

.progressive-image-container.is-loaded { filter: blur(0); }
.progressive-image-container.is-loaded .high-res { opacity: 1; }

/* ==========================================================================
   4. COACHES & PR CARDS
   ========================================================================== */
.coach-card { padding: 10px; }
.coach-img {
    width: clamp(150px, 25vw, 300px);
    height: auto;
    object-fit: cover;
    margin: 0 auto;
    border-radius: 6px;
    display: block;
}

.coach-badge {
    background-color: #fff !important;
    color: #333 !important;
    border: 1px solid #333 !important;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.pr-card {
    background-color: #fefefe;
    border: 2px solid #333;
    border-radius: 4px;
    transition: all 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
}
.pr-card:hover {
    box-shadow: 8px 8px 0px 0px #333;
    transform: translate(-4px, -4px);
}

.pr-image-wrapper {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    border: 2px solid #333;
    border-radius: 2px;
}
.pr-img { width: 100%; height: 100%; object-fit: cover; }

.progress-track {
    width: 100%; height: 10px;
    background: #e9ecef;
    border-radius: 2px;
    margin-top: 4px;
    overflow: hidden;
    border: 1px solid #333;
}
.progress-fill { height: 100%; transition: width 1s ease-in-out; }
.progress-fill.initial { background-color: #adb5bd; }
.progress-fill.improved { background-color: #212529; }
.pr-item span { letter-spacing: 0.5px; font-size: 0.85rem; }

.flipper {
    position: relative;
    width: 100%;
    min-height: 520px; /* Adjust this so the content fits comfortably */
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

/* ==========================================================================
   5. TESTIMONIALS & FLIP CONTAINERS
   ========================================================================== */
.testimonial-card {
    background-color: #fefefe;
    border: 2px solid #333;
    border-radius: 4px;
    transition: all 0.3s ease;
    overflow: hidden;
    height: auto !important;
    cursor: pointer;
    margin-bottom: 20px;
}
.testimonial-card:hover {
    box-shadow: 8px 8px 0px 0px #333;
    transform: translate(-4px, -4px);
}
.testimonial-main-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.testimonial-text { font-size: clamp(1rem, 1.1vw, 1.3rem); line-height: 1.5; color: #333; }


.flip-container {
    perspective: 1200px;
    min-height: 550px; 
    height: 100%;
}

.flipper {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 550px; 
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.front, .back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; 
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    overflow: hidden; 
}


.back {
    transform: rotateY(180deg);
    background-color: #f8f9fa;
    padding: 2rem;
    justify-content: center;
}

.flip-container.flipped .flipper {
    transform: rotateY(180deg);
}

/* ==========================================================================
   6. SCROLLING TABS NAVIGATION
   ========================================================================== */
.scrolling-tabs-wrapper {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 5px 20px 5px;
    -webkit-overflow-scrolling: touch;
    display: block;
    mask-image: linear-gradient(to right, transparent, black 40px, black calc(100% - 40px), transparent);
}
.scrolling-tabs-wrapper::-webkit-scrollbar { display: none; }

#dynamic-tab-nav {
    display: flex;
    flex-wrap: nowrap !important;
    gap: 10px;
    width: max-content;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}
#dynamic-tab-nav .nav-item { flex: 0 0 auto; }
#dynamic-tab-nav .nav-link {
    background-color: #fff;
    color: #333 !important;
    border: 2px solid #333 !important;
    border-radius: 0;
    font-family: "Rajdhani", sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.2s ease-in-out;
    padding: 10px 20px;
    white-space: nowrap;
}
#dynamic-tab-nav .nav-link:hover {
    box-shadow: 4px 4px 0px 0px #333;
    transform: translate(-2px, -2px);
    background-color: #f8f9fa;
}
#dynamic-tab-nav .nav-link.active {
    background-color: #333 !important;
    color: #fff !important;
    transform: none;
    box-shadow: none;
}

/* ==========================================================================
   7. PRICING SECTION
   ========================================================================== */
.pricing-card-dark {
    background-color: #f4f4f4;
    border: 2px solid #333;
    border-radius: 4px;
    transition: all 0.3s ease-in-out;
}
.pricing-card-dark:hover {
    background-color: #ededed;
    box-shadow: 8px 8px 0px 0px #333;
    transform: translate(-4px, -4px);
}
.product-badge {
    display: inline-block;
    width: fit-content;
    background: #333;
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    text-transform: uppercase;
}
.price-header .amount { font-size: 4rem; font-family: 'Rajdhani', sans-serif; font-weight: 700; line-height: 1; }
.price-header .period { color: #777; font-size: 1rem; }
.pricing-features li { padding: 8px 0; border-bottom: 1px solid #f8f8f8; }

/* ==========================================================================
   8. FOCUS OVERLAY (MODAL)
   ========================================================================== */
.testimonial-focus-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(211, 211, 211, 0.95); /* Focus Light Gray */
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow-y: auto;
}
.testimonial-focus-overlay.active { opacity: 1; }

.focus-modal-content {
    background: white;
    border: 2px solid #333;
    box-shadow: 10px 10px 0px 0px #333;
    width: 100%;
    max-width: 600px;
    padding: 25px;
    margin-bottom: 40px;
    position: relative;
}

.focus-scroll-area { overflow-y: auto; padding-right: 10px; }
.close-focus {
    background: #333;
    color: #fff;
    border: none;
    padding: 8px 15px;
    font-weight: 700;
    align-self: flex-end;
}

.focus-modal-content .read-more-hint {
    display: none !important;
}

/* ==========================================================================
   9. RESPONSIVE MEDIA QUERIES
   ========================================================================== */

/* Large Desktop */
@media (min-width: 992px) {
    .scrolling-tabs-wrapper { display: flex; justify-content: center; mask-image: none; }
    #dynamic-tab-nav { width: auto; justify-content: center; }
}

@media (max-width: 991px) {
    #dynamic-tab-nav { justify-content: flex-start; padding-left: 15px; }
}

@media (max-width: 767px) {
    .flipper { min-height: 350px; }
    .testimonial-text {
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .testimonial-main-img { height: 250px; }
    .testimonial-card { max-height: 550px; }
}

@media (max-width: 576px) {
    #pricing-section { padding: 0 10px; }
    .price-header .amount { font-size: 1.8rem !important; }
    
    .overlay {
        text-align: left !important; /* Forces text to the left */
        left: 5% !important; /* Maintains your original left-side positioning */
        width: 90%;
        transform: none !important; /* Prevents center-translation */
    }

    .hero-btn {
        width: auto !important; /* Hugs the text */
        display: inline-block;
        font-size: 0.75rem !important; /* Smaller for narrow screens */
        padding: 8px 12px !important; /* Balanced padding */
        white-space: nowrap;
        flex: 0 0 auto !important; /* Prevents the button from growing/stretching */
    } 
}

@media (max-width: 400px) {
    .navbar-brand { font-size: 0.8rem !important; }
}