:root {
    --primary: #f15a24;
    --primary-hover: #d14d1f;
    --secondary: #00101d; /* Midnight Navy from Software Mind */
    --accent: #f8f9fa;
    --bg-white: #ffffff;
    --bg-dark: #00101d;
    --text-main: #151515;
    --text-muted: #555555;
    --text-light: #ffffff;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s ease;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    --gradient: linear-gradient(135deg, #f15a24 0%, #8c24f1 100%); /* Orange to Purple gradient for cards */
}

.text-primary {
    color: var(--primary) !important;
}

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

body {
    background-color: var(--bg-white);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--secondary);
    line-height: 1.1;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1.1rem 2.8rem;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-outline:hover {
    background: white;
    color: var(--secondary);
}

/* Navbar */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
    background: white;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

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

.logo-img {
    height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--secondary);
}

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

.nav-links a.active {
    color: var(--primary) !important;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 2.2rem;
    color: var(--secondary);
    cursor: pointer;
    transition: var(--transition);
}

/* Nav CTA area */
.nav-cta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Language Switcher Dropdown */
.lang-switcher {
    position: relative;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 7px 12px;
    font-size: 0.85rem;
    font-weight: 700;
    font-family: var(--font-body);
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.lang-toggle:hover {
    background: var(--primary);
}

.lang-toggle ion-icon {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.lang-switcher.open .lang-toggle ion-icon {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    overflow: hidden;
    min-width: 155px;
    display: none;
    flex-direction: column;
    z-index: 9999;
    border: 1px solid rgba(0,0,0,0.06);
}

.lang-switcher.open .lang-dropdown {
    display: flex;
    animation: dropdownIn 0.2s ease;
}

@keyframes dropdownIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.lang-option {
    background: transparent;
    border: none;
    padding: 10px 16px;
    text-align: left;
    font-size: 0.88rem;
    font-weight: 600;
    font-family: var(--font-body);
    color: var(--secondary);
    cursor: pointer;
    transition: background 0.2s;
    letter-spacing: 0.3px;
}

.lang-option:hover {
    background: #f5f5f5;
    color: var(--primary);
}

.lang-option.active {
    color: var(--primary);
    background: rgba(241, 90, 36, 0.06);
}

/* Mobile lang inside drawer */
.mobile-lang .lang-toggle {
    background: rgba(0,16,29,0.08);
    color: var(--secondary);
    font-size: 0.8rem;
    padding: 5px 10px;
}

.mobile-lang .lang-toggle:hover {
    background: var(--primary);
    color: white;
}

.mobile-lang .lang-dropdown {
    left: 0;
    right: auto;
    top: calc(100% + 6px);
}

/* Mobile Menu Drawer */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: white;
    z-index: 2000;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.menu-close {
    background: transparent;
    border: none;
    font-size: 2.5rem;
    color: var(--secondary);
    cursor: pointer;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-nav-links li a {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary);
    display: block;
    padding: 0.5rem 0;
}

/* Hiring Badge (Modern Pill Shape) */
.hiring-badge {
    position: fixed;
    bottom: 30px;
    left: 40px;
    background: linear-gradient(135deg, #f15a24, #ff8c00);
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 700;
    z-index: 1000;
    box-shadow: 0 10px 25px rgba(241, 90, 36, 0.4);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: hiringPulse 2s infinite;
}

@keyframes hiringPulse {
    0% { transform: scale(1); box-shadow: 0 10px 25px rgba(241, 90, 36, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 15px 35px rgba(241, 90, 36, 0.6); }
    100% { transform: scale(1); box-shadow: 0 10px 25px rgba(241, 90, 36, 0.4); }
}

.hiring-badge:hover {
    transform: translateY(-8px) scale(1.1);
    background: #111;
    animation: none;
}

/* Hero Section */
#home {
    min-height: 100vh;
    padding: 120px 0;
    background: url('https://images.unsplash.com/photo-1573164713714-d95e436ab8d6?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    display: flex;
    align-items: center;
    position: relative;
    color: white;
}

#home::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 16, 29, 0.9) 0%, rgba(0, 16, 29, 0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 850px;
}

#home h1 {
    font-size: 5rem;
    margin-bottom: 2rem;
    color: white;
}

#home p {
    font-size: 1.4rem;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

/* Services Section */
section {
    padding: 120px 0;
}

.section-header {
    margin-bottom: 5rem;
}

.section-header span {
    color: var(--primary);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.section-header h2 {
    font-size: 3.5rem;
    margin-top: 1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background: white;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.card-top {
    padding: 3.5rem 3rem;
    background: white;
    flex: 1;
}

.card-top h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.card-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 2rem;
    border: 2px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 2rem;
    transition: var(--transition);
}

.card-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.service-card:hover .card-icon {
    transform: scale(1.1);
}

.card-bottom {
    padding: 3rem;
    background: var(--gradient);
    color: white;
    transform: translateY(100%);
    transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
    inset: 0;
    opacity: 0;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card:hover .card-bottom {
    transform: translateY(0);
    opacity: 1;
}

.service-card {
    position: relative;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.about-text span {
    color: var(--primary);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 1rem;
}

.about-text h2 {
    font-size: 3.5rem;
    margin-bottom: 2.5rem;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.about-image img {
    border-radius: 40px;
    box-shadow: 0 30px 60px rgba(0, 16, 29, 0.2), 0 0 40px rgba(0, 175, 244, 0.1);
    border: 1px solid rgba(0, 175, 244, 0.1);
}

.about-extra-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 900px;
}

.value-card {
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.12) !important;
}

.value-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
    color: var(--secondary);
}

.philosophy-extended {
    box-shadow: 0 20px 60px rgba(0, 16, 29, 0.3);
    position: relative;
    overflow: hidden;
}

.philosophy-extended::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(241, 90, 36, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

/* Portfolio Section */
.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    border: 1px solid rgba(0,0,0,0.1);
    background: transparent;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-muted);
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(241, 90, 36, 0.3);
}

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

.portfolio-item.hidden {
    display: none;
}

/* Careers Section */
.careers-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2.5rem;
    text-align: left;
    margin-top: 1rem;
}

.careers-box {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 40px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0,0,0,0.05);
}

