/*
Theme Name: Hawsba By Lightweb2
Theme URI: https://hwsba.com
Author: Toufic Mamdouh
Author URI: https://lightweb2.com/
Description: قالب مخصص لشركة حوسبة النظم لتقنية المعلومات
Version: 1.1
Text Domain: hwsba
*/

:root {
    --primary: #4db5e7;
    --primary-dark: #3a9bd1;
    --accent: #85c76d;
    --accent-dark: #6db055;
    --light: #f8f9fa;
    --dark: #202124;
    --gray: #5f6368;
    --light-gray: #dadce0;
    --white: #ffffff;
    --section-bg: #f9f9f9;
    --card-bg: #ffffff;
    --text-color: #202124;
    --border-color: #e0e0e0;
    --hero-bg: #f0f9ff;
    --footer-bg: #f1f1f1;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

body {
    font-family: 'Tajawal', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.8;
    color: var(--dark);
    background-color: var(--light);
    overflow-x: hidden;
    direction: rtl;
}

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

/* الترويسة */
header {
    background: linear-gradient(284deg, #2E3993B0 0%, #2E936F 100%);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

.logo {
    color: white;
    font-size: 1.8rem;
    font-weight: 800;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo img {
    height: 100px;
    margin-left: 10px;
}

/* أنماط القائمة الأساسية */
.primary-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.primary-menu li {
    position: relative;
}

.primary-menu li a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 4px;
    transition: var(--transition);
    display: block;
}

.primary-menu li a:hover,
.primary-menu li a.active {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

a.system-link {
    color: black;
    text-decoration: none;
}

.cta-button {
    background: var(--accent);
    color: var(--white);
    font-weight: 700;
    padding: 10px 25px;
    border-radius: 30px;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(133, 199, 109, 0.5);
    display: inline-block;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(133, 199, 109, 0.6);
}

/* القسم البطل */
.hero {
    background: linear-gradient(284deg, #2E3993B0 0%, #2E936F 100%);
    padding: 150px 0 100px;
    color: white;
    position: relative;
    overflow: hidden;
        text-shadow: 1px 1px #31313194;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    /*background: url('images/hero-bg.jpg') no-repeat center center/cover;*/
    opacity: 0.08;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-text {
    flex: 1;
    padding-left: 50px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    animation: float 6s ease-in-out infinite;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    line-height: 1.3;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    font-weight: 700;
    padding: 10px 25px;
    border-radius: 30px;
    text-decoration: none;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: var(--accent);
    color: var(--dark);
}

/* الأقسام العامة */
.section {
    padding: 100px 0;
}

.section-title {
    position: relative;
    margin-bottom: 60px;
    text-align: center;
    font-weight: 700;
    font-size: 2.2rem;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -15px;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 4px;
    background: var(--accent);
}

/* قسم المميزات */
.features {
    background-color: var(--white);
}

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

.feature-card {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: rgba(77, 181, 231, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 30px;
    color: var(--primary);
}

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

/* قسم الإحصائيات */
.stats {
    background: linear-gradient(284deg, #2E3993B0 0%, #2E936F 100%), url('images/stats-bg.jpg') center/cover;
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item {
    padding: 30px 20px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--accent);
}

/* قسم العملاء */
.testimonials {
    background-color: var(--section-bg);
}

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

.testimonial-card {
    background: var(--white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
}

.testimonial-card::before {
    content: """;
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 5rem;
    color: rgba(77, 181, 231, 0.1);
    font-family: sans-serif;
    line-height: 1;
}

.testimonial-content {
    margin-bottom: 20px;
    font-style: italic;
    color: var(--gray);
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-left: 15px;
    border: 3px solid var(--accent);
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    margin-bottom: 5px;
    color: var(--primary);
}

/* قسم الشركاء */
.partners {
    background-color: var(--white);
}

.partner-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 30px;
    padding: 20px;
}

.partner-logo {
    opacity: 0.8;
    transition: var(--transition);
    max-width: 150px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-logo:hover {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.05);
}

.partner-logo img {
    max-height: 50px;
    max-width: 100%;
}

/* قسم CTA */
.cta-section {
    background: linear-gradient(90deg, #2687c6 0%, #5cc592 100%);
    padding: 80px 0;
    color: white;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

/* الفوتر */
footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 30px;
}

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

.footer-col h4 {
    color: white;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 2px;
    background: var(--accent);
}

.footer-col ul {
    list-style: none;
}

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

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--accent);
    padding-right: 5px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.contact-item i {
    color: var(--accent);
    margin-top: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* التحريك */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============ تحسينات القائمة المتنقلة ============ */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
}

.mobile-menu-toggle .menu-bar {
    display: block;
    width: 30px;
    height: 3px;
    background: white;
    margin: 3px 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.close-nav-btn {
    display: none;
    position: absolute;
    top: 30px;
    left: 30px;
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 1001;
}

.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* ============ الوسائط المتعددة ============ */
@media (max-width: 1200px) {
    .hero-content {
        gap: 40px;
    }
}

@media (max-width: 992px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -320px;
        width: 320px;
        height: 100vh;
        background: linear-gradient(135deg, #2E3993 0%, #2E936F 100%);
        padding: 100px 30px 30px;
        transition: right 0.4s cubic-bezier(0.77, 0.2, 0.05, 1.0);
        z-index: 1000;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.3);
        overflow-y: auto;
    }

    .nav-menu.active {
        right: 0;
    }

    .primary-menu {
        flex-direction: column;
        padding-top: 20px;
    }

    .primary-menu li {
        margin: 0;
        width: 100%;
        opacity: 0;
        transform: translateX(20px);
        transition: opacity 0.5s ease, transform 0.5s ease;
    }

    .nav-menu.active .primary-menu li {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-menu.active .primary-menu li:nth-child(1) { transition-delay: 0.1s; }
    .nav-menu.active .primary-menu li:nth-child(2) { transition-delay: 0.2s; }
    .nav-menu.active .primary-menu li:nth-child(3) { transition-delay: 0.3s; }
    .nav-menu.active .primary-menu li:nth-child(4) { transition-delay: 0.4s; }
    .nav-menu.active .primary-menu li:nth-child(5) { transition-delay: 0.5s; }

    .primary-menu li a {
        padding: 18px 25px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        font-size: 1.2rem;
        border-radius: 0;
    }

    .primary-menu li a:hover,
    .primary-menu li a:focus {
        background: rgba(255, 255, 255, 0.1);
        color: white;
        padding-right: 30px;
    }

    .close-nav-btn {
        display: block;
    }

    .nav-overlay.active {
        display: block;
        opacity: 1;
    }

    /* تحسينات الترويسة على الجوال */
    header {
        padding: 12px 0;
    }

    .logo img {
        height: 80px;
    }

    /* تحسينات القسم البطل */
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        padding-left: 0;
        margin-bottom: 50px;
    }

    .hero-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 70px 0;
    }

    .hero {
        padding: 130px 0 80px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

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

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 50px;
    }

    .testimonial-grid,
    .feature-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .hero-buttons {
        flex-direction: column;
    }

    .cta-button, .btn-secondary {
        width: 100%;
        text-align: center;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .partner-logos {
        gap: 15px;
    }
}