/* Updated Consulting Page Styles */
.consulting-section {
    margin: 0;
    padding: 60px;
    border-radius: 0;
    box-shadow: none;
}

.consulting-section:first-child {
    margin-top: 0;
}

.consulting-section:last-child {
    margin-bottom: 60px;
}

.container {
    margin: 0;
    padding: 0;
}

.split-content {
    align-items: flex-start;
    gap: 40px;
}

.split-content.reverse {
    flex-direction: row-reverse;
}

.left-content {
    flex: 1;
}

.right-content {
    flex: 1.5;
}

.left-content h2 {
    font-size: 2.8em;
    color: #1a1a1a;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 20px;
}

.highlight-text {
    font-size: 1.2em;
    color: #666;
    line-height: 1.4;
    margin-top: 20px;
}

.right-content h3 {
    font-size: 1.8em;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.right-content p {
    margin-bottom: 30px;
    line-height: 1.6;
    color: #666;
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: #0066cc;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: #0052a3;
    transform: translateY(-2px);
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.feature-list li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    color: #666;
}

.feature-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #0066cc;
    font-weight: bold;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.metric {
    text-align: center;
}

.metric .number {
    display: block;
    font-size: 2.5em;
    font-weight: 600;
    color: #0066cc;
    margin-bottom: 10px;
}

.metric .label {
    color: #666;
    font-size: 1.1em;
}

/* Responsive Design */
@media (max-width: 968px) {
    .split-content {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .split-content.reverse {
        flex-direction: column;
    }

    .feature-list li {
        text-align: left;
    }

    .left-content h3 {
        font-size: 2.4em;
    }
}

@media (max-width: 576px) {
    .consulting-section {
        padding: 30px 20px;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.title-box {
    background-color: white;
    padding: 40px 40px 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    margin-right: -20px;
    z-index: 2;
}

.title-box h2 {
    color: #0071e3;
    font-size: 2.5em;
    line-height: 1.2;
    font-weight: 500;
}

.content-divider {
    width: 40px;
    height: 2px;
    background-color: #0071e3;
    margin-bottom: 20px;
}

.right-content p {
    color: #333;
    line-height: 1.8;
    font-size: 1.1em;
}

@media (max-width: 968px) {
    .title-box {
        margin-right: 0;
        margin-bottom: -20px;
    }
    
    .split-content {
        text-align: left;
    }
}

.right-content strong {
    color: #0071e3;
    font-weight: 600;
}

.features-title {
    color: #fff;
    font-size: 2.5em;
    margin-bottom: 40px;
    font-weight: 500;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0;
    margin-top: 60px;
}

.feature-item {
    color: #fff;
    text-align: left;
    padding: 40px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

.feature-item:last-child {
    border-right: none;
}

.feature-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.feature-item h3 {
    font-size: 1.5em;
    margin-bottom: 20px;
    font-weight: 500;
    color: #fff;
}

.feature-item p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    font-size: 1em;
}

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

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-item {
        text-align: center;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .feature-item:last-child {
        border-bottom: none;
    }
}

.consulting-section:nth-child(1) {
    background: linear-gradient(135deg, #0072db 0%, #4da3ff 100%);
    color: #fff;
    padding: 80px 60px;
}

.consulting-section:nth-child(2) {
    background: linear-gradient(135deg, #1a4567 0%, #4e9ad1 100%);
    color: #fff;
    padding: 80px 60px;
}

.consulting-section:nth-child(3) {
    background: linear-gradient(135deg, #2b1055 0%, #7597de 100%);
    color: #fff;
    padding: 80px 60px;
}

/* Animation classes */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, transform;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Add staggered delays for children */
.fade-in-section .title-box,
.fade-in-section .right-content,
.fade-in-section .feature-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section.is-visible .title-box {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.fade-in-section.is-visible .right-content {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

.fade-in-section.is-visible .feature-item:nth-child(1) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.fade-in-section.is-visible .feature-item:nth-child(2) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

.fade-in-section.is-visible .feature-item:nth-child(3) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.6s;
}

/* Dark Section Styles */
.dark-section {
    position: relative;
    padding: 120px 60px;
    color: white;
    overflow: hidden;
    background-color: transparent;
}

.section-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../../images/solutions/consulting/sec4.jpg');
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.section-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
}

.section-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.dark-section-title {
    font-size: 1.2em;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: #fff;
}

.dark-section-subtitle {
    font-size: 2.5em;
    line-height: 1.2;
    margin-bottom: 30px;
    color: #fff;
}

.dark-section-text {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
}

.dark-section-button {
    display: inline-flex;
    align-items: center;
    color: white;
    text-decoration: none;
    font-size: 1.1em;
    padding: 12px 24px;
    border: 2px solid white;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.dark-section-button:hover {
    background: white;
    color: black;
}

.dark-section-button .arrow {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.dark-section-button:hover .arrow {
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .dark-section {
        padding: 80px 30px;
    }

    .dark-section-subtitle {
        font-size: 2em;
    }

    .section-content {
        max-width: 100%;
    }
}

/* Page Header Styles */
.page-header {
    padding: 180px 20px 100px;
    text-align: center;
    position: relative;
    background-image: url('../../images/solutions/implementation.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    margin-top: 60px;
}

/* Add overlay to ensure text readability */
.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);  /* Dark overlay for better text contrast */
}

/* Position content above the overlay */
.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-header p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    margin: 0 auto;
}

/* Section 4 Styles */
.section-4 {
    padding: 180px 20px 100px;
    text-align: center;
    position: relative;
    background-image: url('../../images/solutions/consulting/sec4.jpg');  /* Correct path */
    background-size: cover;
    background-position: center;
    color: white;
}

/* Add overlay to ensure text readability */
.section-4::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);  /* Dark overlay for better text contrast */
}

/* Position content above the overlay */
.section-4 .container {
    position: relative;
    z-index: 2;
}

/* Base consulting section styles */
.consulting-section {
    margin: 0;
    padding: 60px;
    border-radius: 0;
    box-shadow: none;
}

/* Section specific styles */
.consulting-section:nth-child(1) {
    background: linear-gradient(135deg, #0072db 0%, #4da3ff 100%);
    color: #fff;
    padding: 80px 60px;
}

.consulting-section:nth-child(2) {
    background: linear-gradient(135deg, #1a4567 0%, #4e9ad1 100%);
    color: #fff;
    padding: 80px 60px;
}

.consulting-section:nth-child(3) {
    background: linear-gradient(135deg, #2b1055 0%, #7597de 100%);
    color: #fff;
    padding: 80px 60px;
}

/* Update text colors for the gradient sections */
.consulting-section:nth-child(1) .title-box,
.consulting-section:nth-child(2) .title-box {
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.consulting-section:nth-child(1) .title-box h2,
.consulting-section:nth-child(2) .title-box h2 {
    color: #fff;
}

.consulting-section:nth-child(1) .content-divider,
.consulting-section:nth-child(2) .content-divider {
    background-color: #fff;
}

.consulting-section:nth-child(1) .right-content p,
.consulting-section:nth-child(2) .right-content p {
    color: rgba(255, 255, 255, 0.9);
}

.consulting-section:nth-child(1) .right-content strong,
.consulting-section:nth-child(2) .right-content strong {
    color: #fff;
}

/* Add this new style for right-aligned dark section */
.dark-section.right-aligned .section-content {
    margin-left: auto;  /* Push content to the right */
    margin-right: 0;
}

/* Section Navigation Styles */
.section-nav {
    position: sticky;
    top: 60px;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 100;
    margin-bottom: 0;
    text-align: center;
}

.section-nav ul {
    display: inline-flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.section-nav li {
    margin: 0;
    padding: 0;
}

.section-nav a {
    display: block;
    padding: 15px 25px;
    color: #333;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.section-nav a:hover {
    color: #0072db;
    border-bottom-color: #0072db;
}

.section-nav a.active {
    color: #0072db;
    border-bottom-color: #0072db;
}

/* Responsive Design */
@media (max-width: 768px) {
    .section-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .section-nav ul {
        width: max-content;
        padding: 0 20px;
        margin: 0 auto;
    }
    
    .section-nav a {
        padding: 15px 15px;
        font-size: 0.8em;
    }
}

/* Section 5 background */
#it-infrastructure .section-background {
    background-image: url('../../images/solutions/consulting/sec52.jpg');
    background-size: cover;
    background-position: center;
}