:root {
  --bg-color: #000011;
  --primary-color: #00f7ff;
  --text-color: #f0f0f0;
  --text-secondary-color: #c0c0c0;
  --glass-bg: rgba(16, 18, 27, 0.8);
  --glass-border: rgba(0, 247, 255, 0.2);
  --star-filled-color: #ffc700;
  --star-empty-color: #4b5563;
  --font-main: "Fira Code", monospace;
  --transition-speed: 0.3s;
  --btn-color-journey: #3a86ff;
  --btn-color-philosophy: #e34234;
  --btn-color-plans: #6c757d;
  --btn-color-inspirations: #8338ec;
  --btn-color-my-tech: #ffc700;
  --btn-color-beyond: #00bcd4;
  --btn-color-socials: #ff006e;
}

@keyframes pulse-text-gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes graph-draw { to { stroke-dashoffset: 0; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes pending-flow {
  to {
    stroke-dashoffset: -20;
  }
}

html { box-sizing: border-box; }
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-main);
  background-image: radial-gradient(circle at 50% 30vh, #080d1b 0%, var(--bg-color) 50%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  min-height: 50vh;
  overflow-x: hidden;
}
#tsparticles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}
#mouse-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  background: radial-gradient( circle, rgba(0, 247, 255, 0.08) 0%, rgba(0, 247, 255, 0) 60% );
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: -1;
  transition: opacity 0.4s ease;
  opacity: 0;
}
body:hover #mouse-glow { opacity: 1; }

.pulsating-link {
  background: linear-gradient(to left, #85ffc7, #79d4ff, #a279ff, #ff85a2);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: pulse-text-gradient 3s ease-in-out infinite;
}
.main-header {
  padding: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 20;
}
.main-nav {
  display: flex;
  position: relative;
}
.nav-link {
  color: var(--text-secondary-color);
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  transition: color 0.3s ease;
  cursor: pointer;
  white-space: nowrap;
}
.nav-link:hover { color: var(--text-color); }
.nav-link.active { color: var(--primary-color); }
.nav-underline {
  position: absolute;
  bottom: 0;
  height: 2px;
  background-color: var(--primary-color);
  border-radius: 2px;
}
.lang-switcher {
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  background-color: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  border-radius: 10px;
  padding: 0.25rem;
}
.lang-btn {
  background: none;
  border: none;
  color: var(--text-secondary-color);
  padding: 0.5rem 1rem;
  border-radius: 7px;
  cursor: pointer;
  transition: color 0.3s, background-color 0.3s;
}
.lang-btn.active {
  background-color: var(--primary-color);
  color: var(--bg-color);
}
.lang-btn:not(.active):hover { background-color: rgba(0, 247, 255, 0.1); }
.page-container {
  padding: 0 2rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.content-section {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  margin-bottom: 2rem;
  padding-top: 5rem;
}
#home.content-section {
  min-height: calc(100vh - 12rem);
  padding-top: 0;
  justify-content: center;
}
.content-section.active { display: flex; }

.content-wrapper {
  width: 100%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  padding: 2.5rem;
  position: relative;
  z-index: 1;
}
h2 {
  color: var(--primary-color);
  font-size: clamp(1.8rem, 4vw, 2.2rem);
  margin-bottom: 0.5rem;
  font-weight: 600;
  text-shadow: 0 0 8px var(--primary-color);
}
.page-subtitle {
  color: var(--text-secondary-color);
  margin-bottom: 2.5rem;
  max-width: 600px;
  font-size: clamp(1rem, 2.5vw, 1.1rem);
}
.home-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-width: 800px;
}
.profile-picture-wrapper {
  position: relative;
  margin-bottom: 1.5rem;
}
.profile-picture-wrapper::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
  opacity: 0;
  box-shadow: 0 0 40px 10px var(--primary-color);
  transition: opacity 1s ease;
}
.profile-picture-wrapper:hover::after { opacity: 1; }
.profile-picture {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid var(--primary-color);
  box-shadow: 0 0 20px var(--primary-color);
}
h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  text-shadow: 0 0 10px var(--primary-color);
}
.subtitle {
  color: var(--text-secondary-color);
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  min-height: 1.5em;
}
.subtitle .cursor {
  display: inline-block;
  background-color: var(--primary-color);
  width: 2px;
  height: 0.9em;
  margin-left: 2px;
  vertical-align: baseline;
  position: relative;
  top: 2px;
  animation: blink 1s step-end infinite;
}
.home-description {
  max-width: 500px;
  color: var(--text-secondary-color);
  line-height: 1.6;
}
.activity-graph {
  width: 100%;
  max-width: 400px;
  margin: 1.2rem 0;
}
.graph-path {
  stroke: var(--primary-color);
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  filter: drop-shadow(0 0 5px var(--primary-color));
}
.social-links-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.social-btn {
  color: var(--text-secondary-color);
  font-size: 1.5rem;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  transition: all 0.3s;
}
.social-btn:hover {
  transform: translateY(-5px);
  color: #fff;
  box-shadow: 0 0 20px -5px currentColor;
}
.social-btn.github:hover { background-color: #333; }
.social-btn.discord:hover { background-color: #5865f2; }
.social-btn.instagram:hover { background: radial-gradient( circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90% ); }
.social-btn.twitter:hover { background-color: #1da1f2; }
.social-btn.tiktok:hover {
  background-color: #000;
  box-shadow: 0 0 20px #ff0050, 0 0 20px #00f2ea;
}
.social-btn.spotify:hover { background-color: #1db954; }
.social-btn.reddit:hover { background-color: #ff4500; }
.social-btn.mail:hover { background-color: #c71610; }

.interactive-glow-card {
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  overflow: hidden;
}
.interactive-glow-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 247, 255, 0.15);
  border-color: rgba(0, 247, 255, 0.5);
}
.interactive-glow-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient( 300px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(0, 247, 255, 0.7), transparent 80% );
  opacity: 0;
  transition: opacity 0.3s;
  border-radius: inherit;
  z-index: 1;
}
.interactive-glow-card:hover::before { opacity: 1; }

.stack-item-content {
  position: relative;
  z-index: 2;
}
.switch-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  min-height: 200px;
  padding-top: 10px;
}
.projects-content-container {
  position: relative;
  width: 100%;
  overflow: visible;
  min-height: 200px;
}
.switch-content,
.about-content {
  display: none;
}
.switch-content.active,
.about-content.active {
  display: block;
}
.info-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 247, 255, 0.8);
  color: var(--bg-color);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 10;
}
.stack-item:hover .info-button {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}

