/* =========================================
   1. CORE INTEGRATION & VARIABLES
   ========================================= */
:root {
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --acc-purple: #1412a5;        
    --acc-violet: #3833c4;        
    --page-bg: #f8f9fa; 
    --page-text: #222222;
    --card-bg: #ffffff;
    --border-color: #e0e0e0;
    --nav-bg: rgba(255, 255, 255, 0.95);
}

[data-theme="dark"] {
    --page-bg: #050505;
    --page-text: #f0f0f0;
    --card-bg: #1e1e1e;
    --border-color: #333333;
    --nav-bg: rgba(10, 10, 10, 0.98);
}

/* =========================================
   2. MAIN LAYOUT & NAVIGATION
   ========================================= */

/* Navigation Sync */
#navbar {
    position: fixed; top: 0; left: 0; width: 100%; height: 80px;
    background: var(--nav-bg); border-bottom: 1px solid var(--border-color);
    display: flex; justify-content: space-between; align-items: center; padding: 0 5%;
    z-index: 1000; backdrop-filter: blur(12px);
}

.logo img { height: 50px; }
.nav-right { display: flex; align-items: center; gap: 30px; }
.nav-links { display: flex; gap: 25px; list-style: none; }
.nav-links a { font-weight: 500; font-size: 0.9rem; color: var(--page-text); opacity: 0.8; transition: 0.3s; }
.nav-links a:hover { color: var(--acc-purple); opacity: 1; }

/* SPA Layout Containers */
.spa-container { display: flex; padding-top: 80px; min-height: 100vh; }

.service-sidebar {
    width: 300px; padding: 40px 20px; border-right: 1px solid var(--border-color);
    position: fixed; height: calc(100vh - 80px); overflow-y: auto; background: var(--page-bg);
}

.content-area { flex: 1; margin-left: 300px; padding: 60px 8%; background: var(--card-bg); }
.content-panel { display: none; animation: fadeIn 0.4s ease; }
.content-panel.active { display: block; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Sidebar Buttons */
.tab-btn {
    display: flex; align-items: center; gap: 15px; width: 100%; padding: 14px 20px; margin-bottom: 8px;
    border: 1px solid transparent; border-radius: 12px; background: transparent; color: var(--page-text);
    cursor: pointer; transition: 0.3s; font-family: var(--font-heading); font-weight: 600; text-align: left;
}
.tab-btn:hover { background: rgba(20, 18, 165, 0.05); color: var(--acc-purple); }
.tab-btn.active { background: var(--acc-purple); color: white; box-shadow: 0 4px 15px rgba(20, 18, 165, 0.2); }


/* =========================================
   3. COMPONENT STYLES
   ========================================= */

/* Service Intro (Split Layout) */
.service-intro {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 50px;
}

.service-header { flex: 1; }
.service-header h1 { font-family: var(--font-heading); font-size: 3rem; margin-bottom: 15px; color: var(--page-text); line-height: 1.1; }
.service-header p { font-size: 1.2rem; color: gray; line-height: 1.6; }

.service-image {
    flex: 1;
    height: 300px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    position: relative;
}
.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    transition: transform 0.5s;
}
.service-image:hover img { transform: scale(1.05); }

