:root {
    --primary-color: #ff1e42; /* vibrant red */
    --primary-light: #ff4e6e;
    --primary-dark: #e01a37;
    --secondary-color: #ff6b35; /* orange-red accent */
    --background-dark: #0a0a0a; /* very dark black */
    --darker-bg: #050505;
    --card-bg: rgba(20, 20, 20, 0.85);
    --card-bg-blur: blur(10px);
    --text-primary: #ffffff;
    --text-secondary: #e0e0e0;
    --border-radius: 20px;
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --font-base: 16px;
    --font-heading: 'Orbitron', 'Saira Condensed', 'Arial Black', sans-serif;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: var(--font-base);
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-heading);
    background-color: var(--background-dark);
    color: var(--text-primary);
    line-height: 1.6;
    direction: rtl;
    overflow-x: hidden;
    min-height: 100vh;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255,30,66,0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(255,107,53,0.1) 0%, transparent 20%);
}

body.ltr {
    direction: ltr;
}

/* Utility classes */
.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 0;
}

.section {
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><opacity>0.03</opacity><path d="M10 10h5v5h-5zM40 10h5v5h-5zM70 10h5v5h-5zM10 40h5v5h-5zM40 40h5v5h-5zM70 40h5v5h-5zM10 70h5v5h-5zM40 70h5v5h-5zM70 70h5v5h-5z" fill="%23ffffff" fill-opacity="0.03"/></svg>');
    pointer-events: none;
    z-index: 0;
}

.section h2 {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 900;
    letter-spacing: -0.5px;
}

p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
    color: inherit;
    transition: var(--transition);
}

/* Language Toggle */
/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(135deg, rgba(10,10,10,0.82) 0%, rgba(5,5,5,0.6) 55%, rgba(5,5,5,0.88) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Hero background image (Ken Burns effect) */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('img/hero-gym.jpg');
    background-size: cover;
    background-position: center center;
    pointer-events: none;
    z-index: 0;
    animation: heroKenBurns 30s ease-in-out infinite alternate;
    will-change: transform;
}

@keyframes heroKenBurns {
    0% {
        transform: scale(1.05) translate(0, 0);
    }
    100% {
        transform: scale(1.18) translate(2%, -2%);
    }
}

.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    max-width: 900px;
    padding: 0 2rem;
    z-index: 2;
    position: relative;
}

.hero h1 {
    font-size: 6rem;
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -1px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
}

.hero p {
    font-size: 1.8rem;
    color: var(--text-secondary);
    max-width: 700px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.cta-primary, .cta-secondary {
    padding: 1.2rem 3rem;
    border-radius: var(--border-radius);
    font-size: 1.3rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.cta-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 8px 25px rgba(255,30,66,0.4);
    border: 2px solid var(--primary-color);
}

.cta-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(255,30,66,0.6);
}

.cta-primary:active {
    transform: translateY(-2px);
}

.cta-primary::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    transform: rotate(30deg);
    transition: transform 0.5s ease;
}

.cta-primary:hover::before {
    transform: rotate(40deg);
}

.cta-secondary {
    background: var(--card-bg);
    backdrop-filter: var(--card-bg-blur);
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--text-primary);
}

.cta-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(255,30,66,0.4);
}

.hero-content {
    margin-inline: auto;
}

/* About Section */
.about {
    background: var(--darker-bg);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(255,255,255,0.02) 10px,
            rgba(255,255,255,0.02) 20px
        );
    pointer-events: none;
    opacity: 0.3;
}

.about p {
    font-size: 1.4rem;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    line-height: 1.8;
}

/* Services Section */
.services {
    background: var(--darker-bg);
    position: relative;
    overflow: hidden;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.bento-item, .plan-card, .trainer-card, .testimonial-card {
    background: var(--card-bg);
    backdrop-filter: var(--card-bg-blur);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 260px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.bento-item::before, .plan-card::before, .trainer-card::before, .testimonial-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255,255,255,0.05) 0%, transparent 60%);
    transform: rotate(30deg);
    pointer-events: none;
    transition: var(--transition);
}

.bento-item:hover, .plan-card:hover, .trainer-card:hover, .testimonial-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(255,30,66,0.25);
}

.bento-item h3, .plan-card h3, .trainer-card h3, .testimonial-card h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    font-weight: 800;
}

.bento-item p {
    color: var(--text-secondary);
    line-height: 1.7;
    flex-grow: 1;
}

/* Plan Cards */
.plan-card {
    text-align: center;
}

.plan-card .price {
    font-size: 3.5rem;
    font-weight: 900;
    margin: 2rem 0;
    color: var(--primary-color);
    letter-spacing: -1px;
}

.plan-card ul {
    list-style: none;
    text-align: right;
    margin: 2rem 0;
    color: var(--text-secondary);
}

.plan-card ul li {
    margin: 0.8rem 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    font-size: 1.2rem;
}

.plan-card ul li::before {
    content: "✓";
    color: var(--secondary-color);
    margin-right: 0.8rem;
    font-weight: bold;
    font-size: 1.4rem;
}

.plan-btn {
    background: var(--primary-color);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: var(--border-radius);
    font-weight: 700;
    font-size: 1.2rem;
    transition: var(--transition);
    border: 2px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.plan-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(255,30,66,0.4);
}

