:root {
  --bg: #000;
  --text: #e6edf3;
  --text-muted: #9b9da7;
  --accent: #73bf50;
  --muted: #161b22;
  
  --light-bg: #ffffff;
  --light-text: #333333;
  --light-text-strong: #1c1e1c;
  --light-signal: #2d3a1a;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Work Sans', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  transition: background-color 0.8s ease, color 0.8s ease, opacity 1s ease-in-out;
  scroll-behavior: smooth;
}

body {
  opacity: 0;
}

body.loaded {
  opacity: 1;
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease-out;
}

.loading-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top: 3px solid var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

* {
  box-sizing: border-box;
}

.left-pane, .right-pane, .main-wrapper, .hide-right, .split-layout, .full-bg, #visualization-container, #main-canvas-bg {
  display: none !important;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding-top: 0.7rem;
  height: 60px;
  box-sizing: border-box;
  background: var(--bg);
}

.nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 200;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  position: relative;
}

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

.nav-link.active {
  color: var(--text);
  font-weight: 700;
}

.nav-link[data-section="home"] {
  color: var(--text);
}

.nav-link:not(.active) {
  color: var(--text-muted);
}

.section {
  width: 100vw;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.section.scroll-in {
  opacity: 1;
  transform: translateY(0);
}

.section:nth-child(1) { transition-delay: 0s; }
.section:nth-child(2) { transition-delay: 0.05s; }
.section:nth-child(3) { transition-delay: 0.1s; }
.section:nth-child(4) { transition-delay: 0.15s; }
.section:nth-child(5) { transition-delay: 0.2s; }

.home-section {
  background: var(--bg);
  text-align: left;
  opacity: 1;
  transform: translateY(0);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  padding: 10rem 4rem 0 4rem;
}

.home-section .profile-container,
.home-section .social-links {
  opacity: 1;
  transition: opacity 1s ease-in-out;
}

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

.home-divider {
  width: 95%;
  height: 1px;
  background: var(--text-muted);
  border: none;
  margin: 6rem auto;
  opacity: 0.1;
}

.home-bottom {
  width: 100%;
  padding-top: 2rem;
}

.about-section {
  background: var(--light-bg);
  overflow: hidden;
}
#about-canvas-bg {
  position: absolute;
  top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: 0;
}
.about-content {
  position: relative;
  z-index: 1;
  text-align: left;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 8rem;
}

strong, strong > a, strong > a:visited {
  color: #d0cccc;
}

.about-section strong, .about-section strong > a, .about-section strong > a:visited {
  color: var(--light-text-strong);
}

.experience-content strong, .experience-content strong > a, .experience-content strong > a:visited {
  color: #000000;
}

.about-content p {
  font-size: 2rem;
  line-height: 1.6;
  color: var(--light-text);
  margin: 0;
  font-weight: 400;
  text-align: justify;
}

.intro-section, .projects-section, .experience-section {
  flex-direction: row;
  align-items: stretch;
}

.intro-section {
  flex-direction: row-reverse;
}

.intro-content, .projects-content, .experience-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 2rem;
  z-index: 1;
}

.intro-content {
  flex: 0.7;
  padding: 4rem;
}

.intro-content p {
  text-align: right;
  color: var(--text-muted);
  font-size: 1.2rem;
  line-height: 1.6;
}

#intro-canvas {
  flex: 0.3;
}
.experience-content {
  flex: 0.5;
  align-items: flex-start;
  padding-left: 6rem;
  background: var(--light-bg);
  color: var(--light-text-strong);
  height: 100%;
  width: 100%;
}
#intro-canvas, .projects-extra, .experience-extra {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

#intro-canvas {
  position: relative;
}

.canvas-controls {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 10;
}

.season-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.season-btn {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.8);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.season-btn.active {
  background: white;
}

.season-btn:hover {
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.05);
}

.season-btn img {
  width: 24px;
  height: 24px;
}

.angle-control {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.angle-label {
  color: white;
  font-size: 0.9rem;
  font-weight: 500;
}

.angle-slider {
  width: 120px;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  outline: none;
  -webkit-appearance: none;
}

.angle-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  cursor: pointer;
}

.angle-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  border: none;
  cursor: pointer;
}

