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

/* Body Styles */
body {
    font-family: 'Cairo', sans-serif;
    background-color: #f8f9fa;
    color: #333;
    direction: rtl;
    line-height: 1.6; /* Improved readability */
}

/* Wrapper for Boxed Layout */
.container-boxed {
    width: 100%;
    max-width: 1200px;
    margin: 30px auto; /* Added margin for better spacing */
    padding: 20px;
    background-color: #ffffff;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1); /* Softer shadow */
    border-radius: 12px; /* More rounded corners */
    transition: box-shadow 0.3s ease;
}

.container-boxed:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); /* Hover effect on container */
}

/* Navbar Styles */
.navbar {
    border-bottom: 1px solid #ddd;
    padding: 15px 0;
}

.navbar-brand img {
    width: 150px;
}

.navbar-nav {
    display: flex;
    gap: 10px;
}

.nav-link {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #d9534f; /* Hover color red */
}

/* Main Heading */
h1 {
    font-weight: 700;
    font-size: 2.5rem;
    color: #d9534f;
    text-align: center;
    margin-bottom: 40px;
    letter-spacing: 1px; /* Slight spacing for elegance */
}

/* Section Headings */
h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
}

/* Card Styles */
.card {
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease;
    border-radius: 10px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2); /* Deeper shadow on hover */
}

.card-title {
    font-weight: 700;
    font-size: 1.3rem;
    color: #d9534f;
    margin-bottom: 10px;
}

.card-text {
    font-size: 1rem;
    color: #666;
    height: 120px; /* Better space for text */
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-icon {
    width: 100%;
    height: 220px; /* Slightly larger image height */
    object-fit: cover;
    border-radius: 10px;
}

/* Button Styles */
.btn-danger {
    background-color: #d9534f;
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s;
}

.btn-danger:hover {
    background-color: #c9302c;
    transform: scale(1.05); /* Slight scaling effect on hover */
}

.btn-danger:active {
    transform: scale(0.95); /* Click effect */
}

/* Footer Styles */
footer {
    background-color: #f8f9fa;
    color: #555;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid #ddd;
}

footer p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

footer a {
    color: #d9534f;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Additional Styling Enhancements */
.container-boxed p {
    margin-bottom: 15px;
}

/* Form Inputs */
input[type="text"], input[type="email"], input[type="password"], textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus, textarea:focus {
    border-color: #d9534f;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.container-boxed {
    animation: fadeIn 0.8s ease;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #d9534f;
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.scroll-to-top:hover {
    background-color: #c9302c;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .container-boxed {
        padding: 15px;
        margin: 15px auto;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .navbar-nav {
        flex-direction: column;
        gap: 5px;
    }

    .card-text {
        height: auto;
    }
}
