/* Cloud Solutions Page Specific Styles */

.cloud-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.5)), url('../images/cloud_bg.png');
    background-size: cover;
    background-position: center;
    color: #fff;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 3rem;
}

.content-grid.reverse {
    grid-template-columns: 1fr 1fr;
    direction: rtl;
}

.content-grid.reverse .content-text,
.content-grid.reverse .content-image {
    direction: ltr;
}

.content-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.check-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.check-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.75rem;
}

.check-list li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.solution-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.solution-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.solution-icon {
    margin-bottom: 1.5rem;
}

.solution-icon img {
    width: 64px;
    height: 64px;
}

.solution-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.solution-card ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-top: 1rem;
}

.solution-card ul li {
    margin-bottom: 0.5rem;
}

.case-studies-slider {
    margin-top: 3rem;
    position: relative;
}

.case-study {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 3rem;
}

.case-study-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.case-study-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.company {
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: #6c757d;
}

.read-more {
    display: inline-block;
    margin-top: 1.5rem;
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
}

.read-more:hover {
    text-decoration: underline;
}

.case-study-nav {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.prev-case, .next-case {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    margin: 0 0.5rem;
    transition: background-color 0.3s;
}

.prev-case:hover, .next-case:hover {
    background-color: var(--primary-dark);
}

.cta-content {
    text-align: center;
    color: white;
    padding: 2rem 0;
}

.cta-content h2 {
    margin-bottom: 1rem;
}

.cta-content p {
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Enhanced feature icons with better contrast and visual appeal */
.feature-icon, .solution-icon {
    margin-bottom: 1.5rem;
    height: 80px;
    width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 10px 20px rgba(0, 212, 176, 0.3);
    position: relative;
    overflow: hidden;
}

.feature-icon::after, .solution-icon::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
    border-radius: 50%;
}

.feature-icon i, .solution-icon i {
    font-size: 2.5rem;
    color: white;
    position: relative;
    z-index: 2;
}

.feature-card:hover .feature-icon, .solution-card:hover .solution-icon {
    transform: scale(1.1);
    box-shadow: 0 15px 30px rgba(0, 212, 176, 0.4);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon i, .solution-card:hover .solution-icon i {
    animation: pulse 1s infinite alternate;
}

@keyframes pulse {
    from { transform: scale(1); }
    to { transform: scale(1.2); }
}

/* Enhanced contact icons with consistent styling */
.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    position: relative;
    box-shadow: 0 10px 20px rgba(0, 212, 176, 0.2);
    transition: all 0.3s ease;
}

.contact-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
    border-radius: 12px;
    opacity: 0.6;
}

.contact-icon i {
    font-size: 1.8rem;
    color: white;
    position: relative;
}

.contact-details li:hover .contact-icon {
    transform: translateY(-5px) rotate(5deg);
    box-shadow: 0 15px 30px rgba(0, 212, 176, 0.3);
}

/* Custom icon colors for distinction */
/* Remove styles for .cloud-feature-icon, .cloud-testimonial-card, .cloud-pricing-card */
/* Remove the specific .contact-details li:nth-child() background styles,
   as these should ideally be handled by the main contact.css or components.css,
   or potentially specific classes added in the HTML if variations are needed. */
/*
.contact-details li:nth-child(1) .contact-icon {
    background: linear-gradient(135deg, #4a6cf7, #2651f3);
}

.contact-details li:nth-child(2) .contact-icon {
    background: linear-gradient(135deg, #f7734a, #f32651);
}

.contact-details li:nth-child(3) .contact-icon {
    background: linear-gradient(135deg, #4af7a8, #26f36a);
}
*/

/* Add any other truly necessary cloud-specific overrides below */

/* --- New Overview Section Layout --- */
.overview-section {
    background-color: white; /* Or var(--light) if preferred */
}

.overview-grid-layout {
    display: grid;
    grid-template-columns: 40% 1fr; /* Image 40%, Content auto */
    gap: 3rem; /* Adjust gap as needed */
    align-items: center; /* Vertically align items */
}

