/* ============================================
   Gaurav Rajwanshi — Personal Branding Website
   Luxury Dark Navy + Rich Gold Theme
   ============================================ */

/* ---- CSS Variables ---- */
:root {
  /* Deep Premium Velvet Blues */
  --bg-primary: #040612;
  --bg-secondary: #091024;
  --bg-card: rgba(9, 16, 36, 0.70);
  --bg-card-hover: rgba(14, 22, 48, 0.90);
  
  /* Muted Antique Dark Gold */
  --accent: #b58d24;
  --accent-hover: #c9a334;
  --accent-light: #e0be5a;
  --accent-bright: #ead181;
  --accent-dark: #8c6a15;
  
  /* Transparencies & Glows */
  --accent-glow: rgba(181, 141, 36, 0.35);
  --accent-subtle: rgba(181, 141, 36, 0.08);
  --accent-shimmer: rgba(224, 190, 90, 0.18);
  --blue-glow: rgba(28, 48, 120, 0.25);
  --blue-accent: #1c3078;
  
  /* Text & Structure */
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: rgba(181, 141, 36, 0.18);
  --border-light: rgba(255, 255, 255, 0.06);
  --glass-bg: rgba(9, 16, 36, 0.7);
  --glass-border: rgba(181, 141, 36, 0.12);
  
  /* Shadows */
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.45);
  --shadow-gold: 0 4px 24px rgba(181, 141, 36, 0.20);
  
  /* Misc */
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --container: 1200px;
  --nav-height: 72px;
  
  /* Gradients */
  --gold-gradient: linear-gradient(135deg, #8c6a15, #b58d24, #c9a334, #e0be5a, #c9a334, #b58d24);
  --gold-gradient-flat: linear-gradient(135deg, #8c6a15, #b58d24, #c9a334);
  --gold-metallic: linear-gradient(135deg, #6e5108, #8c6a15, #b58d24, #c9a334, #ead181, #c9a334, #b58d24, #8c6a15);
}

/* ---- Reset & Base ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-padding-top: var(--nav-height); }
body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  /* Velvet ambient glows using deep violet-indigo hues */
  background-image:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(28, 48, 120, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(181, 141, 36, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse 70% 60% at 10% 40%, rgba(14, 22, 48, 0.4) 0%, transparent 80%);
  background-attachment: fixed;
}
body.nav-open { overflow: hidden; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}
::selection { background: var(--accent); color: var(--bg-primary); }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-hover); }
strong { color: var(--text-primary); font-weight: 600; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Scroll Progress ---- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--gold-gradient);
  z-index: 10000;
  width: 0;
  transition: width 0.1s linear;
}

/* ---- Navigation ---- */
.navbar {
  position: sticky;
  top: -1px;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: var(--transition);
  background: transparent;
}
.navbar.scrolled {
  background: rgba(8, 14, 36, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4), 0 1px 0 rgba(232, 178, 48, 0.12);
}
.nav-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-icon {
  width: 38px;
  height: 38px;
  background: var(--gold-gradient);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 18px;
  color: var(--bg-primary);
  box-shadow: 0 2px 12px rgba(232, 178, 48, 0.35);
  overflow: hidden;
}
.logo-monogram {
  width: 30px;
  height: 30px;
  object-fit: contain;
  filter: brightness(0) opacity(0.7);
}
.logo-text {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}
.logo-accent { color: var(--accent); }
.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
}
.nav-link {
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}
.nav-link:hover,
.nav-link.active {
  color: var(--accent);
  background: var(--accent-subtle);
}
.nav-cta {
  background: var(--gold-gradient);
  color: var(--bg-primary);
  border: none;
  padding: 10px 20px;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  box-shadow: 0 2px 14px rgba(232, 178, 48, 0.30);
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(232, 178, 48, 0.45);
}
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-burger span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ---- Hero Section ---- */
.hero {
  min-height: calc(100vh - 110px);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 40px 0 80px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}
