* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Montserrat", sans-serif;
    background: #08090b;
    color: white;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input {
    font-family: inherit;
}

/* ================= NAVBAR ================= */

.glass-navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 88%;
    max-width: 1000px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 40px;
    backdrop-filter: blur(15px);
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-text {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #ffffff 40%, #05d9ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-text .highlight {
    background: linear-gradient(135deg, #05d9ff, #00ffcc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 28px;
}

.nav-links a {
    color: #aaa;
    font-size: 12px;
    font-weight: 600;
    transition: 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: white;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lang-btn {
    width: 38px;
    height: 34px;
    border-radius: 20px;
    background: transparent;
    border: 1px solid #444;
    color: white;
    cursor: pointer;
}

.btn-primary {
    background: #05ccef;
    color: #001014;
    padding: 10px 18px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 800;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background: white;
    margin: 5px;
}

/* ================= HERO ================= */

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 80px;
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("background.jpeg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    filter: blur(1px);
    transform: scale(1.1);
    z-index: 0;
}

.hero-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(8, 9, 11, 0.6);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
}

.hero-content h1 {
    font-size: clamp(40px, 7vw, 78px);
    line-height: 1.05;
    font-weight: 800;
}

.text-gradient {
    background: linear-gradient(90deg, #ffffff, #05d9ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    max-width: 650px;
    margin: 25px auto;
    color: #aaa;
    line-height: 1.8;
    font-size: 15px;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.btn-main {
    display: inline-block;
    background: #05d9ff;
    color: #001014;
    padding: 13px 28px;
    border-radius: 30px;
    font-weight: 800;
    font-size: 13px;
    transition: 0.3s;
}

.btn-main:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.3);
}

.btn-video {
    border: 1px solid #333;
    background: transparent;
    color: white;
    border-radius: 30px;
    padding: 13px 24px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-video:hover {
    transform: translateY(-3px);
    border-color: #05d9ff;
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.2);
    background: rgba(5, 217, 255, 0.05);
}

.play-icon {
    color: #05d9ff;
    margin-right: 6px;
}

/* ================= GENERAL SECTIONS ================= */

section {
    padding: 100px 7%;
}

.section-heading {
    text-align: center;
    margin-bottom: 60px;
}

.sub-title {
    color: #05d9ff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
}

.section-heading h2 {
    font-size: clamp(28px, 4vw, 48px);
    margin-top: 15px;
    line-height: 1.2;
}

/* ================= ABOUT ================= */

.about-section {
    position: relative;
    padding: 120px 8%;
    background: #080b0f;
    overflow: hidden;
}

.about-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(5, 10, 14, 0.88), rgba(5, 10, 14, 0.96)), url("gym-background.jpeg");
    background-size: cover;
    background-position: center;
    opacity: 0.65;
    z-index: 0;
}

.about-section::after {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    background: rgba(0, 212, 255, 0.08);
    filter: blur(120px);
    top: 20%;
    right: -200px;
    pointer-events: none;
}

.about-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.about-content {
    max-width: 600px;
}

.about-content h2 {
    font-size: 42px;
    line-height: 1.15;
    margin-bottom: 25px;
    color: white;
    font-weight: 800;
}

.about-content p {
    color: #aeb7c2;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 28px;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #e9eef2;
    font-size: 15px;
}

.check-icon {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #00d9ff;
    color: #071014;
    font-size: 13px;
    font-weight: bold;
    flex-shrink: 0;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.stat-card {
    position: relative;
    min-height: 190px;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(20, 26, 32, 0.78);
    border: 1px solid rgba(0, 217, 255, 0.35);
    border-radius: 18px;
    backdrop-filter: blur(12px);
    transition: all 0.35s ease;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-7px);
    border-color: #00d9ff;
    box-shadow: 0 15px 40px rgba(0, 217, 255, 0.12);
}

.stat-card::before {
    content: "";
    position: absolute;
    width: 100px;
    height: 100px;
    background: rgba(0, 217, 255, 0.08);
    filter: blur(35px);
    top: -50px;
    right: -40px;
}

.stat-icon {
    font-size: 34px;
    color: #00d9ff;
    margin-bottom: 10px;
    text-shadow: 0 0 15px rgba(0, 217, 255, 0.7);
}

.stat-card h3 {
    margin: 0;
    color: #00d9ff;
    font-size: 36px;
    font-weight: 800;
    line-height: 1;
}

.stat-card p {
    margin-top: 12px;
    color: #e5e9ed;
    font-size: 15px;
    font-weight: 500;
}

.stat-line {
    width: 80%;
    height: 5px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    margin-top: 15px;
    overflow: hidden;
}

