/* تنسيقات عامة */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', sans-serif;
    background-color: #1E1F2B;
    color: #CFCFD9;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

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

a {
    text-decoration: none;
    color: #4FC3F7;
    transition: all 0.3s ease;
}

a:hover {
    color: #7C4DFF;
}

ul {
    list-style: none;
}

.btn {
    display: inline-block;
    background-color: #4FC3F7;
    color: #FFFFFF;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(79, 195, 247, 0.3);
}

.btn:hover {
    background-color: #7C4DFF;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 77, 255, 0.4);
}

/* تنسيق الهيدر */
header {
    background-color: #2A2B3C;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 1px solid rgba(79, 195, 247, 0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    color: #FFFFFF;
    font-size: 1.8rem;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

nav ul {
    display: flex;
}

nav ul li {
    margin-right: 20px;
}

nav ul li:last-child {
    margin-right: 0;
}

nav ul li a {
    color: #CFCFD9;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
    color: #4FC3F7;
    background-color: rgba(79, 195, 247, 0.1);
}

/* تنسيق قسم الهيرو */
.hero {
    background: linear-gradient(135deg, #2A2B3C 0%, #1E1F2B 100%);
    padding: 80px 0;
    text-align: center;
    border-bottom: 1px solid rgba(79, 195, 247, 0.1);
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.hero-content h2 {
    color: #FFFFFF;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.hero-content p {
    color: #CFCFD9;
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero .btn {
    font-size: 1.1rem;
    padding: 15px 35px;
    margin-top: 20px;
}

/* تنسيق قسم الشعارات */
.logos-section {
    padding: 80px 0;
    background-color: #1E1F2B;
}

.section-title {
    color: #FFFFFF;
    text-align: center;
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.section-desc {
    color: #CFCFD9;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
}

.logos-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.filter-btn {
    background-color: #2A2B3C;
    border: none;
    padding: 10px 22px;
    margin: 0 5px 10px;
    border-radius: 30px;
    cursor: pointer;
    font-family: 'Tajawal', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    color: #CFCFD9;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.filter-btn:hover,
.filter-btn.active {
    background-color: #4FC3F7;
    color: #FFFFFF;
    box-shadow: 0 3px 10px rgba(79, 195, 247, 0.3);
}

.logos-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.logo-item {
    background-color: #2A2B3C;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    text-align: center;
    padding: 20px;
    border: 1px solid rgba(79, 195, 247, 0.1);
}

.logo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(79, 195, 247, 0.2);
    border-color: rgba(79, 195, 247, 0.2);
}

.logo-img {
    width: 100%;
    height: 150px;
    object-fit: contain;
    margin-bottom: 15px;
}

.logo-name {
    color: #FFFFFF;
    font-weight: 500;
    margin-bottom: 10px;
}

.download-btn {
    background-color: #4FC3F7;
    color: #FFFFFF;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(79, 195, 247, 0.2);
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.download-btn:hover {
    background-color: #7C4DFF;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 77, 255, 0.3);
}

/* تنسيق قسم الأدوات */
.tools-section {
    padding: 80px 0;
    background-color: #1E1F2B;
}

.tools-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.tool-card {
    background-color: #2A2B3C;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: 1px solid rgba(79, 195, 247, 0.1);
}

.tool-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(79, 195, 247, 0.2);
    border-color: rgba(79, 195, 247, 0.2);
}

.tool-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #4FC3F7;
}

.tool-title {
    color: #FFFFFF;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.tool-desc {
    color: #CFCFD9;
    margin-bottom: 25px;
    line-height: 1.6;
}

.tool-btn {
    margin-top: 10px;
}

/* تنسيق الفوتر */
footer {
    background-color: #2A2B3C;
    color: #CFCFD9;
    padding: 30px 0;
    text-align: center;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.2);
    margin-top: auto;
    width: 100%;
    z-index: 100;
    position: relative;
    border-top: 3px solid #4FC3F7;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 50% 30%, rgba(79, 195, 247, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    opacity: 0.5;
    z-index: -1;
}

footer .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.social-links {
    display: flex;
    gap: 18px;
    margin-bottom: 5px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #CFCFD9;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-size: 1.1rem;
    border: 2px solid transparent;
}

.social-link:hover {
    background-color: #4FC3F7;
    color: #FFFFFF;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

footer p {
    opacity: 1;
    font-size: 1.05rem;
    line-height: 1.8;
    margin: 0;
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}

footer p::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: rgba(79, 195, 247, 0.3);
    border-radius: 3px;
}

.developer {
    color: #4FC3F7;
    font-weight: 700;
    transition: all 0.3s ease;
    padding: 2px 8px;
    margin: 0 3px;
    border-radius: 4px;
    background-color: rgba(79, 195, 247, 0.1);
    display: inline-block;
    position: relative;
    z-index: 1;
}

.developer:hover {
    color: #FFFFFF;
    background-color: rgba(79, 195, 247, 0.2);
    transform: translateY(-2px);
}

/* تجاوب الموقع مع الشاشات المختلفة */
@media (max-width: 992px) {
    .container {
        width: 95%;
    }

    .tools-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }

    .logo {
        margin-bottom: 15px;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    nav ul li {
        margin: 5px 10px;
    }

    .hero {
        padding: 60px 0;
        height: auto;
        min-height: auto;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .logos-container {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 20px;
    }

    .tools-container {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
    }

    .search-form {
        flex-direction: column;
    }

    .search-input {
        margin-bottom: 10px;
    }

    .results-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    footer {
        position: relative;
        padding: 20px 0;
    }

    .social-link {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 576px) {
    .container {
        width: 100%;
        padding: 0 10px;
    }

    .hero {
        padding: 40px 0;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    .hero .btn {
        padding: 12px 25px;
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .section-desc {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .logos-container {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 15px;
    }

    .logo-img {
        height: 120px;
    }

    .tools-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .tool-card {
        padding: 20px;
    }

    .search-container {
        padding: 20px 15px;
    }

    .results-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    .image-info {
        padding: 10px;
    }

    .download-btn {
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    footer {
        padding: 18px 0;
    }

    footer p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .developer {
        padding: 1px 6px;
        margin: 0 2px;
    }

    .social-links {
        gap: 10px;
    }

    .social-link {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 380px) {
    .logo h1 {
        font-size: 1.5rem;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .results-grid {
        grid-template-columns: 1fr;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }

    .container {
        width: 95%;
        padding: 0 10px;
    }

    .hero-content {
        padding: 20px 0;
    }

    .hero-content p {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    footer p {
        font-size: 0.9rem;
    }

    .social-link {
        width: 30px;
        height: 30px;
    }
}
