/* =========================================================
   PREMIUM SERVICES PAGE - MODERN SAAS DESIGN
   ========================================================= */

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Modern Color Palette */
    --primary-600: #4f46e5;
    --primary-700: #4338ca;
    --primary-50: #eef2ff;
    --primary-100: #e0e7ff;

    --gray-900: #0f172a;
    --gray-800: #1e293b;
    --gray-700: #334155;
    --gray-600: #475569;
    --gray-500: #64748b;
    --gray-400: #94a3b8;
    --gray-300: #cbd5e1;
    --gray-200: #e2e8f0;
    --gray-100: #f1f5f9;
    --gray-50: #f8fafc;

    --success-500: #10b981;
    --success-50: #d1fae5;

    --accent-gradient: linear-gradient(135deg, #667eea 0%, #864ebe 100%);

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: var(--font-primary);
    color: var(--gray-900);
    background: #ffffff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.container-narrow {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== HERO SECTION ===== */
.services-hero-premium {
    background: linear-gradient(135deg, #1e293b 0%, #4c1d95 100%);
    padding: 140px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.services-hero-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    padding-left: 120px;
    padding-right: 120px;
    color: #ffffff;
    margin-left: auto;
    margin-right: auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 999px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease-out;
}

.badge-icon {
    font-size: 16px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 64px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 24px;
    line-height: 1.1;
    letter-spacing: -0.02em;
    animation: fadeInUp 0.6s ease-out 0.1s both;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.hero-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    line-height: 1.6;
    animation: fadeInUp 0.6s ease-out 0.2s both;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    padding: 16px 32px;
    background: #ffffff;
    color: var(--primary-700);
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-lg);
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    padding: 16px 32px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all var(--transition-base);
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* ===== FILTER SECTION ===== */
.filter-section {
    background: #ffffff;
    padding: 40px 0;
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.filter-tabs {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 12px 24px;
    background: transparent;
    border: 2px solid var(--gray-300);
    border-radius: 999px;
    color: var(--gray-700);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition-base);
    font-family: inherit;
}

.filter-tab:hover {
    border-color: var(--primary-600);
    color: var(--primary-700);
}

.filter-tab.active {
    background: var(--primary-600);
    border-color: var(--primary-600);
    color: #ffffff;
}

/* ===== STICKY SIDE NAVIGATION ===== */
.services-sidenav {
    position: fixed;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 30;
    opacity: 0;
    animation: fadeIn 0.6s ease-out 0.5s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.sidenav-link {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    background: #ffffff;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    color: var(--gray-600);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.sidenav-link:hover {
    background: var(--gray-50);
    border-color: var(--primary-600);
    color: var(--primary-700);
    transform: translateX(4px);
}

.sidenav-link.active {
    background: var(--primary-50);
    border-color: var(--primary-600);
    color: var(--primary-700);
    font-weight: 600;
    box-shadow: var(--shadow-md);
}

.sidenav-link.active::before {
    content: '';
    width: 3px;
    height: 100%;
    background: var(--primary-600);
    position: absolute;
    left: 0;
    border-radius: 0 2px 2px 0;
}

/* ===== SERVICES SECTION ===== */
.services-premium-section {
    padding: 80px 0 100px;
    background: var(--gray-50);
}

.service-card-premium {
    background: #ffffff;
    border-radius: 16px;
    margin-bottom: 32px;
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: all var(--transition-slow);
    opacity: 0;
    transform: translateY(30px);
}

.service-card-premium.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card-premium:hover {
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-200);
    transform: translateY(-4px);
}

.service-card-inner {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 32px;
    padding: 40px;
    align-items: start;
    cursor: pointer;
}

.service-icon-premium {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--gray-100) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.service-icon-premium::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg at 50% 50%,
            rgba(79, 70, 229, 0.1) 0deg,
            transparent 60deg,
            transparent 300deg,
            rgba(79, 70, 229, 0.1) 360deg);
    animation: rotate 8s linear infinite;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.service-card-premium:hover .service-icon-premium::before {
    opacity: 1;
}

@keyframes rotate {
    to {
        transform: rotate(360deg);
    }
}

.service-icon-premium img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    z-index: 1;
    position: relative;
    transition: transform var(--transition-base);
}

.service-card-premium:hover .service-icon-premium img {
    transform: scale(1.1);
}

.service-content {
    flex: 1;
    min-width: 0;
}

.service-header-group {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.service-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.service-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--primary-100);
    color: var(--primary-700);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.service-badge.badge-tech {
    background: var(--success-50);
    color: var(--success-500);
}

.service-description {
    font-size: 16px;
    line-height: 1.7;
    color: var(--gray-600);
    margin-bottom: 20px;
}

