/* SERVICES SECTION - ENHANCED WITH FULL CONTENT DISPLAY */

.services {
    background: #ffffff;
    padding: 80px 0;
    position: relative;
    z-index: 10;
}

.container {
    max-width: 1400px; /* INCREASED from 1300px */
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

.services h2 {
    text-align: center;
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 4rem;
    font-weight: 500;
}

.services-container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    width: 100%;
    box-sizing: border-box;
}

/* Left sidebar navigation */
.services-nav {
    flex: 0 0 280px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-nav-item {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1.5px solid rgb(200, 196, 196);
    background: #e8e8e8;
    width: 100%;
    height: auto;
    text-align: left;
    position: relative;
    border-radius: 8px;
    margin: 0;
    box-shadow: none;
    box-sizing: border-box;
}

.service-nav-item::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 8px;
    background: transparent;
    transition: all 0.3s ease;
    border-radius: 0 8px 8px 0;
}

.service-nav-item.active {
    background: #e8e8e8;
    color: #2c3e50;
}

.service-nav-item.active::after {
    background: #00d4aa;
}

.service-nav-item:hover {
    background: #dcdcdc;
}

.service-nav-icon {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-right: 15px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.service-nav-icon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.service-nav-item.active .service-nav-icon {
    background: rgba(0, 212, 170, 0.1);
}

.service-nav-icon i {
    font-size: 24px;
    color: #6c757d;
    transition: all 0.3s ease;
}

.service-nav-item.active .service-nav-icon i {
    color: #00d4aa;
}

.service-nav-text {
    flex: 1;
}

.service-nav-text h3 {
    font-size: 1.05rem;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 0;
    transition: all 0.3s ease;
}

.service-nav-item.active .service-nav-text h3 {
    color: #2c3e50;
}

.service-nav-text span {
    display: none;
}

/* Right content area - FIXED TO SHOW ALL CONTENT */
.services-content {
    flex: 1;
    display: flex;
    align-items: flex-start;
    min-width: 0;
    overflow: visible; /* ADDED */
}

.service-content {
    display: none;
    width: 100%;
    overflow: visible; /* ADDED */
}

.service-content.active {
    display: block;
    width: 100%;
    box-sizing: border-box;
    overflow: visible; /* ADDED */
}

/* Content left - FIXED WIDTH CONSTRAINTS */
.service-content-left {
    width: 100%;
    max-width: none; /* REMOVED max-width constraint */
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    overflow: visible; /* ADDED */
}

/* Hide the right image section completely */
.service-content-right {
    display: none;
}

.service-content-header {
    margin-bottom: 30px;
}

.service-content h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: left;
    font-weight: 700;
}

.service-content h2 .highlight {
    color: #00d4aa;
}

.service-description {
    color: #323334;
    line-height: 1.7;
    margin-bottom: 35px;
    font-size: 1rem;
    max-width: 100%;
    word-spacing: 0.1em;
}

/* AI SERVICES SPECIFIC STYLING */
.ai-services-header {
    margin-bottom: 30px;
    border-bottom: 2px solid rgba(0, 212, 170, 0.2);
    padding-bottom: 15px;
}

.ai-services-header h3 {
    font-size: 1.4rem;
    color: #2c3e50;
    margin: 0;
    font-weight: 600;
    position: relative;
}

.ai-services-header h3::after {
    content: '';
    position: absolute;
    bottom: -17px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #00d4aa, #00a087);
    border-radius: 2px;
}

/* Enhanced Features Layout - GRID LAYOUT FOR BETTER SPACE USAGE */
.ai-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); /* RESPONSIVE COLUMNS */
    gap: 25px 30px; /* INCREASED gap */
    margin-bottom: 40px;
    max-width: 100%;
    overflow: visible; /* ADDED */
}

.ai-feature {
    background: none;
    border-radius: 0;
    padding: 0;
    border: none;
    transition: none;
    box-shadow: none;
    overflow: visible; /* ADDED */
}

.ai-feature:hover {
    transform: none;
    box-shadow: none;
    border-color: none;
}

.ai-feature::before {
    display: none;
}

