:root {
  font-family: "VT323", monospace;
  font-weight: 400;
  font-size: clamp(18px, 3vw, 30px);
}

[data-theme="light"] {
  --primary-color: black;
  --secondary-color: black;
  --primary-on-dark: white;
  --primary-on-secondary: white;
  --tertiary-color: #404040;
  --background-color: white;
  --dark-background-color: #404040;
}

[data-theme="dark"] {
  --primary-color: #00b015;
  --secondary-color: #00ee00;
  --primary-on-dark: #00ee00;
  --primary-on-secondary: black;
  --tertiary-color: #005f00;
  --background-color: #111;
  --dark-background-color: #404040;
}

[data-theme="new-vegas"] {
  --primary-color: #ffd52c;
  --secondary-color: #ff5c00;
  --tertiary-color: #bd4906;
  --background-color: #111;
  --dark-background-color: #404040;
}

.hero-text {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  min-height: 130px;
}

.hero-text h1 {
  margin: 0;
}

.hero-text .animate {
  display: inline-block;
  white-space: nowrap;
}

/* width */
::-webkit-scrollbar {
  width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
  background: var(--tertiary-color);
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: var(--primary-color);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}

pre {
  font-family: monospace;
  font-size: 7px;
}

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

.mask {
  mask-image: linear-gradient(to bottom, #0005 50%, #000 50%);
  mask-size: 100% 2px;
}

.no-mask {
  mask-image: none !important;
}

.retro-container {
  background-color: var(--background-color);
  /* border: 2px solid var(--primary-color); */
  color: var(--primary-color);
  text-shadow: 0 0 0.1rem;
}
.old-crt-monitor {
  box-shadow: inset 0px 0px 0.5rem;
  background-image: linear-gradient(0deg, #0000 10%, #fff1 90%, #0000 100%);
  animation: crtAnimation 200s linear infinite;
  background-size: 100% 80%;
}

section {
  height: 100%;
  overflow: hidden auto;
  padding: 1rem;
}

.blink {
  animation: blink 3s infinite;
  text-shadow: 0 0 0.5rem;
}

.hero {
  max-width: 850px;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.hero-btns {
  display: flex;
  justify-content: center;
  gap: 1rem;
  min-width: 50vw;
}

.links {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.socials {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}
@keyframes crtAnimation {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 0 10000%;
  }
}

#moon-icon,
#sun-icon {
  width: 24px;
  height: 24px;
  fill: var(--primary-color);
}

#moon-icon:hover,
#sun-icon:hover {
  fill: var(--secondary-color);
}

#mask-on-icon,
#mask-off-icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--primary-color);
}

#mask-on-icon:hover,
#mask-off-icon:hover {
  stroke: var(--secondary-color);
}

.brightness-controls {
  border: none;
}

@keyframes blink {
  50% {
    opacity: 80%;
  }
}

a {
  text-decoration: none;
}

.input-field {
  font-family: "VT323", monospace;
  display: block;
  width: 300px;
  height: 50px;
  padding: 10px;
  font-size: clamp(18px, 3vw, 30px);
  border: none;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  outline: none;
  background-color: #31f82a26;
  text-align: center;
}

.input-field:focus {
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

.button {
  padding: 5px;
  font-size: clamp(18px, 3vw, 30px);
  color: var(--primary-color);
  text-align: center;
  border: 2px solid var(--primary-color);
}

button {
  background-color: transparent;
}

.button:hover {
  animation: blink 3s infinite;
  text-shadow: 0 0 0.5rem;
  transform: scale(1.2);
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

nav {
  margin-top: 1rem;
  width: 90%;
  border-bottom: 2px solid var(--primary-color);
  display: flex;
  flex-direction: column;
}

li {
  list-style: none;
}

.link {
  text-decoration: none;
  color: var(--primary-color);
}

.about-me,
.projects,
.skills {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.projects-list {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.projects-list button {
  max-width: 200px;
  min-width: 200px;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.link:hover {
  color: var(--primary-on-secondary);
  background-color: var(--secondary-color);
}

.turn-white-neon-green {
  filter: contrast(100000%) sepia(100%) saturate(10000000%) hue-rotate(45deg)
    drop-shadow(0 0 0.15rem);
}

.neon-green-shadow {
  filter: drop-shadow(0 0 0.15rem);
}

.turn-icon-neon-green {
  filter: contrast(0%) sepia(100%) saturate(1000%) hue-rotate(76deg);
}

.hidden {
  display: none;
}

.socials li:hover {
  transform: scale(1.5);
  text-shadow: 0 0 0.5rem;
}

.links li:hover {
  transform: scale(1.2);
}

.socials a:hover {
  background: none;
  animation: blink 1.5s infinite;
  color: var(--secondary-color);
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
}

section {
  width: 80%;
}

.h2-container {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  white-space: nowrap;
}

.h2-line-right {
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
}

.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
}

.tooltip .tooltiptext {
  visibility: hidden;
  max-width: 90vw;
  background-color: black;
  color: #fff;
  text-align: center;
  padding: 5px 10px;
  border-radius: 6px;
  position: absolute;
  bottom: -70px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  white-space: normal; /* Allow wrapping */
  box-sizing: border-box;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
}

.warning {
  visibility: visible;
  max-width: 90vw;
  background-color: black;
  color: #fff;
  text-align: center;
  padding: 5px 10px;
  border-radius: 6px;
  position: absolute;
  top: 100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  white-space: normal;
  box-sizing: border-box;
}

#scrollToTopBtn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background-color: var(--primary-color);
  color: var(--background-color);
  border: none;
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
  display: none; /* Hidden by default */
  z-index: 1000; /* Ensure it's on top of other elements */
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}

/* Make all skill sections equal width */
.frontend-container,
.backend-container,
.tools-container,
.others-container {
  color: var(--primary-on-dark);
  text-align: center;
  flex: 1;
  min-width: 250px;
  background-color: var(--dark-background-color);
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Ensure consistent height */
.skills > div {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
