:root {
  --bg: #0a0615;
  --bg-soft: #140c28;
  --surface: rgba(29, 17, 53, 0.7);
  --surface-border: rgba(255, 147, 43, 0.28);
  --text: #f8f1ff;
  --text-muted: #ccb6e6;
  --primary: #ff8c2f;
  --secondary: #8a5cff;
  --accent: #ffb357;
  --shadow: 0 22px 48px rgba(5, 1, 12, 0.55);
}

body[data-theme="light"] {
  --bg: #ffffff;
  --bg-soft: #ffffff;
  --surface: rgba(255, 255, 255, 0.95);
  --surface-border: rgba(143, 100, 255, 0.24);
  --text: #2c1d13;
  --text-muted: #725847;
  --primary: #c45a0b;
  --secondary: #8f64ff;
  --accent: #b65311;
  --shadow: 0 14px 30px rgba(77, 45, 132, 0.12);
}

body[data-theme="lecture"] {
  --bg: #676767;
  --bg-soft: #676767;
  --surface: rgba(255, 255, 255, 0.12);
  --surface-border: rgba(255, 255, 255, 0.34);
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.88);
  --primary: #ff9b3a;
  --secondary: #ffffff;
  --accent: #ffffff;
  --shadow: 0 14px 30px rgba(45, 45, 45, 0.22);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Manrope", sans-serif;
  background: radial-gradient(circle at 8% 8%, rgba(138, 92, 255, 0.34) 0%, transparent 33%),
    radial-gradient(circle at 86% 14%, rgba(255, 138, 37, 0.34) 0%, transparent 37%),
    radial-gradient(circle at 50% 115%, rgba(122, 44, 255, 0.28) 0%, transparent 46%), var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  transition: background 250ms ease, color 250ms ease;
  overflow-x: hidden;
}

body[data-theme="light"] {
  background:
    linear-gradient(rgba(143, 100, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(196, 90, 11, 0.07) 1px, transparent 1px),
    radial-gradient(circle at 8% 8%, rgba(169, 132, 255, 0.3) 0%, transparent 33%),
    radial-gradient(circle at 86% 14%, rgba(255, 153, 82, 0.3) 0%, transparent 37%),
    radial-gradient(circle at 50% 115%, rgba(194, 164, 255, 0.24) 0%, transparent 46%),
    linear-gradient(160deg, rgba(64, 39, 107, 0.05), rgba(136, 72, 23, 0.03)),
    #ffffff;
  background-size: 36px 36px, 36px 36px, auto, auto, auto, auto, auto;
}

body[data-theme="lecture"] {
  background: #676767;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
  z-index: -2;
}

body[data-theme="light"]::before {
  background-image: none;
}

body[data-theme="lecture"]::before {
  background-image: none;
}

body[data-theme="light"] .bg-glow-1 {
  background: #ffc18a;
  opacity: 0;
}

body[data-theme="light"] .bg-glow-2 {
  background: #ff9f4a;
  opacity: 0;
}

body[data-theme="lecture"] .bg-glow {
  display: none;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.bg-glow {
  position: fixed;
  border-radius: 999px;
  filter: blur(70px);
  pointer-events: none;
  z-index: -1;
  opacity: 0.42;
}

.bg-glow-1 {
  width: 340px;
  height: 340px;
  top: 6%;
  right: -80px;
  background: #8d52ff;
  animation: drift 9s ease-in-out infinite;
}

.bg-glow-2 {
  width: 300px;
  height: 300px;
  bottom: 6%;
  left: -90px;
  background: #ff922b;
  animation: drift 11s ease-in-out infinite reverse;
}

@keyframes drift {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-16px);
  }
}

.hero {
  min-height: 64vh;
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 2rem;
  align-items: center;
  padding: 1.2rem 0 2rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
  font-size: 0.74rem;
  color: var(--accent);
}

.hero h2 {
  font-family: "Syne", sans-serif;
  font-size: clamp(2rem, 5.2vw, 4rem);
  margin: 0.6rem 0 1rem;
  line-height: 1.05;
}

