/**
 * Chintal Patel - 3D Portfolio Stylesheet
 * Executive Portfolio Architecture
 * Pure Static Deployment
 */

:root {
  /* Brand & Signature Colors */
  --bg-primary: #0a0c10;
  --bg-secondary: #0f131a;
  --bg-tertiary: #141923;
  --bg-card: rgba(18, 23, 33, 0.75);
  --bg-card-hover: rgba(24, 31, 45, 0.88);
  
  --color-sand: #dfd1bc;        /* Signature warm beige */
  --color-sand-light: #f5efe6;
  --color-sand-dark: #b8a68d;
  --color-sand-glow: rgba(223, 209, 188, 0.15);

  --color-cyan: #38bdf8;
  --color-emerald: #34d399;
  --color-amber: #fbbf24;
  --color-blue: #234ba2;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-sand: #dfd1bc;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-sand: rgba(223, 209, 188, 0.25);
  --border-active: rgba(223, 209, 188, 0.5);

  --font-sans: 'Plus Jakarta Sans', 'Urbanist', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;

  --header-height: 72px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-card: 0 16px 36px -12px rgba(0, 0, 0, 0.6), 0 0 1px 1px rgba(255, 255, 255, 0.05);
  --shadow-glow: 0 0 25px rgba(223, 209, 188, 0.12);
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Offset anchor scrolling so fixed navbar never covers section titles or content */
section,
[id],
.hero-section,
.subpage-hero,
.case-study-hero,
.article-header {
  scroll-margin-top: calc(var(--header-height) + 24px);
}

body {
  overflow-x: hidden;
  background-color: var(--bg-primary);
}

body.is-loading {
  overflow: hidden;
}

/* 3D WebGL Background Canvas */
#webgl-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: auto;
}

#webgl-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Preloader (Branded Emblem & Vertical Scale Mask) */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: var(--bg-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s var(--ease-smooth), visibility 0.6s;
}

#preloader.is-loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  display: none !important;
}

.preloader-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.preloader-svg {
  width: 72px;
  height: 78px;
}

.preloader-rect {
  transform-origin: bottom;
  transition: transform 0.1s linear;
}

.preloader-path {
  fill: var(--color-sand);
}

.preloader-info {
  text-align: center;
}

.preloader-name {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.25em;
  color: var(--color-sand);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.preloader-percent {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--text-main);
}

/* Foreground Content Layout */
.app-container {
  position: relative;
  z-index: 10;
  pointer-events: none; /* Let 3D canvas receive pointer events through empty spaces */
}

.app-container > * {
  pointer-events: auto; /* Re-enable pointer events on interactive UI sections */
}

/* Header & Glassmorphism Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 100;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 12, 16, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.3s;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}

.brand-monogram {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(223, 209, 188, 0.1);
  border: 1px solid var(--border-sand);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  color: var(--color-sand);
  letter-spacing: 0.05em;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
}

.brand-role {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: var(--radius-full);
  transition: color 0.25s, background 0.25s;
}

.nav-link:hover, .nav-link.active {
  color: var(--color-sand);
  background: rgba(223, 209, 188, 0.08);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Audio Toggle Button with Animated Wave Bars */
.audio-toggle-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 7px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  cursor: pointer;
  transition: all 0.25s;
}

.audio-toggle-btn:hover {
  border-color: var(--border-sand);
  color: var(--color-sand);
}

.audio-bars {
  display: flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 14px;
}

.audio-bars span {
  width: 2.5px;
  height: 4px;
  background-color: var(--text-muted);
  border-radius: 1px;
  transition: height 0.2s, background-color 0.2s;
}

.audio-toggle-btn.is-active {
  border-color: var(--color-sand);
  color: var(--color-sand);
}

.audio-toggle-btn.is-active .audio-bars span {
  background-color: var(--color-sand);
  animation: soundBars 1s ease-in-out infinite alternate;
}

.audio-toggle-btn.is-active .audio-bars span:nth-child(1) { animation-delay: 0.1s; height: 10px; }
.audio-toggle-btn.is-active .audio-bars span:nth-child(2) { animation-delay: 0.3s; height: 14px; }
.audio-toggle-btn.is-active .audio-bars span:nth-child(3) { animation-delay: 0.2s; height: 8px; }

@keyframes soundBars {
  0% { height: 4px; }
  100% { height: 14px; }
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  padding: 8px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.mobile-menu-btn:hover,
.mobile-menu-btn.is-active {
  color: var(--color-sand);
  background: rgba(223, 209, 188, 0.12);
}

/* Mobile Flyout Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: rgba(10, 12, 16, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 20px 20px 28px;
  border-bottom: 1px solid var(--border-subtle);
  flex-direction: column;
  gap: 10px;
  max-height: calc(100vh - var(--header-height));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  z-index: 105;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.85);
  animation: slideDownNav 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu.is-open {
  display: flex !important;
}

.mobile-menu .nav-link {
  font-size: 14.5px;
  font-weight: 600;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-main);
  text-decoration: none;
  transition: all 0.2s ease;
}

.mobile-menu .nav-link:hover,
.mobile-menu .nav-link.active {
  background: rgba(223, 209, 188, 0.12);
  border-color: var(--border-sand);
  color: var(--color-sand);
}

@keyframes slideDownNav {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Buttons & Badges */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s var(--ease-smooth);
  border: 1px solid transparent;
  font-family: var(--font-sans);
}

.btn-primary {
  background: var(--color-sand);
  color: #12151c;
  border-color: var(--color-sand);
}

.btn-primary:hover {
  background: var(--color-sand-light);
  box-shadow: 0 0 20px rgba(223, 209, 188, 0.3);
  transform: translateY(-1px);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  border-color: var(--border-subtle);
}

.btn-outline:hover {
  border-color: var(--border-sand);
  color: var(--color-sand);
  background: rgba(223, 209, 188, 0.06);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
}

.badge-live {
  background: rgba(52, 211, 153, 0.08);
  border-color: rgba(52, 211, 153, 0.25);
  color: var(--color-emerald);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-emerald);
  box-shadow: 0 0 8px var(--color-emerald);
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* Page Section Layout */
section {
  position: relative;
  min-height: 100vh;
  padding: 120px 28px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 1320px;
  margin: 0 auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-sand);
  margin-bottom: 12px;
}

.section-tag::before {
  content: '//';
  opacity: 0.6;
}

