/* --- Variables & Reset --- */
:root {
    --primary-color: #004e92; /* أزرق داكن من الشعار */
    --secondary-color: #00cba9; /* لون التدرج الأخضر/السماوي */
    --accent-color: #6c5ce7; /* لون الزر البنفسجي في الداشبورد */
    --dark-text: #1a202c;
    --light-text: #718096;
    --bg-light: #f7fafc;
    --white: #ffffff;
    --gradient-main: linear-gradient(135deg, #004e92 0%, #00cba9 100%);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--white);
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Typography & Utilities --- */
h1, h2, h3 { font-weight: 700; line-height: 1.3; }
.gradient-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.blue-text { color: var(--primary-color); }

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-primary {
    background: var(--gradient-main);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 78, 146, 0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 78, 146, 0.4);
}
.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}
.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}
.btn-secondary {
    color: var(--dark-text);
    margin-right: 15px;
}

/* --- Header --- */
header {
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: 0.4s;
}
header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    padding: 15px 0;
}
header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo img { height: 48px; } /* تعديل حجم الشعار - increased */

nav ul { display: flex; gap: 30px; }
nav a { font-weight: 500; color: var(--dark-text); }
nav a:hover { color: var(--primary-color); }

.cta-group { display: flex; gap: 15px; align-items: center; }
.mobile-menu-icon { display: none; font-size: 24px; cursor: pointer; }

/* --- Hero Section --- */
.hero {
    padding-top: 150px;
    padding-bottom: 80px;
    position: relative;
    overflow: hidden;
}
.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 50px;
}
.hero-content h1 { font-size: 3.5rem; margin-bottom: 20px; }
.hero-content p { font-size: 1.1rem; color: var(--light-text); margin-bottom: 30px; max-width: 500px; }
.hero-image { position: relative; }
.hero-image .floating-img {
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    animation: float 6s ease-in-out infinite;
}
.floating-card {
    position: absolute;
    background: white;
    padding: 10px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 2;
}
.card-1 { top: 10%; right: -20px; color: var(--secondary-color); animation: float 5s ease-in-out infinite 1s; }
.card-2 { bottom: 15%; left: -20px; color: var(--primary-color); animation: float 7s ease-in-out infinite 0.5s; }

.bg-shape {
    position: absolute;
    top: -50%;
    left: -20%;
    width: 80%;
    height: 150%;
    background: linear-gradient(135deg, rgba(0, 203, 169, 0.05) 0%, rgba(0, 78, 146, 0.05) 100%);
    border-radius: 50%;
    z-index: -1;
}

/* --- Features Section --- */
.features { padding: 100px 0; background: var(--bg-light); }
.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 { font-size: 2.5rem; margin-bottom: 10px; }
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.feature-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    transition: 0.3s;
    text-align: center;
}
.feature-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-hover); }
.icon-box {
    width: 60px; height: 60px;
    background: rgba(0, 203, 169, 0.1);
    color: var(--secondary-color);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
    margin: 0 auto 20px;
}
.feature-card h3 { margin-bottom: 15px; }
.feature-card p { color: var(--light-text); font-size: 0.95rem; }

/* --- Showcase Section (Tabs) --- */
.showcase { padding: 100px 0; }
.tabs-container {
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    border: 1px solid #eee;
}
.tabs-header {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}
.tab-btn {
    flex: 1;
    padding: 20px;
    border: none;
    background: transparent;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    color: var(--light-text);
}
.tab-btn.active {
    background: white;
    color: var(--primary-color);
    border-top: 3px solid var(--primary-color);
}
.tabs-content { padding: 40px; text-align: center; }
.tab-pane { display: none; animation: fadeIn 0.5s ease; }
.tab-pane.active { display: block; }
.tab-pane img {
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    border: 1px solid #eee;
}

/* --- Pricing Section --- */
.pricing { padding: 100px 0; background: var(--bg-light); }
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.price-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    position: relative;
    transition: 0.3s;
}
.price-card:hover { transform: translateY(-10px); }
.price-card.popular { border: 2px solid var(--primary-color); transform: scale(1.05); }
.price-card.popular:hover { transform: scale(1.05) translateY(-10px); }
.badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}
.plan-header { text-align: center; margin-bottom: 30px; }
.price { font-size: 2.5rem; font-weight: 800; color: var(--primary-color); margin-top: 10px; }
.price span { font-size: 1rem; font-weight: 400; color: var(--light-text); }
.features-list li {
    margin-bottom: 15px;
    color: var(--dark-text);
    display: flex;
    align-items: center;
    gap: 10px;
}
.features-list li i { color: var(--secondary-color); }
.price-card .btn { width: 100%; text-align: center; margin-top: 20px; }

/* --- Footer --- */
footer { background: #0b1c2c; color: white; padding: 60px 0 20px; }
.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
}
.footer-logo img { height: 35px; margin-bottom: 15px; }
.footer-logo p { color: #a0aec0; }
.footer-links ul li { margin-bottom: 10px; }
.footer-links a { color: #a0aec0; }
.footer-links a:hover { color: white; padding-right: 5px; }
.social-icons { display: flex; gap: 15px; margin-top: 20px; }
.social-icons a {
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
}
.social-icons a:hover { background: var(--primary-color); }
.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #a0aec0;
    font-size: 0.9rem;
}

/* --- Animations & Responsive --- */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-up { opacity: 0; transform: translateY(30px); transition: all 0.8s ease; }
.fade-up.active { opacity: 1; transform: translateY(0); }
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }

@media (max-width: 768px) {
    .hero .container { grid-template-columns: 1fr; text-align: center; }
    .hero-content h1 { font-size: 2.5rem; }
    .hero-image { margin-top: 40px; }
    nav, .cta-group { display: none; } /* Simplified mobile menu handling */
    .mobile-menu-icon { display: block; }
    .footer-content { grid-template-columns: 1fr; text-align: center; }
    .tabs-header { flex-direction: column; }
}