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

:root {
    --primary-blue: #0066CC;
    --dark-blue: #004C99;
    --light-blue: #3385D6;
    --white: #FFFFFF;
    --text-dark: #1A1A1A;
    --text-gray: #4A4A4A;
    --light-gray: #F8F9FA;
    --border-gray: #E0E0E0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Header Styles */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

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

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

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text h1 {
    font-size: 28px;
    color: var(--primary-blue);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-text .highlight {
    color: var(--dark-blue);
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
}

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

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.language-switcher {
    position: relative;
}

.lang-dropdown-btn {
    background: var(--white);
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    padding: 10px 15px;
    cursor: pointer;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    min-width: 140px;
}

.lang-dropdown-btn:hover {
    background: var(--light-gray);
}

.lang-dropdown-btn.active {
    background: var(--primary-blue);
    color: var(--white);
}

.lang-dropdown-btn i:first-child {
    font-size: 16px;
}

.lang-dropdown-btn i:last-child {
    font-size: 12px;
    margin-left: auto;
    transition: transform 0.3s ease;
}

.lang-dropdown-btn.open i:last-child {
    transform: rotate(180deg);
}

.lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    background: var(--white);
    border: 2px solid var(--border-gray);
    border-radius: 5px;
    min-width: 200px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
}

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

.lang-option {
    width: 100%;
    background: transparent;
    border: none;
    padding: 12px 15px;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: var(--text-dark);
    transition: background 0.2s ease;
    border-bottom: 1px solid var(--light-gray);
}

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

.lang-option:hover {
    background: var(--light-gray);
}

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

.lang-flag {
    font-size: 20px;
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 24px;
    color: var(--primary-blue);
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    color: var(--white);
    padding: 100px 0;
    text-align: center;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 20px;
    line-height: 1.4;
}

.hero-text {
    font-size: 18px;
    margin-bottom: 40px;
    line-height: 1.8;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

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

.btn-primary:hover {
    background-color: var(--light-gray);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

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

/* Section Styles */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: var(--text-dark);
}

/* Services Overview */
.services-overview {
    background-color: var(--white);
}

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

.service-card {
    background: var(--white);
    border: 2px solid var(--border-gray);
    border-radius: 10px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: var(--primary-blue);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.15);
}

.service-icon {
    font-size: 48px;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.service-card p {
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.6;
}

/* Industries Section */
.industries {
    background-color: var(--light-gray);
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
}

.industry-item {
    background: var(--white);
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.industry-item:hover {
    border-color: var(--primary-blue);
    transform: translateY(-5px);
}

.industry-item i {
    font-size: 40px;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.industry-item p {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

/* Detailed Services */
.services-detailed {
    background-color: var(--white);
}

.service-detail {
    max-width: 900px;
    margin: 0 auto 50px;
    padding: 40px;
    background: var(--light-gray);
    border-radius: 10px;
    border-left: 5px solid var(--primary-blue);
}

.service-detail h3 {
    font-size: 28px;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.service-detail p {
    font-size: 17px;
    margin-bottom: 20px;
    color: var(--text-gray);
    line-height: 1.7;
}

.service-detail ul {
    list-style: none;
    margin-bottom: 25px;
}

.service-detail ul li {
    padding: 10px 0 10px 30px;
    position: relative;
    font-size: 16px;
    color: var(--text-dark);
    line-height: 1.6;
}

.service-detail ul li:before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--primary-blue);
    font-weight: bold;
    font-size: 18px;
}

.software-section {
    margin: 30px 0;
    padding: 25px;
    background: var(--white);
    border-radius: 8px;
}

.software-section h4 {
    font-size: 22px;
    color: var(--dark-blue);
    margin-bottom: 15px;
}

/* Why Choose Section */
.why-choose {
    background-color: var(--light-gray);
}

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

.feature-item {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.15);
}

.feature-icon {
    font-size: 50px;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.feature-item p {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.6;
}

/* Testimonials */
.testimonials {
    background-color: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--light-gray);
    padding: 40px 30px;
    border-radius: 10px;
    position: relative;
    border-top: 4px solid var(--primary-blue);
}

.quote-icon {
    font-size: 30px;
    color: var(--primary-blue);
    opacity: 0.3;
    margin-bottom: 15px;
}

.testimonial-card p {
    font-size: 16px;
    font-style: italic;
    margin-bottom: 20px;
    color: var(--text-gray);
    line-height: 1.7;
}

.testimonial-author {
    border-top: 2px solid var(--border-gray);
    padding-top: 15px;
}

.author-name {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.author-title {
    font-size: 14px;
    color: var(--text-gray);
}

/* About Section */
.about {
    background-color: var(--light-gray);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text p {
    font-size: 17px;
    margin-bottom: 20px;
    color: var(--text-gray);
    line-height: 1.8;
}

.about-text h3 {
    font-size: 24px;
    color: var(--primary-blue);
    margin: 30px 0 15px;
}

.about-text ul {
    list-style: none;
    margin-top: 15px;
}

.about-text ul li {
    padding: 10px 0;
    font-size: 16px;
    color: var(--text-dark);
    line-height: 1.7;
}

.about-text ul li strong {
    color: var(--primary-blue);
}

/* FAQ Section */
.faq {
    background-color: var(--white);
}

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

.faq-item {
    margin-bottom: 20px;
    border: 2px solid var(--border-gray);
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: var(--white);
    border: none;
    padding: 20px 25px;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 17px;
    font-weight: 600;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: var(--light-gray);
}

.faq-question i {
    color: var(--primary-blue);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question {
    background: var(--light-gray);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: var(--light-gray);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 20px 25px;
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.7;
}

/* Contact Section */
.contact {
    background-color: var(--light-gray);
}

.contact-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 50px;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: start;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-blue);
    color: var(--white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.contact-details h3 {
    font-size: 20px;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.contact-details p {
    font-size: 16px;
    color: var(--text-gray);
    margin-bottom: 5px;
}

.contact-details a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: var(--dark-blue);
    text-decoration: underline;
}


/* Footer */
.footer {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 60px 0 20px;
}

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

.footer-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-section p,
.footer-section li {
    font-size: 15px;
    line-height: 1.8;
    opacity: 0.9;
}

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

.footer-section ul li {
    padding: 5px 0;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-section a:hover {
    opacity: 0.7;
}

.footer-language-switcher {
    position: relative;
}

.footer-lang-dropdown {
    background: transparent;
    border-color: var(--white);
    color: var(--white);
}

.footer-lang-dropdown:hover {
    background: rgba(255, 255, 255, 0.1);
}

.footer-lang-menu {
    bottom: calc(100% + 5px);
    top: auto;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    opacity: 0.8;
}

/* RTL Support for Dari and Pashto */
body[dir="rtl"] {
    direction: rtl;
}

body[dir="rtl"] .header-content,
body[dir="rtl"] .nav-menu ul,
body[dir="rtl"] .hero-buttons,
body[dir="rtl"] .contact-item {
    flex-direction: row-reverse;
}

body[dir="rtl"] .service-detail {
    border-left: none;
    border-right: 5px solid var(--primary-blue);
}

body[dir="rtl"] .service-detail ul li {
    padding: 10px 30px 10px 0;
}

body[dir="rtl"] .service-detail ul li:before {
    left: auto;
    right: 0;
}

body[dir="rtl"] .faq-question {
    flex-direction: row-reverse;
}

/* Responsive Design */
@media (max-width: 968px) {
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-menu.active {
        max-height: 400px;
    }

    .nav-menu ul {
        flex-direction: column;
        padding: 20px;
        gap: 0;
    }

    .nav-menu ul li {
        padding: 12px 0;
        border-bottom: 1px solid var(--border-gray);
    }

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

    .mobile-menu-toggle {
        display: block;
    }

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

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 22px;
    }

    .section-title {
        font-size: 30px;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
    }

    .logo-text h1 {
        font-size: 24px;
    }

    .hero {
        padding: 60px 0;
    }

    .hero-title {
        font-size: 30px;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    .hero-text {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 26px;
        margin-bottom: 30px;
    }

    .services-grid,
    .industries-grid,
    .features-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .service-detail {
        padding: 25px 20px;
    }

    .contact-form {
        padding: 25px 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .language-switcher {
        flex-wrap: wrap;
    }
}

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

    .hero-subtitle {
        font-size: 18px;
    }

    .service-card,
    .feature-item,
    .testimonial-card {
        padding: 25px 20px;
    }

    .btn {
        padding: 12px 25px;
        font-size: 15px;
    }
}