body {
  font-family: "Montserrat", Arial, sans-serif;
  background: #131313;
  color: #e0e0e0;
  margin: 20px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

header h1 {
  font-weight: 700;
  font-size: 3.2rem;
  color: #d12e5f;
  margin-bottom: 4px;
  user-select: none;
}

@media (max-width: 600px) {
  header h1 {
    font-size: 2rem;
  }
}
header h2,
.subtitle {
  font-weight: 400;
  font-size: 1rem;
  color: #d12e5f;
  user-select: none;
}

.subtitle {
  margin-top: 4px;
  margin-bottom: 64px;
}

.intro-section {
  display: flex;
  gap: 46px;
  margin-bottom: 82px;
  align-items: center;
}

.profile-pic {
  width: 240px;
  height: 240px;
  object-fit: cover;
  border: 4px solid #32b4d4;
  box-shadow: 0 0 0 4px #222;
  border-radius: 50%;
}

.intro-text p {
  flex: 1;
  font-size: 1.8rem;
  line-height: 1.4;
  user-select: text;
  color: #ffffff;
}

.intro-text p .highlight {
  font-weight: bold;
  color: #32b4d4;
}

@media (max-width: 600px) {
  .intro-section {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }

  .intro-text p {
    flex: unset !important;
    font-size: 2rem;
    padding: 0 20px;
  }
}

@media (max-width: 600px) {
  .intro-text p {
    flex: unset !important;
    font-size: 1.4rem;
    padding: 0 20px;
  }
}

.middle-image-section {
  text-align: center;
  margin: 30px 0 124px 0;
}

.middle-image-text {
  font-family: "VT323", monospace;
  font-size: 1.8rem;
  color: #ffffff;
  margin-bottom: 12px;
  font-style: normal;
  user-select: none;
  font-weight: 400;
}

.middle-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  image-rendering: pixelated;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

@media (max-width: 600px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

.project-card {
  background: #222;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  user-select: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.video-wrapper {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
}

.project-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
}

.tag {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  pointer-events: none;
}

.project-info .tag {
  font-size: 0.8rem;
}

@media (max-width: 600px) {
  .project-header {
    flex-direction: column;
    align-items: flex-start; /* or center if you want centered tags */
  }

  .project-header .tag-container {
    justify-content: flex-start; /* or center */
    flex-wrap: wrap;
    display: flex;
    gap: 8px;
  }
}

.tag.unity {
  background-color: rgba(0, 123, 255, 0.5);
}

.tag.pixel-art {
  background-color: rgba(40, 167, 69, 0.5);
}

.tag.unreal {
  background-color: rgba(255, 193, 7, 0.8);
  color: #000;
}

.tag.three-d {
  background-color: rgba(220, 53, 69, 0.8);
}

.project-video-1 {
  object-position: center 0%;
}

.project-video-2 {
  object-position: center 40%;
}

.project-video-3,
.project-video-4 {
  object-position: center 20%;
}

.project-info {
  padding: 12px;
}

.project-info h3 {
  font-size: 1.6rem;
  margin: 6px 0;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.project-info .tag-container {
  display: flex;
  gap: 8px;
}

.project-card p {
  font-size: 1rem;
  color: #ccc;
  text-align: justify;
}

.project-card:hover {
  background: #333;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.project-img {
  width: 100%;
  height: 120px;
  background: #555;
  margin-bottom: 10px;
  image-rendering: pixelated;
  border: 2px solid #32b4d4;
}

.project-info h3,
.project-card p {
  padding: 0 14px;
}

.big-card {
  margin-bottom: 40px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.art-section {
  margin: 40px auto 60px;
  max-width: 100%;
  border-radius: 12px;
  padding: 20px;
  background-color: #222;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  text-align: center;
}

.art-section h2 {
  font-size: 2.4rem;
  color: #f8497d;
  margin: 0 0 16px 0;
  user-select: none;
  text-align: center;
}

.art-columns {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.art-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.art-column img {
  width: 100%;
  border-radius: 8px;
}

.art-image-container {
  position: relative;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
}

.art-image-container img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px 8px 0 0;
}

.image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50px;
  background: rgba(0, 0, 0, 0.4);
  color: #32b4d4;
  font-size: 1.2rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  pointer-events: none;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

@media (max-width: 600px) {
  .art-3d-modelling .art-columns {
    flex-direction: column;
  }
}

h2 {
  text-align: center;
  margin: 40px 0;
  color: #f8497d;
}

.education-section {
  background-color: #222;
  border-radius: 12px;
  padding: 15px 20px;
  margin-bottom: 120px;
  max-width: 100%;
  box-sizing: border-box;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.education-section p {
  font-size: 1.8rem;
  text-align: center;
  font-weight: bold;
}

.education-section .edu-detail {
  font-size: 1.2rem;
  font-style: italic;
  font-weight: normal;
  text-align: center;
}
