/* Global Styles */
:root {
    --primary-color: #00A2E0;  /* Microsoft blue */
    --secondary-color: #7FBA00;  /* Microsoft green */
    --dark-color: #2B2B2B;
    --light-color: #F5F5F5;
    --accent-color: #FFB900;  /* Microsoft yellow */
    --text-color: #333333;
    --text-light: #666666;
}

/* Language toggle */
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 12px;
}

.lang-btn {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    line-height: 0;
}

.lang-btn img {
    width: 24px;
    height: 16px;
    display: block;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #ffffff;
}

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

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

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

.btn {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 10px 25px;
    border: none;
    border-radius: 0;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

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

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

.logo h1 {
    color: var(--dark-color);
    font-size: 28px;
    font-weight: 700;
    margin-left: 10px;
}

/* Image logo */
.logo img {
    display: block;
    height: 63px;
    width: auto;
}

.swoosh {
    width: 40px;
    height: 8px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 0;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--dark-color);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

nav ul li a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
}

nav ul li a:hover:after {
    width: 100%;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 24px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8eb 100%);
    padding: 180px 0 100px;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.hero p {
    font-size: 20px;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 40px;
}

/* Wiki CTA */
.wiki-cta {
    background: linear-gradient(90deg, rgba(0,162,224,0.06), rgba(127,186,0,0.06));
    padding: 40px 0;
}

.wiki-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: #fff;
    border: 2px solid var(--primary-color);
    border-radius: 0;
    padding: 24px 28px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.wiki-card .wiki-text h2 {
    font-size: 26px;
    margin-bottom: 10px;
}

.wiki-card .wiki-text p {
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.7;
}

.wiki-card .wiki-action {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.wiki-card .wiki-action .btn {
    padding: 12px 22px;
    font-weight: 700;
}

.wiki-card .wiki-action small {
    color: var(--text-light);
}

/* Reusable square CTA button style */
.btn.square-cta {
    padding: 12px 22px;
    font-weight: 700;
    border-radius: 0;
}

@media (max-width: 768px) {
    .wiki-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .wiki-card .wiki-action { align-items: flex-start; }
}

/* Services Section */
.services {
    padding: 100px 0;
    background-color: #ffffff;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 36px;
    color: var(--dark-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2:after {
    content: '';
    position: absolute;
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    bottom: -10px;
    left: 20%;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
    align-items: stretch; /* ensure equal-height columns */
}

.service-card {
    background: white;
    border-radius: 0;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;              /* allow vertical layout */
    flex-direction: column;     /* stack contents */
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

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

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

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

/* Push the Learn More button to the bottom of each card */
.service-card .btn,
.service-card .btn-outline {
    margin-top: auto;
    align-self: center;
}

/* Inline service details toggles */
.service-details {
    text-align: left;
    margin: 18px 0 12px;
    padding: 16px;
    background: #f9fbfd;
    border: 1px solid #e6f0f7;
    border-radius: 8px;
}

.service-details[hidden] {
    display: none !important;
}

.service-details h4 {
    margin-bottom: 10px;
    color: var(--dark-color);
}

.service-details ul {
    padding-left: 18px;
    color: var(--text-light);
}

/* About Section */
.about, .about-intro {
    padding: 100px 0;
    background-color: #f9f9f9;
    position: relative;
}

/* Center align the Microsoft Partner logo */
.partnership .partner-logo {
    display: block;
    margin: 32px auto 12px;
    height: auto;
    max-width: 440px;
}

/* Tech Stack - mirror 'Our Solutions' */
.tech-stack {
    padding: 100px 0;
    background-color: #ffffff;
}

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

.tech-item {
    background: white;
    border-radius: 0;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.tech-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.tech-item img {
    height: auto;
    margin-bottom: 20px;
    background: transparent; /* remove image boxes */
    border: none;
    box-shadow: none;
    border-radius: 0;
}

.tech-item h4 {
    font-size: 20px;
    color: var(--dark-color);
    margin-bottom: 12px;
}

.tech-item p {
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.6;
}

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

.about-content h2 {
    font-size: 36px;
    color: var(--dark-color);
    margin-bottom: 30px;
}

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


/* Contact Section */
.contact {
    padding: 100px 0;
    background-color: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
    margin-top: 50px;
}

.contact-info h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.contact-info.two-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px 40px;
}

.contact-info.two-col .contact-box {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 0;
    padding: 16px 18px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.contact-info p {
    margin-bottom: 15px;
    color: var(--text-light);
    display: flex;
    align-items: center;
}

.contact-info i {
    margin: 10px;
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

/* RTL fixes for contact rows and icons */
html[dir="rtl"] .contact-info.two-col { text-align: right; }
html[dir="rtl"] .contact-info p { flex-direction: row-reverse; }
html[dir="rtl"] .contact-info i { margin: 10px; }
html[dir="rtl"] .contact-info a { direction: ltr; }

/* Force numbers to display LTR and not wrap (phone and PO box) */
.phone-num,
.num-ltr {
    direction: ltr;
    unicode-bidi: bidi-override;
    white-space: nowrap;
    display: inline-block;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

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

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 70px 0 30px;
}

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

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo h3 {
    color: white;
    font-size: 24px;
    margin-top: 10px;
}

.footer-logo img {
    display: block;
    max-width: 180px;
    width: 100%;
    height: auto;
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

.footer-links h4,
.social-links h4 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

/* Footer verification */
.footer-verification {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0;
}

.footer-verification .license {
    display: flex;
    flex-direction: column;
    color: #e6e6e6;
}

.footer-verification .license strong {
    color: #ffffff;
    letter-spacing: 0.5px;
}

.qr-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    flex: 0 0 auto;
}

.footer-verification img.qr {
    width: 100%;
    height: 100%;
    display: block;
    background: white;
    border-radius: 0;
}

.footer-verification img.qr-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px; /* small logo at center */
    height: auto;
    border-radius: 0;
    background: white;
    padding: 4px;
}

.footer-verification .license small {
    color: #cccccc;
}

.footer-links h4:after,
.social-links h4:after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
    bottom: 0;
    left: 0;
}

/* Fix underline alignment for RTL */
html[dir="rtl"] .footer-links h4 { text-align: right; }
html[dir="rtl"] .footer-links h4:after { left: auto; right: 0; }

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

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

.footer-links ul li a {
    color: #b3b3b3;
    transition: color 0.3s ease;
}

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

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

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0;
    color: white;
    font-size: 18px;
    transition: all 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    color: #b3b3b3;
}

.footer-bottom p {
    margin-bottom: 10px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        margin-bottom: 40px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 80%;
        height: calc(100vh - 80px);
        background: white;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
    }
    
    nav.active {
        left: 0;
    }
    
    nav ul {
        flex-direction: column;
        padding: 20px;
    }
    
    nav ul li {
        margin: 15px 0;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .hero p {
        font-size: 18px;
    }
    
    .section-title h2 {
        font-size: 30px;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 150px 0 80px;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        padding: 30px 20px;
    }
    
    .about-content h2,
    .section-title h2 {
        font-size: 28px;
    }
    
    .about-content p {
        font-size: 16px;
    }
}