.hero-text {
  color: var(--text-muted);
  max-width: 65ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.hero-cta-mobile {
  display: none;
  margin-top: 0.35rem;
}

.btn {
  border-radius: 999px;
  padding: 0.7rem 1.1rem;
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(125deg, #ff9e3d 0%, #ff7b1f 48%, #9a6dff 100%);
  color: #fff7ef;
  border: 1px solid rgba(255, 255, 255, 0.28);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
  box-shadow: 0 10px 25px rgba(255, 138, 40, 0.35);
}

.btn-secondary {
  border: 1px solid rgba(157, 109, 255, 0.44);
  color: var(--text);
  background: linear-gradient(125deg, rgba(157, 109, 255, 0.14), rgba(255, 145, 53, 0.08));
}

.hero-card {
  background: linear-gradient(160deg, rgba(48, 25, 88, 0.82), rgba(25, 14, 46, 0.82));
  border: 1px solid rgba(255, 146, 57, 0.3);
  border-radius: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

body[data-theme="light"] .hero-card {
  background: #ffffff;
  border-color: rgba(196, 90, 11, 0.36);
}

.hero-card img {
  display: block;
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 4;
  filter: saturate(1.08) contrast(1.05);
}

.hero-card-text {
  padding: 1rem 1.1rem 1.2rem;
}

.hero-card h2 {
  margin: 0;
  font-size: 1.05rem;
}

.hero-card p {
  margin: 0.35rem 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.floating {
  animation: float 5.5s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-12px);
  }
}

.section {
  padding: 4rem 0 1.25rem;
}

.section-head h2 {
  margin-top: 0.35rem;
  margin-bottom: 0;
  font-family: "Syne", sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

#projects .section-head {
  margin-bottom: 1.3rem;
}

.heirion-section {
  padding-top: 4.5rem;
}

.cweb-section {
  padding-top: 1.2rem;
}

.heirion-spotlight {
  padding: clamp(1.9rem, 3.8vw, 3rem);
  border: 2px solid rgba(255, 154, 68, 0.65);
  border-radius: 22px;
  background: linear-gradient(140deg, rgba(60, 30, 108, 0.96), rgba(18, 10, 34, 0.96));
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.4rem;
  align-items: center;
  box-shadow: 0 26px 56px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 179, 95, 0.3) inset;
  position: relative;
  overflow: hidden;
}

.heirion-spotlight::after {
  content: "";
  position: absolute;
  left: 0;
  top: 10%;
  bottom: 10%;
  width: 5px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffbe7a, #ff8a2a);
  opacity: 0.95;
}

.heirion-spotlight h2 {
  margin: 0.35rem 0 0.55rem;
  font-size: clamp(1.55rem, 3.5vw, 2.75rem);
  line-height: 1.08;
  font-family: "Syne", sans-serif;
}

.heirion-focus-text {
  max-width: 75ch;
  color: var(--text-muted);
  margin-bottom: 1.15rem;
}

.cweb-secondary-block {
  max-width: 860px;
  margin: 0 auto;
  border: 1px solid rgba(143, 100, 255, 0.2);
  border-left: 5px solid rgba(143, 100, 255, 0.45);
  border-radius: 16px;
  background: rgba(27, 17, 48, 0.78);
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.1rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.company-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 0;
}

.company-logo {
  width: 84px;
  height: 84px;
  border-radius: 16px;
  border: 0;
  background: transparent;
  padding: 0;
}

.company-content h2,
.company-content h3 {
  margin-top: 0;
}

.project-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 1rem;
  align-items: center;
}

.project-card-primary {
  padding: 1.45rem;
}

.project-card-primary .company-logo {
  width: 84px;
  height: 84px;
}

.project-card-secondary {
  max-width: 860px;
  margin-top: 1.35rem;
  margin-left: 0;
  margin-right: 0;
  padding: 1rem 1.1rem;
}

.project-card-secondary .company-logo {
  width: 62px;
  height: 62px;
  border-radius: 12px;
}

.project-card-secondary h3 {
  font-size: 1.08rem;
}

.project-card-secondary p {
  font-size: 0.96rem;
}

.cweb-secondary-block .company-logo {
  width: 60px;
  height: 60px;
  border-radius: 12px;
}

.cweb-secondary-block h3 {
  font-size: 1.1rem;
}

.cweb-secondary-block p {
  font-size: 0.96rem;
}

.grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.4rem;
}

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

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

.card {
  background: linear-gradient(160deg, rgba(33, 20, 60, 0.86), rgba(20, 12, 40, 0.84));
  border: 1px solid rgba(255, 142, 47, 0.24);
  border-radius: 18px;
  padding: 1.2rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 240ms ease, border-color 240ms ease;
}

