/* ============================================================================
   ANCIENTFIT SOMATOTYPE ANALYZER - ULTRA PREMIUM GLASS THEME
   Updated to match your preferred color palette
   ============================================================================ */

/* CSS Variables - UPDATED COLORS ONLY */
:root {
    /* Enhanced Glass Effect - Matching your style */
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-bg-light: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.15);
    --glass-border-bright: rgba(255, 255, 255, 0.25);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    --glass-shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.2);
    --glass-blur: blur(24px);
    --glass-blur-strong: blur(40px);
    --glass-highlight: rgba(255, 255, 255, 0.08);
    
    /* Primary Colors - Updated to match your green/teal accent */
    --primary-dark: #0a1a2a; /* Darker blue background */
    --primary-darker: #071222;
    --accent-red: #00b894; /* Changed from red to your teal green */
    --accent-blue: #00b894; /* Using teal green for blue elements */
    --accent-green: #00b894; /* Your main teal green */
    --accent-gold: #00b894; /* Using teal for gold elements */
    --accent-purple: #00b894; /* Using teal for purple elements */
    
    /* Text Colors - Matching your style */
    --text-primary: rgba(255, 255, 255, 0.95);
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    
    /* Gradients - Updated with your teal green */
    --gradient-dark: linear-gradient(145deg, #0a1a2a 0%, #1a2f42 100%);
    --gradient-glass: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 100%);
    --gradient-accent: linear-gradient(135deg, #00b894 0%, #00d6a8 100%);
    --gradient-blue: linear-gradient(135deg, #00b894 0%, #00d6a8 100%);
    --gradient-green: linear-gradient(135deg, #00b894 0%, #00d6a8 100%);
    --gradient-gold: linear-gradient(135deg, #00b894 0%, #00d6a8 100%);
    
    /* Shadows - Adjusted to match your style */
    --shadow-deep: 0 24px 64px rgba(0, 0, 0, 0.3);
    --shadow-soft: 0 12px 36px rgba(0, 0, 0, 0.25);
    --shadow-light: 0 6px 24px rgba(0, 184, 148, 0.2);
    --shadow-glow: 0 0 40px rgba(0, 184, 148, 0.3);
}

/* Base Reset - UNCHANGED */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: 
        linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)),
        url(../Images/Event/EventHomePage.jpg) no-repeat center center fixed;
    background-size: cover;
    color: var(--text-primary);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    transition: font-family 0.3s ease;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Black overlay at 60% opacity */
    z-index: -1;
    pointer-events: none;
}

/* Arabic font support */
body.rtl {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    direction: rtl;
    text-align: right;
}

/* Language Toggle Styles */
.language-toggle-container {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 1000;
    font-family: 'Inter', sans-serif;
}

.language-toggle-btn {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 2px solid var(--glass-border);
    border-radius: 16px;
    padding: 12px 20px;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 140px;
    box-shadow: var(--glass-shadow);
}

.language-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--glass-border-bright);
    transform: translateY(-2px);
    box-shadow: var(--glass-shadow-hover);
}

.language-icon {
    font-size: 1.2rem;
    color: var(--accent-green);
}

.language-text {
    flex: 1;
    text-align: center;
}

.language-arrow {
    font-size: 0.9rem;
    opacity: 0.7;
    transition: transform 0.3s ease;
}

.language-toggle-container.active .language-arrow {
    transform: rotate(180deg);
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 2px solid var(--glass-border);
    border-radius: 16px;
    margin-top: 8px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-deep);
}

.language-toggle-container.active .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 20px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

body.rtl .lang-option {
    text-align: right;
}

.lang-option:hover {
    background: rgba(255, 255, 255, 0.08);
}

.lang-option.active {
    background: rgba(0, 184, 148, 0.15);
    color: var(--accent-green);
    font-weight: 600;
}

.flag-icon {
    font-size: 1.2rem;
}

/* RTL adjustments for the entire page */
body.rtl .ancientfit-container {
    direction: rtl;
    text-align: right;
}

body.rtl .header-subtitle::before {
    left: auto;
    right: 0;
    padding-right: 24px;
    padding-left: 0;
}

body.rtl .instructions p {
    text-align: right;
}

body.rtl .instructions i {
    order: 1;
    margin-left: 14px;
    margin-right: 0;
}

body.rtl .card-header h3 {
    flex-direction: row-reverse;
}

