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

:root {
    --primary-color: #57a634;
    --primary-dark: #4a8a2b;
    --secondary-color: #ffffff;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --text-lighter: #888888;
    --background-light: #f8f9fa;
    --border-color: #e9ecef;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

body {
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', 'Monaco', 'Courier New', monospace;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--secondary-color);
    overflow-x: hidden;
}

/* RTL Support */
body.rtl {
    font-family: 'Cairo', 'JetBrains Mono', 'Fira Code', 'Consolas', 'Monaco', 'Courier New', monospace;
    direction: rtl;
    text-align: right;
}

/* Keep navbar in LTR direction regardless of language */
.navbar {
    direction: ltr;
}

.nav-container {
    direction: ltr;
}

.nav-menu {
    direction: ltr;
}

/* Keep logo in original font regardless of language */
.logo-text {
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', 'Monaco', 'Courier New', monospace !important;
}

/* RTL specific adjustments */
.rtl .language-selector {
    margin-left: 0;
    margin-right: 1rem;
}

.rtl .lang-drawer-option:hover {
    transform: translateX(-5px);
}

.rtl .lang-option-content {
    flex-direction: row-reverse;
}

.rtl .lang-info {
    text-align: right;
}

.rtl .hero-cta {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.rtl .about-content {
    flex-direction: row-reverse;
}

.rtl .contact-content {
    flex-direction: row-reverse;
}

.rtl .footer-content {
    flex-direction: row-reverse;
}

.rtl .benefits-list li {
    padding-left: 0;
    padding-right: 1.5rem;
}

.rtl .benefits-list li::before {
    left: auto;
    right: 0;
}

.rtl .contact-item {
    flex-direction: row-reverse;
}

.rtl .contact-icon {
    margin-left: 0.5rem;
    margin-right: 0;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.logo-text:hover {
    transform: scale(1.05);
    color: var(--primary-dark);
}

.typewriter {
    display: inline-block;
    position: relative;
}

.typewriter::after {
    content: '';
    position: absolute;
    right: -2px;
    top: 0;
    height: 100%;
    width: 2px;
    background-color: var(--primary-color);
    animation: blink-caret 0.75s step-end infinite;
}

@keyframes blink-caret {

    from,
    to {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0.5rem 0;
}

/* Language Selector */
.language-selector {
    display: inline-flex;
    align-items: center;
    margin-left: 1rem;
    height: 100%;
}

.lang-drawer-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
    width: 32px;
    height: 32px;
    border-radius: 4px;
    line-height: 1;
}

.lang-drawer-btn:hover {
    background: rgba(87, 166, 52, 0.1);
    transform: scale(1.05);
}

.lang-drawer-btn:active {
    transform: scale(0.95);
}

.lang-icon {
    width: 20px;
    height: 20px;
    color: var(--text-dark);
    transition: var(--transition);
    display: block;
}

.lang-drawer-btn:hover .lang-icon {
    color: var(--primary-color);
}

/* Language Drawer */
.lang-drawer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

/* Body blur when drawer is active */
body.drawer-active {
    overflow: hidden;
}

/* Blur all content except the drawer */
body.drawer-active .navbar,
body.drawer-active .hero,
body.drawer-active .about,
body.drawer-active .services,
body.drawer-active .contact,
body.drawer-active .footer {
    filter: blur(3px);
    transition: filter 0.3s ease;
}

.lang-drawer.active {
    opacity: 1;
    visibility: visible;
}

.lang-drawer-content {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-hover);
    transform: translateY(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 2rem 0;
    margin-top: 80px;
    /* Account for navbar height */
}

.lang-drawer.active .lang-drawer-content {
    transform: translateY(0);
}

.lang-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.lang-drawer-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.lang-drawer-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lang-drawer-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-dark);
}

.lang-drawer-options {
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.lang-drawer-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    opacity: 0;
    transform: translateY(20px);
    animation: slideInUp 0.3s ease forwards;
}

.lang-drawer-option:nth-child(1) {
    animation-delay: 0.1s;
}

.lang-drawer-option:nth-child(2) {
    animation-delay: 0.2s;
}

.lang-drawer-option:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lang-drawer-option:hover {
    background: rgba(87, 166, 52, 0.1);
    border-color: rgba(87, 166, 52, 0.2);
    transform: translateX(5px);
}

.lang-drawer-option.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.lang-option-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lang-flag {
    font-size: 2rem;
    width: 48px;
    text-align: center;
}

.lang-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.lang-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: inherit;
}

.lang-native {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 400;
}

.lang-drawer-option.active .lang-native {
    color: rgba(255, 255, 255, 0.8);
}

.lang-check {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--primary-color);
    opacity: 0;
    transition: var(--transition);
}