.section-title {
  font-size: clamp(32px, 4.5vw, 54px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 18px;
}

.section-subtitle {
  font-size: clamp(15px, 1.8vw, 18px);
  color: var(--text-muted);
  max-width: 680px;
  line-height: 1.6;
  margin-bottom: 40px;
}

/* --- Section 1: Hero --- */
.hero-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 140px;
}

.hero-content {
  max-width: 620px;
  position: relative;
  z-index: 2;
}

.hero-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(42px, 6vw, 76px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.hero-title .title-accent {
  color: var(--color-sand);
  display: block;
}

.hero-role-badge {
  font-family: var(--font-mono);
  font-size: clamp(14px, 1.8vw, 18px);
  color: var(--text-sand);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-desc {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 36px;
  max-width: 680px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 50px;
}

.hero-stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 18px;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  max-width: 780px;
  box-shadow: var(--shadow-card);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-val {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 800;
  color: var(--color-sand);
}

.stat-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- Section 2: About & Core Competencies --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 36px;
  align-items: start;
}

.about-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
}

.about-narrative p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.about-narrative p:last-child {
  margin-bottom: 0;
}

.about-narrative strong {
  color: var(--text-main);
}

.competencies-header {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.competencies-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.comp-pill {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s;
}

.comp-pill:hover {
  background: rgba(223, 209, 188, 0.08);
  border-color: var(--border-sand);
  color: var(--color-sand);
  transform: translateY(-2px);
}

.comp-pill svg {
  color: var(--color-sand);
  flex-shrink: 0;
}

/* Strengths Callouts */
.strengths-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.strength-box {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
  transition: transform 0.25s, border-color 0.25s;
}

.strength-box:hover {
  transform: translateY(-3px);
  border-color: var(--border-sand);
}

.strength-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(223, 209, 188, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-sand);
  margin-bottom: 14px;
}

.strength-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.strength-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --- Section 3: Professional Experience --- */
.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.exp-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
  transition: all 0.3s var(--ease-smooth);
  position: relative;
  overflow: hidden;
}

.exp-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: var(--border-subtle);
  transition: background 0.3s;
}

.exp-card:hover {
  border-color: var(--border-sand);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.exp-card:hover::before {
  background: var(--color-sand);
}

.exp-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.exp-role-info {
  display: flex;
  flex-direction: column;
}

.exp-role-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.exp-company {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--color-sand);
  display: flex;
  align-items: center;
  gap: 8px;
}

.exp-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.exp-badge-present {
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: var(--color-emerald);
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.exp-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.exp-bullets li {
  font-size: 14px;
  color: var(--text-muted);
  position: relative;
  padding-left: 20px;
  line-height: 1.6;
}

.exp-bullets li::before {
  content: '>';
  position: absolute;
  left: 0;
  color: var(--color-sand);
  font-size: 12px;
}

.exp-tech-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.tech-tag {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-sand);
}

/* --- Section 4: Projects Showcase --- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}

.project-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-card);
  transition: all 0.3s var(--ease-smooth);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.7);
}

.project-card.theme-aarna:hover { border-color: rgba(223, 209, 188, 0.4); }
.project-card.theme-salon:hover { border-color: rgba(56, 189, 248, 0.4); }
.project-card.theme-invoicer:hover { border-color: rgba(52, 211, 153, 0.4); }

.project-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.project-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dim);
}

.project-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
}

.project-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.project-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
}

/* --- Section 4b: Engineering Articles / Insights Cards (Consistent with Project Cards) --- */
.home-article-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-card);
  transition: all 0.3s var(--ease-smooth);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.home-article-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-sand);
  box-shadow: var(--shadow-card), 0 12px 32px -8px rgba(0, 0, 0, 0.7);
}

.home-article-card .article-meta {
  display: flex;
  gap: 8px;
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--color-sand);
  margin-bottom: 12px;
}

.home-article-card .article-title {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.4;
}

.home-article-card .article-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.home-article-card:hover .article-title a {
  color: var(--color-sand);
}

.home-article-card .article-excerpt {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.home-article-card .article-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-subtle);
  padding-top: 18px;
}

.home-article-card .article-read-link {
  font-size: 13px;
  font-family: var(--font-mono);
  color: var(--color-sand);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: transform 0.2s ease;
}

.home-article-card:hover .article-read-link {
  color: #fff;
  transform: translateX(4px);
}

/* --- Section 5: Technical Skills Matrix --- */
.skills-filter-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.skill-filter-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 8px 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.25s;
}

.skill-filter-btn:hover, .skill-filter-btn.active {
  background: var(--color-sand);
  border-color: var(--color-sand);
  color: #12151c;
  font-weight: 600;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.skill-tag-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: all 0.25s var(--ease-smooth);
}

.skill-tag-card:hover {
  border-color: var(--border-sand);
  transform: translateY(-2px);
  background: var(--bg-card-hover);
}

.skill-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

.skill-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  background: rgba(223, 209, 188, 0.1);
  color: var(--color-sand);
}

/* --- Section 6: Education & Credentials --- */
.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}

.edu-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
  position: relative;
  transition: transform 0.25s, border-color 0.25s;
}

.edu-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-sand);
}

.edu-badge-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(223, 209, 188, 0.1);
  border: 1px solid var(--border-sand);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-sand);
  margin-bottom: 20px;
}

.edu-degree {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.3;
}

.edu-institution {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-sand);
  margin-bottom: 12px;
}

.edu-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- Section 7: Contact & Communication --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
}

.contact-cards-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-card-item {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: var(--text-main);
  transition: all 0.25s;
}

.contact-card-item:hover {
  border-color: var(--border-sand);
  transform: translateX(4px);
  background: var(--bg-card-hover);
}

.contact-item-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-icon-box {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(223, 209, 188, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-sand);
}

.contact-item-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.contact-item-val {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
}

.contact-form-box {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
}

.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.form-input, .form-textarea {
  width: 100%;
  background: rgba(10, 12, 16, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 14px;
  font-family: var(--font-sans);
  color: var(--text-main);
  outline: none;
  transition: border-color 0.25s;
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--color-sand);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* ==============================================================================
   Unified Premium Footer (Obsidian & Warm Sand Theme)
   ============================================================================== */
.site-footer {
  position: relative;
  z-index: 10;
  border-top: 1px solid rgba(223, 209, 188, 0.14);
  background: #06080c;
  background-image: radial-gradient(circle at 50% 0%, rgba(223, 209, 188, 0.07) 0%, transparent 60%);
  padding: 80px 28px 40px;
  margin-top: 90px;
  color: var(--text-main);
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1200px;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(223, 209, 188, 0.5) 50%, transparent 100%);
}

