/* ============================================================
   Section Styles — Modern Professional Portfolio
   ============================================================ */

/* ======================================================
   NAV
   ====================================================== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background var(--t-med), border-bottom var(--t-med),
              backdrop-filter var(--t-med), box-shadow var(--t-med);
}

#navbar.scrolled {
  background: var(--nav-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 20px rgba(0,0,0,0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* Logo: image + name */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
  transition: opacity var(--t-fast);
}

.nav-logo-text {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  transition: color var(--t-fast);
}

.nav-logo-text .accent-dot { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 7px 14px;
  border-radius: var(--r-full);
  transition: all var(--t-fast);
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  background: var(--accent-light);
}

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

#theme-toggle {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--t-fast);
  font-size: 1rem;
}

#theme-toggle:hover {
  background: var(--grad);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-accent);
}

.nav-cta { padding: 9px 22px; font-size: 0.85rem; }

#nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
#nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--t-med);
}

/* ======================================================
   MOBILE NAV OVERLAY
   ====================================================== */
#nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--bg);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}
#nav-overlay.open { display: flex; }
#nav-overlay a { font-size: 1.5rem; font-weight: 700; color: var(--text); }
#nav-overlay a:hover { color: var(--accent); }
#nav-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text);
  cursor: pointer;
}

/* ======================================================
   HERO
   ====================================================== */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
  position: relative;
  /* Mesh-gradient background — theme-aware */
  background:
    radial-gradient(ellipse 700px 500px at 8% 55%, var(--hero-orb-1) 0%, transparent 65%),
    radial-gradient(ellipse 500px 600px at 92% 10%, var(--hero-orb-2) 0%, transparent 65%),
    radial-gradient(ellipse 400px 400px at 50% 100%, var(--hero-orb-3) 0%, transparent 65%),
    var(--bg);
}

/* Decorative floating blobs */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(80px);
}
.hero-blob-1 {
  width: 350px; height: 350px;
  background: var(--grad);
  opacity: 0.05;
  top: 15%; left: -80px;
}
.hero-blob-2 {
  width: 250px; height: 250px;
  background: var(--grad-r);
  opacity: 0.06;
  bottom: 12%; right: 5%;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
  padding: 4rem 0 5rem;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 7px 18px;
  border-radius: var(--r-full);
  margin-bottom: 1.5rem;
  border: 1px solid var(--accent-mid);
  letter-spacing: 0.04em;
}

.hero-badge .dot {
  width: 7px; height: 7px;
  background: var(--grad);
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse-dot 2.4s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.75); }
}

.hero-title {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 1.4rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.hero-title .highlight {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.85;
  max-width: 530px;
  margin-bottom: 2.25rem;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

/* Hero stats — bento grid */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.stat-card {
  background: var(--bg);
  padding: 1.25rem 0.75rem;
  text-align: center;
  position: relative;
  transition: background var(--t-fast);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad);
  opacity: 0;
  transition: opacity var(--t-fast);
}

.stat-card:hover::before { opacity: 1; }
.stat-card:hover { background: var(--bg-2); }

.stat-number {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--text);
  display: block;
  line-height: 1;
  margin-bottom: 5px;
  letter-spacing: -0.02em;
}

.stat-number .prefix { font-size: 1rem; }
.stat-number .suffix { font-size: 1rem; }

.stat-number .counter {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.68rem;
  color: var(--text-light);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* Hero photo */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-photo-wrap {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: 4px;               /* gradient border thickness */
  background: var(--grad);
  border-radius: calc(var(--r-xl) + 4px);
  box-shadow: var(--shadow-lg), var(--shadow-accent);
}

.hero-photo {
  width: 100%;
  border-radius: var(--r-xl);
  display: block;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: center top;
  background: var(--bg-2);
}

.hero-photo-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: var(--r-xl);
  background: var(--grad-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
}
.hero-photo-placeholder i { font-size: 3rem; opacity: 0.5; }

/* ======================================================
   SPECIALIZATIONS
   ====================================================== */
#specializations { background: var(--bg-2); }

.specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

.spec-card {
  background: var(--bg);
  border: 1px solid var(--card-border, var(--border));
  border-radius: var(--r-lg);
  padding: 1.75rem 1.5rem;
  transition: all var(--t-med);
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
}

.spec-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--spec-grad, var(--grad));
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  transform: scaleX(0);
  transition: transform var(--t-med);
}

.spec-card:hover::after { transform: scaleX(1); }

