@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800&display=swap');

:root {
    --bg-darker: #0b1220;
    --bg-dark: #0f172a;
    --bg-light-dark: #111827;
    --bg-card: #1e293b;
    --text-main: #ffffff;
    --text-muted: #cbd5e1;
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --navy: #1e3a8a;
    --gold: #d4a017;
    --border-color: #334155;
    --success: #10b981;
    
    --font-main: 'Cairo', sans-serif;
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-darker);
    color: var(--text-main);
    direction: rtl;
    text-align: right;
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-main);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }

p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

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

/* Layout & Grid */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 80px 0;
}

.section-bg-alt {
    background: linear-gradient(180deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
}

.grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
}

.col-12 { grid-column: span 12; }
.col-8 { grid-column: span 8; }
.col-6 { grid-column: span 6; }
.col-4 { grid-column: span 4; }
.col-3 { grid-column: span 3; }

@media (max-width: 1024px) {
    .grid { grid-template-columns: repeat(6, 1fr); }
    .col-12, .col-8, .col-6, .col-4, .col-3 { grid-column: span 6; }
    h1 { font-size: 2.25rem; }
}

@media (max-width: 768px) {
    .grid { grid-template-columns: 1fr; }
    .col-12, .col-8, .col-6, .col-4, .col-3 { grid-column: span 1; }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-family: var(--font-main);
}

.btn-lg {
    padding: 18px 36px;
    font-size: 1.25rem;
    font-weight: 700;
}

.btn-primary {
    background-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-gold {
    background-color: var(--gold);
    color: var(--bg-darker);
    box-shadow: 0 4px 14px rgba(212, 160, 23, 0.3);
}

.btn-gold:hover {
    background-color: #eab308;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--text-main);
    background-color: rgba(255, 255, 255, 0.05);
}

/* Header */
.header {
    background-color: rgba(11, 18, 32, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-links a {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
}

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

@media (max-width: 1024px) {
    .nav-links { display: none; }
    .header-cta { display: none; }
}

/* Hero Section SaaS Dashboard Style */
.hero {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15; /* Strict adherence to max 20% overlay */
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 24px;
    background: linear-gradient(to left, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 32px;
    max-width: 90%;
}

.hero-btns {
    display: flex;
    gap: 16px;
}

/* Dashboard UI Cards (Hero Right Side) */
.dashboard-showcase {
    position: relative;
}

.dash-card {
    background-color: rgba(30, 41, 59, 0.85);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transform: perspective(1000px) rotateY(-5deg);
    transition: var(--transition);
}

.dash-card:hover {
    transform: perspective(1000px) rotateY(0deg) translateY(-5px);
    border-color: var(--primary);
}

.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.dash-title {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 600;
}

.dash-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-main);
}

.dash-chart {
    height: 60px;
    width: 100%;
    background: linear-gradient(to top, rgba(37,99,235,0.2) 0%, transparent 100%);
    border-bottom: 2px solid var(--primary);
    position: relative;
    margin-top: 10px;
}

.dash-chart::after {
    content: '';
    position: absolute;
    bottom: -4px;
    right: 20%;
    width: 8px;
    height: 8px;
    background: var(--text-main);
    border-radius: 50%;
    border: 2px solid var(--primary);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 56px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2.5rem;
}

/* Cards System */
.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transform: translateY(-5px);
}

.card-img-wrapper {
    height: 200px;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-img-wrapper img {
    transform: scale(1.05);
}

.card-body {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--text-main);
}

.card-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.card-link {
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

.card-link:hover {
    color: var(--primary-hover);
}

/* Image blocks */
.image-block {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    position: relative;
}

.image-block img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Stats Row */
.stats-row {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: -40px;
    position: relative;
    z-index: 10;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
}

.stat-label {
    color: var(--text-muted);
    font-weight: 600;
}

/* Features List */
.feature-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background-color: var(--bg-card);
    padding: 16px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.feature-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

/* Testimonials */
.testimonial-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 16px;
    right: 24px;
    font-size: 4rem;
    color: rgba(255,255,255,0.05);
    font-family: serif;
    line-height: 1;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.client-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
}

.client-name {
    font-weight: 700;
    color: var(--text-main);
    display: block;
}

.client-role {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Forms */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    background-color: var(--bg-darker);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 14px 16px;
    border-radius: 6px;
    font-family: var(--font-main);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.form-control-lg {
    padding: 18px 24px;
    font-size: 1.1rem;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

textarea.form-control-lg {
    min-height: 240px;
}

/* Legal Pages */
.legal-content {
    background-color: var(--bg-card);
    padding: 48px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.legal-content h2 {
    margin-top: 40px;
    margin-bottom: 16px;
    color: var(--text-main);
    font-size: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.legal-content p {
    margin-bottom: 16px;
}

/* Footer */
.footer {
    background-color: var(--bg-darker);
    border-top: 1px solid var(--border-color);
    padding: 64px 0 24px;
    margin-top: auto;
}

.footer-col h4 {
    font-size: 1.25rem;
    margin-bottom: 24px;
    color: var(--text-main);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--primary);
    padding-right: 8px;
}

.footer-bottom {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

/* Page Header */
.page-header {
    padding: 80px 0 60px;
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 16px;
}