body.rtl .type-tag {
    margin-left: 0;
    margin-right: auto;
}

body.rtl .stat-value {
    float: left;
}

body.rtl .footer-disclaimer i {
    margin-right: 0;
    margin-left: 10px;
}

/* Continue with the rest of your existing CSS... */

/* Animated Background - Updated colors only */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 15% 25%, rgba(0, 184, 148, 0.08) 0%, transparent 25%),
        radial-gradient(circle at 85% 75%, rgba(0, 184, 148, 0.08) 0%, transparent 25%),
        radial-gradient(circle at 50% 50%, rgba(0, 184, 148, 0.05) 0%, transparent 35%),
        radial-gradient(circle at 25% 85%, rgba(0, 184, 148, 0.06) 0%, transparent 30%);
    z-index: -2;
    animation: bgPulse 20s ease-in-out infinite;
}

@keyframes bgPulse {
    0%, 100% { 
        opacity: 1;
        transform: scale(1);
    }
    50% { 
        opacity: 0.8;
        transform: scale(1.05);
    }
}

/* Floating particles effect - UNCHANGED (colors already white) */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, rgba(255, 255, 255, 0.15), transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(255, 255, 255, 0.1), transparent),
        radial-gradient(1px 1px at 80% 10%, rgba(255, 255, 255, 0.12), transparent),
        radial-gradient(1px 1px at 40% 90%, rgba(255, 255, 255, 0.08), transparent);
    background-size: 200% 200%;
    animation: particlesFloat 60s ease-in-out infinite;
    z-index: -1;
    pointer-events: none;
}

@keyframes particlesFloat {
    0%, 100% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
}

.ancientfit-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px;
}

/* ============================================================================
   BACK TO COURSE PAGE BUTTON - Bilingual
   ============================================================================ */

.back-to-course-container {
    position: fixed;
    top: 30px;
    left: 30px;
    z-index: 1000;
    font-family: 'Inter', sans-serif;
}

/* RTL adjustment for Arabic */
body.rtl .back-to-course-container {
    left: auto;
    right: 30px;
}

.back-to-course-btn {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 2px solid var(--glass-border);
    border-radius: 16px;
    padding: 14px 24px;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    min-width: 180px;
    box-shadow: var(--glass-shadow);
    position: relative;
    overflow: hidden;
}

.back-to-course-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.12), 
        transparent);
    transform: translateX(-100%);
    transition: transform 0.7s ease;
}

.back-to-course-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--glass-border-bright);
    transform: translateY(-2px);
    box-shadow: var(--glass-shadow-hover);
}

.back-to-course-btn:hover::before {
    transform: translateX(100%);
}

/* RTL adjustment for arrow direction */
body.rtl .back-to-course-btn i {
    order: 1;
    transform: rotate(180deg);
}

.back-to-course-btn i {
    font-size: 1.1rem;
    color: var(--accent-green);
    transition: transform 0.3s ease;
}

.back-to-course-btn:hover i {
    transform: translateX(-3px);
}

body.rtl .back-to-course-btn:hover i {
    transform: translateX(3px) rotate(180deg);
}

.back-btn-text {
    flex: 1;
    text-align: center;
    white-space: nowrap;
}

/* Hover animation for the text */
.back-to-course-btn:hover .back-btn-text {
    animation: textGlow 1.5s ease-in-out infinite;
}

@keyframes textGlow {
    0%, 100% {
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
    }
    50% {
        text-shadow: 0 0 10px rgba(0, 184, 148, 0.4);
    }
}

/* Active/pressed state */
.back-to-course-btn:active {
    transform: translateY(-1px);
    transition: transform 0.1s ease;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .back-to-course-container {
        top: 20px;
        left: 20px;
    }
    
    body.rtl .back-to-course-container {
        right: 20px;
        left: auto;
    }
}

