* {
  margin: 0;
  padding: 0%;
  box-sizing: border-box;
  font-size: 18px;
  font-family: "DM Sans", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}

html {
  font-size: 62.5%;
}

:root {
  --color-background: #fffdf9;
  --color-brand-light: #f66658;

  /* Text variables */
  --text-strong-light: #1a203d;
  --text-weak-light: #595f7a;
}

/* Helper class */
.m-auto {
    margin: 0 auto;
}

.mt-sm {
    margin-top: 1.6rem;
}

/* Helper class end*/

.content {
  max-width: 1110px;
  margin: 0 auto;
}

.p-60 {
  padding: 6rem 0;
}

/* Hero Section */

.hero-section {
  background-color: var(--color-background);
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 40px;
}

.links {
  color: var(--color-brand-light);
}

.links:hover {
  background-color: #3e30ce;
  color: #ffffff;
}

a {
  text-underline-offset: 0.6rem;
}

.hero-content {
  display: flex;
  padding: 6rem 0;
}

.hero-content .hero-content-left {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 920px;
}

h1 {
  font-size: 4.8rem;
  font-family: "Lora", sans-serif;
  line-height: 5.7rem;
  color: var(--text-strong-light);
}

.hero-content-subheading {
  font-size: 2.4rem;
  line-height: 38px;
  color: var(--text-strong-light);
}

.hero-content-right {
  position: relative;
}

.hero-content-right .cursor {
  position: absolute;
  top: 100px;
}

h2 {
  font-size: 4rem;
  color: var(--text-strong-light);
}

h3 {
  font-size: 2.4rem;
  line-height: 3rem;
  color: var(--text-strong-light);
}

/* Project Section */

.project-heading {
  margin-bottom: 3.2rem;
}

.projects-section {
  padding: 6rem 0;
}

.projects {
  display: flex;
  flex-direction: column;
  row-gap: 4.8rem;
}

.projects .casestudy_links {
  text-decoration: none;
}

.project {
  display: flex;
  justify-content: space-between;
  gap: 32px;
}

.project .project-content {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  max-width: 52rem;
}

.project-content .company {
  font-size: 1.6rem;
  /* font-weight: bold; */
  color: var(--color-brand-light);
}

.project-content .casestudy_desc {
  /* font-size: 1.8rem; */
  color: var(--text-strong-light);
  line-height: 3rem;
}

.project-content .readmore {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-strong-light);
  /* text-decoration: underline; */
  border-bottom: 1px solid transparent; /* hidden underline initially */
  transition: border-color 0.3s ease;
  max-width: fit-content;
  transform: translateX(-32px);
}

.readmore:hover {
  border-color: currentColor; /* underline appears */
  transform: translateX(0px);
  transition: all 0.3s ease;
}

.readmore .arrow-icon {
  opacity: 0;
}

.readmore:hover .arrow-icon {
  opacity: 1;
}

.thumbnail img {
  border-radius: 16px;
  width: 100%;
}

/* Delete if not */
.others {
  border-radius: 16px;
  height: 25rem;
  background-color: #f5f6fa;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.others .others-text {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  padding-left: 6rem;
}

.others .others-text .company {
  font-size: 1.6rem;
  color: var(--color-brand-light);
}

.viewmore {
  color: var(--text-strong-light);
}

.viewmore:hover {
  background-color: #3e30ce;

  h3 {
    color: #ffffff;
  }
}

.arrow-links {
  display: inline-flex;
}
.arrow-link {
  position: relative;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  border-bottom: 1px solid var(--text-strong-light);
  gap: 0; /* no gap initially */
  overflow: hidden; /* hides the offscreen arrow */
}

.arrow-link .arrow-icon {
  color: var(--text-strong-light);
  opacity: 0;
  transform: translateX(-8px);
  width: 0; /* takes no space */
  margin-left: 0; /* no gap before hover */
  transition: opacity 0.3s ease, transform 0.3s ease, width 0.3s ease,
    margin-left 0.3s ease;
}

/* hover state: slide in + fade in */
.arrow-link:hover .arrow-icon {
  opacity: 1;
  transform: translateX(0);
  width: 24px; /* reveal actual width */
  margin-right: 4px; /* add spacing between text and icon */
}

.arrow-links-text {
  color: var(--text-strong-light);
}

.others img {
  object-fit: cover;
  overflow: hidden;
  border-radius: 16px;
}

/* Experience section */
.experience-heading {
  margin-bottom: 3.2rem;
}

.experience-section {
  background-color: var(--color-background);
  padding: 6rem 0;
}

.exp-grid {
  display: grid;
  column-gap: 50px;
  grid-template-columns: auto auto;
  row-gap: 4.8rem;
}

.exp-grid .project-content {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.exp-grid .project-content .company {
  font-size: 1.6rem;
  /* color: var(--color-brand-light); */
  color: #3e30ce;
}

.exp-grid .project-content .description {
  font-size: 1.8rem;
}

/* Footer */
.footer {
  padding: 4rem;
}

.my-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.my-info p {
  font-size: 1.8rem;
}

.my-info .location {
  display: flex;
  align-items: center;
  gap: 16px;
}

.copyright {
  margin-top: 2.4rem;
  font-size: 1.6rem;
  color: var(--text-weak-light);
}

/* Tablet and smaller */
@media (max-width: 1024px) {
  .content {
    padding: 0 2.4rem;
  }
}

/* Mobile only */
@media (max-width: 768px) {
  h1 {
    font-size: 4rem;
    line-height: 4.8rem;
  }

  h2 {
    font-size: 3.2rem;
    line-height: 4.8rem;
  }

  .hero-content {
    padding: 4rem 0;
  }

  .header {
    padding-top: 2.4rem;
  }

  .hero-content-subheading {
    font-size: 2rem;
    /* line-height: 38px; */
  }

  .hero-content-right {
    display: none;
  }

  .project {
    flex-direction: column;
    gap: 24px;
  }

  .project .project-content {
    max-width: none;
  }

  /* Project section*/
  .projects-section {
    padding: 4rem 0;
  }

  .others .others-text {
    padding-left: 2.4rem;
    padding-top: 2.4rem;
  }

  .others {
    flex-direction: column;
    align-items: flex-start;
    gap: 2.4rem;
  }

  .others img {
    width: 100%;
  }

  /* Experience */

  .experience-section {
    padding: 4rem 0;
  }

  .exp-grid {
    grid-template-columns: auto;
    row-gap: 4.8rem;
  }

  /* Footer section */
  .footer {
    padding: 2.8rem;
  }

  .my-info {
    flex-direction: column;
    justify-content: space-between;
    gap: 0.8rem;
  }

  .copyright {
    text-align: center;
  }
}