.lang-drawer-option.active .lang-check {
    opacity: 1;
    color: white;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #f8f9fa 100%);
    padding-top: 80px;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.highlight {
    color: var(--primary-color);
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(87, 166, 52, 0.2);
    z-index: -1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-button {
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid var(--primary-color);
}

.cta-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.cta-secondary {
    background: transparent;
    color: var(--primary-color);
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid var(--primary-color);
}

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

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}



.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    width: 300px;
    height: 300px;
}

.grid-item {
    background: var(--primary-color);
    border-radius: 8px;
    opacity: 0.8;
    animation: pulse 3s infinite;
}

.grid-item:nth-child(2) {
    animation-delay: 0.5s;
}

.grid-item:nth-child(3) {
    animation-delay: 1s;
}

.grid-item:nth-child(4) {
    animation-delay: 1.5s;
}

.grid-item:nth-child(5) {
    animation-delay: 2s;
}

.grid-item:nth-child(6) {
    animation-delay: 2.5s;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.8;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.25rem;
    color: var(--text-light);
}

/* About Section */
.about {
    padding: 6rem 0;
    background: var(--background-light);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.benefits-list {
    list-style: none;
    padding: 0;
}

.benefits-list li {
    padding: 0.5rem 0;
    color: var(--text-light);
    position: relative;
    padding-left: 1.5rem;
}

.benefits-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: var(--secondary-color);
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-light);
    font-weight: 500;
}

/* Services Section */
.services {
    padding: 6rem 0;
}

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

.service-card {
    background: var(--secondary-color);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: var(--background-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-light);
}

.contact-icon {
    font-size: 1.25rem;
}

/* Contact Form */
.contact-form {
    background: var(--secondary-color);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', 'Monaco', 'Courier New', monospace;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(87, 166, 52, 0.1);
}

.submit-button {
    width: 100%;
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', 'Monaco', 'Courier New', monospace;
    cursor: pointer;
    transition: var(--transition);
}

.submit-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--secondary-color);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-brand .logo-text {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: var(--text-lighter);
    margin-top: 0.5rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-lighter);
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 1rem;
    text-align: center;
    color: var(--text-lighter);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        left: 50%;
        transform: translateX(-50%) translateY(-100%);
        width: 280px;
        height: auto;
        background: rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem 1rem 1rem 1rem;
        box-shadow: none;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        gap: 0.5rem;
    }

    .nav-menu.active {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
        visibility: visible;
    }



    .nav-toggle {
        display: flex;
    }

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

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

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

    .nav-menu .nav-link {
        padding: 0.75rem 1rem;
        font-size: 1.3rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        width: 240px;
        text-align: center;
        color: var(--text-dark);
        font-weight: 600;
        text-shadow: 0 2px 4px rgba(255, 255, 255, 0.9);
        margin: 0;
        border-radius: 12px;
        transition: all 0.3s ease;
    }

    .nav-menu .nav-link:last-child {
        border-bottom: none;
    }

    .nav-menu .nav-link:hover {
        color: var(--primary-color);
        background: rgba(255, 255, 255, 0.25);
        transform: translateX(15px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        border: 1px solid rgba(255, 255, 255, 0.3);
    }

    .language-selector {
        margin: 0.25rem 0 0 0;
        justify-content: center;
    }

    .rtl .language-selector {
        margin: 0.25rem 0 0 0;
    }

    .lang-drawer-btn {
        width: 36px;
        height: 36px;
        padding: 0.625rem;
    }

    .lang-icon {
        width: 18px;
        height: 18px;
    }

    .lang-drawer-content {
        margin-top: 70px;
        padding: 1.5rem 0;
    }

    .lang-drawer-header {
        padding: 0 1.5rem 1rem 1.5rem;
        margin-bottom: 1rem;
    }

    .lang-drawer-header h3 {
        font-size: 1.25rem;
    }

    .lang-drawer-options {
        padding: 0 1.5rem;
    }

    .lang-drawer-option {
        padding: 1rem 1.25rem;
    }

    .lang-flag {
        font-size: 1.5rem;
        width: 40px;
    }

    .lang-name {
        font-size: 1rem;
    }

    .rtl .nav-menu .nav-link:hover {
        transform: translateX(-15px);
    }

    .logo-text {
        font-size: 1.6rem;
    }

    .footer-brand .logo-text {
        font-size: 1.3rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-visual {
        display: none;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-cta {
        justify-content: center;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .logo-text {
        font-size: 1.4rem;
    }

    .footer-brand .logo-text {
        font-size: 1.1rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .cta-button,
    .cta-secondary {
        width: 100%;
        text-align: center;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content,
.service-card,
.about-text,
.contact-info {
    animation: fadeInUp 0.8s ease-out;
}