.footer-container {
  max-width: 1240px;
  margin: 0 auto;
}

/* Pre-Footer Discovery Callout Card */
.footer-cta-card {
  background: linear-gradient(135deg, rgba(18, 23, 34, 0.8) 0%, rgba(10, 12, 16, 0.95) 100%);
  border: 1px solid rgba(223, 209, 188, 0.18);
  border-radius: var(--radius-lg);
  padding: 40px 48px;
  margin-bottom: 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(223, 209, 188, 0.1);
}

.footer-cta-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(223, 209, 188, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.footer-cta-content {
  max-width: 650px;
}

.footer-cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--color-sand);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}

.footer-cta-title {
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.footer-cta-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

.footer-cta-actions {
  display: flex;
  gap: 14px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* 4-Column Architectural Grid */
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.1fr 1.1fr 1.3fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-col.brand-col {
  max-width: 400px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  margin-bottom: 16px;
}

.footer-brand .brand-monogram {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(223, 209, 188, 0.12);
  border: 1px solid var(--border-sand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 14px;
  color: var(--color-sand);
}

.footer-brand .brand-name {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.02em;
}

.footer-brand .brand-role {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-sand);
  opacity: 0.85;
}

.footer-bio {
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(223, 209, 188, 0.15);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-sand);
  margin-bottom: 18px;
  width: fit-content;
}

.footer-meta-pill .pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-emerald);
  box-shadow: 0 0 8px var(--color-emerald);
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.85); }
}

.footer-stack-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.footer-stack-pills span {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 4px;
  color: #94a3b8;
}

.footer-heading {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--color-sand);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-heading::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(223, 209, 188, 0.1);
  max-width: 40px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.footer-links li {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li a {
  font-size: 14px;
  color: #94a3b8;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-links li a .link-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-sand);
  opacity: 0.65;
}

.footer-links li a:hover {
  color: #fff;
  transform: translateX(4px);
}

.footer-links li a:hover .link-num {
  opacity: 1;
}

.footer-contact-card {
  background: rgba(18, 23, 34, 0.4);
  border: 1px solid rgba(223, 209, 188, 0.12);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 16px;
}

.footer-contact-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.footer-contact-val {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  display: block;
  transition: color 0.2s;
}

.footer-contact-val:hover {
  color: var(--color-sand);
}

.footer-sla-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-emerald);
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-full);
  padding: 4px 10px;
  margin-top: 10px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 13px;
  color: var(--text-dim);
}

.footer-bottom p {
  margin: 0;
  max-width: 600px;
  line-height: 1.6;
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-bottom-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 12px;
  font-family: var(--font-mono);
  transition: color 0.2s;
}

.footer-bottom-links a:hover {
  color: var(--color-sand);
}

.status-indicator-inline {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-emerald);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.status-indicator-inline::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-emerald);
  box-shadow: 0 0 6px var(--color-emerald);
}

@media (max-width: 1024px) {
  .footer-cta-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 28px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 640px) {
  .site-footer {
    padding: 60px 20px 32px;
    margin-top: 50px;
  }
  .footer-cta-card {
    padding: 24px 20px;
    margin-bottom: 40px;
  }
  .footer-cta-actions {
    width: 100%;
    flex-direction: column;
  }
  .footer-cta-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  .footer-bottom-links {
    justify-content: center;
  }
}

/* Modal Windows (Project Detail & CV Viewer) */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(8, 10, 14, 0.85);
  backdrop-filter: blur(24px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.3s var(--ease-smooth);
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-container {
  background: var(--bg-secondary);
  border: 1px solid var(--border-sand);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 820px;
  max-height: 88vh;
  overflow-y: auto;
  padding: 36px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8);
  position: relative;
}

.modal-close-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.modal-close-btn:hover {
  border-color: var(--border-sand);
  color: var(--color-sand);
  transform: scale(1.08);
}

.modal-project-title {
  font-size: 26px;
  font-weight: 800;
  margin: 12px 0 16px;
  line-height: 1.25;
}

.modal-badge-row {
  display: flex;
  gap: 10px;
}

.modal-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.tech-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 5px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-sand);
}

.modal-section-block {
  margin-bottom: 24px;
}

.modal-section-block h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-sand);
  margin-bottom: 8px;
}

.modal-copy {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

.modal-bullet-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-bullet-list li {
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}

.bullet-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-top: 7px;
  flex-shrink: 0;
}

.highlight-callout {
  border-left: 3px solid var(--color-sand);
  background: rgba(223, 209, 188, 0.04);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.highlight-callout h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-main);
}

.highlight-callout p {
  font-size: 13px;
  color: var(--text-muted);
}

/* Printable CV Modal Styling */
.cv-preview-container {
  font-family: var(--font-sans);
  color: #1a1e27;
  background: #ffffff;
  padding: 40px;
  border-radius: var(--radius-md);
  margin-top: 16px;
  line-height: 1.6;
}

.cv-header-block {
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 20px;
  margin-bottom: 24px;
}

.cv-name {
  font-size: 28px;
  font-weight: 800;
  color: #0f172a;
}

.cv-subtitle {
  font-size: 15px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 8px;
}

.cv-meta-row {
  font-size: 13px;
  color: #64748b;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.cv-sec-title {
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #0f172a;
  border-bottom: 1px solid #cbd5e1;
  padding-bottom: 4px;
  margin: 22px 0 12px;
}

.cv-job-title {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
}

.cv-company-line {
  font-size: 13px;
  color: #475569;
  font-weight: 600;
  margin-bottom: 6px;
}

.cv-list {
  padding-left: 20px;
  font-size: 13px;
  color: #334155;
  margin-bottom: 14px;
}

.cv-list li {
  margin-bottom: 4px;
}

/* Luxury Toast Notifications (Top Center) */
.toast-popup {
  position: fixed;
  top: 32px;
  left: 50%;
  transform: translate(-50%, -18px);
  z-index: 10000;
  background: rgba(18, 23, 33, 0.94);
  border: 1px solid var(--border-sand);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--text-main);
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 13.5px;
  font-weight: 500;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.65), 0 0 24px rgba(223, 209, 188, 0.16);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast-popup.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast-success {
  border-color: rgba(52, 211, 153, 0.6);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.65), 0 0 20px rgba(52, 211, 153, 0.2);
}

