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

:root {
    --bg-main: #0B0E14;
    --bg-secondary: #151A22;
    --primary: #4F46E5;
    --primary-hover: #4338CA;
    --secondary: #06B6D4;
    --text-main: #F3F4F6;
    --text-muted: #9CA3AF;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --gradient-primary: linear-gradient(135deg, #4F46E5 0%, #06B6D4 100%);
    --shadow-soft: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

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

/* Typography */
h1, h2, h3, h4 {
    color: #fff;
    margin-bottom: 1rem;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

/* Navbar */
.navbar {
    background: rgba(11, 14, 20, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

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

.nav-links a:hover, .nav-links a.active {
    color: #fff;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.6);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: #fff;
}

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

/* Main Content Padding */
main {
    padding-top: 120px;
    min-height: calc(100vh - 80px);
    padding-bottom: 60px;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 80px 0;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(79,70,229,0.15) 0%, rgba(11,14,20,0) 70%);
    z-index: -1;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Cards (Glassmorphism) */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
    border-color: rgba(255,255,255,0.15);
}

/* Grid Layouts */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Job Card Details */
.job-type {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.job-type.دائم {
    background: rgba(16, 185, 129, 0.15);
    color: #10B981;
}

.job-type.مؤقت {
    background: rgba(245, 158, 11, 0.15);
    color: #F59E0B;
}

.job-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
    border-top: 1px solid var(--glass-border);
    padding-top: 15px;
}

/* Forms */
.form-container {
    max-width: 600px;
    margin: 0 auto;
}

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

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

.form-control {
    width: 100%;
    padding: 14px 18px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 15px center;
    background-size: 18px;
}

/* Badges */
.badge {
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(255,255,255,0.1);
    color: #fff;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease forwards;
}

/* Footer */
footer {
    text-align: center;
    padding: 30px;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ShiftGo Custom Buttons */
.btn-dark-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    transition: all 0.3s ease;
}

.btn-dark-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-white {
    background: #fff;
    color: #000;
    transition: all 0.3s ease;
    border: 1px solid #fff;
}

.btn-white:hover {
    background: #e5e7eb;
    border-color: #e5e7eb;
    transform: translateY(-2px);
}

/* Responsive Design for Mobile Devices */
.menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: #fff;
    cursor: pointer;
    z-index: 1001;
}

.nav-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

@media (max-width: 900px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
    }
    .navbar .container {
        position: relative;
    }
    .menu-toggle {
        display: block;
        position: relative; /* Changed from absolute to prevent overlap */
        margin-right: 15px;
    }
    
    html[dir="ltr"] .menu-toggle {
        margin-right: 0;
        margin-left: 15px;
    }
    
    .nav-container {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(11, 14, 20, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        padding: 20px 0;
        border-bottom: 1px solid var(--glass-border);
        z-index: 999;
    }
    .nav-container.active {
        display: flex;
    }
    .nav-links {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        width: 100%;
        padding: 0;
    }
    .nav-actions {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        margin-top: 15px;
    }
    .nav-actions .btn {
        width: 90%;
        margin: 0 auto;
        text-align: center;
    }
    .lang-btn {
        width: 90%;
        text-align: center;
        margin-top: 10px !important;
    }
    
    main {
        padding-top: 100px;
    }
    .hero {
        padding: 40px 0;
        overflow: hidden;
    }
    .hero::before {
        width: 100vw;
        height: 100vw;
    }
    .hero h1 {
        font-size: 2.2rem !important;
    }
    .hero h2 {
        font-size: 1.1rem !important;
        padding: 0 10px;
    }
    .hero p {
        font-size: 0.95rem !important;
    }
    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
        padding: 0 20px;
    }
    .hero-actions .btn {
        width: 100%;
    }
    .grid {
        grid-template-columns: 1fr;
    }
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
    }
    .glass-card {
        padding: 20px;
    }
}

