/* ===== الإعدادات العامة ===== */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: rgba(0, 29, 61, 0.903);
    color: white;
    text-align: center;
}

/* ===== شريط التنقل ===== */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: #001d3dcc;
    padding: 10px 0;
    text-align: center;
    backdrop-filter: blur(5px);
    z-index: 1000;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin: 0 15px;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    padding: 10px;
    display: flex;
    align-items: center;
    transition: color 0.3s, transform 0.3s;
}

nav a:hover {
    color: #FFD700;
    transform: scale(1.1);
}

.nav-icon {
    width: 30px;
    height: 30px;
    margin-right: 10px;
    filter: brightness(0) invert(1);
    transition: transform 0.3s, filter 0.3s;
}

nav a:hover .nav-icon {
    transform: scale(1.3);
    filter: brightness(1.5) invert(1);
}

/* ===== زر القائمة للهاتف ===== */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    position: absolute;
    top: 10px;
    left: 20px;
    z-index: 1100;
}

/* ===== الصفحة الرئيسية ===== */
.home {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
    background: linear-gradient(135deg, #003566, #001d3d);
    background-size: 400% 400%;
    animation: gradientMove 10s ease infinite;
    backdrop-filter: blur(6px);
}

.home-card {
    background: linear-gradient(135deg, #003566, #001d3d);
    background-size: 400% 400%;
    animation: gradientMove 10s ease infinite;
    padding: 40px 20px;
    border-radius: 15px;
    box-shadow: 0px 0px 15px rgba(255, 215, 0, 0.1);
    text-align: center;
    max-width: 800px;
    width: 90%;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.home h1 {
    font-family: 'Playfair Display', serif;
    font-size: 50px;
}

.home p {
    font-size: 24px;
    max-width: 600px;
}

.home img {
    width: 100%;
    max-width: 350px;
    object-fit: contain;
    margin-left: 0;
    animation: floatImage 4s ease-in-out infinite;
    transition: transform 0.3s;
}

@keyframes floatImage {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.home img:hover {
    transform: rotate(5deg) scale(1.05);
}

/* ===== الأقسام ===== */
.section {
    width: 100%;
    max-width: 1200px;
    margin: 50px auto;
    padding: 40px 20px;
    border-radius: 10px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    box-sizing: border-box;
    background: linear-gradient(135deg, #003566, #001d3d);
    background-size: 400% 400%;
    animation: gradientMove 10s ease infinite;
    border: 1px solid rgba(255, 255, 255, 0.1);
    
}
.section h2 {
    font-size: 80px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    grid-column: 1 / -1;
    text-align: center;
}


.card {
    background: linear-gradient(135deg, #001d3d, #003566);
    background-size: 400% 400%;
    animation: gradientMove 10s ease infinite;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card:hover {
    transform: scale(1.1);
    box-shadow: 0px 0px 15px rgba(255, 215, 0, 0.5);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s;
}

.card img:hover {
    transform: scale(1.05);
}

.card::after {
    content: attr(data-title);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 20px;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 5px;
    opacity: 0;
    transition: opacity 0.3s;
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.3s;
}

.card:hover::after,
.card:hover::before {
    opacity: 1;
}

/* ===== قسم القواعد ===== */
.rules {
    background: linear-gradient(135deg, #003566, #000814);
    background-size: 400% 400%;
    animation: gradientMove 10s ease infinite;
    color: white;
    padding: 50px 20px;
    border-radius: 10px;
    width: 100%;
    max-width: 1200px;
    margin: 50px auto;
    box-sizing: border-box;
}

.rules h2 {
    font-size: 36px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.rules-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.rule-card {
    background: linear-gradient(135deg, #001d3d, #003566);
    background-size: 400% 400%;
    animation: gradientMove 10s ease infinite;
    color: white;
    font-size: 20px;
    font-weight: bold;
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 51, 102, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    max-width: 250px;
    text-align: center;
    cursor: pointer;
}

.rule-card:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 51, 102, 0.5);
}

/* ===== قسم الاتصال ===== */
.contact {
    background: linear-gradient(135deg, #001d3d, #000814);
    background-size: 400% 400%;
    animation: gradientMove 10s ease infinite;
    color: white;
    text-align: center;
    padding: 50px 20px;
    border-radius: 10px;
    margin: 50px auto;
    width: 100%;
    max-width: 1200px;
    box-sizing: border-box;
}

.contact h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.contact p {
    font-size: 18px;
    margin-bottom: 30px;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.contact-item {
    background: linear-gradient(135deg, #003566, #001d3d);
    background-size: 400% 400%;
    animation: gradientMove 10s ease infinite;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    width: 300px;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-item:hover {
    transform: scale(1.05);
    box-shadow: 0px 0px 15px rgba(255, 215, 0, 0.5);
}

.contact-icon {
    width: 40px;
    height: 40px;
    filter: brightness(0) invert(1);
}

/* ===== الهاتف المحمول ===== */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    nav .nav-list {
        display: none;
        flex-direction: column;
        background-color: rgba(0, 29, 61, 0.95);
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        z-index: 1000;
    }

    nav .nav-list.active {
        display: flex;
    }

    nav .nav-list li {
        text-align: center;
        padding: 15px 0;
    }

    .home {
        flex-direction: column;
        padding: 20px;
    }

    .home img {
        width: 90%;
    }

    .section,
    .rules,
    .contact {
        width: 100%;
        padding: 20px;
        margin: 20px 0;
        box-sizing: border-box;
    }

    .rules-container,
    .contact-container {
        padding: 0 10px;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }
}

/* ===== حركة التدرج اللوني ===== */
@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}
/* قسم الأحداث القادمة */
.events {
    width: 100%;
    max-width: 1200px;
    margin: 50px auto;
    padding: 40px 20px;
    border-radius: 10px;
    background: linear-gradient(135deg, #003566, #000814);
    background-size: 400% 400%;
    animation: gradientMove 10s ease infinite;
    color: white;
    box-sizing: border-box;
}

.event-card {
    display: flex;
    background: linear-gradient(135deg, #001d3d, #003566);
    background-size: 400% 400%;
    animation: gradientMove 10s ease infinite;
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 51, 102, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.event-card:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 51, 102, 0.6);
}

.event-card img {
    width: 200px;
    height: 150px;
    object-fit: cover;
    border-radius: 10px 0 0 10px;
}

.event-info {
    padding: 15px 20px;
    text-align: left;
    flex: 1;
}

.event-info h3 {
    margin: 0 0 10px 0;
    font-size: 24px;
}

.event-info .date {
    font-style: italic;
    font-size: 16px;
    margin-bottom: 10px;
    color: #FFD700; /* لون مميز للتاريخ */
}

.event-info p {
    font-size: 18px;
    line-height: 1.4;
}