.hero-orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(232, 178, 48, 0.22), transparent 70%);
  top: -15%;
  right: -8%;
  animation: float 15s ease-in-out infinite;
}
.hero-orb-2 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(40, 80, 200, 0.22), transparent 70%);
  bottom: 5%;
  left: -8%;
  animation: float 18s ease-in-out infinite reverse;
}
.hero-orb-3 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(232, 178, 48, 0.15), transparent 70%);
  top: 40%;
  left: 30%;
  animation: float 12s ease-in-out infinite 3s;
}
/* Royal blue glow accent */
.hero-bg::before {
  content: '';
  position: absolute;
  top: 20%;
  left: -5%;
  width: 400px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(40, 80, 200, 0.12) 0%, transparent 70%);
  filter: blur(60px);
  animation: blueGlow 10s ease-in-out infinite alternate;
  pointer-events: none;
}
/* Warm gold glare flare */
.hero-bg::after {
  content: '';
  position: absolute;
  top: 10%;
  right: 5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(255, 208, 74, 0.14) 0%, transparent 65%);
  filter: blur(50px);
  animation: softGlare 8s ease-in-out infinite alternate;
  pointer-events: none;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(232, 178, 48, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 178, 48, 0.035) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 100%);
}
/* Decorative gold edge line across hero */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(232, 178, 48, 0.3), rgba(255, 208, 74, 0.7), rgba(255, 225, 122, 0.9), rgba(255, 208, 74, 0.7), rgba(232, 178, 48, 0.3), transparent);
  z-index: 2;
}
/* Mouse-responsive cursor glow */
.hero-cursor-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 178, 48, 0.08) 0%, rgba(232, 178, 48, 0.03) 35%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.6s ease;
  will-change: transform;
}
.hero:hover .hero-cursor-glow {
  opacity: 1;
}
/* Floating gold particles */
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.hero-particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
}
.hero-particle--gold {
  background: radial-gradient(circle, rgba(255, 208, 74, 0.6), rgba(232, 178, 48, 0.2) 60%, transparent);
}
.hero-particle--white {
  background: radial-gradient(circle, rgba(255, 245, 200, 0.5), rgba(255, 225, 122, 0.15) 60%, transparent);
}
/* Hero elements parallax-ready */
.hero-orb,
.hero-grid {
  will-change: transform;
  transition: transform 0.15s ease-out;
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(180deg, rgba(20, 24, 44, 0.6) 0%, rgba(10, 12, 22, 0.8) 100%);
  border: 1px solid rgba(224, 190, 90, 0.3);
  box-shadow: 0 4px 20px rgba(181, 141, 36, 0.15), inset 0 0 12px rgba(181, 141, 36, 0.08);
  backdrop-filter: blur(12px);
  padding: 10px 24px;
  border-radius: 100px;
  margin-bottom: 32px;
}
.hero-badge .badge-text {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-badge .badge-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-light);
  box-shadow: 0 0 8px var(--accent-bright);
}

.hero-overlap-group {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 16px;
  margin-bottom: 24px;
}

/* Handwritten Quote Note */
.hero-handwritten-note {
  position: absolute;
  bottom: 60px;
  right: 2%;
  transform: rotate(-30deg);
  transform-origin: bottom left;
  z-index: 10;
  max-width: 280px;
  text-align: left;
  pointer-events: none;
}
.hw-char {
  display: inline-block;
  transition: none;
}
.hw-quote {
  font-family: 'Caveat', cursive;
  font-size: 1.45rem;
  font-weight: 500;
  color: rgba(225, 190, 90, 0.7);
  line-height: 1.35;
  display: block;
  text-shadow: 0 0 20px rgba(225, 190, 90, 0.1);
}
.hw-signature {
  font-family: 'Caveat', cursive;
  font-size: 1.1rem;
  font-weight: 700;
  color: rgba(225, 190, 90, 0.45);
  display: block;
  margin-top: 6px;
  padding-left: 60px;
  transform: rotate(-1deg);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(3.8rem, 12vw, 9.5rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 0.85;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}
.hero-title-accent {
  background: linear-gradient(135deg, #c49528, #e8b230, #ffd04a, #ffe990, #fff5c2, #ffe990, #ffd04a, #e8b230, #c49528);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 400% 100%;
  animation: shimmerText 4s ease-in-out infinite;
  filter: drop-shadow(0 0 12px rgba(232, 178, 48, 0.25));
}
.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--text-secondary);
  margin-bottom: 12px;
  font-weight: 400;
  line-height: 1.5;
}
.hero-tagline {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 40px;
  letter-spacing: 0.02em;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.hero-social {
  display: flex;
  gap: 16px;
  justify-content: center;
}
.hero-social a {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: 16px;
  transition: var(--transition);
  background: var(--glass-bg);
}
.hero-social a:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-subtle);
  transform: translateY(-3px);
}
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
}
.btn-primary {
  background: var(--gold-gradient);
  color: var(--bg-primary);
  box-shadow: 0 2px 18px rgba(232, 178, 48, 0.30);
}
.btn-primary:hover {
  color: var(--bg-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 36px rgba(232, 178, 48, 0.50);
}
.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn-outline:hover {
  background: var(--accent-subtle);
  color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 24px rgba(232, 178, 48, 0.20);
}
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-full { width: 100%; justify-content: center; }

/* ---- Section Styling ---- */
.section {
  padding: 0 0 100px;
  position: relative;
  /* Make sure scrolling anchors tight to the navbar */
  scroll-margin-top: calc(var(--nav-height));
}
.section-dark {
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 40%, var(--bg-secondary) 60%, var(--bg-primary) 100%);
  position: relative;
}
.section-header {
  text-align: center;
  margin-bottom: 48px;
  padding-top: 24px;
}
.section-label {
  display: inline-block;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}
