:root {
    --bg-dark: #0f1016;
    --primary-purple: #8b5cf6;
    --primary-purple-glow: rgba(139, 92, 246, 0.6);
    --accent-blue: #0ea5e9;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-arabic: 'Cairo', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Dynamic animated background inspired by Fortnite */
.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: radial-gradient(circle at 10% 20%, rgba(139, 92, 246, 0.15) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(14, 165, 233, 0.15) 0%, transparent 40%);
    animation: pulse 10s infinite alternate;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.1); opacity: 1; }
}

/* NAVBAR */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 5%;
    background: rgba(15, 16, 22, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 45px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.4));
    transition: transform 0.3s ease;
    border-radius: 50%;
}

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

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links li a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    font-family: var(--font-heading);
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

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

.btn-nav {
    position: relative;
    padding: 0.6rem 1.5rem;
    font-weight: 700;
    color: white !important;
    display: inline-block;
    transition: transform 0.3s ease;
    z-index: 1;
}

.btn-nav::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, var(--primary-purple), var(--accent-blue));
    border-radius: 4px;
    transform: skewX(-10deg);
    z-index: -1;
    transition: box-shadow 0.3s ease;
}

.btn-nav:hover {
    transform: translateY(-2px);
}

.btn-nav:hover::before {
    box-shadow: 0 5px 15px var(--primary-purple-glow);
}

/* BURGER MENU for Mobile */
.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--text-main);
    margin: 5px;
    transition: all 0.3s ease;
}

/* HERO SECTION */
.hero {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 1rem;
    min-height: calc(100vh - 80px); /* Height minus navbar */
}

.hero-content {
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

.subtitle {
    color: var(--accent-blue);
    font-family: var(--font-heading);
    letter-spacing: 4px;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.title {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.highlight {
    background: linear-gradient(135deg, var(--primary-purple), var(--accent-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0px 0px 20px rgba(139, 92, 246, 0.3);
}

.description {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.cta-group {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2.5rem;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-purple), var(--accent-blue));
    color: white;
    transform: skewX(-10deg);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.btn-primary:hover {
    transform: skewX(-10deg) translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 2px solid var(--glass-border);
    backdrop-filter: blur(5px);
    transform: skewX(-10deg);
}

.btn-secondary:hover {
    background: var(--glass-bg);
    border-color: var(--text-main);
    transform: skewX(-10deg) translateY(-3px);
}

/* PAGES CONTAINER (Policies / Form) */
.page-container {
    flex: 1;
    max-width: 800px;
    margin: 4rem auto;
    padding: 2.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.6s ease-out;
}

/* RTL Support for Arabic */
.rtl-content {
    direction: rtl;
    text-align: right;
    font-family: var(--font-arabic);
}

.page-title {
    font-family: var(--font-arabic);
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    color: var(--primary-purple);
    text-shadow: 0 0 10px var(--primary-purple-glow);
}

.page-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.download-box {
    text-align: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: 1px dashed var(--primary-purple);
}

/* FORM STYLES */
.apply-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-weight: 700;
    color: var(--text-main);
    font-size: 1.1rem;
}

.form-input, .form-select {
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    color: var(--text-main);
    font-family: var(--font-arabic);
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.form-input:focus, .form-select:focus {
    border-color: var(--primary-purple);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.2);
    background: rgba(0, 0, 0, 0.5);
}

.form-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f8fafc' 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 1rem center; /* Left for RTL */
    background-size: 1em;
}

/* Footer */
footer {
    text-align: center;
    padding: 1.5rem;
    background: rgba(15, 16, 22, 0.9);
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: 0px;
        height: 92vh;
        top: 8vh;
        background: rgba(15, 16, 22, 0.95);
        backdrop-filter: blur(10px);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        padding-top: 3rem;
    }

    .nav-links.nav-active {
        transform: translateX(0%);
    }

    .burger {
        display: block;
    }

    .title {
        font-size: 3rem;
    }
    
    .page-container {
        margin: 2rem 1rem;
        padding: 1.5rem;
    }
    
    .cta-group {
        flex-direction: column;
    }
}
