:root {
  --bg: #000000;
  --text: #ffffff;
  --link: #60a5fa;
  --link-hover: #3b82f6;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.about-body {
  overflow: hidden;
  height: 100%;
}

body.about-body html {
  overflow: hidden;
  height: 100%;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  z-index: 100;
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.topnav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-link {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-link:hover {
  color: rgba(255, 255, 255, 0.8);
}

.nav-link.active {
  color: #ffffff;
}

.page {
  padding-top: 80px;
  padding-bottom: 2rem;
}

.page.about-page {
  overflow: hidden;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero {
  max-width: 700px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
  overflow-x: visible;
}

.profile-container {
  margin-bottom: 1.5rem;
  margin-top: -50px;
  display: flex;
  justify-content: center;
}

.profile-picture {
  width: 175px;
  height: 175px;
  border-radius: 50%;
  object-fit: cover;
  margin-top: 25px;
  margin-bottom: -15px;
}

.name {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--text);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.role {
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 1rem;
  font-weight: 400;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 1.75rem;
  margin-bottom: 2rem;
}

.social-icon {
  color: var(--text);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.social-icon:hover {
  opacity: 0.7;
}

.social-icon svg {
  width: 100%;
  height: 100%;
}

.bio {
  text-align: center;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text);
  max-width: 600px;
  margin: 0 auto;
}

.bio p {
  margin-bottom: 1rem;
}

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

.bio a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-color: var(--link);
  text-underline-offset: 3px;
  transition: color 0.2s, text-decoration-color 0.2s;
}

.bio a:hover {
  color: var(--link-hover);
  text-decoration-color: var(--link-hover);
}

.skills-section {
  margin-top: 2rem;
  width: calc(100% + 600px);
  margin-left: -300px;
  padding: 0 300px;
}

.skills-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin-top: 50px;
  margin-bottom: 1.5px;
}

.skills-carousel {
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
}

.carousel-btn {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.carousel-btn.prev {
  position: absolute;
  left: -375px;
  z-index: 10;
}

.carousel-btn.next {
  position: absolute;
  right: -325px;
  z-index: 10;
}

.carousel-btn:hover,
.carousel-btn:focus-visible {
  border-color: rgba(78, 125, 196, 0.5);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(78, 125, 196, 0.25);
  outline: none;
}

.carousel-btn span {
  font-size: 28px;
  line-height: 1;
  margin-top: -2px;
}

.skills-viewport {
  --cards-per-view: 6;
  overflow: hidden;
  width: calc(100% + 550px);
  margin-left: -300px;
  margin-right: -250px;
  outline: none;
  padding-top: 20px;
  padding-bottom: 20px;
}

.skills-viewport:focus-visible {
  box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.55);
  border-radius: 12px;
}

.skills-track {
  display: flex;
  gap: 1rem;
  will-change: transform;
  transition: transform 260ms ease;
  align-items: flex-start;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.skills-track:active {
  cursor: grabbing;
}

.skill-card {
  perspective: 1000px;
  flex: 0 0 calc((100% - (1rem * (var(--cards-per-view) - 1))) / var(--cards-per-view));
  min-width: 0;
  height: auto;
  padding-bottom: 0;
  overflow: visible;
  position: relative;
}

.skill-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 180px;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  cursor: pointer;
}

.skill-card:hover .skill-card-inner {
  transform: rotateY(180deg);
}

.skill-card-front,
.skill-card-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-height: 180px;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: calc(1.5rem + 20px) 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.skill-card-front {
  transform: rotateY(0deg);
}

.skill-card-back {
  transform: rotateY(180deg);
  background: rgba(78, 125, 196, 0.1);
  border-color: rgba(78, 125, 196, 0.3);
  justify-content: center;
  align-items: center;
  gap: 0;
}

.skill-card:hover .skill-card-front,
.skill-card:hover .skill-card-back {
  border-color: rgba(78, 125, 196, 0.5);
  box-shadow: 0 8px 24px rgba(78, 125, 196, 0.3);
}

.skill-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  padding: 10px;
}

.skill-icon.fallback {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.22), rgba(168, 85, 247, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.skill-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.skill-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  text-align: center;
}

.skill-description {
  font-size: 0.8125rem;
  color: #ffffff;
  text-align: center;
  line-height: 1.5;
  padding: 0 1rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.skill-card {
  position: relative;
}

.experience-section,
.education-section {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin-bottom: 3rem;
}

.experience-list,
.education-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.experience-item,
.education-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.experience-icon,
.education-icon {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.experience-icon img,
.education-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}

.experience-info,
.education-info {
  flex: 1;
}

.experience-company,
.education-institution {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.experience-role,
.education-degree {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 0.25rem;
  font-weight: 400;
}

.experience-period,
.education-period {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 768px) {
  .topbar {
    padding: 0 1.5rem;
  }

  .topnav {
    gap: 1.5rem;
  }

  .nav-link {
    font-size: 0.9rem;
  }

  .name {
    font-size: 2.25rem;
  }

  .role {
    font-size: 1.05rem;
  }

  .hero {
    padding: 0 1.5rem;
  }

  .profile-picture {
    width: 160px;
    height: 160px;
  }

  .social-icons {
    gap: 1.5rem;
  }

  .skills-section {
    margin-top: 3rem;
    padding: 0 1.5rem;
  }

  .skills-title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

  .skill-card {
    padding: 1.25rem;
    min-width: 0;
  }

  .skill-icon {
    width: 56px;
    height: 56px;
  }
}

@media (max-width: 480px) {
  .topbar {
    padding: 0 1rem;
  }

  .topnav {
    gap: 1rem;
  }

  .nav-link {
    font-size: 0.85rem;
  }

  .name {
    font-size: 1.875rem;
  }

  .profile-picture {
    width: 140px;
    height: 140px;
  }

  .hero {
    padding: 0 1rem;
  }

  .experience-section,
  .education-section {
    padding: 3rem 1rem;
  }

  .section-title {
    font-size: 1.75rem;
    margin-bottom: 2.5rem;
  }

  .experience-item,
  .education-item {
    gap: 1.25rem;
  }

  .experience-icon,
  .education-icon {
    width: 56px;
    height: 56px;
  }

  .experience-company,
  .education-institution {
    font-size: 1.1rem;
  }

  .experience-role,
  .education-degree {
    font-size: 0.95rem;
  }

  .skills-section {
    margin-top: 2.5rem;
    padding: 0 1rem;
  }

  .skills-title {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
  }

  .skills-carousel {
    grid-template-columns: 40px 1fr 40px;
    gap: 0.75rem;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  .skill-card {
    padding: 1rem;
  }

  .skill-icon {
    width: 48px;
    height: 48px;
  }

  .skill-name {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .experience-item,
  .education-item {
    gap: 1rem;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .experience-icon,
  .education-icon {
    width: 48px;
    height: 48px;
  }
}