@font-face {
  font-family: 'PixelTandysoft';
  src: url('fonts/Pixel.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

::-webkit-scrollbar {
  display: none;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, sans-serif;
  image-rendering: pixelated;
}

.progressContainer {
  position: fixed;
  top: 0;
  z-index: 1000;
  width: 100%;
  height: 12px;
  background: #000;
}

.progressBar {
  height: 100%;
  background: #E83B3B;
  width: 0%;
  transition: width 0.1s ease-out;
}

.gridBackground {
  position: relative;
  background-color: #ffffff;
  background-image:
    linear-gradient(#e5e7eb 1px, transparent 1px),
    linear-gradient(90deg, #e5e7eb 1px, transparent 1px);
  background-size: 40px 40px;
  min-height: 100vh;
}

#heroSection {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  height: 100vh;
  gap: 60px;
  padding: 0 20px;
  box-sizing: border-box;
}

#heroText,
#heroImage img {
  animation: float 3s ease-in-out infinite;
}

#heroText {
  font-size: 4rem;
  color: #333333;
  margin: 0;
  line-height: 1;
  font-family: 'PixelTandysoft', Roboto;
  text-shadow: 4px 4px 0px #d3d3d3;
}

#heroImage img {
  max-width: 400px;
  width: 100%;
  height: auto;
}

.btn {
  display: inline-block;
  font-family: 'PixelTandysoft', Roboto;
  font-size: 1rem;
  color: #000000;
  text-decoration: none;
  padding: 10px 20px;
  border: 2px solid #000000;
  background: white;
  transition: all 0.2s ease;
}

.btn:hover {
  background-color: #f0f0f0;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-15px);
  }
}

#about {
  height: 100vh;
}

#about,
#contact {
  padding: 100px 20px;
  background-color: #ffffff;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
  box-shadow: inset 0 20px 20px -20px rgba(0, 0, 0, 0.1), inset 0 -15px 30px -15px rgba(0, 0, 0, 0.05);
}

#nameText {
  font-family: 'PixelTandysoft', sans-serif;
  font-size: 5rem;
  text-align: center;
  color: #000;
  margin-bottom: 50px;
  text-shadow: 4px 4px 0px #d3d3d3;
  letter-spacing: 4px;
}

.aboutContainer {
  max-width: 900px;
  width: 100%;
}

#aboutLayout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.topRow {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 40px;
  width: 100%;
}

.card {
  width: 200px;
  height: 250px;
  perspective: 1000px;
  flex-shrink: 0;
}

.cardInner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.card.flipped .cardInner {
  transform: rotateY(180deg);
}

.cardFront,
.cardBack {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
  overflow: hidden;
}

.cardFront {
  background: white;
  padding: 10px 10px 30px;
}

.cardFront img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cardBack {
  background: #f8fafc;
  color: #333;
  transform: rotateY(180deg);
  font-family: 'PixelTandysoft', sans-serif;
  padding: 10px;
}

.signatureContainer {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.signatureContainer img {
  max-width: 100%;
  max-height: 70%;
  object-fit: contain;
}

.note {
  font-family: 'PixelTandysoft', sans-serif;
  font-size: 0.8rem;
  margin-top: 10px;
  color: #000;
}

.contentBox {
  flex: 1;
  padding: 30px;
  background: #fff;
  line-height: 1.6;
}

.tagLine {
  font-family: monospace;
  color: #6b7280;
  margin: 0;
}

.dialogueRow {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  margin-top: 30px;
  width: 100%;
}

.pixelSprite {
  width: 150px;
  height: auto;
  image-rendering: pixelated;
  display: block;
}

.dialogueBox {
  flex: 1;
  border: 4px solid #000;
  padding: 20px;
  background: #fff;
  position: relative;
  min-height: 120px;
}

.dialogueHeader {
  position: absolute;
  top: -15px;
  left: 10px;
  background: #000;
  color: #fff;
  padding: 0 10px;
  font-family: 'PixelTandysoft', sans-serif;
  font-size: 1rem;
  z-index: 5;
}

.dialogueContent {
  position: relative;
  font-family: 'PixelTandysoft', sans-serif;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #000;
  min-height: 80px;
  display: flex;
  align-items: flex-start;
}

.msg {
  margin: 0;
  display: none;
  -webkit-mask-image: linear-gradient(to right, #000 50%, transparent 50%);
  mask-image: linear-gradient(to right, #000 50%, transparent 50%);
  -webkit-mask-size: 200% 100%;
  mask-size: 200% 100%;
  -webkit-mask-position: 100% 0;
  mask-position: 100% 0;
}

.defaultMsg {
  display: block;
  animation: typewriterReveal 3s steps(100) forwards;
}

.msg.active {
  display: block;
  animation: typewriterReveal 3s steps(100) forwards;
}

@keyframes typewriterReveal {
  from {
    -webkit-mask-position: 100% 0;
    mask-position: 100% 0;
  }

  to {
    -webkit-mask-position: 0% 0;
    mask-position: 0% 0;
  }
}

.dialogueOptions {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  position: relative;
  z-index: 10;
}

.option {
  cursor: pointer;
  font-family: 'PixelTandysoft', sans-serif;
  font-size: 0.8rem;
  color: #555;
  transition: color 0.2s;
}

.option:hover {
  color: #000;
  text-decoration: underline;
}

.typewriterWrapper {
  display: none;
}

#skillsAndExperience {
  padding: 80px 20px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  gap: 40px;
  min-height: 100vh;
}

#skillsContainer,
#experienceContainer {
  flex: 1;
}

#skillsContainer {
  border-right: 2px solid #000;
  padding-right: 40px;
}

