html {
  scroll-behavior: auto !important;
}

body {
  position: relative;
  display: block !important;
  min-height: 100vh;
  height: auto !important;
  overflow-x: hidden;
  overflow-y: auto;
}

::-webkit-scrollbar {
  display: none;
}

body::after {
  content: "";
  position: fixed;
  inset: -300px;
  z-index: -1;
  pointer-events: none;
}

header {
  top: 0;
  z-index: 1000;
}

main {
  position: relative;
  z-index: 1;
  padding-top: 20px;
}

.about-container {
  width: 90%;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

.about-section {
  margin-bottom: 70px;
  padding: 30px;
  border-radius: 10px;
  background: var(--color-surface-section);
  box-shadow: 0 5px 15px var(--color-shadow-faint);
}

.bio-section {
  --accent-color: var(--color-accent-bio);
}

.tools-section {
  --accent-color: var(--color-accent-tools);
  margin-top: 60px;
}

.education-section {
  --accent-color: var(--color-accent-education);
  isolation: isolate;
}

h1 {
  margin-bottom: 30px;
  color: var(--color-text-primary);
  font-family: "Century Gothic", sans-serif;
  font-size: clamp(2.6rem, 6vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -1px;
}

h2 {
  display: inline-block;
  margin-bottom: 30px;
  padding-left: 12px;
  color: var(--color-text-primary);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 600;
}

.bio-container {
  display: grid;
  grid-template-columns: minmax(250px, 1fr) 2fr;
  gap: 40px;
}

.bio-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-right: 20px;
}

.profile-image {
  position: relative;
  width: 200px;
  height: 200px;
  margin-bottom: 25px;
  overflow: hidden;
  border: 1px solid var(--color-border-subtle);
  border-radius: 15px;
  box-shadow: 0 10px 30px var(--color-shadow-medium);
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05) brightness(1.05);
  transition: transform 0.5s ease;
  user-select: none;
}

.bio-section:hover .profile-image img {
  transform: scale(1.02);
}

.profile-info {
  width: 100%;
  text-align: center;
}

.profile-name {
  margin-bottom: 2px;
  color: var(--color-text-strong);
  font-size: 1.8rem;
  font-weight: 600;
}

.profile-title {
  margin-bottom: 12px;
  color: var(--color-text-subtle);
  font-size: 1.1rem;
  font-weight: 400;
}

.bio-content h1 {
  margin-bottom: 20px;
}

.bio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 25px;
}

.bio-tag {
  padding: 6px 14px;
  border-radius: 4px;
  background: var(--color-surface-soft);
  color: var(--color-text-muted);
  font-size: 0.9rem;
  user-select: none;
  transition: background 0.3s ease, color 0.3s ease;
}

.bio-section:hover .bio-tag {
  background: var(--color-surface-neutral-hover);
  color: var(--color-text-soft);
}

.bio-text {
  max-width: 800px;
  color: var(--color-text-body-strong);
  font-size: 1.1rem;
  line-height: 1.8;
}

.bio-text p {
  margin-bottom: 20px;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.tool-card {
  min-height: 80px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 18px;
  border: 1px solid var(--color-border-control);
  border-radius: 8px;
  background: linear-gradient(
    145deg,
    var(--color-card-gradient-start),
    var(--color-card-gradient-end)
  );
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.tool-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-border-hover);
  background: linear-gradient(
    145deg,
    var(--color-card-gradient-hover-start),
    var(--color-card-gradient-hover-end)
  );
  box-shadow: 0 8px 20px var(--color-shadow-soft);
}

