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

/* Global */
body {
  font-family: "Press Start 2P", monospace;
  background-color: #5c94fc;
  color: #ffffff;
  text-align: center;
}

/* Each world = one screen */
.world {
  min-height: 100vh;
  padding: 4rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

/* Headings */
h1, h2 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

/* Paragraph text */
p {
  font-size: 0.75rem;
  line-height: 1.8;
}

/* Ground tiles */
.world::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 48px;
  background: repeating-linear-gradient(
    90deg,
    #c68642 0px,
    #c68642 32px,
    #b87333 32px,
    #b87333 64px
  );
}

/* Coin */
.coin {
  width: 24px;
  height: 24px;
  margin: 2rem auto 0;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff4a3, #f7c600);
  box-shadow: 0 0 0 2px #d49b00;
  transition: transform 0.2s ease;
}

.coin:hover {
  transform: translateY(-10px);
}

.world {
  scroll-margin-top: 20px;
  transition: background-color 0.3s ease;
}

.world:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

/* Power-ups container */
.power-ups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
  padding: 0 1rem;
}

/* Individual power-up */
.power-up {
  background-color: rgba(255, 255, 255, 0.15);
  border: 2px solid #ffffff;
  padding: 1.5rem 1rem;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

/* Icon */
.power-up .icon {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 0.75rem;
}

/* Label */
.power-up .label {
  font-size: 0.65rem;
  line-height: 1.4;
}

.power-up:hover {
  transform: translateY(-8px);
  background-color: rgba(255, 255, 255, 0.25);
}

/* Pipes container */
.pipes {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

/* Pipe */
.pipe {
  width: 80px;
  height: 120px;
  background-color: #2ecc71;
  border: 4px solid #1e8449;
  border-radius: 8px 8px 0 0;
  position: relative;
  text-decoration: none;
  transition: transform 0.15s ease;
}

/* Pipe top rim */
.pipe::before {
  content: "";
  position: absolute;
  top: -16px;
  left: -8px;
  width: 96px;
  height: 16px;
  background-color: #27ae60;
  border: 4px solid #1e8449;
  border-bottom: none;
}

/* Label */
.pipe-label {
  position: absolute;
  bottom: -2.5rem;
  width: 100%;
  font-size: 0.55rem;
  color: #ffffff;
}

.pipe:hover {
  transform: translateY(8px);
}

/* Mystery zone */
.mystery-zone {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
}

/* Block */
.block {
  width: 48px;
  height: 48px;
  background-color: #f1c40f;
  border: 4px solid #b7950b;
  color: #ffffff;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.block:hover {
  transform: translateY(-6px);
  background-color: #f7dc6f;
}

/* Castle world */
.world-castle {
  background-color: #5c94fc;
  color: #ffffff;
}

/* Castle actions */
.castle-actions {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 3rem 0;
  flex-wrap: wrap;
}

/* Flags (buttons) */
.flag {
  padding: 1rem 1.5rem;
  border: 3px solid #ffffff;
  text-decoration: none;
  color: #ffffff;
  font-size: 0.6rem;
  transition: transform 0.15s ease, background-color 0.15s ease;
  position: relative;
}

.flag:hover {
  transform: translateY(-6px);
  background-color: rgba(255, 255, 255, 0.2);
}

/* Pointer for GitHub button */
.flag.github-link::after {
  content: "👈";
  position: absolute;
  right: -3rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  animation: pointLeft 1s ease-in-out infinite;
}

@keyframes pointLeft {
  0%, 100% {
    transform: translateY(-50%) translateX(0);
  }
  50% {
    transform: translateY(-50%) translateX(-10px);
  }
}

@media (max-width: 768px) {
  .flag.github-link::after {
    display: none;
  }
  
  .castle-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .flag {
    width: 200px;
    text-align: center;
  }
}

/* Ending text */
.end-text {
  font-size: 0.55rem;
  opacity: 0.8;
}

/* Navigation bar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: 56px;
  background: linear-gradient(to bottom, #0b1c2d, #081421);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  border-bottom: 3px solid rgba(255, 255, 255, 0.2);
}

/* Navigation list */
.nav-links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}

/* Links */
.nav-links a {
  text-decoration: none;
  color: #e8f0ff;
  font-size: 0.6rem;
  transition: transform 0.15s ease, color 0.15s ease;
}

/* Hover effect */
.nav-links a:hover {
  transform: translateY(-3px);
  color: #f7c600;
}

.world {
  scroll-margin-top: 70px;
}

.nav-links a.active {
  color: #f7c600;
}

/* About section */
.about-section {
  padding: 6rem 10%;
  background: linear-gradient(180deg, #081421, #06101c);
  color: #cfd8e3;
}

/* Header */
.about-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.about-header h2 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #e6edff;
}

.about-header .slash {
  color: #8ab4ff;
  margin-right: 0.3rem;
}

.divider {
  flex-grow: 1;
  height: 1px;
  background: linear-gradient(to right, #22314a, transparent);
}

/* Content layout */
.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: start;
}

/* Text */
.about-text p {
  font-size: 0.7rem;
  line-height: 1.9;
  margin-bottom: 1.5rem;
  color: #b9c4d6;
}

.about-text strong {
  color: #8ab4ff;
  font-weight: 600;
}

/* Subtitle */
.about-subtitle {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #e6edff;
}

/* Tech list */
.tech-list {
  list-style: none;
  columns: 2;
  padding-left: 0;
  margin-bottom: 2rem;
}

.tech-list li {
  font-size: 0.65rem;
  margin-bottom: 0.6rem;
  color: #9fb4d9;
}

/* Footer line */
.about-footer {
  font-size: 0.65rem;
  opacity: 0.85;
}

/* Image */

.about-image {
  max-width: 300px;
  margin-left: auto;
}

.about-image img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}


