@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  /* Color Palette - Refined Enterprise Light Theme */
  --bg-primary: #ffffff;
  --bg-primary-rgb: 255, 255, 255;
  --bg-secondary: #f8fafc;
  --bg-secondary-rgb: 248, 250, 252;
  --bg-alternate: #eef6ff;
  --bg-alternate-rgb: 238, 246, 255;
  
  --accent-blue: #2563eb;
  --accent-blue-rgb: 37, 99, 235;
  --accent-cyan: #38bdf8;
  --accent-cyan-rgb: 56, 189, 248;
  --accent-purple: #06b6d4;
  --accent-purple-rgb: 6, 182, 212;
  
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  
  /* Glassmorphism Styles */
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-bg-hover: rgba(255, 255, 255, 0.95);
  --glass-border: rgba(0, 0, 0, 0.08);
  --glass-border-hover: rgba(37, 99, 235, 0.25);
  
  /* Font & Transitions */
  --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
  
  /* Layout utilities */
  --container-max-width: 1280px;
  --header-height: 90px;
}

/* Reset and Core Settings */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  position: relative;
}

/* Accessible Focus Ring (WCAG) */
*:focus {
  outline: none;
}

*:focus-visible {
  outline: 3px solid var(--accent-blue);
  outline-offset: 3px;
}

/* Custom Scrollbar - Themed Light */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
  border-left: 1px solid rgba(0, 0, 0, 0.02);
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  transition: var(--transition-fast);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--accent-cyan), var(--accent-blue));
}

/* Selection */
::selection {
  background: rgba(37, 99, 235, 0.15);
  color: var(--text-primary);
}

/* Layout Elements */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 clamp(1rem, 5vw, 2rem);
}

section {
  padding: clamp(3rem, 6vw, 6rem) 0;
  position: relative;
  overflow: hidden;
}

/* Alternating Section Backgrounds */
.section-white {
  background-color: #ffffff;
}

.section-gray {
  background-color: #f8fafc;
}

.section-blue {
  background-color: #eef6ff;
}

/* Dark Section Exception (Hero & Footer) */
.section-dark {
  background-color: #0b0f19;
  color: #ffffff;
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark .nav-link {
  color: #ffffff;
}

.section-dark p,
.section-dark .nav-link {
  color: #94a3b8;
}

.section-dark .glass-card {
  background: rgba(16, 24, 39, 0.65);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.section-dark .glass-card h3 {
  color: #ffffff;
}

.section-dark .glass-card p {
  color: #94a3b8;
}

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

h1 {
  font-size: clamp(1.75rem, 4vw + 0.8rem, 3.5rem);
}

h2 {
  font-size: clamp(1.4rem, 3vw + 0.6rem, 2.5rem);
  margin-bottom: 1.5rem;
}

h3 {
  font-size: clamp(1.15rem, 2vw + 0.5rem, 1.75rem);
  margin-bottom: 1rem;
}

p {
  color: var(--text-secondary);
  font-size: clamp(0.95rem, 1vw + 0.7rem, 1.05rem);
  margin-bottom: 1.5rem;
  font-weight: 400;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

/* Helper Utilities */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.accent-text-cyan {
  color: var(--accent-blue);
}

.accent-text-gradient {
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-cyan) 50%, var(--accent-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.grid {
  display: grid;
  gap: clamp(1.25rem, 4vw, 2rem);
  grid-template-columns: 1fr;
}

.grid-2, .grid-3, .grid-4 {
  grid-template-columns: 1fr;
}

/* Decorative Elements */
.glow-blur {
  position: absolute;
  border-radius: 50%;
  filter: blur(150px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.08; /* Reduced glow intensity */
}

.bg-dot-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(0, 84, 166, 0.04) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
  z-index: 0;
}

/* Responsive Overrides (Mobile-First Breakpoints) */
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

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