.section-divider {
  width: 60px;
  height: 3px;
  background: var(--gold-gradient);
  border-radius: 2px;
  margin: 0 auto;
  box-shadow: 0 1px 10px rgba(232, 178, 48, 0.4);
}

/* ---- About Section ---- */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 60px;
  align-items: start;
}
.about-content p {
  margin-bottom: 16px;
  font-size: 15px;
  line-height: 1.8;
}
.about-lead {
  font-size: 18px !important;
  color: var(--text-primary);
  font-weight: 400;
  line-height: 1.7 !important;
}
.about-values {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.values-label {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
}
.about-values::before { display: none; }
.values-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex: 1;
}
.value-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(196, 149, 40, 0.06);
  border: 1px solid rgba(196, 149, 40, 0.12);
  border-radius: 100px;
  transition: all 0.3s ease;
  cursor: default;
}
.value-item:hover {
  background: rgba(196, 149, 40, 0.14);
  border-color: rgba(196, 149, 40, 0.3);
  transform: translateY(-2px);
}
.value-item:hover .value-text {
  color: var(--accent);
}
.value-icon {
  font-size: 14px;
  line-height: 1;
  flex-shrink: 0;
}
.value-text {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
  transition: color 0.3s ease;
}
@media (max-width: 768px) {
  .about-values { flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 32px; }
  .values-grid { gap: 8px; }
  .value-item { padding: 6px 12px; }
  .value-icon { font-size: 12px; }
  .value-text { font-size: 12px; }
}
@media (max-width: 480px) {
  .values-grid { gap: 6px; }
  .value-item { padding: 5px 10px; }
  .value-text { font-size: 11px; }
}
/* Value Tooltips */
.value-item { position: relative; cursor: pointer; }
.value-tooltip {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  width: max(260px, 100%);
  max-width: 340px;
  padding: 16px 18px;
  background: rgba(12, 18, 38, 0.92);
  border: 1px solid rgba(196, 149, 40, 0.25);
  border-radius: 14px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.03);
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-secondary);
  font-weight: 400;
  font-style: italic;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.value-tooltip.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.value-tooltip::after {
  content: '';
  position: absolute;
  bottom: -7px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: rgba(12, 18, 38, 0.92);
  border-right: 1px solid rgba(196, 149, 40, 0.25);
  border-bottom: 1px solid rgba(196, 149, 40, 0.25);
}
@media (max-width: 768px) {
  .value-tooltip { position: fixed; bottom: auto; top: auto; left: 16px !important; right: 16px; transform: none; width: auto; max-width: none; bottom: 20px; }
  .value-tooltip.active { transform: none; }
  .value-tooltip::after { display: none; }
}
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  transition: var(--transition);
}
.stat-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(232, 178, 48, 0.20);
}
.stat-number {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  background: var(--gold-metallic);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 100%;
  animation: shimmerText 6s ease-in-out infinite;
  line-height: 1;
  filter: drop-shadow(0 0 8px rgba(232, 178, 48, 0.20));
}
.stat-prefix {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  background: var(--gold-metallic);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-plus {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  background: var(--gold-metallic);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
  font-weight: 500;
}

/* ---- Experience Section ---- */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 64px;
}
.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  transition: var(--transition);
}
.metric-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}
.metric-value {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  background: var(--gold-metallic);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 100%;
  animation: shimmerText 6s ease-in-out infinite;
  line-height: 1;
  margin-bottom: 8px;
  filter: drop-shadow(0 0 6px rgba(232, 178, 48, 0.15));
}
.metric-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 6px;
}
.metric-source {
  font-size: 11px;
  color: var(--text-muted);
  font-style: italic;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 40px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--border), transparent);
}
.timeline-item {
  position: relative;
  margin-bottom: 32px;
}
.timeline-dot {
  position: absolute;
  left: -36px;
  top: 20px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 2.5px solid var(--text-muted);
  z-index: 2;
}
.timeline-dot.current {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-glow);
}
.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.timeline-card:hover {
  border-color: var(--border);
  background: var(--bg-card-hover);
}
.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
  flex-wrap: wrap;
  gap: 8px;
}
.timeline-company {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
/* Large watermark logo in top-right of card */
.company-logo-bg {
  position: absolute;
  top: 14px;
  right: 18px;
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: grayscale(1) brightness(0.6) invert(1);
  opacity: 0.5;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.timeline-card:hover .company-logo-bg {
  opacity: 0.7;
}
/* Small inline logos for earlier career pills */
.company-logo {
  width: 18px;
  height: 18px;
  object-fit: contain;
  border-radius: 0;
  filter: grayscale(1) brightness(0.6) invert(1);
  opacity: 0.5;
  flex-shrink: 0;
  transition: all 0.3s ease;
}
.company-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.company-pill .company-logo {
  width: 16px;
  height: 16px;
}
.timeline-date {
  font-size: 12px;
  color: var(--text-muted);
}
.timeline-role {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.timeline-card p {
  font-size: 14px;
  line-height: 1.7;
}
.earlier-card { background: var(--accent-subtle); border-color: var(--border); }
.earlier-companies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px !important;
}
.earlier-companies span {
  padding: 4px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 100px;
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ---- Services Section ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 80px;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold-gradient);
  opacity: 0;
  transition: var(--transition);
}
.service-card:hover {
  border-color: var(--border);
  transform: translateY(-6px);
  box-shadow: var(--shadow), 0 0 0 1px rgba(232, 178, 48, 0.10);
}
.service-card:hover::before { opacity: 1; }
.service-icon {
  width: 56px;
  height: 56px;
  background: var(--accent-subtle);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--accent);
  margin-bottom: 20px;
}
.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 12px;
  font-weight: 600;
}
.service-card p {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 16px;
}
.service-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.service-link:hover { gap: 10px; }