body[data-theme="light"] .card {
  background: #ffffff;
  border-color: rgba(196, 90, 11, 0.34);
}

.card h3 {
  margin-top: 0;
  font-family: "Syne", sans-serif;
}

.training-title-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.25rem;
}

.training-title-row h3 {
  margin: 0;
}

.training-logo {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: #ffc58e;
}

.training-icon-svg {
  width: 30px;
  height: 30px;
}

.secondary-project {
  opacity: 0.9;
  border-color: rgba(143, 100, 255, 0.18);
}

.secondary-project:hover {
  opacity: 1;
}

.card p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.card a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 20px;
  background: linear-gradient(125deg, rgba(255, 145, 53, 0.34), rgba(143, 100, 255, 0.34));
  opacity: 0;
  filter: blur(14px);
  transition: opacity 240ms ease;
  pointer-events: none;
  z-index: 0;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  border: 1px solid transparent;
  background: linear-gradient(130deg, rgba(255, 143, 49, 0.32), rgba(143, 100, 255, 0.34)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.72;
  transition: opacity 240ms ease;
  z-index: 0;
}

.card:hover {
  transform: translateY(-4px) scale(1.006);
  border-color: rgba(255, 162, 86, 0.42);
  box-shadow: 0 18px 34px rgba(11, 4, 28, 0.48), 0 10px 22px rgba(255, 121, 32, 0.11);
}

body[data-theme="light"] .card:hover {
  border-color: rgba(196, 90, 11, 0.44);
  box-shadow: 0 18px 34px rgba(92, 49, 18, 0.16), 0 8px 18px rgba(196, 90, 11, 0.14);
}

body[data-theme="light"] .training-logo {
  border-color: rgba(196, 90, 11, 0.28);
  background: #ffffff;
  color: #c45a0b;
}

body[data-theme="light"] .card::before {
  background: linear-gradient(125deg, rgba(210, 116, 35, 0.12), rgba(255, 173, 102, 0.12));
}

body[data-theme="light"] .card::after {
  background: linear-gradient(130deg, rgba(196, 90, 11, 0.42), rgba(226, 122, 42, 0.42)) border-box;
}

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

.card:hover::after {
  opacity: 0.94;
}

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

@media (hover: hover) and (pointer: fine) {
  .card:hover h3 {
    color: #ffd1a1;
    transition: color 240ms ease;
  }

  body[data-theme="light"] .card:hover h3 {
    color: #b65311;
  }
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.social-links a {
  background: linear-gradient(145deg, rgba(40, 22, 73, 0.7), rgba(21, 12, 43, 0.7));
  border: 1px solid rgba(159, 111, 255, 0.28);
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  transition: transform 180ms ease, border-color 180ms ease;
}

.social-logo {
  width: 18px;
  height: 18px;
  border-radius: 0;
  background: transparent;
}

.social-links a:hover {
  transform: translateY(-2px);
  border-color: #ff9d3a;
}

body[data-theme="light"] .social-links a {
  background: #ffffff;
  border-color: rgba(196, 90, 11, 0.34);
}

body[data-theme="light"] .social-links a:hover {
  border-color: rgba(196, 90, 11, 0.4);
}

.footer {
  padding: 2.4rem 0 6.8rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.floating-controls {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
  display: flex;
  align-items: flex-end;
  gap: 0.65rem;
}

.lang-control {
  position: relative;
}

.theme-control {
  position: relative;
}

.fab {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 1px solid var(--surface-border);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.fab:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: 0 12px 28px rgba(255, 137, 37, 0.3);
}

body[data-theme="light"] .btn-primary {
  background: linear-gradient(125deg, #e27a2a 0%, #c45a0b 100%);
  color: #ffffff;
  border-color: rgba(196, 90, 11, 0.45);
  box-shadow: 0 12px 24px rgba(196, 90, 11, 0.24);
}

body[data-theme="light"] .btn-secondary {
  border-color: rgba(196, 90, 11, 0.45);
  background: #ffffff;
}

body[data-theme="light"] .fab {
  background: #ffffff;
  border-color: rgba(196, 90, 11, 0.38);
}

body[data-theme="light"] .fab:hover {
  border-color: rgba(196, 90, 11, 0.42);
  box-shadow: 0 10px 22px rgba(196, 90, 11, 0.2);
}

body[data-theme="light"] .heirion-spotlight {
  background: #ffffff;
  border-color: rgba(196, 90, 11, 0.65);
  box-shadow: 0 20px 34px rgba(196, 90, 11, 0.14), 0 0 0 1px rgba(196, 90, 11, 0.16) inset;
}

body[data-theme="light"] .cweb-secondary-block {
  background: #ffffff;
  border-color: rgba(196, 90, 11, 0.24);
  opacity: 1;
  box-shadow: 0 10px 20px rgba(32, 20, 10, 0.06);
}

.lang-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.6rem);
  display: flex;
  flex-direction: column;
  gap: 0.48rem;
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.lang-menu.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.theme-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.6rem);
  display: flex;
  flex-direction: column;
  gap: 0.48rem;
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.theme-menu.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.fab-theme-option {
  font-size: 1.2rem;
  line-height: 1;
}

.fab-theme-option[data-active="true"] {
  border-color: var(--primary);
  box-shadow: 0 10px 22px rgba(255, 137, 37, 0.24);
}

.fab-theme-option[data-theme="dark"],
#themeToggle[data-theme-current="dark"] {
  color: #dfe3ea;
  font-size: 1.2rem;
}