.spec-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-shadow-h);
  border-color: var(--card-border-h, var(--border-dark));
}

/* Per-card accent colors */
.spec-blue   { --spec-grad: linear-gradient(90deg,#1A3D6F,#0CB89A); }
.spec-teal   { --spec-grad: linear-gradient(90deg,#0CB89A,#059669); }
.spec-purple { --spec-grad: linear-gradient(90deg,#7C3AED,#4F46E5); }
.spec-green  { --spec-grad: linear-gradient(90deg,#059669,#0CB89A); }
.spec-orange { --spec-grad: linear-gradient(90deg,#F5A623,#E84E08); }
.spec-red    { --spec-grad: linear-gradient(90deg,#E84E08,#DC2626); }

.spec-icon {
  width: 52px; height: 52px;
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 1.1rem;
  background: var(--spec-grad, var(--grad));
}

.spec-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.spec-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.1rem;
}

.spec-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

/* ======================================================
   ABOUT
   ====================================================== */
#about { background: var(--bg); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: center;
}

.about-photo { position: relative; }

.about-photo img {
  width: 100%;
  border-radius: var(--r-xl);
  display: block;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.about-photo-placeholder {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: var(--r-xl);
  background: var(--grad-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.85rem;
  border: 2px dashed var(--border);
}

/* Accent corner on photo */
.about-photo::before {
  content: '';
  position: absolute;
  top: -12px; left: -12px;
  right: 12px; bottom: 12px;
  border: 2px solid var(--accent-mid);
  border-radius: var(--r-xl);
  z-index: -1;
  opacity: 0.5;
}

.about-text p { margin-bottom: 1.2rem; }
.about-text p:last-of-type { margin-bottom: 2rem; }

.about-currently {
  background: var(--grad-light);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.about-currently strong { color: var(--accent); }

.about-interests { display: flex; flex-wrap: wrap; gap: 10px; }

.interest-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-2);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: var(--r-full);
  transition: all var(--t-fast);
}
.interest-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}
.interest-chip i { color: var(--accent); font-size: 0.85rem; }

/* ======================================================
   SKILLS
   ====================================================== */
#skills { background: var(--bg-2); }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.skills-category {
  background: var(--bg);
  border: 1px solid var(--card-border, var(--border));
  border-radius: var(--r-lg);
  padding: 1.6rem;
  box-shadow: var(--card-shadow);
  transition: all var(--t-fast);
}

.skills-category:hover {
  box-shadow: var(--card-shadow-h);
  border-color: var(--card-border-h, var(--border-dark));
  transform: translateY(-2px);
}

.skills-category-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1.1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--border);
}

.skills-cat-icon {
  width: 36px; height: 36px;
  border-radius: var(--r-md);
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.skills-category-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1.2;
}

.skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.skill-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 5px 12px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  color: var(--text-muted);
  transition: all var(--t-fast);
  cursor: default;
  white-space: nowrap;
}
.skill-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

.skill-tag .badge {
  font-size: 0.6rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-expert    { background: #DCFCE7; color: #166534; }
.badge-advanced  { background: var(--accent-light); color: var(--accent); }
.badge-proficient { background: var(--bg-3); color: var(--text-muted); }

[data-theme="dark"] .badge-expert   { background: #14532D; color: #86EFAC; }
[data-theme="dark"] .badge-advanced { background: var(--accent-light); color: var(--accent-dark); }

/* ======================================================
   PROJECTS
   ====================================================== */
#projects { background: var(--bg); }

.projects-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 2.5rem;
}

.filter-btn {
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 18px;
  border-radius: var(--r-full);
  border: 1px solid var(--border);
  background: var(--bg-2);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--t-fast);
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--shadow-accent);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
}

.project-card {
  background: var(--bg);
  border: 1px solid var(--card-border, var(--border));
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all var(--t-med);
  box-shadow: var(--card-shadow);
}

.project-card.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
}

.project-card:hover {
  box-shadow: var(--card-shadow-h);
  border-color: var(--card-border-h, var(--border-dark));
  transform: translateY(-5px);
}

.project-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--grad-light);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.project-card.featured .project-thumb {
  aspect-ratio: unset;
  min-height: 260px;
}

.project-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.project-card:hover .project-thumb img { transform: scale(1.05); }

.project-thumb-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0.5;
  padding: 2rem;
  text-align: center;
}
.project-thumb-placeholder i { font-size: 2.5rem; }

.project-body { padding: 1.6rem; }

.project-cat {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 0.5rem;
}

.project-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.project-problem {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.project-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 1rem;
}

.metric-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.73rem;
  font-weight: 600;
  padding: 4px 10px;
  background: var(--success-bg);
  color: var(--success);
  border-radius: var(--r-sm);
  white-space: nowrap;
}

[data-theme="dark"] .metric-pill { background: #064E3B; color: #6EE7B7; }

.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 1.25rem;
}

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

/* ======================================================
   EXPERIENCE
   ====================================================== */
#experience { background: var(--bg-2); }

.timeline { position: relative; padding-left: 2.25rem; }

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px; bottom: 8px;
  width: 2px;
  background: var(--grad);
  border-radius: 2px;
  opacity: 0.3;
}

.timeline-item { position: relative; padding-bottom: 2.75rem; }
.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -2.5rem;
  top: 4px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--grad);
  border: 3px solid var(--bg-2);
  box-shadow: 0 0 0 2px var(--accent);
}
.timeline-dot.current { animation: pulse-dot 2.4s ease-in-out infinite; }

