*:focus {
  outline: 2px solid #ff5400;
  outline-offset: 2px;
}

a:focus,
button:focus {
  outline: 2px solid #ff5400;
  outline-offset: 2px;
  border-radius: 4px;
}

* {
  box-sizing: border-box;
}

img {
  image-rendering: -webkit-optimize-contrast;
}

.container {
  contain: layout style;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Design inspired by BentoGrid and Rabbit R1 */
body {
  margin: 0;
  padding: 0;
  background-color: #131315;
  font-family: "Inter Display", sans-serif;
}

::selection {
  background-color: #131315;
  color: #fff;
}

html {
  scroll-behavior: smooth;
}

.container {
  display: flex;
  flex-direction: column;
  padding-top: 40px;
  padding-bottom: 40px;
  padding-left: 16%;
  padding-right: 16%;
  gap: 10px;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #000;
  color: #fff;
  padding: 16px;
  padding-left: 40px;
  padding-right: 40px;
  border-radius: 44px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.8px;
}

.pageLinks {
  display: flex;
  align-items: center;
  gap: 36px;
  color: #8a8a93;
}

.pageLinks a {
  font-size: 18px;
  display: flex;
  color: #8a8a93;
  font-weight: 600;
  text-decoration: none;
}

.pageLinks :hover {
  color: #fff;
  transition: ease-in-out 0.4s;
  cursor: pointer;
}

.about {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.aboutHeading {
  color: #ff5400;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 2px;
  padding-bottom: 20px;
}

.nameSection {
  flex-grow: 2;
  background-color: #000;
  color: #8a8a93;
  padding: 40px;
  border-radius: 20px;
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -2px;
  width: 400px;
}

.nameSection span {
  color: #fff;
}

.aboutSection {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 40px;
  background-color: #000;
  color: #fff;
  padding: 20px;
  border-radius: 20px;
  font-size: 56px;
  font-weight: 600;
  letter-spacing: -3px;
}

.myPic {
  height: 280px;
  border-radius: 16px;
}

.fieldName {
  color: #8a8a93;
  font-size: 36px;
}

.skills {
  display: flex;
  gap: 10px;
}

.skillSection {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-direction: column;
  padding: 32px;
  background-color: #000;
  color: #fff;
  border-radius: 20px;
  flex-grow: 1;
}

.skillHeader {
  font-size: 44px;
  color: #fff;
  padding-bottom: 20px;
  font-weight: 600;
  letter-spacing: -1.4px;
}

.skillName {
  color: #ccc;
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -1px;
}

.experience {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.experienceSection {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  flex-direction: column;
  width: 68%;
  gap: 10px;
}

.experienceItem {
  background-color: #000;
  flex-grow: 1;
  display: flex;
  justify-content: center;
  flex-direction: column;
  border-radius: 20px;
  padding: 32px;
  gap: 20px;
}

.experienceName {
  color: #fff;
  font-size: 32px;
  font-weight: 600;
}

.experienceDesc {
  color: #d9d9d9;
  font-size: 24px;
  font-weight: 600;
}

.companySection {
  flex-grow: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-direction: column;
  background-color: #000;
  color: #fff;
  border-radius: 20px;
  font-weight: 600;
  padding: 32px;
}

.experienceheading {
  color: #ff5400;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 2px;
  padding-bottom: 20px;
}

.companyName {
  font-size: 44px;
  padding-bottom: 20px;
  letter-spacing: -1.4px;
}

.companySkills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 10px;
}

.companySkillName {
  font-size: 18px;
  text-align: center;
  background-color: #ff5400;
  padding: 8px;
  width: auto;
  border-radius: 10px;
}

.companyLogo {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.companyLogo img {
  max-width: 100px;
  max-height: 100px;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.companyPeriod {
  font-size: 24px;
  color: #8a8a93;
}

.projects {
  display: flex;
  align-items: center;
  flex-direction: column;
  background-color: #000;
  color: #fff;
  border-radius: 20px;
}

.projects a {
  text-decoration: none;
}

.projectHeader {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 32px;
}

.projectLink {
  height: 52px;
  background-color: #fff;
  border-radius: 50%;
  padding: 16px;
  rotate: 4deg;
  transition: all ease-in-out 0.2s;
}

.projectLink:hover {
  transform: scale(1.05);
  rotate: -8deg;
  cursor: pointer;
}

.projectName {
  font-size: 44px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -1.5px;
  padding-bottom: 16px;
}

.projectDesc {
  color: #d3d3d3;
  font-size: 22px;
  font-weight: 500;
  padding-top: 0;
  text-wrap: balance;
  width: 94%;
}

.blogContent {
  color: #d3d3d3;
  font-size: 22px;
  font-weight: 500;
  padding-top: 0;
  width: 100%;
  text-align: justify;
}

.blogsHeader {
  width: 100%;
  margin: 0 auto 10px auto;
  background-color: #000;
  color: #fff;
  border-radius: 20px;
  padding: 28px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.blogsTitle {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.4;
  color: #fff;
}

.blogsDesc {
  font-weight: 500;
}

.blogsHeader > div {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.blogsMore {
  font-size: 20px;
  font-weight: 500;
  text-decoration: none;
  color: #ff5400;
  transition: color 0.3s ease-in-out;
}

.blogsMore:hover {
  color: #e62500;
  text-decoration: underline;
}

.blogs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 10px;
  width: 100%;
  background-color: transparent;
}

.blogSection {
  display: flex;
  flex-direction: column;
  padding: 32px;
  background-color: #000;
  color: #fff;
  border-radius: 20px;
  text-decoration: none;
  position: relative;
  transition: transform 0.3s ease-in-out;
}

.blogSection:hover {
  transform: translateY(-5px);
}

.blogContentSection {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
  color: #fff;
}

.blogImage {
  width: 100%;
  padding-bottom: 60%;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  margin-bottom: 16px;
}

.blogImage img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}

.blogTitle {
  color: #fff;
  font-size: 22px;
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
}

.blogMeta {
  font-size: 16px;
  color: #8a8a93;
  font-weight: 500;
  margin-top: auto;
  padding-top: 16px;
}

.blogLinkArrow {
  position: absolute;
  bottom: 32px;
  right: 32px;
  height: 52px;
  background-color: #fff;
  border-radius: 50%;
  padding: 16px;
  rotate: 4deg;
  transition: all ease-in-out 0.2s;
}

.blogSection:hover .blogLinkArrow {
  transform: scale(1.05);
  rotate: -8deg;
}

.weblinks {
  display: flex;
  gap: 10px;
}

.weblinks a {
  text-decoration: none;
}

.webLink {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #000;
  color: #fff;
  border-radius: 36px;
  font-size: 24px;
  font-weight: 500;
  flex-grow: 1;
  padding: 16px;
}

.webLink:hover {
  background-color: #ff5400;
  transition: all ease-in-out 0.6s;
  cursor: pointer;
}

.webEmailLink {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #ff5400;
  color: #fff;
  border-radius: 36px;
  font-size: 24px;
  font-weight: 500;
  flex-grow: 1;
  padding: 16px;
}

.webEmailLink:hover {
  background-color: #e62500;
  transition: all ease-in-out 0.4s;
  cursor: pointer;
}

.contact {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-direction: column;
  background-color: #000;
  color: #fff;
  padding: 20px;
  border-radius: 20px;
  height: 30dvh;
}

.contactName {
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -1.6px;
}

.contactButton {
  text-align: center;
  background-color: #ff5400;
  padding: 20px;
  border-radius: 40px;
  width: 25%;
  color: #fff;
  font-size: 22px;
  font-weight: 600;
  text-decoration: none;
}

.contactButton:hover {
  background-color: #e62500;
  transition: all ease-in-out 0.4s;
}

.contactButton button {
  text-decoration: none;
  color: #fff;
  font-size: 36px;
  background-color: #fff0;
  border: none;
  cursor: pointer;
  letter-spacing: -1px;
  font-weight: 500;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #000;
  color: #fff;
  padding: 16px;
  padding-left: 40px;
  padding-right: 40px;
  border-radius: 44px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.8px;
}

.footerRight {
  font-size: 18px;
  color: #8a8a93;
}

@media (max-width: 1450px) {
  .container {
    padding-top: 20px;
    padding-bottom: 20px;
    padding-left: 4%;
    padding-right: 4%;
  }

  .about {
    flex-direction: column;
  }

  .nameSection {
    padding: 32px;
    font-size: 32px;
    letter-spacing: -1px;
    width: auto;
  }

  .aboutSection {
    gap: 24px;
    padding: 20px;
    font-size: 40px;
    letter-spacing: -2px;
    text-align: center;
    flex-direction: row;
    justify-content: center;
  }

  .fieldName {
    font-weight: 300;
    font-size: 28px;
  }

  .weblinks {
    display: flex;
    overflow-x: auto;
  }

  .weblinks > a {
    font-size: 20px;
    padding: 18px;
    border-radius: 20px;
    white-space: nowrap;
  }

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

  .skills {
    display: flex;
    overflow-x: auto;
  }

  .skills > .skillSection {
    min-width: 300px;
  }

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

  .companySkills {
    padding-bottom: 0%;
  }

  .companyLogo img {
    max-width: 80px;
    max-height: 80px;
  }
}

@media (max-width: 600px) {
  .container {
    padding-top: 20px;
    padding-bottom: 20px;
    padding-left: 2%;
    padding-right: 2%;
  }

  .navbar {
    padding-left: 28px;
    padding-right: 28px;
  }

  .pageLinks {
    display: none;
  }

  .about {
    flex-direction: column;
  }

  .aboutSection {
    gap: 12px;
    padding: 20px;
    font-size: 28px;
    letter-spacing: -1px;
    text-align: center;
    flex-direction: column;
  }

  .nameSection {
    padding: 24px;
    font-size: 24px;
    letter-spacing: -1px;
    width: auto;
  }

  .myPic {
    height: 220px;
  }

  .fieldName {
    font-size: 22px;
  }

  .weblinks > a {
    font-size: 18px;
    padding: 16px;
  }

  .skills {
    flex-direction: column;
  }

  .skills > div {
    font-size: 32px;
  }

  .projects {
    position: relative;
    padding: 12px;
  }

  .projectHeader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: column;
    padding: 20px;
    text-align: center;
  }

  .projectLink {
    position: absolute;
    bottom: 24px;
    right: 20px;
    height: 40px;
    padding: 12px;
    z-index: 1;
  }

  .projectName {
    font-size: 28px;
    letter-spacing: -1px;
  }

  .projectDesc {
    font-size: 18px;
    width: 100%;
    line-height: 1.4;
  }

  .blogsHeader {
    flex-direction: column;
    gap: 16px;
    text-align: center;
    padding: 24px;
  }

  .blogsTitle {
    font-size: 20px;
  }

  .blogs {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

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

  .blogSection {
    min-width: 280px;
    padding: 28px;
    scroll-snap-align: start;
  }

  .blogTitle {
    font-size: 20px;
  }

  .blogMeta {
    font-size: 14px;
  }

  .blogLinkArrow {
    height: 40px;
    padding: 12px;
    bottom: 28px;
    right: 28px;
  }

  .contact {
    height: 20dvh;
  }

  .contactName {
    font-size: 32px;
    letter-spacing: -1.2px;
    text-align: center;
  }

  .contactButton {
    width: 88%;
  }

  .contactButton button {
    font-size: 20px;
    letter-spacing: 0;
  }

  .experience {
    flex-direction: column;
  }

  .experienceSection {
    width: 100%;
  }

  .experienceName {
    font-size: 24px;
  }

  .experienceDesc {
    font-size: 20px;
  }

  .companyName {
    font-size: 28px;
    padding-bottom: 16px;
    letter-spacing: -1px;
  }

  .companySkillName {
    font-size: 16px;
    padding: 8px 12px;
    width: auto;
    max-width: 100%;
    word-break: break-word;
  }

  .companyPeriod {
    font-size: 18px;
  }

  .companySection {
    padding: 28px;
  }

  .companySkills {
    padding-bottom: 0%;
  }

  .skillSection {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
    padding: 28px;
  }

  .skillHeader {
    font-size: 28px;
    padding-bottom: 0;
    letter-spacing: -1px;
  }

  .skillNameSection {
    text-align: end;
  }

  .skillName {
    font-size: 22px;
    letter-spacing: -1px;
  }

  .footer {
    justify-content: space-between;
    flex-direction: row;

    gap: 10px;
    border-radius: 20px;
    text-align: center;
  }

  .contactName {
    font-size: 28px;
  }

  .companyLogo img {
    max-width: 60px;
    max-height: 60px;
  }

  .contactEmail {
    font-size: 14px;
  }

  .experience .companySection {
    order: 1 !important;
  }

  .experience .experienceSection {
    order: 2 !important;
  }
}

.alternate-left {
  order: 1;
}

.alternate-right {
  order: 2;
}

.easterEgg {
  color: #000;

  user-select: none;
  cursor: pointer;
}

.contactEmail {
  color: #d3d3d3;
  font-size: 18px;
  font-weight: 500;
}

.contactEmail a {
  color: #d3d3d3;
  text-decoration: none;
}

.contactEmail a:hover {
  text-decoration: underline;
}

.hamburger {
  display: none;
  font-size: 24px;
  cursor: pointer;
  color: #fff;
  padding: 12px;
  background-color: #000;
  border-radius: 20px;
  transition: background-color 0.3s;
}

.hamburger:hover {
  background-color: #ff5400;
}

@media (max-width: 600px) {
  .hamburger {
    display: block;
  }

  .pageLinks {
    display: none;
    flex-direction: column;
    gap: 10px;
    position: absolute;
    top: 80px;
    left: 2%;
    right: 2%;
    background-color: #000;
    width: 96%;
    z-index: 1000;
    padding: 16px;
    border-radius: 20px;
  }

  .pageLinks.active {
    display: flex;
  }
}
