@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;700&family=Vazirmatn:wght@300;400;500;700&display=swap");
:root {
  --gradient-direction: 90deg;
}

[dir=rtl] {
  --gradient-direction: 270deg;
}

.country-select {
  width: 4em;
}

.work-history-headline {
  background: linear-gradient(var(--gradient-direction), color-mix(in srgb, var(--mud-palette-primary) 40%, transparent) 10%, transparent);
  border-start-start-radius: 4px;
  padding-inline-start: 8px;
  padding-top: 8px;
}

.work-history-badge {
  color: white;
  background-color: var(--mud-palette-primary);
  overflow: hidden;
  box-shadow: 0 0 10px rgba(150, 72, 199, 0.4), inset 0 0 10px rgba(150, 72, 199, 0.15);
}
.work-history-badge::before {
  content: "";
  position: absolute;
  top: 0%;
  left: -20%;
  width: 10%;
  height: 100%;
  background: linear-gradient(90deg, #FFF);
  filter: blur(8px);
  transform: rotate(40deg);
  animation: neon-sweep 4s ease-in-out infinite;
}

.work-history-item-badge {
  background-color: var(--mud-palette-primary);
}

.work-history-project-badge {
  margin: 0 0 auto 8px;
  background-color: var(--mud-palette-info);
}

.work-history-container {
  max-height: 85vh;
  overflow-y: auto;
}
@media (max-width: 600px) {
  .work-history-container {
    width: 100%;
  }
}

.projects-container {
  height: 14em; /* Increased slightly to accommodate fixed cards cleanly */
  width: 100%;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
}

.projects-container::-webkit-scrollbar {
  height: 6px;
}

.projects-container::-webkit-scrollbar-track {
  background: var(--mud-palette-background-grey);
  border-radius: 8px;
}

.projects-container::-webkit-scrollbar-thumb {
  background: var(--mud-palette-lines-inputs);
  border-radius: 8px;
}

.projects-container::-webkit-scrollbar-thumb:hover {
  background: var(--mud-palette-primary);
}

.projects-container-item {
  scroll-snap-align: start;
  flex: 0 0 80%;
  height: 12.5em; /* Enforces a strict, uniform card height */
  margin: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  background: color-mix(var(--mud-palette-surface) 90%, white);
  overflow: hidden; /* Prevents overflow content from leaking out of the card */
}
@media (max-width: 600px) {
  .projects-container-item {
    flex: 0 0 300px;
  }
}

.project-dialog {
  height: 20em; /* Enforces a strict, uniform card height */
  margin: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  background: color-mix(var(--mud-palette-surface) 90%, white);
  overflow: auto; /* Prevents overflow content from leaking out of the card */
}

/* New: Wrapper to handle the text constraint and the fade out */
.projects-description-wrapper {
  flex-grow: 1;
  overflow: hidden;
  position: relative;
  margin-bottom: 8px;
  align-content: center;
  /* Elegant fade effect at the bottom of the text container */
  -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
}

.projects-description-text {
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  height: 70%;
}

.projects-container-item-tags {
  height: 10%;
  flex-wrap: nowrap; /* Keeps badges on line if they wrap */
}

.projects-container-item-header {
  margin-block-end: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  direction: inherit;
  text-align: start;
  height: 20%;
}

.project-dialog-direction {
  direction: inherit;
}

[dir=rtl] .project-dialog-direction {
  direction: rtl;
  text-align: right;
}

[dir=ltr] .project-dialog-direction {
  direction: ltr;
  text-align: left;
}

.skill-view-chip {
  background: var(--mud-palette-surface);
  border: solid 1px;
  text-align: center;
}

.skill-view-toolbar {
  border-radius: 8px;
  background: var(--mud-palette-surface);
}

.ltr-page {
  direction: ltr !important;
  text-align: left !important;
  /* Force the absolute coordinate system root to stay on the left */
  position: relative;
}

.chart-toolbar {
  position: sticky;
  left: 24px;
  top: 24px;
  z-index: 10;
  width: max-content;
}
.chart-toolbar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--mud-palette-surface) 5%, transparent);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.chart-scroll-wrapper {
  width: 100%;
  height: 75vh; /* fixed viewport */
  overflow-x: auto;
  overflow-y: hidden;
  position: relative;
  border: 1px solid rgba(136, 119, 255, 0.15);
  background-color: var(--mud-palette-surface);
}

.chart-canvas {
  position: relative;
  direction: ltr !important;
  display: flex;
  flex-direction: row;
  width: max-content;
  height: 95%; /* or dynamic if needed */
}

.chart-column {
  flex: 0 0 600px; /* fixed width */
  width: 600px;
}

.tree-viewport {
  position: relative;
  width: 100%;
  border: 1px solid rgba(136, 119, 255, 0.15);
  /* Force LTR here so child calculations match */
  direction: ltr !important;
}

