/* === style.css === */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --primary-color: #2563eb;
    /* Royal Blue */
    --secondary-color: #64748b;
    /* Slate */
    --accent-color: #3b82f6;
    --dark-bg: #0f172a;
    --light-bg: #f8fafc;
    --text-dark: #1e293b;
    --text-light: #f1f5f9;
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(255, 255, 255, 0.2);
    --transition-speed: 0.3s;
}

/* === General Styles === */
body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--light-bg);
    overflow-x: hidden;
}

[lang="ar"] body {
    font-family: 'Cairo', sans-serif;
}

a {
    text-decoration: none;
    transition: color var(--transition-speed);
}

section {
    padding: 80px 0;
    position: relative;
}

/* === Typography === */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-bottom: 1rem;
}

.text-primary-custom {
    color: var(--primary-color);
}

/* === Navbar === */
.navbar {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
    transition: all var(--transition-speed);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark);
    margin: 0 10px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.btn-custom {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    border: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-custom:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
    color: white;
}

.btn-outline-custom {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
}

.btn-outline-custom:hover {
    background-color: var(--primary-color);
    color: white;
}

/* === Hero Section === */
.hero-section {
    padding: 120px 0 80px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

.hero-image-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(45deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    border-radius: 20px;
    opacity: 0.1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: var(--primary-color);
}

/* === Features Cards === */
.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

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

.icon-box {
    width: 60px;
    height: 60px;
    background: #eff6ff;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

/* === Animations === */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        transition: none;
        opacity: 1;
        transform: none;
    }
}

/* === Footer === */
footer {
    background-color: var(--dark-bg);
    color: var(--text-light);
    padding: 60px 0 20px;
}

footer a {
    color: #94a3b8;
}

footer a:hover {
    color: white;
}

/* === Utilities === */
.bg-light-custom {
    background-color: #f8fafc;
}

.text-gradient {
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* === RTL Specifics === */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .hero-content {
    text-align: right;
}

[dir="rtl"] .nav-link {
    margin: 0 10px;
}

[dir="rtl"] .bi-arrow-right {
    transform: rotate(180deg);
}