/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 400;
  src: local('Lato Italic'), local('Lato-Italic'), url(https://fonts.gstatic.com/s/lato/v15/S6u8w4BMUTPHjxsAUi-qNiXg7eU0.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 400;
  src: local('Lato Italic'), local('Lato-Italic'), url(https://fonts.gstatic.com/s/lato/v15/S6u8w4BMUTPHjxsAXC-qNiXg7Q.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 700;
  src: local('Lato Bold Italic'), local('Lato-BoldItalic'), url(https://fonts.gstatic.com/s/lato/v15/S6u_w4BMUTPHjxsI5wq_FQftx9897sxZ.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 700;
  src: local('Lato Bold Italic'), local('Lato-BoldItalic'), url(https://fonts.gstatic.com/s/lato/v15/S6u_w4BMUTPHjxsI5wq_Gwftx9897g.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  src: local('Lato Regular'), local('Lato-Regular'), url(https://fonts.gstatic.com/s/lato/v15/S6uyw4BMUTPHjxAwXiWtFCfQ7A.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  src: local('Lato Regular'), local('Lato-Regular'), url(https://fonts.gstatic.com/s/lato/v15/S6uyw4BMUTPHjx4wXiWtFCc.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  src: local('Lato Bold'), local('Lato-Bold'), url(https://fonts.gstatic.com/s/lato/v15/S6u9w4BMUTPHh6UVSwaPGQ3q5d0N7w.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  src: local('Lato Bold'), local('Lato-Bold'), url(https://fonts.gstatic.com/s/lato/v15/S6u9w4BMUTPHh6UVSwiPGQ3q5d0.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

a {
  color: #1772d0;
  text-decoration: none;
}

a:focus,
a:hover {
  color: #f09228;
  text-decoration: none;
}

body,
td,
th,
tr,
p,
a {
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 14px;
}

strong {
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 14px;
}

h2 {
  margin: 0;
  font-weight: normal;
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 22px;
}

.papertitle {
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.name {
  padding-top: 8px;
  margin: 0;
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 32px;
}

.one {
  width: 300px;
  height: 300px;
  position: relative;
}

.two {
  width: 300px;
  height: 300px;
  position: absolute;
  transition: opacity .2s ease-in-out;
  -moz-transition: opacity .2s ease-in-out;
  -webkit-transition: opacity .2s ease-in-out;
}

.fade {
  transition: opacity .2s ease-in-out;
  -moz-transition: opacity .2s ease-in-out;
  -webkit-transition: opacity .2s ease-in-out;
}

span.highlight {
  background-color: #ffffd0;
}

.colored-box {
    color: black;
    padding: 20px;
    display: inline-block;
    border-radius: 10px;
}

/* CSS Variables */
:root {
  --bg-color: #fafafa;
  --text-color: #333;
  --nav-bg: rgba(255, 255, 255, 0.95);
  --nav-hover: #f0f0f0;
  --border-color: #e0e0e0;
  --link-color: #0066cc;
  --highlight-bg: #ffffd0;
  --table-bg: #ffffff;
  --nav-height: 90px;
  --bg-accent-1: rgba(20, 86, 200, 0.6);
  --bg-accent-2: rgba(255, 136, 0, 0.44);
  --bg-accent-3: rgba(41, 180, 164, 0.4);
  --bg-accent-4: rgba(140, 60, 220, 0.38);
  --network-node-color: rgba(16, 72, 180, 0.85);
  --network-line-color: rgba(16, 72, 180, 0.4);
  --network-glow-color: rgba(255, 255, 255, 0.45);
}

[data-theme="dark"] {
  --bg-color: #1a1a1a;
  --text-color: #ffffff;
  --nav-bg: rgba(26, 26, 26, 0.95);
  --nav-hover: #404040;
  --border-color: #404040;
  --link-color: #66b3ff;
  --highlight-bg: #2d2d2d;
  --table-bg: #2d2d2d;
  --bg-accent-1: rgba(102, 179, 255, 0.4);
  --bg-accent-2: rgba(255, 150, 70, 0.28);
  --bg-accent-3: rgba(76, 208, 197, 0.32);
  --bg-accent-4: rgba(180, 120, 255, 0.36);
  --network-node-color: rgba(140, 200, 255, 0.9);
  --network-line-color: rgba(120, 190, 255, 0.45);
  --network-glow-color: rgba(120, 210, 255, 0.55);
}

/* Base Styles */
html {
  scroll-behavior: smooth;
  position: relative;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background-color 0.3s ease, color 0.3s ease;
  line-height: 1.2;
  margin: 0;
  padding: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: 
    radial-gradient(circle at 12% 18%, var(--bg-accent-1) 0%, transparent 55%),
    radial-gradient(circle at 88% 15%, var(--bg-accent-2) 0%, transparent 62%),
    radial-gradient(circle at 45% 82%, var(--bg-accent-3) 0%, transparent 60%),
    radial-gradient(circle at 80% 75%, var(--bg-accent-4) 0%, transparent 70%),
    linear-gradient(120deg, rgba(23, 114, 208, 0.2) 12%, rgba(255, 255, 255, 0) 38%, rgba(240, 146, 40, 0.26) 68%, rgba(255, 255, 255, 0) 92%);
  opacity: 1;
  filter: blur(0px) saturate(115%);
  z-index: -5;
  animation: backgroundPulse 18s ease-in-out infinite alternate, backgroundDrift 22s ease-in-out infinite alternate;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.18) 0%, transparent 60%),
    radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.12) 0%, transparent 55%);
  mix-blend-mode: screen;
  opacity: 0.32;
  z-index: -3;
  animation: backgroundDrift 28s ease-in-out infinite alternate, auroraShift 38s linear infinite;
}

[data-theme="dark"] body::after {
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.12) 0%, transparent 60%),
    radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.08) 0%, transparent 55%);
  mix-blend-mode: soft-light;
  opacity: 0.28;
}