/* Work Models */
.models-heading {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 36px;
  font-weight: 600;
}
.models-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.model-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
}
.model-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 12px 40px rgba(232, 178, 48, 0.18);
}
.model-letter {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  background: var(--gold-gradient);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  color: var(--bg-primary);
  box-shadow: 0 4px 18px rgba(232, 178, 48, 0.35);
}
.model-card h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 8px;
  font-weight: 600;
}
.model-expand {
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 12px !important;
  letter-spacing: 0.02em;
}
.model-card p {
  font-size: 13px;
  line-height: 1.7;
}

/* ---- Books Section ---- */
.books-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}
.book-card {
  display: flex;
  gap: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
  align-items: center;
}
.book-card:hover {
  border-color: var(--border);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.book-cover {
  flex-shrink: 0;
  width: 140px;
  height: 190px;
  position: relative;
  perspective: 300px;
}
.book-spine {
  position: absolute;
  left: 0;
  top: 5%;
  bottom: 5%;
  width: 12px;
  background: var(--gold-gradient);
  border-radius: 2px 0 0 2px;
  transform: rotateY(-15deg);
  transform-origin: right;
  z-index: 0;
}
.book-front {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, #1a2744, #0d1b35, #0a1528);
  border-radius: 2px 8px 8px 2px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 12px;
  gap: 4px;
  box-shadow: 4px 4px 20px rgba(0, 0, 0, 0.4);
  z-index: 1;
}
.book-front-alt {
  background: linear-gradient(160deg, #2a1a0a, #1a1005, #0f0a02);
}
.book-author-sm {
  font-size: 8px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
}
.book-title-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.book-label {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.book-label.accent { color: var(--accent); }
.book-label.alt { font-size: 22px; color: var(--accent-light); }
.book-badge {
  margin-top: 8px;
  padding: 3px 10px;
  background: var(--accent);
  color: var(--bg-primary);
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 100px;
}
.book-tagline {
  font-size: 7px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 8px;
  line-height: 1.4;
}
.book-info h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--text-primary);
  margin-bottom: 4px;
  font-weight: 700;
}
.book-subtitle {
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 12px;
  font-weight: 500;
}
.book-info p {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 20px;
}
.book-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}
@media (max-width: 768px) {
  .book-actions { justify-content: center; }
  .book-actions .btn { width: auto; max-width: none; }
}