.projects-layout-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
  text-align: left;
}
.projects-nav-horizontal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}
.projects-nav-btn {
  --filter-color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: none;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--text-secondary-color);
  font-family: var(--font-main);
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-speed) ease;
  text-align: left;
}
.projects-nav-btn i {
  font-size: 1.25rem;
  color: var(--filter-color);
  transition: var(--transition-speed) ease;
}
.projects-nav-btn:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-color);
  border-color: rgba(255, 255, 255, 0.2);
}
.projects-nav-btn.active {
  color: #fff;
  font-weight: 600;
  background-color: var(--filter-color);
  border-color: var(--filter-color);
  box-shadow: 0 0 15px var(--filter-color);
}
.projects-nav-btn.active i { color: #fff; }
.filter-btn-main { --filter-color: #ffc700; }
.filter-btn-hbtl { --filter-color: #e34234; }
.filter-btn-froz { --filter-color: #8338ec; }
.filter-btn-hsu { --filter-color: #300303; }
.filter-btn-scpsl { --filter-color: #e6810f; }
.filter-btn-web { --filter-color: #3a86ff; }
.filter-btn-game { --filter-color: #1db954; }
.filter-btn-scripts { --filter-color: #6c757d; }

.projects-grid {
  display: grid;
  gap: 1.5rem;
  width: 100%;
}
.projects-grid[data-layout="grid"] {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.project-card {
  background-color: rgba(13, 2, 33, 0.6);
  padding: 1.5rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}
.project-card.main-project { grid-column: span 2; }
.project-card-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.project-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.project-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--glass-border);
}
.project-card h4 {
  font-size: 1.4rem;
  color: var(--text-color);
}
.project-card .role {
  font-size: 0.9rem;
  color: var(--primary-color);
  font-weight: 600;
  display: block;
  margin-bottom: 0.75rem;
}
.project-card p {
  color: var(--text-secondary-color);
  line-height: 1.6;
  font-size: 0.95rem;
}
.project-status {
  position: absolute;
  top: -1.5rem;
  right: -1.5rem;
  background-color: var(--primary-color);
  color: var(--bg-color);
  padding: 0.25rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 0 10px 0 10px;
  z-index: 3;
}
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 1rem;
}
.tag, .tag-more {
  background-color: rgba(0, 247, 255, 0.1);
  color: var(--primary-color);
  padding: 0.25rem 0.6rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(0, 247, 255, 0.2);
}
.tag-more {
  background-color: rgba(120, 120, 120, 0.2);
  color: var(--text-secondary-color);
}
.project-card-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: auto;
  padding-top: 1rem;
  gap: 1rem;
}
.project-card-bottom-row .project-tags {
  padding-top: 0;
  margin-top: 0;
}
.project-card-footer {
  font-size: 0.8rem;
  color: var(--text-secondary-color);
  opacity: 0.7;
  text-align: left;
}
.star-rating {
  display: flex;
  font-size: 1rem;
  color: var(--star-filled-color);
}
.star-rating .star.empty { color: var(--star-empty-color); }
.star-rating-wrapper {
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
}
.star-tooltip {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  background-color: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 0.75rem;
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary-color);
  width: 250px;
  text-align: left;
  backdrop-filter: blur(10px);
  transform: translateY(10px);
  transition: all 0.3s ease;
  pointer-events: none;
}
.star-rating-wrapper:hover .star-tooltip {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.stack-switcher-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.switch-btn {
  background: rgba(13, 2, 33, 0.5);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary-color);
  padding: 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-speed) ease;
  font-family: var(--font-main);
  font-size: 1rem;
}
.switch-btn:hover {
  background-color: rgba(0, 247, 255, 0.1);
  color: var(--text-color);
}
.switch-btn.active {
  background-color: var(--primary-color);
  color: var(--bg-color);
  font-weight: 600;
  box-shadow: 0 0 15px var(--primary-color);
}
.stack-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.stack-item {
  background: rgba(13, 2, 33, 0.5);
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  position: relative;
}
.stack-item-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: filter 0.3s ease;
}
.stack-item:hover .stack-item-content { filter: blur(4px); }
.stack-item i { font-size: 2rem; }

.about-layout-container {
  display: flex;
  gap: 2.5rem;
  width: 100%;
  text-align: left;
}
.about-nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex-shrink: 0;
  width: 220px;
}
.about-nav-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: none;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--text-secondary-color);
  font-family: var(--font-main);
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-speed) ease;
  text-align: left;
}
.about-nav-btn i {
  font-size: 1.25rem;
  transition: var(--transition-speed) ease;
}
.about-nav-btn:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-color);
  border-color: rgba(255, 255, 255, 0.2);
}
.about-nav-btn.active {
  color: #fff;
  font-weight: 600;
}
.about-nav-btn.active i { color: #fff !important; }

.about-nav-btn.btn-journey:not(.active) i { color: var(--btn-color-journey); }
.about-nav-btn.btn-journey.active {
  background-color: var(--btn-color-journey);
  border-color: var(--btn-color-journey);
  box-shadow: 0 0 15px var(--btn-color-journey);
}
.about-nav-btn.btn-philosophy:not(.active) i { color: var(--btn-color-philosophy); }
.about-nav-btn.btn-philosophy.active {
  background-color: var(--btn-color-philosophy);
  border-color: var(--btn-color-philosophy);
  box-shadow: 0 0 15px var(--btn-color-philosophy);
}
.about-nav-btn.btn-roadmap:not(.active) i { color: var(--btn-color-plans); }
.about-nav-btn.btn-roadmap.active {
  background-color: var(--btn-color-plans);
  border-color: var(--btn-color-plans);
  box-shadow: 0 0 15px var(--btn-color-plans);
}
.about-nav-btn.btn-inspirations:not(.active) i { color: var(--btn-color-inspirations); }
.about-nav-btn.btn-inspirations.active {
  background-color: var(--btn-color-inspirations);
  border-color: var(--btn-color-inspirations);
  box-shadow: 0 0 15px var(--btn-color-inspirations);
}
.about-nav-btn.btn-my-tech:not(.active) i { color: var(--btn-color-my-tech); }
.about-nav-btn.btn-my-tech.active {
  background-color: var(--btn-color-my-tech);
  border-color: var(--btn-color-my-tech);
  box-shadow: 0 0 15px var(--btn-color-my-tech);
}
.about-nav-btn.btn-beyond:not(.active) i { color: var(--btn-color-beyond); }
.about-nav-btn.btn-beyond.active {
  background-color: var(--btn-color-beyond);
  border-color: var(--btn-color-beyond);
  box-shadow: 0 0 15px var(--btn-color-beyond);
}
.about-nav-btn.btn-socials:not(.active) i { color: var(--btn-color-socials); }
.about-nav-btn.btn-socials.active {
  background-color: var(--btn-color-socials);
  border-color: var(--btn-color-socials);
  box-shadow: 0 0 15px var(--btn-color-socials);
}

.about-content-container {
  flex-grow: 1;
  position: relative;
  overflow: visible;
  min-height: 250px;
}
.about-content { flex-direction: column; }
.about-content h3 {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 0.25rem;
}
.about-content-subtitle {
  font-size: 1rem;
  color: var(--text-secondary-color);
  margin-bottom: 1.5rem;
}
.about-main-content {
  background-color: rgba(13, 2, 33, 0.5);
  border-radius: 10px;
  padding: 1.5rem;
  color: var(--text-secondary-color);
  line-height: 1.7;
  position: relative;
}
.about-main-content p { font-size: 1rem; }

#animated-timeline-container,
#roadmap-svg-container {
    min-height: 300px;
    width: 100%;
}

