/* الخطوط والألوان الأساسية */
:root {
    --primary-color: #0d2b47; /* اللون الأزرق الداكن الأساسي */
    --secondary-color: #4FC3F7; /* اللون اللبني الفاتح */
    --accent-color: #d4af37; /* اللون الذهبي */
    --light-color: #f5f5f5;
    --dark-color: #333;
    --text-color: #444;
    --white: #fff;
    --gray: #f4f4f4;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    /* تحسين جودة عرض الصور */
    object-fit: cover;
    /* الإطار الزجاجي للصور */
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(2px);
    transition: all 0.3s ease;
}

/* تأثير hover للصور */
img:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    border-color: rgba(79, 195, 247, 0.5);
}

/* استثناء اللوجو من التأثيرات */
.logo img,
.preloader-logo,
.footer-logo img {
    border: none;
    box-shadow: none;
    backdrop-filter: none;
}

.logo img:hover,
.preloader-logo:hover,
.footer-logo img:hover {
    transform: none;
    box-shadow: none;
    border-color: transparent;
}

/* تأثيرات الأيقونات */
.social-icons a,
.fab,
.fas,
.far {
    transition: all 0.3s ease;
}

.social-icons a:hover,
.fab:hover,
.fas:hover,
.far:hover {
    animation: iconShake 0.5s ease-in-out;
    transform: translateY(-3px);
}

/* حركة اهتزاز الأيقونات */
@keyframes iconShake {
    0%, 100% { transform: translateY(-3px) rotate(0deg); }
    25% { transform: translateY(-5px) rotate(1deg); }
    75% { transform: translateY(-1px) rotate(-1deg); }
}

/* تحسين Lazy Loading */
.lazy-loaded {
    opacity: 1 !important;
}

/* تأثير التحميل للصور */
img[data-src] {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

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

/* زر عام */
.btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    background-color: #0095b3;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: var(--secondary-color);
    padding: 8px 16px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid var(--secondary-color);
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

/* عنوان القسم */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
}

/* الهيدر والقائمة */
header {
    position: relative;
}

.top-bar {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 10px 0;
    font-size: 0.9rem;
}

/* Navbar Preloader Styles */
.main-nav .preloader-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    height: 90px;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.preloader-logo {
    width: 80px;
    height: 80px;
    /* تأثير ثلاثي الأبعاد للوجو */
    transform: perspective(1000px) rotateX(20deg) rotateY(-20deg) rotateZ(5deg);
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3)) 
            drop-shadow(0 0 25px rgba(79, 195, 247, 0.5));
    transition: all 0.3s ease;
    animation: logo3DFloat 2s ease-in-out infinite alternate,
               logoSlideOut 0.8s ease-in-out forwards 2.5s;
}

.divider {
    width: 60px; /* تقليل العرض ليتناسق مع البرق الأرفع */
    height: 60px; /* تقليل الارتفاع ليتناسق مع البرق الأرفع */
    position: relative;
    /* إزالة الخلفية المستقيمة */
    background: none;
    filter: drop-shadow(0 0 12px rgba(79, 195, 247, 0.7));
    animation: lightningPulse 2s ease-in-out infinite,
               lightningSlideOut 0.8s ease-in-out forwards 2.5s;
    overflow: visible;
}

/* خط البرق المتعرج الحقيقي - أرفع ومرفوع قليلاً */
.divider::before {
    content: '';
    position: absolute;
    top: 45%; /* رفع البرق قليلاً للأعلى */
    left: 50%;
    transform: translate(-50%, -50%);
    width: 45px; /* تقليل العرض لجعله أرفع */
    height: 45px; /* تقليل الارتفاع لجعله أرفع */
    background: var(--secondary-color);
    /* إنشاء شكل البرق الحقيقي بسُمك أقل */
    clip-path: polygon(
        50% 0%,
        58% 35%,
        95% 35%,
        55% 100%,
        47% 65%,
        5% 65%
    );
    box-shadow: 
        0 0 8px var(--secondary-color),
        0 0 16px var(--secondary-color),
        0 0 24px rgba(79, 195, 247, 0.4);
    animation: lightningFlicker 0.8s ease-in-out infinite alternate;
}

/* تأثير الوهج الخارجي - محدث للحجم الجديد */
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px; /* تقليل العرض ليتناسق مع البرق الأرفع */
    height: 60px; /* تقليل الارتفاع ليتناسق مع البرق الأرفع */
    background: radial-gradient(
        circle,
        rgba(79, 195, 247, 0.25) 0%,
        rgba(79, 195, 247, 0.08) 50%,
        transparent 70%
    );
    border-radius: 50%;
    animation: lightningGlow 1.5s ease-in-out infinite alternate;
    z-index: -1;
}

