/* Reset and base styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Light Mode (Default) */
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: white;
    font-family: 'Saira', sans-serif;
    color: #1a1a1a;
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Dark Mode Styles */
body.dark-mode {
    background-color: black;
    color: #fff;
}

.bg-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    object-fit: cover;
    filter: blur(1px) brightness(0.4);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style-type: none;
}

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

/* Header and Navigation */
header {
    padding: 1rem 2rem;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgb(229, 229, 229);
    backdrop-filter: blur(10px);
    transition: background-color 0.3s ease;
}

/* body.dark-mode header {
    background-color: rgb(229, 229, 229);
} */

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1150px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo img {
    height: 45px;
    width: auto;
}

.nav-links {
    display: flex;
}

.nav-links li a {
    color: black;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
}

/* body.dark-mode .nav-links li a {
    color: black;
} */

.nav-links li a:hover,
.nav-links li a.active {
    color: #991919;
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.menu-toggle span {
    background-color: #1a1a1a;
    height: 3px;
    width: 25px;
    border-radius: 3px;
    transition: all 0.3s ease;
}

body.dark-mode .menu-toggle span {
    background-color: black;
}

/* Theme Toggle Button */
.theme-toggle-wrapper {
    display: flex;
    align-items: center;
    margin-left: 1rem;
}

.theme-toggle {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.dark-mode .theme-toggle {
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.theme-toggle:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

body.dark-mode .theme-toggle:hover {
    background: rgba(0, 0, 0, 0.15);
}

.theme-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 12% 0 2rem;
    overflow: hidden;
}

.devices {
    position: absolute;
    display: flex;
    gap: 1rem;
    z-index: 3;
}

.devices-left {
    position: absolute;
    top: 20%;
    transform: translateY(-50%);
    display: flex;
    gap: 1rem;
    z-index: 3;
}

[dir="ltr"] .devices {
    left: 30%;
    right: auto;
}

[dir="rtl"] .devices {
    right: 30%;
    left: auto;
}

.device-item {
    --skew: -15deg;
    position: relative;
    width: 70px;
    height: 100px;
    transform: skew(var(--skew));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--bg);
}

.device-item::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--bg-img) no-repeat center center / contain;
    transform-origin: center center;
    transform: skew(calc(-1 * var(--skew)));
}

.device-item img {
    display: none;
}

.device-item span {
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%) skew(calc(-1 * var(--skew)));
    font-size: 0.7rem;
    font-weight: 600;
    color: #000000;
    white-space: nowrap;
}

.rotating-ball {
    position: absolute;
    right: -300px;
    top: 55%;
    transform: translateY(-50%);
    width: 600px;
    height: 600px;
    z-index: 1;
    animation: continuousRotate 20s linear infinite;
}

[dir="rtl"] .rotating-ball {
    right: auto;
    left: -300px;
}

.rotating-ball img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

