/* ==========================================================================
   DREAM WEB STUDIOS — DESIGN SYSTEM & BASE STYLES
   Hyderabad, Telangana, India | hello@dreamwebstudios.in
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Surface & Background Hierarchy (Whitish / Crisp Light Theme) */
  --bg-primary: #F8FAFC;
  --bg-surface: #FFFFFF;
  --bg-surface-elevated: #F1F5F9;
  --bg-surface-glass: rgba(255, 255, 255, 0.92);
  --bg-surface-hover: #F8FAFC;
  --bg-contrast: #0F172A;

  /* Line-work & Subtle Borders */
  --border-subtle: #E2E8F0;
  --border-medium: #CBD5E1;
  --border-focus: rgba(79, 70, 229, 0.6);
  --border-accent: rgba(8, 145, 178, 0.4);

  /* Primary Accent & Brand Hues (Rich Contrast on Light Canvas) */
  --brand-indigo: #4F46E5;
  --brand-indigo-light: #6366F1;
  --brand-indigo-glow: rgba(79, 70, 229, 0.15);
  --brand-cyan: #0891B2;
  --brand-cyan-light: #0284C7;
  --brand-cyan-glow: rgba(8, 145, 178, 0.15);
  --brand-emerald: #059669;
  --brand-emerald-glow: rgba(5, 150, 105, 0.15);
  --brand-amber: #D97706;

  /* Typographic Contrast */
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --text-inverse: #FFFFFF;

  /* Typography Stacks */
  --font-display: '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', monospace;

  /* Fluid Spacing Scale */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 5rem;
  --space-4xl: 7.5rem;

  /* Elevation Shadows (Soft, Multi-layered Ambient Shadows) */
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.08), 0 2px 6px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 16px 32px -4px rgba(15, 23, 42, 0.10), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
  --shadow-glow: 0 8px 24px -4px rgba(79, 70, 229, 0.22);
  --shadow-glow-cyan: 0 8px 24px -4px rgba(8, 145, 178, 0.22);

  /* Layout Containers */
  --container-max: 1240px;
  --container-narrow: 920px;
  --container-wide: 1380px;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-base: 250ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 400ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Z-indices */
  --z-header: 100;
  --z-drawer: 200;
  --z-modal: 300;
  --z-toast: 400;
}

/* ==========================================================================
   Modern Reset & Foundational Rules
   ========================================================================== */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* Background Subtle Light Blueprint Grid */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(79, 70, 229, 0.04) 0%, transparent 60%),
    linear-gradient(to right, rgba(15, 23, 42, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.025) 1px, transparent 1px);
  background-size: 100% 100%, 48px 48px, 48px 48px;
  pointer-events: none;
  z-index: 0;
}

/* Accessibility: Skip to Content */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-md);
  background: var(--brand-indigo);
  color: #fff;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  z-index: 999;
  font-weight: 600;
  text-decoration: none;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-md);
}

/* ==========================================================================
   Typography Hierarchy
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(2.35rem, 4.5vw + 1rem, 3.85rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(1.85rem, 3vw + 0.5rem, 2.75rem);
  letter-spacing: -0.03em;
}

h3 {
  font-size: clamp(1.35rem, 2vw + 0.25rem, 1.75rem);
}

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

p {
  margin-bottom: var(--space-md);
}

p.lead {
  font-size: clamp(1.05rem, 1.2vw + 0.25rem, 1.25rem);
  line-height: 1.7;
  color: #CBD5E1;
}

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

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

strong, b {
  color: var(--text-primary);
  font-weight: 600;
}

ul, ol {
  list-style-position: inside;
  margin-bottom: var(--space-md);
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   Global Layout Containers & Helpers
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
  position: relative;
  z-index: 1;
}

.container-narrow {
  max-width: var(--container-narrow);
}

.container-wide {
  max-width: var(--container-wide);
}

.section-pad {
  padding-top: clamp(4rem, 7vw, 7rem);
  padding-bottom: clamp(4rem, 7vw, 7rem);
  position: relative;
  z-index: 1;
}

.section-pad-sm {
  padding-top: clamp(2.5rem, 4vw, 4rem);
  padding-bottom: clamp(2.5rem, 4vw, 4rem);
  position: relative;
  z-index: 1;
}

.section-border-b {
  border-bottom: 1px solid var(--border-subtle);
}

.section-border-t {
  border-top: 1px solid var(--border-subtle);
}

/* Section Header standard block */
.section-header {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  max-width: 760px;
}

.section-header.text-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand-cyan-light);
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.25);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
}

.section-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-cyan-light);
  box-shadow: 0 0 8px var(--brand-cyan-light);
}

.section-title {
  margin-bottom: var(--space-md);
}

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

/* Screen reader only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Text utility alignment & colors */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-cyan { color: var(--brand-cyan-light); }
.text-indigo { color: var(--brand-indigo-light); }
.text-emerald { color: var(--brand-emerald); }
.text-muted { color: var(--text-muted); }
.font-mono { font-family: var(--font-mono); }

/* Grid systems */
.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto-fit { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }

/* Reduced motion respect */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