.toast-error {
  border-color: rgba(244, 63, 94, 0.6);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.65), 0 0 20px rgba(244, 63, 94, 0.2);
}

/* ==========================================================================
   LUXURY FORM SUBMISSION DIALOG
   High-class executive feedback, drawing checkmark & direct SMTP security
   ========================================================================== */

.form-status-container {
  max-width: 480px;
  text-align: center;
  padding: 38px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.8), 0 0 35px rgba(223, 209, 188, 0.14);
}

.form-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-sand);
  background: rgba(223, 209, 188, 0.1);
  border: 1px solid rgba(223, 209, 188, 0.3);
  padding: 4px 12px;
  border-radius: 9999px;
  margin-bottom: 22px;
}

.form-status-icon-wrap {
  width: 74px;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.form-status-svg {
  width: 66px;
  height: 66px;
  filter: drop-shadow(0 0 18px rgba(223, 209, 188, 0.3));
}

.status-circle {
  stroke-dasharray: 160;
  stroke-dashoffset: 160;
  animation: statusStrokeDraw 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.status-check {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: statusStrokeDraw 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.35s forwards;
}

@keyframes statusStrokeDraw {
  to {
    stroke-dashoffset: 0;
  }
}

.form-status-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 12px;
}

.form-status-desc {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.form-status-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 28px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
}

.status-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
}

.status-meta-item svg {
  color: var(--color-sand);
}

.form-status-actions {
  width: 100%;
}

.btn-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(18, 21, 28, 0.3);
  border-top-color: #12151c;
  border-radius: 50%;
  animation: btnSpinner 0.7s linear infinite;
  display: inline-block;
  margin-right: 6px;
  vertical-align: middle;
}

@keyframes btnSpinner {
  to {
    transform: rotate(360deg);
  }
}

/* Media Queries & Responsive */
@media (max-width: 1024px) {
  .about-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
  }

  .site-header {
    padding: 0 16px;
    height: var(--header-height);
  }

  /* Homepage Hero on Mobile: start clean below header without clipping */
  .hero-section {
    min-height: auto;
    padding-top: calc(var(--header-height) + 28px);
    padding-bottom: 50px;
    justify-content: flex-start;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-pill-row {
    gap: 8px;
    margin-bottom: 16px;
  }

  .hero-title {
    font-size: clamp(34px, 8.5vw, 48px);
    line-height: 1.08;
    margin-bottom: 14px;
  }

  .hero-role-badge {
    font-size: 13px;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin-bottom: 16px;
  }

  .hero-desc {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 26px;
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 32px;
  }

  .hero-cta-group .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-stats-bar {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding: 16px;
  }

  .stat-val {
    font-size: 26px;
  }

  .stat-label {
    font-size: 11px;
  }

  section {
    min-height: auto;
    padding: 80px 16px 50px;
  }

  /* Projects & Education Grids */
  .projects-grid,
  .education-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .project-card,
  .edu-card {
    padding: 24px 20px;
  }

  .project-actions {
    flex-direction: column;
    gap: 10px;
  }

  .project-actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* Skills Matrix */
  .skills-filter-nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    padding-bottom: 8px;
    margin-bottom: 20px;
    scrollbar-width: none;
  }

  .skills-filter-nav::-webkit-scrollbar {
    display: none;
  }

  .skill-filter-btn {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 6px 14px;
    font-size: 11px;
  }

  .skills-grid {
    grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
    gap: 10px;
  }

  .skill-tag-card {
    padding: 12px 14px;
  }

  .skill-name {
    font-size: 13px;
  }

  /* Contact section */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-card-item {
    padding: 14px 16px;
  }

  .contact-item-val {
    word-break: break-word;
    font-size: 13px;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 0 14px;
  }

  .brand-monogram {
    width: 34px;
    height: 34px;
    font-size: 13px;
    flex-shrink: 0;
  }

  .brand-name {
    font-size: 14px;
    white-space: nowrap;
  }

  .brand-role {
    display: none; /* Hide role on mobile to ensure header items never collide or wrap */
  }

  .header-actions {
    gap: 8px;
    flex-shrink: 0;
  }

  .header-actions .btn-sm {
    padding: 6px 10px;
    font-size: 11px;
    letter-spacing: 0.01em;
    white-space: nowrap;
  }

  .audio-toggle-btn {
    padding: 6px 8px;
  }

  .audio-toggle-btn > span {
    display: none; /* Hide "AUDIO" text on mobile, keep wave bars */
  }

  .mobile-menu-btn {
    padding: 6px;
  }

  /* Modals on Mobile */
  .modal-overlay {
    padding: 12px;
  }
  .modal-container {
    padding: 24px 16px 20px;
    max-height: 92vh;
  }
  .modal-close-btn {
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
  }
  .modal-project-title {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .header-actions .btn-sm {
    padding: 5px 8px;
    font-size: 10px;
  }
}

@media (max-width: 390px) {
  .header-actions .btn-sm {
    display: none; /* Prevents colliding on narrow devices like iPhone SE; already in hero & mobile menu */
  }
}

@media (max-width: 480px) {
  .hero-stats-bar {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 14px;
  }

  .stat-val {
    font-size: 22px;
  }

  .stat-label {
    font-size: 10px;
  }

  .section-title {
    font-size: 28px;
  }

  .section-subtitle {
    font-size: 14px;
    margin-bottom: 24px;
  }
}

/* Print Styles for CV */
@media print {
  body * {
    visibility: hidden;
  }
  #cv-modal, #cv-modal * {
    visibility: visible;
  }
  #cv-modal {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    background: #fff;
    padding: 0;
  }
  .modal-close-btn, .modal-header-actions, .site-header, #webgl-container, #doodle-companion-host {
    display: none !important;
  }
}

/* ==========================================================================
   INTERACTIVE DOODLE TOUR COMPANION
   Kinematic character rig, video-smooth physics, speech presenter & dance modes
   ========================================================================== */

.doodle-host {
  position: fixed;
  right: 36px;
  top: 0;
  left: auto;
  bottom: auto;
  z-index: 990;
  width: 125px;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  transform: translate3d(0, 78px, 0);
  will-change: transform;
  transition: opacity 0.3s ease;
}

/* Doodle Mini Speech Tooltip (Removed for both desktop and mobile per user request) */
.doodle-speech-tooltip {
  display: none !important;
}

