:root {
    --bg: #0a0a0f;
    --bg-2: #0f0f1a;
    --card: rgba(255, 255, 255, 0.04);
    --card-hover: rgba(255, 255, 255, 0.07);
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(139, 92, 246, 0.4);
    --text: #e8e8f0;
    --text-dim: #9ca3af;
    --accent: #8b5cf6;
    --accent-2: #06b6d4;
    --accent-3: #ec4899;
    --blue: #3b82f6;
    --purple: #a855f7;
    --amber: #f59e0b;
    --emerald: #10b981;
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }

  html { scroll-behavior: smooth; }

  body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
  }

  /* Animated gradient background */
  body::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background:
      radial-gradient(circle at 20% 20%, rgba(139, 92, 246, 0.15), transparent 40%),
      radial-gradient(circle at 80% 60%, rgba(6, 182, 212, 0.12), transparent 40%),
      radial-gradient(circle at 50% 90%, rgba(236, 72, 153, 0.1), transparent 40%);
    z-index: 0;
    animation: drift 20s ease-in-out infinite alternate;
  }

  @keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-30px, 20px) scale(1.05); }
  }

  /* Subtle grid overlay */
  body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
      linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
    pointer-events: none;
  }

  .section {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px 120px;
  }

  /* Header */
  .section > h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #fff 0%, #8b5cf6 50%, #06b6d4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeUp 0.8s ease-out;
  }

  .section > h1::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    margin-top: 20px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    border-radius: 2px;
  }

  .section > h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 900;
    color: #fff;
    margin: 40px 0 60px;
    max-width: 800px;
    line-height: 1.3;
    animation: fadeUp 0.8s ease-out 0.1s backwards;
  }

  /* Service Grid */
  .service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 100px;
  }

  .service-item {
    position: relative;
    padding: 32px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeUp 0.8s ease-out backwards;
    overflow: hidden;
  }

  .service-item:nth-child(1) { animation-delay: 0.1s; }
  .service-item:nth-child(2) { animation-delay: 0.2s; }
  .service-item:nth-child(3) { animation-delay: 0.3s; }
  .service-item:nth-child(4) { animation-delay: 0.4s; }

  .service-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(
      600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
      rgba(139, 92, 246, 0.08),
      transparent 40%
    );
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
  }

  .service-item:hover::before { opacity: 1; }

  .service-item:hover {
    background: var(--card-hover);
    border-color: var(--border-hover);
    transform: translateY(-8px);
    box-shadow:
      0 20px 60px -20px rgba(139, 92, 246, 0.3),
      0 0 0 1px rgba(139, 92, 246, 0.1);
  }

  .service-item h3 {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 12px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .service-item:nth-child(1) h3::before { content: '🎯'; }
  .service-item:nth-child(2) h3::before { content: '🔍'; }
  .service-item:nth-child(3) h3::before { content: '📊'; }
  .service-item:nth-child(4) h3::before { content: '🛡️'; }

  .service-item p {
    color: var(--text-dim);
    font-size: 1rem;
    line-height: 1.7;
  }

  /* Page Views */
  .page-view {
    margin-top: 80px;
    animation: fadeUp 0.8s ease-out 0.5s backwards;
  }

  .page-view h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 900;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.3;
  }

  .page-view > p {
    color: var(--text-dim);
    font-size: 1.1rem;
    margin-bottom: 32px;
    max-width: 700px;
  }

  /* Detail Cards */
  .page-view > div {
    position: relative;
    padding: 28px 32px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(51, 65, 85, 0.5);
    border-radius: 16px;
    margin-bottom: 20px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s ease;
    animation: fadeUp 0.8s ease-out backwards;
  }

  .page-view > div:nth-child(3) { animation-delay: 0.6s; }
  .page-view > div:nth-child(4) { animation-delay: 0.7s; }

  .page-view > div:hover {
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(51, 65, 85, 0.8);
    transform: translateX(8px);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
  }

  /* Healthcare cards */
  #p-healthcare > div:nth-child(3) {
    border-left: 4px solid var(--blue);
  }

  #p-healthcare > div:nth-child(3) h3 {
    color: var(--blue);
  }

  #p-healthcare > div:nth-child(4) {
    border-left: 4px solid var(--purple);
  }

  #p-healthcare > div:nth-child(4) h3 {
    color: var(--purple);
  }

  /* Finance cards */
  #p-finance > div:nth-child(3) {
    border-left: 4px solid var(--amber);
  }

  #p-finance > div:nth-child(3) h3 {
    color: var(--amber);
  }

  #p-finance > div:nth-child(4) {
    border-left: 4px solid var(--emerald);
  }

  #p-finance > div:nth-child(4) h3 {
    color: var(--emerald);
  }

  .page-view h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
  }

  .page-view p {
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.7;
  }

  @keyframes fadeUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Responsive */
  @media (max-width: 768px) {
    .section { padding: 60px 20px 80px; }
    .service-grid { grid-template-columns: 1fr; gap: 20px; }
    .service-item { padding: 24px; }
    .page-view > div { padding: 20px 24px; }
  }