.tree-canvas {
  direction: ltr !important;
  position: absolute;
  inset: 0;
  right: auto !important; /* Prevents RTL from pulling it to the right */
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.tree-nodes-container {
  width: 100%;
  height: 100%;
}

.children-wrapper {
  position: absolute;
  top: 0;
  left: 0 !important;
  right: auto !important; /* Prevents layout stacking collapse in RTL */
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.node-container {
  position: absolute;
  z-index: 2;
  /* Ensure the inline style 'left'/'top' properties map to the left side */
  right: auto !important;
}

.node-container-description {
  width: 300px;
}

.node-container-description .mud-paper {
  width: 100%;
  max-width: 100%;
  height: 60px;
  padding: 8px;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: pre-wrap;
  overflow: auto;
  align-content: center;
  box-shadow: 4px 4px 32px 4px color-mix(in srgb, var(--mud-palette-info) 40%, transparent);
}

.tree-chip-fixed {
  width: 100% !important;
  justify-content: center;
}

.node-root {
  transform: translate(-100%, -50%);
}

.node-child {
  transform: translate(0, -50%);
}

.node-child .mud-chip {
  width: max-content;
  max-width: 250px;
}

.auto-chip {
  height: auto;
  min-height: 48px;
  text-align: center;
  min-width: 110px;
  max-width: 110px;
}
.auto-chip .mud-chip-content {
  white-space: normal;
  line-height: 1.4;
  padding-top: 6px;
  padding-bottom: 6px;
}

.node-container:hover {
  filter: drop-shadow(0px 0px 8px var(--mud-palette-primary));
}

.skill-tree-container {
  height: calc(100vh - 90px - var(--mud-appbar-height) - 60px);
  width: 100%;
  overflow-y: auto;
  overflow-x: clip;
}

.skill-tree-toolbar {
  margin: 8px 12px;
  position: sticky;
  top: 10px;
  width: 100vw;
}
.skill-tree-toolbar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--mud-palette-surface) 5%, transparent);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: -1;
}

.skills-tree-item-container {
  width: calc(100% - 64px);
  min-width: 0; /* CRITICAL for flex + MudTreeView */
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--mud-palette-surface) 85%, transparent);
}

.skills-tree-item-container-text {
  margin-inline-start: 12px;
  overflow-x: auto;
  white-space: nowrap;
  min-width: 0;
  max-width: 100%;
  display: block;
}

.skills-tree-item-header {
  width: 100%;
  background: color-mix(in srgb, var(--mud-palette-surface) 85%, var(--mud-palette-primary));
  overflow: clip;
}
@media (max-width: 600px) {
  .skills-tree-item-header {
    width: 70vw;
  }
}

.skills-tree-item-header-text {
  padding: 12px;
  overflow-x: auto;
  white-space: nowrap;
  min-width: 0;
  max-width: 100%;
}

.navigation-app-bar {
  height: 90px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.2) 40%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0) 100%);
}
.navigation-app-bar::before {
  content: "";
  background: color-mix(in srgb, var(--mud-palette-surface) 25%, transparent);
  position: absolute;
  inset: 0;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(10px);
}

.navigation-app-bar-item {
  width: 100px;
  height: 50px;
  background: transparent;
  transition: all 0.2s ease;
  cursor: pointer;
}

.navigation-app-bar-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--mud-palette-surface);
  display: flex;
  justify-content: center;
  align-items: center;
}
.navigation-app-bar-icon.active {
  background: var(--mud-palette-primary);
}

.main-page-theme {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.main-page-theme::before {
  content: "";
  position: absolute;
  inset: -20px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.15)), url("../img/Hexagon.svg");
  background-position: center;
  background-size: auto;
  filter: blur(2.5px);
  z-index: -1;
}

.navigation-app-bar-text-other {
  color: var(--mud-palette-secondary);
}

.navigation-app-bar-text-current {
  color: var(--mud-palette-primary-darken);
}

.home-page-layout {
  position: relative;
  height: 85vh;
  width: 100vw;
}

.home-page-text-container {
  height: 65vh;
  max-height: 65vh;
  overflow-y: auto;
  padding: 16px;
}

.about-me-hero-section {
  background: #121212;
}

.about-me-description {
  height: calc(100vh - var(--mud-appbar-height));
  overflow-y: auto;
}

.hero-name-shine-text {
  background: linear-gradient(110deg, var(--mud-palette-primary) 0%, var(--mud-palette-primary) 50%, #F5EFFF 55%, var(--mud-palette-primary) 60%, var(--mud-palette-primary) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  color: transparent;
  animation: shine linear infinite;
  animation-duration: 6s;
  animation-delay: 6s;
}

.home-hero-image {
  position: absolute;
  margin: auto 0 0 auto;
  bottom: 32px;
  right: 32px;
}

.blend-all-edges {
  /* Define the mask using four directional linear gradients */
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent), linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
  /* Required for Safari / iOS compatibility */
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent), linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
  /* Combines the horizontal and vertical gradients correctly */
  mask-composite: intersect;
  -webkit-mask-composite: source-in;
}

.home-hero-section {
  position: relative;
}

.schedule-meeting-dialog-item * {
  margin-bottom: 8px;
}

.schedule-meeting-dialog {
  width: 500px;
  height: 600px;
}

.schedule-meeting-button {
  position: absolute;
  bottom: 64px;
  width: 240px;
  left: calc(50% - 120px);
  overflow: hidden;
  background: transparent;
  border: 1px solid #9648c7;
  color: white;
  box-shadow: 0 0 10px rgba(150, 72, 199, 0.4), inset 0 0 10px rgba(150, 72, 199, 0.15);
}
.schedule-meeting-button::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -80%;
  width: 20%;
  height: 200%;
  background: linear-gradient(90deg, transparent, #9648c7, #dba7ff, #9648c7, transparent);
  filter: blur(8px);
  transform: rotate(20deg);
  animation: neon-sweep 3s ease-in-out infinite;
}
.schedule-meeting-button:hover {
  box-shadow: 0 0 20px rgba(150, 72, 199, 0.8), inset 0 0 20px rgba(150, 72, 199, 0.3);
}

@keyframes neon-sweep {
  0% {
    left: -80%;
  }
  50%, 100% {
    left: 150%;
  }
}
@keyframes shine {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
@keyframes button-shine {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
.mud-timeline-horizontal .mud-timeline-item .mud-timeline-item-divider {
  min-height: 40px;
}

.node-container .mud-chip {
  width: 8vw;
  height: 4vh;
}

/*# sourceMappingURL=app.css.map */
