:root {
    --primary-color: #0066cc;
    --secondary-color: #00a8cc;
    --accent-color: #f8fafc;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --gradient: linear-gradient(135deg, #0066cc 0%, #00a8cc 100%);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --header-height: 60px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    min-height: 100vh;
    min-height: -webkit-fill-available;
}

/* Arabic and Turkish font support */
body[data-lang="ar"] {
    font-family: 'Cairo', sans-serif;
    direction: rtl;
}

body[data-lang="tr"] {
    font-family: 'Inter', sans-serif;
}

body[data-lang="en"] {
    font-family: 'Inter', sans-serif;
}

/* Language Selector */
.language-selector {
    position: relative;
}

.language-dropdown {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-dropdown:hover {
    border-color: var(--primary-color);
}

.language-options {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    min-width: 120px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.language-options.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.language-option:hover {
    background: var(--accent-color);
}

.language-option.active {
    background: var(--primary-color);
    color: white;
}

.flag-icon {
    width: 20px;
    height: 15px;
    border-radius: 2px;
}

/* RTL adjustments */
body[data-lang="ar"] .navbar-nav {
    margin-right: auto !important;
    margin-left: 0 !important;
}

body[data-lang="ar"] .hero-buttons .btn:first-child {
    margin-left: 1rem;
    margin-right: 0;
}

body[data-lang="ar"] .d-flex .me-3 {
    margin-right: 0 !important;
    margin-left: 1rem !important;
}

/* Animation Classes */
.animate-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease-out;
}

.animate-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease-out;
}

.animate-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.animate-left.show,
.animate-right.show,
.animate-up.show {
    opacity: 1;
    transform: translate(0);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    text-decoration: none;
}

.menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background: #333;
    margin: 5px 0;
    transition: 0.3s;
}

