:root {
    --color-bg: #0f172a; /* Deep slate/navy background to contrast with the logo */
    --color-text: #f8fafc;
    --color-primary: #3c7a52; /* Logo Green */
    --color-secondary: #2a5a8a; /* Logo Blue */
    --color-accent: #3b82f6; /* Blue accent instead of green */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Background Animated Blobs */
.background-blobs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: -1;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 20s infinite alternate;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--color-secondary), transparent 70%);
    animation-delay: 0s;
}

.blob-2 {
    bottom: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #312e81, transparent 70%); /* Changed from green to deep indigo */
    animation-delay: -5s;
}

.blob-3 {
    top: 40%;
    left: 40%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #1f2937, transparent 70%);
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, -50px) scale(1.1); }
    100% { transform: translate(-50px, 50px) scale(0.9); }
}

/* Navbar */
.navbar {
    padding: 2rem 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.brand-logo {
    height: 64px;
    width: auto;
    border-radius: 16px;
    margin-right: -8px; /* Offset if image has inherent padding */
}

.brand-name {
    font-family: 'Fredoka', sans-serif;
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--color-secondary);
    line-height: 1;
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 4rem 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.highlight {
    background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #9ca3af;
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    border: none;
    box-shadow: 0 10px 20px rgba(51, 122, 91, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(51, 122, 91, 0.5);
}

.features-mini {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 3rem;
}

.feature-badge {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #cbd5e1;
    backdrop-filter: blur(10px);
}

/* Glass Panel for Mockup */
.hero-image-wrapper {
    position: relative;
    perspective: 1000px;
}

.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 1rem;
    backdrop-filter: blur(12px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.glass-panel:hover {
    transform: rotateY(0) rotateX(0);
}

.app-mockup {
    width: 100%;
    border-radius: 16px;
    display: block;
}

/* Features Section */
.features {
    padding: 6rem 0;
    background: linear-gradient(to bottom, transparent, rgba(13, 17, 23, 0.8));
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
}

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

.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, background 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.glass-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
}

.glass-card p {
    color: #9ca3af;
}

/* Testimonials Section */
.testimonials {
    padding: 2rem 0 6rem 0;
}

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

.testimonial-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.quote {
    font-size: 1.25rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--color-text);
    line-height: 1.8;
}

.author {
    color: var(--color-accent);
    font-weight: 600;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid var(--glass-border);
    margin-top: 4rem;
    color: #6b7280;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .features-mini {
        justify-content: center;
    }
    
    .glass-panel {
        max-width: 500px;
        margin: 0 auto;
        transform: none;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
}

/* Language Selector */
.lang-selector {
    position: relative;
    display: inline-block;
}

.lang-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--color-text);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

.lang-btn-arrow {
    font-size: 0.7rem;
    opacity: 0.7;
    transition: transform 0.2s ease;
}

.lang-selector:hover .lang-btn-arrow {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 0.5rem;
    min-width: 160px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(16px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s ease;
    z-index: 100;
}

[dir="rtl"] .lang-dropdown {
    right: auto;
    left: 0;
}

.lang-selector:hover .lang-dropdown,
.lang-selector:focus-within .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.8rem;
    color: #cbd5e1;
    text-decoration: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.lang-option:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.lang-option.active {
    background: linear-gradient(135deg, rgba(60, 122, 82, 0.4), rgba(42, 90, 138, 0.4));
    color: #ffffff;
    font-weight: 700;
}

/* RTL Styles for Arabic */
[dir="rtl"] body {
    font-family: 'Cairo', 'Outfit', sans-serif;
    text-align: right;
}

[dir="rtl"] .brand-logo {
    margin-right: 0;
    margin-left: -8px;
}

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

[dir="rtl"] .hero-subtitle {
    margin-left: auto;
    margin-right: 0;
}

[dir="rtl"] .features-mini {
    justify-content: flex-start;
}

@media (max-width: 992px) {
    [dir="rtl"] .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    [dir="rtl"] .features-mini {
        justify-content: center;
    }
}

