:root {
  --color-white: #ffffff;
  --color-black: #000000;
  --color-white-95: rgba(255, 255, 255, 0.95);
  --color-white-90: rgba(255, 255, 255, 0.9);
  --color-white-80: rgba(255, 255, 255, 0.8);
  --color-white-70: rgba(255, 255, 255, 0.7);
  --color-white-60: rgba(255, 255, 255, 0.6);
  --color-white-10: rgba(255, 255, 255, 0.1);
  --color-white-05: rgba(255, 255, 255, 0.05);
  --color-white-01: rgba(255, 255, 255, 0.01);
  --font-mono: 'Courier New', monospace;
  --transition-default: all 0.3s ease;
  --transition-transform: transform 0.3s ease, box-shadow 0.3s ease;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--color-black);
  color: var(--color-white);
  font-family: var(--font-mono);
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-color: var(--color-white) var(--color-black);
  -ms-overflow-style: none;
}



.stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
}

.star {
  position: absolute;
  background: radial-gradient(circle, var(--color-white) 0%, var(--color-white) 50%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: twinkle 4s ease-in-out infinite alternate;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.star-lines {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 1;
}

@keyframes twinkle {
  0% {
    opacity: 0.5;
  }

  100% {
    opacity: 1;
  }
}

.card {
  background: var(--color-white-05);
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid var(--color-white-10);
  transition: var(--transition-transform);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px var(--color-white-10);
}

.card-title {
  margin-bottom: 1rem;
  color: var(--color-white-90);
}

.card-text {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--color-white-70);
  margin-bottom: 1.5rem;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tag {
  background: var(--color-white-10);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.9rem;
  color: var(--color-white-80);
}

.project-tags {
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-tag {
  padding: 0.3rem 0.8rem;
  text-decoration: none;
  border-radius: 20px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-white-80);
}

main {
  position: relative;
  z-index: 2;
  min-height: 200vh;
}

.intro {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  min-height: 90vh;
  text-align: center;
  background: transparent;
  padding: 25vh 2rem 2rem 2rem;
}

@media (max-width: 768px) {
  .intro {
    padding: 25vh 1rem 2rem 1rem;
  }
}

.intro h1 {
  font-size: 4rem;
  margin-bottom: 0.5rem;
  color: var(--color-white-95);
  font-weight: bold;
}

.intro p {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--color-white-80);
}

.intro .subtitle {
  font-size: 1.1rem;
  color: var(--color-white-60);
  font-style: italic;
}

section {
  padding: 20px 40px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

@media (max-width: 768px) {
  section {
    padding: 20px 20px;
  }
}

section h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--color-white-90);
}

section p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--color-white-80);
  max-width: 800px;
  margin: 0 auto 1.5rem auto;
}

.about {
  margin: 50px auto;
}

.about p {
  text-align: center !important;
  margin-bottom: 1rem;
}

.career {
  margin: 50px auto;
}

.career-timeline {
  margin-top: 3rem;
}

.career-item {
  margin-bottom: 2rem;
}

.career-item .tech-tags {
  justify-content: center;
}

.career-header {
  margin-bottom: 1rem;
}

.career-header .card-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.career-company {
  display: block;
  font-size: 1.1rem;
  color: var(--color-white-80);
  font-weight: bold;
  margin-bottom: 0.25rem;
}

.career-date {
  display: block;
  font-size: 0.9rem;
  color: var(--color-white-60);
  font-style: italic;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.skill-category .card-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.skill-subcategory {
  margin-bottom: 1.5rem;
}

.skill-subcategory h4 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--color-white-95);
}

.skill-subcategory:last-child {
  margin-bottom: 0;
}

.skills-note {
  font-size: 0.85rem;
  color: var(--color-white-60);
  text-align: center;
  margin-top: 1.5rem;
  font-style: italic;
}

.skill-category ul {
  list-style: none;
  padding: 0;
}

.skill-category li {
  padding: 0.5rem 0;
  color: var(--color-white-70);
  border-bottom: 1px solid var(--color-white-10);
}

.skill-category li:last-child {
  border-bottom: none;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  min-height: 320px;
}

.project-card .card-title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  line-height: 1.3;
  min-height: 4rem;
  display: flex;
  align-items: flex-start;
}

.thesis-title {
  text-align: center;
  justify-content: center;
}

.project-card .card-text {
  font-size: 1rem;
  line-height: 1.5;
  text-align: left;
  flex: 1;
  margin-bottom: 1rem;
  min-height: 6rem;
}

.project-card .tech-tags {
  margin-top: auto;
  padding-top: 1rem;
  min-height: 2rem;
}

.project-card .project-tags {
  margin-top: auto;
  padding-top: 1rem;
}

.contact {
  margin: 50px auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.contact h2,
.contact p {
  text-align: center !important;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;
}

.contact-item {
  padding: 1.5rem;
  text-align: center;
  min-height: 80px;
}

.contact-item .card-title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.contact-item h4 a {
  color: var(--color-white-90);
  text-decoration: none;
  transition: var(--transition-default);
  display: block;
  padding: 0.5rem 0;
  text-align: center;
}

.contact-item h4 a:hover {
  color: var(--color-white);
  text-decoration: none;
  transform: translateY(-2px);
}

.contact-item img {
  width: 32px;
  height: 32px;
  transition: var(--transition-default);
  filter: invert(1) brightness(0.9);
}

.contact-item a:hover img {
  transform: scale(1.1);
  filter: invert(1) brightness(1);
}

footer {
  text-align: center;
  padding: 2rem 1rem;
  margin-top: 2rem;
  border-top: 1px solid var(--color-white-10);
}

footer p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-white-60);
}

footer a {
  color: var(--color-white-80);
  text-decoration: none;
  transition: var(--transition-default);
}

footer a:hover {
  color: var(--color-white);
  text-decoration: underline;
}