.service-benefits {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-700);
    font-size: 14px;
    font-weight: 500;
}

.check-icon {
    width: 18px;
    height: 18px;
    color: var(--success-500);
    flex-shrink: 0;
}

.service-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.service-use-case {
    font-size: 13px;
    color: var(--gray-500);
    font-style: italic;
}

.service-trust {
    font-size: 13px;
    color: var(--primary-700);
    font-weight: 600;
}

.service-cta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
}

.btn-service-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    background: var(--primary-600);
    color: #ffffff;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all var(--transition-base);
    white-space: nowrap;
    border: none;
    cursor: pointer;
}

.btn-service-primary:hover {
    background: var(--primary-700);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-expand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    background: transparent;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    color: var(--gray-700);
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition-base);
    font-family: inherit;
}

.btn-expand:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
}

.expand-icon {
    width: 16px;
    height: 16px;
    transition: transform var(--transition-base);
}

.btn-expand.expanded .expand-icon {
    transform: rotate(180deg);
}

/* ===== EXPANDABLE CONTENT ===== */
.service-expanded-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow);
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
}

.service-expanded-content.open {
    max-height: 600px;
    padding: 32px 40px;
}

.expanded-inner h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 16px;
}

.features-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-700);
    font-size: 14px;
}

.features-list li::before {
    content: '→';
    color: var(--primary-600);
    font-weight: 700;
}

.expanded-cta {
    display: flex;
    gap: 12px;
}

.btn-demo {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background: var(--primary-600);
    color: #ffffff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all var(--transition-base);
}

.btn-demo:hover {
    background: var(--primary-700);
    transform: translateY(-2px);
}

/* ===== TRUST SECTION ===== */
.trust-section {
    padding: 80px 0;
    background: #ffffff;
}

.section-title-center {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 48px;
}

.trust-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.trust-stat-item {
    text-align: center;
}

.trust-stat-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary-600);
    margin-bottom: 8px;
    line-height: 1;
}

.trust-stat-label {
    font-size: 16px;
    color: var(--gray-600);
    font-weight: 500;
}

/* ===== FINAL CTA ===== */
.final-cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
    position: relative;
    overflow: hidden;
}

.final-cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.final-cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.final-cta-title {
    font-size: 42px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 16px;
    line-height: 1.2;
}

.final-cta-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 32px;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.final-cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 24px;
}

.btn-cta-primary {
    display: inline-flex;
    align-items: center;
    padding: 16px 32px;
    background: var(--primary-600);
    color: #ffffff;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all var(--transition-base);
}

.btn-cta-primary:hover {
    background: var(--primary-700);
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(79, 70, 229, 0.4);
}

.btn-cta-secondary {
    display: inline-flex;
    align-items: center;
    padding: 16px 32px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all var(--transition-base);
}

.btn-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.final-cta-note {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

/* ===== FLOATING CTA ===== */
.floating-cta {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 50;
    opacity: 0;
    transform: translateY(20px);
    animation: floatIn 0.6s ease-out 1s forwards;
}

@keyframes floatIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.floating-cta-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: var(--primary-600);
    color: #ffffff;
    border: none;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    box-shadow: var(--shadow-xl);
    transition: all var(--transition-base);
    font-family: inherit;
}

.floating-cta-btn:hover {
    background: var(--primary-700);
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(79, 70, 229, 0.4);
}

.cta-icon {
    width: 20px;
    height: 20px;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .services-sidenav {
        display: none;
    }

    .container-wide {
        padding: 0 24px;
    }
}

@media (max-width: 900px) {
    .hero-title {
        font-size: 48px;
    }

    .service-card-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .service-icon-premium {
        width: 100px;
        height: 100px;
    }

    .service-icon-premium img {
        width: 60px;
        height: 60px;
    }

    .service-cta {
        flex-direction: row;
    }

    .trust-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .features-list {
        grid-template-columns: 1fr;
    }

    .final-cta-actions {
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .filter-tabs {
        flex-wrap: wrap;
        gap: 8px;
    }

    .filter-tab {
        font-size: 13px;
        padding: 10px 16px;
    }

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

    .service-card-inner {
        padding: 24px;
    }

    .service-cta {
        flex-direction: column;
    }

    .floating-cta {
        bottom: 16px;
        right: 16px;
    }

    .floating-cta-btn span {
        display: none;
    }

    .floating-cta-btn {
        width: 56px;
        height: 56px;
        padding: 0;
        justify-content: center;
    }
}

/* ===== SCROLL ANIMATIONS ===== */
@media (prefers-reduced-motion: no-preference) {
    .service-card-premium {
        transition: all var(--transition-slow);
    }
}