:root {
    --primary: #00a0e5;
    --secondary: #5ccb39;
    --accent: #8a2be2;
    --light: #fdfeff;
    --dark: #2b2c2b;
    --darker: #050505;
    --gray: #6c757d;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--accent) 50%, var(--secondary) 100%);
    --gradient-hover: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 50%, var(--accent) 100%);
    --glass: rgba(253, 254, 255, 0.08);
    --glass-border: rgba(253, 254, 255, 0.12);
    --neon-glow: 0 0 20px rgba(0, 160, 229, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--lang-font, 'Exo 2'), sans-serif;
    background: var(--darker);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(0, 160, 229, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(92, 203, 57, 0.05) 0%, transparent 20%);
}

body[dir="rtl"] {
    font-family: 'Tajawal', sans-serif;
}

.futuristic-nav {
    background: rgba(43, 44, 43, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-scrolled {
    background: rgba(43, 44, 43, 0.95);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 1.8rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.nav-link {
    color: var(--light) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    transition: left 0.3s ease;
    z-index: -1;
    border-radius: 25px;
}

.nav-link:hover::before {
    left: 0;
}

.nav-link:hover {
    color: var(--dark) !important;
    transform: translateY(-2px);
}

.language-dropdown .dropdown-toggle {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--light);
    border-radius: 25px;
    padding: 0.5rem 1rem;
}

.flag-icon {
    width: 20px;
    height: 15px;
    margin-right: 8px;
}

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.floating-element {
    position: absolute;
    background: var(--gradient);
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
}

.element-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.element-2 {
    width: 200px;
    height: 200px;
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.element-3 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

.hero-content h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.3rem;
    color: #ccc;
    margin-bottom: 2rem;
    max-width: 600px;
}

.btn-hero {
    background: var(--gradient);
    border: none;
    color: var(--light);
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-hover);
    transition: left 0.3s ease;
    z-index: -1;
    border-radius: 50px;
}

.btn-hero:hover::before {
    left: 0;
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 160, 229, 0.4);
}

.stats-section {
    padding: 5rem 0;
    background: rgba(43, 44, 43, 0.5);
}

.stat-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.stat-card:hover::before {
    opacity: 0.1;
}

.stat-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: var(--neon-glow);
}

.stat-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.5rem;
}

.services-section {
    padding: 8rem 0;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.service-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    padding: 2.5rem;
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.service-card:hover::before {
    opacity: 0.1;
}

.service-card:hover {
    transform: translateY(-15px);
    border-color: var(--primary);
    box-shadow: var(--neon-glow);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    color: var(--light);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--light);
}

.service-description {
    color: #ccc;
    line-height: 1.7;
}

.cta-section {
    padding: 8rem 0;
    background: var(--gradient);
    position: relative;
    overflow: hidden;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.cta-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.cta-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.btn-cta {
    background: var(--dark);
    color: var(--light);
    border: none;
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-cta:hover {
    background: var(--darker);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.footer {
    background: var(--dark);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--glass-border);
}

/* Form Styles */
.form-control {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--light);
    border-radius: 10px;
    padding: 0.75rem 1rem;
}

.form-control:focus {
    background: var(--glass);
    border-color: var(--primary);
    color: var(--light);
    box-shadow: 0 0 0 0.2rem rgba(0, 160, 229, 0.25);
}

.form-control::placeholder {
    color: #999;
}

.btn-primary {
    background: var(--gradient);
    border: none;
    color: var(--light);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--gradient-hover);
    transform: translateY(-2px);
    box-shadow: var(--neon-glow);
}

.btn-outline-primary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: var(--dark);
    transform: translateY(-2px);
}

/* Alert Styles */
.alert {
    border-radius: 15px;
    border: none;
    backdrop-filter: blur(10px);
}

.alert-success {
    background: rgba(92, 203, 57, 0.1);
    border: 1px solid var(--secondary);
    color: var(--secondary);
}

.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid #dc3545;
    color: #dc3545;
}

/* Admin Styles */
.admin-panel {
    background: var(--darker);
    min-height: 100vh;
    padding-top: 80px;
}

.admin-sidebar {
    background: var(--dark);
    border-right: 1px solid var(--glass-border);
    height: 100vh;
    position: fixed;
    width: 250px;
}

.admin-content {
    margin-left: 250px;
    padding: 2rem;
}

.admin-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-active {
    background: rgba(92, 203, 57, 0.2);
    color: var(--secondary);
    border: 1px solid var(--secondary);
}

.status-inactive {
    background: rgba(108, 117, 125, 0.2);
    color: var(--gray);
    border: 1px solid var(--gray);
}

/* Table Styles */
.table-dark {
    background: var(--glass);
    border-radius: 15px;
    overflow: hidden;
}

.table-dark th {
    background: var(--dark);
    border-color: var(--glass-border);
    color: var(--light);
}

.table-dark td {
    border-color: var(--glass-border);
    background: rgba(253, 254, 255, 0.02);
}

/* Modal Styles */
.modal-content {
    background: var(--dark);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    backdrop-filter: blur(20px);
}

.modal-header {
    border-bottom: 1px solid var(--glass-border);
}

.modal-footer {
    border-top: 1px solid var(--glass-border);
}

.btn-close {
    filter: invert(1);
}

/* Login Page Styles */
.admin-login {
    background: var(--darker);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .admin-sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
    
    .admin-content {
        margin-left: 0;
    }
}

/* RTL Support */
body[dir="rtl"] .text-start {
    text-align: right !important;
}

body[dir="rtl"] .me-2 {
    margin-left: 0.5rem !important;
    margin-right: 0 !important;
}

body[dir="rtl"] .ms-auto {
    margin-right: auto !important;
    margin-left: 0 !important;
}

/* Additional utility classes */
.text-primary {
    color: var(--primary) !important;
}

.text-secondary {
    color: var(--secondary) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.bg-secondary {
    background-color: var(--secondary) !important;
}

.border-primary {
    border-color: var(--primary) !important;
}

.border-secondary {
    border-color: var(--secondary) !important;
}