@media (max-width: 768px) {
    .back-to-course-container {
        position: relative;
        top: 0;
        left: 0;
        margin: 20px 0 40px 0;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    body.rtl .back-to-course-container {
        right: 0;
    }
    
    .back-to-course-btn {
        min-width: 200px;
        justify-content: center;
    }
    
    /* Adjust layout when both buttons are visible on mobile */
    .language-toggle-container {
        position: relative;
        top: 0;
        right: 0;
        margin: 20px 0;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .ancientfit-container {
        padding-top: 10px;
    }
}

@media (max-width: 480px) {
    .back-to-course-btn {
        min-width: 160px;
        padding: 12px 20px;
        font-size: 0.9rem;
        gap: 10px;
    }
    
    .back-btn-text {
        font-size: 0.9rem;
    }
}

/* Special mobile layout for buttons */
@media (max-width: 768px) {
    .button-container-wrapper {
        display: flex;
        flex-direction: column;
        gap: 15px;
        margin: 20px 0 40px 0;
        align-items: center;
    }
    
    .back-to-course-container,
    .language-toggle-container {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        margin: 0 !important;
        width: 100% !important;
    }
    
    .back-to-course-btn,
    .language-toggle-btn {
        width: 280px;
        margin: 0 auto;
    }
}

/* Tablet landscape optimization */
@media (min-width: 769px) and (max-width: 1024px) {
    .back-to-course-container {
        top: 25px;
        left: 25px;
    }
    
    body.rtl .back-to-course-container {
        right: 25px;
    }
    
    .back-to-course-btn {
        min-width: 170px;
        padding: 12px 20px;
    }
}

/* Ensure buttons don't overlap on smaller screens */
@media (max-width: 400px) {
    .back-to-course-btn,
    .language-toggle-btn {
        width: 90%;
        max-width: 280px;
    }
}

/* Add some breathing room on mobile */
@media (max-width: 768px) {
    .ancientfit-header {
        margin-top: 20px;
    }
}

/* Optional: Add entrance animation */
.back-to-course-container {
    animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

body.rtl .back-to-course-container {
    animation: slideInRight 0.6s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
/* ============================================================================
   HEADER - Enhanced Glass Morphism
   ============================================================================ */
.ancientfit-header {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 2px solid var(--glass-border);
    border-radius: 32px;
    padding: 50px 45px;
    margin-bottom: 50px;
    box-shadow: 
        var(--glass-shadow),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.ancientfit-header::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--accent-green) 20%, 
        var(--accent-green) 50%,
        var(--accent-green) 80%,
        transparent);
    filter: blur(4px);
}

.ancientfit-header::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-green) 0%, transparent 65%);
    opacity: 0.06;
    top: -200px;
    right: -150px;
    animation: headerGlow 8s ease-in-out infinite;
}

@keyframes headerGlow {
    0%, 100% { 
        transform: scale(1) rotate(0deg);
        opacity: 0.06;
    }
    50% { 
        transform: scale(1.2) rotate(180deg);
        opacity: 0.1;
    }
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

body.rtl .header-logo {
    flex-direction: row-reverse;
}

.logo {
    width: 90px;
    height: 90px;
    filter: drop-shadow(0 6px 16px rgba(0, 184, 148, 0.4));
    animation: logoPulse 4s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.1) rotate(5deg);
}

@keyframes logoPulse {
    0%, 100% { 
        filter: drop-shadow(0 6px 16px rgba(0, 184, 148, 0.4));
    }
    50% { 
        filter: drop-shadow(0 8px 24px rgba(0, 184, 148, 0.6));
    }
}

/* GRAPHICAL WHITE TITLE - Ultra Premium - UNCHANGED */
.graphical-title {
    font-family: 'Orbitron', 'Spartan', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 3px;
    position: relative;
    background: linear-gradient(180deg, 
        #ffffff 0%,
        #f0f0f0 40%,
        #e0e0e0 60%,
        #d0d0d0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.3));
    animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% {
        filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.3));
    }
    50% {
        filter: drop-shadow(0 4px 16px rgba(255, 255, 255, 0.5));
    }
}

.header-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 400;
    max-width: 900px;
    line-height: 1.7;
    position: relative;
    padding-left: 24px;
    z-index: 1;
}

body.rtl .header-subtitle {
    padding-left: 0;
    padding-right: 24px;
}

.header-subtitle::before {
    content: '𓀀';
    position: absolute;
    left: 0;
    top: -2px;
    opacity: 0.6;
    font-size: 1.4rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.rtl .header-subtitle::before {
    left: auto;
    right: 0;
}

/* ============================================================================
   INTRODUCTION SECTION
   ============================================================================ */
.intro-section {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 2px solid var(--glass-border);
    border-radius: 28px;
    padding: 45px;
    margin-bottom: 50px;
    box-shadow: 
        var(--glass-shadow),
        inset 0 1px 1px rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.intro-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-glass);
    border-radius: 28px;
    z-index: -1;
}