.timeline-date {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  font-family: var(--font-mono);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.current-badge {
  background: var(--success-bg);
  color: var(--success);
  padding: 2px 8px;
  border-radius: var(--r-full);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  font-family: var(--font);
}

.timeline-role {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.2rem;
}
.timeline-company { font-size: 0.88rem; font-weight: 500; color: var(--text-muted); margin-bottom: 0.8rem; }

.timeline-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 1rem;
}
.timeline-bullets li {
  font-size: 0.86rem;
  color: var(--text-muted);
  padding-left: 1.1rem;
  position: relative;
  line-height: 1.7;
}
.timeline-bullets li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-2);
  font-size: 0.75rem;
}

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

/* ======================================================
   EDUCATION & CERTS
   ====================================================== */
#education { background: var(--bg); }

.edu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  margin-bottom: 2rem;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}

.edu-card, .cert-card {
  background: var(--bg-2);
  border: 1px solid var(--card-border, var(--border));
  border-radius: var(--r-lg);
  padding: 1.4rem;
  transition: all var(--t-fast);
  box-shadow: var(--card-shadow);
}
.edu-card:hover, .cert-card:hover {
  box-shadow: var(--card-shadow-h);
  border-color: var(--card-border-h, var(--border-dark));
  transform: translateY(-3px);
}

.edu-icon {
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.edu-year {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--font-mono);
  margin-bottom: 0.4rem;
  letter-spacing: 0.06em;
}

.edu-qual {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.3rem;
  line-height: 1.35;
}

.edu-inst { font-size: 0.8rem; color: var(--text-muted); }

.edu-gpa {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--success);
  margin-top: 0.4rem;
  font-weight: 600;
}

/* ======================================================
   LANGUAGES
   ====================================================== */
#languages { background: var(--bg-2); }

.languages-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--gap);
}

.lang-card {
  background: var(--bg);
  border: 1px solid var(--card-border, var(--border));
  border-radius: var(--r-lg);
  padding: 1.5rem 1rem;
  text-align: center;
  transition: all var(--t-fast);
  box-shadow: var(--card-shadow);
}
.lang-card:hover {
  border-color: var(--card-border-h, var(--border-dark));
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-h);
}

.lang-flag { font-size: 2.2rem; display: block; margin-bottom: 0.5rem; }
.lang-name { font-size: 0.92rem; font-weight: 700; color: var(--text); margin-bottom: 0.3rem; }