.preloader-text {
    font-size: 3rem;
    font-weight: 900;
    color: #ffffff; /* اللون الأبيض الناصع */
    /* تأثير ثلاثي الأبعاد محسن لكلمة PUMP */
    text-shadow: 
        /* ظلال ثلاثية الأبعاد */
        1px 1px 0 #e0e0e0,
        2px 2px 0 #d0d0d0,
        3px 3px 0 #c0c0c0,
        4px 4px 0 #b0b0b0,
        5px 5px 0 #a0a0a0,
        6px 6px 0 #909090,
        /* ظل خلفي خفيف */
        0 0 10px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(0, 0, 0, 0.2),
        0 0 30px rgba(0, 0, 0, 0.1),
        /* ظل أزرق خفيف للتناسق مع الهوية */
        0 0 40px rgba(79, 195, 247, 0.3);
    transform: perspective(1000px) rotateX(20deg) rotateY(20deg) rotateZ(-5deg);
    letter-spacing: 5px;
    /* إزالة التدرج السابق واستخدام اللون الأبيض الصافي */
    background: none;
    -webkit-text-fill-color: #ffffff;
    animation: text3DFloat 2s ease-in-out infinite alternate,
               textSlideOut 0.8s ease-in-out forwards 2.5s;
}

/* تأثيرات الحركة ثلاثية الأبعاد - مبسطة */
@keyframes logo3DFloat {
    0% {
        transform: perspective(1000px) rotateX(15deg) rotateY(-15deg) translateY(0px);
    }
    100% {
        transform: perspective(1000px) rotateX(20deg) rotateY(-20deg) translateY(-5px);
    }
}

@keyframes text3DFloat {
    0% {
        transform: perspective(1000px) rotateX(15deg) rotateY(15deg) translateY(0px);
    }
    100% {
        transform: perspective(1000px) rotateX(20deg) rotateY(20deg) translateY(-5px);
    }
}

@keyframes lightningPulse {
    0% {
        filter: drop-shadow(0 0 15px rgba(79, 195, 247, 0.8)) brightness(1);
        transform: scale(1);
    }
    50% {
        filter: drop-shadow(0 0 25px rgba(79, 195, 247, 1)) brightness(1.3);
        transform: scale(1.05);
    }
    100% {
        filter: drop-shadow(0 0 15px rgba(79, 195, 247, 0.8)) brightness(1);
        transform: scale(1);
    }
}

@keyframes lightningFlicker {
    0% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 
            0 0 10px var(--secondary-color),
            0 0 20px var(--secondary-color),
            0 0 30px rgba(79, 195, 247, 0.5);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
        box-shadow: 
            0 0 15px var(--secondary-color),
            0 0 30px var(--secondary-color),
            0 0 45px rgba(79, 195, 247, 0.7);
    }
    100% {
        opacity: 0.9;
        transform: translate(-50%, -50%) scale(0.95);
        box-shadow: 
            0 0 8px var(--secondary-color),
            0 0 16px var(--secondary-color),
            0 0 24px rgba(79, 195, 247, 0.4);
    }
}

@keyframes lightningGlow {
    0% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

/* Preloader Exit Animations */
@keyframes navbarPreloaderExit {
    0% {
        opacity: 1;
        height: 90px;
    }
    100% {
        opacity: 0;
        height: 0;
        padding: 0;
        margin: 0;
    }
}

@keyframes logoSlideOut {
    0% {
        opacity: 1;
        transform: translateX(0) perspective(1000px) rotateX(15deg) rotateY(-15deg);
    }
    100% {
        opacity: 0;
        transform: translateX(200px) perspective(1000px) rotateX(15deg) rotateY(-15deg);
    }
}

@keyframes textSlideOut {
    0% {
        opacity: 1;
        transform: translateX(0) perspective(1000px) rotateX(15deg) rotateY(15deg);
    }
    100% {
        opacity: 0;
        transform: translateX(-200px) perspective(1000px) rotateX(15deg) rotateY(15deg);
    }
}

@keyframes lightningSlideOut {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0);
    }
}



