:root {
    --primary: #008C99; /* Teal from logo */
    --secondary: #005f6b;
    --navy: #0b0f1a;
    --card-bg: rgba(30, 41, 59, 0.7);
    --text-main: #f8fafc;
    --text-dim: #94a3b8;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --gradient: linear-gradient(135deg, var(--primary), #a855f7);
    --nav-bg: rgba(11, 15, 26, 0.8);
    --footer-bg: #05070a;
}

/* Light Theme Variables */
[data-theme="light"] {
    --navy: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-dim: #64748b;
    --glass: rgba(0, 0, 0, 0.02);
    --glass-border: rgba(0, 0, 0, 0.05);
    --nav-bg: rgba(255, 255, 255, 0.85);
    --footer-bg: #f1f5f9;
}

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

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

[dir="rtl"] {
    font-family: 'Tajawal', sans-serif;
}

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

@keyframes slideIn {
    from { transform: translateX(-50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

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

/* Navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: var(--nav-bg);
    border-bottom: 1px solid var(--glass-border);
}

.logo img {
    height: 50px;
}

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

.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    font-size: 0.95rem;
}

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

.btn-cta {
    background: var(--primary);
    color: white !important;
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    transition: 0.3s;
}

.btn-cta:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 140, 153, 0.3);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
    background: radial-gradient(circle at top right, rgba(0, 140, 153, 0.15), transparent),
                radial-gradient(circle at bottom left, rgba(168, 85, 247, 0.1), transparent);
}

.hero-content {
    max-width: 650px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, var(--primary));
    -webkit-background-clip: text;
    -webkit-fill-color: transparent;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-dim);
    margin-bottom: 2.5rem;
}

/* Sections */
section {
    padding: 8rem 5%;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-dim);
    max-width: 600px;
    margin: 0 auto;
}

/* Grid System */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 24px;
    transition: 0.4s;
    backdrop-filter: blur(5px);
}

.card:hover {
    background: rgba(30, 41, 59, 0.9);
    transform: translateY(-10px);
    border-color: var(--primary);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 140, 153, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

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

/* Stats */
.stats {
    background: var(--primary);
    padding: 4rem 5%;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 3rem;
    border-radius: 0;
}

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

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* Footer */
footer {
    padding: 5rem 5% 2rem;
    background: var(--footer-bg);
    border-top: 1px solid var(--glass-border);
}

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

.footer-col h4 {
    margin-bottom: 2rem;
    color: white;
}

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

.footer-col ul li {
    margin-bottom: 1rem;
}

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

.footer-col ul li a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* RTL Specific adjustments */
[dir="rtl"] .hero {
    text-align: right;
}

[dir="rtl"] .nav-links {
    flex-direction: row-reverse;
}

/* Clients Section Animation */
.clients-slider div {
    animation: slideUp 0.5s ease-out forwards;
    opacity: 0;
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.clients-slider div:nth-child(1) { animation-delay: 0.1s; }
.clients-slider div:nth-child(2) { animation-delay: 0.2s; }
.clients-slider div:nth-child(3) { animation-delay: 0.3s; }
.clients-slider div:nth-child(4) { animation-delay: 0.4s; }
