/**
 * Amanat Enterprise - Modern Design System (Modern Obsidian Dark & Brand #4b8382 Accents)
 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  /* Official Brand Color */
  --brand-color: #087b7b;
  --brand-hover: #0b9693;
  --brand-dark: #065e5e;

  /* Refined graphite mode: calm, neutral and logo-friendly */
  --bg-primary: #2a2d35;
  --bg-secondary: #323743;
  --bg-card: rgba(50, 55, 67, 0.84);
  --bg-card-hover: rgba(63, 69, 82, 0.96);
  --bg-input: #3a414e;
  --bg-glass: rgba(43, 47, 58, 0.8);
  --logo-surface: #f7f8fb;
  --logo-surface-border: #dce3ed;
  
  --text-primary: #f7f8fb;
  --text-secondary: #d6dae3;
  --text-muted: #a7afbd;
  --text-inverse: #2a2d35;

  /* Accent Colors */
  --accent-cyan: #0d9b96;
  --accent-blue: #087b7b;
  --accent-indigo: #0e958f;
  --accent-emerald: #0d9f94;
  --accent-amber: #fbbf24;
  --accent-gradient: linear-gradient(135deg, #087b7b 0%, #0b8d89 52%, #0d9f99 100%);
  --accent-glow: rgba(8, 123, 123, 0.28);
  --border-color: rgba(207, 216, 232, 0.2);
  --border-color-hover: rgba(13, 155, 150, 0.65);
  
  --header-bg: rgba(42, 45, 53, 0.9);
  --header-border: rgba(207, 216, 232, 0.2);

  /* Shadows & Glass */
  --shadow-sm: 0 2px 8px rgba(12, 14, 20, 0.18);
  --shadow-md: 0 8px 24px rgba(12, 14, 20, 0.24);
  --shadow-lg: 0 16px 40px rgba(12, 14, 20, 0.3);
  --shadow-glow: 0 0 30px rgba(8, 123, 123, 0.18);
  --backdrop-blur: blur(16px);

  /* Dimensions & Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 9999px;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --font-sans: var(--font-main);
  --font-heading: 'Manrope', var(--font-main);
  --font-mono: 'JetBrains Mono', monospace;
  --container-max: 1280px;
}

/* Modern Clean Light Theme */
[data-theme="light"] {
  --bg-primary: #f2f8f8;
  --bg-secondary: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.92);
  --bg-card-hover: #ffffff;
  --bg-input: #e3efef;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --logo-surface: #ffffff;
  --logo-surface-border: #d9e5e5;
  
  --text-primary: #0f1f1e;
  --text-secondary: #3b5f5e;
  --text-muted: #628887;
  --text-inverse: #ffffff;

  --accent-cyan: #087b7b;
  --accent-blue: #087b7b;
  --accent-indigo: #0b8d89;
  --accent-emerald: #0d948f;
  --accent-glow: rgba(8, 123, 123, 0.22);
  --border-color: rgba(75, 131, 130, 0.16);
  --border-color-hover: rgba(75, 131, 130, 0.45);
  
  --header-bg: rgba(242, 248, 248, 0.9);
  --header-border: rgba(75, 131, 130, 0.12);

  --shadow-sm: 0 2px 8px rgba(75, 131, 130, 0.06);
  --shadow-md: 0 8px 24px rgba(75, 131, 130, 0.1);
  --shadow-lg: 0 16px 40px rgba(75, 131, 130, 0.14);
  --shadow-glow: 0 0 25px rgba(75, 131, 130, 0.15);
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Background Cyber Mesh with brand ambient lights. */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image:
    radial-gradient(circle at 16% 14%, rgba(124, 153, 218, 0.16) 0%, transparent 45%),
    radial-gradient(circle at 84% 78%, rgba(90, 200, 189, 0.09) 0%, transparent 45%),
    radial-gradient(circle at 52% 48%, rgba(147, 111, 211, 0.06) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

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

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
}

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

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

.section-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  color: var(--accent-cyan);
  background: rgba(75, 131, 130, 0.15);
  border: 1px solid rgba(75, 131, 130, 0.35);
  min-height: 1.8rem;
  padding: 0.28rem 0.7rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .section-header-wide {
    max-width: 1100px;
  }

  .section-header-wide .section-title {
    white-space: nowrap;
    font-size: clamp(1.75rem, 3vw, 2.75rem);
  }
}

.section-desc {
  font-size: 1.125rem;
  color: var(--text-secondary);
}

section {
  padding: 6rem 0;
  position: relative;
}

#main > section + section::before,
.clients-marquee-section::before,
.main-footer::before,
.site-legal-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: min(78rem, calc(100% - 3rem));
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(90, 200, 189, 0.48), transparent);
  transform: translateX(-50%);
}

/* Glassmorphism & Cards */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-color-hover);
  box-shadow: var(--shadow-md), var(--shadow-glow);
  transform: translateY(-4px);
}
