:root {
    --bg-color: #050505;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --accent-primary: #ffd500; /* --color-secondary */
    --accent-secondary: #004c8c; /* --color-primary */
    --accent-tertiary: #00b050; /* --color-accent */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Outfit', sans-serif;
}

/* Mobile First Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.5;
    overflow-x: hidden;
    min-height: 100vh;
}

.background-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: 
        radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(251, 191, 36, 0.05) 0%, transparent 40%);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem; /* Tightened */
}

.lang-toggle {
    display: flex;
    background: var(--glass-bg);
    padding: 4px;
    border-radius: 100px;
    border: 1px solid var(--glass-border);
}

.lang-btn {
    text-decoration: none;
    color: var(--text-secondary);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.lang-btn.active {
    background: var(--accent-tertiary); /* Green */
    color: white;
    box-shadow: 0 2px 10px rgba(0, 176, 80, 0.3);
}

/* Header */
header {
    padding: 1rem 0;
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.logo-img {
    height: 100px; /* Smaller mobile default */
    width: 120px;
    object-fit: contain;
    background: #fff;
    border-radius: 50%;
    padding: 10px;
    border: 3px solid var(--accent-secondary);
    box-shadow: 0 5px 20px rgba(0, 71, 160, 0.4);
}

/* Hero */
.hero {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeIn 0.8s ease-out;
}

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

h1 {
    font-size: 2rem; /* Mobile */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, #ffd500 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.description {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.mission-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.mission-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 1.25rem;
    border-radius: 20px;
    text-align: left;
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

/* RTL Specific Adjustments */
[dir="rtl"] .mission-item {
    text-align: right;
    flex-direction: row; /* Icon stays at the 'start', which is the RIGHT in RTL */
}

[dir="rtl"] .mission-text {
    text-align: right;
}

.icon {
    color: var(--accent-primary);
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    margin-top: 0.25rem;
}

.mission-text {
    flex: 1;
}

.mission-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.35rem;
}

.mission-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Featured Section */
.featured {
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.product-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.4) 0%, rgba(15, 23, 42, 0.4) 100%);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.card-content {
    order: 1;
}

.label {
    text-transform: uppercase;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--accent-tertiary);
    margin-bottom: 0.5rem;
}

.product-card h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.product-card p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent-secondary);
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.visual-mockup {
    order: 2;
    display: flex;
    justify-content: center;
}

.browser-frame {
    width: 100%;
    max-width: 280px;
    background: #1e293b;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}

.browser-top {
    height: 24px;
    background: #0f172a;
    display: flex;
    align-items: center;
    padding: 0 8px;
    gap: 4px;
}

.dot { width: 6px; height: 6px; border-radius: 50%; }
.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }

.browser-body {
    background: #fff;
    height: 350px;
    overflow-y: auto;
}

.mock-full-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Suspense Card */
.product-card.suspense {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.4) 0%, rgba(15, 23, 42, 0.6) 100%);
    border-color: rgba(255, 255, 255, 0.05);
}

.suspense-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-primary);
    border: 1px dashed var(--accent-primary);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.mystery-box {
    width: 200px;
    height: 200px;
    background: var(--glass-bg);
    border-radius: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.mystery-icon {
    width: 80px;
    height: 80px;
    color: var(--text-secondary);
    z-index: 2;
}

.mystery-glow {
    position: absolute;
    width: 150px;
    height: 150px;
    background: var(--accent-primary);
    filter: blur(80px);
    opacity: 0.2;
    z-index: 1;
}

/* Feedback Form */
.feedback {
    padding: 4rem 0;
    border-top: 1px solid var(--glass-border);
}

.form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background: var(--glass-bg);
    padding: 2rem;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
}

.feedback-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 1rem;
    border-radius: 12px;
    color: white;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.feedback-form button {
    cursor: pointer;
    border: none;
    margin: 0 auto;
    width: fit-content;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem; /* Spacing added */
}

.section-header h2 {
    font-size: 1.75rem;
}

.services-detail, .faq {
    padding: 3rem 0;
    border-top: 1px solid var(--glass-border);
}

.service-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.service-info {
    padding: 1.5rem;
    background: var(--glass-bg);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
}

.service-info h3 {
    font-size: 1.1rem;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

/* Brand Badges */
.badge-bim, .badge-marjane, .badge-marjane-market, .badge-carrefour, .badge-kazyon, .badge-supeco {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 3px;
    font-weight: 700;
    font-size: 0.8rem;
    margin: 2px;
}

.badge-bim { background: #E30613; color: white; }
.badge-marjane-market { background: #FF6B00; color: white; }
.badge-marjane { background: #004B93; color: white; }
.badge-carrefour { background: #003876; color: white; }
.badge-kazyon { background: #F58220; color: white; }
.badge-supeco { background: #000000; color: white; }

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

.footer-social {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-top: 1rem;
}

.footer-social a {
    color: var(--accent-primary); /* Bright Yellow */
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.footer-social a i, .footer-social a svg {
    width: 28px;
    height: 28px;
    stroke-width: 2px;
}

.footer-social a:hover {
    color: #fff;
    transform: translateY(-5px);
}

.footer-links {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

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

/* Tablet & Desktop Overrides */
@media (min-width: 768px) {
    .container { padding: 2rem; }
    h1 { font-size: 3.5rem; }
    .description { font-size: 1.25rem; }
    
    .mission-grid { grid-template-columns: repeat(3, 1fr); }
    
    .product-card {
        flex-direction: row;
        padding: 3rem;
        gap: 3rem;
    }
    
    .product-card h2 { font-size: 2.5rem; }
    
    .visual-mockup { order: 2; flex: 1; }
    .card-content { flex: 1.4; }
    
    .browser-frame {
        max-width: 350px;
        transform: rotateY(-10deg) rotateX(2deg);
        transition: transform 0.4s ease;
    }
    
    .browser-frame:hover { transform: rotateY(0) rotateX(0) scale(1.02); }
    
    .service-row { grid-template-columns: repeat(3, 1fr); }
    .faq-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-links { flex-direction: row; justify-content: center; }
}
