:root {
    --primary: #01ADFF;
    --accent: #F9CF19;
    --success: #00AB05;
    --muted: #6b7280;
    --dark: #111827;
    --light: #f8fafc;
    --white: #ffffff;
    --border: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: 'Cairo', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    direction: rtl;
    scroll-behavior: smooth;
}

body {
    background: var(--light);
    color: var(--dark);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    line-height: 1.6;
}

/* prevent accidental horizontal scroll from large pseudo-elements */
body { overflow-x: hidden; }

.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-inline: 24px;
    width: 100%;
}

/* Header Styles */
header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--success) 100%);
    border-radius: 12px;
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
}

.brand-logo-img {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    display: block;
}

.card-logo {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    object-fit: cover;
    display: block;
    margin: 0 auto 12px;
}

.brand-text h1 {
    font-size: 1.5rem;
    margin: 0;
    color: var(--primary);
    font-weight: 700;
}

.brand-text .tagline {
    font-size: 0.9rem;
    color: var(--muted);
    margin-top: 4px;
}

nav {
    display: flex;
    gap: 8px;
}

nav a {
    color: var(--dark);
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

nav a:hover {
    background: rgba(1, 173, 255, 0.1);
    color: var(--primary);
}

nav a.cta {
    background: var(--primary);
    color: white;
}

nav a.cta:hover {
    background: #019ae6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(1, 173, 255, 0.3);
}

/* Hero Section */
.hero {
    padding: 80px 0 120px;
    background: linear-gradient(135deg, rgba(1, 173, 255, 0.05) 0%, rgba(0, 171, 5, 0.05) 100%);
    position: relative;
    overflow: visible;
}


.hero-content {
    display: flex;
    align-items: center;
    gap: 40px;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    flex: 1;
    max-width: 640px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 30px;
    background: var(--accent);
    color: #000;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--dark);
}

.hero-title span {
    color: var(--primary);
}

.hero-description {
    font-size: 1.2rem;
    color: var(--muted);
    margin-bottom: 30px;
    max-width: 600px;
}

.hero-features {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
}

.feature-tag {
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.feature-tag.accent {
    background: var(--accent);
    color: #000;
}

.feature-tag.success {
    background: var(--success);
    color: white;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.btn {
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(1, 173, 255, 0.3);
}

.btn-primary:hover {
    background: #019ae6;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(1, 173, 255, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: rgba(1, 173, 255, 0.1);
    transform: translateY(-2px);
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--shadow-lg);
    width: 100%;
 
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--dark);
}

.card-description {
    color: var(--muted);
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(1, 173, 255, 0.2);
    outline: none;
}

/* About Section */
.about {
    padding: 100px 0;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 30px;
    background: rgba(1, 173, 255, 0.1);
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 16px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--dark);
}

.section-description {
    font-size: 1.2rem;
    color: var(--muted);
    max-width: 700px;
    margin: 0 auto;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-text {
    flex: 1;
}

.about-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--dark);
}

.about-description {
    font-size: 1.1rem;
    color: var(--muted);
    margin-bottom: 30px;
    line-height: 1.7;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(1, 173, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.feature-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark);
}

.feature-content p {
    color: var(--muted);
}

.about-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    width: 100%;
    max-width: 400px;
}

.stat-card {
    background: var(--light);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
}

.stat-label {
    color: var(--muted);
    font-weight: 500;
}

/* Portfolio Selection */
.portfolios {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(1, 173, 255, 0.05) 0%, rgba(0, 171, 5, 0.05) 100%);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.portfolio-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.portfolio-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(1, 173, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.portfolio-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--dark);
}

.portfolio-description {
    color: var(--muted);
    margin-bottom: 20px;
}

.portfolio-features {
    margin-bottom: 24px;
}

.portfolio-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--muted);
}

.portfolio-feature::before {
    content: '✓';
    color: var(--success);
    font-weight: bold;
}

/* Benefits Section */
.benefits {
    padding: 100px 0;
    background: white;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.benefit-card {
    text-align: center;
    padding: 40px 24px;
    border-radius: 16px;
    background: var(--light);
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: rgba(1, 173, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 2rem;
    margin: 0 auto 24px;
}

.benefit-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--dark);
}

.benefit-description {
    color: var(--muted);
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: white;
}

.footer-col p {
    color: #d1d5db;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #374151;
    color: #9ca3af;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content, .about-content {
        flex-direction: column;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 16px;
    }
    
    nav {
        width: 100%;
        justify-content: center;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .portfolio-grid, .benefits-grid {
        grid-template-columns: 1fr;
    }
}

/* Admin/stat and login branding */
.admin-stat-card {
    background: linear-gradient(135deg, rgba(1,173,255,0.08), rgba(0,171,5,0.04));
    border: 1px solid rgba(1,173,255,0.12);
    box-shadow: 0 6px 18px rgba(1,173,255,0.06);
    border-radius: 12px;
    padding: 20px;
}
.admin-stat-card h6 { color: var(--primary); font-weight:700; }

.login-card {
    max-width: 480px;
    margin: 40px auto;
    border-radius: 12px;
    overflow: hidden;
}
.login-card .card-header {
    background: linear-gradient(135deg, var(--primary), var(--success));
    color: #fff;
    padding:18px 20px;
}
.login-card .card-body { padding: 24px; }
.login-logo { width:84px; height:84px; object-fit:cover; border-radius:10px; display:block; margin: -36px auto 12px; box-shadow:0 6px 18px rgba(1,173,255,0.12); }