.faq-accordion .faq-item { border-bottom: 1px solid var(--glass-border); }
.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 1.5rem 0;
  font-family: var(--font-main);
  font-size: 1.1rem;
  color: var(--text-color);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-question i {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
  color: var(--primary-color);
}
.faq-item.active .faq-question i {
    transform: rotate(45deg);
}
.faq-answer {
  height: 0;
  overflow: hidden;
}
.faq-answer p {
  padding-bottom: 1.5rem;
  color: var(--text-secondary-color);
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.modal-content {
  position: relative;
  padding: 2.5rem;
  max-width: 600px;
  width: 90%;
  background: var(--glass-bg);
  text-align: left;
}
.modal-close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--text-secondary-color);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.3s, transform 0.2s;
  z-index: 101;
}
.modal-close-btn:hover {
  color: var(--primary-color);
  transform: scale(1.1);
}
.modal-content > h3,
.modal-content > p,
.modal-content > .modal-details,
.modal-content > .modal-links,
#modal-history-container,
#modal-tags-container {
  position: relative;
  z-index: 2;
}
.modal-content h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}
.modal-content p {
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.modal-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.detail-item {
  background: rgba(13, 2, 33, 0.5);
  padding: 0.75rem;
  border-radius: 5px;
  border-left: 3px solid var(--primary-color);
}
.modal-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}
.modal-link-btn {
  flex-grow: 1;
  text-align: center;
  padding: 0.75rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-color);
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--glass-border);
  transition: var(--transition-speed);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.modal-link-btn:hover {
  background-color: var(--primary-color);
  color: var(--bg-color);
}
.modal-link-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.modal-link-btn.disabled:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-color);
}

