/* 
   Solid Vanilla CSS for Enterprise B2B Layout 
   Guaranteed Grid & Flexbox Responsiveness
*/

:root {
    /* Colors */
    --primary: #0052cc;
    --primary-hover: #003d99;
    --secondary: #0b1121;
    --white: #ffffff;
    --bg-light: #f8fafc;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    
    /* Fonts */
    --font-ar: 'Tajawal', sans-serif;
    --font-en: 'Inter', sans-serif;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-ar);
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--secondary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 700;
    font-family: var(--font-ar);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

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

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

.btn-outline {
    background-color: transparent;
    border-color: var(--border);
    color: var(--text-dark);
}

.btn-outline:hover {
    border-color: var(--text-muted);
    background-color: var(--bg-light);
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1.1rem;
}

/* Header */
.header {
    background-color: var(--white);
    border-bottom: 1px solid var(--border);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

.header.scrolled {
    box-shadow: var(--shadow-sm);
}

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

.logo-text {
    font-family: var(--font-en);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--secondary);
}

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

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-list a {
    color: var(--text-muted);
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-list a:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    padding: 160px 0 100px;
    background-color: var(--bg-light);
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.hero-image img {
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    max-height: 450px;
    width: 100%;
    object-fit: cover;
    background-color: var(--border); /* Fallback color */
    min-height: 300px;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background-color: rgba(0, 82, 204, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

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

/* Stats Section */
.stats {
    background-color: var(--secondary);
    padding: 60px 0;
    color: var(--white);
}

.stats-container {
    display: flex;
    justify-content: space-around;
    text-align: center;
    flex-wrap: wrap;
    gap: 30px;
}

.stat-number {
    font-family: var(--font-en);
    font-size: 3rem;
    color: #4db8ff; /* Lighter blue for better contrast against dark background */
    margin-bottom: 10px;
}

.stat-text {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Image Content Zig-Zag Section */
.content-section {
    padding: 100px 0;
    background-color: var(--white);
}

.content-row {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 100px;
}

.content-row:last-child {
    margin-bottom: 0;
}

.content-row.reverse {
    flex-direction: row-reverse;
}

.content-text {
    flex: 1;
}

.content-text h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.content-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.content-text ul {
    margin-top: 20px;
}

.content-text ul li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--secondary);
}

.content-text ul li i {
    color: var(--primary);
    background: rgba(0, 82, 204, 0.1);
    padding: 8px;
    border-radius: 50%;
}

.content-image {
    flex: 1;
}

.content-image img {
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    height: 400px;
    object-fit: cover;
    background-color: var(--border); /* Fallback color */
}

/* Features Grid Section */
.features {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 40px 30px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
    border-color: rgba(0, 82, 204, 0.2);
}

.icon-box {
    width: 60px;
    height: 60px;
    background-color: rgba(0, 82, 204, 0.1);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-muted);
}

/* Footer */
.footer {
    background-color: var(--secondary);
    color: var(--white);
    padding: 80px 0 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-about p {
    color: #94a3b8;
    margin-top: 20px;
    max-width: 350px;
}

.footer-links h4, .footer-contact h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: #94a3b8;
}

.footer-links ul li a:hover {
    color: var(--primary);
}

.footer-contact ul li {
    color: #94a3b8;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact ul li i {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Responsive Rules */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
    .content-row {
        flex-direction: column;
        gap: 30px;
    }
    .content-row.reverse {
        flex-direction: column;
    }
    .content-image img {
        height: auto;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        justify-content: center;
        gap: 15px;
        height: auto;
        padding: 20px 0;
    }
    .nav-list {
        display: none;
    }
    .header-btn {
        display: none;
    }
    .hero {
        padding: 120px 0 80px;
    }
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    .hero-buttons {
        justify-content: center;
        flex-direction: column;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-image {
        width: 100%;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-about p {
        margin: 20px auto;
    }
    .footer-contact ul li {
        justify-content: center;
    }
}
