/* Base Styles & Custom Variables */
:root {
    --bg-color: #070614;
    --card-bg: rgba(18, 16, 35, 0.45);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: #a3a1cc;
    --accent-glow: rgba(99, 102, 241, 0.15);
    --font-ar: 'Cairo', sans-serif;
    --font-en: 'Outfit', sans-serif;
    
    /* Brand Gradients */
    --gold-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --whatsapp-gradient: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    --email-gradient: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    --btn-shadow-wa: rgba(37, 211, 102, 0.25);
    --btn-shadow-email: rgba(59, 130, 246, 0.25);
}

/* Base resets & behavior */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.2s ease, opacity 0.3s ease;
}

html, body {
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    background-color: var(--bg-color);
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Set dynamic font-family and direction direction rules */
html[dir="rtl"] {
    font-family: var(--font-ar);
}

html[dir="ltr"] {
    font-family: var(--font-en);
}

/* Background Glowing Blobs Animation */
.bg-animations {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    mix-blend-mode: screen;
    animation: floatBlob 25s infinite alternate ease-in-out;
}

.blob-1 {
    top: -10%;
    right: 10%;
    width: 45vw;
    height: 45vw;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.4) 0%, rgba(0, 0, 0, 0) 70%);
}

.blob-2 {
    bottom: -10%;
    left: 10%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.35) 0%, rgba(0, 0, 0, 0) 70%);
    animation-delay: -5s;
    animation-duration: 30s;
}

.blob-3 {
    top: 40%;
    left: 45%;
    width: 30vw;
    height: 30vw;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.3) 0%, rgba(0, 0, 0, 0) 70%);
    animation-delay: -10s;
    animation-duration: 20s;
}

@keyframes floatBlob {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(5%, 10%) scale(1.1);
    }
    100% {
        transform: translate(-5%, -5%) scale(0.95);
    }
}

/* Header & Language Switcher Styling */
.header {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.1rem;
    background: linear-gradient(to right, #ffffff, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
}

.lang-selector {
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.04);
    padding: 0.25rem;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lang-btn:hover {
    color: var(--text-primary);
}

.lang-btn.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Main Container & Glassmorphism Card styling */
.main-container {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 1.5rem;
    z-index: 5;
}

.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 32px;
    padding: 3.5rem 2.5rem;
    width: 100%;
    max-width: 620px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: cardAppear 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transform: translateY(20px);
    opacity: 0;
}

@keyframes cardAppear {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Status Badge (Launching Soon) */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 2rem;
    letter-spacing: 0.025em;
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.1);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #f59e0b;
    border-radius: 50%;
    display: inline-block;
    animation: pulse 1.8s infinite ease-in-out;
}

@keyframes pulse {
    0% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(245, 158, 11, 0);
    }
    100% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
    }
}

/* Title Styling */
.brand-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff 30%, #c7d2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(99, 102, 241, 0.15);
}

/* Description Text */
.description {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 400;
}

/* Divider styling */
.divider {
    height: 1px;
    width: 60px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    margin: 0 auto 1.75rem auto;
}

/* Call to Action description */
.call-to-action {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* Action Buttons Container & Individual Buttons */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.1rem 2rem;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Smooth active translations mapping class (fade out/in effect controlled by JS) */
.fade-out {
    opacity: 0;
    transform: scale(0.98);
}

.fade-in {
    opacity: 1;
    transform: scale(1);
}

/* Icon size inside buttons */
.btn .icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

/* Whatsapp Button Styles */
.btn-whatsapp {
    background: var(--whatsapp-gradient);
    box-shadow: 0 8px 20px var(--btn-shadow-wa);
}

.btn-whatsapp:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp:active {
    transform: translateY(-1px);
}

/* Email Button Styles */
.btn-email {
    background: var(--email-gradient);
    box-shadow: 0 8px 20px var(--btn-shadow-email);
}

.btn-email:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(59, 130, 246, 0.4);
}

.btn-email:active {
    transform: translateY(-1px);
}

/* Footer layout rules */
.footer {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(163, 161, 204, 0.5);
    z-index: 10;
}

/* Responsive adjustments */
@media (min-width: 640px) {
    .action-buttons {
        flex-direction: row;
    }
    
    .btn {
        flex: 1;
    }
    
    .glass-card {
        padding: 4.5rem 3.5rem;
    }
    
    .brand-title {
        font-size: 2.75rem;
    }
}

@media (max-width: 480px) {
    .glass-card {
        padding: 3rem 1.5rem;
        border-radius: 24px;
    }
    
    .brand-title {
        font-size: 2.1rem;
    }
    
    .logo-text {
        font-size: 1.1rem;
    }
    
    .lang-selector {
        padding: 0.2rem;
    }
    
    .lang-btn {
        padding: 0.4rem 0.85rem;
        font-size: 0.75rem;
    }
}