.skillsHeader,
.experienceHeader,
.projectsHeader {
  background: #fff;
  border: 2px solid #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px;
  margin-bottom: 30px;
}

.skillsHeader h2,
.experienceHeader h2,
.projectsHeader h2 {
  font-family: 'PixelTandysoft', sans-serif;
  font-size: 2.5rem;
  margin: 0;
  color: #000;
}

.skillsGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.skillBox,
.expItem {
  border: 2px solid #000;
  background: #fff;
  transition: all 0.2s ease;
}

.skillBox {
  padding: 25px;
  display: flex;
  flex-direction: column;
}

.skillBox h3 {
  font-family: 'PixelTandysoft', sans-serif;
  font-size: 1rem;
  margin: 0 0 20px;
  color: #333;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 10px;
}

.skillBox ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.skillBox li {
  display: flex;
  align-items: center;
  font-size: 1rem;
  margin-bottom: 12px;
  font-weight: 500;
}

.skillBox i {
  font-size: 1.4rem;
}

.experienceList {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.expItem {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.expMain {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px;
}

.jobTitle {
  font-family: 'PixelTandysoft', sans-serif;
  font-size: 1.2rem;
  color: #000;
}

.company {
  font-weight: 700;
  font-size: 1rem;
  padding: 2px 8px;
}

.expDate {
  font-family: monospace;
  font-size: 0.9rem;
  color: #6b7280;
  border-top: 1px dashed #e5e7eb;
  padding-top: 8px;
  display: block;
}

#projects {
  padding: 80px 20px;
  margin: 0 auto;
  display: block;
  max-width: 1000px;
  min-height: 100vh;
}

.projectsGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
}

.projectCard {
  background: #fff;
  border: 2px solid #000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
}

.projectImageContainer {
  width: 100%;
  height: 140px;
  border-bottom: 2px solid #000;
}

.projectImageContainer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}

.projectInfo {
  padding: 15px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.projectTitle {
  font-family: 'PixelTandysoft', sans-serif;
  font-size: 1.1rem;
  margin: 0 0 8px 0;
}

.projectDescription {
  font-size: 0.85rem;
  line-height: 1.4;
  margin-bottom: 12px;
}

.projectFooter {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.projectFooter i {
  font-size: 1.3rem;
}

.pixelBtn {
  font-family: 'PixelTandysoft', sans-serif;
  font-size: 0.7rem;
  text-decoration: none;
  color: #000;
  border: 1px solid #000;
  padding: 4px 8px;
  background: #fff;
}

.pixelBtn:hover {
  background: #f0f0f0;
}

#contact {
  padding: 30px 20px;
  max-width: 600px;
  margin: 0 auto 20px;
  flex-direction: column;
  border: 2px solid #000;
}

.contactHeader {
  background: #fff;
  border: 2px solid #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px;
  margin-bottom: 30px;
}

.contactHeader h2 {
  font-family: 'PixelTandysoft', sans-serif;
  font-size: 2.5rem;
  margin: 0;
  color: #000;
}

.contactContainer {
  display: flex;
  justify-content: center;
}

.contactBox {
  background: #fff;
  padding: 40px;
  text-align: center;
  width: 100%;
}

.contactBox h3 {
  font-family: 'PixelTandysoft', sans-serif;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.contactLinks {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.contactItem {
  text-decoration: none;
  color: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: transform 0.2s;
}

.contactItem:hover {
  transform: scale(1.1);
  color: #4b5563;
}

.contactItem i {
  font-size: 2.5rem;
}

.contactItem span {
  font-family: 'PixelTandysoft', sans-serif;
  font-size: 0.8rem;
}

#weatherBox {
  border: 2px solid #000;
  background: #fff;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 40px auto 0 auto;
  width: fit-content;
  position: relative;
  clear: both;
}

#weatherMe {
  width: 100px;
  height: auto;
  image-rendering: pixelated;
}

#weatherInfo {
  font-family: 'PixelTandysoft', sans-serif;
  color: #000;
}

#weatherInfo p {
  margin: 5px 0;
}

#title {
  font-size: 1.2rem;
  font-weight: bold;
}

#city {
  font-size: 0.8rem;
  color: #6b7280;
  text-transform: uppercase;
}

#temp {
  font-size: 1rem;
  font-weight: bold;
}

#desc {
  font-size: 0.9rem;
  text-transform: capitalize;
}

@media (max-width: 768px) {
  #about {
    height: auto;
    padding-bottom: 60px;/
  }

  .topRow {
    flex-direction: column;
    text-align: center;
  }

  #nameText {
    font-size: 3rem;
  }

  .dialogueRow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .dialogueBox {
    width: 100%;
    min-height: 200px;
    height: auto;
  }

  .dialogueOptions {
    position: relative;
    bottom: 0;
    left: 0;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
  }

  #weatherBox {
    margin-bottom: 20px;
    width: 90%;
    max-width: 320px;
  }

  #weatherMe {
    width: 60px;
  }

  .skillsGrid,
  .projectsGrid {
    grid-template-columns: 1fr;
  }

  #heroText {
    font-size: 2.5rem;
    text-align: center;
  }

  #skillsContainer {
    border-right: none;
    border-bottom: 2px solid #000;
    padding-right: 0;
    padding-bottom: 40px;
    margin-bottom: 40px;
  }

  #skillsAndExperience {
    flex-direction: column;
    align-items: stretch;
  }

  #heroImage img {
    max-width: 280px;
  }
}