.scroll-down-arrow {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 2.5vh;
  z-index: 10;
  width: 64px;
  height: 64px;
  background: none;
  border: none;
  box-shadow: none;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  cursor: pointer;
  transition: opacity 0.2s;
  padding: 0;
}

.scroll-down-arrow.bounce {
  animation: bounce 2s infinite;
}
.scroll-down-arrow:hover {
  opacity: 1;
}
.scroll-down-arrow svg {
  display: block;
  width: 32px;
  height: 32px;
}

.scroll-down-arrow svg.size-24 {
  width: 24px;
  height: 24px;
}

.left-section, .right-pane, .main-wrapper {
  display: none !important;
}

.footer {
  background: #E7E7E2;
  padding: 3rem 4rem 2rem 4rem;
  margin-top: 0;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: repeating-linear-gradient(
    to right,
    #ddd 0,
    #ddd 4px,
    transparent 4px,
    transparent 8px
  );
}

.footer-content {
  display: flex;
  justify-content: space-between;
  max-width: 800px;
  margin: 0;
}

.footer-section {
  flex: 1;
}

.footer-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #333;
  margin: 0 0 1rem 0;
}

.footer-separator {
  height: 1px;
  background: #999;
  margin-bottom: 1.5rem;
  width: 80%;
}

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

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: #666;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #333;
}

.footer-bottom {
  margin-top: 3rem;
  text-align: right;
}

.cv-download {
  display: inline-flex;
  align-items: center;
  gap: 3rem;
}

.cv-text-link {
  color: #666;
  text-decoration: none;
  font-size: 1.1rem;
}

.github-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.github-logo {
  width: 36px;
  height: 36px;
}

.profile-container {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 3rem;
  margin-left: 3rem;
}

.profile-img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  object-position: center;
  border-radius: 20px;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.profile-text {
  text-align: left;
}

.first-name {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
  text-transform: uppercase;
}

.last-name {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  line-height: 1.2;
  text-transform: uppercase;
}

.title {
  font-size: 1.2rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 300;
  opacity: 0.8;
}

