/*
 * IMPORTANT: For editing rules and coding guidelines, see AI_documents/Rules/Rules_for_the_AI.txt
 * For project overview and details, see AI_documents/Project_Overview_Doc.txt
 * 
 * Production Directory: http://ainspire.ai/css/services_page.css
 * Development Directory: http://localhost:8000/css/services_page.css
 * 
 * Used in Services Scroller located on home page 
 * /templates/service_page.php
 */ 

/* Services Page Specific Styles */

.service-hero {
    position: relative; 
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #000 0%, #0a0a0a 50%, #000 100%);
    z-index: 1;
}

.service-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

/* NEW: Split layout for hero section with purple gradient */
.service-hero-split { 
    background: linear-gradient(135deg, rgb(59 130 246 / 43%) 0%, rgb(30 64 175 / 8%) 30%, rgb(37 99 235 / 5%) 60%, rgb(247 247 247 / 3%) 100%);
    position: relative;
}

/* Add an additional overlay for more depth */
.service-hero-split::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, 
        rgba(59, 130, 246, 0.05) 0%, 
        transparent 50%, 
        rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
    z-index: 1;
}

/* BACKUP - Original padding with fixed header compensation:
.service-content {
    padding: 120px 40px 80px;
}
*/

.service-content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 40px 40px; /* Reduced top padding - header now takes space naturally */
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    align-items: start;
}

/* NEW: Split content layout - 40/60 */
.service-content-split {
    grid-template-columns: 50% 60%;
    align-items: center;
}

.service-cover {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.service-cover-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    aspect-ratio: 16/10;
    display: flex;
    flex-direction: column;
    padding: 40px 30px;
    color: white;
    overflow: hidden;
    background: linear-gradient(135deg, #000000 0%, #000000 100%)
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.service-cover-image.has-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.5) 100%);
    z-index: 1;
}

.service-cover-image > * {
    position: relative;
    z-index: 2;
}

.service-cover-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
    opacity: 0.9;
    color: #3b82f6;
}

.service-cover-title {
    font-size: 2.2rem;
    text-align: center;
    font-weight: bold;
    line-height: 1.2;
    margin-top: 35px;
    margin-bottom: auto;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    color: white;
}

.service-cover-image:hover {
    transform: translateY(-10px) rotateY(5deg);
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(59, 130, 246, 0.3);
}

.service-info {
    color: white;
        width: 70%;
}

.service-category {
    color: #2563eb;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    
    /* background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 20px;
    border: 1px solid rgba(59, 130, 246, 0.2);  */
}

.service-title {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.service-subtitle {
    font-size: 20px;
    color: #a0a0a0;
    line-height: 1.5;
    margin-bottom: 40px;
    font-weight: 300;
}

/* NEW: Hero action section for the CTA button */
.hero-action-section {
    margin-top: 30px;
    text-align: left;
}

/* CTO Overview Section */
.cto-overview-section { 
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1); 
}

.cto-overview-title {
    color: #3b82f6;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.overview-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
}

.overview-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-5px);
}

.overview-item-title, h3.overview-item-title {
    color: #3b82f6;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.overview-item-text, h4.overview-item-text {
    color: #e2e8f0;
    font-size: 15px;
    font-weight: normal;
    line-height: 1.6;
    margin: 0;
}

/* NEW: Combined Value & Expert Wrapper */
.value-expert-wrapper {
    padding: 60px 0; 
}

/* NEW: Grid layout for value and expert sections */
.value-expert-grid {
    display: grid;
    grid-template-columns: 50% 50%;
    gap: 40px;
    align-items: start;
}

/* Value Points Section */
.value-section-service {
    margin-bottom: 0; /* Remove bottom margin since it's in grid now */
}

.value-title-service {
    color: #3b82f6;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.value-points {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.value-point {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.value-point:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateX(10px);
}

.value-icon {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: bold;
    flex-shrink: 0;
    margin-top: 2px;
}

.value-text, h4.value-text {
    color: #e2e8f0;
    font-size: 16px;
    line-height: 1.6;
    font-weight: 400;
    margin: 0;
}

/* Skills Section */
.skills-section {
    margin-bottom: 60px;
    padding: 40px 0; 
}

.skills-title {
    color: #3b82f6;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.skill-category {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
}

.skill-category:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-5px);
}

.skill-category-title, h3.skill-category-title {
    color: #3b82f6;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-item, h4.skill-item {
    background: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 13px;
    font-weight: normal;
    margin: 0;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.skill-item:hover, h4.skill-item:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    color: #fff;
}