/* Floating Presentation Speech Bubble */
.doodle-bubble {
  pointer-events: auto;
  max-width: 295px;
  background: rgba(14, 19, 29, 0.94);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(223, 209, 188, 0.3);
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: 0 20px 48px -10px rgba(0, 0, 0, 0.75), 0 0 28px rgba(223, 209, 188, 0.14);
  position: relative;
  margin-bottom: 2px;
  transform-origin: bottom right;
  transition: opacity 0.25s, transform 0.25s;
}

@keyframes bubbleSpringPop {
  0% {
    opacity: 0;
    transform: scale(0.88) translateY(12px);
  }
  60% {
    transform: scale(1.025) translateY(-2px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.doodle-bubble.is-popping {
  animation: bubbleSpringPop 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.charly-chat-window.is-collapsed,
.doodle-bubble.is-collapsed {
  display: none !important;
}

.bubble-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.bubble-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--color-sand);
  letter-spacing: 0.12em;
  background: rgba(223, 209, 188, 0.12);
  border: 1px solid rgba(223, 209, 188, 0.3);
  border-radius: 9999px;
  padding: 2.5px 9px;
  text-transform: uppercase;
}

.bubble-counter {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 600;
  margin-left: auto;
}

.bubble-mini-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.2s;
  line-height: 1;
}

.bubble-mini-btn:hover {
  color: var(--color-sand);
  background: rgba(255, 255, 255, 0.08);
}

.bubble-text {
  font-size: 13.5px;
  line-height: 1.55;
  color: #f1f5f9;
  margin-bottom: 12px;
  font-weight: 500;
}

.bubble-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 10px;
}

.bubble-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(223, 209, 188, 0.14);
  border: 1px solid rgba(223, 209, 188, 0.35);
  color: var(--color-sand-light);
  border-radius: 9999px;
  padding: 5px 13px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  font-family: var(--font-sans);
}

.bubble-cta-btn:hover {
  background: var(--color-sand);
  color: #0e131f;
  border-color: var(--color-sand);
  transform: translateY(-1px);
}

.bubble-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.bubble-tool-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  color: var(--text-main);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.bubble-tool-btn:hover {
  background: rgba(223, 209, 188, 0.15);
  border-color: var(--border-sand);
  transform: scale(1.1);
}

.bubble-tool-btn.is-active {
  background: rgba(223, 209, 188, 0.25);
  border-color: var(--color-sand);
  transform: scale(1.12);
  box-shadow: 0 0 14px rgba(223, 209, 188, 0.4);
}

.bubble-arrow {
  position: absolute;
  bottom: -6px;
  right: 50px;
  width: 12px;
  height: 12px;
  background: rgba(14, 19, 29, 0.92);
  border-right: 1px solid rgba(223, 209, 188, 0.3);
  border-bottom: 1px solid rgba(223, 209, 188, 0.3);
  transform: rotate(45deg);
}

/* ==========================================================================
   CHARLY - CONVERSATIONAL AI SOLUTION ADVISOR WIDGET
   Grounded in Site Knowledge, Flash-Lite Latency, Lead Qualification UI
   ========================================================================== */

.charly-chat-window {
  width: 320px !important;
  max-width: min(340px, calc(100vw - 28px)) !important;
  height: 420px !important;
  max-height: calc(100vh - var(--header-height, 72px) - 170px) !important;
  border-radius: 16px !important;
  background: rgba(12, 16, 25, 0.97) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border: 1px solid rgba(223, 209, 188, 0.28) !important;
  box-shadow: 0 24px 64px -10px rgba(0, 0, 0, 0.85), 0 0 24px rgba(223, 209, 188, 0.12) !important;
  padding: 12px 14px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  pointer-events: auto !important;
}

.charly-header {
  flex-shrink: 0 !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 8px;
  margin-bottom: 2px;
}

.charly-brand {
  display: flex;
  align-items: center;
  gap: 9px;
}

.charly-avatar-mini {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #dfd1bc, #b8a68d);
  color: #0a0c10;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px rgba(223, 209, 188, 0.35);
  flex-shrink: 0;
}

.charly-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.charly-name {
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
}

.charly-role-pill {
  font-size: 9.5px;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--color-sand);
  background: rgba(223, 209, 188, 0.12);
  border: 1px solid rgba(223, 209, 188, 0.25);
  border-radius: 99px;
  padding: 1px 6px;
  margin-left: 6px;
  letter-spacing: 0.04em;
}

.charly-header-tools {
  display: flex;
  align-items: center;
  gap: 5px;
}

.charly-tool-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 12px;
  padding: 3px 5px;
  border-radius: 5px;
  transition: all 0.2s;
  line-height: 1;
}

.charly-tool-btn:hover {
  color: var(--color-sand);
  background: rgba(255, 255, 255, 0.08);
}

.charly-thread {
  flex: 1 1 auto;
  min-height: 80px;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 4px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.charly-thread::-webkit-scrollbar {
  width: 4px;
}

.charly-thread::-webkit-scrollbar-thumb {
  background: rgba(223, 209, 188, 0.2);
  border-radius: 4px;
}

.charly-msg {
  position: relative;
  word-break: break-word;
}

.charly-msg-bot {
  background: rgba(20, 26, 38, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 2px solid var(--color-sand);
  border-radius: 12px 12px 12px 2px;
  padding: 10px 12px;
  font-size: 12.5px;
  line-height: 1.55;
  color: #f1f5f9;
  align-self: flex-start;
  max-width: 92%;
}

.charly-msg-user {
  background: rgba(223, 209, 188, 0.16);
  border: 1px solid rgba(223, 209, 188, 0.32);
  border-radius: 12px 12px 2px 12px;
  padding: 8px 12px;
  font-size: 12.5px;
  line-height: 1.5;
  color: #ffffff;
  align-self: flex-end;
  max-width: 86%;
}

.charly-lead-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 4px 9px;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
}

.charly-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 80px;
  overflow-y: auto;
}

.charly-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(223, 209, 188, 0.22);
  color: var(--color-sand);
  font-family: var(--font-sans);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 99px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: normal;
  text-align: left;
  line-height: 1.35;
}

.charly-chip:hover {
  background: rgba(223, 209, 188, 0.15);
  border-color: var(--color-sand);
  transform: translateY(-1px);
}

