/* ==========================================================================
   GG-Idea Innovations - Master Design System & Core Styles
   Theme: Innovation • Technology • Training • Empowerment • Community
   ========================================================================== */

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

:root {
  /* Brand Primary Palette - Deep Royal Indigo to Electric Purple */
  --primary-950: #0B0720;
  --primary-900: #150E38;
  --primary-800: #24145E;
  --primary-700: #3B1E7E; /* Core Figma Brand Purple */
  --primary-600: #5429B5;
  --primary-500: #6D28D9;
  --primary-400: #8B5CF6;
  --primary-300: #A78BFA;
  --primary-200: #DDD6FE;
  --primary-100: #EDE9FE;
  --primary-50:  #F5F3FF;

  /* Brand Accent Palette - Electric Magenta / Fuchsia */
  --magenta-600: #BE185D;
  --magenta-500: #D946EF; /* Core Figma Vivid Magenta */
  --magenta-400: #E879F9;
  --magenta-300: #F0ABFC;
  --magenta-100: #FDF4FF;
  --fuchsia-gradient: linear-gradient(135deg, #7C3AED 0%, #D946EF 50%, #F43F5E 100%);
  --brand-gradient: linear-gradient(135deg, #3B1E7E 0%, #6D28D9 50%, #D946EF 100%);
  --tech-gradient: linear-gradient(135deg, #2563EB 0%, #06B6D4 50%, #10B981 100%);

  /* Tech & Innovation Accent Colors */
  --cyan-500: #06B6D4;
  --cyan-400: #22D3EE;
  --cyan-100: #ECFEFF;
  --blue-600: #2563EB;
  --blue-500: #3B82F6;
  --gold-500: #F59E0B;
  --gold-400: #FBBF24;
  --gold-gradient: linear-gradient(135deg, #F59E0B 0%, #FCD34D 50%, #D97706 100%);
  --emerald-500: #10B981;
  --emerald-100: #D1FAE5;

  /* Neutral Surface Palette */
  --bg-dark: #0A071B;
  --bg-dark-surface: #120E2E;
  --bg-dark-card: rgba(26, 19, 58, 0.75);
  --bg-white: #FFFFFF;
  --bg-light: #F8FAFC;
  --bg-light-alt: #F1F5F9;
  
  /* Text Colors */
  --text-dark: #0F172A;
  --text-muted-dark: #64748B;
  --text-light: #FFFFFF;
  --text-light-muted: #CBD5E1;
  --text-light-dim: #94A3B8;

  /* Glassmorphism & Borders */
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.4);
  --glass-dark-bg: rgba(18, 14, 46, 0.78);
  --glass-dark-border: rgba(255, 255, 255, 0.12);
  --card-border: rgba(109, 40, 217, 0.12);
  --border-subtle: #E2E8F0;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(11, 7, 32, 0.05);
  --shadow-md: 0 8px 24px -4px rgba(59, 30, 126, 0.12);
  --shadow-lg: 0 16px 40px -8px rgba(59, 30, 126, 0.18);
  --shadow-xl: 0 24px 60px -12px rgba(59, 30, 126, 0.25);
  --shadow-glow-purple: 0 0 35px rgba(109, 40, 217, 0.35);
  --shadow-glow-magenta: 0 0 35px rgba(217, 70, 239, 0.35);

  /* Typography 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', monospace;

  /* Spacing Scale */
  --container-max: 1280px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   CSS Reset & Base Rules
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

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

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

ul, ol {
  list-style: none;
}

/* Accessibility & Touch Targets */
:focus-visible {
  outline: 2px solid var(--primary-500);
  outline-offset: 3px;
}

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--magenta-500);
  outline-offset: 2px;
}

.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;
}

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

h1 {
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.12;
}

h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
}

h3 {
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  font-weight: 700;
}

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

p {
  color: var(--text-muted-dark);
  font-size: 1.05rem;
  line-height: 1.7;
}

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

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

.text-white {
  color: var(--text-light) !important;
}

.text-muted-light {
  color: var(--text-light-muted) !important;
}

/* ==========================================================================
   Layout Containers & Wrappers
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1.25rem, 4vw, 2.5rem);
  padding-right: clamp(1.25rem, 4vw, 2.5rem);
}

.section {
  padding-top: clamp(4.5rem, 8vw, 7.5rem);
  padding-bottom: clamp(4.5rem, 8vw, 7.5rem);
  position: relative;
}

.section-alt {
  background-color: var(--bg-light);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-dark {
  background: linear-gradient(180deg, var(--primary-950) 0%, var(--primary-900) 100%);
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--text-light);
}

.section-dark p {
  color: var(--text-light-muted);
}

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

.section-header.text-left {
  text-align: left;
  margin-left: 0;
}

.section-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  background: rgba(109, 40, 217, 0.08);
  color: var(--primary-600);
  border: 1px solid rgba(109, 40, 217, 0.18);
}

.section-dark .section-pill {
  background: rgba(217, 70, 239, 0.15);
  color: var(--magenta-300);
  border-color: rgba(217, 70, 239, 0.35);
}

.section-title {
  margin-bottom: 1.15rem;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted-dark);
}

.section-dark .section-subtitle {
  color: var(--text-light-muted);
}

/* ==========================================================================
   Grid & Flex Helpers (Mobile-Adaptive)
   ========================================================================== */
.grid {
  display: grid;
  gap: 2rem;
}

.grid > * {
  min-width: 0;
  max-width: 100%;
}

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

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

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

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

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

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-wrap {
  flex-wrap: wrap;
}

.gap-xs { gap: 0.35rem; }
.gap-sm { gap: 0.75rem; }
.gap-md { gap: 1.5rem; }
.gap-lg { gap: 2.5rem; }

/* Responsive Table Wrapper */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}

.table-responsive table {
  width: 100%;
  min-width: 540px;
  border-collapse: collapse;
}

/* Minimum Touch Target Utility */
.touch-target {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Hide Netlify Deploy Preview / Collaborative Drawer Watermark & Floating Badge */
#netlify-cdp-loader,
[data-netlify-deploy-notifications],
[data-netlify-drawer],
.netlify-drawer,
iframe[src*="app.netlify.com"],
iframe[title*="Netlify"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
}