/* Expert Section */
.expert-section {
    margin-bottom: 60px;
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* NEW: Sidebar version of expert section */
.expert-section-sidebar {
    margin-bottom: 0;
    padding: 0;
    border-top: none;
}

.expert-title {
    color: #3b82f6;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.expert-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px;
    display: flex;
    gap: 25px;
    align-items: flex-start;
    transition: all 0.3s ease;
}

/* NEW: Vertical layout for expert card in sidebar */
.expert-card-vertical {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 25px;
}

.expert-card-vertical .expert-image {
    width: 200px;
    height: 200px;
    margin-bottom: 15px;
}

.expert-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-5px);
}

.expert-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: bold;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
}

.expert-info {
    flex: 1;
}

.expert-name, h4.expert-name {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 5px;
}

 

.expert-info .expert-title, .expert-info h4.expert-title {
    color: #3b82f6;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: none;
    letter-spacing: normal;
}

.expert-bio, h4.expert-bio {
    color: #a0a0a0;
    font-size: 15px;
    font-weight: normal;
    line-height: 1.5;
    margin-bottom: 15px;
}

.expert-specializations {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center; /* Center for vertical layout */
}

.specialization-tag, h4.specialization-tag {
    background: rgba(59, 130, 246, 0.1);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid rgba(59, 130, 246, 0.2);
    margin: 0 5px 5px 0;
    display: inline-block;
}

/* Action Section */
.action-section {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.action-btn {
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    background: #2563eb;
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    width:160px;
    /* background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    padding: 16px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;  */
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.4);
}

.secondary-action-btn {
    background: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.secondary-action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    color: #fff;
}

/* Related Whitepapers Grid (reusing whitepaper page styles) */
.related-whitepapers-section {
    margin-top: 80px;
    padding: 60px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
    background: #000;
}

.related-whitepapers-title {
    color: #fff;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
}

.whitepapers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.whitepaper-grid-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: block;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.whitepaper-grid-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(37, 99, 235, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.whitepaper-grid-card:hover::before {
    opacity: 1;
}

.whitepaper-grid-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateY(-8px);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(59, 130, 246, 0.2);
}

/* Service Content Width Limitation */
.service-content-limited {
    max-width: 70%;
    margin: 0 auto;
    padding: 0 40px;
}

/* Responsive breakpoints */
@media (max-width: 1200px) {
    .service-content-limited {
        max-width: 85%;
    }
}

@media (max-width: 768px) {
    .service-content-limited {
        max-width: 95%;
        padding: 0 20px;
    }
}

.whitepaper-grid-header {
    padding: 25px 25px 15px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.whitepaper-grid-category {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.whitepaper-grid-content {
    padding: 20px 25px;
    flex: 1;
}

.whitepaper-grid-title {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.whitepaper-grid-card:hover .whitepaper-grid-title {
    color: #3b82f6;
}

.whitepaper-grid-desc {
    color: #a0a0a0;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.whitepaper-grid-footer {
    padding: 15px 25px 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.whitepaper-download-link {
    color: #3b82f6;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.whitepaper-grid-card:hover .whitepaper-download-link {
    color: #93c5fd;
    transform: translateX(5px);
}

/* Main content background */
.service-main {
        background: linear-gradient(135deg, #000 0%, #0a0a0a 50%, #000 100%);
    min-height: 100vh;
    position: relative;
    padding-bottom: 60px;
}

.service-main::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 15% 85%, rgba(59, 130, 246, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 85% 15%, rgba(37, 99, 235, 0.03) 0%, transparent 40%);
    pointer-events: none;
    z-index: -1;
}

/* Tablet Responsive */
@media (max-width: 1024px) and (min-width: 769px) {
    /* Keep value points in 2 columns on tablets */
    .value-points {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    /* Stack hero content vertically on mobile */
    .service-content-split {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 120px 20px 60px;
    }

    .service-info {
    color: white;
        width: 100%;
    }

    /* Stack value/expert grid on mobile */
    .value-expert-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Stack value points to single column on mobile */
    .value-points {
        grid-template-columns: 1fr;
    }

    /* Re-add border for expert section on mobile */
    .expert-section-sidebar {
        padding-top: 40px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* Adjust expert card for mobile */
    .expert-card-vertical {
        padding: 30px;
    }

    .service-title {
        font-size: 36px;
    }

    .service-subtitle {
        font-size: 18px;
    }

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

    .action-section {
        flex-direction: column;
    }

    .action-btn, .secondary-action-btn {
        text-align: center;
        justify-content: center;
    }

    .whitepapers-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .whitepaper-grid-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}