/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #3b82f6;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --bg-color: #ffffff;
    --bg-light: #f9fafb;
    --bg-section: #f3f4f6;
    --border-color: #e5e7eb;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --radius: 8px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    direction: rtl;
    text-align: right;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header and Navigation */
.header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-logo i,
.nav-logo .logo-icon {
    font-size: 1.8rem;
}

.nav-logo .logo-icon {
    width: 30px;
    height: 30px;
    border-radius: 4px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,106.7C1248,96,1344,96,1392,96L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.last-updated {
    font-size: 1rem;
    opacity: 0.8;
    padding: 0.5rem 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: inline-block;
}

.last-updated span {
    font-weight: 600;
}

/* Main Content */
.main-content {
    margin-top: -40px;
    position: relative;
    z-index: 10;
}

.section {
    padding: 80px 0;
    background-color: var(--bg-section);
}

.section:nth-child(even) {
    background-color: var(--bg-color);
}

.section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.section h2 i {
    font-size: 2rem;
}

.content-card {
    background: white;
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    max-width: 900px;
    margin: 0 auto;
    transition: var(--transition);
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.content-card h3 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin: 2rem 0 1rem;
    font-weight: 600;
}

.content-card h3:first-child {
    margin-top: 0;
}

.content-card p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* Feature Lists */
.feature-list {
    list-style: none;
    margin: 1.5rem 0;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: var(--bg-light);
    border-radius: var(--radius);
    transition: var(--transition);
    font-size: 1.05rem;
}

.feature-list li:hover {
    background-color: var(--bg-section);
    transform: translateX(5px);
}

.feature-list i {
    font-size: 1.2rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.feature-list .fa-times-circle {
    color: var(--danger-color);
}

.feature-list .fa-info-circle {
    color: var(--accent-color);
}

.feature-list .fa-check-circle {
    color: var(--success-color);
}

.feature-list .fa-shield-alt,
.feature-list .fa-lock,
.feature-list .fa-user-shield {
    color: var(--primary-color);
}

.feature-list .fa-chart-line,
.feature-list .fa-tools,
.feature-list .fa-sync,
.feature-list .fa-code {
    color: var(--secondary-color);
}

/* Warning Box */
.warning-box {
    background-color: #fef3c7;
    border: 2px solid var(--warning-color);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin: 2rem 0;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.warning-box i {
    color: var(--warning-color);
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.warning-box p {
    margin: 0;
    color: #92400e;
}

/* Contact Info */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 1.5rem;
    background-color: var(--bg-light);
    border-radius: var(--radius);
    transition: var(--transition);
}

.contact-item:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.contact-item:hover i {
    color: white;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: white;
    padding: 3rem 0 1.5rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-logo i,
.footer-logo .logo-icon {
    font-size: 1.5rem;
}

.footer-logo .logo-icon {
    width: 25px;
    height: 25px;
    border-radius: 4px;
}

.footer p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
}

.footer-links a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-lg);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        right: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--primary-color);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        padding: 2rem 0;
        gap: 0;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section h2 {
        font-size: 2rem;
        flex-direction: column;
        gap: 10px;
    }

    .content-card {
        padding: 2rem 1.5rem;
    }

    .feature-list li {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .warning-box {
        flex-direction: column;
        text-align: center;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .scroll-to-top {
        bottom: 20px;
        left: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .section {
        padding: 60px 0;
    }

    .content-card {
        padding: 1.5rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section {
    animation: fadeInUp 0.8s ease-out;
}

/* Print Styles */
@media print {
    .header,
    .scroll-to-top {
        display: none;
    }

    .section {
        padding: 20px 0;
        page-break-inside: avoid;
    }

    .content-card {
        box-shadow: none;
        border: 1px solid var(--border-color);
    }
}