.network-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  width: 100vw;
  height: 100vh;
  z-index: -4;
  opacity: 0.7;
}

p {
  margin-bottom: 6px;
}

p:last-child {
  margin-bottom: 0;
}

@keyframes backgroundPulse {
  0% {
    transform: scale(1);
    filter: blur(0px);
  }
  100% {
    transform: scale(1.05);
    filter: blur(2px);
  }
}

@keyframes backgroundDrift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.25;
  }
  100% {
    transform: translate3d(-2%, -1.5%, 0) scale(1.05);
    opacity: 0.36;
  }
}

@keyframes auroraShift {
  0% {
    filter: hue-rotate(0deg);
  }
  50% {
    filter: hue-rotate(20deg);
  }
  100% {
    filter: hue-rotate(-10deg);
  }
}

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

@keyframes heroBackdrop {
  0% {
    transform: translate3d(0, -2%, 0) scale(1);
    opacity: 0.8;
  }
  100% {
    transform: translate3d(0, 2%, 0) scale(1.03);
    opacity: 1;
  }
}

@keyframes heroScroll {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
  100% {
    transform: translateY(0);
  }
}

/* Navigation Bar Styles */
.nav-container {
  position: sticky;
  top: 0;
  background-color: var(--nav-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  padding: 14px 0;
  margin-bottom: 25px;
}

.navbar {
  max-width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  column-gap: clamp(14px, 3.2vw, 24px);
  row-gap: 10px;
}

.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-height));
  padding: 120px 32px 96px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  margin-bottom: 60px;
  scroll-margin-top: 110px;
}

.hero-layout {
  width: min(1080px, calc(100% - 64px));
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(26px, 5vw, 48px);
  align-items: center;
  justify-items: stretch;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(23, 114, 208, 0.28) 0%, transparent 55%),
    radial-gradient(circle at 80% 20%, rgba(240, 146, 40, 0.22) 0%, transparent 60%),
    radial-gradient(circle at 50% 80%, rgba(76, 208, 197, 0.18) 0%, transparent 58%),
    linear-gradient(135deg, rgba(23, 114, 208, 0.08) 0%, rgba(255, 255, 255, 0) 55%, rgba(240, 146, 40, 0.12) 100%);
  opacity: 0.9;
  z-index: -1;
  animation: heroBackdrop 18s ease-in-out infinite alternate;
}

.hero-content {
  max-width: 680px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(18px, 3vw, 26px);
  text-align: center;
  opacity: 0;
  transform: translateY(32px);
  animation: heroFadeUp 0.9s ease-out 0.2s forwards;
}

.hero-photo {
  display: flex;
  justify-content: center;
  margin: 0 auto;
}

.hero-photo img {
  width: clamp(160px, 22vw, 220px);
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 18px 42px rgba(20, 52, 105, 0.22);
}

