/* ===== Base Styles & Variables ===== */
:root {
    --primary: #ff5500;
    --primary-dark: #e04b00;
    --secondary: #00a8ff;
    --dark: #121212;
    --darker: #0a0a0a;
    --light: #ffffff;
    --gray: #2a2a2a;
    --light-gray: #e0e0e0;
    --success: #28a745;
    --warning: #ffd700;
    --danger: #dc3545;
    --border-radius: 8px;
    --box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--dark);
    color: var(--light);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 1px;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary);
}

img {
    max-width: 100%;
    height: auto;
}

section {
    padding: 80px 0;
    position: relative;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--light);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2 span {
    color: var(--primary);
}

.section-header p {
    font-size: 1.1rem;
    color: var(--light-gray);
    max-width: 700px;
    margin: 0 auto;
}

/* ===== Loader ===== */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--darker);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader-content {
    text-align: center;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 85, 0, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s ease-in-out infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loader p {
    color: var(--light);
    font-size: 1.2rem;
}

/* ===== Header & Navigation ===== */
.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(18, 18, 18, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.sticky-header.scrolled {
    background-color: rgba(10, 10, 10, 0.98);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 1.8rem;
    color: var(--light);
    font-weight: 700;
}

.logo span {
    color: var(--primary);
}

.main-nav {
    display: flex;
    align-items: center;
}

.main-nav a {
    color: var(--light);
    margin: 0 15px;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 5px 0;
}

.main-nav a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.main-nav a:hover:after,
.main-nav a.active:after {
    width: 100%;
}

.main-nav a.active {
    color: var(--primary);
}

.cta-button {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
    margin-left: 15px;
}

.cta-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 85, 0, 0.3);
    color: white;
}

.secondary-button {
    display: inline-block;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
}

.secondary-button:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 85, 0, 0.3);
}

.hamburger {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--light);
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

/* ===== Hero Section ===== */
.hero {
    height: 100vh;
    min-height: 700px;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1571019613454-1cb2f99b2d8b?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1350&q=80') no-repeat center center/cover;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--light);
    margin-bottom: 20px;
    line-height: 1.2;
    animation: fadeInUp 1s ease;
}

.hero h1 span {
    color: var(--primary);
    display: block;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--light-gray);
    animation: fadeInUp 1s ease 0.2s forwards;
    opacity: 0;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    animation: fadeInUp 1s ease 0.4s forwards;
    opacity: 0;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-down a {
    color: var(--light);
    font-size: 1.5rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-20px) translateX(-50%);
    }
    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

/* ===== Stats Bar ===== */
.stats-bar {
    background-color: var(--primary);
    padding: 40px 0;
    color: white;
}

.stats-bar .container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 0 20px;
}

.stat-item h3 {
    font-size: 2.5rem;
    margin-bottom: 5px;
    font-weight: 700;
}

.stat-item p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ===== Services Section ===== */
.services .card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--gray);
    border-radius: var(--border-radius);
    padding: 30px;
    transition: var(--transition);
    text-align: center;
    box-shadow: var(--box-shadow);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    opacity: 0;
    z-index: -1;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card:hover:before {
    opacity: 0.1;
}

.card-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(255, 85, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary);
    font-size: 1.8rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--light);
}

.service-card p {
    margin-bottom: 20px;
    color: var(--light-gray);
}

.service-card ul {
    text-align: left;
    margin-top: 20px;
}

.service-card ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
    color: var(--light-gray);
}

.service-card ul li:before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--primary);
}