/* Feature Grid Cards */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-top: 40px; }
.feature-card { background: var(--page-bg); padding: 25px; border-radius: 12px; border: 1px solid var(--border-color); transition: 0.3s; }
.feature-card:hover { transform: translateY(-5px); border-color: var(--acc-purple); }
.feature-card h3 { font-family: var(--font-heading); margin-bottom: 10px; color: var(--page-text); display: flex; align-items: center; gap: 10px;}
.feature-card i { color: var(--acc-purple); }
.feature-card p { font-size: 0.95rem; color: #666; line-height: 1.6; }

/* Call to Action Box */
.cta-box { margin-top: 60px; padding: 40px; background: linear-gradient(135deg, var(--acc-purple) 0%, #000 100%); border-radius: 20px; color: white; text-align: center; }
.cta-btn { background: white; color: var(--acc-purple); padding: 12px 30px; border: none; border-radius: 50px; font-weight: bold; margin-top: 20px; cursor: pointer; transition: 0.2s; }
.cta-btn:hover { transform: scale(1.05); }

/* VC Pill Switcher */
.vc-switcher-container { display: flex; justify-content: center; margin-bottom: 50px; }
.vc-pill-nav {
    background: #eef2f6; padding: 6px; border-radius: 50px; display: flex; gap: 5px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}
[data-theme="dark"] .vc-pill-nav { background: #1a1a1a; }

.vc-tab-btn {
    border: none; background: transparent; padding: 10px 25px; border-radius: 40px;
    font-weight: 600; color: #64748b; cursor: pointer; transition: 0.3s; font-size: 0.95rem;
}
.vc-tab-btn.active { color: var(--acc-purple); }

/* Free Trial Pill style */
.vc-tab-btn.trial-pill.active {
    background: #17038b; color: white; box-shadow: 0 4px 12px rgba(0, 130, 201, 0.3);
}

/* Tab Content & Animations */
.vc-tab-content { display: none; animation: slideUp 0.4s ease; }
.vc-tab-content.active-tab { display: block; }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.vc-row { display: flex; align-items: center; gap: 50px; }
.vc-text h1 { font-family: var(--font-heading); font-size: 2.5rem; margin-bottom: 15px; }
.vc-image img { width: 100%; border-radius: 20px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.check-list { list-style: none; margin-top: 20px; }
.check-list li { margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.check-list i { color: #10b981; }

/* Trial Form Box */
.trial-form-box {
    max-width: 500px; margin: 40px auto; padding: 40px; border-radius: 20px;
    background: var(--page-bg); border: 1px solid var(--border-color); text-align: center;
}
[data-theme="dark"] .trial-form-box {
    background: #252525;
    border-color: #404040;
}
[data-theme="dark"] .trial-form-box input {
    background: #151515;
    border-color: #333;
}
.form-header i { font-size: 2.5rem; color: var(--acc-purple); margin-bottom: 15px; }
.form-group { margin-bottom: 15px; text-align: left; }
.trial-form-box input {
    width: 100%; padding: 12px 18px; border-radius: 10px; border: 1px solid var(--border-color);
    background: var(--card-bg); color: var(--page-text);
}

/* Form Validation Styles */
.input-error { border: 2px solid #ef4444 !important; }
.error-msg { color: #ef4444; font-size: 0.8rem; margin-top: 5px; display: none; font-weight: 500; }


/* =========================================
   4. RESPONSIVE MEDIA QUERIES
   ========================================= */

@media (max-width: 992px) {
    .spa-container { flex-direction: column; }
    
    /* Sidebar becomes horizontal scroll */
    .service-sidebar {
        width: 100%;
        height: auto;
        position: sticky;
        top: 80px; /* Below navbar */
        z-index: 900;
        display: flex;
        overflow-x: auto;
        padding: 1rem;
        gap: 10px;
        white-space: nowrap;
        background: var(--page-bg);
        border-bottom: 1px solid var(--border-color);
        border-right: none;
    }
    .sidebar-title { display: none; }
    .tab-btn { width: auto; margin-bottom: 0; flex-shrink: 0; }
    
    .content-area { margin-left: 0; padding: 30px 5%; }
    .vc-row { flex-direction: column; }
}

@media (max-width: 900px) {
    /* Responsive Image Layout (General Services) */
    .service-intro { flex-direction: column-reverse; gap: 20px; }
    .service-image { width: 100%; height: 250px; }
    .service-header h1 { font-size: 2.2rem; }

    /* Responsive Layout (VC Tabs) */
    .vc-row { flex-direction: column; }
    .vc-text, .vc-image { width: 100%; text-align: center; }
    .vc-text .service-header { text-align: center !important; }
}

@media (max-width: 768px) {
    /* Global Sidebar visible on mobile */
    .sidebar { display: flex; }
    
    /* Hide desktop nav links */
    .nav-links, .desktop-login-btn { display: none; }
    
    .mobile-login-btn { display: inline-block; background-color: var(--acc-purple); color: #fff !important; padding: 8px 18px; border-radius: 50px; font-weight: bold; margin-left: auto; margin-right: 15px; }
    
    body { padding-left: 70px; } /* Offset for sidebar */
    nav { width: calc(100% - 70px); left: 70px; padding: 0 20px; }
    
    
    .services-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .service-card { height: auto; padding: 20px 15px; }
    .service-card p, .card-link { opacity: 1; transform: none; display: block; }
    .hero h1 { font-size: 2.5rem; }
    .stat-box { transform: none; width: 100%; }
    .wa-float-text { display: none; }
}