:root {
    --primary: #ff5b49; /* اللون البرتقالي الجذاب من صورتك */
    --primary-hover: #e04837;
    --bg-light: #fbfbfd;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --border-color: #ffd8d4;
    --card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.03), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Header / Navbar --- */
header {
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    color: var(--primary);
}

nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 15px;
    font-weight: 500;
    transition: var(--transition);
}

nav a:hover {
    color: var(--primary);
}

.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

/* --- Hero Section --- */
.hero {
    padding: 80px 0 40px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
}

.hero-left {
    flex: 1.2;
}

.hero-left h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.15;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.hero-left h1 span {
    color: var(--primary);
}

.hero-left p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 30px;
    max-width: 520px;
}

.badges {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
}

.badge-icon {
    color: var(--primary);
    background: #fff1f0;
    padding: 6px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.hero-right {
    flex: 0.8;
    display: flex;
    justify-content: center;
}

.pdf-illustration {
    width: 240px;
    height: 300px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    border: 1px solid #f1f5f9;
    padding: 30px;
    position: relative;
}

.pdf-badge-large {
    background: var(--primary);
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    margin-top: 20px;
}

.illustration-line {
    height: 8px;
    background: #f1f5f9;
    border-radius: 4px;
    margin-top: 15px;
}
.illustration-line.medium { width: 85%; }
.illustration-line.short { width: 60%; }

/* --- Drag & Drop Upload Zone --- */
.upload-section {
    margin: 40px 0 80px 0;
}

.upload-card {
    background: #ffffff;
    border: 2px dashed #ffbca8;
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    transition: var(--transition);
}

.upload-card:hover {
    border-color: var(--primary);
    background: #fffaf9;
}

.plus-btn {
    width: 56px;
    height: 56px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 20px auto;
    box-shadow: 0 8px 16px rgba(255, 91, 73, 0.24);
}

.choose-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.choose-btn:hover {
    background: var(--primary-hover);
}

.consent-text {
    margin-top: 24px;
    font-size: 13px;
    color: var(--text-muted);
}

.consent-text a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

/* --- Popular Tools Grid --- */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 16px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 50px;
}

.tool-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    text-decoration: none;
    border: 1px solid #f1f5f9;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tool-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-color);
}

.tool-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}

/* الألوان المميزة للأقسام الثمانية المأخوذة من صورتك */
.color-blue { background: #e3efff; color: #3b82f6; }
.color-red { background: #ffebe9; color: #ef4444; }
.color-green { background: #e1fbf0; color: #10b981; }
.color-orange { background: #fff1e3; color: #f97316; }
.color-purple { background: #fae8ff; color: #a855f7; }
.color-teal { background: #e0f2fe; color: #06b6d4; }
.color-yellow { background: #fef9c3; color: #eab308; }
.color-darkblue { background: #e0e7ff; color: #4f46e5; }

.tool-card h3 {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.tool-card p {
    font-size: 14px;
    color: var(--text-muted);
}

.card-arrow {
    color: var(--primary);
    margin-top: 15px;
    transition: var(--transition);
}

.tool-card:hover .card-arrow {
    transform: translateX(5px);
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }
    .hero-right {
        display: none;
    }
}