/* ===========================
   THEME TOKENS
=========================== */
:root {
  --bg: #f8f5f3;
  --bg-alt: #ffffff;
  --text: #1a1a1a;
  --text-soft: #555555;

  /* PRIMARY THEME – WARM ORANGE (#f04922) */
  --accent: #f04922;                /* main accent */
  --accent-soft: #ffe3d6;           /* soft background for chips/badges */

  --border: #e0e3ea;
  --shadow-soft: 0 10px 25px rgba(15, 23, 42, 0.06);
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-pill: 999px;
  --max-width: 1080px;
  --section-spacing: 80px;
  --is-dark: 0;
}

body[data-theme="dark"] {
  --bg: #020617;                    /* page background */
  --bg-alt: #020617;                /* cards / panels */
  --text: #e5e7eb;
  --text-soft: #9ca3af;

  /* Dark mode warm accent */
  --accent: #ff7a4a;
  --accent-soft: rgba(255, 122, 74, 0.18);

  --border: #1f2937;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.8);
  --is-dark: 1;
}


/* ===========================
   BASE
=========================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  background: radial-gradient(circle at top left, #fff3ec 0, var(--bg) 36%, var(--bg) 100%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  transition: background 0.25s ease, color 0.25s ease;
    -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

body[data-theme="dark"] {
  background: radial-gradient(circle at top left, #020617 0, #020617 40%, #020617 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  min-height: 100vh;
}

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

section {
  padding: var(--section-spacing) 0;
  scroll-margin-top: 80px;
}

/* ===========================
   NAVIGATION
=========================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(224, 227, 234, 0.7);
  transition: background 0.25s ease, border-color 0.25s ease;
}

body[data-theme="dark"] .nav {
  background: rgba(2, 6, 23, 0.94);
  border-color: rgba(31, 41, 55, 0.9);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0; /* so text can wrap nicely on small screens */
}

.brand-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  padding: 4px;
}

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

/* you already have these but they’ll work perfectly with the logo */
.brand-title {
  font-weight: 600;
  letter-spacing: 0.03em;
  font-size: 17px;
  text-transform: uppercase;
}

.brand-subtitle {
  font-size: 12px;
  color: var(--text-soft);
}


.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
  font-size: 14px;
}

.nav-link {
  position: relative;
  padding: 4px 0;
  cursor: pointer;
  color: var(--text-soft);
  transition: color 0.15s ease;
}

.nav-link:hover {
  color: var(--text);
}

.nav-link.active {
  color: var(--accent);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  border-radius: 1px;
  background: var(--accent);
}

/* CTA in nav */
.nav-cta {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(240, 73, 34, 0.35);
  font-size: 13px;
  color: var(--accent);
  background: rgba(255, 229, 220, 0.96);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.nav-cta:hover {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

/* ===========================
   THEME TOGGLE
=========================== */
.theme-toggle {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(255, 255, 255, 0.95);
  font-size: 16px;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(148, 163, 184, 1);
}

body[data-theme="dark"] .theme-toggle {
  background: #020617;
  color: #e5e7eb;
  border-color: #1f2937;
}


/* ===========================
   HERO
=========================== */
.hero {
  padding-top: 40px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: center;
}

.hero-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.hero-chip {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(240, 73, 34, 0.06);
  color: var(--accent);
  border: 1px solid rgba(240, 73, 34, 0.16);
}

.hero-title {
  font-size: 32px;
  line-height: 1.2;
  margin: 0 0 10px;
  font-weight: 650;
}

.hero-sub {
  font-size: 15px;
  color: var(--text-soft);
  margin-bottom: 22px;
}

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

.btn-primary,
.btn-ghost {
  border-radius: var(--radius-pill);
  font-size: 14px;
  padding: 9px 18px;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(240, 73, 34, 0.35);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.8);
  color: var(--text);
  border-color: rgba(0, 0, 0, 0.08);
}

.btn-ghost:hover {
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 12px;
  color: var(--text-soft);
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
}

/* HERO PANEL */
.hero-panel {
  background: var(--bg-alt);
  border-radius: 24px;
  padding: 18px 18px 20px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(208, 214, 230, 0.9);
  opacity: 0;
  transform: translateY(6px);
  animation: heroPanelIn 0.5s ease-out forwards;
}

@keyframes heroPanelIn {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.hero-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-size: cover;
  background-image: url("images/myi.JPG");
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  font-weight: 600;
}

.hero-panel-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 3px;
}

