/* Additional Page Sections - Partnership, About, AI, Services, Stats, CTA */

/* Partnership Section */
.partnership-section {
    padding: 8rem 3rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    position: relative;
    overflow: hidden;
}

.partnership-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="hexagons" width="20" height="20" patternUnits="userSpaceOnUse"><polygon points="10,1 19,6 19,14 10,19 1,14 1,6" fill="none" stroke="%23e2e8f0" stroke-width="0.5" opacity="0.2"/></pattern></defs><rect width="100" height="100" fill="url(%23hexagons)"/></svg>');
    pointer-events: none;
}

.partnership-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.partnership-header {
    text-align: center;
    margin-bottom: 4rem;
}

.partnership-header h2 {
    font-size: 4rem;
    font-weight: 900;
    color: #1d1d1f;
    margin-bottom: 1rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.partnership-subtitle {
    font-size: 1.4rem;
    color: #4a5568;
    font-weight: 400;
    line-height: 1.5;
}

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

.partnership-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.card-infographic {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.5rem;
}

.infographic-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    position: relative;
}

.infographic-circle i {
    font-size: 3rem;
}

.card-infographic i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Colorful icons for partnership cards */
.partnership-card:nth-child(1) .card-infographic i {
    color: #2563eb;
}

.partnership-card:nth-child(2) .card-infographic i {
    color: #7c3aed;
}

.partnership-card:nth-child(3) .card-infographic i {
    color: #059669;
}

.partnership-card:nth-child(4) .card-infographic i {
    color: #ea580c;
}

.infographic-line {
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #e5e7eb, #d1d5db);
    border-radius: 2px;
}

.partnership-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.partnership-card p {
    color: #6e6e73;
    line-height: 1.6;
    font-size: 1.05rem;
    font-weight: 400;
}

.partnership-cta {
    background: linear-gradient(135deg, #1d1d1f 0%, #374151 100%);
    border-radius: 24px;
    padding: 3rem;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.partnership-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots-white" width="10" height="10" patternUnits="userSpaceOnUse"><circle cx="5" cy="5" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23dots-white)"/></svg>');
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.cta-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.btn-partnership {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.cta-visual {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.d365-logo {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.d365-logo i {
    font-size: 3rem;
    color: #2563eb;
    display: block;
    margin-bottom: 0.5rem;
}

.d365-logo-img {
    width: var(--logo-3xl);
    object-fit: contain;
    display: block;
    margin: 0 auto;
    filter: brightness(0) invert(1);
}

.d365-logo span {
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
}

/* About Section */
.about-section {
    padding: 8rem 3rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    position: relative;
    overflow: hidden;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots-about" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%23e2e8f0" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23dots-about)"/></svg>');
    pointer-events: none;
}

.about-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.about-header {
    text-align: center;
    margin-bottom: 5rem;
}

.about-header h2 {
    font-size: 4.5rem;
    font-weight: 900;
    color: #1d1d1f;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-align: center;
}

.about-subtitle {
    font-size: 1.4rem;
    color: #6e6e73;
    font-weight: 400;
    text-align: center;
    letter-spacing: 0.01em;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-bottom: 5rem;
}

.about-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.04);
    text-align: center;
    position: relative;
}

.about-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-lg);
}

.about-icon i {
    font-size: 3rem;
    color: var(--color-primary);
}

.about-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.about-card p {
    color: #6e6e73;
    line-height: 1.6;
    font-size: 1.05rem;
    font-weight: 400;
    margin: 0;
}

.about-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.tech-stack {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 800px;
}

.tech-stack .tech-item {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.tech-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.tech-stack .tech-item i {
    font-size: 3rem;
    color: var(--color-primary);
}

.tech-icon-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.tech-stack .tech-item span {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-primary);
}

/* AI Section - Apple Style */
.ai-section {
    padding: 8rem 3rem;
    background: white;
    position: relative;
    overflow: hidden;
}