.lang-level {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--r-full);
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.level-native { background: #FEF9C3; color: #854D0E; }
.level-c2     { background: #DCFCE7; color: #166534; }
.level-c1     { background: #EFF6FF; color: #1D4ED8; }
.level-b2     { background: #F3E8FF; color: #6D28D9; }
.level-a2     { background: var(--bg-3); color: var(--text-muted); }
.level-a1     { background: var(--bg-3); color: var(--text-muted); }

[data-theme="dark"] .level-native { background: #422006; color: #FDE68A; }
[data-theme="dark"] .level-c2     { background: #14532D; color: #86EFAC; }
[data-theme="dark"] .level-c1     { background: #1e3a5f; color: #93C5FD; }

/* ======================================================
   LIVE DATA / CHARTS
   ====================================================== */
#live-data { background: var(--bg); }

.live-data-intro { max-width: 600px; margin-bottom: 2.5rem; }

.charts-wrap {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--gap);
}

.chart-card {
  background: var(--bg-2);
  border: 1px solid var(--card-border, var(--border));
  border-radius: var(--r-lg);
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
}

.chart-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 10px;
}

.chart-title { font-size: 0.9rem; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.chart-sub   { font-size: 0.75rem; color: var(--text-muted); }

.chart-badge {
  font-size: 0.6rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--r-full);
  background: var(--accent-light);
  color: var(--accent);
  border: 1px solid var(--accent-mid);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.chart-canvas-wrap { position: relative; }

.data-source-note {
  margin-top: 1.5rem;
  font-size: 0.75rem;
  color: var(--text-light);
  font-style: italic;
  text-align: center;
}

/* ======================================================
   TESTIMONIALS
   ====================================================== */
#testimonials { background: var(--bg-2); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
}

.testimonial-card {
  background: var(--bg);
  border: 1px solid var(--card-border, var(--border));
  border-radius: var(--r-lg);
  padding: 2rem;
  position: relative;
  transition: all var(--t-fast);
  box-shadow: var(--card-shadow);
}
.testimonial-card:hover {
  box-shadow: var(--card-shadow-h);
  border-color: var(--card-border-h, var(--border-dark));
  transform: translateY(-3px);
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 0.75rem; right: 1.25rem;
  font-size: 5.5rem;
  line-height: 1;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: Georgia, serif;
  font-weight: 700;
  opacity: 0.35;
}

.testimonial-quote {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-person { display: flex; align-items: center; gap: 12px; }

.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.testimonial-name { font-size: 0.9rem; font-weight: 700; color: var(--text); }
.testimonial-role { font-size: 0.76rem; color: var(--text-muted); margin-top: 2px; }

/* ======================================================
   CONTACT
   ====================================================== */
#contact { background: var(--bg); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h2 { margin-bottom: 0.75rem; }
.contact-info > p { margin-bottom: 2rem; }

.contact-links { display: flex; flex-direction: column; gap: 12px; margin-bottom: 2rem; }

.contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text);
  text-decoration: none;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-2);
  transition: all var(--t-fast);
}
.contact-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}
.contact-link i { font-size: 1.1rem; color: var(--accent); width: 20px; flex-shrink: 0; }

.response-note {
  font-size: 0.8rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-label { font-size: 0.82rem; font-weight: 600; color: var(--text); }

.form-input,
.form-select,
.form-textarea {
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 11px 14px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
  outline: none;
  width: 100%;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  background: var(--bg);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(26,61,111,0.10);
}

[data-theme="amber"] .form-input:focus,
[data-theme="amber"] .form-select:focus,
[data-theme="amber"] .form-textarea:focus {
  box-shadow: 0 0 0 3px rgba(232,146,10,0.12);
}

[data-theme="dark"] .form-input:focus,
[data-theme="dark"] .form-select:focus,
[data-theme="dark"] .form-textarea:focus {
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}

.form-textarea { resize: vertical; min-height: 130px; }
.honeypot { display: none !important; }

#form-submit { align-self: flex-start; min-width: 160px; }

#form-feedback {
  padding: 12px 16px;
  border-radius: var(--r-md);
  font-size: 0.875rem;
  font-weight: 500;
  display: none;
}
#form-feedback.success { background: var(--success-bg); color: var(--success); }
#form-feedback.error   { background: #FEF2F2; color: #DC2626; }

/* ======================================================
   FOOTER
   ====================================================== */
footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo { font-size: 1rem; font-weight: 800; color: var(--text); letter-spacing: -0.01em; }
.footer-logo .accent-dot { color: var(--accent); }

.footer-links { display: flex; gap: 0.5rem; list-style: none; }
.footer-links a {
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: var(--r-sm);
  transition: all var(--t-fast);
}
.footer-links a:hover { color: var(--accent); background: var(--accent-light); }

.footer-socials { display: flex; gap: 10px; }

.social-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: all var(--t-fast);
  text-decoration: none;
  background: var(--bg);
}
.social-icon:hover {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--shadow-accent);
  transform: translateY(-2px);
}

.footer-copy {
  font-size: 0.76rem;
  color: var(--text-light);
  text-align: center;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

/* ======================================================
   BACK TO TOP
   ====================================================== */
#back-top {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: var(--shadow-accent);
  transition: all var(--t-fast);
  opacity: 0;
  pointer-events: none;
  z-index: 900;
}
#back-top.visible { opacity: 1; pointer-events: auto; }
#back-top:hover { transform: translateY(-4px); filter: brightness(1.1); }