.social-links {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-start;
  position: absolute;
  bottom: 2rem;
  left: 2rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

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

.social-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.social-icon[alt="CV"] {
  transform: translateY(4px);
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 2.5rem;
  font-weight: 700;
  text-align: left;
  padding: 0 1rem;
}

.projects-content > .section-title {
  font-size: 2.6rem;
  padding: 0;
  padding-left: 3rem;
  font-weight: 400;
}

.experience-content > .section-title {
  font-size: 2.6rem;
  padding: 0;
  padding-left: 0;
  margin-left: -3rem;
  font-weight: 400;
  margin-bottom: 2.5rem;
  margin-top: 4rem;
  color: var(--light-text-strong);
}

.timeline {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-left: 1rem;
}

.timeline-entry h4 {
  margin: 0;
  font-size: 1.1rem;
  text-align: left;
  color: #000000;
}

.timeline-entry p {
  text-align: left;
  color: var(--light-text);
}

footer {
  text-align: left;
  font-size: 0.875rem;
  color: #8b949e;
  margin-top: 2rem;
}

.fade-in {
  opacity: 1 !important;
  transition: opacity 1.2s cubic-bezier(0.4,0,0.2,1);
}

.canvas-fade {
  opacity: 0 !important;
}

body.home-centered .section:first-child {
  justify-content: center !important;
  align-items: center !important;
}

.projects-section {
  flex-direction: row;
  align-items: stretch;
  background: var(--bg);
}
.projects-content {
  flex: 0.45;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 3rem 2rem 3rem 0;
  min-width: 320px;
  max-width: none;
}
.topic-list {
  display: flex;
  flex-direction: column;
  margin-top: 2.5rem;
  align-items: flex-start;
  width: 100%;
}
.topic-btn {
  background: none;
  color: var(--text-muted);
  border: none;
  padding: 1rem 3rem;
  font-size: 1.1rem;
  font-family: inherit;
  font-weight: 200;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
  position: relative;
  width: 100%;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
}
.topic-btn:hover, .topic-btn:focus {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}
.topic-btn.active {
  color: var(--text);
  font-weight: 500;
  background: rgba(255, 255, 255, 0.08);
}
.projects-extra {
  flex: 0.55;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 80vh;
  height: auto;
  width: 100%;
  padding: 2rem 0 1rem 0;
  background: none !important;
  box-shadow: none !important;
}


.topic-panel {
  background: none !important;
  box-shadow: none !important;
  color: var(--text);
  border-radius: 1.2rem;
  padding: 1.5rem 2.2rem 1.5rem 2.2rem;
  font-size: 1.1rem;
  font-family: 'Work Sans', 'Manrope', 'Segoe UI', 'Arial', sans-serif;
  min-width: 380px;
  max-width: 900px;
  min-height: 220px;
  max-height: none;
  margin: 0;
  overflow: visible;
  box-sizing: border-box;
  word-break: normal;
  white-space: normal;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.topic-btn::after {
  content: '';
  width: 24px;
  height: 24px;
  margin-left: auto;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 7 10 10'/%3E%3Cpath d='M17 7v10H7'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.topic-panel-control {
  padding-top: 7rem;
}

.topic-panel-signal {
  padding-top: 7rem;
}

.topic-panel-rl {
  padding-top: 7rem;
}

.topic-panel-cv {
  padding-top: 7rem;
}

.topic-panel-coding {
  padding-top: 7rem;
}
.topic-panel > * {
  max-width: 100%;
}
.topic-panel img, .topic-panel video {
  max-width: 95%;
  border-radius: 0.6rem;
  display: block;
}
.topic-panel h3 {
  text-align: left;
  font-size: 1.2rem;
  margin: 0.5rem 0;
  font-weight: 300;
  color: var(--text);
  text-transform: uppercase;
}
.topic-panel p, .topic-panel a {
  text-align: left;
  width: 100%;
  word-break: normal;
  white-space: normal;
  color: var(--text-muted);
}
.topic-panel .math-formula, .topic-panel .MathJax {
  width: 100%;
  display: block;
  text-align: center !important;
  margin: 1.2rem 0 2rem 0;
}
.topic-panel p {
  font-weight: 300;
}

.topic-panel strong {
  font-weight: 500;
}

.topic-panel-signal p:first-of-type {
  margin-bottom: 0;
}

.topic-panel-signal p:nth-of-type(2) {
  margin-top: 0;
  margin-bottom: 0;
}

.topic-content-extra {
  margin-top: 1.5rem;
  margin-bottom: 0;
}

.topic-content-extra a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.topic-content-extra a:hover {
  text-decoration: underline;
}

.media-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin: 1.2rem 0 0.5rem 0;
  align-items: start;
  width: 100%;
}
.media-gif, .media-gif-left {
  width: 100%;
  height: 200px;
  aspect-ratio: 3 / 2;
  border-radius: 0.6rem;
  display: block;
  margin: 0 auto;
}

.media-container {
  height: 200px;
  border-radius: 0.6rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-gif {
  width: 100%;
  height: 80%;
}

.media-gif-left {
  object-fit: cover;
}

.figure-stack { display: none !important; }
@media (max-width: 900px) {
  .projects-section {
    flex-direction: column;
    align-items: stretch;
  }
  .projects-content {
    align-items: center;
    padding: 2rem 1rem 1rem 1rem;
    max-width: 100vw;
  }
  .topic-list {
    align-items: center;
    flex-direction: row;
    gap: 0.7rem;
    margin-top: 1.2rem;
    flex-wrap: wrap;
  }
  .projects-extra {
    padding: 1rem 0 2rem 0;
    justify-content: center;
    background: var(--bg);
  }
  .topic-panel {
    min-width: 0;
    max-width: 98vw;
    padding: 1.2rem 0.5rem;
    margin: 0 auto;
    max-height: none;
    font-size: 0.95rem;
  }
  .topic-panel img, .topic-panel video {
    max-width: 98vw;
  }
  .media-grid {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }
  .media-gif, .media-video {
    height: 180px;
  }
}

@media (max-width: 768px) {
  .section {
    width: 100%;
    height: 100vh;
  }

  .home-section, .about-section, .intro-section, .projects-section, .experience-section {
    width: 100%;
    height: 100vh;
  }

  .about-content {
    width: 100%;
  }

  .intro-content, .projects-content, .experience-content {
    padding: 1rem;
  }

  .canvas-controls {
    flex-direction: row;
    bottom: 0.5rem;
    right: 0.5rem;
  }

  h1 {
    font-size: 2rem;
    text-align: center;
  }

  .section-title {
    font-size: 1.5rem;
    text-align: center;
  }

  .timeline {
    padding-left: 0;
  }

  .timeline-entry h4,
  .timeline-entry p {
    text-align: center;
  }

  .links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
  }

  .links a {
    margin: 0.25rem 0.5rem;
  }
} 

.signal-media-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1.2rem;
  margin: 1.2rem 0 0.5rem 0;
  align-items: center;
  width: 100%;
}
.signal-media-container {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border-radius: 0.6rem;
  overflow: hidden;
}
.signal-media-grid .signal-media-container:nth-child(1) {
  grid-column: 1 / span 3;
  grid-row: 1 / 2;
}
.signal-media-grid .signal-media-container:nth-child(2) {
  grid-column: 1 / 2;
  grid-row: 2 / 3;
}
.signal-media-grid .signal-media-container:nth-child(3) {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
}
.signal-media-grid .signal-media-container:nth-child(4) {
  grid-column: 3 / 4;
  grid-row: 2 / 3;
}
.signal-media-container img {
  max-width: 95%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0.6rem;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
  display: block;
  margin: 0;
  padding: 0;
}
@media (max-width: 900px) {
  .signal-media-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, 1fr);
    gap: 0.7rem;
  }
  .signal-media-container {
    height: 120px;
  }
  .signal-media-grid .signal-media-container:nth-child(1),
  .signal-media-grid .signal-media-container:nth-child(2),
  .signal-media-grid .signal-media-container:nth-child(3),
  .signal-media-grid .signal-media-container:nth-child(4) {
    grid-column: 1 / 2;
    grid-row: auto;
  }
} 