/* ===== Schedule Section ===== */
.schedule-container {
    background-color: var(--gray);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.schedule-tabs {
    display: flex;
    flex-wrap: wrap;
    background-color: var(--darker);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tab-btn {
    padding: 15px 25px;
    background: none;
    border: none;
    color: var(--light-gray);
    font-weight: 600;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.tab-btn:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary);
    transition: var(--transition);
}

.tab-btn:hover,
.tab-btn.active {
    color: var(--light);
}

.tab-btn.active:after {
    width: 100%;
}

.schedule-table-container {
    overflow-x: auto;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
}

.schedule-table th {
    background-color: var(--darker);
    color: var(--light);
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.schedule-table td {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--light-gray);
}

.schedule-table tr:last-child td {
    border-bottom: none;
}

.schedule-table tr:hover td {
    background-color: rgba(255, 255, 255, 0.02);
    color: var(--light);
}

.level {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.level.beginner {
    background-color: rgba(40, 167, 69, 0.2);
    color: #28a745;
}

.level.intermediate {
    background-color: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.level.advanced {
    background-color: rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

.level.all-levels {
    background-color: rgba(0, 168, 255, 0.2);
    color: #00a8ff;
}

.book-btn {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.book-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

/* ===== Trainers Section ===== */
.trainer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.trainer-card {
    background-color: var(--gray);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.trainer-card:hover {
    transform: translateY(-10px);
}

.trainer-image {
    position: relative;
    height: 350px;
    overflow: hidden;
}

.trainer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.trainer-card:hover .trainer-image img {
    transform: scale(1.05);
}

.trainer-social {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 15px;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

.trainer-card:hover .trainer-social {
    opacity: 1;
    transform: translateY(0);
}

.trainer-social a {
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.trainer-social a:hover {
    background-color: var(--primary);
    transform: translateY(-5px);
}

.trainer-info {
    padding: 25px;
}

.trainer-info h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: var(--light);
}

.specialty {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 15px;
    display: block;
}

.bio {
    color: var(--light-gray);
    margin-bottom: 20px;
}

.certifications {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.certifications span {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--light-gray);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
}

/* ===== Pricing Section ===== */
.pricing-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.pricing-card {
    background-color: var(--gray);
    border-radius: var(--border-radius);
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.pricing-card.featured {
    border: 1px solid var(--primary);
    transform: scale(1.05);
    z-index: 1;
}

.popular-tag {
    position: absolute;
    top: 0;
    right: 30px;
    background-color: var(--primary);
    color: white;
    padding: 5px 15px;
    border-radius: 0 0 5px 5px;
    font-size: 0.8rem;
    font-weight: 600;
}

.pricing-header {
    margin-bottom: 30px;
}

.pricing-header h3 {
    font-size: 1.5rem;
    color: var(--light);
    margin-bottom: 10px;
}

.price {
    color: var(--light);
}

.price .currency {
    font-size: 1.2rem;
    vertical-align: top;
}

.price .amount {
    font-size: 2.5rem;
    font-weight: 700;
}

.price .period {
    font-size: 0.9rem;
    color: var(--light-gray);
}

.features {
    list-style: none;
    margin-bottom: 30px;
    text-align: left;
}

.features li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    color: var(--light-gray);
    display: flex;
    align-items: center;
}

.features li i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.features li .fa-check {
    color: var(--success);
}

.features li .fa-times {
    color: var(--danger);
}

.pricing-btn {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

.pricing-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 85, 0, 0.3);
}

.corporate-pricing {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius);
}

.corporate-pricing p {
    color: var(--light-gray);
}

.corporate-pricing a {
    color: var(--primary);
    font-weight: 600;
}

/* ===== Gallery Section ===== */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 250px;
    box-shadow: var(--box-shadow);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.gallery-cta {
    text-align: center;
    margin-top: 50px;
}

.gallery-cta p {
    font-size: 1.2rem;
    color: var(--light-gray);
    margin-bottom: 20px;
}

/* ===== Testimonials Section ===== */
.testimonial-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-slide {
    display: none;
    animation: fade 1s ease;
}

.testimonial-slide.active {
    display: block;
}

@keyframes fade {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

.testimonial-content {
    background-color: var(--gray);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.testimonial-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 20px;
    border: 3px solid var(--primary);
}

.testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-text p {
    font-style: italic;
    color: var(--light-gray);
    margin-bottom: 20px;
    position: relative;
}

.testimonial-text p:before,
.testimonial-text p:after {
    content: '"';
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: bold;
}

.testimonial-text h4 {
    font-size: 1.2rem;
    color: var(--light);
    margin-bottom: 5px;
}

.testimonial-text span {
    display: block;
    color: var(--light-gray);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.rating {
    color: var(--warning);
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    gap: 20px;
}

.prev-btn,
.next-btn {
    background-color: var(--gray);
    color: var(--light);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.prev-btn:hover,
.next-btn:hover {
    background-color: var(--primary);
    color: white;
}

.indicators {
    display: flex;
    gap: 10px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--gray);
    cursor: pointer;
    transition: var(--transition);
}

.indicator.active {
    background-color: var(--primary);
}

/* ===== Contact Section ===== */
.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.contact-info {
    background-color: var(--gray);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.info-item {
    display: flex;
    margin-bottom: 30px;
}

.info-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 85, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    margin-right: 20px;
    flex-shrink: 0;
}

.info-content h3 {
    font-size: 1.2rem;
    color: var(--light);
    margin-bottom: 10px;
}

.info-content p {
    color: var(--light-gray);
    margin-bottom: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-gray);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-5px);
}

.contact-form {
    background-color: var(--gray);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--light);
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    color: var(--light);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    background-color: rgba(255, 85, 0, 0.05);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

.submit-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 85, 0, 0.3);
}

.map {
    height: 400px;
}

.map iframe {
    width: 100%;
    height: 100%;
    border: none;
}


/* ===== Newsletter Section ===== */

.newsletter {
    background-color: var(--primary);
    color: #ffffff;
    padding: 60px 0;
}

.newsletter-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.newsletter-text h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.newsletter-text p {
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    flex-grow: 1;
    max-width: 500px;
}

.newsletter-form input {
    flex-grow: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 30px 0 0 30px;
    color: var(--dark);
}

.newsletter-form button {
    background-color: var(--darker);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 0 30px 30px 0;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background-color: black;
}


/* ===== Footer ===== */

footer {
    background-color: var(--darker);
    padding: 60px 0 0;
    color: var(--light-gray);
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: var(--light);
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary);
}

.footer-col p {
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 1rem;
}

.footer-social a {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-gray, #bbb);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 3px 6px rgba(0,0,0,0.25);
    position: relative;
    overflow: hidden;
}

/* تأثير hover مع إضاءة دائرية */
.footer-social a::before {
    content: "";
    position: absolute;
    width: 120%;
    height: 120%;
    background: var(--primary, #ff5500);
    transform: scale(0);
    border-radius: 50%;
    transition: transform 0.4s ease;
    z-index: 0;
}

.footer-social a:hover::before {
    transform: scale(1);
}

.footer-social a i {
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.footer-social a:hover i {
    color: #fff;
}
p {
    font-size: 1rem;
    line-height: 1.6;
    color: #ffffff; /* رمادي فاتح */
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

p:hover {
    color: #fff; /* يضيء عند المرور */
}


.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--light-gray);
    transition: var(--transition);
    display: block;
    padding: 5px 0;
}

.footer-col ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.app-download {
    display: flex;
    flex-direction: row;   /* صف واحد */
    gap: 15px;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.app-download a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.35);
}

/* زر App Store */
.app-download a.apple {
    background: linear-gradient(135deg, #333, #000);
}

.app-download a.apple:hover {
    background: linear-gradient(135deg, #444, #111);
    transform: translateY(-3px);
}

/* زر Google Play */
.app-download a.google {
    background: linear-gradient(135deg, #34a853, #0c7b32);
}

.app-download a.google:hover {
    background: linear-gradient(135deg, #3ec65c, #0b6a2c);
    transform: translateY(-3px);
}

/* أيقونات داخل الأزرار */
.app-download img {
    width: 22px;
    height: auto;
}


.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 0.9rem;
}

.footer-bottom i {
    color: var(--danger);
}


/* ===== Back to Top Button ===== */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-5px);
}


/* ===== Modal ===== */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--gray);
    padding: 40px;
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-content h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--light);
    text-align: center;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    color: var(--light-gray);
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

/* ===== Responsive Styles ===== */

@media (max-width: 992px) {
    section {
        padding: 60px 0;
    }
    .hero h1 {
        font-size: 2.8rem;
    }
    .section-header h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    .main-nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--darker);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 40px 0;
        transition: var(--transition);
        z-index: 999;
    }
    .main-nav.active {
        left: 0;
    }
    .main-nav a {
        margin: 15px 0;
        font-size: 1.1rem;
    }
    .cta-button {
        margin: 20px 0 0;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    .newsletter-container {
        flex-direction: column;
        text-align: center;
    }
    .newsletter-form {
        width: 100%;
    }
}