.mobile-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.mobile-menu a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.demo-btn {
    background: #007bff;
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

/* Mobile Styles */
@media (max-width: 991px) {
    .menu-btn {
        display: block;
    }

    .mobile-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 20px 20px;
        transition: 0.3s ease-in-out;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

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

    .mobile-menu a {
        color: var(--text-dark);
        text-decoration: none;
        font-size: 1.1rem;
        padding: 10px 0;
        width: 100%;
        border-bottom: 1px solid #eee;
    }

    .mobile-menu a:last-child {
        border-bottom: none;
    }

    .mobile-menu .demo-btn {
        margin-top: 20px;
        width: 100%;
        text-align: center;
        padding: 12px;
        background: var(--primary-color);
        color: white;
        border-radius: 8px;
    }

    /* RTL support */
    body[data-lang="ar"] .mobile-menu {
        right: auto;
        left: -100%;
    }

    body[data-lang="ar"] .mobile-menu.show {
        right: auto;
        left: 0;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('path-to-your-background-image.jpg');
    background-size: cover;
    background-position: center;
    padding: 120px 0;
    position: relative;
}

.hero h1, .hero p {
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
}

.hero h1.show, .hero p.show {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

.typing-text {
    border-right: 2px solid #fff;
    white-space: pre-wrap;
    overflow: hidden;
    width: 0;
    max-width: 100%;
    animation: typing 1s steps(40, end) forwards;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    from { border-right-color: transparent; }
    to { border-right-color: #fff; }
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 2rem;
    line-height: 1.6;
    opacity: 0.9;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-image {
    position: relative;
    z-index: 2;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.hero-image:hover img {
    transform: scale(1.02);
}

.btn-primary {
    background: white;
    color: var(--primary-color);
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    background: white;
    color: var(--primary-color);
}

.btn-outline-light {
    border: 2px solid white;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Section Styling */
.section {
    padding: 5rem 0;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.section.gradient-bg {
    background: var(--gradient);
    color: white;
}

.section.gradient-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    z-index: -1;
}

.section.gradient-bg .section-title,
.section.gradient-bg .section-subtitle,
.section.gradient-bg p {
    color: white;
}

.section.gradient-bg .section-subtitle,
.section.gradient-bg p {
    opacity: 0.9;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* What Is Section */
.what-is {
    background: var(--gradient);
    color: white;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.what-is::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    z-index: -1;
}

.what-is .section-title {
    color: white;
}

.what-is .lead,
.what-is p {
    color: rgba(255, 255, 255, 0.9);
}

.platform-visual {
    background: var(--gradient);
    border-radius: 20px;
    padding: 3rem;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.platform-visual::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    animation: float 20s linear infinite;
}

@keyframes float {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Problem Section */
.problem-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--primary-color);
    transition: transform 0.3s ease;
    height: 100%;
}

.problem-card:hover {
    transform: translateY(-5px);
}

.problem-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* How It Works */
.how-it-works {
    background: var(--gradient);
    color: white;
}

.step-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
}

.step-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
    margin: 0 auto 1rem;
}

.step-card h5,
.step-card p {
    color: white;
}

/* Features Section */
.feature-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 2rem;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin: 0 auto 1rem;
}

/* Who Can Use */
.who-can-use {
    background: var(--gradient);
    color: white;
}

.who-can-use .industry-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 2rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    text-align: center;
}

.who-can-use .industry-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.who-can-use .industry-card h5 {
    color: var(--text-dark);
    margin: 1rem 0;
    font-weight: 600;
}

.who-can-use .industry-card p {
    color: var(--text-light);
    margin-bottom: 0;
}

.who-can-use .industry-icon {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Use Case */
.use-case-step {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--primary-color);
}

.use-case-step:nth-child(even) {
    border-left-color: var(--secondary-color);
}

/* CTA Section */
.cta {
    background: var(--gradient);
    color: white;
    text-align: center;
}

.cta-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Footer */
footer {
    background: #1e293b;
    color: white;
    padding: 3rem 0 2rem;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section {
        padding: 3rem 0;
    }

    .language-options {
        right: auto;
        left: 0;
    }
}

/* Pulse Animation */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Language Selector */
.language-selector .dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.5rem 1rem;
    border: none;
    background: transparent;
    color: inherit;
    text-decoration: none !important;
}

.language-selector .dropdown-toggle:hover,
.language-selector .dropdown-toggle:focus {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.language-selector .current-lang {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.language-selector .dropdown-menu {
    min-width: 120px;
    padding: 0.5rem 0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.language-selector .dropdown-item {
    color: #333 !important;
    text-decoration: none !important;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.language-selector .dropdown-item:hover {
    background-color: #f8f9fa;
}

.language-selector .dropdown-item.active {
    background-color: #e9ecef;
    font-weight: bold;
}

/* Mobile Navigation Styles */
@media (max-width: 991.98px) {
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 1rem;
        margin: 0 1rem;
        border-radius: 12px;
        box-shadow: var(--card-shadow);
        max-height: calc(100vh - var(--header-height) - 2rem);
        overflow-y: auto;
    }

    .navbar-nav {
        padding: 0;
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        border-radius: 8px;
        margin: 0.25rem 0;
    }

    .navbar-nav .nav-item:last-child {
        margin-top: 0.5rem;
    }

    .navbar-toggler {
        padding: 0.5rem;
        border: none;
        margin-inline-start: 0.5rem;
    }

    .language-selector {
        margin-inline-end: 0.5rem;
    }

    .language-selector .btn {
        padding: 0.5rem;
        height: auto;
        min-height: unset;
        border: none;
        color: var(--text-dark);
    }

    .dropdown-menu {
        min-width: 120px;
        margin-top: 0.5rem;
        padding: 0.5rem;
        border: none;
        box-shadow: var(--card-shadow);
    }

    .dropdown-item {
        padding: 0.5rem;
        border-radius: 6px;
    }
}

/* Mobile Hero Section */
@media (max-width: 767.98px) {
    .hero .container {
        padding: 0 1rem;
    }

    .hero-content {
        text-align: center;
        padding: 2rem 0;
    }

    .hero h1 {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    .hero .lead {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        padding: 0;
    }

    .hero-buttons .btn {
        width: 100%;
        margin: 0 !important;
    }

    .hero-image {
        margin: 2rem -1rem 0;
        padding: 0 1rem;
    }

    .hero-image img {
        width: 100%;
        height: auto;
        border-radius: 20px;
        box-shadow: var(--card-shadow);
    }
}

/* Mobile Cards and Sections */
@media (max-width: 767.98px) {
    .section {
        padding: 3rem 0;
    }

    .section .container {
        padding: 0 1rem;
    }

    .section-title {
        font-size: 1.75rem;
        text-align: center;
        margin-bottom: 1rem;
    }

    .section-subtitle {
        font-size: 1rem;
        text-align: center;
        margin-bottom: 2rem;
    }

    .card {
        margin: 0 0 1rem 0;
        border-radius: 16px;
    }

    .card-body {
        padding: 1.25rem;
    }

    .feature-card,
    .problem-card,
    .step-card,
    .industry-card {
        height: auto;
        margin-bottom: 1rem;
    }
}

/* Swiper Styles */
.swiper-container {
    padding: 2rem 1rem;
    overflow: hidden;
}

.swiper-slide {
    width: 80%;
    height: auto;
}

.swiper-pagination {
    position: relative;
    margin-top: 1rem;
}

.swiper-pagination-bullet {
    background: var(--primary-color);
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    opacity: 1;
}

/* Touch-friendly Buttons */
.btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
}

/* Mobile Form Styles */
@media (max-width: 767.98px) {
    .form-control {
        font-size: 16px; /* Prevents iOS zoom on focus */
    }

    .input-group {
        flex-direction: column;
    }

    .input-group > .form-control {
        border-radius: 8px !important;
        margin-bottom: 0.5rem;
    }

    .input-group > .btn {
        border-radius: 8px !important;
        width: 100%;
    }
}

/* Mobile Footer */
@media (max-width: 767.98px) {
    .footer {
        padding: 2rem 1rem;
        text-align: center;
    }

    .footer .row > div {
        margin-bottom: 2rem;
    }

    .footer .row > div:last-child {
        margin-bottom: 0;
    }

    .footer-links {
        margin: 1rem 0;
    }

    .social-icons {
        justify-content: center;
        margin-top: 1rem;
    }
}

/* RTL Mobile Adjustments */
@media (max-width: 991.98px) {
    [dir="rtl"] .navbar-toggler {
        margin-right: 0.5rem;
        margin-left: 0;
    }

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

    [dir="rtl"] .navbar-nav {
        padding-right: 0;
    }
}

/* Demo Request Page */
.demo-request-section {
    padding-top: 120px;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    display: flex;
    align-items: center;
}

.demo-form-card {
    background: white;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.demo-form-card h2 {
    color: var(--primary-color);
    font-weight: 600;
}

.demo-form .form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.demo-form .form-control {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.demo-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-rgb), 0.25);
}

.demo-form .btn-primary {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    position: relative;
}

.demo-form .spinner-border {
    width: 1.5rem;
    height: 1.5rem;
}

/* RTL Support for Demo Form */
[dir="rtl"] .demo-form-card {
    text-align: right;
}

[dir="rtl"] .demo-form .form-label {
    text-align: right;
}

/* Mobile Responsiveness for Demo Form */
@media (max-width: 991.98px) {
    .demo-form-card {
        padding: 2rem;
        margin: 1rem;
    }
}

@media (max-width: 767.98px) {
    .demo-form-card {
        padding: 1.5rem;
    }
}

/* Problems Section */
.problems-section .problem-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 2rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.problems-section .problem-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.problems-section .problem-icon {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.problems-section .problem-card h5 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.problems-section .problem-card p {
    color: var(--text-light);
}

/* Industry Cards */
.section.gradient-bg .industry-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    text-align: center;
}

.section.gradient-bg .industry-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.section.gradient-bg .industry-card h6 {
    color: var(--text-dark);
    margin: 1rem 0 0;
    font-weight: 600;
}

.section.gradient-bg .industry-card .industry-icon {
    color: var(--primary-color);
    font-size: 2rem;
}

.section.gradient-bg .industry-card .industry-icon i {
    color: var(--primary-color);
}

.footer-links .btn-link:hover {
    color: var(--primary-color);
}

/* Mobile-First Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    min-height: 100vh;
    min-height: -webkit-fill-available;
}

[dir="rtl"] body {
    font-family: 'Cairo', sans-serif;
}

/* Mobile Header */
.navbar {
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
}

.navbar .container {
    padding: 0;
}

.navbar-brand {
    font-size: 1.25rem;
    font-weight: 600;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
}

.navbar-brand i {
    margin-inline-end: 0.5rem;
}

/* Mobile Hero Section */
.hero {
    padding-top: calc(var(--header-height) + 2rem);
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
    position: relative;
    background: var(--gradient);
}

@media (max-width: 767.98px) {
    .hero .container {
        padding: 0 1rem;
    }

    .hero-content {
        text-align: center;
        padding: 2rem 0;
    }

    .hero h1 {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    .hero .lead {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        padding: 0;
    }

    .hero-buttons .btn {
        width: 100%;
        margin: 0 !important;
    }

    .hero-image {
        margin: 2rem -1rem 0;
        padding: 0 1rem;
    }

    .hero-image img {
        width: 100%;
        height: auto;
        border-radius: 20px;
        box-shadow: var(--card-shadow);
    }
}

/* Mobile Sections */
.section {
    padding: 3rem 0;
    overflow: hidden;
    width: 100%;
}

@media (max-width: 767.98px) {
    .section .container {
        padding: 0 1rem;
    }

    .section-title {
        font-size: 1.75rem;
        text-align: center;
        margin-bottom: 1rem;
    }

    .section-subtitle {
        font-size: 1rem;
        text-align: center;
        margin-bottom: 2rem;
    }
}

/* Mobile Cards */
@media (max-width: 767.98px) {
    .card {
        margin: 0 0 1rem 0;
        border-radius: 16px;
    }

    .card-body {
        padding: 1.25rem;
    }
}

/* Mobile Forms */
@media (max-width: 767.98px) {
    .form-control {
        font-size: 16px; /* Prevents iOS zoom on focus */
    }

    .input-group {
        flex-direction: column;
    }

    .input-group > .form-control {
        border-radius: 8px !important;
        margin-bottom: 0.5rem;
    }

    .input-group > .btn {
        border-radius: 8px !important;
        width: 100%;
    }
}

/* Mobile Footer */
@media (max-width: 767.98px) {
    .footer {
        padding: 2rem 1rem;
        text-align: center;
    }

    .footer .row > div {
        margin-bottom: 2rem;
    }

    .footer .row > div:last-child {
        margin-bottom: 0;
    }

    .footer-links {
        margin: 1rem 0;
    }

    .social-icons {
        justify-content: center;
        margin-top: 1rem;
    }
}

/* RTL Mobile Adjustments */
@media (max-width: 991.98px) {
    [dir="rtl"] .navbar-toggler {
        margin-right: 0.5rem;
        margin-left: 0;
    }

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

    [dir="rtl"] .navbar-nav {
        padding-right: 0;
    }
}

/* Fix for iOS Safari 100vh issue */
@supports (-webkit-touch-callout: none) {
    .hero, .section {
        min-height: -webkit-fill-available;
    }
}

.navbar-collapse {
    transition: all 0.3s ease-in-out;
}

@media (max-width: 991px) {
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 1rem;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    .navbar-collapse:not(.show) {
        display: none;
    }

    .nav-link {
        padding: 0.75rem 1rem;
        border-radius: 4px;
    }

    .nav-link:hover {
        background-color: rgba(0,0,0,0.05);
    }
}

/* Navigation Styles */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.nav-brand a {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    text-decoration: none;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #333;
    margin: 5px 0;
    transition: 0.3s;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #007bff;
}

.nav-cta {
    background: #007bff;
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s !important;
}

.nav-cta:hover {
    background: #0056b3;
    color: white !important;
}

/* Mobile Menu */
@media (max-width: 991px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        transform: translateY(-150%);
        transition: transform 0.3s ease-in-out;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    /* Hamburger Animation */
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
}

.custom-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
}

.custom-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    color: #333;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: #333;
    margin: 5px 0;
    transition: 0.3s;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #333;
}

.demo-btn {
    background: #007bff;
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

@media (max-width: 991px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 1rem;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links.show {
        display: flex;
    }
}

.menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
} 