/* ==========================================================================
   ARITHMANCY INFOTECH - MASTER STYLESHEET
   Brand Identity: Innovating Today. Engineering Tomorrow.
   Design Direction: Premium, Futuristic AI & Software Corporate Aesthetics
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS & CSS CUSTOM PROPERTIES
   -------------------------------------------------------------------------- */
:root {
  /* Color Palette - Deep Navy, Obsidian, Electric Blue, Cyan & AI Purple */
  --bg-primary: #050814;
  --bg-secondary: #090e24;
  --bg-tertiary: #0e1638;
  --bg-surface: rgba(14, 22, 56, 0.55);
  --bg-surface-hover: rgba(22, 34, 85, 0.7);
  --bg-card: rgba(13, 20, 48, 0.65);
  --bg-glass: rgba(10, 16, 40, 0.75);
  --bg-glass-elevated: rgba(18, 28, 70, 0.85);

  /* Borders & Dividers */
  --border-subtle: rgba(56, 189, 248, 0.12);
  --border-medium: rgba(56, 189, 248, 0.25);
  --border-glow: rgba(0, 240, 255, 0.5);
  --border-purple: rgba(168, 85, 247, 0.35);

  /* Accents & Brand Colors */
  --electric-blue: #0066ff;
  --electric-blue-light: #38bdf8;
  --cyan-glow: #00f0ff;
  --cyan-deep: #0891b2;
  --ai-purple: #8b5cf6;
  --ai-purple-dark: #6366f1;
  --ai-violet: #a855f7;
  --emerald-accent: #10b981;
  --warning-accent: #f59e0b;

  /* Typography Colors */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-highlight: #38bdf8;
  --text-glow: #e0f2fe;

  /* Gradients */
  --grad-hero-text: linear-gradient(135deg, #ffffff 20%, #38bdf8 60%, #a855f7 100%);
  --grad-ai-accent: linear-gradient(135deg, #00f0ff 0%, #3b82f6 50%, #8b5cf6 100%);
  --grad-button: linear-gradient(135deg, #0066ff 0%, #00d2ff 100%);
  --grad-button-hover: linear-gradient(135deg, #0052cc 0%, #00b4db 100%);
  --grad-card-border: linear-gradient(135deg, rgba(56, 189, 248, 0.4), rgba(139, 92, 246, 0.2), transparent);
  --grad-surface: linear-gradient(180deg, rgba(16, 26, 66, 0.6) 0%, rgba(8, 13, 34, 0.85) 100%);

  /* Shadows & Glows */
  --glow-blue: 0 0 25px rgba(0, 102, 255, 0.35);
  --glow-cyan: 0 0 30px rgba(0, 240, 255, 0.4);
  --glow-purple: 0 0 30px rgba(139, 92, 246, 0.35);
  --shadow-card: 0 20px 40px -15px rgba(0, 0, 0, 0.6);
  --shadow-elevated: 0 25px 60px -15px rgba(2, 6, 23, 0.85);

  /* Fonts */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing & Sizing */
  --container-max: 1280px;
  --container-wide: 1400px;
  --header-height: 80px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   2. GLOBAL RESETS & BASE STYLES
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Background Atmosphere Glow Orbs */
body::before {
  content: '';
  position: fixed;
  top: -10vw;
  right: -5vw;
  width: 50vw;
  height: 50vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 102, 255, 0.12) 0%, rgba(139, 92, 246, 0.05) 45%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  bottom: 5vw;
  left: -10vw;
  width: 55vw;
  height: 55vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.08) 0%, rgba(99, 102, 241, 0.04) 50%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Selection */
::selection {
  background: rgba(0, 240, 255, 0.25);
  color: #ffffff;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--cyan-glow);
}

/* --------------------------------------------------------------------------
   3. TYPOGRAPHY
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 5vw + 1rem, 4.25rem);
  font-weight: 800;
  line-height: 1.1;
}

h2 {
  font-size: clamp(2rem, 3.5vw + 0.5rem, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

h3 {
  font-size: clamp(1.35rem, 2vw + 0.2rem, 1.75rem);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

h4 {
  font-size: 1.2rem;
  font-weight: 600;
}

p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

p.lead {
  font-size: 1.2rem;
  line-height: 1.7;
  color: #cbd5e1;
}

a {
  color: var(--electric-blue-light);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--cyan-glow);
}

.text-gradient {
  background: var(--grad-hero-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-ai-gradient {
  background: var(--grad-ai-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* --------------------------------------------------------------------------
   4. LAYOUT UTILITIES
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

.container-wide {
  width: 100%;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

.section {
  padding: 6.5rem 0;
  position: relative;
  z-index: 1;
}

.section-hero {
  padding-top: calc(var(--header-height) + 3.5rem);
  padding-bottom: 6rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4.5rem auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-full);
  background: rgba(0, 102, 255, 0.12);
  border: 1px solid var(--border-medium);
  color: var(--cyan-glow);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(10px);
}

.section-tag.purple {
  background: rgba(139, 92, 246, 0.12);
  border-color: var(--border-purple);
  color: #c084fc;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   5. BUTTONS & INTERACTIVE ELEMENTS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.9rem 1.85rem;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: none;
  outline: none;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad-button);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 102, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-primary:hover {
  background: var(--grad-button-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 240, 255, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-secondary {
  background: rgba(15, 23, 42, 0.6);
  color: #ffffff;
  border: 1px solid var(--border-medium);
  backdrop-filter: blur(12px);
}

.btn-secondary:hover {
  background: rgba(30, 41, 75, 0.8);
  border-color: var(--cyan-glow);
  color: var(--cyan-glow);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 240, 255, 0.2);
}

.btn-ai {
  background: var(--grad-ai-accent);
  color: #ffffff;
  box-shadow: 0 4px 25px rgba(139, 92, 246, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-ai:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 35px rgba(0, 240, 255, 0.6);
  color: #ffffff;
}

.btn-sm {
  padding: 0.6rem 1.25rem;
  font-size: 0.88rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 1.1rem 2.25rem;
  font-size: 1.1rem;
  border-radius: var(--radius-lg);
}

/* Button Shine Effect */
.btn-shine::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.25),
    transparent
  );
  transform: rotate(25deg);
  transition: 0.75s;
}

.btn-shine:hover::after {
  left: 120%;
}

/* --------------------------------------------------------------------------
   6. GLASSMORPHISM CARDS & CONTAINERS
   -------------------------------------------------------------------------- */
.glass-card {
  background: var(--grad-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.5), transparent);
  opacity: 0.7;
}

.glass-card:hover {
  border-color: var(--border-medium);
  transform: translateY(-5px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.75), 0 0 30px rgba(0, 102, 255, 0.15);
}

/* --------------------------------------------------------------------------
   7. BADGES & CHIPS
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  background: rgba(56, 189, 248, 0.1);
  color: var(--electric-blue-light);
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.badge-ai {
  background: rgba(168, 85, 247, 0.12);
  color: #c084fc;
  border-color: rgba(168, 85, 247, 0.25);
}

.badge-success {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.25);
}

/* Pulsing Status Dot */
.status-beacon {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--cyan-glow);
  box-shadow: 0 0 10px var(--cyan-glow);
  position: relative;
}

.status-beacon::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--cyan-glow);
  animation: beaconPulse 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes beaconPulse {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* Utility Grids */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
}

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .section { padding: 4.5rem 0; }
  .section-hero { padding-top: calc(var(--header-height) + 2rem); }
}
