/* ==========================================================================
   SAGOR SHARIF PORTFOLIO - CORE STYLES & DESIGN TOKENS
   Theme: Google Antigravity Light
   ========================================================================== */

:root {
  /* Color Palette - Google Antigravity Pure White & Cloud Slate */
  --bg-darkest: #ffffff;
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-surface-hover: #f1f5f9;

  /* Accent Colors (Antigravity Confetti Palette) */
  --cyan-primary: #0284c7;
  --cyan-electric: #00f2fe;
  --cyan-glow: rgba(0, 242, 254, 0.35);
  --blue-primary: #2563eb;
  --blue-electric: #3b82f6;
  --amber-primary: #d97706;
  --amber-light: #f59e0b;
  --amber-glow: rgba(245, 158, 11, 0.25);
  --emerald-primary: #059669;
  --purple-accent: #7c3aed;
  --coral-accent: #ea4335;

  /* Text Colors - Deep obsidian display & slate body */
  --text-main: #090e17;
  --text-muted: #475569;
  --text-subtle: #64748b;
  --text-accent: #0284c7;

  /* Borders & Dividers */
  --border-subtle: #e2e8f0;
  --border-light: #cbd5e1;
  --border-hover: #94a3b8;
  --border-glow: rgba(2, 132, 199, 0.4);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 24px rgba(2, 132, 199, 0.15);

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #090e17 0%, #0284c7 100%);
  --grad-cyan: linear-gradient(135deg, #00f2fe 0%, #3b82f6 100%);
  --grad-amber: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  --grad-surface: #ffffff;
  --grad-card-glow: radial-gradient(circle at top, rgba(2, 132, 199, 0.06), transparent 70%);

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.18s ease;
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);

  /* Container */
  --container-max: 1240px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  color-scheme: light;
}

body {
  font-family: var(--font-sans);
  background-color: #ffffff;
  color: var(--text-main);
  line-height: 1.65;
  font-size: 1rem;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Global Fixed Google Antigravity Background Canvas */
.antigravity-bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  background-color: #ffffff;
}

/* Interactive Tap & Click Spark Burst Overlay Canvas */
.spark-burst-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  pointer-events: none;
}

/* Custom Selection */
::selection {
  background: #090e17;
  color: #ffffff;
}

/* Accessibility Focus States */
:focus-visible {
  outline: 2px solid var(--cyan-primary);
  outline-offset: 3px;
}

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

p {
  color: var(--text-muted);
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Global Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  position: relative;
  z-index: 2;
}

/* Section Wrapper - Transparent so Antigravity Canvas shines through */
.section {
  padding: 6.5rem 0;
  position: relative;
  z-index: 1;
  background: transparent;
}

@media (max-width: 768px) {
  .section {
    padding: 4.5rem 0;
  }
}

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

.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.08em;
  color: #0284c7;
  background: rgba(2, 132, 199, 0.06);
  border: 1px solid rgba(2, 132, 199, 0.18);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
  font-weight: 600;
}

.section-tag svg {
  width: 14px;
  height: 14px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
  color: #090e17;
}

.section-title .gradient-text {
  background: linear-gradient(135deg, #090e17 20%, #0284c7 80%, #00f2fe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

/* Glass & White Card Panels */
.glass-panel {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.glass-panel:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg);
}

/* Common Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-full);
  transition: all var(--transition-normal);
  white-space: nowrap;
}

.btn-primary {
  background: #090e17;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  background: #020617;
}

.btn-secondary {
  background: #ffffff;
  color: #090e17;
  border: 1.5px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: #f8fafc;
  border-color: var(--border-hover);
  color: #090e17;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-sm {
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
  border-radius: var(--radius-full);
}

.btn-amber {
  background: #f59e0b;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
}

.btn-amber:hover {
  transform: translateY(-2px);
  background: #d97706;
  box-shadow: 0 8px 22px rgba(245, 158, 11, 0.45);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-mono);
  white-space: nowrap;
  flex-shrink: 0;
}

.badge-cyan {
  background: rgba(2, 132, 199, 0.08);
  color: #0284c7;
  border: 1px solid rgba(2, 132, 199, 0.22);
}

.badge-amber {
  background: rgba(245, 158, 11, 0.08);
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.badge-emerald {
  background: rgba(16, 185, 129, 0.08);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.badge-purple {
  background: rgba(124, 58, 237, 0.08);
  color: #7c3aed;
  border: 1px solid rgba(124, 58, 237, 0.25);
}

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