.main-nav {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.main-nav .container {
    display: none; /* إخفاء محتوى main-nav الأصلي في البداية */
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    /* تأثير الظهور السحري */
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
    transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.main-nav .container.magical-reveal {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.logo img {
    height: 60px;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    color: var(--dark-color);
    font-weight: 600;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--secondary-color);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 30px;
    height: 3px;
    background-color: var(--dark-color);
    margin: 3px 0;
    transition: all 0.3s ease;
}

/* قسم الهيرو */
.hero {
    background-image: linear-gradient(rgba(13, 43, 71, 0.7), rgba(13, 43, 71, 0.7)), url('images/hero_background.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 150px 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* قسم البرامج */
.programs {
    padding: 80px 0;
    background-color: var(--white);
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.program-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.program-card:hover {
    transform: translateY(-10px);
}

.program-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.program-card h3 {
    padding: 20px 20px 10px;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.program-card p {
    padding: 0 20px 20px;
    color: var(--text-color);
}

.program-card .btn-secondary {
    margin: 0 20px 20px;
}

/* قسم البوستات */
.posts {
    padding: 80px 0;
    background-color: var(--gray);
}

.post-container {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    padding: 30px;
}

.post-text {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.post-image {
    margin-bottom: 20px;
}

.post-image img {
    width: 100%;
    border-radius: 10px;
}

.hashtags {
    color: var(--secondary-color);
    font-size: 0.9rem;
    word-wrap: break-word;
}

/* قسم المدربين */
.trainers {
    padding: 80px 0;
    background-color: var(--white);
}

.trainers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.trainer-card {
    text-align: center;
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.trainer-card:hover {
    transform: translateY(-10px);
}

.trainer-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 15px;
}

.trainer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 10px;
}

.trainer-image img:hover {
    transform: scale(1.05);
}

/* أنماط خاصة لصفحة تفاصيل المدرب */
.trainer-detail .trainer-image {
    width: 300px;
    height: 300px;
    margin: 0 auto 30px auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.trainer-detail .trainer-image img {
    border-radius: 15px;
}

.trainer-card h3 {
    margin-top: 20px;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.trainer-card p {
    padding: 10px 20px 20px;
    color: var(--text-color);
}

/* قسم المواقع */
.locations {
    padding: 80px 0;
    background-color: var(--gray);
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.location-card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.location-card:hover {
    transform: translateY(-10px);
}

.location-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* قسم الاتصال */
.contact {
    padding: 80px 0;
    background-color: var(--white);
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.contact-info h3,
.contact-form h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.contact-info p {
    margin-bottom: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Cairo', sans-serif;
}

/* الفوتر */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-logo img {
    height: 80px;
    /* إزالة الخلفية البيضاء حيث أن الصورة الجديدة بدون خلفية */
    border-radius: 15px;
    padding: 10px;
    /* تأثير ثلاثي الأبعاد خفيف */
    box-shadow: 
        0 8px 16px rgba(0, 0, 0, 0.2),
        0 0 20px rgba(79, 195, 247, 0.3);
    transform: perspective(800px) rotateX(10deg) rotateY(-5deg);
    transition: all 0.3s ease;
    /* توسيط اللوجو */
    display: block;
    margin: 0 auto 15px auto;
}

.footer-logo img:hover {
    transform: perspective(800px) rotateX(15deg) rotateY(-10deg) translateY(-5px);
    box-shadow: 
        0 12px 24px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(79, 195, 247, 0.5);
}

.footer-links h3,
.footer-contact h3 {
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--secondary-color);
}

.footer-contact p {
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* تجاوب مع الشاشات الصغيرة */
@media (max-width: 768px) {
    .main-nav .container {
        flex-wrap: wrap;
    }
    
    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        text-align: center;
        padding: 20px 0;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        margin: 10px 0;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .preloader-content {
        gap: 15px;
        height: 70px;
    }
    
    .preloader-logo {
        width: 50px;
        height: 50px;
    }
    
    .preloader-text {
        font-size: 2rem;
    }
    
    .divider {
        width: 50px;
        height: 50px;
    }
    
    /* تحسين الصور على الشاشات الصغيرة */
    .program-card img,
    .trainer-image img {
        height: 180px;
    }
    
    /* تحسين الفوتر على الشاشات الصغيرة */
    .footer-logo img {
        height: 60px;
        padding: 10px;
    }
    
    /* تحسين المسافات */
    .programs,
    .trainers,
    .locations,
    .contact {
        padding: 60px 0;
    }
    
    .program-card,
    .trainer-card,
    .location-card {
        margin-bottom: 20px;
    }
}


/* Fade-in and Slide-up Animations */
.fade-in-slide-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.2s ease-out, transform 0.2s ease-out;
}

.fade-in-slide-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* Icon Hover Animations */
.social-icons a {
    display: inline-block;
    transition: transform 0.3s ease;
}

.social-icons a:hover {
    transform: scale(1.1) rotate(5deg);
}

.fab {
    transition: transform 0.3s ease;
}

.fab:hover {
    transform: scale(1.2);
}

/* Top Bar Social Icons */
.top-bar .social-icons {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.top-bar .social-icons a {
    color: var(--white);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.top-bar .social-icons a:hover {
    color: var(--secondary-color);
    transform: translateY(-2px) scale(1.1);
}

/* Footer Social Icons */
.footer-logo .social-icons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.footer-logo .social-icons a {
    color: var(--white);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.footer-logo .social-icons a:hover {
    color: var(--secondary-color);
    transform: translateY(-3px) rotate(10deg);
}

/* Contact Social Icons */
.social-contact {
    margin-top: 20px;
}

.social-contact a {
    display: block;
    margin-bottom: 10px;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.social-contact a:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

.social-contact a i {
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.social-contact a:hover i {
    transform: scale(1.2) rotate(5deg);
}


/* Enhanced Button Animations */
.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--secondary-color), #0095b3);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 178, 214, 0.3);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    background: linear-gradient(135deg, #0095b3, var(--secondary-color));
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 178, 214, 0.4);
}

.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: var(--secondary-color);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--secondary-color);
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 178, 214, 0.1);
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
    z-index: -1;
}

.btn-secondary:hover::before {
    width: 100%;
}

.btn-secondary:hover {
    color: var(--white);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 178, 214, 0.3);
}


/* Enhanced Trainer Card Animations */
.trainer-card {
    text-align: center;
    background-color: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
}

.trainer-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.trainer-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
}

.trainer-card:hover .trainer-image img {
    transform: scale(1.1);
}

.trainer-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 178, 214, 0.1), rgba(13, 43, 71, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.trainer-card:hover .trainer-image::after {
    opacity: 1;
}

/* Enhanced Program Card Animations */
.program-card {
    background-color: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
}

.program-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.program-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.program-card:hover img {
    transform: scale(1.1);
}

/* Enhanced Location Card Animations */
.location-card {
    background-color: var(--white);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.location-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 178, 214, 0.05), transparent);
    transition: left 0.6s ease;
}

.location-card:hover::before {
    left: 100%;
}

.location-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}



/* Location Detail Images */
.location-detail .location-image {
    width: 100%;
    height: 300px; /* Fixed height for consistency */
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 20px;
}

.location-detail .location-image img {
    width: 100%;
    height: 300px; /* Fixed height for consistency */
    object-fit: cover; /* Ensures the image covers the area without distortion */
    transition: transform 0.3s ease;
}

.location-detail .location-image img:hover {
    transform: scale(1.05);
}

/* Adjust map iframe size */
.location-map iframe {
    border-radius: 10px;
}




/* Location Card Images on Homepage */
.locations-grid .location-card img {
    width: 100%;
    height: 180px; /* Adjust height as needed */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}



/* Animation for menu items */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-links li.fade-in-down {
    opacity: 0;
    animation: fadeInDown 0.5s ease-out forwards;
}


/* Navbar Slide from Top Animation - Only on first load */
.main-nav.first-load {
    transform: translateY(-100%);
    animation: slideFromTop 0.6s ease-out forwards;
}

@keyframes slideFromTop {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}



.main-nav {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}



/* تأثيرات التفاعل على الصور */
.program-card img,
.post-image img,
.trainer-image img,
.location-card img {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    border-radius: 10px;
    /* إطار زجاجي شفاف */
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.program-card:hover img,
.post-image:hover img,
.trainer-card:hover .trainer-image img,
.location-card:hover img {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1),
        0 0 20px rgba(79, 195, 247, 0.2);
    border: 1px solid rgba(79, 195, 247, 0.3);
}

/* تأثيرات التفاعل على الأيقونات */
.social-icons a,
.fab,
.fas {
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.social-icons a:hover,
.fab:hover,
.fas:hover {
    animation: iconShake 0.6s ease-in-out;
    color: var(--secondary-color);
}

@keyframes iconShake {
    0%, 100% { transform: translateY(0) scale(1); }
    25% { transform: translateY(-3px) scale(1.1); }
    50% { transform: translateY(-6px) scale(1.15); }
    75% { transform: translateY(-3px) scale(1.1); }
}

/* تحسين تأثيرات الأزرار */
.btn,
.btn-secondary {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn:hover,
.btn-secondary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* تأثيرات إضافية للكروت */
.program-card,
.trainer-card,
.location-card {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.program-card::before,
.trainer-card::before,
.location-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(79, 195, 247, 0.05), rgba(13, 43, 71, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.program-card:hover::before,
.trainer-card:hover::before,
.location-card:hover::before {
    opacity: 1;
}

.program-card:hover,
.trainer-card:hover,
.location-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}


/* تحسين وضوح اللوجو في الفوتر */
.footer-logo {
    position: relative;
}

.footer-logo img {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 10px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.footer-logo img:hover {
    background-color: rgba(255, 255, 255, 1);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}


/* تأثيرات Lazy Loading */
img[data-src] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img.lazy-loaded {
    opacity: 1;
}

/* تحسين الأداء للصور */
img {
    will-change: transform, opacity;
    backface-visibility: hidden;
}