.ai-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.ai-hero {
    text-align: center;
    margin-bottom: 6rem;
}

.ai-hero h2 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.ai-hero p {
    font-size: 1.5rem;
    color: #6e6e73;
    font-weight: 500;
    margin-bottom: 2rem;
}

.ai-description {
    max-width: 800px;
    margin: 0 auto;
}

.ai-description p {
    font-size: 1.2rem;
    color: #666;
    line-height: 1.6;
}

.ai-tabs-container {
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 4rem;
}

.ai-tabs {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.ai-tabs-nav {
    display: flex;
    flex-direction: column;
    background: #f5f5f7;
    border-radius: 12px;
    padding: 0.5rem;
    gap: 0.25rem;
}

.ai-tab-btn {
    background: transparent;
    border: none;
    border-radius: 8px;
    padding: 1.5rem 2rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    position: relative;
}

.ai-tab-btn.active {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tab-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.tab-header i {
    font-size: 3rem;
    color: #6e6e73;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ai-tab-btn.active .tab-header i {
    color: #1d1d1f;
}

.ai-tab-btn h4 {
    font-size: 1.1rem;
    font-weight: 500;
    color: #6e6e73;
    margin: 0;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ai-tab-btn.active h4 {
    color: #1d1d1f;
    font-weight: 600;
}

.ai-tab-btn p {
    font-size: 0.9rem;
    color: #86868b;
    margin: 0;
    margin-left: 2.1rem;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ai-tab-btn.active p {
    color: #6e6e73;
}

.ai-tabs-content {
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    border: none;
}

.ai-tab-panel {
    display: none;
}

.ai-tab-panel.active {
    display: block;
}

/* Desktop: Hide mobile content, show desktop content */
@media (min-width: 769px) {
    .ai-tab-content-mobile {
        display: none !important;
    }
    
    .ai-tabs-content {
        display: block;
    }
}

.tab-panel-content h3 {
    font-size: 2rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.tab-panel-content p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.tab-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tab-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    color: #666;
    position: relative;
    padding-left: 1.5rem;
}

.tab-features li:before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0.75rem;
    color: #2563eb;
    font-weight: bold;
    font-size: 1rem;
}

.tab-features li:last-child {
    border-bottom: none;
}

/* Services Grid - Clean with FontAwesome */
.services-section {
    padding: 8rem 3rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23e2e8f0" stroke-width="0.5" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    pointer-events: none;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    margin-top: 4rem;
    position: relative;
    z-index: 1;
}

.service-card {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.service-infographic {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
}

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.service-icon i {
    font-size: 3rem;
}

/* Colorful icons for service cards - alternating colors */
.service-card:nth-child(1) .service-icon i { color: #2563eb; }
.service-card:nth-child(2) .service-icon i { color: #7c3aed; }
.service-card:nth-child(3) .service-icon i { color: #059669; }
.service-card:nth-child(4) .service-icon i { color: #ea580c; }
.service-card:nth-child(5) .service-icon i { color: #2563eb; }
.service-card:nth-child(6) .service-icon i { color: #7c3aed; }
.service-card:nth-child(7) .service-icon i { color: #059669; }
.service-card:nth-child(8) .service-icon i { color: #ea580c; }
.service-card:nth-child(9) .service-icon i { color: #2563eb; }
.service-card:nth-child(10) .service-icon i { color: #7c3aed; }

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.service-card p {
    color: #64748b;
    line-height: 1.6;
    font-size: 1.05rem;
    font-weight: 400;
}

/* Stats Section */
.stats-section {
    padding: 8rem 3rem;
    background: white;
    text-align: center;
}

.stats-hero {
    max-width: 800px;
    margin: 0 auto 6rem;
}

.stats-hero-title {
    font-size: 4rem;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.stats-hero-subtitle {
    font-size: 1.5rem;
    color: #6e6e73;
    font-weight: 500;
}

.stats-showcase {
    max-width: 1400px;
    margin: 0 auto 6rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    justify-items: center;
}

/* Left-align the last two items - place them in columns 1 and 2, leaving column 3 empty */
.stats-showcase .stat-showcase-item:nth-child(4) {
    grid-column: 1;
}

.stats-showcase .stat-showcase-item:nth-child(5) {
    grid-column: 2;
}

.stat-showcase-item {
    background: white;
    border-radius: 24px;
    padding: 3rem 2.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.04);
    text-align: left;
}

.stat-showcase-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

.stat-number-display {
    margin-bottom: 2rem;
    text-align: center;
}

.stat-number {
    font-size: 4.5rem;
    font-weight: 900;
    color: #2563eb;
    display: block;
    line-height: 1;
    letter-spacing: -0.02em;
}

.stat-unit {
    font-size: 1.1rem;
    color: #6e6e73;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.stat-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.stat-content p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}

.stats-commitment {
    max-width: 800px;
    margin: 0 auto;
}

.commitment-content {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.commitment-content h3 {
    font-size: 2rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 1.5rem;
}

.commitment-content p {
    font-size: 1.2rem;
    color: #666;
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    padding: 6rem 3rem;
    background: #000;
    color: white;
    text-align: center;
    border-radius: 40px;
    margin: 4rem 3rem;
}

.cta-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
}

.cta-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 3rem;
    line-height: 1.5;
}

.btn-cta {
    background: white;
    color: #000;
    padding: 1.5rem 3rem;
    border-radius: 15px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    font-size: 1.1rem;
}

/* Results Section (Our Services) */
.problem-section {
    padding: 8rem 3rem;
    background: white;
    text-align: center;
}

.services-hero {
    margin: 0 auto 6rem;
}

.services-hero-title {
    font-size: 4rem;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.services-hero-subtitle {
    font-size: 2rem;
    font-weight: 600;
    color: #2563eb;
    margin-bottom: 2rem;
}

.services-hero-description {
    font-size: 1.3rem;
    color: #666;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.services-showcase {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    justify-items: center;
}

/* Center the 7th service card (3rd row) - place it in column 2, leaving columns 1 and 3 empty */
.services-showcase .service-showcase-item:nth-child(7) {
    grid-column: 2;
}

.service-showcase-item {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.service-showcase-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

.service-showcase-visual {
    height: 240px;
    overflow: hidden;
    position: relative;
}

.service-showcase-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.service-showcase-item:hover .service-showcase-visual img {
    transform: scale(1.05);
}

.service-showcase-content {
    padding: 2.5rem;
    text-align: left;
}

.service-showcase-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.service-showcase-content p {
    font-size: 1rem;
    color: #666;
    line-height: 1.5;
}

/* Contact Section */
.contact-section {
    padding: 8rem 3rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="contact-dots" width="15" height="15" patternUnits="userSpaceOnUse"><circle cx="7.5" cy="7.5" r="1" fill="%23e2e8f0" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23contact-dots)"/></svg>');
    pointer-events: none;
}

.contact-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.contact-title {
    font-size: 4rem;
    font-weight: 900;
    color: #1d1d1f;
    margin-bottom: 1rem;
    text-align: center;
    letter-spacing: -0.02em;
}

.contact-subtitle {
    font-size: 1.4rem;
    color: #6e6e73;
    text-align: center;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.contact-item i {
    font-size: 3rem;
    color: #2563eb;
    width: 60px;
    text-align: center;
}

.contact-item h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 0.5rem;
}

.contact-item p {
    font-size: 1rem;
    color: #6e6e73;
    margin: 0;
}

.contact-form {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    font-family: var(--font-family);
    transition: border-color 0.3s ease;
    background: #f8fafc;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
    background: white;
}

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

.btn-contact {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
}

.btn-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

/* Mobile Responsive for Sections */
/* Tablet styles */
@media (max-width: 1024px) and (min-width: 769px) {
    .stats-showcase {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
        justify-items: center;
    }

    /* Reset positioning for tablet - let grid auto-place them */
    .stats-showcase .stat-showcase-item:nth-child(4),
    .stats-showcase .stat-showcase-item:nth-child(5) {
        grid-column: auto;
    }
}

@media (max-width: 768px) {
    .partnership-section {
        padding: 4rem 1.5rem;
    }

    .partnership-header h2 {
        font-size: 2.5rem;
    }

    .partnership-subtitle {
        font-size: 1.1rem;
    }

    .partnership-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .partnership-card {
        padding: 2rem;
    }

    .partnership-card h3 {
        font-size: 1.2rem;
    }

    .partnership-card p {
        font-size: 0.95rem;
    }

    .partnership-cta {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        padding: 2rem;
    }

    .cta-content h3 {
        font-size: 1.5rem;
    }

    .cta-content p {
        font-size: 1rem;
    }

    .d365-logo {
        padding: 1.5rem;
    }

    .d365-logo i {
        font-size: 2.5rem;
    }

    .d365-logo span {
        font-size: 1rem;
    }

    .about-section {
        padding: 4rem 1.5rem;
    }

    .about-header h2 {
        font-size: 2.5rem;
    }

    .about-subtitle {
        font-size: 1.1rem;
    }

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

    .about-card {
        padding: 2rem;
    }

    .about-card h3 {
        font-size: 1.2rem;
    }

    .about-card p {
        font-size: 1rem;
    }

    .tech-stack {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .tech-stack .tech-item {
        padding: 1.5rem;
    }

    .tech-stack .tech-item i {
        font-size: 2rem;
    }

    .tech-stack .tech-item span {
        font-size: 0.9rem;
    }

    .ai-section {
        padding: 4rem 1.5rem;
    }

    .ai-hero {
        margin-bottom: 3rem;
    }

    .ai-hero h2 {
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
    }

    .ai-hero p {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
    }

    .ai-description p {
        font-size: 1rem;
    }

    .ai-tabs-container {
        margin-top: 2rem;
    }

    .ai-tabs {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0;
        background: transparent;
        box-shadow: none;
        border: none;
        display: flex;
        flex-direction: column;
    }

    .ai-tabs-nav {
        flex-direction: column;
        background: white;
        border-radius: 16px;
        padding: 0;
        gap: 0;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
        overflow: hidden;
    }

    .ai-tab-btn {
        width: 100%;
        padding: 1.5rem;
        position: relative;
        border-bottom: 1px solid rgba(0, 0, 0, 0.04);
        margin: 0;
    }

    .ai-tab-btn:last-child {
        border-bottom: none;
    }

    .ai-tab-btn::after {
        content: '▼';
        position: absolute;
        right: 1.5rem;
        top: 50%;
        transform: translateY(-50%);
        font-size: 0.8rem;
        color: #6e6e73;
        transition: transform 0.3s ease;
    }

    .ai-tab-btn.active::after {
        transform: translateY(-50%) rotate(180deg);
    }

    .ai-tabs-content {
        display: none;
    }

    /* Hide mobile content on desktop */
    .ai-tab-content-mobile {
        display: none !important;
    }

    .ai-tab-panel {
        display: none;
        background: #f8f9fa;
        padding: 1.5rem;
        margin-top: 0;
        border-top: 1px solid rgba(0, 0, 0, 0.04);
        border-radius: 0 0 16px 16px;
    }

    .ai-tab-panel.active {
        display: block;
    }

    /* Mobile accordion: Show content after active button */
    .ai-tab-btn.active + .ai-tab-content-mobile {
        display: block !important;
    }

    .ai-tab-content-mobile {
        display: none;
        background: #f8f9fa;
        padding: 1.5rem;
        margin-top: 0;
        border-top: 1px solid rgba(0, 0, 0, 0.04);
        border-radius: 0 0 16px 16px;
    }

    .tab-panel-content h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .tab-panel-content p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .tab-features li {
        font-size: 0.9rem;
        padding: 0.5rem 0;
        padding-left: 2rem;
    }

    .tab-features li:before {
        top: 0.5rem;
        font-size: 0.9rem;
    }

    .tab-header {
        gap: 0.5rem;
    }

    .tab-header i {
        font-size: 1rem;
    }

    .ai-tab-btn h4 {
        font-size: 1rem;
    }

    .ai-tab-btn p {
        font-size: 0.8rem;
        margin-left: 1.5rem;
    }

    .services-section {
        padding: 4rem 1.5rem;
    }

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

    .service-card {
        padding: 2rem;
    }

    .service-card h3 {
        font-size: 1.3rem;
    }

    .service-card p {
        font-size: 1rem;
    }

    .stats-section {
        padding: 4rem 1.5rem;
    }

    .stats-hero {
        margin-bottom: 3rem;
    }

    .stats-hero-title {
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
    }

    .stats-hero-subtitle {
        font-size: 1.2rem;
    }

    .stats-showcase {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 3rem;
        justify-items: stretch;
    }

    /* Reset grid positioning for mobile - each card takes full width */
    .stats-showcase .stat-showcase-item:nth-child(4),
    .stats-showcase .stat-showcase-item:nth-child(5) {
        grid-column: 1;
    }

    .stat-showcase-item {
        padding: 2rem 1.5rem;
    }

    .stat-number {
        font-size: 3.5rem;
    }

    .stat-unit {
        font-size: 1rem;
    }

    .stat-content h3 {
        font-size: 1.3rem;
    }

    .stat-content p {
        font-size: 0.95rem;
    }

    .commitment-content {
        padding: 2rem;
    }

    .commitment-content h3 {
        font-size: 1.5rem;
    }

    .commitment-content p {
        font-size: 1rem;
    }

    .cta-section {
        padding: 4rem 1.5rem;
        margin: 2rem 1.5rem;
        border-radius: 20px;
    }

    .cta-title {
        font-size: 2rem;
    }

    .cta-subtitle {
        font-size: 1.1rem;
    }

    .btn-cta {
        padding: 1.25rem 2rem;
        font-size: 1rem;
    }

    .contact-section {
        padding: 4rem 1.5rem;
    }

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

    .contact-subtitle {
        font-size: 1.1rem;
    }

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

    .contact-item {
        padding: 1.5rem;
    }

    .contact-item i {
        font-size: 1.2rem;
        width: 30px;
    }

    .contact-item h4 {
        font-size: 1.1rem;
    }

    .contact-item p {
        font-size: 0.9rem;
    }

    .contact-form {
        padding: 2rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
    }

    .btn-contact {
        padding: 0.875rem 2rem;
        font-size: 0.95rem;
    }

    .problem-section {
        padding: 4rem 1.5rem;
    }

    .services-hero {
        margin-bottom: 3rem;
    }

    .services-hero-title {
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
    }

    .services-hero-subtitle {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .services-hero-description {
        font-size: 1.1rem;
    }

    .services-showcase {
        grid-template-columns: 1fr;
        gap: 2rem;
        justify-items: stretch;
    }

    /* Reset centering for mobile - let it take full width */
    .services-showcase .service-showcase-item:nth-child(7) {
        grid-column: auto;
        justify-self: auto;
        max-width: none;
    }

    .service-showcase-visual {
        height: 200px;
    }

    .service-showcase-content {
        padding: 1.5rem;
    }

    .service-showcase-content h3 {
        font-size: 1.3rem;
    }

    .service-showcase-content p {
        font-size: 0.95rem;
    }
}

@media (max-width: 640px) {
    .tech-stack {
        grid-template-columns: repeat(2, 1fr);
    }

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

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