.signal-gif-container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 170px;
}
.signal-gif {
  width: 100%;
  max-width: 420px;
  height: 150px;
  object-fit: contain;
  border-radius: 1.2rem;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
  display: block;
}
.signal-figures-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.2rem;
  margin-top: 1.5rem;
  width: 100%;
  justify-content: center;
}

.signal-figure {
  max-width: 100% !important;
  width: 100%;
  height: 160px;
  border-radius: 1.2rem;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
  display: block;
  margin: 0;
  padding: 0;
}
@media (max-width: 900px) {
  .signal-gif-container {
    height: 140px;
    margin: 1.5rem 0;
  }
  .signal-gif {
    height: 140px;
    max-width: 98vw;
  }
  .signal-figures-row {
    grid-template-columns: 1fr;
    gap: 0.7rem;
    align-items: center;
    margin-top: 1.5rem;
  }
  .signal-figure {
    width: 100%;
    height: 140px;
  }
} 

/* === Reinforcement Learning Section Styles === */
.rl-panel {
  color: var(--text);
  padding: 0;
  font-family: 'Manrope', 'Segoe UI', 'Arial', sans-serif;
  max-width: 100%;
  margin: 0;
  box-sizing: border-box;
}

.rl-description {
  max-width: 100%;
  text-align: left;
  font-size: 0.98rem;
  margin-bottom: 2rem;
  font-family: inherit;
}

.rl-media-grid {
  display: grid;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
  width: 100%;
}

.rl-media-grid-top {
  grid-template-columns: 1fr 1fr;
}