.hero-eyebrow {
  font-size: clamp(18px, 2.2vw, 22px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--link-color);
  margin: 0;
}

.hero-title {
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-weight: 700;
  font-size: clamp(34px, 5.2vw, 50px);
  margin: 0;
  max-width: 620px;
  line-height: 1.1;
}

.hero-title-secondary {
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-weight: 600;
  font-size: clamp(26px, 3.8vw, 34px);
  letter-spacing: 0.02em;
  margin: -4px 0 2px;
  opacity: 0.88;
}

.hero-tagline {
  font-size: clamp(17px, 2.1vw, 20px);
  max-width: 540px;
  margin: 0;
  opacity: 0.95;
  line-height: 1.55;
}

.hero-subtagline {
  font-size: clamp(16px, 2vw, 19px);
  max-width: 560px;
  margin: 0;
  opacity: 0.85;
  line-height: 1.6;
}

.hero-quote {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 620px;
  padding: 18px 22px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 24px 48px rgba(17, 28, 45, 0.16);
  align-items: center;
  text-align: center;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.04em;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.hero-btn-primary {
  background-color: var(--link-color);
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(23, 114, 208, 0.25);
}

.hero-btn-primary:hover,
.hero-btn-primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(23, 114, 208, 0.3);
}

.hero-btn-secondary {
  background: rgba(23, 114, 208, 0.12);
  border: 1px solid rgba(23, 114, 208, 0.45);
  color: var(--link-color);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px rgba(23, 114, 208, 0.18);
}

.hero-btn-secondary:hover,
.hero-btn-secondary:focus-visible {
  transform: translateY(-2px);
  background-color: rgba(23, 114, 208, 0.22);
  box-shadow: 0 18px 40px rgba(23, 114, 208, 0.24);
}

