/* ==========================================================================
   KEVAL PATEL / KEVAL SANKALIYA — PERFORMANCE MARKETING DIRECTOR & GROWTH ARCHITECT
   Core Design System & Global Styles
   Warm Golden Canvas with Lora Typography & Monochromatic Luxury Palette (2-3 Colors Max)
   Interactive Smart UI & Creative Hover Engine
   ========================================================================== */

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

/* --- CSS Variables & Design Tokens (Max 2-3 Unified Color Tones) --- */
:root {
  /* Canvas Background */
  --bg-canvas-start: #f7e8a9;
  --bg-canvas-mid: #f7df78;
  --bg-canvas-end: #f4ce28;

  /* Unified Strict Color Palette (Black, White & Charcoal Slate) */
  --color-ink: #0a0f1d;          /* Primary Tone 1: Deep Ink Obsidian Black */
  --color-ink-light: #1e293b;    /* Secondary Dark Slate */
  --color-ink-muted: #475569;    /* Muted Slate */
  
  --color-white: #ffffff;        /* Primary Tone 2: Pure Crisp White */
  --color-surface-glass: rgba(255, 255, 255, 0.94);
  --color-surface-muted: #faf7ee;

  --color-accent: #0a0f1d;       /* Strict Monochromatic Alignment */
  --color-accent-hover: #1e293b;
  --color-border: rgba(15, 23, 42, 0.16);
  --color-border-strong: rgba(15, 23, 42, 0.35);

  /* Typography */
  --font-serif: 'Lora', Georgia, 'Times New Roman', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Dynamic Spotlight Coordinates */
  --mouse-x: 50%;
  --mouse-y: 50%;

  /* Shadows */
  --shadow-sm: 0 2px 6px -1px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 10px 24px -4px rgba(15, 23, 42, 0.12), 0 4px 8px -2px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 20px 38px -6px rgba(15, 23, 42, 0.14), 0 8px 16px -4px rgba(15, 23, 42, 0.08);
  --shadow-xl: 0 28px 50px -10px rgba(15, 23, 42, 0.18), 0 12px 24px -6px rgba(15, 23, 42, 0.1);
  --shadow-interactive: 0 24px 48px -12px rgba(10, 15, 29, 0.22), 0 8px 16px -4px rgba(10, 15, 29, 0.12);

  /* Transitions */
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-fast: 180ms var(--ease-smooth);
  --transition-base: 320ms var(--ease-smooth);
  --transition-slow: 500ms var(--ease-smooth);

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

  /* Max Widths */
  --max-width-container: 1240px;
  --max-width-narrow: 840px;
  --max-width-wide: 1400px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  color-scheme: light;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  color: var(--color-ink);
  background-color: #f7df78;
  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.88' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.04  0 0 0 0 0.04  0 0 0 0 0.04  0 0 0 0.09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E"),
    linear-gradient(115deg, #f7e8a9 0%, #f7df78 45%, #f4ce28 100%);
  background-size: 180px 180px, 100% 100%;
  background-attachment: fixed, fixed;
  line-height: 1.68;
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4, h5, h6, p, a, span, button, input, select, textarea {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* Subtle Fine Film Grain Noise Texture Overlay */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.14;
  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.88' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='1 0 0 0 0  0 1 0 0 0  0 0 1 0 0  0 0 0 1.6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  mix-blend-mode: multiply;
}

/* Interactive Ambient Cursor Glow */
.ambient-glow-follower {
  position: fixed;
  top: 0;
  left: 0;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 70%);
  transform: translate(-50%, -50%);
  transition: opacity 0.4s ease;
  opacity: 0;
  mix-blend-mode: soft-light;
}

body:hover .ambient-glow-follower {
  opacity: 1;
}

/* --- LORA Typography & Hierarchy --- */
h1, h2, h3, h4, h5, h6, .hero-headline, .display-1, .display-2 {
  font-family: var(--font-serif);
  color: var(--color-ink);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
  -webkit-font-smoothing: antialiased;
}

h1, .display-1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  word-break: break-word;
}

h2, .display-2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
  word-break: break-word;
}

h3 {
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
  font-weight: 700;
  word-break: break-word;
}

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

p {
  font-family: var(--font-sans);
  color: var(--color-ink-light);
  font-size: 1.05rem;
  line-height: 1.72;
  font-weight: 400;
}

p.lead {
  font-size: clamp(1.1rem, 1.8vw, 1.28rem);
  color: var(--color-ink-light);
  line-height: 1.65;
  font-weight: 400;
}

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

a:hover {
  color: var(--color-ink-muted);
}

strong {
  font-weight: 700;
  color: var(--color-ink);
}

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

/* --- Layout & Containers --- */
.container {
  width: 100%;
  max-width: var(--max-width-container);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1rem, 3.5vw, 2.5rem);
  padding-right: clamp(1rem, 3.5vw, 2.5rem);
  box-sizing: border-box;
  position: relative;
  z-index: 2;
}

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

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

.section {
  padding-top: clamp(3.5rem, 7.5vw, 6rem);
  padding-bottom: clamp(3.5rem, 7.5vw, 6rem);
  position: relative;
  z-index: 2;
}

.section-sm {
  padding-top: clamp(2rem, 4.5vw, 3.5rem);
  padding-bottom: clamp(2rem, 4.5vw, 3.5rem);
  position: relative;
  z-index: 2;
}

/* Section Header */
.section-header {
  margin-bottom: clamp(2.5rem, 4.5vw, 3.75rem);
}

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

/* Clean Unified Subtitle Pill with Interactive Shimmer */
.section-subtitle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-ink);
  background: var(--color-white);
  border: 1px solid var(--color-border-strong);
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
  user-select: none;
  max-width: 100%;
}