.charly-typing {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: rgba(20, 26, 38, 0.6);
  border-radius: 8px;
  align-self: flex-start;
  font-size: 11px;
  color: var(--text-muted);
}

.charly-dots {
  display: flex;
  align-items: center;
  gap: 4px;
}

.charly-dots span {
  width: 5px;
  height: 5px;
  background: var(--color-sand);
  border-radius: 50%;
  animation: charlyBounce 1.2s infinite ease-in-out;
}

.charly-dots span:nth-child(2) { animation-delay: 0.2s; }
.charly-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes charlyBounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1.1); opacity: 1; }
}

.charly-direct-bar {
  display: flex;
  gap: 6px;
}

.charly-quick-link {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.charly-quick-link.wa {
  background: rgba(37, 211, 102, 0.1);
  border: 1px solid rgba(37, 211, 102, 0.3);
  color: #25d366;
}

.charly-quick-link.wa:hover {
  background: #25d366;
  color: #0c1017;
}

.charly-quick-link.mail {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
}

.charly-quick-link.mail:hover {
  background: rgba(223, 209, 188, 0.1);
  color: var(--color-sand);
  border-color: var(--border-sand);
}

.charly-input-form {
  display: flex;
  gap: 6px;
  align-items: center;
  background: rgba(7, 10, 15, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 4px 6px 4px 10px;
  transition: border-color 0.2s;
}

.charly-input-form:focus-within {
  border-color: var(--color-sand);
}

.charly-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 12.5px;
  color: #ffffff;
  font-family: var(--font-sans);
  padding: 6px 0;
}

.charly-input::placeholder {
  color: #64748b;
  font-size: 12px;
}

.charly-send-btn {
  background: var(--color-sand);
  border: none;
  border-radius: 8px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #0a0c10;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.charly-send-btn:hover:not(:disabled) {
  background: #ffffff;
  transform: translateY(-1px);
}

.charly-send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ==========================================================================
   CHARLY / CHINTAL CHAT WIDGET - DEDICATED SEPARATE CONTAINER
   ========================================================================== */
.charly-chat-widget {
  position: fixed;
  right: 28px;
  bottom: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: none;
}

/* Entire tablet of Chat with Chintal is 100% clickable */
.charly-chat-tablet,
.charly-reopen-pill {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(14, 19, 29, 0.94);
  border: 1px solid rgba(56, 189, 248, 0.5);
  color: #f8fafc;
  font-family: var(--font-sans, system-ui, -apple-system, sans-serif);
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 18px;
  min-height: 44px;
  border-radius: 9999px;
  cursor: pointer;
  box-shadow: 0 10px 25px -4px rgba(0, 0, 0, 0.55), 0 0 18px rgba(56, 189, 248, 0.25);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  pointer-events: auto !important;
  width: auto;
  align-self: flex-end;
  animation: charlyPillPop 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  outline: none;
}

/* Internal elements don't block clicks */
.charly-chat-tablet *,
.charly-reopen-pill * {
  pointer-events: none;
}

.charly-chat-tablet:hover,
.charly-reopen-pill:hover {
  background: rgba(22, 30, 46, 0.98);
  border-color: rgba(56, 189, 248, 0.9);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 14px 30px -4px rgba(0, 0, 0, 0.7), 0 0 26px rgba(56, 189, 248, 0.45);
  color: #ffffff;
}

.charly-chat-tablet:active,
.charly-reopen-pill:active {
  transform: translateY(0) scale(0.97);
}

.charly-chat-tablet.is-chat-open,
.charly-reopen-pill.is-chat-open {
  background: rgba(20, 28, 44, 0.98);
  border-color: #38bdf8;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.45);
}

.charly-tablet-icon,
.charly-reopen-icon {
  font-size: 15px;
  line-height: 1;
}

.charly-tablet-text,
.charly-reopen-text {
  font-size: 13px;
  letter-spacing: 0.01em;
  color: #f1f5f9;
  font-weight: 600;
}

.charly-tablet-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.charly-live-dot,
.charly-reopen-pulse {
  width: 7.5px;
  height: 7.5px;
  background: #34d399;
  border-radius: 50%;
  box-shadow: 0 0 8px #34d399;
  animation: charlyDotPulse 1.8s infinite;
}

@keyframes charlyPillPop {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes charlyDotPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.4);
    opacity: 0.5;
  }
}

@media (max-width: 768px), (max-height: 750px) {
  .charly-chat-widget {
    right: 14px !important;
    bottom: 12px !important;
  }
  .doodle-host {
    right: 20px !important;
    top: 0 !important;
    bottom: auto !important;
    gap: 6px !important;
  }
  .doodle-stage {
    width: 95px !important;
    height: 106px !important;
  }
  .doodle-host.has-chat-open .doodle-stage {
    width: 78px !important;
    height: 88px !important;
  }
  .charly-chat-tablet,
  .charly-reopen-pill {
    padding: 8px 14px !important;
    min-height: 38px !important;
    font-size: 12px !important;
  }
  .charly-chat-window {
    width: min(320px, calc(100vw - 24px)) !important;
    height: 380px !important;
    max-height: calc(100vh - var(--header-height, 68px) - 110px) !important;
    padding: 10px 12px !important;
  }
  .charly-thread {
    min-height: 75px !important;
  }
}

@media (max-width: 480px) {
  .charly-chat-widget {
    right: 10px !important;
    bottom: 10px !important;
    left: auto !important;
  }
  .doodle-host {
    right: 14px !important;
    top: 0 !important;
    bottom: auto !important;
    left: auto !important;
    align-items: center !important;
  }
  .charly-chat-window {
    width: calc(100vw - 20px) !important;
    max-width: calc(100vw - 20px) !important;
    right: 0 !important;
    height: 380px !important;
    max-height: calc(100vh - var(--header-height, 64px) - 95px) !important;
  }
  .doodle-stage {
    width: 82px !important;
    height: 92px !important;
  }
  .doodle-host.has-chat-open .doodle-stage {
    width: 65px !important;
    height: 72px !important;
  }
}

@media (max-height: 520px) {
  .doodle-stage {
    display: none !important;
  }
  .charly-chat-window {
    height: calc(100vh - var(--header-height, 60px) - 20px) !important;
    max-height: calc(100vh - var(--header-height, 60px) - 20px) !important;
  }
  .charly-thread {
    max-height: calc(100vh - 95px) !important;
  }
}

.doodle-chat-badge-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.doodle-online-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: #34d399;
  letter-spacing: 0.05em;
}