#modal-tags-container {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--glass-border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
#modal-history-container { margin-top: 1.5rem; }
.history-item {
  position: relative;
  padding-left: 25px;
  margin-bottom: 1rem;
  color: var(--text-secondary-color);
  font-size: 0.95rem;
}
.history-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--primary-color);
  box-shadow: 0 0 8px var(--primary-color);
}
.history-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 18px;
  bottom: -1rem;
  width: 2px;
  background-color: rgba(0, 247, 255, 0.2);
}

#stack-modal .modal-details { grid-template-columns: repeat(3, 1fr); }

@keyframes pulse-glow {
    0% { filter: drop-shadow(0 0 2px var(--star-filled-color)); }
    50% { filter: drop-shadow(0 0 8px var(--star-filled-color)); }
    100% { filter: drop-shadow(0 0 2px var(--star-filled-color)); }
}

@keyframes pulse-glow-subtle {
    0% { filter: drop-shadow(0 0 3px var(--primary-color)); }
    50% { filter: drop-shadow(0 0 10px var(--primary-color)); }
    100% { filter: drop-shadow(0 0 3px var(--primary-color)); }
}

@keyframes current-flow-strong {
  to {
    stroke-dashoffset: -40;
  }
}

.timeline {
    position: relative;
    padding: 1rem 0;
}
.timeline-item {
    display: flex;
    gap: 1.5rem;
    position: relative;
    padding-left: 30px; 
    margin-bottom: 2rem;
}
.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 24px;
    width: 2px;
    height: calc(100% + 2rem - 24px);
    background-color: var(--glass-border);
    transform-origin: top;
    transform: scaleY(var(--line-scale, 0));
    transition: transform 0.8s ease;
}