.section-subtitle:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-ink);
}

.section-subtitle.emerald,
.section-subtitle.gold {
  color: var(--color-ink);
  background: var(--color-white);
  border-color: var(--color-border-strong);
}

/* --- Interactive Buttons with Fluid Hover Sweep --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: normal;
  text-align: center;
  user-select: none;
  line-height: 1.3;
  position: relative;
  overflow: hidden;
  z-index: 1;
  max-width: 100%;
  box-sizing: border-box;
}

.btn::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -60%;
  width: 20%;
  height: 200%;
  background: rgba(255, 255, 255, 0.25);
  transform: rotate(30deg);
  pointer-events: none;
  transition: transform 0.6s ease;
  z-index: 2;
}

.btn:hover::after {
  transform: rotate(30deg) translate(500%, 0);
}

.btn svg {
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.btn:hover svg {
  transform: translateX(4px);
}

.btn-primary, .btn-growth {
  background: #0a0f1d;
  color: #ffffff;
  border-color: #0a0f1d;
  box-shadow: 0 4px 14px rgba(10, 15, 29, 0.25);
}

.btn-primary:hover, .btn-growth:hover {
  background: #1e293b;
  color: #ffffff;
  border-color: #1e293b;
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(10, 15, 29, 0.35);
}

.btn-primary:active, .btn-growth:active {
  transform: translateY(-1px);
}

.btn-secondary {
  background: #ffffff;
  color: var(--color-ink);
  border: 1px solid var(--color-border-strong);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: #ffffff;
  border-color: var(--color-ink);
  color: var(--color-ink);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(10, 15, 29, 0.15);
}

.btn-ghost {
  background: transparent;
  color: var(--color-ink);
  border: 1px solid transparent;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.85);
  border-color: var(--color-border-strong);
  color: var(--color-ink);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 0.95rem 1.85rem;
  font-size: 1.02rem;
  border-radius: var(--radius-lg);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.btn-full {
  width: 100%;
}

/* --- Creative Interactive Cards with Non-Clipping Badges --- */
.card {
  background: var(--color-surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3vw, 2.25rem);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base), background var(--transition-base);
  position: relative;
  overflow: visible; /* Prevents clipping of top badges */
  box-sizing: border-box;
}

/* Dynamic Cursor-Tracking Ambient Spotlight on Card Surface */
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  background: radial-gradient(circle 280px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.95), transparent 70%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 1;
}

.card:hover::before {
  opacity: 0.75;
}

.card > * {
  position: relative;
  z-index: 2;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-interactive);
  border-color: var(--color-ink);
  background: #ffffff;
}

.card-solid {
  background: #ffffff;
  border: 1px solid var(--color-border-strong);
}

.card-flat {
  box-shadow: none;
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.92);
}

.card-flat:hover {
  border-color: var(--color-ink);
  background: #ffffff;
}

.card-glow-primary:hover, .card-glow-growth:hover {
  border-color: var(--color-ink);
  box-shadow: var(--shadow-interactive);
}

/* --- Badges & Pills --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
  line-height: 1.2;
  background: #ffffff;
  color: var(--color-ink);
  border: 1px solid var(--color-border-strong);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.card:hover .badge {
  border-color: var(--color-ink);
  background: var(--color-surface-muted);
}

.badge-sapphire, .badge-growth, .badge-amber, .badge-gold, .badge-slate, .badge-purple {
  background: #ffffff;
  color: var(--color-ink);
  border: 1px solid var(--color-border-strong);
}

/* Status Indicator Dot */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  border: 1px solid var(--color-border-strong);
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-ink);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
  white-space: nowrap;
}

.status-pill:hover {
  transform: translateY(-1px);
  border-color: var(--color-ink);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #0a0f1d;
  position: relative;
  flex-shrink: 0;
}

.status-dot::after {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #0a0f1d;
  opacity: 0.3;
  animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.8); opacity: 0.8; }
  70% { transform: scale(2.2); opacity: 0; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* --- Grids & Utility Layouts --- */
.grid {
  display: grid;
  gap: 1.5rem;
}

.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-12 { grid-template-columns: repeat(12, 1fr); }

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

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-xs { gap: 0.25rem; }
.gap-sm { gap: 0.5rem; }
.gap-md { gap: 1rem; }
.gap-lg { gap: 1.5rem; }
.gap-xl { gap: 2rem; }

/* --- Text Utilities --- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-growth, .text-primary-accent, .text-amber, .text-gold { color: var(--color-ink); }
.text-muted { color: var(--color-ink-muted); }

/* Editorial Highlight Text */
.text-gradient-sapphire, .text-gradient-growth {
  color: var(--color-ink);
  font-style: italic;
  text-decoration: underline;
  text-decoration-color: rgba(10, 15, 29, 0.4);
  text-underline-offset: 4px;
}

/* --- Scroll Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-smooth), transform 0.6s var(--ease-smooth);
  will-change: opacity, transform;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(247, 223, 120, 0.8);
}

::-webkit-scrollbar-thumb {
  background: #0a0f1d;
  border-radius: var(--radius-full);
  border: 2px solid rgba(247, 223, 120, 0.8);
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
  max-width: calc(100vw - 2rem);
}

.toast {
  pointer-events: auto;
  background: #ffffff;
  border: 2px solid var(--color-ink);
  box-shadow: var(--shadow-xl);
  padding: 1rem 1.4rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--color-ink);
  animation: toast-slide-in 0.35s ease forwards;
  max-width: 380px;
}

@keyframes toast-slide-in {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
