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

:root {
    --primary-color: #0d1b2a;
    --secondary-color: #1b263b;
    --accent-color: #d4af37;
    --accent-glow: rgba(212, 175, 55, 0.3);
    --text-white: #ffffff;
    --text-gray: #e0e1dd;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

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

/* Glassmorphism Classes */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
}

.glass-nav {
    background: rgba(13, 27, 42, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
}

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

@keyframes glow {
    0% { box-shadow: 0 0 5px var(--accent-glow); }
    50% { box-shadow: 0 0 20px var(--accent-glow); }
    100% { box-shadow: 0 0 5px var(--accent-glow); }
}

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

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-white);
    letter-spacing: 1px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--accent-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

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

.nav-links a {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.btn-login {
    padding: 10px 25px;
    border-radius: 25px;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.btn-login:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    box-shadow: 0 4px 15px var(--accent-glow);
}

/* Hero Section */
.hero {
    height: 100vh;
    padding: 0 5%;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 80% 20%, #1b263b 0%, #0d1b2a 100%);
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: var(--accent-glow);
    filter: blur(150px);
    border-radius: 50%;
    top: -100px;
    right: -100px;
    z-index: 0;
}

.hero-content {
    flex: 1;
    z-index: 1;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 2rem;
    font-weight: 800;
}

.hero-content h1 span {
    color: var(--accent-color);
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 3rem;
    max-width: 600px;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    z-index: 1;
}

.dashboard-preview {
    width: 100%;
    max-width: 700px;
    transform: perspective(1000px) rotateY(-15deg);
    border-radius: 20px;
    box-shadow: -20px 20px 50px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    transition: 0.5s;
}

.dashboard-preview:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.cta-group {
    display: flex;
    gap: 20px;
}

.btn-main {
    padding: 15px 40px;
    background: var(--accent-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: 0.4s;
    display: inline-block;
}

.btn-main:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--accent-glow);
}

/* Features Section */
.features {
    padding: 100px 5%;
    text-align: center;
}

.section-title {
    margin-bottom: 60px;
}

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

.section-title .underline {
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    margin: 0 auto;
    border-radius: 2px;
}

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

.feature-card {
    padding: 40px 30px;
    text-align: center;
    transition: 0.4s;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: var(--accent-color);
    font-size: 2rem;
}

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

.feature-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* Stats Section */
.stats {
    padding: 60px 5%;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-color);
    display: block;
}

.stat-label {
    color: var(--text-gray);
    font-size: 1.1rem;
}

/* FAQ Section */
.faq {
    padding: 100px 5% 150px;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    padding: 0 20px 20px;
    color: var(--text-gray);
    display: none;
}

/* Footer */
footer {
    padding: 80px 5% 40px;
    background: #060e16;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 50px;
    margin-bottom: 60px;
}

.footer-col h4 {
    margin-bottom: 25px;
    font-size: 1.2rem;
    color: var(--accent-color);
}

.footer-col ul {
    list-style: none;
}

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

.footer-col ul li a {
    color: var(--text-gray);
    text-decoration: none;
    transition: 0.3s;
}

.copyright {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--glass-border);
    color: #555;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 991px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 150px;
        height: auto;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-visual {
        margin-top: 50px;
        order: 2;
    }
    
    .cta-group {
        justify-content: center;
    }
    
    .nav-links {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .cta-group {
        flex-direction: column;
    }
}
