        /* Hide content on first load if no cache */
        html.cms-first-load header,
        html.cms-first-load footer,
        html.cms-first-load main { display: none !important; }
        
        /* Loading Spinner Overlay */
        .loading-container {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(26, 26, 26, 0.95);
            backdrop-filter: blur(4px);
            z-index: 9999;
        }
        .spinner {
            width: 80px;
            height: 80px;
            border: 3px solid rgba(255, 119, 0, 0.1);
            border-top-color: #ff7700;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }
        @keyframes spin {
            to { transform: rotate(360deg); }
        }
        
        .services-hero {
            padding: 100px 20px 80px;
            background: linear-gradient(135deg, var(--bg-dark) 0%, var(--panel-dark) 50%, var(--light-gray) 100%);
            text-align: center;
        }

        .services-hero h1 {
            font-size: clamp(2rem, 5vw, 4rem);
            font-weight: 700;
            margin-bottom: 24px;
        }

        .services-hero p {
            font-size: clamp(1rem, 2vw, 1.25rem);
            color: var(--text-secondary);
            max-width: 1000px;
            margin: 0 auto 32px;
        }

        .services-main {
            padding: 80px 20px;
            max-width: 1920px;
            margin: 0 auto;
        }

        .services-grid {
            display: none;
            gap: clamp(16px, 2vw, 32px);
            grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
            align-items: stretch;
        }

        .services-grid.visible {
            display: grid;
        }

        .services-grid .service-item {
            width: 100%;
            min-width: 0;
        }

        .service-item {
            background: rgba(42, 42, 42, 0.5);
            backdrop-filter: blur(10px);
            border-radius: 16px;
            overflow: hidden;
            border: 1px solid rgba(255, 119, 0, 0.1);
            transition: all 0.3s ease;
            display: flex;
            flex-direction: column;
            height: 100%;
        }

        .service-item:hover {
            transform: translateY(-10px);
            border-color: rgba(255, 119, 0, 0.3);
        }

        .service-image {
            position: relative;
            height: 200px;
            overflow: hidden;
            background: linear-gradient(135deg, rgba(255, 119, 0, 0.2), rgba(160, 160, 160, 0.2));
        }

        .service-image img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            background: rgba(26, 26, 26, 0.6);
        }

        .service-image::after {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(to top, rgba(26, 26, 26, 0.5), transparent);
        }

        .service-content {
            padding: 24px;
            flex: 1;
            display: flex;
            flex-direction: column;
        }

        .service-content h3 {
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: 8px;
            color: var(--text-primary);
        }

        .service-description {
            font-size: 0.875rem;
            color: var(--text-secondary);
            margin-bottom: 16px;
            flex: 1;
        }

        .service-price-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 16px;
        }

        .service-price-label {
            font-size: 0.875rem;
            color: var(--text-secondary);
        }

        .service-price-badge {
            background: rgba(255, 119, 0, 0.2);
            color: var(--accent);
            border: 1px solid rgba(255, 119, 0, 0.3);
            padding: 4px 12px;
            border-radius: 6px;
            font-size: 0.875rem;
            font-weight: 600;
        }

        .service-btn {
            width: 100%;
            background: var(--accent);
            color: #fff;
            border: none;
            padding: 12px 24px;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .service-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(255, 119, 0, 0.3);
        }

        .service-btn svg {
            width: 16px;
            height: 16px;
        }

        /* Modal Styles */
        .modal-overlay {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(26, 26, 26, 0.8);
            backdrop-filter: blur(10px);
            z-index: 2000;
            padding: 16px;
            overflow-y: auto;
        }

        .modal-overlay.active {
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .modal-content {
            background: var(--light-gray);
            border-radius: 16px;
            max-width: 1000px;
            width: 100%;
            max-height: 90vh;
            overflow-y: auto;
            position: relative;
            animation: modalSlideIn 0.3s ease;
        }

        @keyframes modalSlideIn {
            from {
                opacity: 0;
                transform: scale(0.9);
            }
            to {
                opacity: 1;
                transform: scale(1);
            }
        }

        .modal-image {
            position: relative;
            max-height: 350px;
            overflow: hidden;
            border-radius: 16px 16px 0 0;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #1a1a1a;
        }

        .modal-image img {
            width: 100%;
            max-height: 350px;
            object-fit: contain;
        }

        .modal-image::after {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(to top, rgba(26, 26, 26, 0.3), transparent 50%);
            pointer-events: none;
        }

        .modal-close {
            position: absolute;
            top: 16px;
            right: 16px;
            background: rgba(26, 26, 26, 0.8);
            backdrop-filter: blur(10px);
            border: none;
            color: var(--text-primary);
            width: 40px;
            height: 40px;
            border-radius: 50%;
            font-size: 1.5rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.3s ease;
            z-index: 10;
        }

        .modal-close:hover {
            background: var(--bg-dark);
        }

        .modal-body {
            padding: 32px;
        }

        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 16px;
            margin-bottom: 24px;
        }

        .modal-title h2 {
            font-size: 2rem;
            font-weight: 700;
            margin-bottom: 8px;
        }

        .modal-title p {
            font-size: 1.125rem;
            color: var(--text-secondary);
        }

        .modal-price {
            background: rgba(255, 119, 0, 0.2);
            color: var(--accent);
            border: 1px solid rgba(255, 119, 0, 0.3);
            padding: 8px 16px;
            border-radius: 8px;
            font-size: 1.125rem;
            font-weight: 600;
            white-space: nowrap;
        }

        .modal-section {
            margin-bottom: 32px;
        }

        .modal-section h3 {
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: 16px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .modal-section h3 svg {
            width: 24px;
            height: 24px;
            color: var(--accent);
        }

        .modal-description {
            font-size: 1rem;
            color: var(--text-secondary);
            line-height: 1.6;
        }

        .modal-grid {
            display: flex;
            flex-wrap: wrap;
            gap: 32px;
        }

        .modal-grid > * {
            flex: 1 1 300px;
            min-width: 0;
        }

        .feature-list,
        .usecase-list {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .feature-item,
        .usecase-item {
            display: flex;
            align-items: flex-start;
            gap: 8px;
        }

        .feature-item svg,
        .usecase-item svg {
            width: 20px;
            height: 20px;
            color: var(--accent);
            flex-shrink: 0;
            margin-top: 2px;
        }

        .feature-item span,
        .usecase-item span {
            font-size: 0.875rem;
            color: var(--text-secondary);
        }

        .modal-separator {
            height: 1px;
            background: rgba(255, 119, 0, 0.2);
            margin: 32px 0;
        }

        .modal-actions {
            display: flex;
            gap: 16px;
            justify-content: center;
            flex-wrap: wrap;
        }

        .modal-btn-primary {
            background: var(--accent);
            color: #fff;
            border: none;
            padding: 12px 32px;
            border-radius: 8px;
            font-weight: 600;
            font-size: 1rem;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .modal-btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(255, 119, 0, 0.3);
        }

        .modal-btn-outline {
            background: transparent;
            color: var(--accent);
            border: 2px solid var(--accent);
            padding: 12px 32px;
            border-radius: 8px;
            font-weight: 600;
            font-size: 1rem;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .modal-btn-outline:hover {
            background: var(--accent);
            color: #fff;
        }

        /* CTA Section */
        .services-cta {
            padding: 80px 20px;
            background: rgba(42, 42, 42, 0.3);
            text-align: center;
        }

        .services-cta h2 {
            font-size: clamp(1.75rem, 4vw, 2.5rem);
            font-weight: 700;
            margin-bottom: 16px;
        }

        .services-cta p {
            font-size: clamp(1rem, 2vw, 1.25rem);
            color: var(--text-secondary);
            max-width: 900px;
            margin: 0 auto 32px;
        }

        .cta-buttons {
            display: flex;
            gap: 16px;
            justify-content: center;
            flex-wrap: wrap;
        }

        .loading-container {
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--bg-dark);
        }

        .spinner {
            width: 80px;
            height: 80px;
            border: 3px solid rgba(255, 119, 0, 0.1);
            border-top-color: var(--accent);
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

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

        .no-services {
            text-align: center;
            padding: 80px 20px;
        }

        .no-services p {
            font-size: 1.25rem;
            color: var(--text-secondary);
        }

        @media (max-width: 767.98px) {
            .services-grid {
                grid-template-columns: 1fr;
                gap: 20px;
            }

            .modal-body {
                padding: 24px;
            }

            .modal-header {
                flex-direction: column;
            }

            .modal-grid {
                flex-direction: column;
            }

            .cta-buttons {
                flex-direction: column;
                align-items: center;
            }

            .cta-buttons .btn {
                width: 100%;
                max-width: 300px;
            }
        }
