/* ==========================================================================
   GALVIN SANJAY - DESIGN SYSTEM & CORE STYLES
   AI Digital Marketing Expert in Chennai | SEO Expert | Performance Marketing | Agentic AI | Vibe Coding
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties / Design Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Color Palette - Dark Hybrid Tech */
  --bg-primary: #070a11;
  --bg-secondary: #0d121f;
  --bg-tertiary: #131b2e;
  --bg-card: rgba(16, 23, 39, 0.7);
  --bg-card-hover: rgba(22, 33, 56, 0.85);
  --bg-glass: rgba(13, 18, 31, 0.75);
  --bg-glass-strong: rgba(10, 15, 26, 0.92);
  --bg-input: rgba(10, 15, 27, 0.8);

  /* Borders & Dividers */
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-medium: rgba(255, 255, 255, 0.13);
  --border-bright: rgba(255, 255, 255, 0.22);
  --border-accent: rgba(59, 130, 246, 0.35);
  --border-glow: rgba(96, 165, 250, 0.4);

  /* Typography Colors */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-dim: #475569;
  --text-inverse: #070a11;

  /* Accent Colors */
  --accent-blue: #3b82f6;
  --accent-blue-light: #60a5fa;
  --accent-blue-glow: rgba(59, 130, 246, 0.25);
  --accent-cyan: #06b6d4;
  --accent-cyan-light: #22d3ee;
  --accent-violet: #8b5cf6;
  --accent-violet-light: #a78bfa;
  --accent-emerald: #10b981;
  --accent-emerald-light: #34d399;
  --accent-amber: #f59e0b;

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
  --grad-accent: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 50%, #06b6d4 100%);
  --grad-text: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
  --grad-text-glow: linear-gradient(135deg, #ffffff 0%, #93c5fd 60%, #67e8f9 100%);
  --grad-card-border: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.02) 100%);
  --grad-card-border-active: linear-gradient(135deg, rgba(59, 130, 246, 0.5) 0%, rgba(6, 182, 212, 0.3) 100%);
  --grad-mesh: radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.12) 0%, transparent 50%),
               radial-gradient(circle at 90% 20%, rgba(139, 92, 246, 0.08) 0%, transparent 40%),
               radial-gradient(circle at 10% 80%, rgba(6, 182, 212, 0.08) 0%, transparent 40%);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow-blue: 0 0 30px rgba(59, 130, 246, 0.2);
  --shadow-glow-cyan: 0 0 30px rgba(6, 182, 212, 0.2);

  /* Typography Scale */
  --font-sans: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.8125rem);
  --text-sm: clamp(0.84375rem, 0.8rem + 0.25vw, 0.9375rem);
  --text-base: clamp(0.9375rem, 0.9rem + 0.3vw, 1.0625rem);
  --text-lg: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  --text-xl: clamp(1.25rem, 1.15rem + 0.6vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.35rem + 0.9vw, 1.875rem);
  --text-3xl: clamp(1.875rem, 1.65rem + 1.3vw, 2.375rem);
  --text-4xl: clamp(2.25rem, 1.95rem + 1.8vw, 3.125rem);
  --text-5xl: clamp(2.75rem, 2.3rem + 2.5vw, 4rem);
  --text-hero: clamp(2.85rem, 2.4rem + 3.2vw, 4.75rem);

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4.5rem;
  --space-4xl: 6rem;
  --space-section: clamp(4.5rem, 3.5rem + 4vw, 7.5rem);

  /* Layout */
  --container-max: 1240px;
  --container-narrow: 880px;
  --container-padding: clamp(1.25rem, 1rem + 2vw, 2.5rem);
  --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);
  --transition-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --------------------------------------------------------------------------
   2. Reset & Base Styles
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  background-color: var(--bg-primary);
  background-image: var(--grad-mesh);
  background-attachment: fixed;
  overflow-x: hidden;
  position: relative;
}

/* Subtle Tech Grid Background Overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

/* Ambient dynamic background lighting */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
  transition: transform 0.5s ease;
}

.ambient-glow-1 {
  width: 500px;
  height: 500px;
  background: var(--accent-blue);
  top: -100px;
  right: -100px;
}

.ambient-glow-2 {
  width: 450px;
  height: 450px;
  background: var(--accent-violet);
  bottom: 20%;
  left: -150px;
}

.ambient-glow-3 {
  width: 400px;
  height: 400px;
  background: var(--accent-cyan);
  top: 45%;
  right: 10%;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

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

ul, ol {
  list-style: none;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

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

/* --------------------------------------------------------------------------
   3. Typography & Utilities
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

h1 { font-size: var(--text-hero); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }

p {
  color: var(--text-secondary);
  font-size: var(--text-base);
  line-height: 1.7;
}

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

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

.text-gradient-cyan {
  background: linear-gradient(135deg, #60a5fa 0%, #22d3ee 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.font-mono {
  font-family: var(--font-mono);
}

/* Eyebrow Label */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-cyan);
  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);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.1);
  width: fit-content;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
  animation: pulse-dot 2s infinite ease-in-out;
}

.eyebrow-violet {
  color: var(--accent-violet-light);
  background: rgba(139, 92, 246, 0.08);
  border-color: rgba(139, 92, 246, 0.25);
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.1);
}
.eyebrow-violet .eyebrow-dot {
  background-color: var(--accent-violet-light);
  box-shadow: 0 0 8px var(--accent-violet);
}

.eyebrow-emerald {
  color: var(--accent-emerald-light);
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.25);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.1);
}
.eyebrow-emerald .eyebrow-dot {
  background-color: var(--accent-emerald-light);
  box-shadow: 0 0 8px var(--accent-emerald);
}

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

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

.section {
  padding-top: var(--space-section);
  padding-bottom: var(--space-section);
  position: relative;
  z-index: 1;
}

.section-header {
  margin-bottom: var(--space-3xl);
}

.section-header.text-center {
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  margin-bottom: var(--space-md);
  letter-spacing: -0.03em;
}

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

/* Glassmorphic Surface Cards */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

.glass-panel:hover {
  border-color: var(--border-medium);
  background: var(--bg-card-hover);
}

.glass-panel-glow {
  position: relative;
}

.glass-panel-glow::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: var(--grad-card-border);
  opacity: 0.5;
  pointer-events: none;
  z-index: -1;
  transition: opacity var(--transition-base);
}

.glass-panel-glow:hover::after {
  opacity: 1;
  background: var(--grad-card-border-active);
}

/* Responsive Grid Helpers */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

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

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

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