@media (max-width: 900px) {
  .about-content {
    grid-template-columns: 1fr;
  }

  .about-image {
    max-width: 280px;
    margin: 0 auto;
  }
}

.card-tech {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.55rem;
  letter-spacing: 0.05em;
  color: #3ce6c0;
}

/* Projects Section */
.projects-section {
  padding: 6rem 10%;
  background: linear-gradient(180deg, #5c94fc, #4a7dd8);
  color: #ffffff;
  scroll-margin-top: 70px;
}

/* Section Header */
.section-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
}

.section-header .slash {
  color: #f7c600;
  margin-right: 0.3rem;
}

/* Featured Project */
.featured-project {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
  border: 3px solid rgba(255, 255, 255, 0.3);
  padding: 3rem;
  margin-bottom: 3rem;
  border-radius: 8px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.featured-project:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.5);
}

.featured-overlay {
  text-align: left;
}

.project-title {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: #f7c600;
}

.project-desc {
  font-size: 0.7rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: #e8f0ff;
}

.project-tech {
  display: block;
  font-size: 0.55rem;
  letter-spacing: 0.05em;
  color: #3ce6c0;
  margin-bottom: 1.5rem;
}

.project-links {
  display: flex;
  gap: 1rem;
}

.project-links a {
  padding: 0.75rem 1.5rem;
  border: 2px solid #ffffff;
  text-decoration: none;
  color: #ffffff;
  font-size: 0.6rem;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.project-links a:hover {
  transform: translateY(-3px);
  background-color: rgba(255, 255, 255, 0.2);
}

/* Project Grid */
.project-grid {
  display: none;
}

@media (max-width: 768px) {
  .projects-section {
    padding: 4rem 5%;
  }

  .featured-project {
    padding: 2rem;
  }

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

/* Experience Section */
.experience-section {
  padding: 6rem 10%;
  background: linear-gradient(180deg, #0b1c2d, #081421);
  color: #cfd8e3;
  scroll-margin-top: 70px;
}

.experience-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.experience-header h2 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #e6edff;
  white-space: nowrap;
}

.experience-header .slash {
  color: #8ab4ff;
  margin-right: 0.3rem;
}

.experience-container {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 4rem;
  align-items: start;
}

.experience-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 2px solid #22314a;
}

.company-tab {
  padding: 1rem 1.5rem;
  font-size: 0.65rem;
  color: #7a8ba3;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  border-left: 2px solid transparent;
  margin-left: -2px;
  font-family: "Press Start 2P", monospace;
}

.company-tab:hover {
  color: #3ce6c0;
  background: rgba(60, 230, 192, 0.05);
}

.company-tab.active {
  color: #3ce6c0;
  border-left: 2px solid #3ce6c0;
  background: rgba(60, 230, 192, 0.05);
}

.experience-content {
  min-height: 300px;
}

.job-title {
  font-size: 0.9rem;
  color: #e6edff;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.job-title .company-name {
  color: #3ce6c0;
}

.job-date {
  font-size: 0.6rem;
  color: #7a8ba3;
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.job-details {
  list-style: none;
  padding-left: 0;
}

.job-details li {
  font-size: 0.65rem;
  line-height: 1.8;
  color: #9fb4d9;
  margin-bottom: 1.2rem;
  padding-left: 1.5rem;
  position: relative;
}

.job-details li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: #3ce6c0;
  font-size: 0.8rem;
}

@media (max-width: 768px) {
  .experience-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .experience-sidebar {
    flex-direction: row;
    overflow-x: auto;
    border-left: none;
    border-bottom: 2px solid #22314a;
  }

  .company-tab {
    border-left: none;
    border-bottom: 2px solid transparent;
    margin-left: 0;
    margin-bottom: -2px;
    white-space: nowrap;
  }

  .company-tab.active {
    border-left: none;
    border-bottom: 2px solid #3ce6c0;
  }
}