.overview-image-col img {
    width: 100%;
    height: auto;
    max-width: 100%; /* Ensure image is responsive */
}

.overview-content-col .section-header {
    margin-bottom: 2rem; /* Space below header */
    text-align: left; /* Align header text left */
}
.overview-content-col .section-header h2 {
     margin-bottom: 0.5rem;
}
.overview-content-col .section-header p {
    margin-left: 0; /* Override centered paragraph margin */
    max-width: none; /* Override max-width */
}


.overview-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2x2 grid */
    gap: 1.5rem; /* Gap between feature boxes */
}

.feature-box {
    background-color: var(--light); /* Light background for boxes */
    padding: 1.5rem;
    border-radius: var(--border-radius-md);
    text-align: center;
    border: 1px solid var(--gray-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-box-icon {
    font-size: 2rem;
    color: var(--primary); /* Use primary color */
    margin-bottom: 1rem;
    display: inline-block;
}

.feature-box h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
    font-weight: 600;
}

.feature-box p {
    font-size: 0.95rem;
    color: var(--gray);
    margin-bottom: 0;
}

/* Responsive adjustments for overview grid */
@media (max-width: 992px) {
    .overview-grid-layout {
        grid-template-columns: 1fr; /* Stack columns on smaller screens */
        gap: 2rem;
    }
    .overview-image-col {
        order: 2; /* Move image below content */
        text-align: center; /* Center image */
    }
    .overview-image-col img {
        max-width: 80%; /* Optional: reduce image size */
    }
    .overview-content-col {
        order: 1; /* Move content above image */
    }
     .overview-content-col .section-header {
        text-align: center; /* Center header text */
    }
     .overview-content-col .section-header p {
        margin-left: auto;
        margin-right: auto;
        max-width: 700px;
    }
}

@media (max-width: 576px) {
    .overview-features-grid {
        grid-template-columns: 1fr; /* Stack feature boxes */
    }
     .overview-image-col img {
        max-width: 100%;
    }
}

/* --- Custom Solution CTA Styling --- */
.custom-solution-cta {
    background-color: var(--dark); /* Dark background */
    color: white;
    padding: 3rem 2rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    margin-top: 4rem; /* Space above the CTA */
    box-shadow: var(--shadow-lg);
}

.custom-solution-cta h2 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.custom-solution-cta p {
    color: var(--gray-light);
    max-width: 700px;
    margin: 0 auto 2rem auto; /* Center paragraph */
    line-height: 1.7;
}

.custom-solution-cta .btn-secondary {
    /* Use secondary button styles if defined, or define here */
    background: var(--gradient-purple); /* Example secondary style */
    box-shadow: var(--shadow-highlight-secondary);
}

.custom-solution-cta .btn-secondary:hover {
     background: var(--secondary); /* Adjust hover */
     box-shadow: var(--shadow-glow-secondary), var(--shadow-md);
}

/* Responsive adjustments if needed */
@media (max-width: 768px) {
    .custom-solution-cta h2 {
        font-size: 1.5rem;
    }
    .custom-solution-cta {
        padding: 2rem 1.5rem;
    }
}

/* --- Spacing Adjustments for Cloud Page --- */

/* Reduce space *above* the testimonials section */
#testimonials.section {
    padding-top: 4rem; /* Reduce from default 6rem or 8rem */
}

/* Reduce space *above* the pricing section */
#pricing.section {
     padding-top: 4rem; /* Reduce from default */
}

/* Reduce space *above* the FAQ section */
#faq.section {
    padding-top: 4rem; /* Reduce from default */
}

/* Reduce space *above* the Contact section */
#contact.section { /* Target the contact section included via PHP */
    padding-top: 4rem; /* Reduce from default */
}

/* Add this to cloud.css for the 3+3 layout */
#ecosystem .services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns instead of 4 */
    gap: 2rem;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    #ecosystem .services-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on medium screens */
    }
}

@media (max-width: 576px) {
    #ecosystem .services-grid {
        grid-template-columns: 1fr; /* 1 column on small screens */
    }
} 