body {
    font-family: 'Cairo', 'Roboto', sans-serif;
    background-color: #121212 !important;
    color: #ffffff;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 50px auto;
    padding: 20px;
    background: #1e1e1e;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
    animation: fadeIn 1s ease-in-out;
    direction: rtl;
}

h1 {
    text-align: center;
    color: #ffd700;
    font-size: 2rem;
    margin-bottom: 20px;
}

h2 {
    color: #ffcc00;
    border-bottom: 2px solid #ffcc00;
    padding-bottom: 5px;
    margin-top: 30px;
}

h3 {
    color: #28a745;
}

.container p {
    line-height: 1.8;
    margin-bottom: 15px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

.grid-item {
    background: #2a2a2a;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
    text-align: center;
    animation: fadeInUp 1s ease-in-out;
}

.contact-section {
    text-align: center;
    margin-top: 30px;
}

.contact-section a {
    color: #ffcc00;
    font-weight: bold;
    text-decoration: none;
}

.contact-section a:hover {
    text-decoration: underline;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 320px) and (max-width: 850px) {
    .container {
        max-width: 90%;
        margin: 20px auto;
        padding: 15px;
        text-align: center;
    }

    .grid-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 10px;
    }

    .grid-item {
        width: 100%;
        max-width: 90%;
    }

    h1 {
        font-size: 1.8rem;
    }
}
