body, html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    max-width: 100vw;
}

/* Corporate Grid Pattern for the Right Panel */
.corporate-grid {
    background-size: 60px 60px;
    background-image: 
        linear-gradient(to right, rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.05) 1px, transparent 1px);
}

/* Base Form Input Styling to avoid Safari issues */
input[type="email"] {
    appearance: none;
    -webkit-appearance: none;
    border-radius: 0;
}

/* Active Language Link Styling */
.lang-btn {
    background: transparent;
}
.lang-btn.active-lang {
    color: #0f172a; /* Navy */
}
.lang-btn.active-lang::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #0284c7; /* Brand Blue */
    border-radius: 2px;
}

.lang-btn-mob.active-lang {
    color: #0284c7;
    border-bottom: 2px solid #0284c7;
    padding-bottom: 2px;
}

/* Input Placeholder Color Fixes */
::placeholder {
    color: #94a3b8;
    opacity: 1; 
}
:-ms-input-placeholder {
    color: #94a3b8;
}
::-ms-input-placeholder {
    color: #94a3b8;
}

/* Font Assignments */
html[lang="en"], html[lang="tr"] {
    font-family: 'Outfit', sans-serif !important;
}

html[lang="ar"] {
    font-family: 'Cairo', sans-serif !important;
}

/* ---- RTL (Arabic) Specific Structure Adjustments ---- */
html[lang="ar"] {
    direction: rtl;
}

/* Mobile Alignment Fixes for Arabic */
@media (max-width: 767px) {
    html[lang="ar"] main {
        align-items: center; /* Center the container in the screen */
    }
    html[lang="ar"] .GSAP-left {
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    /* Keep mobile nav items visually aligned */
    html[lang="ar"] .md\:hidden {
        justify-content: flex-end;
    }
}

/* Animate subscribe arrow correctly in RTL */
html[lang="ar"] form button svg {
    transform: rotate(180deg);
}
html[lang="ar"] form button.group:hover svg {
    transform: rotate(180deg) translateX(-4px);
}

/* Typography Line Heights */
html[lang="ar"] h1 {
    line-height: 1.3;
}
html[lang="ar"] p {
    line-height: 1.6;
}

/* Remove tracking from Arabic text as it breaks cursive connection */
html[lang="ar"] .tracking-widest,
html[lang="ar"] .tracking-wider,
html[lang="ar"] .tracking-tight {
    letter-spacing: 0 !important;
}