.timeline-item:last-child::before {
    display: none;
}
.timeline-dot {
    position: absolute;
    left: 0;
    top: 15px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--primary-color);
    box-shadow: 0 0 8px var(--primary-color);
}
.timeline-content {
    flex: 1;
}
.timeline-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}
.timeline-header h4 {
    font-size: 1.2rem;
    color: var(--text-color);
    margin: 0;
}
.timeline-header .timeline-date {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
}
.timeline-content p {
    font-size: 0.95rem;
    color: var(--text-secondary-color);
}

#roadmap-tooltip {
  position: absolute;
  background-color: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-color);
  padding: 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  max-width: 280px;
  backdrop-filter: blur(10px);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  z-index: 1100;
  transform: translate(-50%, -100%) translateY(-25px); 
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

#roadmap-tooltip h4 {
  color: var(--primary-color);
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
}

#roadmap-tooltip p {
  color: var(--text-secondary-color);
  line-height: 1.6;
  margin: 0;
}

#roadmap-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 8px;
  border-style: solid;
  border-color: var(--glass-border) transparent transparent transparent;
}

#roadmap-tooltip::before {
  content: "";
  position: absolute;
  top: calc(100% - 1px);
  left: 50%;
  transform: translateX(-50%);
  border-width: 7px;
  border-style: solid;
  border-color: var(--glass-bg) transparent transparent transparent;
  z-index: 1;
}

.roadmap-path {
  fill: none;
  stroke-linecap: round;
  opacity: 0;
  visibility: hidden;
}

.roadmap-path-bg {
    stroke: var(--glass-border);
    stroke-width: 2;
}

.roadmap-path-active {
    stroke-width: 3;
}

.roadmap-path-active.done {
    stroke: var(--primary-color);
}

.roadmap-path-active.current {
    stroke: var(--star-filled-color);
    stroke-width: 3.5;
    stroke-dasharray: 10 10;
    animation: current-flow-strong 1s linear infinite;
}

.roadmap-node-group {
  opacity: 0;
  visibility: hidden;
}

.roadmap-node {
    fill: var(--bg-color);
    stroke: var(--text-secondary-color);
    stroke-width: 2;
    transition: all 0.3s ease;
    cursor: pointer;
}

.roadmap-node.start-node {
  stroke: var(--primary-color);
  animation: pulse-glow-subtle 2s infinite ease-in-out;
}

.roadmap-label-date {
    font-family: var(--font-main);
    fill: var(--text-secondary-color);
    font-size: 12px;
    text-anchor: middle;
}

.skills-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    perspective: 1000px;
}
.skill-card {
    background-color: transparent;
    cursor: pointer;
    height: 220px;
}
.skill-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.7s;
    transform-style: preserve-3d;
    border: 1px solid var(--glass-border);
    border-radius: 10px;
}
.skill-card.is-flipped .skill-card-inner {
    transform: rotateY(180deg);
}
.skill-card-front, .skill-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 10px;
    background-color: rgba(13, 2, 33, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
}
.skill-card-back {
    transform: rotateY(180deg);
    justify-content: flex-start;
    align-items: flex-start;
}
.skill-card-front i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}
.skill-card-front .skill-card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-color);
    text-align: center;
}
.skill-card-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}
.skill-card-list li {
    padding: 0.35rem 0;
    font-size: 0.9rem;
    color: var(--text-secondary-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.skill-card-list li i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

#beyond-hub-container {
    position: relative;
    width: 100%;
    min-height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.beyond-hub-center {
    width: 60%;
    max-width: 450px;
    text-align: center;
}
.beyond-hub-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-weight: 600;
}
.beyond-hub-desc {
    color: var(--text-secondary-color);
    line-height: 1.7;
    min-height: 100px;
}
.beyond-hub-node {
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    cursor: pointer;
    transition: all 0.4s ease;
}
.beyond-hub-node:hover {
    scale: 1.15;
    border-color: var(--primary-color);
}
.beyond-hub-node.active {
    background-color: var(--primary-color);
    color: var(--bg-color);
    box-shadow: 0 0 20px var(--primary-color);
    scale: 1.1;
}

#inspirations-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.inspiration-nav-btn {
    background: none;
    border: 1px solid var(--glass-border);
    color: var(--text-secondary-color);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-speed);
}
.inspiration-nav-btn.active {
    background-color: var(--primary-color);
    color: var(--bg-color);
    font-weight: 600;
}
#inspirations-cards-container {
    position: relative;
    height: 250px;
    width: 100%;
    max-width: 450px;
    margin: 0 auto 1.5rem;
    perspective: 1200px;
}
.inspiration-card {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    background: rgba(13, 2, 33, 0.95);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(8px);
    transition: transform 0.5s ease, opacity 0.5s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    text-align: center;
    opacity: 0;
    will-change: transform, opacity;
}
.inspiration-card-content.music {
    text-align: center;
}
.inspiration-card-content img {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    margin-bottom: 1rem;
}
.inspiration-card-content .artist {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
}
.inspiration-card-content .song {
    color: var(--text-secondary-color);
}
.inspiration-card-content.quote .text {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 1rem;
}
.inspiration-card-content.quote .author {
    color: var(--primary-color);
    font-weight: 600;
}
#inspirations-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
}
#inspirations-controls button {
    width: 44px;
    height: 44px;
    border: 1px solid var(--glass-border);
    background: none;
    color: var(--text-secondary-color);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-speed);
}
#inspirations-controls button:hover {
    background-color: var(--primary-color);
    color: var(--bg-color);
}