/* ---- Skills Section ---- */
.skills-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}
.skills-col h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}
.skills-col h3 i { color: var(--accent); font-size: 18px; }
.tools-heading { margin-top: 20px; }
.skill-group { display: flex; flex-direction: column; gap: 14px; }
.skill-category h4 {
  font-size: 13px;
  color: var(--text-primary);
  margin-bottom: 6px;
  font-weight: 600;
}
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.skill-tags span {
  padding: 5px 12px;
  background: var(--accent-subtle);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
  transition: var(--transition);
}
.skill-tags span:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.tools-tags span {
  background: var(--bg-card);
  border-color: var(--border-light);
}
.certs-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cert-badge {
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 10px;
}
.cert-badge:hover { border-color: var(--border); }
.cert-org {
  padding: 2px 8px;
  background: var(--accent-subtle);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

/* ---- Testimonials ---- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
  position: relative;
}
.testimonial-card:hover {
  border-color: var(--border);
  transform: translateY(-3px);
}
.testimonial-quote {
  color: var(--accent);
  font-size: 24px;
  margin-bottom: 16px;
  opacity: 0.5;
}
.testimonial-card p {
  font-size: 14px;
  line-height: 1.8;
  font-style: italic;
  color: var(--text-secondary);
}
.testimonial-stars {
  margin-top: 16px;
  color: var(--accent);
  font-size: 13px;
  display: flex;
  gap: 3px;
}

/* ---- Contact Section ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-intro {
  font-size: 16px;
  color: var(--text-primary);
  margin-bottom: 32px;
  line-height: 1.7;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  transition: var(--transition);
  text-decoration: none;
}
a.contact-item:hover {
  border-color: var(--accent);
  transform: translateX(6px);
}
.contact-icon {
  width: 42px;
  height: 42px;
  background: var(--accent-subtle);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 16px;
  flex-shrink: 0;
}
.contact-label {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 2px;
}
.contact-value {
  display: block;
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 500;
}
.contact-social h4 {
  font-family: var(--font-heading);
  font-size: 14px;
  color: var(--text-primary);
  margin-bottom: 16px;
  font-weight: 600;
}
.contact-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.contact-social-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
  transition: var(--transition);
}
.contact-social-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.contact-social-links a i { font-size: 15px; }

/* CV Download Card */
.cv-download-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: var(--transition);
}
.cv-download-card.highlight {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow), var(--shadow);
}
.cv-card-header {
  text-align: center;
  margin-bottom: 28px;
}
.cv-card-header i {
  font-size: 36px;
  color: var(--accent);
  margin-bottom: 12px;
}
.cv-card-header h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--text-primary);
  margin-bottom: 6px;
  font-weight: 700;
}
.cv-card-header p {
  font-size: 13px;
  color: var(--text-muted);
}
.cv-form { display: flex; flex-direction: column; gap: 16px; }
.form-group label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.form-group input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  transition: var(--transition);
  outline: none;
}
.form-group input::placeholder { color: var(--text-muted); }
.form-group input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
/* Select & textarea in modal form match inputs */
.cv-form select,
.cv-form textarea {
  color: var(--text-muted);
}
.cv-form select:focus,
.cv-form textarea:focus,
.cv-form input:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px var(--accent-glow) !important;
}
.cv-form select option {
  background: var(--bg-primary);
  color: var(--text-primary);
}
.cv-form textarea::placeholder {
  color: var(--text-muted);
}
.cv-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 40px 20px;
}
.success-icon {
  font-size: 56px;
  color: #4ade80;
}
.cv-success h4 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--text-primary);
  font-weight: 700;
}
.cv-success p {
  font-size: 14px;
  color: var(--text-muted);
}

