/* ============================================================
   Sadid Afarin — Services Page Styles
   ============================================================ */

/* --- Services Grid --- */
.services-section {
    padding: 100px 0;
    background: var(--bg-soft);
    position: relative;
  }
  
  .services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1240px;
    margin: 0 auto;
  }
  
  /* --- Service Card Base --- */
  .service-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px 32px;
    position: relative;
    overflow: hidden;
    transition: all .35s ease;
    display: flex;
    flex-direction: column;
  }
  
  .service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
  }
  
  .service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    opacity: 0;
    transition: opacity .35s;
  }
  
  .service-card:hover::before {
    opacity: 1;
  }
  
  /* --- Icons --- */
  .service-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    margin-bottom: 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    flex-shrink: 0;
  }
  
  .service-icon svg {
    width: 28px;
    height: 28px;
  }
  
  /* --- Typography --- */
  .service-kicker {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 10px;
  }
  
  .service-card h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
  }
  
  .service-card p {
    color: var(--muted);
    font-size: .95rem;
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
  }
  
  .service-slogan {
    font-weight: 700;
    font-style: italic;
    color: #fff !important;
    margin-bottom: 12px !important;
  }
  
  /* --- List --- */
  .service-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
  }
  
  .service-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: .88rem;
    color: var(--text);
    font-weight: 500;
  }
  
  .service-list li::before {
    content: '✓';
    color: var(--green);
    font-weight: 800;
    font-size: .85rem;
    flex-shrink: 0;
    margin-top: 2px;
  }
  
  /* --- Links --- */
  .service-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .88rem;
    font-weight: 700;
    color: #fca5a5;
    margin-top: auto;
    transition: gap .25s;
  }
  
  .service-link:hover {
    gap: 10px;
    color: var(--primary);
  }
  
  /* ============================================================
     Color Accents per Card
     ============================================================ */
  
  /* AI Agent (Purple) */
  .service-card--ai::before { background: var(--gradient-purple); }
  .service-card--ai .service-icon {
    background: rgba(139, 92, 246, .15);
    border-color: rgba(139, 92, 246, .3);
    color: #c4b5fd;
  }
  
  /* Primary / Zabbix (Red) */
  .service-card--primary::before { background: var(--gradient-red); }
  .service-card--primary .service-icon {
    background: rgba(239, 68, 68, .15);
    border-color: rgba(239, 68, 68, .3);
    color: #fca5a5;
  }
  
  /* Jira (Blue) */
  .service-card--jira::before { background: var(--gradient-blue); }
  .service-card--jira .service-icon {
    background: rgba(59, 130, 246, .15);
    border-color: rgba(59, 130, 246, .3);
    color: #93c5fd;
  }
  
  /* ELK (Amber) */
  .service-card--elk::before { background: linear-gradient(135deg, #f59e0b, #dc2626); }
  .service-card--elk .service-icon {
    background: rgba(245, 158, 11, .15);
    border-color: rgba(245, 158, 11, .3);
    color: #fde68a;
  }
  
  /* NetBox (Teal) */
  .service-card--netbox::before { background: linear-gradient(135deg, #14b8a6, #0f766e); }
  .service-card--netbox .service-icon {
    background: rgba(20, 184, 166, .15);
    border-color: rgba(20, 184, 166, .3);
    color: #5eead4;
  }
  
  /* ClickHouse (Yellow) */
  .service-card--clickhouse::before { background: linear-gradient(135deg, #facc15, #eab308); }
  .service-card--clickhouse .service-icon {
    background: rgba(250, 204, 21, .15);
    border-color: rgba(250, 204, 21, .3);
    color: #fef08a;
  }
  
  /* Training (Green) */
  .service-card--training::before { background: var(--gradient-green); }
  .service-card--training .service-icon {
    background: rgba(34, 197, 94, .15);
    border-color: rgba(34, 197, 94, .3);
    color: #86efac;
  }

  /* Customize Zabbix (Developer Purple/Blue) */
  .service-card--custom::before { background: linear-gradient(135deg, #8b5cf6, #3b82f6); }
  .service-card--custom .service-icon {
    background: rgba(139, 92, 246, .15);
    border-color: rgba(139, 92, 246, .3);
    color: #c4b5fd;
    }

  /* ============================================================
   ENRICHED SERVICES HERO
   ============================================================ */

.page-hero--services {
    padding: 120px 0 100px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    text-align: left; /* Override default center */
  }
  
  /* Background Glows */
  .page-hero--services::before {
    content: '';
    position: absolute;
    top: -20%; left: -10%;
    width: 800px; height: 800px;
    background: radial-gradient(circle, rgba(59,130,246,.12) 0%, transparent 60%);
    pointer-events: none;
  }
  .page-hero--services::after {
    content: '';
    position: absolute;
    bottom: -20%; right: -10%;
    width: 800px; height: 800px;
    background: radial-gradient(circle, rgba(239,68,68,.1) 0%, transparent 60%);
    pointer-events: none;
  }
  
  /* Layout */
  .page-hero-inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
  }
  
  /* Typography */
  .page-hero--services h1 {
    font-size: clamp(2.6rem, 5vw, 4.2rem);
    line-height: 1.1;
    margin-bottom: 24px;
  }
  .page-hero--services p {
    font-size: 1.15rem;
    max-width: 540px;
    margin-bottom: 40px;
  }
  
  /* Stats Row */
  .hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
  }
  .stat-item {
    display: flex;
    flex-direction: column;
  }
  .stat-num {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -0.02em;
  }
  .stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 4px;
  }
  .stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-strong);
  }
  
 /* ============================================================
   HERO VISUAL (SOLAR SYSTEM - SYMMETRICAL CARDS)
   ============================================================ */

.hero-visual {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    max-width: 700px; /* Increased to fit the outer ring comfortably */
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .hero-orb {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* =========================================
     THE SUN (SACO Core)
     ========================================= */
  .orb-center {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #3b82f6, #1e3a8a);
    display: grid;
    place-items: center;
    box-shadow: 
      0 0 0 4px rgba(59,130,246,.1),
      0 0 60px rgba(59,130,246,.4),
      0 0 120px rgba(139,92,246,.3);
    z-index: 10;
    position: relative;
  }
  .orb-center span {
    font-size: 1.5rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: 0.1em;
  }
  
  /* =========================================
     ORBIT RINGS (Restored)
     ========================================= */
  .orb-ring {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px dashed rgba(255,255,255,.1);
    pointer-events: none;
    z-index: 0;
  }
  .orb-ring--1 { width: 280px; height: 280px; }
  .orb-ring--2 { width: 440px; height: 440px; }
  .orb-ring--3 { width: 600px; height: 600px; }
  
  /* =========================================
     ORBITING ITEMS & POSITIONING
     ========================================= */
  .orb-item {
    position: absolute;
    top: 50%; left: 50%;
    /* Spin to angle, push out by radius, then counter-spin so the box stays upright */
    transform: rotate(var(--angle)) translate(140px) rotate(calc(-1 * var(--angle)));
    z-index: 5;
  }
  
  /* Distances for different rings to keep them perfectly spaced */
  .orb-item--mid {
    transform: rotate(var(--angle)) translate(220px) rotate(calc(-1 * var(--angle)));
  }
  .orb-item--outer {
    transform: rotate(var(--angle)) translate(300px) rotate(calc(-1 * var(--angle)));
  }
  
  /* =========================================
     THE PLANETS (Adaptive Rectangles)
     ========================================= */
  .orb-planet {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    
    /* Adaptive sizing based on content */
    padding: 10px 18px;
    min-width: 60px;
    min-height: 40px;
    
    background: var(--card);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 12px;
    
    font-size: 0.85rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.02em;
    white-space: nowrap;
    
    /* Center the box on the orbit path */
    transform: translate(-50%, -50%);
    
    /* Float animation */
    animation: float 4s ease-in-out infinite;
    box-shadow: 
      0 10px 25px rgba(0,0,0,.4),
      inset 0 1px 0 rgba(255,255,255,.1);
  }
  
  /* Stagger the float animation so they move organically */
  .orb-item:nth-child(4) .orb-planet { animation-delay: 0s; }
  .orb-item:nth-child(5) .orb-planet { animation-delay: 0.5s; }
  .orb-item:nth-child(6) .orb-planet { animation-delay: 1s; }
  .orb-item:nth-child(7) .orb-planet { animation-delay: 1.5s; }
  .orb-item:nth-child(8) .orb-planet { animation-delay: 2s; }
  .orb-item:nth-child(9) .orb-planet { animation-delay: 2.5s; }
  .orb-item:nth-child(10) .orb-planet { animation-delay: 3s; }
  .orb-item:nth-child(11) .orb-planet { animation-delay: 3.5s; }
  
  /* Float Keyframes */
  @keyframes float {
    0%, 100% { transform: translate(-50%, -50%) translateY(0); }
    50% { transform: translate(-50%, -50%) translateY(-6px); }
  }
  
  /* =========================================
     COLORS (Borders & Shadows)
     ========================================= */
  .orb-planet--zabbix { color: #ef4444; border-color: rgba(239,68,68,.4); box-shadow: 0 0 20px rgba(239,68,68,.15); }
  .orb-planet--jira { color: #3b82f6; border-color: rgba(59,130,246,.4); box-shadow: 0 0 20px rgba(59,130,246,.15); }
  .orb-planet--ai { color: #c4b5fd; border-color: rgba(139,92,246,.4); box-shadow: 0 0 20px rgba(139,92,246,.15); }
  .orb-planet--elk { color: #f59e0b; border-color: rgba(245,158,11,.4); box-shadow: 0 0 20px rgba(245,158,11,.15); }
  .orb-planet--netbox { color: #14b8a6; border-color: rgba(20,184,166,.4); box-shadow: 0 0 20px rgba(20,184,166,.15); }
  .orb-planet--clickhouse { color: #facc15; border-color: rgba(250,204,21,.4); box-shadow: 0 0 20px rgba(250,204,21,.15); }
  .orb-planet--grafana { color: #f97316; border-color: rgba(249,115,22,.4); box-shadow: 0 0 20px rgba(249,115,22,.15); }
  .orb-planet--prometheus { color: #e6522c; border-color: rgba(230,82,44,.4); box-shadow: 0 0 20px rgba(230,82,44,.15); }
  
  /* =========================================
     RESPONSIVE SCALING
     ========================================= */
  @media (max-width: 1024px) {
    .hero-visual { max-width: 550px; }
    .orb-ring--1 { width: 240px; height: 240px; }
    .orb-ring--2 { width: 380px; height: 380px; }
    .orb-ring--3 { width: 520px; height: 520px; }
    
    .orb-item { transform: rotate(var(--angle)) translate(120px) rotate(calc(-1 * var(--angle))); }
    .orb-item--mid { transform: rotate(var(--angle)) translate(190px) rotate(calc(-1 * var(--angle))); }
    .orb-item--outer { transform: rotate(var(--angle)) translate(260px) rotate(calc(-1 * var(--angle))); }
    
    .orb-center { width: 110px; height: 110px; }
    .orb-planet { padding: 8px 14px; font-size: 0.75rem; min-height: 34px; }
  }
  
  @media (max-width: 640px) {
    .hero-visual { max-width: 360px; }
    .orb-center { width: 80px; height: 80px; }
    .orb-center span { font-size: 1rem; }
    
    /* Scale down rings */
    .orb-ring--1 { width: 160px; height: 160px; }
    .orb-ring--2 { width: 250px; height: 250px; }
    .orb-ring--3 { width: 340px; height: 340px; }
    
    /* Bring items closer to center */
    .orb-item { transform: rotate(var(--angle)) translate(80px) rotate(calc(-1 * var(--angle))); }
    .orb-item--mid { transform: rotate(var(--angle)) translate(125px) rotate(calc(-1 * var(--angle))); }
    .orb-item--outer { transform: rotate(var(--angle)) translate(170px) rotate(calc(-1 * var(--angle))); }
    
    .orb-planet { padding: 6px 10px; font-size: 0.65rem; border-radius: 8px; min-height: 28px; min-width: 44px; }
  }