.stat-line span {
    display: block;
    height: 100%;
    width: 70%;
    background: #00d9ff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.7);
}

/* ================= PROGRAMS ================= */

.programs-section,
.trainers-section,
.membership-section {
    background: #0b0d10;
}

.programs-grid {
    max-width: 1150px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.program-card {
    background: #12151a;
    border: 1px solid #252a30;
    border-radius: 15px;
    overflow: hidden;
    transition: 0.3s;
}

.program-card:hover {
    transform: translateY(-8px);
    border-color: #05d9ff;
}

.prog-img-box {
    height: 210px;
    overflow: hidden;
}

.prog-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.prog-content {
    padding: 22px;
}

.prog-content h3 {
    font-size: 18px;
    margin-bottom: 12px;
}

.prog-content p {
    color: #999;
    font-size: 12px;
    line-height: 1.7;
    min-height: 80px;
}

.prog-link {
    display: inline-block;
    margin-top: 18px;
    color: #05d9ff;
    font-size: 12px;
    font-weight: 700;
}

/* ================= TRAINERS ================= */

.trainers-grid {
    max-width: 1000px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.trainer-card {
    background: #12151a;
    border: 1px solid #252a30;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: default;
}

.trainer-card:hover {
    transform: translateY(-8px);
    border-color: #05d9ff;
    box-shadow: 0 15px 40px rgba(0, 217, 255, 0.12);
}

.trainer-card:hover .trainer-img-box img {
    transform: scale(1.04);
    transition: transform 0.5s ease;
}

.trainer-img-box {
    height: 350px;
    overflow: hidden;
}

.trainer-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.trainer-content {
    padding: 22px 20px;
    transition: 0.3s;
}

.trainer-content h3 {
    font-size: 18px;
    margin-bottom: 6px;
    transition: 0.3s;
}

.trainer-card:hover .trainer-content h3 {
    color: #05d9ff;
}

.trainer-role {
    color: #8a9aa8;
    font-size: 12px;
    font-weight: 500;
    transition: 0.3s;
}

.trainer-card:hover .trainer-role {
    color: #ffffff;
}

/* ================= CALCULATOR ================= */

.tools-section {
    min-height: 650px;
}

.calculator-card-wide {
    width: min(660px, 95%);
    margin: auto;
    background: #15181e;
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 18px;
    padding: 32px;
}

.calc-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.calc-tab {
    flex: 1;
    padding: 12px;
    border: 1px solid #3a3d42;
    border-radius: 8px;
    background: #202328;
    color: white;
    cursor: pointer;
    font-weight: 700;
}

.calc-tab.active {
    background: #05ccef;
    color: #001014;
    border-color: #05ccef;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: white;
    font-size: 13px;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 12px;
    background: #0c0f12;
    border: 1px solid #05a9ca;
    border-radius: 7px;
    color: white;
    outline: none;
}

.btn-calculate {
    display: block;
    margin: 30px auto 0;
    padding: 13px 35px;
    border: none;
    border-radius: 8px;
    background: #05ccef;
    color: #001014;
    font-weight: 800;
    cursor: pointer;
}

.calc-result {
    margin-top: 25px;
    text-align: center;
    line-height: 1.8;
    color: white;
}

.calc-result span {
    color: #05d9ff;
    font-weight: 700;
}

/* ================= MEMBERSHIP ================= */

.membership-grid {
    max-width: 1100px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.membership-card {
    position: relative;
    background: #12151a;
    border: 1px solid #252a30;
    border-radius: 15px;
    padding: 30px;
}

.membership-card.featured {
    border-color: #05d9ff;
    box-shadow: 0 0 30px rgba(0, 217, 255, 0.08);
}

.popular-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: #05d9ff;
    color: #001014;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.plan-header h3 {
    font-size: 20px;
}

.plan-header p {
    color: #888;
    font-size: 11px;
    margin-top: 6px;
}

.plan-price {
    margin: 25px 0;
}

.currency {
    color: #05d9ff;
}

.amount {
    font-size: 42px;
    font-weight: 800;
}

.period {
    color: #888;
    font-size: 12px;
}

.plan-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.plan-features li {
    display: flex;
    gap: 8px;
    color: #ccc;
    font-size: 12px;
}

.plan-features .check {
    color: #05d9ff;
}

.plan-features .disabled {
    color: #555;
}

.btn-plan {
    display: block;
    text-align: center;
    padding: 12px;
    border: 1px solid #333;
    border-radius: 25px;
    font-size: 11px;
    font-weight: 700;
}

.btn-plan.primary {
    background: #05d9ff;
    color: #001014;
    border-color: #05d9ff;
}

/* ================= FOOTER ================= */

.footer {
    background: linear-gradient(145deg, #0b0d10 0%, #08090b 100%);
    border-top: 2px solid rgba(5, 217, 255, 0.15);
    padding-top: 10px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 217, 255, 0.03) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    pointer-events: none;
}

.footer-container {
    max-width: 1000px;
    margin: auto;
    padding: 60px 20px 40px;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 50px;
    position: relative;
    z-index: 1;
}

.footer-col {
    text-align: left !important;
    direction: ltr !important;
}

.footer-title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 22px;
    letter-spacing: 0.5px;
    position: relative;
    display: inline-block;
}

.footer-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 30px;
    height: 3px;
    background: #05d9ff;
    border-radius: 4px;
}