.ancient-symbol {
    font-size: 3.5rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 24px;
    opacity: 0.8;
    filter: drop-shadow(0 2px 8px rgba(0, 184, 148, 0.3));
}

.intro-section h2 {
    font-size: 2.8rem;
    margin-bottom: 24px;
    color: var(--text-primary);
    font-weight: 800;
    letter-spacing: -0.5px;
}

.intro-section p {
    font-size: 1.15rem;
    line-height: 1.85;
    color: var(--text-secondary);
    margin-bottom: 35px;
    max-width: 950px;
}

.instructions {
    display: flex;
    gap: 45px;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.04);
    padding: 28px 32px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

body.rtl .instructions {
    flex-direction: row-reverse;
}

.instructions p {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0;
    font-size: 1.05rem;
    font-weight: 500;
}

.instructions i {
    color: var(--accent-green); /* Updated to teal green */
    font-size: 1.3rem;
    filter: drop-shadow(0 2px 6px rgba(0, 184, 148, 0.4));
}

/* ============================================================================
   BODYTYPE CARDS - Ultra Premium Glass Cards
   ============================================================================ */
.bodytypes-section {
    margin-bottom: 70px;
}

.bodytype-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 35px;
}

.bodytype-card {
    background: var(--glass-bg-light);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 2px solid var(--glass-border);
    border-radius: 28px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: var(--glass-shadow);
    cursor: pointer;
}

/* Glow effect - Updated colors */
.card-glow {
    position: absolute;
    inset: -2px;
    border-radius: 28px;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
    filter: blur(20px);
}

.ectomorph-glow {
    background: linear-gradient(135deg, 
        rgba(0, 184, 148, 0.4) 0%, 
        rgba(0, 184, 148, 0.2) 50%,
        transparent 100%);
}

.mesomorph-glow {
    background: linear-gradient(135deg, 
        rgba(0, 184, 148, 0.4) 0%, 
        rgba(0, 184, 148, 0.2) 50%,
        transparent 100%);
}

.endomorph-glow {
    background: linear-gradient(135deg, 
        rgba(0, 184, 148, 0.4) 0%, 
        rgba(0, 184, 148, 0.2) 50%,
        transparent 100%);
}

.bodytype-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.05) 0%, 
        rgba(255, 255, 255, 0) 100%);
    border-radius: 28px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.bodytype-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: var(--glass-border-bright);
    box-shadow: 
        var(--glass-shadow-hover),
        inset 0 1px 2px rgba(255, 255, 255, 0.15);
}

.bodytype-card:hover .card-glow {
    opacity: 1;
}

.bodytype-card:hover::before {
    opacity: 1;
}

/* Card Specific Border Colors - All using teal green */
.bodytype-card[data-type="ectomorph"] {
    border-top: 4px solid var(--accent-green);
}

.bodytype-card[data-type="mesomorph"] {
    border-top: 4px solid var(--accent-green);
}

.bodytype-card[data-type="endomorph"] {
    border-top: 4px solid var(--accent-green);
}