@media (max-width: 576px) {
    section {
        padding: 50px 0;
    }
    .hero {
        min-height: 600px;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .section-header h2 {
        font-size: 1.8rem;
    }
    .section-header p {
        font-size: 1rem;
    }
    .stats-bar .container {
        flex-direction: column;
        gap: 30px;
    }
    .modal-content {
        padding: 30px 20px;
    }
}
.user-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: 0.5rem;
    padding: 0.4rem 0.6rem;
    background: #1e1e1e;
    border-radius: 0.6rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.35);
    transition: all 0.25s ease-in-out;
    cursor: pointer;
}

.user-profile:hover {
    background: #222;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.45);
}

.profile-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #ff5500;
    object-fit: cover;
    transition: all 0.3s ease;
}

.user-profile:hover .profile-icon {
    border-color: #00a8ff;
}

.username-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    margin-top: 0.25rem;
    letter-spacing: 0.3px;
    text-transform: capitalize;
    white-space: nowrap; /* ما يخليش الاسم يطيح لسطر ثاني */
}

/* تصميم نافذة الشات */
#chat-popup {
    display: flex;
    flex-direction: column;
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 350px;
    max-height: 500px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.25);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
    z-index: 1000;
}

/* رأس الشات */
#chat-popup header {
    background: #007bff;
    color: white;
    padding: 12px 16px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* زر إغلاق */