.rl-media-container {
  background: #0f1117;
  border-radius: 0.6rem 0;
  padding: 0.8rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.rl-media-img {
  max-width: 100% !important;
  height: auto;
  border-radius: 0.6rem;
  display: block;
  object-fit: contain;
}

.rl-report-link {
  max-width: 100%;
  margin-top: 2rem;
  font-size: 0.98rem;
  line-height: 1.6;
  text-align: left;
}

.rl-report-link a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

  .rl-report-link a:hover {
    text-decoration: underline;
  }

  /* === Computer Vision Section Styles === */
  .vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.2rem;
    margin-top: 2rem;
    width: 100%;
  }

  .vision-img-container {
    background: var(--bg);
    border-radius: 0.6rem 0;
    padding: 0.8rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  .vision-img {
    max-width: 100% !important;
    height: auto;
    border-radius: 0.6rem;
    display: block;
    object-fit: contain;
  }

  @media (max-width: 900px) {
    .vision-grid {
      grid-template-columns: 1fr;
      gap: 1.2rem;
    }
  }

  /* === Software Section Styles === */
  #coding-canvas {
    width: 100%;
    height: 400px;
    margin-top: 2rem;
    border-radius: 0.6rem;
    overflow: hidden;
  }

  .carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
  }

  .carousel-arrow {
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .carousel-arrow:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
  }

  .carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
  }
  
  .carousel-arrow {
    background: none;
    border: none;
    padding: 0.5rem;
    color: white;
    cursor: pointer;
    transition: opacity 0.2s ease;
  }
  
  .carousel-arrow:hover {
    opacity: 0.7;
  }
  
  .carousel-dots {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
  }
  
  .carousel-dot {
    position: relative;
    z-index: 1;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 0.1px solid rgba(255,255,255,0.8);
    background: transparent;
    transition: border-color 0.3s;
    cursor: pointer;
    padding: 0;
  }
  
  .carousel-indicator {
    position: absolute;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
    z-index: 0;
    transition: left 0.25s cubic-bezier(0.4,0,0.2,1), width 0.25s cubic-bezier(0.4,0,0.2,1), border-radius 0.18s cubic-bezier(0.4,0,0.2,1);
    pointer-events: none;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.8);
  }
  .carousel-indicator.stretching {
    border-radius: 4px;
  }
  
  .carousel-dot.active {
     background-color: white;  
  }

  @media (max-width: 900px) {
  .rl-media-grid-top {
    grid-template-columns: 1fr;
  }
}

.timeline {
  position: relative;
  margin-left: 40px;
  padding-left: 20px;
  border-left: 2px solid transparent;
}

.timeline-entry {
  position: relative;
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.timeline-entry.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-entry:hover {
  border-color: rgba(0, 0, 0, 0.3) !important;
  transition: border-color 0.3s ease !important;
  cursor: pointer;
}

.timeline-entry:hover {
  cursor: pointer;
}

.timeline-entry:hover {
  transform: scale(1.02);
  transition: transform 0.3s ease;
}

.timeline-entry:hover ~ .timeline-entry {
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.timeline:hover .timeline-entry:not(:hover) {
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.timeline-entry:hover .timeline-icon {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
  transition: box-shadow 0.3s ease;
}

.timeline-entry:hover .timeline-content h4 {
  color: var(--accent);
  transition: color 0.3s ease;
}

.timeline-icon {
  position: absolute;
  left: -45.5px;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  overflow: hidden;
  box-shadow: 0 1px 4px 0 rgba(0,0,0,0.07);
}

.timeline-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  display: block;
}

.timeline-connector::before {
  content: "";
  position: absolute;
  left: -27px;
  top: 28px;
  width: 25px;
  height: 35px;
  border-left: 2px solid #acacac;
  border-bottom: 2px solid #acacac;
  border-radius: 0 0 0 20px;
}

.timeline-content {
  padding-left: 12px;
  max-width: 600px;
}

.timeline-content h4 {
  padding: 10px 0;
  margin: 0;
  font-weight: bold;
}

.timeline-content h4.company-with-subs {
  padding-bottom: 0;
}

.timeline-sub {
  font-size: 0.8rem;
  margin: 2px 0 0 0;
  color: #aaa;
}

.verified {
  color: #2ecc71;
}

.timeline-role {
  font-weight: 700;
  line-height: 1.2;
  margin: 10px 0 2px 0;
}

.timeline-sub-entries {
  margin-top: 20px;
  position: relative;
}

.timeline-sub-entry {
  position: relative;
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
  min-height: 40px;
}

.timeline-sub-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  overflow: hidden;
  box-shadow: 0 1px 4px 0 rgba(0,0,0,0.07);
}

.timeline-sub-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  display: block;
}

.timeline-sub-content {
  padding-left: 15px;
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
}

.timeline-sub-content h5 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
  color: var(--light-text-strong);
}

.timeline-sub-content .timeline-sub-role {
  font-size: 0.8rem;
  font-weight: 500;
  margin: 0;
  line-height: 1.2;
  color: var(--light-text);
}