#contact-terminal-container {
    background: #0d0221;
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 1.5rem;
    font-family: var(--font-main);
    min-height: 300px;
}
#terminal-output {
    text-align: left;
    white-space: pre-wrap;
    word-break: break-all;
}
.terminal-line {
    line-height: 1.6;
}
.terminal-cursor {
    display: inline-block;
    background-color: var(--primary-color);
    width: 10px;
    height: 1.2em;
    animation: blink 1s step-end infinite;
    vertical-align: bottom;
}
#contact-form-wrapper {
    text-align: left;
}
.form-group {
    margin-bottom: 1rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary-color);
}
.form-group input, .form-group textarea {
    width: 100%;
    background: rgba(13, 2, 33, 0.8);
    border: 1px solid var(--glass-border);
    color: var(--text-color);
    padding: 0.75rem;
    border-radius: 5px;
    font-family: var(--font-main);
}
.form-submit-btn {
    width: 100%;
    padding: 0.75rem;
    background: var(--primary-color);
    color: var(--bg-color);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition-speed);
}
.form-submit-btn:hover {
    filter: brightness(1.2);
}
#form-status {
    margin-top: 1rem;
    text-align: center;
}
.alternative-contact {
    text-align: center;
    margin-top: 2rem;
    border-top: 1px solid var(--glass-border);
    padding-top: 1.5rem;
}

::-webkit-scrollbar {
  width: 8px;
  background: #0d0221;
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 247, 255, 0.5);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(0, 247, 255, 0.8); }

@media (max-width: 900px) {
  .main-nav a { padding: 0.75rem 1rem; }
  .stack-switcher-grid { grid-template-columns: repeat(2, 1fr); }
  .project-card.main-project { grid-column: span 1; }
}

@media (max-width: 768px) {
  .main-header {
    padding: 1.5rem 1rem;
    justify-content: center;
  }
  .lang-switcher { display: none; }
  .main-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 0.5rem;
  }
  .nav-link {
    padding: 0.5rem;
    font-size: 0.9rem;
  }
  .page-container { padding: 0 1rem 1rem; }
  .content-section { padding-top: 3rem; }
  .content-wrapper { padding: 1.5rem; }
  .stack-switcher-grid { grid-template-columns: 1fr; }
  .about-layout-container {
    flex-direction: column;
    gap: 1.5rem;
  }
  .projects-nav-horizontal { justify-content: space-around; }
  .about-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }
  .about-nav-btn { justify-content: center; }
  .projects-content-container { padding: 0; }
  .about-content-container { padding: 1.5rem; }
  h1 {
    font-size: clamp(1.8rem, 7vw, 2.2rem);
    text-shadow: 0 0 10px var(--primary-color);
    padding: 0 1rem;
  }
  .modal-details,
  #stack-modal .modal-details { grid-template-columns: 1fr; }
  .modal-links { flex-direction: column; }
  .projects-grid[data-layout="grid"] { grid-template-columns: 1fr; }
  .skills-cards-grid { grid-template-columns: 1fr; }
}