.footer-desc {
    color: #a0aab5;
    font-size: 13px;
    line-height: 1.8;
    margin-top: 15px;
    max-width: 300px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-links a {
    color: #a0aab5;
    font-size: 13px;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
}

.footer-links a::before {
    content: "›";
    color: #05d9ff;
    font-weight: 700;
    margin-right: 8px;
    opacity: 0;
    transition: 0.3s;
}

.footer-links a:hover {
    color: #05d9ff;
    transform: translateX(6px);
}

.footer-links a:hover::before {
    opacity: 1;
}

.footer-text {
    color: #a0aab5;
    font-size: 13px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.footer-text:hover {
    color: #ffffff;
    transform: translateX(4px);
}

.footer-bottom {
    max-width: 1000px;
    margin: auto;
    padding: 20px 20px 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    color: #7a8591;
    font-size: 12px;
    direction: ltr !important;
}

.developer-credit {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.developer-credit span:first-child {
    color: #a0aab5;
}

.developer-credit span:last-child {
    font-size: 14px;
    font-weight: 800;
    background: linear-gradient(90deg, #05d9ff, #00ffcc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(5, 217, 255, 0.3);
    letter-spacing: 0.5px;
}

/* ================= VIDEO MODAL ================= */

.video-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.video-container {
    position: relative;
    width: min(800px, 90%);
}

.video-container video {
    width: 100%;
    border-radius: 12px;
}

.close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    border: none;
    background: none;
    color: white;
    font-size: 35px;
    cursor: pointer;
}

/* ================= ANIMATIONS ================= */

.fade-in-left,
.fade-in-right,
.fade-in-up {
    opacity: 0;
    transition: 1s;
}

.fade-in-left {
    transform: translateX(-40px);
}

.fade-in-right {
    transform: translateX(40px);
}

.fade-in-up {
    transform: translateY(40px);
}

.show {
    opacity: 1;
    transform: translate(0);
}

/* ================= ARABIC ================= */

html[dir="rtl"] .hero-content,
html[dir="rtl"] .section-heading,
html[dir="rtl"] .about-content,
html[dir="rtl"] .calculator-card-wide,
html[dir="rtl"] .membership-card,
html[dir="rtl"] .program-card,
html[dir="rtl"] .trainer-card {
    direction: rtl;
}

html[dir="rtl"] .footer {
    direction: ltr !important;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 900px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: #111419;
        padding: 20px;
        border-radius: 15px;
        flex-direction: column;
        text-align: center;
    }
    .nav-links.active {
        display: flex;
    }
    .hamburger {
        display: block;
    }
    .nav-actions .btn-primary {
        display: none;
    }
    .about-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .about-content {
        text-align: center;
        margin: auto;
    }
    .about-features {
        align-items: center;
    }
    .about-stats {
        max-width: 600px;
        margin: auto;
        width: 100%;
    }
    .programs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .trainers-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    .membership-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-col {
        text-align: center !important;
    }
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .footer-desc {
        max-width: 100%;
    }
    .footer-links a::before {
        display: none;
    }
}

@media (max-width: 600px) {
    .glass-navbar {
        width: 94%;
    }
    .hero-content h1 {
        font-size: 40px;
    }
    .hero-btns {
        flex-direction: column;
        align-items: center;
    }
    .about-section {
        padding: 80px 20px;
    }
    .about-content h2 {
        font-size: 30px;
    }
    .about-stats {
        grid-template-columns: 1fr;
    }
    .stat-card {
        min-height: 170px;
    }
    .programs-grid {
        grid-template-columns: 1fr;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .membership-grid {
        grid-template-columns: 1fr;
    }
    .footer-container {
        padding: 40px 15px 30px;
        gap: 30px;
    }
    .footer-bottom {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding: 15px;
        gap: 6px;
        font-size: 11px;
    }
    .developer-credit {
        justify-content: center;
    }
    .developer-credit span:last-child {
        font-size: 13px;
    }
}