.fab-flag {
  font-size: 1.32rem;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 650ms cubic-bezier(0.22, 1, 0.36, 1), transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

.reveal-item {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(6px);
  transition: opacity 1120ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 1120ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 1120ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal-item.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-item {
    transition: none !important;
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 980px) {
  .hero,
  .hero-content,
  .section,
  .section-head,
  .card,
  .company-content,
  .footer {
    text-align: center;
  }

  .hero-text,
  .heirion-focus-text {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-content .hero-cta {
    display: none;
  }

  .hero-cta-mobile {
    display: flex;
    justify-content: center;
  }

  .social-links {
    justify-content: center;
  }

  .company-logo-wrap {
    justify-content: center;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 2.5rem;
  }

  .hero-card {
    max-width:380px;
    margin: 0 auto;
  }

  .heirion-spotlight,
  .cweb-secondary-block,
  .project-card {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .heirion-spotlight::after {
    display: none;
  }

  .company-logo-wrap {
    justify-content: center;
    padding-top: 0;
  }

  .training-title-row {
    justify-content: center;
    flex-direction: column;
    gap: 0.45rem;
  }

  .company-logo {
    width: 64px;
    height: 64px;
    border-radius: 14px;
  }

  .project-card-primary .company-logo,
  .project-card-secondary .company-logo {
    width: 64px;
    height: 64px;
  }
}

@media (max-width: 720px) {
  .hero {
    padding-top: 2.5rem;
  }

  .hero-card {
    max-width:320px;
  }

  .cards-grid,
  .training-grid {
    grid-template-columns: 1fr;
  }

  .fab {
    width: 48px;
    height: 48px;
  }
}

/* Force a clean light theme: soft gradients + orange borders/buttons */
body[data-theme="light"] {
  background:
    linear-gradient(rgba(143, 100, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(196, 90, 11, 0.07) 1px, transparent 1px),
    radial-gradient(circle at 8% 8%, rgba(169, 132, 255, 0.3) 0%, transparent 33%),
    radial-gradient(circle at 86% 14%, rgba(255, 153, 82, 0.3) 0%, transparent 37%),
    radial-gradient(circle at 50% 115%, rgba(194, 164, 255, 0.24) 0%, transparent 46%),
    linear-gradient(160deg, rgba(64, 39, 107, 0.05), rgba(136, 72, 23, 0.03)),
    #ffffff !important;
  background-size: 36px 36px, 36px 36px, auto, auto, auto, auto, auto !important;
}

body[data-theme="light"]::before {
  display: none !important;
}

body[data-theme="light"] .bg-glow {
  display: block !important;
  opacity: 0.16 !important;
}

body[data-theme="light"] .bg-glow-1 {
  background: #8f64ff !important;
  opacity: 0.18 !important;
}

body[data-theme="light"] .bg-glow-2 {
  background: #ff9f4a !important;
  opacity: 0.16 !important;
}

body[data-theme="light"] .card,
body[data-theme="light"] .hero-card,
body[data-theme="light"] .social-links a,
body[data-theme="light"] .fab {
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.98), rgba(248, 242, 255, 0.96)) !important;
}

body[data-theme="light"] .card,
body[data-theme="light"] .hero-card,
body[data-theme="light"] .fab,
body[data-theme="light"] .btn-secondary {
  border-color: rgba(161, 106, 255, 0.55) !important;
}

body[data-theme="light"] .social-links a {
  border-color: rgba(196, 90, 11, 0.5) !important;
  color: #b65311 !important;
}

body[data-theme="light"] .social-links a:hover {
  border-color: #c45a0b !important;
  color: #c45a0b !important;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.98), rgba(255, 240, 226, 0.95)) !important;
}

body[data-theme="light"] h1,
body[data-theme="light"] h2,
body[data-theme="light"] h3 {
  color: #2b1a2e !important;
}

body[data-theme="light"] p,
body[data-theme="light"] li,
body[data-theme="light"] span {
  color: #5f4a3d !important;
}

body[data-theme="light"] a {
  color: #b65311 !important;
}

body[data-theme="light"] a:hover {
  color: #c45a0b !important;
}

body[data-theme="light"] .btn-primary {
  background: linear-gradient(125deg, #ff9e3d 0%, #e27a2a 52%, #c45a0b 100%) !important;
  border-color: rgba(196, 90, 11, 0.48) !important;
  color: #ffffff !important;
}

body[data-theme="light"] .btn-secondary {
  border-color: rgba(196, 90, 11, 0.48) !important;
  color: #b65311 !important;
}

body[data-theme="light"] .btn-secondary:hover {
  border-color: #c45a0b !important;
  color: #c45a0b !important;
}

body[data-theme="light"] .btn-primary,
body[data-theme="light"] .btn-secondary,
body[data-theme="light"] .social-links a {
  text-decoration: none;
}

body[data-theme="light"] p a,
body[data-theme="light"] li a {
  color: #b65311 !important;
}

body[data-theme="light"] p a:hover,
body[data-theme="light"] li a:hover {
  color: #c45a0b !important;
}

body[data-theme="light"] .btn-primary *,
body[data-theme="light"] .btn-secondary *,
body[data-theme="light"] .social-links a * {
  color: inherit !important;
}

body[data-theme="light"] .hero h2,
body[data-theme="light"] .section h2,
body[data-theme="light"] .hero-card h2 {
  color: #2b1a2e !important;
}

body[data-theme="light"] .hero-text,
body[data-theme="light"] .hero-card p,
body[data-theme="light"] .section p {
  color: #5f4a3d !important;
}

body[data-theme="light"] .eyebrow {
  color: #b65311 !important;
}

body[data-theme="light"] .btn-primary {
  box-shadow: 0 12px 24px rgba(196, 90, 11, 0.24) !important;
}

body[data-theme="light"] .btn-primary:hover {
  box-shadow: 0 14px 28px rgba(196, 90, 11, 0.3) !important;
}

body[data-theme="light"] .fab {
  color: #2b1a2e !important;
}

body[data-theme="light"] .fab:hover {
  border-color: rgba(196, 90, 11, 0.5) !important;
}

body[data-theme="light"] .card h3,
body[data-theme="light"] .heirion-spotlight h2 {
  color: #2b1a2e !important;
}

body[data-theme="light"] .card p,
body[data-theme="light"] .heirion-spotlight p,
body[data-theme="light"] .cweb-secondary-block p {
  color: #5f4a3d !important;
}

body[data-theme="light"] .section-head .eyebrow,
body[data-theme="light"] .hero .eyebrow {
  color: #b65311 !important;
}

body[data-theme="light"] .social-links a svg,
body[data-theme="light"] .social-links a img,
body[data-theme="light"] .btn-primary svg,
body[data-theme="light"] .btn-secondary svg {
  filter: none;
}

body[data-theme="light"] .project-card .company-name,
body[data-theme="light"] .project-card .training-title {
  color: #2b1a2e !important;
}

body[data-theme="light"] .project-card .project-meta,
body[data-theme="light"] .project-card .project-description {
  color: #5f4a3d !important;
}

body[data-theme="light"] .btn-secondary,
body[data-theme="light"] .social-links a {
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.98), rgba(255, 245, 236, 0.95)) !important;
}

body[data-theme="light"] p,
body[data-theme="light"] li,
body[data-theme="light"] span,
body[data-theme="light"] p,
body[data-theme="light"] .footer {
  color: #5f4a3d !important;
}

body[data-theme="light"] .heirion-spotlight {
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.98), rgba(249, 243, 255, 0.95)) !important;
  border-width: 2px !important;
  border-color: rgba(161, 106, 255, 0.58) !important;
  border-left: 6px solid rgba(196, 90, 11, 0.9) !important;
  border-radius: 22px !important;
  box-shadow: 0 18px 34px rgba(77, 45, 132, 0.16), 0 10px 22px rgba(196, 90, 11, 0.12) !important;
}

