.language-links {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    margin-left: 20px;
}
.lang-link {
    color: #8B5BC8;
    text-decoration: none;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}
.lang-link.active {
    background: #8B5BC8;
    color: #fff;
}
.lang-link:hover {
    background: #E55A2B;
    color: #fff;
}
.lang-sep {
    color: #666;
    font-weight: 400;
    font-size: 16px;
}
.language-switcher {
    display: flex;
    align-items: center;
}
body.rtl, [dir="rtl"] {
    direction: rtl;
    font-family: 'Montserrat', 'Cairo', sans-serif;
}

body.rtl .nav-links {
    flex-direction: row-reverse;
}
body.rtl .nav-links a {
    text-align: right;
}
body.rtl .language-switcher {
    float: left;
}
body.rtl .services-grid {
    direction: rtl;
}
body.rtl .service-card h3,
body.rtl .service-card p {
    text-align: right;
}
body.rtl .about-content {
    flex-direction: row-reverse;
}
body.rtl .about-text {
    text-align: right;
}
body.rtl .why-grid {
    direction: rtl;
}
body.rtl .why-card h3,
body.rtl .why-card p {
    text-align: right;
}
body.rtl .supporters-container,
body.rtl .supporters-subtitle {
    text-align: right;
}
body.rtl .testimonials-container,
body.rtl .testimonials h2 {
    text-align: right;
}
body.rtl .testimonial-card {
    text-align: right;
}
body.rtl .contact-container,
body.rtl .contact h2 {
    text-align: right;
}
body.rtl .contact-info {
    flex-direction: row-reverse;
}
body.rtl .contact-item p {
    text-align: right;
}
body.rtl .form-group label,
body.rtl .form-group input,
body.rtl .form-group textarea {
    text-align: right;
}
body.rtl .footer-container,
body.rtl .footer-bottom {
    direction: rtl;
}
body.rtl .footer-logo,
body.rtl .copyright p {
    text-align: right;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.navbar {
    background: white;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

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

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-links a:hover {
    color: #8B5BC8;
}

.dropdown span {
    font-size: 12px;
}

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

.logo-image {
    height: 40px;
    width: auto;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 60px 20px;
    background: #f8f9fa;
}

.hero-banner {
    position: relative;
    max-width: 1600px;
    margin: 0 auto;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    border-radius: 10px;
}

.hero-overlay {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 500px;
}

.hero-text {
    text-align: center;
    color: white;
    z-index: 3;
    position: relative;
}

.hero-text h1 {
    font-size: 48px;
    font-weight: bold;
    letter-spacing: 8px;
    margin-bottom: 10px;
}

.underline {
    width: 300px;
    height: 3px;
    background: white;
    margin: 0 auto 30px;
}

.tagline {
    font-size: 20px;
    margin-bottom: 30px;
    font-weight: 300;
    color: white;
}

.featured-container {
    text-align: center;
    position: relative;
    z-index: 3;
    margin-top: 45px;
}

.tagline-container {
    text-align: center;
    position: relative;
    z-index: 3;
    margin-top: 30px;
}

.featured-line {
    font-size: 16px;
    margin-bottom: 20px;
    font-weight: 300;
    color: white;
    letter-spacing: 1px;
}

.highlight {
    color: #FF6B35;
    font-weight: bold;
}

.rotating-words {
    position: relative;
    display: inline-block;
    width: 120px;
    height: 1.2em;
    vertical-align: baseline;
}

.rotating-words .word {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    animation: rotateWords 8s infinite;
    white-space: nowrap;
    width: 100%;
}

.rotating-words .word.active {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 1;
}

.rotating-words .word:nth-child(1) {
    animation-delay: 0s;
}

.rotating-words .word:nth-child(2) {
    animation-delay: 2s;
}

.rotating-words .word:nth-child(3) {
    animation-delay: 4s;
}

.rotating-words .word:nth-child(4) {
    animation-delay: 6s;
}

@keyframes rotateWords {
    0% { opacity: 0; transform: translateY(20px); }
    12.5% { opacity: 1; transform: translateY(0); }
    25% { opacity: 1; transform: translateY(0); }
    37.5% { opacity: 0; transform: translateY(-20px); }
    100% { opacity: 0; transform: translateY(-20px); }
}

.cta-button {
    background: #FF6B35;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.cta-button:hover {
    background: #E55A2B;
    transform: translateY(-2px);
}

.partners {
    background: white;
    padding: 40px 20px;
}

.partners-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.partner-logo {
    color: #999;
    font-size: 18px;
    font-weight: 500;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.partner-logo:hover {
    opacity: 1;
}

.partner-logo.ygap {
    color: #90EE90;
    font-weight: bold;
}

.partner-logo.entrepreneur {
    color: #FF69B4;
}

.services {
    padding: 80px 20px;
    background: #f8f9fa;
}

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

.services h2 {
    text-align: center;
    font-size: 36px;
    color: #8B5BC8;
    margin-bottom: 60px;
    font-weight: 600;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #8B5BC8;
    border-radius: 10px;
}

.service-icon i {
    font-size: 36px;
    color: white;
}

.icon-placeholder {
    width: 100%;
    height: 100%;
    background: #8B5BC8;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 36px;
    position: relative;
}

.book-icon::after {
    content: '📚';
}

.gamepad-icon::after {
    content: '🎮';
}

.handshake-icon::after {
    content: '🤝';
}

.people-icon::after {
    content: '👥';
}

.service-card h3 {
    color: #8B5BC8;
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 600;
}

.service-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 14px;
    flex-grow: 1;
}

.service-button {
    background: #FF6B35;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.service-button:hover {
    background: #E55A2B;
    transform: translateY(-1px);
}

.service-button.enquire {
    background: #8B5BC8;
}

.service-button.enquire:hover {
    background: #7A4FB5;
}

.about {
    padding: 80px 20px;
    background: white;
}

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

.about h2 {
    text-align: center;
    font-size: 36px;
    color: #8B5BC8;
    margin-bottom: 60px;
    font-weight: 600;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-image {
    flex: 1;
    max-width: 400px;
}

.youtube-video {
    border-radius: 10px;
    min-height: 300px;
}

.about-text {
    flex: 1;
}

.about-text p {
    color: #666;
    line-height: 1.8;
    font-size: 16px;
    margin-bottom: 30px;
}

.about-button {
    background: #FF6B35;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.about-button:hover {
    background: #E55A2B;
    transform: translateY(-1px);
}

.why-robofun {
    padding: 80px 20px;
    background: #f8f9fa;
}

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

.why-robofun h2 {
    text-align: center;
    font-size: 36px;
    color: #8B5BC8;
    margin-bottom: 60px;
    font-weight: 600;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.why-card {
    text-align: center;
    padding: 20px;
}

.why-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.why-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: #8B5BC8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.why-icon i {
    font-size: 36px;
    color: white;
}

.why-icon .icon-placeholder {
    width: 100%;
    height: 100%;
    background: #8B5BC8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 36px;
}

.project-icon::after {
    content: '📱';
}

.heart-icon::after {
    content: '💜';
}

.target-icon::after {
    content: '🎯';
}

.dollar-icon::after {
    content: '💲';
}

.why-card h3 {
    color: #8B5BC8;
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 600;
}

.why-card p {
    color: #666;
    line-height: 1.6;
    font-size: 14px;
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 20px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    .hero-banner {
        min-height: 400px;
    }

    .hero-overlay {
        min-height: 400px;
    }

    .hero-text h1 {
        font-size: 36px;
        letter-spacing: 4px;
    }

    .underline {
        width: 200px;
    }

    .partners-container {
        justify-content: center;
        text-align: center;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .about-content {
        flex-direction: column;
        gap: 40px;
    }

    .about-image {
        max-width: 100%;
    }

    .black-placeholder {
        height: 250px;
    }

    .why-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.supporters {
    padding: 80px 20px;
    background: white;
}

.supporters-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.supporters h2 {
    font-size: 36px;
    color: #8B5BC8;
    margin-bottom: 20px;
    font-weight: 600;
}

.supporters-subtitle {
    color: #666;
    font-size: 18px;
    margin-bottom: 60px;
}

.supporters-logos {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.supporter-logo {
    flex: 1;
    min-width: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.supporter-image {
    max-height: 60px;
    max-width: 150px;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.supporter-image:hover {
    opacity: 1;
}

.testimonials {
    padding: 80px 20px;
    background: #f8f9fa;
}

.testimonials-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.testimonials h2 {
    font-size: 36px;
    color: #8B5BC8;
    margin-bottom: 60px;
    font-weight: 600;
}

.testimonials-carousel {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.testimonial-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    text-align: left;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
    transform: translateX(100px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.testimonial-card.active {
    opacity: 1;
    transform: translateX(0);
}

.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
}

.robofun-logo {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-logo-image {
    height: 40px;
    width: auto;
}

.testimonial-info {
    flex: 1;
}

.testimonial-info h3 {
    color: #333;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.star-rating {
    display: flex;
    gap: 2px;
}

.star {
    color: #FFD700;
    font-size: 16px;
}

.google-logo {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.google-g {
    font-size: 24px;
    font-weight: bold;
    color: #4285F4;
    font-family: 'Product Sans', sans-serif;
}

.facebook-logo {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.facebook-f {
    font-size: 24px;
    font-weight: bold;
    color: #1877F2;
    font-family: 'Helvetica', sans-serif;
}

.testimonial-content p {
    color: #666;
    line-height: 1.6;
    font-size: 15px;
    margin: 0;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: #8B5BC8;
}

.dot:hover {
    background: #8B5BC8;
}

@media (max-width: 768px) {
    .supporters-logos {
        flex-direction: column;
        gap: 30px;
    }

    .supporter-logo {
        min-width: auto;
    }

    .testimonial-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .testimonial-info {
        text-align: center;
    }

    .testimonial-card {
        padding: 20px;
    }
}

.contact {
    padding: 80px 20px;
    background: white;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
}

.contact h2 {
    font-size: 36px;
    color: #8B5BC8;
    margin-bottom: 60px;
    font-weight: 600;
    text-align: center;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 100px;
    margin-bottom: 60px;
}

.contact-item {
    text-align: center;
}

.contact-icon {
    font-size: 48px;
    color: #8B5BC8;
    margin-bottom: 15px;
}

.contact-item p {
    color: #8B5BC8;
    font-size: 18px;
    font-weight: 600;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

.required {
    color: #FF6B35;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8B5BC8;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.send-button {
    background: #FF6B35;
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: block;
    margin: 0 auto;
}

.send-button:hover {
    background: #E55A2B;
    transform: translateY(-2px);
}

.footer {
    background: #f8f9fa;
    padding: 60px 20px 20px;
    border-top: 1px solid #eee;
}

.footer-container {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 80px;
    margin-bottom: 40px;
    justify-content: center;
}

.footer-column h3 {
    color: #8B5BC8;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 10px;
}

.footer-column a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: #8B5BC8;
}

.subscribe p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.subscribe-form {
    display: flex;
    gap: 10px;
}

.subscribe-input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.subscribe-input:focus {
    outline: none;
    border-color: #8B5BC8;
}

.subscribe-button {
    background: #FF6B35;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    white-space: nowrap;
}

.subscribe-button:hover {
    background: #E55A2B;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    text-decoration: none;
    transition: transform 0.3s;
}

.social-icon:hover {
    transform: translateY(-2px);
}

.social-icon.instagram {
    background: #E4405F;
    color: white;
}

.social-icon.facebook {
    background: #1877F2;
    color: white;
}

.social-icon.twitter {
    background: #1DA1F2;
    color: white;
}

.social-icon.linkedin {
    background: #0A66C2;
    color: white;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo-image {
    height: 30px;
    width: auto;
}

.copyright p {
    color: #666;
    font-size: 14px;
}

@media (max-width: 768px) {
    .contact-info {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .subscribe-form {
        flex-direction: column;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}