/* Trainers Section */
.trainers {
    background: var(--darker-bg);
    position: relative;
    overflow: hidden;
}

.trainer-card {
    text-align: center;
}

.trainer-card .trainer-placeholder {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: 
        linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    margin: 0 auto 2rem;
    box-shadow: 0 0 30px rgba(255,30,66,0.4);
    border: 3px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.trainer-card .trainer-placeholder::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><opacity>0.1</opacity><path d="M50,5 L55,20 L70,20 L60,30 L65,45 L50,35 L35,45 L40,30 L30,20 L45,20 Z" fill="%23ffffff"/></svg>');
    pointer-events: none;
}

.trainer-card h3 {
    margin-bottom: 0.8rem;
}

.trainer-card p {
    color: var(--text-secondary);
    font-style: italic;
    font-size: 1.1rem;
}

/* Schedule Section */
.schedule {
    background: var(--darker-bg);
    position: relative;
    overflow: hidden;
}

.schedule-table {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    background: var(--card-bg);
    backdrop-filter: var(--card-bg-blur);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.schedule-header {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    font-weight: 800;
    text-align: center;
    padding: 1.5rem;
    background: var(--primary-color);
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    color: white;
    letter-spacing: -0.5px;
}

.schedule-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 1.5rem;
    background: var(--card-bg);
    backdrop-filter: var(--card-bg-blur);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255,255,255,0.1);
    transition: var(--transition);
}

.schedule-row:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(255,30,66,0.2);
}

.schedule-row div {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* Testimonials Section */
.testimonials {
    background: var(--darker-bg);
    position: relative;
    overflow: hidden;
}

.testimonial-card {
    text-align: center;
    padding: 3rem;
}

.testimonial-card p:first-child {
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
    font-size: 1.3rem;
    position: relative;
    display: inline-block;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.testimonial-card p:first-child::before,
.testimonial-card p:first-child::after {
    content: '"';
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.3;
    position: absolute;
}

.testimonial-card p:first-child::before {
    top: -20px;
    left: -10px;
}

.testimonial-card p:first-child::after {
    bottom: -20px;
    right: -10px;
}

.testimonial-card p:last-child {
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 1.5rem;
    font-size: 1.2rem;
}

/* Final CTA Section */
.final-cta {
    background: var(--primary-color);
    text-align: center;
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
}

.final-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at center, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.final-cta h2 {
    color: white;
    font-size: 3.5rem;
    margin-bottom: 2rem;
    font-weight: 900;
}

.final-cta p {
    color: rgba(255,255,255,0.9);
    font-size: 1.4rem;
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

.final-cta .cta-primary {
    background: white;
    color: var(--primary-color);
    border: 2px solid white;
}

.final-cta .cta-primary:hover {
    background: #f0f0f0;
}

/* Footer */
footer {
    background: var(--darker-bg);
    text-align: center;
    padding: 3rem 0;
    font-size: 1rem;
    color: var(--text-secondary);
    border-top: 1px solid rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero h1 {
        font-size: 5rem;
    }
    
    .hero p {
        font-size: 1.6rem;
    }
    
    .section h2 {
        font-size: 3rem;
    }
    
    .bento-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 992px) {
    .hero h1 {
        font-size: 4.5rem;
    }
    
    .hero p {
        font-size: 1.4rem;
    }
    
    .section h2 {
        font-size: 2.5rem;
    }
    
    .schedule-table, .schedule-header, .schedule-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .schedule-header div, 
    .schedule-row div {
        text-align: center;
        padding: 0.75rem;
    }
    
    .schedule-header div:nth-child(1),
    .schedule-row div:nth-child(1) {
        grid-column: 1 / 3;
    }
    
    .schedule-header div:nth-child(2),
    .schedule-row div:nth-child(2) {
        grid-column: 3 / 4;
    }
    
    .schedule-header div:nth-child(3),
    .schedule-row div:nth-child(3) {
        grid-column: 1 / 3;
    }
    
    .schedule-header div:nth-child(4),
    .schedule-row div:nth-child(4) {
        grid-column: 3 / 4;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cta-primary, .cta-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .section h2 {
        font-size: 2.2rem;
    }
    
    .bento-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }
    
    .schedule-table, .schedule-header, .schedule-row {
        grid-template-columns: 1fr;
    }
    
    .schedule-header div,
    .schedule-row div {
        text-align: center;
        padding: 1rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .schedule-header div:last-child,
    .schedule-row div:last-child {
        border-bottom: none;
    }
    
    .schedule-header div:nth-child(1),
    .schedule-row div:nth-child(1) {
        grid-column: 1;
    }
    
    .schedule-header div:nth-child(2),
    .schedule-row div:nth-child(2) {
        grid-column: 1;
    }
    
    .schedule-header div:nth-child(3),
    .schedule-row div:nth-child(3) {
        grid-column: 1;
    }
    
    .schedule-header div:nth-child(4),
    .schedule-row div:nth-child(4) {
        grid-column: 1;
    }
    
    .trainer-card .trainer-placeholder {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section h2 {
        font-size: 1.8rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
    
    .section h2 {
        font-size: 1.6rem;
    }
    
    .trainer-card .trainer-placeholder {
        width: 100px;
        height: 100px;
    }
}