.hero-panel-role {
  font-size: 12px;
  color: var(--text-soft);
}

.hero-tagline {
  font-size: 12px;
  color: var(--text-soft);
  margin-bottom: 12px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  font-size: 11px;
}

.stat-card {
  border-radius: 12px;
  padding: 10px;
  background: #fff7f3;
  border: 1px solid rgba(237, 220, 213, 0.9);
}

.stat-label {
  font-size: 11px;
  color: var(--text-soft);
  margin-top: 4px;
}

.stat-value {
  font-size: 15px;
  font-weight: 600;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
  font-size: 10px;
}

.hero-badge {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(240, 73, 34, 0.2);
}

/* Premium shimmer badge for current leadership role */
.hero-current-role {
  display: inline-block;
  padding: 4px 10px;
  margin-bottom: 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;

  /* Shimmer gradient (warm) */
  background: linear-gradient(90deg, #f7e3c3, #fff4e4, #f7e3c3);
  background-size: 200% 100%;
  color: #b45f06;
  box-shadow: 0 0 0 1px rgba(180, 95, 6, 0.15);

  animation: shimmerRole 2.8s linear infinite;
}

@keyframes shimmerRole {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-current-role {
    animation: none;
    background-position: 0 0;
  }
  .hero-panel {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ===========================
   SECTIONS HEADERS
=========================== */
.section-header {
  margin-bottom: 24px;
}

.section-eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  font-weight: 600;
}

.section-title {
  margin: 4px 0 6px;
  font-size: 26px;
  font-weight: 600;
}

.section-description {
  max-width: 620px;
  font-size: 14px;
  color: var(--text-soft);
}

/* ===========================
   ABOUT
=========================== */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
  gap: 40px;
  align-items: flex-start;
}

.about-card {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.about-body {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.6;
}

.about-list {
  margin: 12px 0 0;
  padding-left: 18px;
  font-size: 13px;
  color: var(--text-soft);
}

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

.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.pill {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-soft);
}

.about-subtitle {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.cert-list {
  font-size: 12px;
  color: var(--text-soft);
  list-style: disc;
  padding-left: 18px;
  margin: 6px 0 0;
}

.cert-list li {
  margin-bottom: 3px;
}

/* ===========================
   EXPERIENCE / TIMELINE
=========================== */
.timeline {
  border-left: 1px solid var(--border);
  margin-left: 10px;
  padding-left: 22px;
  position: relative;
}

.timeline-item {
  margin-bottom: 26px;
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 2px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(240, 73, 34, 0.25);
  animation: pulseDot 1s ease-out infinite;
}

@keyframes pulseDot {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 4px rgba(240, 73, 34, 0.28);
  }
  60% {
    transform: scale(1.08);
    box-shadow: 0 0 0 12px rgba(240, 73, 34, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 4px rgba(240, 73, 34, 0);
  }
}

.timeline-role {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}

.timeline-meta {
  font-size: 12px;
  color: var(--text-soft);
  margin-bottom: 6px;
}

.timeline-description {
  font-size: 13px;
  color: var(--text-soft);
  margin-bottom: 6px;
}

.timeline-highlight-list {
  list-style: disc;
  padding-left: 18px;
  font-size: 13px;
  color: var(--text-soft);
  margin: 4px 0 0;
}

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

/* Reduced motion for timeline */
@media (prefers-reduced-motion: reduce) {
  .timeline-item::before {
    animation: none;
  }
}

/* ===========================
   SKILLS
=========================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.skill-card {
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  padding: 14px 14px 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.skill-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 11px;
  color: var(--text-soft);
}

.skill-tag {
  padding: 3px 8px;
  border-radius: 999px;
  background: #fff7f3;
  border: 1px solid rgba(237, 220, 213, 0.9);
}

/* ===========================
   CARD GRID (PORTFOLIO + ARTICLES)
=========================== */
.card-grid,
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card {
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  padding: 14px 14px 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 4px;
}

.card-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.card-body {
  font-size: 13px;
  color: var(--text-soft);
  margin-bottom: 10px;
}

.card-meta {
  font-size: 12px;
  color: var(--text-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.card-link {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.article-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 10px;
  margin-top: 4px;
}

.article-chip {
  padding: 3px 8px;
  border-radius: 999px;
  background: #fff7f3;
  border: 1px solid rgba(237, 220, 213, 0.9);
  color: var(--text-soft);
}

/* ===========================
   CONTACT
=========================== */
#contact .section-description {
  max-width: 640px;
}

.contact-card {
  margin-top: 16px;
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  padding: 20px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 24px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
}

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

.contact-label {
  width: 70px;
  font-weight: 600;
  font-size: 12px;
}

.contact-value {
  font-size: 13px;
  color: var(--text-soft);
  word-break: break-all;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
}

.form-label {
  font-weight: 500;
}

.form-field input,
.form-field textarea {
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 9px 10px;
  font-family: inherit;
  font-size: 13px;
  resize: vertical;
  min-height: 38px;
  background: var(--bg-alt);
  color: var(--text);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(240, 73, 34, 0.18);
}

/* Modern contact layout */
.contact-info-modern {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Card-style contact items */
.contact-pill {
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(255, 247, 243, 0.9);
  border: 1px solid rgba(237, 220, 213, 0.9);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

body[data-theme="dark"] .contact-pill {
  background: #020617;
  border-color: #1f2937;
}

/* Header row inside pill */
.contact-pill-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.contact-pill-label {
  font-size: 12px;
  font-weight: 600;
}

.contact-pill-tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  white-space: nowrap;
}

/* ===========================
   Unified CTA style (LinkedIn + CV + Conversation)
=========================== */

/* Unified CTA style (LinkedIn + CV + Conversation) */
.contact-pill-btn,
.contact-pill-action {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 9px 16px;
  min-height: 36px;

  font-size: 13px;
  font-weight: 500;

  border-radius: 999px;
  border: 1px solid rgba(240, 73, 34, 0.35);
  background: #ffffff;
  color: var(--accent);

  cursor: pointer;
  text-decoration: none;

  width: auto;                    /* FIX: no full width */
  align-self: flex-start;         /* FIX: button stays left, natural width */

  transition:
    background 0.15s ease,
    color 0.15s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease;
}

.contact-pill-btn:hover,
.contact-pill-action:hover {
  background: var(--accent);
  color: #ffffff;
  border-color: rgba(240, 73, 34, 0.6);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(240, 73, 34, 0.28);
}

/* Icon inside LinkedIn button */
.contact-pill-icon {
  width: 18px;
  height: 18px;
  display: block;
  flex-shrink: 0;
}

/* Dark mode */
body[data-theme="dark"] .contact-pill-btn,
body[data-theme="dark"] .contact-pill-action {
  background: #020617;
  border-color: #1f2937;
  color: #e5e7eb;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.55);
}

body[data-theme="dark"] .contact-pill-btn:hover,
body[data-theme="dark"] .contact-pill-action:hover {
  background: var(--accent);
  color: #0b1120;
  border-color: var(--accent);
  box-shadow: 0 14px 30px rgba(240, 73, 34, 0.55);
}





/* ===========================
   FOOTER
=========================== */
.footer {
  border-top: 1px solid var(--border);
  padding: 16px 0;
  font-size: 11px;
  color: var(--text-soft);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-title {
  font-weight: 600;
  font-size: 13px;
}

.footer-sub {
  font-size: 11px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 11px;
}

.footer-links a {
  cursor: pointer;
}

.footer-copy {
  font-size: 11px;
}


/* =============== DARK MODE COMPONENT TUNING =============== */

body[data-theme="dark"] .hero-panel,
body[data-theme="dark"] .about-card,
body[data-theme="dark"] .skill-card,
body[data-theme="dark"] .card,
body[data-theme="dark"] .contact-card {
  background: #020617;
  border-color: #1f2937;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.7);
}

body[data-theme="dark"] .stat-card,
body[data-theme="dark"] .skill-tag,
body[data-theme="dark"] .article-chip {
  background: #020617;
  border-color: #1f2937;
}

body[data-theme="dark"] .pill {
  background: #020617;
  border-color: #1f2937;
  color: var(--text-soft);
}

body[data-theme="dark"] .section-description,
body[data-theme="dark"] .timeline-description,
body[data-theme="dark"] .timeline-meta {
  color: var(--text-soft);
}

body[data-theme="dark"] .btn-ghost,
body[data-theme="dark"] .nav-cta {
  background: #020617;
  color: #e5e7eb;
  border-color: #1f2937;
}

body[data-theme="dark"] .hero-title {
  color: #f9fafb;
}

body[data-theme="dark"] .hero-sub {
  color: #9ca3af;
}


/* ===========================
   ARTICLE / CASE PAGES
=========================== */

.article-page {
  background: radial-gradient(circle at top left, #fff3ec 0, var(--bg) 36%, var(--bg) 100%);
  padding: 40px 20px;
}

body[data-theme="dark"].article-page {
  background: radial-gradient(circle at top left, #020617 0, #020617 40%, #020617 100%);
}

.article-main {
  max-width: 820px;
  margin: 0 auto;
}

.article-back {
  text-decoration: none;
  color: var(--accent);
  display: inline-block;
  font-size: 15px;
  margin-bottom: 28px;
}

body[data-theme="dark"] .article-back {
  color: var(--accent);
}

.article-title {
  font-size: 30px;
  margin-bottom: 10px;
  font-weight: 650;
}

.article-main h2 {
  font-size: 22px;
  margin-top: 32px;
  margin-bottom: 10px;
  font-weight: 600;
}

.article-main h3 {
  font-size: 18px;
  margin-top: 20px;
  margin-bottom: 8px;
  font-weight: 600;
}

.article-main p {
  margin-bottom: 16px;
}

.article-main ul {
  margin-left: 20px;
  margin-bottom: 18px;
}

.article-main li {
  margin-bottom: 6px;
}

.article-highlight {
  padding: 14px 16px;
  background: #ffe6da;
  border-radius: 10px;
  margin: 20px 0;
  color: #7c2d12;
  border: 1px solid #fec9ae;
  font-size: 14px;
}

body[data-theme="dark"] .article-highlight {
  background: #020617;
  color: #e5e7eb;
  border-color: #1f2937;
}

/* Article pages: floating theme toggle in top-right */
.article-page .theme-toggle {
  position: fixed;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(255, 255, 255, 0.95);
  font-size: 18px;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.article-page .theme-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.4);
}

body[data-theme="dark"].article-page .theme-toggle {
  background: #020617;
  color: #e5e7eb;
  border-color: #1f2937;
}

/* HERO COUNTERS */
.hero-counters {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 24px;
}

.hero-counter {
  min-width: 120px;
}

.stat-number {
  font-size: 24px;
  font-weight: 650;
  line-height: 1.1;
}

/* ===========================
   TESTIMONIAL CAROUSEL (CONTACT)
=========================== */
.testimonial-wrapper {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.testimonial-heading {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 8px;
}

.testimonial-carousel {
  display: flex;
  align-items: center;
  gap: 8px;
}

.testimonial-track-wrapper {
  overflow: hidden;
  flex: 1;
}

.testimonial-track {
  display: flex;
  transition: transform 0.35s ease;
}

.testimonial-card {
  min-width: 100%;
  max-width: 100%;
  flex-shrink: 0;
  background: var(--bg-alt);
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 10px 12px;
  box-shadow: var(--shadow-soft);
}

.testimonial-quote {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-soft);
  margin: 0 0 8px;
}

.testimonial-meta {
  font-size: 11px;
}

.testimonial-name {
  font-weight: 600;
}

.testimonial-role {
  color: var(--text-soft);
  opacity: 0.85;
}

.testimonial-btn {
  border-radius: 999px;
  border: 1px solid var(--border);
  width: 26px;
  height: 26px;
  font-size: 16px;
  background: var(--bg-alt);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.testimonial-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

/* Dark mode tuning */
body[data-theme="dark"] .testimonial-card {
  background: #020617;
  border-color: #1f2937;
}

body[data-theme="dark"] .testimonial-btn {
  background: #020617;
  border-color: #1f2937;
  color: #e5e7eb;
}

/* HERO CERTIFICATIONS ROW */
.hero-certs {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.hero-cert-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-soft);
  margin-bottom: 6px;
}

.hero-cert-logos {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-cert-img {
  height: 80px;
  width: auto;
  display: block;
  border-radius: 6px;
  background: var(--bg-alt);
  padding: 2px 4px;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.12);
}

/* Dark mode: keep badges readable on dark background */
body[data-theme="dark"] .hero-cert-img {
  background: var(--bg-alt);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

/* ===========================
   WHATSAPP QR MODAL
=========================== */
.qr-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 80;
}

.qr-modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.qr-modal {
  max-width: 360px;
  width: 92%;
  background: var(--bg-alt);
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  padding: 18px 18px 20px;
  position: relative;
}

.qr-modal-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 6px;
}

.qr-modal-text {
  font-size: 13px;
  color: var(--text-soft);
  margin: 0 0 12px;
}

.qr-modal-body {
  display: flex;
  justify-content: center;
}

.qr-modal-img {
  width: 180px;
  height: 180px;
  object-fit: contain;
  border-radius: 12px;
  background: #ffffff;
  padding: 8px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.25);
}

.qr-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  width: 26px;
  height: 26px;
  font-size: 14px;
  background: var(--bg-alt);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

/* Dark mode tuning */
body[data-theme="dark"] .qr-modal {
  background: #020617;
  border-color: #1f2937;
}

body[data-theme="dark"] .qr-modal-img {
  background: #ffffff;
}

body[data-theme="dark"] .qr-modal-close {
  background: #020617;
  border-color: #1f2937;
  color: #e5e7eb;
}

.qr-modal-actions {
  margin-top: 10px;
  text-align: right;
}

.qr-modal-email-link {
  font-size: 12px;
  color: var(--accent);
  text-decoration: none;
}

.qr-modal-email-link:hover {
  text-decoration: underline;
}

.link-button {
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  color: var(--accent);
  cursor: pointer;
  text-decoration: underline;
}

.contact-secondary {
  font-size: 13px;
}

/* ===========================
   HOVER ELEVATION FOR CARDS
=========================== */
.hero-panel,
.about-card,
.skill-card,
.card {
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.hero-panel:hover,
.about-card:hover,
.skill-card:hover,
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
  border-color: rgba(240, 73, 34, 0.25);
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 960px) {
  .hero-inner,
  .about-grid,
  .contact-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-panel {
    order: -1;
  }

  .skills-grid,
  .card-grid,
  .articles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .nav-inner {
    padding-inline: 14px;
  }

  .nav-links {
    display: none;
  }

  .hero-title {
    font-size: 26px;
  }

  section {
    padding: 56px 0;
  }

  .skills-grid,
  .card-grid,
  .articles-grid {
    grid-template-columns: minmax(0, 1fr);
  }

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

/* Unified surface for contact pills + testimonial card */
.contact-pill,
.testimonial-card {
  background: rgba(255, 247, 243, 0.9);              /* same warm tone */
  border-radius: 14px;
  border: 1px solid rgba(237, 220, 213, 0.9);
  box-shadow: none;                                   /* remove inner card shadow */
  padding: 12px 14px;                                 /* align spacing */
}

/* Dark mode alignment */
body[data-theme="dark"] .contact-pill,
body[data-theme="dark"] .testimonial-card {
  background: #020617;
  border-color: #1f2937;
  box-shadow: none;
}

/* ===========================
   COOKIE BANNER – GDPR STYLE
=========================== */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 200;

  /* base visuals */
  background: #ffffff;
  border-radius: 12px;
  padding: 10px 14px;
  border: 1px solid rgba(240, 73, 34, 0.28);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.16);

  max-width: 340px;
  font-size: 13px;

  /* layout */
  display: flex;
  align-items: stretch;

  /* animation state */
  opacity: 0;
  transform: translateY(26px);
  pointer-events: none;
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

.cookie-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cookie-banner.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Soft fade on idle – still visible & clickable */
.cookie-banner.idle {
  opacity: 0.6;
  transform: translateY(10px);
}

/* If user hovers, restore full attention */
.cookie-banner.show:hover {
  opacity: 1;
  transform: translateY(0);
}

.cookie-message {
  line-height: 1.4;
  color: var(--text);
}

.cookie-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.cookie-link {
  font-size: 12px;
  text-decoration: underline;
  color: var(--text-soft);
}

.cookie-link:hover {
  color: var(--accent);
}

.cookie-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

/* Primary: Allow analytics */
.cookie-btn {
  background: var(--accent);
  color: #ffffff;
  padding: 7px 14px;
  font-size: 12px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  font-weight: 500;
  transition:
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.cookie-btn:hover {
  background: #d3421e;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(240, 73, 34, 0.3);
}

/* Secondary: Essentials only */
.cookie-btn-secondary {
  background: transparent;
  color: var(--text-soft);
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  cursor: pointer;
  white-space: nowrap;
  font-weight: 500;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.cookie-btn-secondary:hover {
  background: #fff7f3;
  color: var(--accent);
  border-color: rgba(240, 73, 34, 0.4);
}

/* Dark mode buttons */
body[data-theme="dark"] .cookie-btn-secondary {
  background: transparent;
  color: #e5e7eb;
  border-color: #4b5563;
}

body[data-theme="dark"] .cookie-btn-secondary:hover {
  background: #020617;
  color: var(--accent);
  border-color: var(--accent);
}

body[data-theme="dark"] .cookie-btn {
  background: var(--accent);
  color: #020617;
}

body[data-theme="dark"] .cookie-btn:hover {
  color: #ffffff;
}


/* Dark mode */
body[data-theme="dark"] .cookie-banner {
  background: #020617;
  border-color: #1f2937;
  color: #e5e7eb;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
}

body[data-theme="dark"] .cookie-message {
  color: #e5e7eb;
}

body[data-theme="dark"] .cookie-link {
  color: #9ca3af;
}

body[data-theme="dark"] .cookie-link:hover {
  color: var(--accent);
}

body[data-theme="dark"] .cookie-btn {
  background: var(--accent);
  color: #020617;
}

body[data-theme="dark"] .cookie-btn:hover {
  color: #ffffff;
}

/* "Cookie settings" footer link */
.cookie-manage {
  border: none;
  padding: 0;
  background: none;
  font: inherit;
  font-size: 11px;
  color: var(--text-soft);
  text-decoration: underline;
  cursor: pointer;
}

.cookie-manage:hover {
  color: var(--accent);
}


/* ===========================
   THEME GUIDELINES SECTION
=========================== */
.theme-guidelines {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.tg-block {
  background: var(--bg-alt);
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 16px 18px;
  box-shadow: var(--shadow-soft);
}

.tg-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 4px;
}

.tg-title-sm {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 4px;
}

.tg-subtitle {
  font-size: 13px;
  color: var(--text-soft);
  margin: 0 0 10px;
}

.tg-note {
  font-size: 12px;
  color: var(--text-soft);
  margin-top: 10px;
}


.tg-ramp {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tg-swatch {
  width: 52px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  font-size: 11px;
  color: #ffffff;
  font-weight: 500;
}


.tg-neutral-100 { background: #020617; }
.tg-neutral-90  { background: #111827; }
.tg-neutral-80  { background: #1f2937; }
.tg-neutral-70  { background: #374151; }
.tg-neutral-60  { background: #4b5563; }
.tg-neutral-50  { background: #6b7280; }
.tg-neutral-40  { background: #9ca3af; color: #111827; }
.tg-neutral-30  { background: #d1d5db; color: #111827; }
.tg-neutral-20  { background: #e5e7eb; color: #111827; }
.tg-neutral-10  { background: #f3f4f6; color: #111827; }
.tg-neutral-0   { background: #ffffff; color: #111827; }


.tg-brand-80 { background: #b33219; }
.tg-brand-70 { background: #d3421e; }
.tg-brand-60 { background: #f04922; }
.tg-brand-50 { background: #ff5e30; }
.tg-brand-40 { background: #ff7b54; }
.tg-brand-30 { background: #ff9c7b; color: #7a2c18; }
.tg-brand-20 { background: #ffbda4; color: #7a2c18; }
.tg-brand-10 { background: #ffede6; color: #7a2c18; }


.tg-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.tg-table th,
.tg-table td {
  padding: 6px 8px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.tg-table th {
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-soft);
}


.tg-list {
  margin: 6px 0 0;
  padding-left: 18px;
  font-size: 13px;
  color: var(--text-soft);
}

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


.tg-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 16px;
}
body[data-theme="dark"] .tg-block {
  background: #020617;
  border-color: #1f2937;
}


@media (max-width: 720px) {
  .tg-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}



.allow-select,
.allow-select * {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
}

.protected-img {
  pointer-events: none;
  -webkit-user-drag: none;
}


.watermarked {
  position: relative;
  overflow: hidden;
}

.watermarked::before {
  content: "© Rajesh Tamilarasar · UI/UX";
  position: absolute;
  inset: -40px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.06);
  transform: rotate(-30deg);
  pointer-events: none;
}

@media print {
  body::before {
    content: "© Rajesh Tamilarasar · Portfolio – Not for redistribution";
    display: block;
    text-align: center;
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 600;
  }

 
  body {
    opacity: 0.65;
  }
}