/* ---- Footer ---- */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  padding: 48px 0 24px;
}
.footer-content {
  text-align: center;
  margin-bottom: 24px;
}
.footer-content .logo-icon,
.footer-content .logo-text {
  display: inline-flex;
}
.footer-content .logo-icon { margin-right: 10px; vertical-align: middle; }
.footer-content .logo-text { vertical-align: middle; }
.footer-tagline {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 12px;
}
.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 18px;
}
.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  transition: var(--transition);
}
.footer-links a:hover {
  color: var(--accent);
}
.footer-social {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}
.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: 15px;
  transition: var(--transition);
}
.footer-social a:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-subtle);
}
.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 20px;
  text-align: center;
}
.footer-bottom p {
  font-size: 13px;
  color: var(--text-muted);
}

/* ---- Back to Top ---- */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--bg-primary);
  border: none;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 900;
  box-shadow: 0 4px 20px var(--accent-glow);
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover { background: var(--accent-hover); transform: translateY(-3px); }

/* ---- Animations ---- */
@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, -30px); }
}
@keyframes scrollLine {
  0% { opacity: 1; transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { opacity: 0.3; transform: scaleY(0); transform-origin: bottom; }
}
@keyframes shimmerText {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes softGlare {
  0% { opacity: 0.5; transform: translate(0, 0) scale(1); }
  50% { opacity: 0.8; transform: translate(-15px, 8px) scale(1.1); }
  100% { opacity: 0.5; transform: translate(8px, -8px) scale(1); }
}
@keyframes blueGlow {
  0% { opacity: 0.6; transform: translate(0, 0) scale(1); }
  50% { opacity: 0.9; transform: translate(10px, -15px) scale(1.08); }
  100% { opacity: 0.6; transform: translate(-5px, 5px) scale(1); }
}
@keyframes softFlare {
  0%, 100% { opacity: 0; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1); }
}
@keyframes goldEdgePulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

/* Subtle flare on primary buttons */
.btn-primary {
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(255, 255, 255, 0.14) 45%,
    rgba(255, 255, 255, 0.25) 50%,
    rgba(255, 255, 255, 0.14) 55%,
    transparent 70%
  );
  transform: translateX(-100%);
  transition: none;
  pointer-events: none;
}
.btn-primary:hover::after {
  animation: btnFlare 0.7s ease-out forwards;
}
@keyframes btnFlare {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Subtle shimmer on nav CTA */
.nav-cta {
  position: relative;
  overflow: hidden;
}
.nav-cta::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(255, 255, 255, 0.10) 48%,
    rgba(255, 255, 255, 0.20) 50%,
    rgba(255, 255, 255, 0.10) 52%,
    transparent 70%
  );
  transform: translateX(-100%);
  pointer-events: none;
}
.nav-cta:hover::after {
  animation: btnFlare 0.7s ease-out forwards;
}

/* Gold decorative line between sections */
.section {
  position: relative;
}
.section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 178, 48, 0.15), rgba(255, 208, 74, 0.45), rgba(232, 178, 48, 0.15), transparent);
}

/* Scroll-triggered animations */
.animate-in,
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.animate-in.visible,
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}