#close-chat-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 22px;
    cursor: pointer;
}

/* منطقة عرض الرسائل */
#messages {
    flex: 1;
    overflow-y: auto;
    padding: 12px 16px;
    background: #f7f9fc;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* رسالة واحدة */
.message {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

/* صورة المستخدم */
.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #007bff;
}

/* محتوى الرسالة */
.content {
    background: #e1eaff;
    padding: 10px 14px;
    border-radius: 12px;
    max-width: 80%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* اسم المستخدم */
.username {
    font-weight: 700;
    margin-bottom: 4px;
    color: #003d99;
    font-size: 14px;
}

/* نص الرسالة */
.message .content div:last-child {
    font-size: 15px;
    color: #333;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* فورم الإدخال */
#message-form {
    display: flex;
    padding: 10px 16px;
    background: #fff;
    border-top: 1px solid #ddd;
}

/* حقل النص */
#message-input {
    flex: 1;
    padding: 8px 14px;
    font-size: 15px;
    border: 1.5px solid #ccc;
    border-radius: 20px;
    outline: none;
    transition: border-color 0.3s ease;
}

#message-input:focus {
    border-color: #007bff;
}

/* زر الإرسال */
#send-btn {
    background: #007bff;
    border: none;
    color: white;
    font-weight: 600;
    padding: 0 20px;
    margin-left: 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 15px;
    transition: background-color 0.3s ease;
}

#send-btn:hover {
    background: #0056b3;
}
/* -------------------- الأساسيات -------------------- */
body {
    margin: 0;
    font-family: Arial, sans-serif;
}

/* تحسين عام للصور */
img {
    max-width: 100%;
    height: auto;
}

/* -------------------- تحسينات الشات -------------------- */
.chat-popup {
    width: 350px;
    max-width: 90%;
}

/* -------------------- تحسينات الرسائل -------------------- */
.message {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
    padding: 5px;
}

.message .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 8px;
    flex-shrink: 0;
}

.message .content {
    word-break: break-word;
}

/* -------------------- موبايل أقل من 768px -------------------- */
@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    .chat-popup {
        width: 100%;
        height: 100%;
        max-width: 100%;
        border-radius: 0;
        top: 0 !important;
        left: 0 !important;
    }

    #messages {
        max-height: calc(100% - 120px);
        overflow-y: auto;
    }

    .message .avatar {
        width: 35px;
        height: 35px;
    }

    form {
        display: flex;
        flex-direction: row;
        padding: 5px;
    }

    form input[type="text"] {
        flex: 1;
        font-size: 14px;
        padding: 8px;
    }

    form button {
        font-size: 14px;
        padding: 8px 10px;
    }
}

/* -------------------- موبايل صغير أقل من 480px -------------------- */
@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    .message {
        padding: 4px;
    }

    .message .avatar {
        width: 30px;
        height: 30px;
    }

    form input[type="text"] {
        font-size: 13px;
    }

    form button {
        font-size: 13px;
    }
}
#cta30 {
    display: inline-block;
    padding: 12px 24px;
    background-color: #ff7a1a; /* برتقالي أساسي */
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgb(255, 85, 0);
}

#cta30:hover {
    background-color: #ff5500; /* برتقالي أغمق عند hover */
    box-shadow: 0 6px 14px rgb(255, 85, 0);
    transform: translateY(-2px);
}

#cta30:active {
    background-color: #cc5c00; /* أغمق عند الضغط */
    transform: translateY(0);
    box-shadow: 0 3px 8px rgb(255, 85, 0);
}
body { background: #121212 !important; }
