*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Pixelify Sans", monospace;
  font-size: 1.1rem;
  background: linear-gradient(180deg, #2e2e2e, #0f0f0f);
  color: #eaeaea;

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

.hero {
  width: 100%;
  max-width: 1000px;
  padding: 2.5rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-left h1 {
  margin: 0;
  font-size: 2.8rem;
  letter-spacing: 1px;
}

.hero-left .role {
  margin-top: 0.3rem;
  font-size: 1rem;
  opacity: 0.65;
}

.hero-nav {
  display: flex;
  gap: 1.75rem;
}

.hero-nav a {
  position: relative;
  text-decoration: none;
  color: #eaeaea;
  padding-bottom: 4px;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.hero-nav a:hover {
  opacity: 1;
	cursor: pointer;
}

.hero-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #4ea1ff, #9b7bff);
  transition: width 0.25s ease;
}

.hero-nav a:hover::after,
.hero-nav a.active::after {
  width: 100%;
}

.page {
  display: none;
  width: 100%;
}

.page.active {
  display: block;
}

section h2 {
  text-align: center;
  font-size: 2rem;
  margin: 2.5rem 0 2rem;
  letter-spacing: 1px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  padding: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #111;

  box-shadow: 0 20px 50px rgba(116, 114, 114, 0.55);

  transition: box-shadow 0.25s ease;
}

.project-card:hover {
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
	cursor: pointer;
}

.project-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

.project-card:hover img {
  transform: scale(1.15);
}

.project-title {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 1.2rem;
  text-align: center;
  padding: 1rem;

  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.15),
    rgba(0, 0, 0, 0.75)
  );
  color: #fff;

  opacity: 0;
  transition: opacity 0.25s ease;
}

.project-card:hover .project-title {
  opacity: 1;
}

.resume {
  text-align: center;
}

.resume-card {
  max-width: 750px;
  margin: 2rem auto 0;
  padding: 2.2rem;

  background: linear-gradient(180deg, #2e2d2d, #0d0d0d);
  border-radius: 18px;

  box-shadow: 0 20px 50px rgba(68, 67, 67, 0.55);
  text-align: left;
}

.resume-section {
  margin-bottom: 1.8rem;
}

.resume-section h3 {
  margin-bottom: 0.5rem;
  font-size: 1.35rem;
  color: #ffffff;
}

.resume-section p,
.resume-section li {
  color: #d6d6d6;
  line-height: 1.7;
}

.resume-section ul {
  padding-left: 1.4rem;
  margin-top: 0.5rem;
}

.muted {
  color: #9a9a9a;
  font-size: 0.95rem;
}

.resume-download {
  display: inline-block;
  margin-top: 1.8rem;
  padding: 0.7rem 1.6rem;

  border-radius: 14px;
  border: 2px solid transparent;
  background: linear-gradient(#111, #111) padding-box,
              linear-gradient(90deg, #4ea1ff, #9b7bff) border-box;

  text-decoration: none;
  color: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.resume-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(78, 161, 255, 0.35);
}

.contact-card {
  margin: 2rem auto 0;
  display: inline-block;
  padding: 1.8rem 2.4rem;

  border-radius: 16px;
  background: linear-gradient(180deg, #2e2d2d, #0d0d0d);
  box-shadow: 0 18px 45px rgba(68, 67, 67, 0.55);
}

.contact-item {
  margin: 0.9rem 0;
  font-size: 1.1rem;
}

.contact-item a {
  color: #4ea1ff;
  text-decoration: none;
  margin-left: 0.5rem;
}

.contact-item a:hover {
  text-decoration: underline;
}

@media (max-width: 700px) {
  .hero {
    flex-direction: column;
    gap: 1.2rem;
    text-align: center;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }
}