/* Hero Center Layout */
.hero-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}
.hero-text-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero-portrait-container {
  position: relative;
  width: 100%;
  max-width: 480px;
  /* Pull it up super aggressively so it cuts deeply into Rajwanshi, but stays below Gaurav */
  margin: clamp(-80px, -18vw, -220px) auto 24px auto; 
  display: flex;
  justify-content: center;
  z-index: 2;
  pointer-events: none; /* Allows text behind to be selectable if needed */
}
.hero-portrait {
  width: 100%;
  height: auto;
  position: relative;
  z-index: 2;
  /* Deep 3D popping effect: dark intense body shadow + soft accent glow */
  filter: drop-shadow(0 25px 35px rgba(0,0,0,0.75)) drop-shadow(0 -10px 25px rgba(181, 141, 36, 0.25));
  /* Fades the table and hands aggressively into the darkness at the bottom */
  -webkit-mask-image: linear-gradient(to bottom, black 65%, transparent 92%);
  mask-image: linear-gradient(to bottom, black 65%, transparent 92%);
}
.hero-portrait-glow {
  position: absolute;
  top: 35%; /* Pull glow up towards the head/shoulders, leaving hands in darkness */
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70%;
  height: 55%;
  background: radial-gradient(circle, rgba(181, 141, 36, 0.15) 0%, transparent 65%);
  z-index: 1;
  filter: blur(30px);
}

/* Company Pills for Earlier Career */
.earlier-companies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.company-pill {
  padding: 4px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
  color: var(--text-secondary);
}