.timeline-sub-content {
  padding-left: 15px;
  display: grid;
  grid-template-columns: 24px 1fr;
  grid-template-rows: auto auto;
  gap: 6px 10px;
  align-items: center;
}

.timeline-sub-icon {
  grid-column: 1;
  grid-row: 1;
}

.timeline-sub-content h5 {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
}

.timeline-sub-role {
  grid-column: 1 / -1;
  grid-row: 2;
  margin: 0;
  font-size: 0.875rem;
  color: #aaa;
}

.timeline-sub-entry:has(.timeline-sub-content:not(:has(.timeline-sub-icon))) .timeline-sub-content {
  grid-template-columns: 1fr;
  padding-left: 0;
}

.timeline-sub-entry:has(.timeline-sub-content:not(:has(.timeline-sub-icon))) .timeline-sub-content h5 {
  grid-column: 1;
  grid-row: 1;
}

.timeline-sub-entry:has(.timeline-sub-content:not(:has(.timeline-sub-icon))) .timeline-sub-role {
  grid-column: 1;
  grid-row: 2;
}

.timeline-sub-entry.position-subsection .timeline-sub-content {
  grid-template-columns: 1fr;
  padding-left: 0;
}

.timeline-sub-entry.position-subsection .timeline-sub-content h5 {
  grid-column: 1;
  grid-row: 1;
}

.timeline-sub-entry.position-subsection .timeline-sub-content .timeline-sub-role {
  grid-column: 1;
  grid-row: 2;
}

.timeline-sub-entries.with-group-connector {
  position: relative;
  padding-left: 6px;
}

.timeline-entry.with-subentries .timeline-connector.long-subentry-line:before {
  height: 55%;
  width: 0;
  bottom: 0;
}

.timeline-group-connector {
  position: absolute;
  top: 28px;
  height: calc(100% - 28px);
  left: 0;
  border-left: 2px solid #acacac;
}

.timeline-group-connector::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 14px;
  height: 28px;
  border-left: 2px solid #acacac;
  border-bottom: 2px solid #acacac;
  border-radius: 0 0 0 14px;
  background: transparent;
}

.timeline-group-connector-container {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -18px;
  width: 20px;
  pointer-events: none;
}

.timeline-sub-branch {
  position: absolute;
  width: 27px;
  height: 28px;
  border-left: 2px solid #acacac;
  border-bottom: 2px solid #acacac;
  border-radius: 0 0 0 14px;
  left: -39px;
  background: transparent;
}

.timeline-sub-entry .timeline-sub-branch {
  top: -15px;
}

.timeline-sub-entry:last-child {
  margin-bottom: 0;
}

.skills-section {
  padding: 70px 10px 20px 30px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.skills-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--text);
  text-align: center;
}

.skills-category {
  margin-bottom: 24px;
}

.category-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 4px;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: white;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.skill-logo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.skill-circle:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.skill-circle.highlighted {
  background: rgba(255, 255, 255, 0.95);
  border-color: #22c55e;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.3);
  transform: scale(1.1);
  opacity: 1;
}

.skills-section.has-highlighted .skill-circle:not(.highlighted) {
  opacity: 0.3;
  transform: scale(0.95);
}

.skills-section.has-highlighted .skill-circle.highlighted {
  opacity: 1;
  transform: scale(1.1);
}

.skill-circle::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
}

.skill-circle::after {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  border: 4px solid transparent;
  border-top-color: rgba(0, 0, 0, 0.9);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  pointer-events: none;
}

.skill-circle:hover::before {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-12px);
}

.skill-circle:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-8px);
}

.experience-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

.experience-content {
  grid-column: 1;
}

.experience-extra {
  grid-column: 2;
  position: sticky;
  top: 20px;
}

@media (max-width: 1200px) {
  .experience-section {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .experience-extra {
    grid-column: 1;
    position: static;
  }
  
  .skills-grid {
    justify-content: center;
  }
}

.ghost-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease-out, opacity 0.4s ease;
  opacity: 0;
}

.ghost-cursor-svg {
  width: min(4vw, 15px);
  height: auto;
  transform: rotate(-45deg);
  display: block;
}

.ghost-cursor svg {
  color: #000000;
}

@keyframes ghostCursorPulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
  }
}

.ghost-cursor.animate {
  animation: ghostCursorPulse 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-10px);
  }
}