body[data-theme="light"] .cweb-secondary-block {
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.98), rgba(252, 246, 240, 0.96)) !important;
  border-width: 1px !important;
  border-color: rgba(161, 106, 255, 0.36) !important;
  border-left: 3px solid rgba(196, 90, 11, 0.55) !important;
  border-radius: 14px !important;
  box-shadow: 0 8px 18px rgba(40, 24, 68, 0.08), 0 4px 10px rgba(196, 90, 11, 0.06) !important;
}

/* Reader mode: neutral gray canvas, white text, desaturated white visuals */
body[data-theme="lecture"] {
  background: #676767 !important;
}

body[data-theme="lecture"]::before,
body[data-theme="lecture"] .bg-glow {
  display: none !important;
}

body[data-theme="lecture"] h1,
body[data-theme="lecture"] h2,
body[data-theme="lecture"] h3,
body[data-theme="lecture"] p,
body[data-theme="lecture"] li,
body[data-theme="lecture"] span,
body[data-theme="lecture"] a,
body[data-theme="lecture"] .footer,
body[data-theme="lecture"] .hero-text,
body[data-theme="lecture"] .eyebrow {
  color: #ffffff !important;
}

body[data-theme="lecture"] {
  font-size: 1.08rem;
}

body[data-theme="lecture"] p,
body[data-theme="lecture"] li,
body[data-theme="lecture"] .hero-text,
body[data-theme="lecture"] .footer {
  font-size: 1.2em !important;
  line-height: 1.8;
}