/* Card Header */
.card-header {
    padding: 28px 28px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.card-header h3 {
    font-size: 1.65rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: 0.5px;
}

body.rtl .card-header h3 {
    flex-direction: row-reverse;
}

.card-header i {
    font-size: 1.4rem;
}

/* All bodytype icons now use teal green */
.bodytype-card[data-type="ectomorph"] .card-header i,
.bodytype-card[data-type="mesomorph"] .card-header i,
.bodytype-card[data-type="endomorph"] .card-header i {
    color: var(--accent-green);
    filter: drop-shadow(0 2px 6px rgba(0, 184, 148, 0.5));
}

.type-tag {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 7px 16px;
    border-radius: 24px;
    font-weight: 600;
    letter-spacing: 0.8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

body.rtl .type-tag {
    margin-left: 0;
    margin-right: auto;
}

/* Card Body */
.card-body {
    padding: 28px;
}

.bodytype-image {
    height: 280px;
    margin-bottom: 28px;
    position: relative;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    background: rgba(0, 0, 0, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

/* All bodytype image backgrounds use teal gradient */
.ectomorph-img,
.mesomorph-img,
.endomorph-img {
    background: linear-gradient(145deg, rgba(0, 184, 148, 0.12) 0%, rgba(0, 184, 148, 0.06) 100%);
}

canvas {
    max-width: 100%;
    max-height: 100%;
}

/* Stats */
.card-stats {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 20px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.stat {
    margin-bottom: 18px;
}

.stat:last-child {
    margin-bottom: 0;
}

.stat-label {
    display: block;
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.stat-bar {
    height: 10px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--accent-green); /* Using teal green for stat bars */
    box-shadow: 0 0 12px rgba(0, 184, 148, 0.3);
}

.stat-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    float: right;
}

body.rtl .stat-value {
    float: left;
}

/* Card Footer */
.card-footer {
    padding: 0 28px 28px;
}

.compare-btn {
    width: 100%;
    padding: 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 2px solid rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
    border-radius: 16px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.compare-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.15), 
        transparent);
    transform: translateX(-100%);
    transition: transform 0.7s ease;
}

body.rtl .compare-btn::before {
    transform: translateX(100%);
}

.compare-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.compare-btn:hover::before {
    transform: translateX(100%);
}

body.rtl .compare-btn:hover::before {
    transform: translateX(-100%);
}

.bodytype-card.selected .compare-btn {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

/* ============================================================================
   COMPARISON SECTION
   ============================================================================ */
.comparison-section {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 2px solid var(--glass-border);
    border-radius: 28px;
    padding: 45px;
    margin-bottom: 50px;
    box-shadow: 
        var(--glass-shadow),
        inset 0 1px 1px rgba(255, 255, 255, 0.08);
}

.comparison-section h2 {
    font-size: 2.2rem;
    margin-bottom: 35px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 14px;
    font-weight: 800;
}

body.rtl .comparison-section h2 {
    flex-direction: row-reverse;
}

.comparison-section i {
    color: var(--accent-green); /* Updated to teal green */
    filter: drop-shadow(0 2px 8px rgba(0, 184, 148, 0.5));
}

.comparison-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 45px;
    align-items: center;
}

body.rtl .comparison-controls {
    flex-direction: row-reverse;
}

.comparison-selectors {
    display: flex;
    align-items: center;
    gap: 24px;
    flex: 1;
}

body.rtl .comparison-selectors {
    flex-direction: row-reverse;
}

.type-select {
    flex: 1;
    min-width: 220px;
    padding: 18px 24px;
    background: rgba(0, 0, 0, 0.35);
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    color: var(--text-primary);
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23ffffff' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 24px center;
    background-size: 18px;
    backdrop-filter: blur(10px);
}

body.rtl .type-select {
    background-position: left 24px center;
    text-align: right;
}

.type-select:hover {
    border-color: rgba(255, 255, 255, 0.25);
    background-color: rgba(0, 0, 0, 0.45);
}

.type-select:focus {
    outline: none;
    border-color: var(--accent-green); /* Updated to teal green */
    box-shadow: 0 0 0 3px rgba(0, 184, 148, 0.25);
}

.vs {
    color: var(--text-secondary);
    font-weight: 800;
    font-size: 1.35rem;
    padding: 0 12px;
    text-shadow: 0 2px 8px rgba(255, 255, 255, 0.2);
}

.action-btn {
    padding: 18px 36px;
    background: var(--gradient-accent);
    border: none;
    border-radius: 16px;
    color: white;
    font-size: 1.05rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 6px 24px rgba(0, 184, 148, 0.4);
    letter-spacing: 0.5px;
}

body.rtl .action-btn {
    flex-direction: row-reverse;
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(0, 184, 148, 0.5);
}

.action-btn.secondary {
    background: rgba(255, 255, 255, 0.06);
    border: 2px solid rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
    box-shadow: none;
}

.action-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.comparison-result {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 24px;
    padding: 45px;
    border: 2px solid rgba(255, 255, 255, 0.08);
    min-height: 320px;
    backdrop-filter: blur(10px);
    /* ADD THESE CRITICAL LINES */
    overflow-x: hidden; /* Prevent horizontal overflow */
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
}

/* Add responsive padding */
@media (max-width: 768px) {
    .comparison-result {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .comparison-result {
        padding: 20px;
    }
}

.empty-state {
    text-align: center;
    color: var(--text-secondary);
    padding: 70px 24px;
}

.empty-state i {
    font-size: 4.5rem;
    margin-bottom: 24px;
    opacity: 0.4;
}

.empty-state h3 {
    font-size: 1.65rem;
    margin-bottom: 12px;
    color: var(--text-primary);
    font-weight: 700;
}

.empty-state p {
    font-size: 1.15rem;
}

/* ============================================================================
   POPUP MODAL - Enhanced Glass Morphism
   ============================================================================ */
.bodytype-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 24px;
    animation: modalFadeIn 0.4s ease;
}

@keyframes modalFadeIn {
    from { 
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to { 
        opacity: 1;
        backdrop-filter: blur(12px);
    }
}

.popup-content {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur-strong);
    -webkit-backdrop-filter: var(--glass-blur-strong);
    border: 2px solid var(--glass-border-bright);
    border-radius: 32px;
    width: 100%;
    max-width: 700px;
    max-height: 92vh;
    overflow-y: auto;
    box-shadow: 
        var(--shadow-deep),
        inset 0 1px 2px rgba(255, 255, 255, 0.12);
    animation: modalSlideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

body.rtl .popup-content {
    direction: rtl;
    text-align: right;
}

@keyframes modalSlideUp {
    from { 
        transform: translateY(60px) scale(0.95);
        opacity: 0;
    }
    to { 
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.popup-header {
    padding: 32px 36px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

body.rtl .popup-header {
    flex-direction: row-reverse;
}

.popup-header h3 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

.close-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 2px solid rgba(255, 255, 255, 0.12);
    color: var(--text-secondary);
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    color: var(--text-primary);
    transform: rotate(90deg);
}

.popup-body {
    padding: 36px;
}

/* ============================================================================
   FOOTER
   ============================================================================ */
.ancientfit-footer {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 2px solid var(--glass-border);
    border-radius: 28px;
    padding: 45px;
    margin-top: 50px;
    box-shadow: 
        var(--glass-shadow),
        inset 0 1px 1px rgba(255, 255, 255, 0.08);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 45px;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 24px;
}

body.rtl .footer-logo {
    flex-direction: row-reverse;
}

.footer-logo-img {
    width: 55px;
    height: 55px;
    filter: drop-shadow(0 3px 10px rgba(0, 184, 148, 0.4));
}

.footer-logo p {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

.footer-disclaimer {
    flex: 1;
    min-width: 320px;
}

.footer-disclaimer p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 18px;
}

.footer-disclaimer i {
    color: var(--accent-green); /* Updated to teal green */
    margin-right: 10px;
    filter: drop-shadow(0 2px 6px rgba(0, 184, 148, 0.4));
}

body.rtl .footer-disclaimer i {
    margin-right: 0;
    margin-left: 10px;
}



/* ============================================================================
   RESPONSIVE DESIGN - UNCHANGED
   ============================================================================ */
@media (max-width: 1024px) {
    .bodytype-cards {
        grid-template-columns: 1fr;
    }
    
    .graphical-title {
        font-size: 3.2rem;
    }
}

@media (max-width: 768px) {
    .ancientfit-container {
        padding: 20px;
    }
    
    .ancientfit-header, 
    .intro-section,
    .comparison-section,
    .ancientfit-footer {
        padding: 35px 25px;
    }
    
    .header-logo {
        flex-direction: column;
        text-align: center;
        gap: 18px;
    }
    
    .graphical-title {
        font-size: 2.5rem;
    }
    
    .comparison-selectors {
        flex-direction: column;
        width: 100%;
    }
    
    .vs {
        padding: 12px 0;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .language-toggle-container {
        top: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .graphical-title {
        font-size: 2rem;
        letter-spacing: 1.5px;
    }
    
    .intro-section h2 {
        font-size: 2rem;
    }
    
    .instructions {
        flex-direction: column;
        gap: 18px;
    }
    
    .language-toggle-btn {
        min-width: 120px;
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}

/* Enhanced Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    border: 2px solid rgba(0, 0, 0, 0.25);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Selection Color - Updated to teal green */
::selection {
    background: rgba(0, 184, 148, 0.35);
    color: white;
}

/* Focus Styles */
:focus {
    outline: none;
}

:focus-visible {
    outline: 3px solid var(--accent-green); /* Updated to teal green */
    outline-offset: 3px;
    border-radius: 4px;
}

/* ============================================================================
   REAL BODY TYPE IMAGES - Dark Blurry Glass Background
   ============================================================================ */

.bodytype-image {
    height: 280px;
    margin-bottom: 28px;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Dark Blurry Glass Effect */
    background: rgba(10, 15, 25, 0.85); /* Dark glass background */
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 2px solid rgba(255, 255, 255, 0.12);
    box-shadow: 
        inset 0 0 40px rgba(0, 0, 0, 0.5),
        0 8px 32px rgba(0, 0, 0, 0.3);
    
    /* Subtle gradient overlay */
    background-image: 
        radial-gradient(
            ellipse at 30% 20%,
            rgba(0, 184, 148, 0.08) 0%,
            transparent 50%
        ),
        radial-gradient(
            ellipse at 70% 80%,
            rgba(0, 184, 148, 0.05) 0%,
            transparent 50%
        );
}

/* Real Image Styling */
.bodytype-image-real {
    width: 85%;
    height: 85%;
    object-fit: contain;
    object-position: center;
    border-radius: 12px;
    
    /* Glass-like polish on the image */
    filter: 
        drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4))
        brightness(1.05)
        contrast(1.05);
    
    /* Smooth transition for hover effects */
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Subtle inner glow */
    box-shadow: 
        inset 0 0 30px rgba(0, 184, 148, 0.1),
        inset 0 0 60px rgba(0, 0, 0, 0.2);
}

/* Image hover effects */
.bodytype-card:hover .bodytype-image-real {
    transform: scale(1.03);
    filter: 
        drop-shadow(0 8px 24px rgba(0, 184, 148, 0.2))
        brightness(1.1)
        contrast(1.1);
}

/* Enhanced glass effect on card hover */
.bodytype-card:hover .image-placeholder {
    background: rgba(15, 20, 35, 0.9);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 
        inset 0 0 50px rgba(0, 184, 148, 0.15),
        0 12px 48px rgba(0, 0, 0, 0.4);
}

/* Remove old canvas styles */
.bodytype-image canvas {
    display: none;
}

/* Type-specific image enhancements */
.bodytype-card[data-type="ectomorph"] .image-placeholder {
    border-top: 3px solid rgba(52, 152, 219, 0.4);
}

.bodytype-card[data-type="mesomorph"] .image-placeholder {
    border-top: 3px solid rgba(46, 204, 113, 0.4);
}

.bodytype-card[data-type="endomorph"] .image-placeholder {
    border-top: 3px solid rgba(243, 156, 18, 0.4);
}

/* Loading state for images */
.bodytype-image-real.loading {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.05) 25%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.05) 75%
    );
    background-size: 200% 100%;
    animation: loadingShimmer 1.5s infinite;
}

@keyframes loadingShimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .bodytype-image {
        height: 240px;
    }
    
    .bodytype-image-real {
        width: 90%;
        height: 90%;
    }
}

@media (max-width: 480px) {
    .bodytype-image {
        height: 220px;
    }
    
    .image-placeholder {
        border-width: 1px;
    }
}

/* ============================================================================
   FOOTER BOTTOM - FIX FOR OVERFLOWING TEXT ON SMALL SCREENS
   ============================================================================ */

.ancientfit-footer-bottom {
    margin-top: 30px;
    padding: 20px 30px;
    /* background: rgba(0, 0, 0, 0.25); */
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    /* CRITICAL FIXES BELOW */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

.ancientfit-footer-content-bottom {
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    /* CRITICAL FIXES BELOW */
    width: 100%;
    max-width: 100%;
    word-break: break-word;
    overflow-wrap: break-word;
}

.ancientfit-footer-content-bottom p {
    margin-bottom: 10px;
    /* CRITICAL: Ensure text doesn't overflow */
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

.ancientfit-footer-content-bottom p:last-child {
    margin-bottom: 0;
}

/* Mobile-specific fixes */
@media (max-width: 768px) {
    .ancientfit-footer-bottom {
        padding: 15px 20px;
        margin-top: 20px;
        border-radius: 16px;
    }
    
    .ancientfit-footer-content-bottom {
        font-size: 0.85rem;
        line-height: 1.6;
    }
    
    /* Ensure text wraps properly on very small screens */
    .ancientfit-footer-content-bottom p {
        padding: 0 5px;
        box-sizing: border-box;
    }
}

@media (max-width: 480px) {
    .ancientfit-footer-bottom {
        padding: 12px 15px;
        margin-top: 15px;
    }
    
    .ancientfit-footer-content-bottom {
        font-size: 0.8rem;
        line-height: 1.5;
    }
    
    /* Extra protection for very small screens */
    .ancientfit-footer-content-bottom p {
        hyphens: auto;
        -webkit-hyphens: auto;
        -moz-hyphens: auto;
        word-break: break-word;
        overflow-wrap: anywhere;
    }
}

/* RTL support for footer bottom */
body.rtl .ancientfit-footer-content-bottom {
    direction: rtl;
    text-align: center;
}

/* Add smooth transition for responsive changes */
.ancientfit-footer-bottom,
.ancientfit-footer-content-bottom,
.ancientfit-footer-content-bottom p {
    transition: all 0.3s ease;
}

/* Fix for the entire footer container to prevent horizontal overflow */
.ancientfit-footer {
    /* Add these lines if not already present */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Also fix the main container if needed */
.ancientfit-container {
    /* Add these lines if not already present */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}
/* ============================================================================
   iOS SAFARI COMPATIBILITY FIXES
   ============================================================================ */

/* Fix for 100vh issue on iOS Safari */
@supports (-webkit-touch-callout: none) {
  body, html {
    height: 100%;
    min-height: -webkit-fill-available;
  }
  
  /* Fix for background attachment */
  body {
    background-attachment: scroll;
  }
}

/* Ensure background is always visible on all devices */
body::before {
  /* Make sure the overlay is always visible */
  /* background: rgba(0, 0, 0, 0.7) !important; */
  z-index: -1;
}

/* Fix for mobile Safari background rendering */
@media screen and (max-width: 768px) {
  body {
    /* Fallback solid color for mobile Safari */
    background: #0a1a2a;
    /* Keep gradient overlay for other browsers */
    background: 
        linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)),
        url(../Images/Event/EventHomePage.jpg) no-repeat center center;
    background-size: cover;
    background-attachment: scroll;
  }
  
  /* Simplify background effects on mobile */
  body::after {
    display: none; /* Disable particles for performance */
  }
}

/* Critical fix for disappearing background on iOS */
body {
  /* Ensure body has proper stacking context */
  position: relative;
  z-index: 0;
}

/* Add stronger black overlay for iOS Safari */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: -1;
  pointer-events: none;
}

/* Optimize backdrop-filter for Safari */
.ancientfit-header,
.intro-section,
.comparison-section,
.ancientfit-footer,
.image-placeholder,
.language-toggle-btn,
.back-to-course-btn,
.popup-content,
.bodytype-card,
.instructions {
  /* Safari fallback for backdrop-filter */
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

/* Disable heavy animations on low-power devices */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Fix for fixed positioning on iOS */
.language-toggle-container,
.back-to-course-container {
  position: fixed;
  transform: translateZ(0); /* Hardware acceleration */
  -webkit-transform: translateZ(0);
}

/* Prevent text size adjustment on iOS */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Fix for scrolling performance */
.comparison-result,
.popup-content,
.bodytype-popup {
  -webkit-overflow-scrolling: touch;
  overflow-y: auto;
}

/* Ensure glass effects work on Safari */
@supports not (backdrop-filter: blur(10px)) {
  .ancientfit-header,
  .intro-section,
  .bodytype-card {
    background: rgba(10, 26, 42, 0.95) !important;
  }
}

/* Mobile-specific background fixes */
@media (max-width: 768px) {
  /* Simplify background for mobile performance */
  body::before {
    /* background: 
        radial-gradient(circle at 15% 25%, rgba(0, 184, 148, 0.08) 0%, transparent 25%),
        radial-gradient(circle at 85% 75%, rgba(0, 184, 148, 0.08) 0%, transparent 25%),
        rgba(0, 0, 0, 0.7); */
    animation: none; /* Disable animation on mobile */
  }
  
  /* Ensure content is readable on mobile */
  .ancientfit-container {
    /* background: rgba(0, 0, 0, 0.3); */
    min-height: 100vh;
  }
}

/* Extra safety for very old iOS versions */
@supports (-webkit-touch-callout: none) and (not (translate: none)) {
  .back-to-course-btn:hover,
  .language-toggle-btn:hover,
  .bodytype-card:hover {
    transform: none;
  }
}