.ai-feature-content {
    overflow: visible; /* ADDED */
}

.ai-feature-content h4 {
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    position: relative;
    padding-left: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.ai-feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
    overflow: visible; /* ADDED */
}

.ai-feature-list li {
    color: #36393c;
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 8px;
    padding-left: 15px;
    position: relative;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal; /* ADDED */
}

.ai-feature-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 0;
    color: #00d4aa;
    font-weight: 600;
    font-size: 1rem;
}

.ai-feature-list li:last-child {
    margin-bottom: 0;
}

/* AI Closing Statement */
.ai-closing-statement {
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.05) 0%, rgba(0, 212, 170, 0.1) 100%);
    border-radius: 15px;
    padding: 25px;
    margin-top: 30px;
    border-left: 4px solid #00d4aa;
    overflow: visible; /* ADDED */
}

.ai-closing-statement p {
    color: #2c3e50;
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0;
    font-weight: 400;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.ai-closing-statement strong {
    color: #00d4aa;
    font-weight: 600;
}

/* Regular Service Features (for other services) */
.service-features:not(.ai-features) {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* RESPONSIVE */
    gap: 12px 35px;
    margin-bottom: 30px;
    max-width: 100%;
    overflow: visible; /* ADDED */
}

.service-feature:not(.ai-feature) {
    display: flex;
    align-items: center;
    color: #36393c;
    font-size: 0.95rem;
    font-weight: 430;
    white-space: normal; /* CHANGED from nowrap */
    overflow: visible; /* CHANGED */
    text-overflow: clip; /* CHANGED */
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.service-feature:not(.ai-feature)::before {
    content: '';
    width: 5px;
    height: 5px;
    background: transparent;
    border-radius: 50%;
    margin-right: 12px;
    flex-shrink: 0;
    border: 3.1px solid #00d4aaa6;
}

/* CRITICAL: Add smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* CRITICAL: Prevent horizontal scroll issues */
body {
    overflow-x: hidden;
}

/* ENSURE NO CONTENT IS CUT OFF */
* {
    box-sizing: border-box;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 0 15px;
    }
    
    .ai-features {
        grid-template-columns: 1fr; /* Single column on smaller screens */
        gap: 20px;
    }
    
    .service-features:not(.ai-features) {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .services {
        padding: 60px 0;
    }

    .services-container {
        flex-direction: column;
        gap: 20px;
    }

    .services-nav {
        flex: none;
        width: 100%;
    }

    .service-nav-item {
        padding: 15px 20px;
        width: 100%;
    }

    .service-nav-icon img {
        width: 40px;
        height: 40px;
    }

    .service-content.active {
        display: block;
        width: 100%;
    }

    .service-content-left {
        width: 100%;
        max-width: none;
        margin: 0;
    }

    /* Mobile AI Features */
    .ai-features {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .ai-feature {
        padding: 0;
    }

    .ai-feature-content h4 {
        font-size: 1rem;
    }

    .ai-feature-list li {
        font-size: 0.9rem;
    }

    .ai-closing-statement {
        padding: 20px;
    }

    .ai-closing-statement p {
        font-size: 1rem;
    }

    /* Regular features mobile */
    .service-features:not(.ai-features) {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .service-feature:not(.ai-feature) {
        white-space: normal;
        justify-content: flex-start;
    }

    .services h2 {
        font-size: 2rem;
    }

    .service-content h2 {
        font-size: 1.5rem;
        text-align: center;
    }

    .service-description {
        font-size: 0.9rem;
        text-align: center;
    }

    .ai-services-header h3 {
        font-size: 1.2rem;
        text-align: center;
    }
}

/* Large screen optimization */
@media (min-width: 1200px) {
    .service-content-left {
        max-width: none; /* REMOVED constraint */
    }
    
    .service-features:not(.ai-features) {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px 40px;
    }

    .ai-features {
        grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
        gap: 25px 40px;
    }
}

/* Extra large screens */
@media (min-width: 1400px) {
    .ai-features {
        grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
        gap: 30px 50px;
    }
    
    .container {
        max-width: 1500px; /* INCREASED for very large screens */
    }
}