/* Focus styles for accessibility */
*:focus {
  outline: 2px solid #ff5400;
  outline-offset: 2px;
}

a:focus,
button:focus {
  outline: 2px solid #ff5400;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Performance optimizations */
* {
  box-sizing: border-box;
}

img {
  image-rendering: -webkit-optimize-contrast;
}

/* Reduce unnecessary repaints */
.container {
  contain: layout style;
}

/* Optimize animations for slower networks */
@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;
}
.projectImg {
  width: 100%;
  border-radius: 20px;
}
.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;
  will-change: background-color;
}
.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;
  will-change: background-color;
}
.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: 24dvh;
}
.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;
  will-change: background-color;
}
.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: scroll;
  }
  .weblinks > a {
    font-size: 20px;
    padding: 18px;
    border-radius: 20px;
  }
  .weblinks > div {
    font-size: 20px;
    padding: 18px;
    border-radius: 20px;
  }
  .weblinks::-webkit-scrollbar {
    display: none;
  }
  .skills {
    display: flex;
    overflow: scroll;
  }
  .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 {
    display: flex;
    overflow: scroll;
  }
  .weblinks > a {
    font-size: 20px;
    padding: 18px;
    border-radius: 20px;
  }
  .weblinks > div {
    font-size: 20px;
    padding: 18px;
    border-radius: 20px;
  }
  .weblinks::-webkit-scrollbar {
    display: none;
  }
  .skills {
    display: flex;
    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;
  }
  .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;
  }
  .projectImg {
    border-radius: 18px;
  }
  .contact {
    height: 20dvh;
  }
  .contactName {
    font-size: 32px;
    letter-spacing: -1.2px;
  }
  .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;
    width: 68px;
  }
  .companyPeriod {
    font-size: 18px;
  }
  .companySection {
    padding: 28px;
  }
  .companySkills {
    padding-bottom: 0%;
  }
  .skills {
    display: flex;
  }
  .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: center;
    flex-direction: column;
    gap: 10px;
    border-radius: 20px;
  }
  .contactName {
    font-size: 28px;
  }
  .companyLogo img {
    max-width: 60px;
    max-height: 60px;
  }
  .contactEmail {
    font-size: 14px;
  }
  /* Fix mobile order to ensure company always appears before experience */
  .experience .alternate-left,
  .experience .alternate-right {
    order: initial;
  }

  .experience .companySection {
    order: 1 !important;
  }

  .experience .experienceSection {
    order: 2 !important;
  }
}
.alternate-left {
  order: 1;
}
.alternate-right {
  order: 2;
}
.easterEgg {
  color: black;
  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: 60px;
    left: 0;
    background-color: #000;
    width: 100%;
    z-index: 1000;
    padding: 16px;
    border-radius: 20px;
  }

  .pageLinks.active {
    display: flex;
  }
}