.hero-scroll-mouse {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  text-decoration: none;
  color: var(--text-color);
  opacity: 0.85;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.mouse-icon {
  width: 34px;
  height: 50px;
  border: 2px solid rgba(23, 114, 208, 0.5);
  border-radius: 18px;
  display: inline-flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 10px;
  box-shadow: 0 14px 30px rgba(23, 114, 208, 0.14);
  background-color: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(12px);
}

.mouse-wheel {
  display: block;
  width: 5px;
  height: 12px;
  border-radius: 999px;
  background-color: rgba(23, 114, 208, 0.9);
  animation: heroScroll 2s ease-in-out infinite;
}

.hero-scroll-text {
  font-size: 13px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.hero-media {
  max-width: clamp(260px, 34vw, 380px);
  width: 100%;
  margin: 0 auto;
  justify-self: center;
  opacity: 0;
  transform: translateY(32px);
  animation: heroFadeUp 0.9s ease-out 0.35s forwards;
}

.hero-media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 26px;
  object-fit: cover;
  object-position: center top;
  box-shadow: 0 22px 44px rgba(17, 28, 45, 0.22);
}

.hero-scroll-mouse:hover,
.hero-scroll-mouse:focus-visible {
  opacity: 1;
  transform: translateY(4px);
}

[data-theme="dark"] .hero::before {
  background:
    radial-gradient(circle at 18% 32%, rgba(140, 200, 255, 0.24) 0%, transparent 55%),
    radial-gradient(circle at 76% 18%, rgba(255, 180, 90, 0.2) 0%, transparent 60%),
    radial-gradient(circle at 50% 82%, rgba(120, 210, 255, 0.16) 0%, transparent 60%),
    linear-gradient(135deg, rgba(120, 210, 255, 0.15) 0%, rgba(26, 26, 26, 0) 55%, rgba(255, 180, 90, 0.18) 100%);
  opacity: 0.75;
}

[data-theme="dark"] .hero-btn-secondary {
  background: rgba(23, 114, 208, 0.3);
  border-color: rgba(140, 210, 255, 0.6);
  color: #ffffff;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .hero-quote {
  background: rgba(18, 22, 32, 0.82);
  box-shadow: 0 26px 54px rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] .hero-btn-secondary:hover,
[data-theme="dark"] .hero-btn-secondary:focus-visible {
  background: rgba(23, 114, 208, 0.4);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .hero-scroll-mouse {
  color: #ffffff;
}

[data-theme="dark"] .mouse-icon {
  border-color: rgba(120, 210, 255, 0.55);
  background-color: rgba(26, 26, 26, 0.78);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .mouse-wheel {
  background-color: rgba(120, 210, 255, 0.95);
}

.hero-btn-primary:focus-visible,
.hero-btn-secondary:focus-visible,
.hero-scroll-mouse:focus-visible {
  outline: 2px solid rgba(23, 114, 208, 0.5);
  outline-offset: 4px;
}

@media (min-width: 900px) {
  .hero-layout {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.85fr);
    column-gap: clamp(42px, 5vw, 72px);
    align-items: center;
    justify-items: stretch;
  }

  .hero-content {
    align-items: flex-start;
    text-align: left;
    gap: clamp(20px, 2.2vw, 28px);
  }

  .hero-cta {
    justify-content: flex-start;
  }

  .hero-scroll-mouse {
    align-self: center;
  }

  .hero-media {
    justify-self: center;
    margin-top: -20px;
  }

  .hero-quote {
    align-items: flex-start;
    text-align: left;
  }
}

@media (max-width: 900px) {
  .hero {
    min-height: calc(100vh - 110px);
    padding: 110px 28px 84px;
  }

  .hero-layout {
    width: min(100%, calc(100% - 36px));
  }

  .hero-content {
    max-width: 640px;
  }

  .hero-tagline {
    font-size: 19px;
  }

  .hero-media {
    max-width: min(360px, 100%);
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 100px 22px 74px;
    margin-bottom: 44px;
  }

  .hero-layout {
    gap: 28px;
  }

  .hero-cta {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .hero-btn {
    width: 100%;
    max-width: 260px;
  }

  .hero-subtagline {
    text-align: center;
  }

  .hero-media {
    max-width: min(320px, 100%);
  }

  .hero-scroll-mouse {
    gap: 10px;
  }

  .mouse-icon {
    width: 30px;
    height: 46px;
  }

  .mouse-wheel {
    height: 11px;
  }

  .hero-scroll-text {
    font-size: 12px;
    letter-spacing: 0.24em;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 96px 18px 68px;
  }

  .hero-layout {
    gap: 24px;
  }

  .hero-title {
    font-size: clamp(32px, 9vw, 48px);
  }

  .hero-eyebrow {
    font-size: 14px;
    letter-spacing: 0.18em;
  }

  .hero-scroll-mouse {
    gap: 8px;
  }

  .mouse-icon {
    width: 28px;
    height: 42px;
    padding-top: 8px;
  }

  .hero-media {
    max-width: min(280px, 100%);
  }

  .mouse-wheel {
    height: 10px;
  }

  .hero-scroll-text {
    font-size: 11px;
    letter-spacing: 0.2em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .hero-content,
  .hero-media,
  .mouse-wheel {
    animation: none !important;
  }

  .hero-btn {
    transition: none !important;
  }

  .hero-content {
    opacity: 1 !important;
    transform: none !important;
  }

  .hero-media {
    opacity: 1 !important;
    transform: none !important;
  }
}

.nav-link {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  font-size: 13.5px;
  padding: 6px 10px;
  border-radius: 6px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

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

.nav-link.active {
  background-color: var(--text-color);
  color: var(--bg-color);
}

.theme-toggle,
.network-toggle {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-color);
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 15px;
  transition: all 0.3s ease;
  margin-left: 10px;
  opacity: 0.85;
  backdrop-filter: blur(10px);
  white-space: nowrap;
}

[data-theme="dark"] .network-toggle,
[data-theme="dark"] .theme-toggle {
  border-color: rgba(255, 255, 255, 0.35);
}

@media (max-width: 960px) {
  .navbar {
    max-width: calc(100% - 32px);
    column-gap: clamp(12px, 3vw, 18px);
  }
}

@media (max-width: 720px) {
  .theme-toggle,
  .network-toggle {
    margin-left: 6px;
  }
}

.theme-toggle:hover,
.network-toggle:hover {
  background-color: var(--nav-hover);
  border-color: var(--text-color);
  opacity: 1;
  transform: scale(1.05);
}

.network-toggle[aria-pressed="false"] {
  opacity: 0.6;
}

/* Timeline Styles */
.timeline-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 8px 0;
}

.timeline-item {
  position: relative;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
}

.timeline-marker {
  position: relative;
  flex-shrink: 0;
  width: 40px;
  margin-right: 16px;
  margin-top: 8px;
}

.timeline-dot {
  width: 16px;
  height: 16px;
  background-color: var(--link-color);
  border-radius: 50%;
  border: 3px solid var(--bg-color);
  box-shadow: 0 0 0 3px var(--link-color);
  z-index: 2;
  position: relative;
}

.timeline-line {
  position: absolute;
  left: 7px;
  top: 16px;
  width: 2px;
  height: 60px;
  background: linear-gradient(to bottom, var(--link-color), transparent);
  opacity: 0.4;
}

.timeline-item:last-child .timeline-line {
  display: none;
}

.timeline-year {
  position: absolute;
  left: 25px;
  top: -5px;
  background-color: var(--link-color);
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.timeline-content {
  flex: 1;
  background-color: var(--table-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.timeline-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--link-color), #66b3ff);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.timeline-content:hover {
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  transform: translateY(-3px);
  border-color: var(--link-color);
}

.timeline-content:hover::before {
  opacity: 1;
}

.timeline-header {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  gap: 16px;
}

.company-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  background-color: white;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  flex-shrink: 0;
}

.timeline-title h3 {
  margin: 0 0 8px 0;
  color: var(--text-color);
  font-size: 18px;
  font-weight: 600;
}

.timeline-subtitle {
  margin: 0 0 8px 0;
  color: var(--text-color);
  opacity: 0.8;
  font-size: 14px;
  font-style: italic;
}

.timeline-role {
  margin: 0 0 4px 0;
  color: var(--link-color);
  font-weight: 500;
  font-size: 16px;
}

.timeline-duration {
  margin: 0;
  color: var(--text-color);
  opacity: 0.7;
  font-size: 14px;
}

.timeline-body {
  color: var(--text-color);
  line-height: 1.6;
}

/* Compact Experience Styles */
.experience-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.experience-time {
  color: var(--text-color);
  opacity: 0.7;
  font-weight: 400;
  font-size: 14px;
  font-style: italic;
}

.experience-subtitle {
  color: var(--text-color);
  opacity: 0.7;
  font-size: 13px;
  font-style: italic;
  margin: 4px 0 8px 0;
}

.experience-toggle {
  margin: 8px 0;
}

.experience-toggle a {
  color: var(--link-color);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.experience-toggle a:hover {
  background-color: var(--link-color);
  color: white;
}

.experience-details {
  margin-top: 12px;
  padding: 12px;
  background-color: var(--bg-color);
  border-radius: 8px;
  border-left: 3px solid var(--link-color);
  font-size: 14px;
  line-height: 1.5;
}

/* Card Styles */
.cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
  padding: 8px 0;
}

.experience-card {
  background-color: var(--table-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.experience-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--link-color), #66b3ff);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.experience-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  border-color: var(--link-color);
}

.experience-card:hover::before {
  opacity: 1;
}

.card-header {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  gap: 12px;
}

.card-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
  background-color: white;
  padding: 6px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  flex-shrink: 0;
}

.card-title h3 {
  margin: 0 0 6px 0;
  color: var(--text-color);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}

.card-subtitle {
  margin: 0 0 6px 0;
  color: var(--text-color);
  opacity: 0.8;
  font-size: 13px;
  font-style: italic;
}

.card-role {
  margin: 0 0 3px 0;
  color: var(--link-color);
  font-weight: 500;
  font-size: 14px;
}

.card-duration {
  margin: 0;
  color: var(--text-color);
  opacity: 0.7;
  font-size: 12px;
}

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

/* Slideshow Styles */
.slideshow-container {
  position: relative;
  width: 100%;
}

.slideshow {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.slide.active {
  display: block;
}

.slide:nth-child(4) {
  object-fit: contain;
  transform: scale(0.8);
}

.slideshow-dots {
  text-align: center;
  margin-top: 8px;
}

.dot {
  height: 6px;
  width: 6px;
  margin: 0 3px;
  background-color: #ddd;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  transition: background-color 0.3s ease;
  opacity: 0.6;
}

.dot.active, .dot:hover {
  background-color: #999;
  opacity: 1;
}

/* Profile Picture Styles - Simplified to match original */

/* About Section Layout */
.about-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 0;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0;
}

.about-text {
  flex: 1;
  min-width: 0;
}

/* Profile picture now uses inline styles like original */

/* Responsive Design */
@media (max-width: 768px) {
  .about-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* Global reset for images */
img {
  max-width: none !important;
  max-height: none !important;
  transform: none !important;
}

/* Page Layout Helpers */
.page-wrapper {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

.page-header {
  text-align: center;
  margin-bottom: 40px;
}

.page-header h1 {
  margin-bottom: 12px;
  font-size: 36px;
  font-weight: 600;
}

.page-header p {
  font-size: 16px;
  opacity: 0.8;
}

.breadcrumb {
  display: inline-flex;
  gap: 8px;
  font-size: 13px;
  opacity: 0.7;
  margin-bottom: 12px;
}

.breadcrumb a {
  color: var(--link-color);
}

.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--link-color);
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.cta-link:hover {
  transform: translateY(-2px);
  opacity: 0.8;
}

.more-projects-cta {
  margin-top: 32px;
  text-align: center;
}

/* Project Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.featured-project-row,
.featured-project-row td {
  cursor: pointer;
}

.featured-project-row {
  background-color: transparent !important;
}

.featured-project-row td {
  position: relative;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 22px 48px rgba(20, 52, 105, 0.16);
  backdrop-filter: blur(14px) saturate(120%);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.featured-project-row:hover td {
  transform: translateY(-6px);
  box-shadow: 0 28px 56px rgba(17, 45, 96, 0.2);
  border-color: rgba(23, 114, 208, 0.25);
}

.featured-project-row td:first-child {
  border-radius: 20px 14px 14px 20px;
}

.featured-project-row td:last-child {
  border-radius: 14px 20px 20px 14px;
}

[data-theme="dark"] .featured-project-row td {
  background: rgba(22, 26, 36, 0.86);
  border: 1px solid rgba(102, 179, 255, 0.18);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.55);
}

[data-theme="dark"] .featured-project-row:hover td {
  border-color: rgba(102, 179, 255, 0.35);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.6);
}

.featured-project-row:focus,
.featured-project-row:focus-visible {
  outline: 2px solid var(--link-color);
  outline-offset: -2px;
}

.section-panel {
  position: relative;
  margin: 26px auto 52px;
  padding: 36px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 24px 62px rgba(18, 44, 92, 0.18);
  backdrop-filter: blur(18px) saturate(140%);
  --panel-gradient: linear-gradient(140deg, rgba(23, 114, 208, 0.22) 0%, rgba(240, 146, 40, 0.14) 40%, rgba(255, 255, 255, 0) 100%);
  overflow: hidden;
  scroll-margin-top: 110px;
}

.section-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--panel-gradient);
  opacity: 0.95;
  z-index: 0;
}

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

.section-panel table {
  width: 100%;
  border: 0;
  border-spacing: 0;
  background: transparent;
}

.section-panel h2 {
  font-weight: 600;
  letter-spacing: 0.01em;
}

[data-theme="dark"] .section-panel {
  background: rgba(20, 24, 34, 0.85);
  border: 1px solid rgba(102, 179, 255, 0.25);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
  --panel-gradient: linear-gradient(145deg, rgba(102, 179, 255, 0.22) 0%, rgba(140, 120, 255, 0.2) 45%, rgba(0, 0, 0, 0) 100%);
}

.panel-about {
  --panel-gradient: linear-gradient(135deg, rgba(23, 114, 208, 0.26) 0%, rgba(255, 136, 0, 0.18) 50%, rgba(96, 191, 183, 0.14) 100%);
}

.panel-experience {
  --panel-gradient: linear-gradient(135deg, rgba(23, 114, 208, 0.22) 0%, rgba(140, 60, 220, 0.18) 45%, rgba(41, 180, 164, 0.14) 100%);
}

.panel-teaching {
  --panel-gradient: linear-gradient(140deg, rgba(255, 136, 0, 0.2) 0%, rgba(190, 120, 255, 0.16) 55%, rgba(23, 114, 208, 0.18) 100%);
}

.panel-featured {
  --panel-gradient: linear-gradient(135deg, rgba(16, 72, 180, 0.22) 0%, rgba(96, 191, 183, 0.18) 45%, rgba(255, 136, 0, 0.16) 95%);
}

.experience-logo {
  background-color: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(23, 114, 208, 0.1);
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

[data-theme="dark"] .experience-logo {
  background-color: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] .panel-featured {
  --panel-gradient: linear-gradient(135deg, rgba(102, 179, 255, 0.28) 0%, rgba(76, 208, 197, 0.26) 45%, rgba(255, 170, 100, 0.22) 95%);
}

[data-theme="dark"] .panel-about {
  --panel-gradient: linear-gradient(140deg, rgba(102, 179, 255, 0.28) 0%, rgba(255, 160, 100, 0.18) 50%, rgba(76, 208, 197, 0.2) 100%);
}

[data-theme="dark"] .panel-experience {
  --panel-gradient: linear-gradient(145deg, rgba(102, 179, 255, 0.28) 0%, rgba(180, 120, 255, 0.24) 50%, rgba(76, 208, 197, 0.22) 100%);
}

[data-theme="dark"] .panel-teaching {
  --panel-gradient: linear-gradient(140deg, rgba(255, 170, 100, 0.24) 0%, rgba(180, 140, 255, 0.24) 60%, rgba(102, 179, 255, 0.24) 100%);
}

.project-card {
  background-color: var(--table-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(23, 114, 208, 0.3);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.project-card:focus-visible {
  outline: 2px solid var(--link-color);
  outline-offset: 4px;
}

.project-card img,
.project-card video {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.project-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.project-heading {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-color);
  margin: 0;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  opacity: 0.7;
}

.project-description {
  font-size: 14px;
  opacity: 0.85;
  line-height: 1.5;
  margin: 0;
}

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

.tag-chip {
  padding: 6px 10px;
  background-color: rgba(23, 114, 208, 0.08);
  color: var(--link-color);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.project-links {
  margin-top: auto;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid rgba(23, 114, 208, 0.25);
  color: var(--link-color);
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.button-link:hover {
  background-color: rgba(23, 114, 208, 0.1);
  border-color: rgba(23, 114, 208, 0.5);
}

/* Project Detail */
.detail-hero {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
  opacity: 0.7;
}

.two-column {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.info-card {
  background-color: var(--table-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-card h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.info-card ul {
  padding-left: 18px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-card li {
  line-height: 1.5;
}

.content-section {
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

.section-text {
  line-height: 1.6;
  opacity: 0.9;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.chip {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 999px;
  background-color: rgba(23, 114, 208, 0.08);
  color: var(--link-color);
  font-weight: 600;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
  padding: 10px 16px;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  font-weight: 600;
  color: var(--text-color);
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.back-button:hover {
  transform: translateX(-4px);
  border-color: rgba(23, 114, 208, 0.4);
  background-color: rgba(23, 114, 208, 0.08);
}

.media-frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background-color: var(--table-bg);
}

.media-frame video,
.media-frame img,
.media-frame iframe {
  width: 100%;
  height: 100%;
  display: block;
}

.media-slideshow {
  position: relative;
  width: 100%;
  height: 100%;
}

.media-slide {
  display: none;
  width: 100%;
  height: 100%;
}

.media-slide.active {
  display: block;
}

.media-slide img,
.media-slide video,
.media-slide iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.4);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease;
  z-index: 2;
}

.media-nav:hover,
.media-nav:focus {
  background-color: rgba(0, 0, 0, 0.6);
}

.media-nav.prev {
  left: 12px;
}

.media-nav.next {
  right: 12px;
}

.media-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.media-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  padding: 0;
}

.media-dot.active {
  background-color: rgba(255, 255, 255, 0.95);
}

.media-slideshow .media-nav:focus,
.media-slideshow .media-dot:focus {
  outline: 2px solid var(--link-color);
  outline-offset: 2px;
}

.media-slideshow.control-hidden .media-nav,
.media-slideshow.control-hidden .media-dots {
  display: none;
}

.card-slideshow {
  height: 180px;
}

.card-slideshow .media-slide {
  height: 100%;
}

.card-slideshow img,
.card-slideshow video {
  object-fit: cover;
}

.inline-slideshow {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.inline-slideshow .media-slide {
  height: 100%;
}

.meta-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  opacity: 0.8;
}

.meta-list strong {
  display: block;
  margin-bottom: 4px;
}

.supporting-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.supporting-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(23, 114, 208, 0.25);
  color: var(--link-color);
  font-weight: 600;
  font-size: 13px;
}

.supporting-links a:hover {
  border-color: rgba(23, 114, 208, 0.5);
  background-color: rgba(23, 114, 208, 0.1);
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background-color: var(--table-bg);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
  border-color: rgba(23, 114, 208, 0.3);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.65) 100%);
  color: #ffffff;
  font-size: 13px;
}

/* Responsive overrides for new layouts */
@media (max-width: 768px) {
  .page-header h1 {
    font-size: 28px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .two-column {
    grid-template-columns: 1fr;
  }
}
