/* =========================================
   SERVICES PAGE STYLES
========================================= */

/* --- 1. Hero Section --- */
.servicesHero {
    width: 100%;
    height: 110vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #ffffff; /* Light Theme */
    color: #010008;
    margin-top: -120px;
    padding-top: 120px;
}

#servicesCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.6;
}

.servHeroContainer {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1000px;
    padding: 0 20px;
}

.hero-badge {
    display: inline-block;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #453fff;
    margin-bottom: 30px;
    border: 1px solid rgba(69, 63, 255, 0.2);
    padding: 10px 20px;
    border-radius: 50px;
    background: rgba(69, 63, 255, 0.05);
    backdrop-filter: blur(10px);
    font-weight: 600;
}

.servHeroContainer h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    color: #010008;
    margin-bottom: 30px;
    font-weight: 800;
}

.servHeroContainer p {
    font-size: 1.25rem;
    color: #aaa;
    max-width: 600px;
    margin: 0 auto 50px auto;
    line-height: 1.6;
}

.grad-text-cyan {
    background: linear-gradient(135deg, #fff 30%, #00F0FF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.grad-text-violet {
    background: linear-gradient(135deg, #453fff 0%, #7000FF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Service Finder */
.service-finder {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.service-finder span {
    color: #888;
    font-size: 1rem;
}

.finder-links {
    display: flex;
    gap: 10px;
}

.finder-links a {
    color: #555;
    border: 1px solid rgba(0,0,0,0.1);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    transition: 0.3s;
    font-weight: 500;
}

.finder-links a:hover {
    background: #010008;
    color: #fff;
}

/* --- 2. Core Pillars (Sticky Sidebar) --- */
.pillarsSection {
    width: 100%;
    padding: 120px 0;
    background: #fff;
}

.pillarsContainer {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    gap: 60px;
}

.pillar-sidebar {
    width: 30%;
    position: sticky;
    top: 150px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px 0;
}

.sidebar-line {
    position: absolute;
    left: 28px;
    top: 40px;
    bottom: 40px;
    width: 2px;
    background: rgba(0,0,0,0.05);
    z-index: 0;
}

.pillar-link {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px;
    border-radius: 16px;
    transition: 0.3s;
    position: relative;
    z-index: 1;
    background: transparent;
    border: 1px solid transparent; 
}

.pillar-link:hover {
    background: #fff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
}

.pillar-link.active {
    background: #fff;
    border-color: rgba(69, 63, 255, 0.1);
    box-shadow: 0 10px 30px rgba(69, 63, 255, 0.08);
}

.p-icon-box {
    width: 56px;
    height: 56px;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #aaa;
    transition: 0.3s;
}

.pillar-link.active .p-icon-box {
    background: #453fff;
    color: #fff;
    border-color: #453fff;
    box-shadow: 0 5px 15px rgba(69, 63, 255, 0.3);
}

.p-info {
    display: flex;
    flex-direction: column;
}

.p-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #453fff;
    font-weight: 700;
}

.p-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #010008;
}

.pillar-content {
    width: 65%;
    display: flex;
    flex-direction: column;
    gap: 100px;
}

.pillar-block {
    scroll-margin-top: 150px; /* Offset for sticky header */
}

.block-header {
    margin-bottom: 40px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.block-header h3 {
    font-size: 2.5rem;
    color: #010008;
    margin-bottom: 10px;
}

.block-header p {
    font-size: 1.1rem;
    color: #666;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.service-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 30px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-height: 280px; /* Ensure consistent height */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-color: #453fff;
}

.service-card i {
    font-size: 2rem;
    color: #453fff;
    margin-bottom: 20px;
    display: block;
    transition: transform 0.3s ease;
}

.service-card:hover i {
    transform: scale(1.1);
}

.service-card h4 {
    font-size: 1.3rem;
    color: #010008;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 20px;
    position: relative;
}

/* Hover Reveal Details */
.service-details {
    margin-top: auto;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    max-height: 0;
    overflow: hidden;
    width: 100%;
}

.service-card:hover .service-details {
    opacity: 1;
    transform: translateY(0);
    max-height: 200px; /* Adjust based on content */
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.service-details ul {
    list-style: none;
    padding: 0;
}

.service-details li {
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-details li i {
    font-size: 1rem;
    color: #453fff;
    margin-bottom: 0; /* Reset icon margin inside list */
}

/* --- New: Additional Services Section --- */
.additionalServicesSection {
    width: 100%;
    padding: 80px 0;
    background: #fff;
    border-top: 1px solid #f1f1f1;
}

.addServContainer {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.add-Header {
    margin-bottom: 40px;
}

.add-Header h3 {
    font-size: 2rem;
    color: #010008;
    margin-bottom: 10px;
}

.add-Header p {
    color: #666;
    font-size: 1.1rem;
}

.add-serv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.add-serv-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px;
    background: #f8f9ff;
    border-radius: 12px;
    transition: 0.3s;
    border: 1px solid transparent;
}

.add-serv-item:hover {
    background: #fff;
    border-color: #e5e7ff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transform: translateY(-3px);
}

.add-serv-item i {
    color: #453fff;
    font-size: 1.2rem;
}

.add-serv-item span {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

/* --- 3. Why Our System Works --- */
.whySystemSection {
    width: 100%;
    padding: 120px 0;
    background: #fcfcfc;
    position: relative;
}

.whySysContainer {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.why-Header {
    text-align: center;
    margin-bottom: 80px;
}

.why-Header h2 {
    font-size: 3rem;
    color: #010008;
    margin-bottom: 15px;
}

.why-Header p {
    font-size: 1.2rem;
    color: #555;
}

.sys-Grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.sys-Card-Modern {
    background: #fff;
    padding: 40px 30px;
    border-radius: 24px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
    transition: 0.3s ease;
    position: relative;
    overflow: hidden;
}

.sys-Card-Modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(69, 63, 255, 0.1);
    border-color: rgba(69, 63, 255, 0.2);
}

.sys-Icon-Box {
    width: 60px;
    height: 60px;
    background: rgba(69, 63, 255, 0.05);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #453fff;
    margin-bottom: 25px;
    transition: 0.3s;
}

.sys-Card-Modern:hover .sys-Icon-Box {
    background: #453fff;
    color: #fff;
    transform: scale(1.1) rotate(-5deg);
}

.sys-Card-Modern h3 {
    font-size: 1.5rem;
    color: #010008;
    margin-bottom: 15px;
}

.sys-Card-Modern p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}

/* Horizontal Process Steps Layout Adjustment */
.sys-Grid {
    /* Ensure grid layout for horizontal steps on desktop */
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
}

.sys-Card-Modern {
    width: 100%;
}

/* --- 4. CTA Section --- */
.servicesCtaSection {
    padding: 120px 0;
    background: #010008;
    text-align: center;
}

.servCtaContainer {
    max-width: 800px;
    margin: 0 auto;
}

.servCtaContainer h2 {
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.1;
}

.servCtaContainer p {
    font-size: 1.2rem;
    color: #aaa;
    margin-bottom: 40px;
}

/* Responsive */
@media (max-width: 992px) {
    .servHeroContainer h1 { font-size: 3.5rem; }
    
    .pillarsContainer { flex-direction: column; }
    .pillar-sidebar { 
        width: 100%; 
        flex-direction: row; 
        overflow-x: auto;
        white-space: nowrap;
        background: #fff;
        z-index: 10;
        position: sticky;
        top: 80px; /* Below header */
        padding: 15px 0;
        border-bottom: 1px solid #eee;
        scroll-behavior: smooth;
        -ms-overflow-style: none;  /* IE and Edge */
        scrollbar-width: none;  /* Firefox */
    }
    .pillar-sidebar::-webkit-scrollbar {
        display: none; /* Hide scrollbar for Chrome, Safari and Opera */
    }
    .sidebar-line { display: none; }
    .pillar-link { 
        padding: 10px 15px; 
        min-width: 260px; /* Ensure width for horizontal scroll */
        flex: 0 0 auto; /* Prevent flexbox from squishing the cards */
        background: #f8f9ff;
    }
    .pillar-content { width: 100%; gap: 60px; }
    
    .sys-Grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .servicesHero { min-height: 85vh; height: auto; padding: 180px 0 100px 0; }
    .servHeroContainer h1 { font-size: 2.8rem; }
    
    .service-finder { flex-direction: column; }
    .finder-links { flex-wrap: wrap; justify-content: center; }
    
    .service-grid { grid-template-columns: 1fr; }
    
    .servCtaContainer h2 { font-size: 2.5rem; }
}