.mobile-close-btn {
    display: none;
    align-items: center;
    gap: 8px;
    background: #f8f9fa;
    color: var(--secondary);
    border: 1px solid #eee;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 2rem;
    position: relative;
    z-index: 10;
    transition: var(--transition);
}

.mobile-close-btn:hover {
    background: #e9ecef;
}

.no-openings {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: #fff3f0;
    color: var(--primary);
    border-radius: 50px;
    font-weight: 600;
    margin-bottom: 2rem;
}

.portfolio-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 280px;
    background: #fdfdfd;
    border: 1px solid #eee;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    background: #fff;
    transition: var(--transition);
}

.portfolio-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0, 16, 29, 0.9) 0%, transparent 100%);
    color: white;
    z-index: 2;
}

.portfolio-info p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 0.3rem;
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.4s ease;
}

.portfolio-item:hover .portfolio-info p {
    transform: translateY(0);
    opacity: 1;
}

.portfolio-info h3 {
    color: white;
    font-size: 1.4rem;
    transition: all 0.4s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1);
    filter: brightness(0.6);
}

/* Contact Section (TechMind Style) */
#contact {
    background: #f8f9fa;
    padding: 100px 0;
}

.contact-card {
    background: white;
    max-width: 1100px;
    margin: 0 auto;
    border-radius: 40px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
    display: flex;
    overflow: hidden;
}

.contact-form-side {
    flex: 1.2;
    padding: 60px;
}

.contact-form-side h2 {
    font-size: 2.2rem;
    color: #444;
    margin-bottom: 40px;
    font-weight: 500;
}

.input-row {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.input-icon-box {
    width: 45px;
    height: 45px;
    background: #777;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px 0 0 4px;
    font-size: 1.2rem;
}

.form-input-field {
    flex: 1;
    border: 1px solid #ddd;
    border-left: none;
    padding: 12px 15px;
    border-radius: 0 4px 4px 0;
    outline: none;
    font-size: 1rem;
    color: #333;
    transition: var(--transition);
}

.form-input-field:focus {
    border-color: #28a745;
}

.textarea-row {
    align-items: flex-start;
}

.textarea-row .input-icon-box {
    height: 150px;
}

.textarea-row textarea {
    height: 150px;
    resize: none;
}

.btn-submit-tm {
    background: #28a745;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.btn-submit-tm:hover {
    background: #218838;
}

.corporate-side {
    flex: 0.8;
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url('https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&w=800&q=80') center/cover;
    padding: 60px;
    color: white;
    display: flex;
    flex-direction: column;
}

.corporate-side h3 {
    color: white;
    font-size: 2.2rem;
    margin-bottom: 40px;
    font-weight: 500;
}

.tm-info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.tm-info-icon {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #28a745;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.tm-info-text p {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.9);
    line-height: 1.5;
}

.tm-info-text strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 2px;
}

