/* ==========================================================================
   KISHAN KUMAR SHARMA — FLAGSHIP PORTFOLIO DESIGN SYSTEM
   Design Philosophy: "Clarity over Complexity"
   Palette: Obsidian Void, Midnight Slate, Electric Sapphire, Hyper Ice Cyan
   ========================================================================== */

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

:root {
  /* Surface & Base Colors */
  --bg-void: #04060A;
  --bg-midnight: #070A12;
  --bg-surface: #0C111E;
  --bg-surface-elevated: #111827;
  --bg-glass: rgba(12, 17, 30, 0.72);
  --bg-glass-card: rgba(17, 24, 39, 0.65);

  /* Signature Accents (Derived from 3D Brand Artwork) */
  --accent-blue-deep: #1D4ED8;
  --accent-sapphire: #2563EB;
  --accent-cyan-bright: #38BDF8;
  --accent-cyan-laser: #06B6D4;
  --accent-ice: #E0F2FE;
  --accent-glow: rgba(56, 189, 248, 0.28);
  --accent-glow-sapphire: rgba(37, 99, 235, 0.35);

  /* Status Colors */
  --status-emerald: #10B981;
  --status-emerald-glow: rgba(16, 185, 129, 0.3);

  /* Text Typography Hierarchy */
  --text-primary: #FFFFFF;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;
  --text-tertiary: #64748B;

  /* Borders & Dividers */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.14);
  --border-cyan-glow: rgba(56, 189, 248, 0.35);
  --border-blue-glow: rgba(37, 99, 235, 0.4);

  /* Upgraded Typography Hierarchy (High-Trust Geometric Power) */
  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'Space Grotesk', monospace;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Container & Spacing */
  --max-width-site: 1320px;
  --max-width-reading: 880px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-pill: 9999px;

  /* Transitions & Timing */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.2s var(--ease-smooth);
  --transition-medium: 0.35s var(--ease-out-expo);
  --transition-slow: 0.6s var(--ease-out-expo);
}

/* ==========================================================================
   RESET & FOUNDATIONS
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ & Edge */
}

/* Hide scrollbar on right side for WebKit/Blink (Chrome, Edge, Safari, Opera) */
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

body {
  background-color: var(--bg-void);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  overflow-x: clip;
  position: relative;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--accent-sapphire);
  color: var(--text-primary);
}

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

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

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

ul, ol {
  list-style: none;
}

/* ==========================================================================
   CINEMATIC BACKGROUND LAYERS (ATMOSPHERE)
   ========================================================================== */
/* Dynamic Mouse Follower Glow */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 650px;
  height: 650px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.12) 0%, rgba(37, 99, 235, 0.05) 45%, transparent 70%);
  transform: translate(-50%, -50%);
  z-index: 1;
  transition: opacity 0.4s ease;
  mix-blend-mode: screen;
}

/* Subtle Film Grain Overlay */
.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Atmospheric Ambient Glows */
.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

.ambient-glow-top {
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 450px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.22) 0%, rgba(56, 189, 248, 0.12) 50%, transparent 80%);
}

.ambient-glow-blue {
  background: radial-gradient(circle, rgba(37, 99, 235, 0.25) 0%, transparent 70%);
  width: 500px;
  height: 500px;
}

/* Precision Grid Background Lines */
.bg-grid-lines {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: 60px 60px;
  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);
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(circle at center, black 40%, transparent 85%);
  -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 85%);
}

/* Scroll Progress Line */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-sapphire), var(--accent-cyan-bright), #FFFFFF);
  width: 0%;
  z-index: 1000;
  box-shadow: 0 0 12px var(--accent-cyan-bright);
  transition: width 0.1s linear;
}

/* ==========================================================================
   TYPOGRAPHY SCALING & SYSTEM
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.display-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6.5vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.825rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-cyan-bright);
  margin-bottom: 1rem;
}

.section-eyebrow i, .section-eyebrow svg {
  font-size: 0.9em;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  line-height: 1.1;
}

.section-desc {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 680px;
  line-height: 1.7;
}

.text-gradient {
  background: linear-gradient(135deg, #FFFFFF 20%, var(--accent-cyan-bright) 70%, var(--accent-sapphire) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width-site);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

.section-wrapper {
  padding: 120px 0;
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .section-wrapper {
    padding: 80px 0;
  }
  .container {
    padding: 0 20px;
  }
}