/* Newsletter Styles */
.section-newsletter {
  padding: 80px 0;
  border-bottom: 1px solid var(--border-light);
}
.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 500px;
  margin: 0 auto;
}
.newsletter-input {
  flex: 1;
  padding: 14px 20px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
}
.newsletter-input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.08);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-stats { grid-template-columns: repeat(4, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .models-grid { grid-template-columns: 1fr; }
  .books-grid { grid-template-columns: 1fr; }
  .skills-layout { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .hero-social { justify-content: center; }
  .hero-portrait-container { max-width: 380px; }
}

@media (max-width: 768px) {
  :root { --nav-height: 64px; }
  .section { padding: 60px 0; }
  .section-header { margin-bottom: 40px; }

  /* Navigation */
  .nav-links {
    position: fixed;
    inset: 0;
    background: rgba(8, 14, 36, 0.98);
    backdrop-filter: blur(24px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
  }
  .nav-links.open {
    opacity: 1;
    visibility: visible;
  }
  .nav-link { font-size: 18px; padding: 12px 24px; }
  .nav-cta { display: none; }
  .nav-burger { display: flex; z-index: 1001; }

  /* Hero */
  .hero { padding: 90px 0 40px; min-height: auto; }
  .hero-title { font-size: clamp(2.2rem, 9vw, 3.2rem); }
  .hero-badge { padding: 8px 16px; margin-bottom: 20px; }
  .hero-badge .badge-text { font-size: 10px; letter-spacing: 0.08em; }
  .hero-badge .badge-dot { width: 3px; height: 3px; }
  .hero-subtitle { font-size: 0.95rem; margin-bottom: 8px; }
  .hero-tagline { font-size: 13px; margin-bottom: 28px; }
  .hero-actions { flex-direction: column; align-items: center; gap: 10px; }
  .btn { width: 100%; max-width: 280px; justify-content: center; padding: 12px 24px; font-size: 14px; }
  .hero-scroll { display: none; }
  .hero-social { gap: 12px; }
  .hero-social a { width: 40px; height: 40px; font-size: 14px; }
  .hero-portrait-container { max-width: 320px; margin-top: clamp(-60px, -14vw, -120px); }
  .hero-portrait { filter: drop-shadow(0 15px 20px rgba(0,0,0,0.6)) drop-shadow(0 -5px 15px rgba(181, 141, 36, 0.15)); }
  .hero-handwritten-note { position: relative; bottom: auto; right: auto; transform: rotate(-3deg); margin-top: 16px; max-width: 220px; margin-left: auto; margin-right: 10px; }
  .hw-quote { font-size: 1.1rem; }
  .hw-signature { font-size: 0.85rem; padding-left: 30px; }

  /* About */
  .about-grid { gap: 32px; }
  .about-lead { font-size: 16px !important; }
  .about-content p { font-size: 14px; }
  .about-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat-number { font-size: 2rem; }

  /* Values */
  .about-values { margin-top: 32px !important; }
  .values-grid { gap: 8px; }
  .value-item { padding: 6px 12px; }
  .value-icon { font-size: 12px; }
  .value-text { font-size: 12px; }

  /* Experience */
  .timeline { padding-left: 28px; }
  .timeline::before { left: 6px; }
  .timeline-dot { left: -26px; width: 12px; height: 12px; }
  .timeline-card { padding: 20px; }
  .timeline-header { flex-direction: column; align-items: flex-start; gap: 4px; }
  .earlier-companies { gap: 6px; }
  .earlier-companies span, .company-pill { font-size: 11px; padding: 3px 10px; }

  /* Metrics */
  .metrics-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .metric-card { padding: 16px; }
  .metric-value { font-size: 1.6rem; }

  /* Books */
  .book-card { flex-direction: column; text-align: center; padding: 24px 20px; gap: 20px; }
  .book-cover { margin: 0 auto; width: 120px; height: 160px; }
  .book-info { text-align: center; }
  .book-info h3 { font-size: 1.1rem; }
  .book-info .btn { margin: 8px auto 0; width: auto; max-width: none; display: inline-flex; padding: 10px 20px; font-size: 13px; }
  .book-info .hero-actions,
  .book-info div[style*="flex"] { flex-direction: column; align-items: center; gap: 8px; }

  /* Skills */
  .skills-layout { grid-template-columns: 1fr; gap: 32px; }
  .skill-tags span { font-size: 12px; padding: 4px 10px; }
  .cert-badge { font-size: 12px; padding: 8px 12px; }
  .cert-org { font-size: 9px; }

  /* Services */
  .service-card { padding: 24px 20px; }

  /* Models */
  .model-card { padding: 24px 20px; }

  /* Testimonials */
  .testimonial-card { padding: 24px 20px; }

  /* Contact */
  .contact-grid { gap: 32px; }
  .cv-download-card { padding: 24px 20px; }

  /* Newsletter */
  .newsletter-form { flex-direction: column; gap: 10px; }
  .newsletter-input { padding: 12px 16px; font-size: 14px; }
  .newsletter-form .btn { width: 100%; max-width: none; }

  /* Footer */
  .footer-content { flex-direction: column; text-align: center; gap: 20px; }
  .footer-links { justify-content: center; flex-wrap: wrap; gap: 12px; }
  .footer-social { justify-content: center; }

  /* Modal */
  .modal-content { padding: 28px 20px; margin: 16px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .section { padding: 48px 0; }

  .hero-title { font-size: clamp(2rem, 11vw, 2.8rem); }
  .hero-badge { padding: 6px 14px; gap: 8px; }
  .hero-badge .badge-text { font-size: 9px; }
  .hero-portrait-container { max-width: 260px; }
  .btn { padding: 11px 20px; font-size: 13px; }

  .about-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-number { font-size: 1.8rem; }
  .stat-label { font-size: 11px; }
  .metric-value { font-size: 1.5rem; }

  .values-grid { gap: 6px; }
  .value-item { padding: 5px 10px; }
  .value-text { font-size: 11px; }

  .book-cover { width: 100px; height: 140px; }
  .book-info h3 { font-size: 1rem; }
  .book-info p { font-size: 13px; }

  .contact-social-links { flex-direction: column; }
  .cv-download-card { padding: 20px 16px; }
  .earlier-companies { gap: 4px; }
  .earlier-companies span { font-size: 10px; padding: 2px 8px; }

  .section-title { font-size: 1.6rem; }
}

/* Modal Styling */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 9, 20, 0.85); /* Matches dark navy theme */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 20px;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.modal-content {
  background: rgba(11, 17, 32, 0.95);
  border: 1px solid rgba(225, 190, 90, 0.2);
  border-radius: 16px;
  padding: 40px;
  width: 100%;
  max-width: 500px;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 25px 50px rgba(0,0,0,0.5), inset 0 1px 1px rgba(255,255,255,0.05);
}
.modal-overlay.active .modal-content {
  transform: translateY(0);
}
.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s;
  padding: 5px;
  border-radius: 50%;
  display: flex;
}
.modal-close:hover {
  color: var(--accent);
  background: rgba(225, 190, 90, 0.1);
}

/* Cal.com Custom Embed Styling */
#my-cal-inline {
  background: transparent;
  border: none;
  border-radius: 12px;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

#my-cal-inline iframe {
  border: none !important;
  border-radius: 12px;
}

/* Hide Cal.com branding watermark */
#my-cal-inline > div:last-child:not(:first-child) {
  display: none !important;
}
#my-cal-inline a[href*="cal.com"] {
  display: none !important;
}