/* Branches Section styling */
.branches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.branch-card {
    background: white;
    padding: 2.5rem;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.03);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.branch-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.branch-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.branch-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--secondary);
}

.branch-contact {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.branch-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.branch-item ion-icon {
    font-size: 1.2rem;
    color: #28a745;
    margin-top: 3px;
}

.branch-item span {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Footer Section */
footer {
    background: var(--bg-dark);
    color: white;
    padding: 100px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 5rem;
    margin-bottom: 80px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    margin: 2rem 0;
}

.footer-links h4 {
    color: white;
    margin-bottom: 2.5rem;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links ul li {
    margin-bottom: 1.2rem;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.6);
}

.footer-links ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.social-links a:hover {
    background: var(--primary);
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}

/* Animations */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

.revealed {
    opacity: 1;
    transform: translate(0, 0);
}

/* Responsive */
@media (max-width: 1200px) {
    #home h1 { font-size: 3.5rem; }
    .container { max-width: 95%; }
}

@media (max-width: 992px) {
    .nav-links, .nav-cta .btn { display: none; }
    .menu-toggle { display: block; }

    .about-grid, .contact-grid-main { grid-template-columns: 1fr; gap: 4rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    
    .careers-grid { grid-template-columns: 1fr; gap: 2rem; }
    
    .careers-detail-col {
        display: none;
    }

    .careers-detail-col.active {
        display: block;
    }

    .careers-list-col.hidden {
        display: none !important;
    }

    .mobile-close-btn {
        display: inline-flex;
    }
}

@media (max-width: 768px) {
    .container { padding: 0 1rem; }
    .nav-links { display: none; }
    .hero-btns { flex-direction: column; }
    .section-header h2 { font-size: 2.5rem; }
    .contact-sub-grid { grid-template-columns: 1fr; }
    .contact-form-side, .corporate-side { padding: 30px; }
    .card-top { padding: 2rem; }
    #home h1 { font-size: 2.8rem; }
    .services-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
    .about-text h2 { font-size: 2.5rem; }
    .hiring-badge { padding: 12px 25px; font-size: 0.9rem; left: 20px; right: auto; bottom: 20px; }
}

@media (max-width: 480px) {
    #home h1 { font-size: 2.2rem; }
    .hero-btns .btn { width: 100%; text-align: center; padding: 1rem; }
    .section-header h2 { font-size: 2rem; }
}

/* RTL Support */
[dir="rtl"] {
    font-family: 'Inter', 'Noto Sans Arabic', sans-serif;
    text-align: right;
}

[dir="rtl"] .about-text, 
[dir="rtl"] .section-header,
[dir="rtl"] .careers-box,
[dir="rtl"] .contact-form-side {
    text-align: right;
}

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

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

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

[dir="rtl"] .mobile-menu {
    right: auto;
    left: -100%;
}

[dir="rtl"] .mobile-menu.active {
    left: 0;
    right: auto;
}

[dir="rtl"] .branch-tag {
    right: auto;
    left: 20px;
}

[dir="rtl"] .input-icon-box {
    border-radius: 0 4px 4px 0;
}

[dir="rtl"] .form-input-field {
    border-radius: 4px 0 0 4px;
    border-right: none;
    border-left: 1px solid #ddd;
}

[dir="rtl"] .hiring-badge {
    left: 40px;
    right: auto;
}

[dir="rtl"] .footer-grid {
    direction: rtl;
}

[dir="rtl"] .social-links {
    justify-content: flex-end;
}

[dir="rtl"] .corporate-side h3,
[dir="rtl"] .tm-info-text strong {
    text-align: right;
}

[dir="rtl"] .job-item {
    text-align: right;
    flex-direction: row-reverse;
}

[dir="rtl"] .job-arrow {
    transform: rotate(180deg);
}

[dir="rtl"] .mobile-close-btn ion-icon {
    transform: rotate(180deg);
}

[dir="rtl"] .about-image {
    order: 2;
}

[dir="rtl"] .about-text {
    order: 1;
}

@media (max-width: 992px) {
    [dir="rtl"] .about-image {
        order: 1;
    }
    [dir="rtl"] .about-text {
        order: 2;
    }
}

/* Chatbot Widget Styles */
.chatbot-container {
    position: fixed;
    bottom: 30px;
    right: 40px;
    z-index: 2100;
    font-family: var(--font-body);
}

.chatbot-toggle {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: var(--primary);
    border: none;
    color: white;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(241, 90, 36, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.chatbot-toggle:hover {
    transform: scale(1.1) rotate(5deg);
    background: var(--secondary);
}

.chat-notification {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff0000;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-5px);}
    60% {transform: translateY(-3px);}
}

.chatbot-window {
    position: absolute;
    bottom: 85px;
    right: 0;
    width: 380px;
    height: 550px;
    background: white;
    border-radius: 25px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.9);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: bottom right;
}

.chatbot-container.open .chatbot-window {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.chatbot-header {
    background: var(--secondary);
    padding: 20px 25px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chatbot-avatar {
    position: relative;
    width: 45px;
    height: 45px;
}

.chatbot-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: white;
    padding: 5px;
}

.status-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: #4cd137;
    border: 2px solid var(--secondary);
    border-radius: 50%;
}

.chatbot-header h4 {
    color: white;
    font-size: 1.1rem;
    margin: 0;
}

.chatbot-header p {
    font-size: 0.75rem;
    margin: 0;
    opacity: 0.8;
}

.chatbot-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.7;
    transition: 0.3s;
}

.chatbot-close:hover {
    opacity: 1;
}

.chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chat-message {
    max-width: 80%;
    animation: fadeInMsg 0.4s ease;
}

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

.chat-message.bot {
    align-self: flex-start;
}

.chat-message.user {
    align-self: flex-end;
}

.message-bubble {
    padding: 12px 18px;
    border-radius: 18px;
    font-size: 0.92rem;
    line-height: 1.4;
    position: relative;
}

.bot .message-bubble {
    background: white;
    color: var(--text-main);
    border-bottom-left-radius: 4px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.user .message-bubble {
    background: var(--primary);
    color: white;
    border-bottom-right-radius: 4px;
    box-shadow: 0 5px 15px rgba(241, 90, 36, 0.2);
}

.chatbot-input {
    padding: 15px 20px;
    background: white;
    display: flex;
    gap: 10px;
    border-top: 1px solid #eee;
}

.chatbot-input input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 0.95rem;
    font-family: var(--font-body);
}

.chatbot-input button {
    background: transparent;
    border: none;
    color: var(--primary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
}

.chatbot-input button:hover {
    transform: scale(1.1);
    color: var(--secondary);
}

/* RTL Support for Chatbot */
[dir="rtl"] .chatbot-container {
    right: auto;
    left: 40px;
}

[dir="rtl"] .hiring-badge {
    left: auto;
    right: 40px;
}

[dir="rtl"] .chatbot-window {
    right: auto;
    left: 0;
    transform-origin: bottom left;
}

[dir="rtl"] .chatbot-toggle .chat-notification {
    right: auto;
    left: -5px;
}

[dir="rtl"] .bot .message-bubble {
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 4px;
}

[dir="rtl"] .user .message-bubble {
    border-bottom-right-radius: 18px;
    border-bottom-left-radius: 4px;
}

[dir="rtl"] .chat-message.bot {
    align-self: flex-end;
}

[dir="rtl"] .chat-message.user {
    align-self: flex-start;
}

@media (max-width: 576px) {
    .chatbot-window {
        width: 320px;
        height: 480px;
        bottom: 75px;
    }
    
    .chatbot-container {
        bottom: 20px;
        right: 20px;
    }
    
    [dir="rtl"] .chatbot-container {
        left: 20px;
        right: auto;
    }
}

/* Contact Form Enhancements */
.alert-success-msg {
    background-color: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.alert-success-msg ion-icon {
    font-size: 1.5rem;
}

.error-msg {
    color: #dc3545;
    font-size: 0.85rem;
    display: block;
    margin-top: -15px;
    margin-bottom: 15px;
    margin-left: 45px;
}

.validation-summary {
    color: #dc3545;
    background: #f8d7da;
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    list-style: none;
}

.validation-summary ul {
    margin: 0;
    padding: 0;
}

/* --- Mobile Responsiveness Enhancements --- */
@media (max-width: 992px) {
    .nav-links {
        display: none !important;
    }

    .nav-cta {
        gap: 0.5rem;
    }

    .btn-primary {
        font-size: 0.8rem;
        padding: 8px 15px;
        display: none;
    }

    .menu-toggle {
        display: block !important;
        font-size: 2rem;
    }

    .logo-img {
        height: 40px;
    }
}

@media (max-width: 576px) {
    .nav-cta .btn-primary {
        display: none;
    }
    
    .logo-img {
        height: 35px;
    }
    
    .lang-toggle {
        padding: 5px 8px;
        font-size: 0.75rem;
    }
}

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

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

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