@keyframes continuousRotate {
    from {
        transform: translateY(-50%) rotate(0deg);
    }
    to {
        transform: translateY(-50%) rotate(360deg);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.hero-left {
    flex: 1 1 70px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pos-system {
    max-width: 400px;
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

[dir="rtl"] .pos-system {
    transform: scaleX(-1);
}

.pos-system:hover {
    transform: perspective(1000px) rotateY(10deg) scale(1.05);
}

[dir="rtl"] .pos-system:hover {
    transform: scaleX(-1) perspective(1000px) rotateY(10deg) scale(1.05);
}

.pos-system img {
    width: 100%;
    height: auto;
    max-width: 100%;
}

.hero-right {
    flex: 1 1 400px;
    margin-top: 70px;
    padding: 20px;
    background-color: rgba(240, 240, 240, 0.9);
    border-radius: 20px;
    transition: background-color 0.3s ease;
}

body.dark-mode .hero-right {
    background-color: rgba(0, 0, 0, 0.5);
}

.hero-right h1 {
    font-size: clamp(2rem, 3vw, 3.5rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    background: linear-gradient(45deg, #32ac85, #49ac8c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.highlight {
    font-size: clamp(2rem, 1vw, 1.5rem);
    font-weight: 500;
    margin-bottom: 2rem;
    line-height: 1.1;
    background: #1a1a1a;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.dark-mode .highlight {
    background: white;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-right p {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    opacity: 1;
    font-weight: 400;
    color: #333;
}

body.dark-mode .hero-right p {
    color: #fff;
}

.btn-red {
    background: linear-gradient(45deg, #e71d36, #ff1744);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 8px 25px rgba(231, 29, 54, 0.4);
    position: relative;
    overflow: hidden;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.btn-red:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(231, 29, 54, 0.6);
}

.btn-red::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-red:hover::before {
    left: 100%;
}

/* Features section */
.features {
    padding: 4rem 2rem;
    position: relative;
    overflow: visible;
    background-color: #f8f9fa;
}

body.dark-mode .features {
    background-color: transparent;
}

.features-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.features-left,
.features-right {
    flex: 1 1 400px;
}

.features-left h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 2rem;
    color: #32ac85;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

body.dark-mode .features-left h2 {
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.features-left .features-list {
    max-width: 700px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
    list-style: none;
    padding: 0;
    color: #333;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    line-height: 1.6;
}

body.dark-mode .features-left .features-list {
    color: #fff;
}

.features-left .features-list li {
    padding: 1rem;
    background: rgba(50, 172, 133, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(5px);
    border-left: 4px solid #32ac85;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
    padding-left: 1rem;
    position: relative;
}

body.dark-mode .features-left .features-list li {
    background: rgba(255,255,255,0.1);
}

.features-list li:hover {
    background: rgba(50, 172, 133, 0.15);
    transform: translateX(10px);
}

body.dark-mode .features-list li:hover {
    background: rgba(255,255,255,0.15);
}

.features-left .features-list li::before {
    content: "•";
    color: #ffcc00;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.features-right .features-img {
    width: 100%;
    max-width: 550px;
    display: block;
    margin: 0 auto;
}

/* Trusted section */
.trusted {
    padding: 4rem 2rem;
    position: relative;
}

.trusted-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.trusted-left {
    flex: 1 1 400px;
    display: flex;
    justify-content: center;
}

.handshake-img {
    max-width: 450px;
    border-radius: 20px;
    /* box-shadow: 0 20px 60px rgba(0,0,0,0.2); */
    width: 100%;
}

/* body.dark-mode .handshake-img {
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
} */

.trusted-right {
    flex: 1 1 500px;
}

.trusted-right h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 2rem;
    line-height: 1.2;
    color: #32ac85;
}

.subtitle {
    color: #666;
    font-size: clamp(1.5rem, 3vw, 2rem);
}

body.dark-mode .subtitle {
    color: #ffffff;
}

.trusted-highlight {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    margin-bottom: 2.5rem;
    color: #333;
}

body.dark-mode .trusted-highlight {
    color: #ffffff;
}

.testimonials {
    margin-bottom: 2.5rem;
}

.testimonial {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(50, 172, 133, 0.05);
    border-radius: 15px;
    border-left: 5px solid #32ac85;
    backdrop-filter: blur(5px);
    position: relative;
}

body.dark-mode .testimonial {
    background: rgba(255,255,255,0.1);
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: #32ac85;
    opacity: 0.5;
}

.testimonial p {
    font-style: italic;
    font-size: clamp(1rem, 2vw, 1.1rem);
    line-height: 1.6;
    color: #333;
    margin-bottom: 1rem;
}

body.dark-mode .testimonial p {
    color: #ffffff;
}

.testimonial cite {
    display: block;
    font-weight: 600;
    color: #666;
    font-style: normal;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

body.dark-mode .testimonial cite {
    color: #ffffff;
}

/* Video Section */
.video-section {
    padding: 4rem 2rem;
    background: #1a1a1a;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* body.dark-mode .video-section {
    background: #1a1a1a;
} */

.video-section h2 {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 3rem;
    background: linear-gradient(45deg, #32ac85, #32ac85);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(50, 172, 133, 0.2);
}

body.dark-mode .video-section h2 {
    text-shadow: 0 0 30px #32ac85;
}

.video-container {
    position: relative;
    max-width: 800px;
    width: 100%;
}

.video-thumbnail {
    position: relative;
    cursor: pointer;
    border-radius: 20px;
    overflow: hidden;
}

.video-bg {
    width: 100%;
    height: clamp(250px, 50vw, 450px);
    object-fit: contain;
    transition: transform 0.3s ease;
}

.video-thumbnail:hover .video-bg {
    transform: scale(1.05);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    width: clamp(60px, 10vw, 80px);
    height: clamp(60px, 10vw, 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.play-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.play-button img {
    width: 100%;
    height: 100%;
}

#video-iframe {
    width: 100%;
    height: clamp(250px, 50vw, 450px);
    border-radius: 20px;
}

/* Pricing section */
.pricing {
    padding: 4rem 2rem;
    position: relative;
}

.pricing-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.pricing h2 {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 3rem;
    background: linear-gradient(45deg, #32ac85, #32ac85);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(50, 172, 133, 0.2);
}

body.dark-mode .pricing h2 {
    text-shadow: 0 0 30px #32ac85;
}

.pricing-table {
    background: rgba(0,0,0,0.02);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0,0,0,0.1);
    overflow-x: auto;
}

body.dark-mode .pricing-table {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
}

.pricing table {
    width: 100%;
    border-collapse: collapse;
    min-width: 500px;
}

.pricing th, .pricing td {
    padding: clamp(1rem, 3vw, 2rem);
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

body.dark-mode .pricing th,
body.dark-mode .pricing td {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.pricing th {
    background: linear-gradient(45deg, #32ac85, #75d5b6);
    color: white;
    font-weight: 700;
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pricing td {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    line-height: 1.6;
    color: #333;
}

body.dark-mode .pricing td {
    color: #fff;
}

.pricing td strong {
    color: #32ac85;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
}

.offer {
    color: #00ff88;
    font-weight: 700;
    background: rgba(0,255,136,0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
}

/* FAQ section */
.faq {
    padding: 4rem 2rem;
    background: #f8f9fa;
}

body.dark-mode .faq {
    background: transparent;
}

.faq-container {
    max-width: 1200px;
    margin: 0 auto;
}

.faq h2 {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 4rem;
    color: #32ac85;
}

.faq-content {
    display: flex;
    align-items: flex-start;
    gap: 4rem;
    flex-wrap: wrap;
}

.faq-left {
    flex: 1 1 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.faq-balls {
    max-width: 350px;
    width: 100%;
    opacity: 0.8;
    filter: drop-shadow(0 10px 30px rgba(50, 172, 133, 0.3));
}

.faq-right {
    flex: 2 1 500px;
}

.faq-item {
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: rgba(50, 172, 133, 0.05);
    border-radius: 15px;
    border-left: 5px solid #32ac85;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

body.dark-mode .faq-item {
    background: rgba(255,255,255,0.1);
}

.faq-item:hover {
    background: rgba(50, 172, 133, 0.1);
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

body.dark-mode .faq-item:hover {
    background: rgba(255,255,255,0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.faq-item h3 {
    color: #32ac85;
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.faq-item p {
    font-size: clamp(1rem, 2vw, 1.1rem);
    line-height: 1.6;
    color: #666;
}

body.dark-mode .faq-item p {
    color: #e0e0e0;
}

/* CTA Section */
.cta {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #32ac85 0%, #75d5b6 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

body.dark-mode .cta {
    background: linear-gradient(135deg, #1a5a44 0%, #32ac85 100%);
}

.cta-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.cta h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 2rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.cta p {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.region-text {
    font-size: clamp(1rem, 2vw, 1.1rem);
    color: #333;
}

body.dark-mode .region-text {
    color: #333;
}

.arabic-text {
    display: block;
    margin-top: 0.5rem;
    font-size: clamp(0.9rem, 2vw, 1rem);
    opacity: 0.8;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.contact-btn {
    display: inline-block;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.2);
    padding: 1rem;
    border-radius: 50%;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.3);
}

body.dark-mode .contact-btn {
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.2);
}

.contact-btn:hover {
    transform: translateY(-10px) scale(1.1);
    background: rgba(255,255,255,0.3);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

body.dark-mode .contact-btn:hover {
    background: rgba(255,255,255,0.2);
}

.contact-btn img {
    width: clamp(50px, 8vw, 60px);
    height: clamp(50px, 8vw, 60px);
}

/* Footer */
footer {
    background-color: rgb(229, 229, 229);
    color: black;
    padding: 0.5rem 0;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* body.dark-mode footer {
    background-color: rgb(229, 229, 229);
    color: black;
} */

.footer-content {
    margin: 0 auto;
    text-align: center;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.social-icons a {
    display: inline-block;
    transition: all 0.3s ease;
    background: rgba(0,0,0,0.05);
    padding: 1rem;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.1);
}

body.dark-mode .social-icons a {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
}

.social-icons a:hover {
    transform: translateY(-5px) scale(1.1);
    background: rgba(50, 172, 133, 0.2);
    border-color: #32ac85;
}

body.dark-mode .social-icons a:hover {
    background: rgba(0,168,255,0.2);
    border-color: #00a8ff;
}

.social-icons a img {
    width: clamp(40px, 6vw, 50px);
    height: clamp(40px, 6vw, 50px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-in {
    animation: fadeInUp 0.8s ease forwards;
}

/* Language Switcher Styles */
.language-switcher {
    position: relative;
    z-index: 1000;
}

.lang-dropdown {
    position: relative;
    display: inline-block;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    color: #333;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    min-width: 80px;
}

body.dark-mode .lang-toggle {
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.2);
    color: black;
}

.lang-toggle:hover {
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

body.dark-mode .lang-toggle:hover {
    background: rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 0, 0, 0.3);
}

.current-lang {
    display: flex;
    align-items: center;
    gap: 6px;
}

.flag-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.lang-option:hover .flag-icon,
.lang-toggle:hover .flag-icon {
    transform: scale(1.05);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.lang-text {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.dropdown-arrow {
    transition: transform 0.3s ease;
    opacity: 0.7;
}

.lang-toggle.active .dropdown-arrow {
    transform: rotate(180deg);
}

.lang-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    min-width: 140px;
    overflow: hidden;
}

body.dark-mode .lang-dropdown-menu {
    background: #1f2937;
    border: 1px solid #374151;
}

.lang-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f3f4f6;
}

body.dark-mode .lang-option {
    color: #d1d5db;
    border-bottom: 1px solid #374151;
}

.lang-option:last-child {
    border-bottom: none;
}

.lang-option:hover {
    background: #f8fafc;
    color: #1f2937;
}

body.dark-mode .lang-option:hover {
    background: #374151;
    color: #ffffff;
}

.lang-option.active {
    background: #eff6ff;
    color: #2563eb;
    font-weight: 600;
}

body.dark-mode .lang-option.active {
    background: #1e40af;
    color: #bfdbfe;
}

.lang-option.active::after {
    content: "✓";
    margin-left: auto;
    color: #2563eb;
    font-weight: bold;
}

/* Responsive Design - Update mobile nav for light mode */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        right: 0;
        background-color: white;
        flex-direction: column;
        width: 250px;
        border-radius: 0 0 0 20px;
        padding: 1.5rem 0;
        backdrop-filter: blur(20px);
        border: 1px solid rgba(0,0,0,0.1);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }

    body.dark-mode .nav-links {
        background-color: rgb(229, 229, 229);
        border: 1px solid rgba(255,255,255,0.1);
    }

    .theme-toggle-wrapper {
        margin-left: 0.5rem;
    }

    .theme-icon {
        width: 20px;
        height: 20px;
    }
}

/* Rest of responsive styles remain the same... */
@media (max-width: 1024px) {
    .devices {
        right: 20px;
        gap: 1rem;
    }

    .devices-left {
        left: 10px;
        gap: 0.8rem;
    }

    .rotating-ball {
        width: 400px;
        height: 400px;
        right: -200px;
    }
    
    .device-item {
        width: 80px;
        height: 120px;
    }
    
    .hero-content {
        gap: 3rem;
    }
    
    .features-content,
    .trusted-content,
    .faq-content {
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    [dir="rtl"] .nav-links {
        left: 0;
        right: auto;
    }

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

    .menu-toggle {
        display: flex;
    }

    .hero {
        padding: 80px 1rem 1rem;
        min-height: 90vh;
        text-align: center;
    }

    .hero-content {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }

    .hero-left {
        padding-top: 120px;
        order: 2;
        flex: none;
        width: 100%;
        max-width: 300px;
    }

    .pos-system {
        max-width: 250px;
    }

    .hero-right {
        order: 3;
        flex: none;
        width: 100%;
        padding-top: 0;
        text-align: center;
    }

    .hero-right h1 {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        margin-bottom: 1rem;
    }

    .hero-right p {
        font-size: clamp(0.9rem, 4vw, 1.1rem);
        margin-bottom: 1.5rem;
        padding: 0 1rem;
    }

    .btn-red {
        padding: 0.8rem 2rem;
        font-size: clamp(0.8rem, 3.5vw, 0.9rem);
    }

    .devices-left {
        position: absolute;
        top: 13%;
        left: 0;
        flex-direction: row;
        justify-content: center;
        order: 1;
    }
    
    .rotating-ball {
        width: 300px;
        height: 300px;
        right: -150px;
        opacity: 0.3;
    }

    .device-item {
        width: 60px;
        height: 85px;
        --skew: -10deg;
    }

    .device-item span {
        font-size: 0.6rem;
        bottom: 2px;
    }

    .trusted-content,
    .faq-content {
        flex-direction: column;
        text-align: center;
    }

    .features-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .features-left .features-list {
        grid-template-columns: 1fr;
    }

    .contact-buttons {
        gap: 1.5rem;
    }

    .pricing-table {
        overflow-x: auto;
    }

    .social-icons {
        gap: 1.5rem;
    }
    
    .testimonial {
        padding: 1rem;
    }

    .lang-toggle {
        padding: 6px 10px;
        font-size: 13px;
        min-width: 70px;
    }
    
    .lang-text {
        display: none;
    }
    
    .flag-icon {
        width: 18px;
        height: 18px;
    }
    
    .lang-dropdown-menu {
        min-width: 120px;
        right: -10px;
    }
    
    [dir="rtl"] .lang-dropdown-menu {
        left: -10px;
        right: auto;
    }
}

@media (max-width: 480px) {
    header {
        padding: 1rem;
    }

    .hero {
        padding: 70px 0.5rem 1rem;
        min-height: 85vh;
    }

    .devices {
        margin: 0.5rem 0 1.5rem 0;
        gap: 0.6rem;
    }

    .rotating-ball {
        width: 200px;
        height: 200px;
        right: -100px;
    }

    .device-item {
        width: 50px;
        height: 75px;
        --skew: -8deg;
    }

    .device-item span {
        font-size: 0.5rem;
        bottom: 1px;
    }

    .hero-content {
        gap: 1rem;
    }

    .pos-system {
        max-width: 200px;
    }

    .hero-right h1 {
        font-size: clamp(1.5rem, 7vw, 2rem);
        line-height: 1.2;
    }

    .hero-right p {
        font-size: clamp(0.85rem, 4.5vw, 1rem);
        padding: 0 0.5rem;
        line-height: 1.4;
    }

    .btn-red {
        padding: 0.7rem 1.5rem;
        font-size: 0.8rem;
    }

    .features,
    .trusted,
    .pricing,
    .faq,
    .cta {
        padding: 3rem 1rem;
    }

    .play-button {
        width: 50px;
        height: 50px;
    }

    .contact-buttons {
        gap: 1rem;
    }

    .faq-content {
        gap: 2rem;
    }

    .testimonial {
        margin: 1.5rem 0;
    }

    .lang-toggle {
        padding: 5px 8px;
        border-radius: 4px;
    }
    
    .flag-icon {
        width: 16px;
        height: 16px;
    }
    
    .lang-dropdown-menu {
        position: fixed;
        top: auto;
        right: 10px;
        left: auto;
        width: calc(100vw - 20px);
        max-width: 200px;
    }
    
    [dir="rtl"] .lang-dropdown-menu {
        right: 10px;
        left: auto;
    }
}

@media (max-width: 360px) {
    .logo img {
        height: 35px;
    }

    .features-left .features-list li,
    .faq-item {
        padding: 1rem;
    }

    .pricing th, .pricing td {
        padding: 0.8rem 0.5rem;
    }
    
    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero {
        padding: 60px 0.5rem 1rem;
    }

    .devices {
        gap: 0.4rem;
    }

    .device-item {
        width: 45px;
        height: 65px;
    }

    .pos-system {
        max-width: 180px;
    }

    .hero-right h1 {
        font-size: 1.4rem;
    }

    .hero-right p {
        font-size: 0.8rem;
        padding: 0;
    }
}

/* Landscape mobile optimization */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding: 60px 1rem 1rem;
    }

    .hero-content {
        flex-direction: row;
        align-items: center;
        gap: 2rem;
    }

    .devices {
        position: absolute;
        top: 60px;
        right: 10px;
        margin: 0;
    }

    .device-item {
        width: 40px;
        height: 60px;
    }

    .hero-left {
        order: 1;
        flex: 1;
    }

    .hero-right {
        order: 2;
        flex: 1;
        padding-top: 0;
        text-align: left;
    }
}

/* High DPI screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo img,
    .social-icons a img,
    .contact-btn img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* RTL Support for Arabic */
[dir="rtl"] .language-switcher {
    margin-left: 0;
}

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

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

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

/* Loading state for images */
.flag-icon {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

.flag-icon[src] {
    background: none;
    animation: none;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}