.tool-icon {
  width: 42px;
  min-width: 42px;
  height: 42px;
  margin-right: 15px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tool-icon iconify-icon {
  color: var(--color-text-subtle);
  transition: color 0.3s ease, filter 0.3s ease, transform 0.3s ease;
}

.tool-card:hover .tool-icon iconify-icon {
  transform: scale(1.05);
  color: var(--brand-color, var(--color-text-fallback));
  filter: drop-shadow(0 0 5px var(--color-highlight));
}

.tool-info {
  flex-grow: 1;
}

.tool-name {
  margin-bottom: 4px;
  color: var(--color-text-card);
  font-size: 1rem;
  font-weight: 500;
}

.tool-tag {
  color: var(--color-text-muted);
  font-size: 0.8rem;
  transition: color 0.3s ease;
}

.tool-card:hover .tool-tag {
  color: var(--brand-color, var(--color-text-fallback));
}

.tool-card[data-brand="unity"] {
  --brand-color: var(--color-brand-unity);
}

.tool-card[data-brand="photoshop"] {
  --brand-color: var(--color-brand-photoshop);
}

.tool-card[data-brand="blender"] {
  --brand-color: var(--color-brand-blender);
}

.tool-card[data-brand="figma"] {
  --brand-color: var(--color-brand-figma);
}

.tool-card[data-brand="fmod"] {
  --brand-color: var(--color-brand-fmod);
}

.languages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, 80px);
  justify-content: start;
  gap: 16px;
}

.language-card {
  aspect-ratio: 1;
  padding: 11px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border-control);
  border-radius: 8px;
  background: linear-gradient(
    145deg,
    var(--color-card-gradient-start),
    var(--color-card-gradient-end)
  );
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.language-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-border-hover);
  background: linear-gradient(
    145deg,
    var(--color-card-gradient-hover-start),
    var(--color-card-gradient-hover-end)
  );
  box-shadow: 0 8px 20px var(--color-shadow-soft);
}

.language-icon {
  width: 34px;
  height: 34px;
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.language-icon iconify-icon {
  color: var(--color-text-subtle);
  transition: color 0.3s ease, filter 0.3s ease, transform 0.3s ease;
}

.language-card:hover .language-icon iconify-icon {
  transform: scale(1.05);
  color: var(--language-color, var(--color-text-fallback));
  filter: drop-shadow(0 0 5px var(--color-highlight));
}

.language-name {
  color: var(--color-text-card);
  font-size: 1rem;
  font-weight: 500;
}

.language-card[data-language="csharp"] {
  --language-color: var(--color-language-csharp);
}

.language-card[data-language="java"] {
  --language-color: var(--color-language-java);
}

.language-card[data-language="python"] {
  --language-color: var(--color-language-python);
}

.timeline {
  position: relative;
  margin-top: 25px;
  padding-left: 30px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 0;
  width: 2px;
  height: calc(100% - 10px);
  background: var(--color-highlight);
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
  isolation: isolate;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  transition: transform 0.3s ease;
  will-change: transform;
}

.timeline-item:hover {
  transform: translate3d(10px, 0, 0);
}

.timeline-dot {
  position: absolute;
  top: 5px;
  left: -36px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-text-subtle);
  box-shadow: 0 0 0 4px var(--color-border-timeline-hover);
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item:hover .timeline-dot {
  transform: scale(1.3);
  background: var(--accent-color);
  box-shadow: 0 0 0 4px var(--color-accent-education-ring);
}

.timeline-content {
  padding: 22px;
  border: 1px solid var(--color-border-subtle);
  border-radius: 8px;
  background: var(--color-surface-section);
  box-shadow: 0 5px 15px var(--color-shadow-faint);
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  transition:
    transform 0.3s ease,
    background-color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
  will-change: transform;
}

.timeline-item:hover .timeline-content {
  transform: translate3d(0, -2px, 0);
  border-color: var(--color-border-timeline-hover);
  background-color: var(--color-surface-hover);
  box-shadow: 0 8px 20px var(--color-shadow-soft);
}

.timeline-content h3 {
  margin-bottom: 8px;
  color: var(--color-text-strong);
  font-size: clamp(1.1rem, 3vw, 1.4rem);
}

.timeline-place {
  margin-bottom: 8px;
  color: var(--color-text-secondary);
  font-weight: 500;
}

.timeline-date {
  margin-bottom: 15px;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.timeline-content p:last-child {
  margin-bottom: 0;
  line-height: 1.5;
}

@media screen and (max-width: 768px) {
  .about-container {
    width: 95%;
    padding: 20px 15px;
  }

  .about-section {
    margin-bottom: 50px;
    padding: 20px;
  }

  .bio-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .bio-profile {
    margin-bottom: 20px;
    padding-right: 0;
  }

  .profile-image {
    width: 150px;
    height: 150px;
  }

  .tools-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .timeline {
    padding-left: 25px;
  }

  .timeline-dot {
    left: -31px;
  }
}
