/* 
  Modern Business Analysis Theme 
  Palette: Deep Royal Blue, Vibrant Cyan, Clean White, Slate Grey
*/

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #491a7c;
    /* Slate 900 */
    --accent-color: #3B82F6;
    /* Blue 500 */
    --accent-glow: #60A5FA;
    /* Blue 400 */
    --text-main: #1E293B;
    /* Slate 800 */
    --text-muted: #64748B;
    /* Slate 500 */
    --bg-body: #F8FAFC;
    /* Slate 50 */
    --bg-surface: #FFFFFF;
    --nav-height: 80px;
    --transition-speed: 0.3s;
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Cairo', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Utilities */
.primary_color {
    color: var(--primary-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-speed) ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent-color);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.39);
}

.btn-primary:hover {
    background: #2563EB;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.23);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 4rem auto;
    font-size: 1.1rem;
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color var(--transition-speed);
}

.nav-link:hover {
    color: var(--accent-color);
}

.hamburger {
    display: none;
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 2rem 0;
    display: flex;
    align-items: center;
    min-height: 80vh;
}

.hero-content {
    flex: 1;
    padding-right: 2rem;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, #3B82F6 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-visual {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Services */
.services {
    padding: 6rem 0;
    background: #fff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--bg-surface);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid #E2E8F0;
    transition: all var(--transition-speed);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-glow);
}

.card-icon {
    width: 50px;
    height: 50px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* About Section */
.about {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 16px;
}

.about-text {
    flex: 1;
}

/* Contact */
.contact {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #170F29 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Abstract background shapes */
.contact::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 60%);
    border-radius: 50%;
    pointer-events: none;
}

.contact::after {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 60%);
    border-radius: 50%;
    pointer-events: none;
}

.contact h2 {
    color: white;
    margin-bottom: 1.5rem;
}

.contact p {
    color: #94A3B8;
    margin-bottom: 2.5rem;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.contact-link {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    transition: all var(--transition-speed);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-link:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-5px);
}

.contact-link i {
    font-size: 1.5rem;
}

/* Footer */
footer {
    padding: 2rem 0;
    background: #020617;
    color: #475569;
    text-align: center;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background: white;
        padding: 2rem 0;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        text-align: center;
        z-index: 9999;
    }

    .nav-links.active {
        display: flex !important;
    }

    .hamburger {
        display: block;
        font-size: 1.5rem;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 4rem;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 3rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .about-container {
        flex-direction: column-reverse;
    }
}

/* Language Switcher */
.lang-btn {
    border: 1px solid var(--primary-color);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--primary-color) !important;
}

.lang-btn:hover {
    background: var(--primary-color);
    color: white !important;
}

/* RTL Support */
html[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .logo {
    flex-direction: row-reverse;
}

html[dir="rtl"] .hero-content {
    padding-right: 0;
    padding-left: 2rem;
}

/* html[dir="rtl"] .section-title,
html[dir="rtl"] .about-text .section-title {
    text-align: right;
} */

html[dir="rtl"] .input-group input {
    text-align: right;
}

html[dir="rtl"] .fa-check {
    margin-right: 0 !important;
    margin-left: 10px !important;
}

@media (max-width: 768px) {
    html[dir="rtl"] .hero-content {
        padding-left: 0;
    }
}

/* Small Screen Font Size Adjustments */
@media (max-width: 768px) {
    /* Base font size reduction */
    body {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    /* Container spacing */
    .container {
        padding: 0 1.25rem;
    }

    /* Section spacing */
    .services,
    .about,
    .contact {
        padding: 4rem 0;
    }

    .section-subtitle {
        margin: 0 auto 3rem auto;
    }

    /* Section titles */
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    /* Logo */
    .logo {
        font-size: 1.25rem;
        gap: 0.35rem;
    }

    /* Navigation */
    .nav-link {
        font-size: 0.85rem;
    }

    .nav-links {
        gap: 1.5rem;
        padding: 1.5rem 0;
    }

    /* Hero section */
    .hero {
        min-height: 70vh;
        padding: 1.5rem 0;
    }

    .hero h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-content {
        margin-bottom: 2rem;
    }

    /* Buttons */
    .btn {
        padding: 0.6rem 1.25rem;
        font-size: 0.85rem;
    }

    /* Services grid */
    .services-grid {
        gap: 1.5rem;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    /* Card content */
    .card {
        padding: 1.75rem;
    }

    .card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }

    .card p {
        font-size: 0.85rem;
    }

    .card-icon {
        font-size: 1.25rem;
        width: 45px;
        height: 45px;
        margin-bottom: 1rem;
    }

    /* About section */
    .about-container {
        gap: 2.5rem;
    }

    /* Contact section */
    .contact h2 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    .contact p {
        font-size: 0.9rem;
        margin-bottom: 2rem;
    }

    .contact-info {
        gap: 1.25rem;
        margin-top: 1.5rem;
    }

    .contact-link {
        font-size: 0.95rem;
        padding: 0.85rem 1.25rem;
        gap: 0.5rem;
    }

    .contact-link i {
        font-size: 1.25rem;
    }

    /* Footer */
    footer {
        font-size: 0.8rem;
        padding: 1.5rem 0;
    }

    /* Language button */
    .lang-btn {
        font-size: 0.75rem;
        padding: 0.35rem 0.85rem;
    }
}

/* Extra small screens (mobile phones in portrait) */
@media (max-width: 480px) {
    body {
        font-size: 0.85rem;
    }

    /* Container spacing */
    .container {
        padding: 0 1rem;
    }

    /* Section spacing */
    .services,
    .about,
    .contact {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .section-subtitle {
        font-size: 0.85rem;
        margin: 0 auto 2rem auto;
    }

    .logo {
        font-size: 1.1rem;
        gap: 0.25rem;
    }

    /* Hero section */
    .hero {
        min-height: 60vh;
        padding: 1rem 0;
    }

    .hero h1 {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }

    .hero p {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
    }

    .hero-content {
        margin-bottom: 1.5rem;
    }

    /* Services grid */
    .services-grid {
        gap: 1.25rem;
    }

    /* Card spacing */
    .card {
        padding: 1.5rem;
    }

    .card h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .card p {
        font-size: 0.8rem;
    }

    .card-icon {
        margin-bottom: 0.75rem;
    }

    /* About section */
    .about-container {
        gap: 2rem;
    }

    /* Contact section */
    .contact h2 {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .contact p {
        margin-bottom: 1.5rem;
    }

    .contact-info {
        gap: 1rem;
        margin-top: 1.25rem;
    }

    .contact-link {
        font-size: 0.85rem;
        padding: 0.75rem 1rem;
        gap: 0.4rem;
    }

    /* Footer */
    footer {
        padding: 1.25rem 0;
    }
}