.doodle-live-dot {
  width: 7px;
  height: 7px;
  background: #10b981;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px #10b981;
  animation: doodleStatusPulse 2s infinite ease-in-out;
}

@keyframes doodleStatusPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

.doodle-whatsapp-direct-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 8px 12px;
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.35);
  color: #25d366;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  margin-bottom: 8px;
  box-sizing: border-box;
}

.doodle-whatsapp-direct-btn:hover {
  background: #25d366;
  color: #0e131f;
  border-color: #25d366;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
}

.doodle-whatsapp-direct-btn svg {
  flex-shrink: 0;
}

.doodle-chat-note-toggle {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 11.5px;
  font-family: var(--font-sans);
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 8px;
}

.doodle-chat-note-toggle:hover {
  color: var(--color-sand);
  border-color: var(--border-sand);
  background: rgba(223, 209, 188, 0.08);
}

.doodle-note-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
  padding: 8px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.doodle-note-input,
.doodle-note-textarea {
  width: 100%;
  background: rgba(14, 19, 29, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 12px;
  color: #fff;
  font-family: var(--font-sans);
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s;
}

.doodle-note-input:focus,
.doodle-note-textarea:focus {
  border-color: var(--color-sand);
}

.doodle-note-textarea {
  resize: vertical;
  min-height: 48px;
}

.doodle-note-submit {
  background: var(--color-sand);
  color: #0e131f;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}

.doodle-note-submit:hover:not(:disabled) {
  background: #fff;
  transform: translateY(-1px);
}

.doodle-note-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.doodle-note-status {
  font-size: 11px;
  line-height: 1.4;
  padding: 6px 8px;
  border-radius: 5px;
  margin-top: 4px;
}

.doodle-note-status.is-success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
}

.doodle-note-status.is-error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
}

.doodle-subpage-direct-links {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
}

.doodle-subpage-link {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}

.doodle-subpage-link:hover {
  color: var(--color-sand);
}

.doodle-sep {
  color: rgba(255, 255, 255, 0.2);
}

/* Doodle Interactive Stage - Balanced & Expressive */
.doodle-stage {
  position: relative;
  width: 125px;
  height: 140px;
  pointer-events: auto;
  cursor: pointer;
  user-select: none;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), height 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* When chat is open, subtly scale to 110x122px companion size so chat NEVER clips top */
.doodle-host.has-chat-open .doodle-stage {
  width: 110px;
  height: 122px;
}

.doodle-stage:hover {
  transform: translateY(-2px) scale(1.03);
}

.doodle-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
  filter: drop-shadow(0 14px 26px rgba(0, 0, 0, 0.5));
}

#doodle-antenna-beacon-ring {
  transform-origin: -6px -22px;
  animation: doodleBeaconPulse 2.4s infinite ease-out;
}

@keyframes doodleBeaconPulse {
  0% {
    transform: scale(0.6);
    opacity: 0.9;
  }
  60% {
    transform: scale(1.6);
    opacity: 0;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

.doodle-fx-canvas {
  position: absolute;
  top: -20%;
  left: -20%;
  width: 140%;
  height: 140%;
  pointer-events: none;
  z-index: 2;
}

/* Quick Dock Beneath Doodle Feet */
.doodle-quick-dock {
  position: absolute;
  bottom: 0px;
  right: 14px;
  display: flex;
  gap: 6px;
  opacity: 0;
  transform: translateY(4px);
  transition: all 0.2s ease;
  pointer-events: auto;
}

.doodle-stage:hover .doodle-quick-dock {
  opacity: 1;
  transform: translateY(0);
}

.doodle-dock-btn {
  background: rgba(14, 19, 29, 0.88);
  border: 1px solid rgba(223, 209, 188, 0.3);
  color: var(--color-sand);
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  cursor: pointer;
  transition: all 0.2s;
  backdrop-filter: blur(10px);
}

.doodle-dock-btn:hover {
  background: var(--color-sand);
  color: #0e131f;
  transform: scale(1.08);
}

.doodle-dock-btn.is-active {
  background: rgba(52, 211, 153, 0.22);
  border-color: #34d399;
  color: #34d399;
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.35);
}

/* Minimized State: stays at the exact same location as Doodle */
.doodle-host.is-minimized {
  width: 125px;
  height: 140px;
  justify-content: center;
  align-items: center;
}

.doodle-host.is-minimized .doodle-stage,
.doodle-host.is-minimized .doodle-bubble {
  display: none !important;
}

.doodle-min-avatar {
  position: relative;
  z-index: 995;
  width: 52px;
  height: 52px;
  margin: auto;
  border-radius: 50%;
  background: #141b28;
  border: 2px solid var(--color-sand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6), 0 0 20px rgba(223, 209, 188, 0.3);
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s;
}

.doodle-min-avatar:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7), 0 0 28px rgba(223, 209, 188, 0.5);
}

.doodle-mini-pulse {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid var(--color-sand);
  animation: miniAvatarPulse 2s infinite ease-out;
  pointer-events: none;
}

@keyframes miniAvatarPulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.35); opacity: 0; }
}

/* Mobile & Tablet Adjustments for Doodle */
@media (max-width: 768px) {
  .charly-chat-widget {
    right: 14px;
    bottom: 12px;
  }

  .doodle-host {
    right: 20px;
    top: 0;
    bottom: auto;
    gap: 6px;
  }

  .doodle-stage {
    width: 95px;
    height: 106px;
  }

  .doodle-host.has-chat-open .doodle-stage {
    width: 78px;
    height: 88px;
  }

  /* Completely hide quick dock buttons and minimized avatar on mobile devices */
  .doodle-quick-dock,
  .doodle-dock-btn,
  .doodle-min-avatar {
    display: none !important;
  }
}

@media (hover: none) and (pointer: coarse) {
  .doodle-quick-dock,
  .doodle-dock-btn,
  .doodle-min-avatar {
    display: none !important;
  }
}

@media (max-width: 768px) {

  .doodle-bubble {
    max-width: min(285px, calc(100vw - 28px));
    max-height: 72vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 12px 14px;
  }

  .bubble-text {
    font-size: 12px;
    line-height: 1.45;
    margin-bottom: 8px;
  }

  .bubble-cta-btn {
    font-size: 11px;
    padding: 4px 10px;
  }

  .bubble-arrow {
    right: 32px;
  }
}