body[data-theme="lecture"] h2 {
  font-size: clamp(2.2rem, 5.6vw, 4.25rem) !important;
}

body[data-theme="lecture"] h3 {
  font-size: 1.16rem !important;
}

body[data-theme="lecture"] .card h3,
body[data-theme="lecture"] .project-card h3,
body[data-theme="lecture"] .training-grid .card h3 {
  font-size: 1.7rem !important;
  line-height: 1.32;
}

body[data-theme="lecture"] .btn {
  font-size: 1.03rem;
  padding: 0.78rem 1.2rem;
}

body[data-theme="lecture"] .btn-primary {
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.96) 0%, rgba(231, 231, 231, 0.9) 100%) !important;
  border-color: rgba(255, 255, 255, 0.42) !important;
  color: #4a4a4a !important;
  box-shadow: 0 12px 24px rgba(61, 61, 61, 0.22), 0 8px 20px rgba(255, 255, 255, 0.14) !important;
}

body[data-theme="lecture"] .btn-secondary,
body[data-theme="lecture"] .social-links a {
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.38) !important;
  background: rgba(255, 255, 255, 0.12) !important;
}

body[data-theme="lecture"] .card,
body[data-theme="lecture"] .hero-card,
body[data-theme="lecture"] .fab,
body[data-theme="lecture"] .heirion-spotlight,
body[data-theme="lecture"] .cweb-secondary-block {
  background: rgba(255, 255, 255, 0.11) !important;
  border-color: rgba(255, 255, 255, 0.32) !important;
  box-shadow: 0 10px 26px rgba(36, 36, 36, 0.2) !important;
}

body[data-theme="lecture"] .card::before,
body[data-theme="lecture"] .card::after {
  opacity: 0 !important;
}

body[data-theme="lecture"] img {
  filter: grayscale(1) brightness(0.72) contrast(0.95) !important;
}

body[data-theme="lecture"] .company-logo {
  filter: grayscale(1) saturate(0) brightness(0.66) contrast(1.05) !important;
}

body[data-theme="lecture"] .fab:hover,
body[data-theme="lecture"] .social-links a:hover {
  border-color: rgba(255, 255, 255, 0.52) !important;
}