/* ==========================================================================
   GDPR & ePRIVACY COMPLIANT COOKIE CONSENT BANNER
   ========================================================================== */

.cp-cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 35px);
  width: min(1060px, calc(100vw - 32px));
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s;
}

.cp-cookie-banner.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.cp-cookie-container {
  background: rgba(12, 16, 23, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(223, 209, 188, 0.22);
  border-radius: var(--radius-md, 14px);
  box-shadow: 0 24px 60px -10px rgba(0, 0, 0, 0.8), 0 0 1px 1px rgba(255, 255, 255, 0.06);
  padding: 22px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cp-cookie-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.cp-cookie-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--color-sand);
  background: rgba(223, 209, 188, 0.08);
  border: 1px solid rgba(223, 209, 188, 0.2);
  padding: 4px 10px;
  border-radius: var(--radius-full, 9999px);
}

.cp-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-emerald, #34d399);
  box-shadow: 0 0 8px var(--color-emerald, #34d399);
  animation: cpPulse 2s infinite;
}

@keyframes cpPulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.cp-cookie-title {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.cp-cookie-desc {
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

.cp-cookie-details {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 14px;
  animation: cpFadeDown 0.25s ease-out;
}

@keyframes cpFadeDown {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.cp-cookie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
}

.cp-cookie-item {
  background: rgba(18, 23, 33, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm, 8px);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cp-cookie-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cp-cookie-name {
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-main);
}

.cp-cookie-status.required {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-sand);
  background: rgba(223, 209, 188, 0.12);
  padding: 2px 7px;
  border-radius: var(--radius-full, 9999px);
  border: 1px solid rgba(223, 209, 188, 0.25);
}

.cp-cookie-text {
  font-family: var(--font-sans);
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--text-dim);
  margin: 0;
}

/* Toggle Switches */
.cp-switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 20px;
  flex-shrink: 0;
}

.cp-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cp-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.15);
  transition: 0.22s;
  border-radius: 20px;
}

.cp-slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: #ffffff;
  transition: 0.22s;
  border-radius: 50%;
}

.cp-switch input:checked + .cp-slider {
  background-color: var(--color-sand, #dfd1bc);
}

.cp-switch input:checked + .cp-slider:before {
  transform: translateX(18px);
  background-color: #0a0c10;
}

/* Action Controls */
.cp-cookie-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 4px;
}

.cp-cookie-btn {
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: var(--radius-sm, 8px);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  line-height: 1;
}

.cp-btn-link {
  background: none;
  border: none;
  color: var(--color-sand);
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 6px 4px;
  text-decoration: none;
}

.cp-btn-link:hover {
  color: var(--color-sand-light, #f5efe6);
}

.cp-btn-link .cp-chevron {
  transition: transform 0.25s ease;
}

.cp-btn-link.is-open .cp-chevron {
  transform: rotate(180deg);
}

.cp-cookie-btn-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cp-btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.cp-btn-outline:hover {
  border-color: var(--color-sand);
  color: var(--color-sand);
  background: rgba(223, 209, 188, 0.05);
}

.cp-btn-save {
  background: rgba(223, 209, 188, 0.14);
  color: var(--color-sand);
  border: 1px solid rgba(223, 209, 188, 0.3);
}

.cp-btn-save:hover {
  background: rgba(223, 209, 188, 0.22);
}

.cp-btn-primary {
  background: var(--color-sand, #dfd1bc);
  color: #0a0c10;
  border: 1px solid var(--color-sand, #dfd1bc);
  box-shadow: 0 4px 12px rgba(223, 209, 188, 0.2);
}

.cp-btn-primary:hover {
  background: var(--color-sand-light, #f5efe6);
  border-color: var(--color-sand-light, #f5efe6);
  transform: translateY(-1px);
}

/* Footer Trigger Button */
.footer-cookie-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  cursor: pointer;
  transition: color 0.2s;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-cookie-btn:hover {
  color: var(--color-sand);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .cp-cookie-banner {
    bottom: 0;
    left: 0;
    transform: translateY(100%);
    width: 100%;
  }

  .cp-cookie-banner.is-visible {
    transform: translateY(0);
  }

  .cp-cookie-container {
    border-radius: 16px 16px 0 0;
    border-bottom: none;
    padding: 18px 16px;
    max-height: 85vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    gap: 14px;
  }

  .cp-cookie-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .cp-cookie-btn-group {
    flex-direction: column;
    width: 100%;
  }

  .cp-cookie-btn-group .cp-cookie-btn {
    width: 100%;
  }

  .cp-btn-link {
    justify-content: center;
    width: 100%;
  }
}


/* ==============================================================================
 * Accessible FAQ Accordion & Collapsible Cards
 * ============================================================================== */
.faq-accordion-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 860px;
  margin: 36px auto 0;
}

.faq-accordion-item {
  background: rgba(18, 23, 34, 0.7);
  border: 1px solid rgba(223, 209, 188, 0.12);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.faq-accordion-item:hover {
  border-color: rgba(223, 209, 188, 0.3);
  background: rgba(22, 28, 42, 0.85);
}

.faq-accordion-item.is-open {
  border-color: #dfd1bc;
  background: rgba(223, 209, 188, 0.04);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.faq-accordion-header {
  margin: 0;
  padding: 0;
  font-size: 1rem;
  font-weight: 400;
}

.faq-trigger {
  width: 100%;
  background: transparent;
  border: none;
  padding: 22px 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  transition: color 0.2s ease;
}

.faq-trigger:hover,
.faq-accordion-item.is-open .faq-trigger {
  color: #dfd1bc;
}

.faq-trigger:focus-visible {
  outline: 2px solid #dfd1bc;
  outline-offset: -2px;
}

.faq-question-text {
  flex: 1;
  line-height: 1.45;
}

.faq-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(223, 209, 188, 0.15);
  color: #dfd1bc;
  font-family: monospace;
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s, border-color 0.2s;
}

.faq-accordion-item.is-open .faq-icon {
  transform: rotate(45deg);
  background: rgba(223, 209, 188, 0.15);
  border-color: #dfd1bc;
}

.faq-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  visibility: hidden;
}

.faq-accordion-item.is-open .faq-body {
  grid-template-rows: 1fr;
  visibility: visible;
}

.faq-body-inner {
  overflow: hidden;
}

.faq-body-inner p {
  padding: 0 26px 24px;
  margin: 0;
  font-size: 15px;
  color: #94a3b8;
  line-height: 1.75;
}
