@font-face {
  font-family: NeueMontreal;
  src: url("/fonts/PPNeueMontreal-Medium.otf");
}
@font-face {
  font-family: NeueMontreal;
  font-weight: 100;
  src: url("/fonts/PPNeueMontreal-Thin.otf");
}
@font-face {
  font-family: NeueMontreal;
  font-weight: 600;
  src: url("/fonts/PPNeueMontreal-SemiBolditalic.otf");
}
@font-face {
  font-family: NeueMontreal;
  font-weight: 800;
  src: url("/fonts/PPNeueMontreal-Bold.otf");
}
@font-face {
  font-family: NeueMontreal;
  font-weight: 100;
  src: url("/fonts/PPNeueMontreal-Thin.otf");
}

@font-face {
  font-family: silkserifLight;
  src: url("/fonts/silkserif-lightitalic-webfont.ttf");
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  color: white;
  font-family: NeueMontreal;
  color: black;
}

html,
body {
  height: 100%;
  width: 100%;
  cursor: none;
  background-color: white;
}
a {
  text-decoration: none;
}

/* CSS Styling for the Custom Cursor */
#cursor {
  mix-blend-mode: difference;
  position: relative;
  z-index: 999999999;
}
.circle {
  position: absolute;
  z-index: 999999999;
  height: 24px;
  width: 24px;
  border-radius: 24px;
  background-color: white;
  position: fixed;
  left: 0;
  right: 0;
  transform: translate(-50%, -50%);
  /* mix-blend-mode: difference; */
  pointer-events: none;
}

.link span {
  display: inline-block;
  transition: 0.25s ease-in-out;
  margin-left: 0.25rem;
}

.link:hover span {
  transform: translate(10%, -10%);
  color: #0fadad !important;
}

nav {
  top: 0;
  width: 100vw;
  position: fixed;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 10vh;
  padding: 3rem 3.5rem;
  background-color: white;
  z-index: 1000;
}
nav img {
  height: 1.3rem;
  margin-right: 1.6rem;
}
nav a {
  font-size: 0.75rem;
  font-weight: 400;
}
#left-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.8rem;
}
#left-nav a:hover {
  color: red;
}

#right-nav a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 3rem;
  width: 10rem;
  border-radius: 50px;
  border: 1px black solid;
  overflow: hidden;
  color: black;
  font-size: 0.8rem;
  font-weight: bold;
  transition-duration: 0.3s;
  transition-timing-function: ease-in;
}

#btn-text-1 {
  color: black;
  position: relative;
  z-index: 5;
  transition: 0.3s ease-in;
}
#right-nav a:hover #btn-text-1 {
  color: white;
}

.bg-circle {
  position: absolute;
  height: 25rem;
  width: 25rem;
  border-radius: 50%;
  background-color: black;
  margin-right: 1rem;
  pointer-events: none;
  scale: 0;
}

.page-number {
  font-family: silkserifLight;
  font-size: 2.4rem;
}

#page1 {
  padding: 3rem 3.5rem;
  padding-top: 10vh;
  width: 100%;
}

#pgNo01 {
  width: 100%;
  margin: auto;
  text-align: center;
  border-left: 1.5px solid black;
  border-right: 1.5px solid black;
  margin-top: 7vh;
  padding: 1.25rem 0;
}

#title .line {
  overflow: hidden;
  height: 7.5rem;
}

#title h1 {
  text-align: center;
  font-size: 7rem;
  font-weight: 400;
  line-height: 7rem;
  letter-spacing: -0.2rem;
}

#homepage-footer {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 23vh;
}

#homepage-footer .left {
  display: flex;
  width: 35rem;
  justify-content: space-between;
  border-left: 1.5px solid black;
  border-right: 1.5px solid black;
  padding: 1rem 1.5rem;
}
#homepage-footer .left p {
  font-size: 1rem;
  width: 22rem;
}

#homepage-footer .left a {
  position: relative;
  background-color: black;
  height: 3rem;
  width: 11rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50px;
  font-weight: 800;
  font-size: 1rem;
  overflow: hidden;
  transition: 0.3s ease-in;
  border: 1px black solid;
}
#btn-text-0 {
  color: white;
  position: relative;
  z-index: 5;
  transition: 0.3s ease-in;
}
#homepage-footer .left a:hover #btn-text-0 {
  color: black;
}
#bg-circle-0 {
  background-color: white;
}

#homepage-footer .right {
  width: 35rem;
  border-left: 1.5px solid black;
  border-right: 1.5px solid black;
  padding: 0 1.25rem;

  overflow: hidden;
}
#products-sm {
  display: flex;
  justify-content: space-between;
  gap: 5rem;
}
#homepage-footer .right a {
  display: flex;
}

#product-sm-img {
  position: relative;
  height: 5rem;
  margin-right: 2rem;
}

.dets {
  width: 20rem;
}
.dets h3 {
  font-size: 1.5rem;
}
.dets p {
  font-size: 0.8rem;
  max-width: 63vw;
}

#product-loadbars {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 0.5rem;
  width: 32.25rem;
  margin-top: 1rem;
}

.loadbar {
  position: relative;
  height: 0.15rem;
}

#loadbar1:hover,
#loadbar2:hover,
#loadbar3:hover,
#loadbar4:hover {
  height: 0.5rem;
}

.lower-loadbar,
.upper-loadbar {
  background-color: black;
  width: 7.75rem;
  height: inherit;
}

.lower-loadbar:hover,
.upper-loadbar:hover {
  height: 0.5rem;
}

.lower-loadbar {
  background-color: rgba(0, 0, 0, 0.4);
}
.upper-loadbar {
  width: 0;
  /* width: 7rem; */
  transform: translateY(-100%);
}

.active-loadbar {
  height: 0.5rem;
}

#case-studies-text {
  position: absolute;
  right: -1.2rem;
  bottom: 30%;
  transform: rotateZ(-90deg);
  font-size: 0.7rem;
}
.red-circle {
  display: inline-block;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 100%;
  margin-right: 1rem;
  background-color: red;
  transform: translateY(25%);
}

#page2 {
  background-color: black;
  padding: 6.5rem 4rem;
}

#page2 * {
  color: white;
}
#page2 h1 {
  font-size: 4rem;
  font-weight: 400;
  margin-bottom: 4rem;
}
#page2-body {
  margin-left: 55%;
  width: 36rem;
}
#page2-body p {
  font-weight: 100;
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

#page3 {
  background-color: white;
  padding: 6.5rem 4rem;
}

#pgNo03 {
  margin-left: 60%;
}

#page3 h1 {
  font-size: 4.2rem;
  font-weight: 400;
  width: 60rem;
  text-align: center;
  margin: auto;
  opacity: 0.8;
  line-height: 4rem;
  margin-bottom: 3rem;
}

#page3-body {
  margin-left: 60%;
}
#page3-body p {
  font-weight: 400;
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

#page4 {
  background-color: black;
  display: flex;
  justify-content: space-between;
  padding: 5rem 3.5rem;
}

#page4 * {
  color: white;
}

#thumbnail-div {
  position: relative;
}

#thumbnail-div img {
  height: 37rem;
  transform: rotateZ(-5deg);
}

#thumbnail-div #subheading {
  display: flex;
  justify-content: space-between;
  width: 23rem;
  font-size: 0.75rem;
  font-weight: 100;
  margin-left: 1.5rem;
}
#thumbnail-div #subheading .red-circle {
  margin: 0;
  transform: translateY(0);
  margin-left: 5px;
}

#thumbnail-div #heading {
  font-size: 2.2rem;
  margin-left: 1.5rem;
  margin-top: 1rem;
  font-weight: 400;
}

#conversion-rate {
  position: absolute;
  height: 10rem;
  width: 10rem;
  border-radius: 100%;

  transform: translateX(-30%);
  background-color: rgba(0, 0, 0, 0.784);
  top: 10%;
  left: 0;
  color: white;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
#conversion-rate h2 {
  font-size: 3rem;
  font-weight: 400;
}
#conversion-rate h3 {
  font-size: 0.7rem;
  text-align: center;
  font-weight: 400;
}

#bounce-rates {
  position: absolute;
  height: 10rem;
  width: 10rem;
  border-radius: 100%;

  transform: translateX(-60%);
  background-color: rgba(0, 0, 0, 0.784);
  top: 50%;
  left: 100%;
  color: white;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
#bounce-rates h2 {
  font-size: 3rem;
  font-weight: 400;
}
#bounce-rates h3 {
  font-size: 0.8rem;
  font-weight: 400;
  text-align: center;
}

#page4-body {
  margin-left: 25%;
  margin-top: 12.5%;
}

#page4-body h1 {
  font-size: 4rem;
  font-weight: 400;
  margin-bottom: 2.5rem;
  line-height: 4rem;
}
#page4-body p {
  font-weight: 100;
  font-size: 1.1rem;
  width: 22.5rem;
  margin-bottom: 1.5rem;
}

#page5 {
  display: flex;
  justify-content: space-between;
  padding: 4.5rem 3.5rem;
}

#pgNo05 {
  display: inline-block;
}

#page5-body h1 {
  display: inline-block;
  font-size: 4rem;
  font-weight: 400;
  width: 32.5rem;
  opacity: 0.8;

  margin-bottom: 1.5rem;
}

#page5-body p {
  font-size: 1rem;
  width: 25rem;
  margin-bottom: 1rem;
}

#page5-list {
  width: 40rem;
}

.list-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 0.75px rgba(0, 0, 0, 0.446) solid;
  padding: 1.5rem 0;
  font-size: 1.25rem;
}

.list-item img {
  position: absolute;
  right: 50%;
  height: 10rem;
  width: 10rem;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  border-radius: 2.5%;
  scale: 0;
}

.list-item .right {
  opacity: 0.25;
  transition: 0.3s ease-in-out;
}
.list-item:hover .right {
  opacity: 1;
}

#page6 {
  background-color: black;
  padding: 4rem 2rem;
}
#page6 * {
  color: white;
}

#pgNo06 {
  display: inline-block;
}
#page6-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#page6-header h1 {
  font-size: 2.5rem;
  font-weight: 400;
}

#view-all-btn-div {
  font-size: 3rem;
  font-weight: 100;
}

#view-all-btn-div span {
  font-family: silkserifLight;
  display: inline-block;
  font-size: 2rem;
  transform: translateY(-10%);
}

#view-all-btn-div a:hover {
  color: rgb(255, 41, 41);
}

#view-all-btn-div a span {
  display: inline-block;
  font-size: 3rem;
  transition: 0.25s ease-in-out;
}

#view-all-btn-div a:hover span {
  color: rgb(255, 41, 41);
  transform: translate(25%, -10%);
}

#project-grid {
  position: relative;
  padding-top: 4rem;
}

#project-grid-cursor {
  scale: 0;
  height: 7.5rem;
  width: 7.5rem;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 9999;
  background-color: white;
  border-radius: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
#project-grid-cursor h4 {
  color: black;
  font-weight: 400;
}

.project-slab {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.project-slab img {
  object-fit: cover;
  object-position: center;
}

#project-slab-1 {
  align-items: start;
}

#project-slab-2 {
  align-items: end;
}
#proj1-img {
  width: 45vw;
}
#proj2-img {
  height: 40vw;
}
#proj3-img {
  width: 40vw;
}
#proj4-img {
  width: 45vw;
}

#page7 {
  background-color: white;
  display: flex;
  padding: 6rem 3.5rem;
}
#page7-body h1 {
  font-size: 4rem;
  font-weight: 400;
  opacity: 0.8;
  margin-bottom: 2rem;
}
#page7-body p {
  font-size: 1rem;
  width: 23rem;
}
#partners-grid {
  margin-left: 20%;
  margin-top: 2.5%;
  width: 40rem;
  display: flex;
  flex-wrap: wrap;
  gap: 4rem;
  justify-content: space-between;
}
#partners-grid img {
  flex: 0 0 33.3%;
  max-width: 25%;
}

#footer {
  background-color: black;
  display: flex;
  justify-content: space-between;
  padding: 6rem 3.5rem;
}
#footer * {
  color: white;
}

#footer-left {
  padding-top: 9rem;
  display: flex;
  width: 35vw;
  position: relative;
  justify-content: space-between;
}

#footer-left div h3 {
  font-size: 0.8rem;
  font-weight: 100;
  margin-bottom: 2.5rem;
}

#footer-left div a {
  display: block;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 400;
  transition: 0.3s ease-in-out;
  margin-bottom: 1rem;

  &:hover {
    color: rgb(253, 59, 59);
  }
}

#footer-right {
  width: 45vw;
}
#footer-right * {
  color: white;
}

#footer-right h1 {
  font-size: 4rem;
  font-weight: 400;
  width: 35vw;
  margin-bottom: 4rem;
}
#footer-right h1 span {
  font-family: silkserifLight;
  font-size: 2.6rem;
}

#footer-right input,
#footer-right textarea {
  width: 100%;
  background-color: transparent;
  border: none;
  border-bottom: 1px white solid;
  padding: 0.75rem 0;
  margin-bottom: 0.75rem;

  &:focus {
    outline: none;
  }
}

#footer-right textarea {
  height: 7rem;
}

#footer-right input:nth-child(1) {
  margin-right: 1%;
}
#footer-right input:nth-child(1),
#footer-right input:nth-child(2) {
  width: 49%;
}

#footer-right button {
  background-color: transparent;
  border: 1px white solid;
  border-radius: 50px;
  padding: 0.7rem 2.5rem;
  transition: 0.3s ease-in-out;
  margin-top: 2rem;

  &:hover {
    background-color: white;
    color: black;
  }
}
#confirmationMessage {
  display: none;
}
#confirmationMessage h2 {
  font-size: 1.25rem;
  font-weight: 100;
  word-spacing: 0.1rem;
}
#reForm {
  margin-left: 57%;
}

/* ========================================
   RESPONSIVE DESIGN - MOBILE FIRST APPROACH
   ======================================== */

/* Disable custom cursor on touch devices */
@media (pointer: coarse) {
  html,
  body {
    cursor: auto;
  }

  #cursor {
    display: none;
  }

  .circle {
    display: none;
  }
}

/* Tablet Landscape: 1024px and down */
@media screen and (max-width: 1024px) {
  /* Navigation adjustments */
  nav {
    padding: 2rem 2.5rem;
  }

  nav img {
    height: 1.1rem;
  }

  #left-nav {
    gap: 2rem;
  }

  /* Page 1 - Hero Section */
  #page1 {
    padding: 2rem 2.5rem;
    padding-top: 10vh;
  }

  #title h1 {
    font-size: 5.5rem;
    line-height: 5.5rem;
  }

  #title .line {
    height: 6rem;
  }

  #homepage-footer {
    margin-top: 15vh;
  }

  #homepage-footer .left,
  #homepage-footer .right {
    width: 45%;
  }

  #homepage-footer .left p {
    width: 18rem;
    font-size: 0.9rem;
  }

  #products-sm {
    gap: 3rem;
  }

  .dets {
    width: 16rem;
  }

  /* Page sections padding */
  #page2,
  #page3 {
    padding: 5rem 2.5rem;
  }

  #page2 h1,
  #page3 h1 {
    font-size: 3.2rem;
    line-height: 3.2rem;
  }

  #page2-body,
  #page3-body {
    width: 28rem;
    margin-left: 50%;
  }

  #page3 h1 {
    width: 50rem;
  }

  #page4 {
    padding: 4rem 2.5rem;
  }

  #page4-body h1 {
    font-size: 3.2rem;
    line-height: 3.2rem;
  }

  #page5 {
    padding: 3.5rem 2.5rem;
  }

  #page5-body h1 {
    font-size: 3.2rem;
    width: 28rem;
  }

  #page5-list {
    width: 35rem;
  }

  #page6 {
    padding: 5rem 2.5rem;
  }

  #page6-header h1 {
    font-size: 3.2rem;
  }

  #page7 {
    padding: 5rem 2.5rem;
  }

  #page7-body h1 {
    font-size: 3.2rem;
  }

  #footer {
    padding: 5rem 2.5rem;
  }

  #footer-right h1 {
    font-size: 3.2rem;
    width: 30vw;
  }
}

/* Tablet Portrait: 768px and down */
@media screen and (max-width: 768px) {
  /* Navigation */
  nav {
    padding: 1.5rem 2rem;
    height: 8vh;
  }

  #left-nav {
    gap: 1.5rem;
    align-items: center;
  }

  nav a {
    font-size: 0.7rem;
  }

  #right-nav a {
    height: 2.5rem;
    width: 8rem;
    font-size: 0.7rem;
  }

  /* Page 1 - Hero Section */
  #page1 {
    padding: 1.5rem 2rem;
    padding-top: 8vh;
  }

  #pgNo01 {
    margin-top: 5vh;
    padding: 1rem 0;
  }

  #title h1 {
    font-size: 4rem;
    line-height: 4rem;
    letter-spacing: -0.1rem;
  }

  #title .line {
    height: 4.5rem;
  }

  #homepage-footer {
    flex-direction: column;
    gap: 3rem;
    margin-top: 10vh;
  }

  #homepage-footer .left,
  #homepage-footer .right {
    width: 100%;
    border-left: none;
    border-right: none;
    border-top: 1.5px solid black;
    border-bottom: 1.5px solid black;
    padding: 1.5rem 0;
  }

  #homepage-footer .left {
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
  }

  #homepage-footer .left p {
    width: 100%;
    font-size: 1rem;
  }

  #homepage-footer .left a {
    width: 100%;
  }

  #homepage-footer .right {
    padding: 1.5rem 0;
    position: relative;
  }

  /* Keep horizontal carousel on mobile - just make it touch-friendly */
  #products-sm {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  #products-sm::-webkit-scrollbar {
    display: none;
  }

  #homepage-footer .right a {
    min-width: 85vw;
    flex-shrink: 0;
    scroll-snap-align: start;
  }

  #product-loadbars {
    width: 100%;
    position: static;
    margin-top: 2rem;
    justify-content: center;
    display: none;
  }

  .loadbar {
    flex: 1;
    max-width: 60px;
  }

  .lower-loadbar,
  .upper-loadbar {
    width: 100%;
  }

  /* Case studies text positioning */
  #case-studies-text {
    position: static;
    transform: none;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 0.8rem;
  }

  /* Page 2 */
  #page2 {
    padding: 4rem 2rem;
  }

  #page2 h1 {
    font-size: 2.5rem;
    line-height: 2.8rem;
    margin-bottom: 2.5rem;
  }

  #page2-body {
    margin-left: 0;
    width: 100%;
  }

  #page2-body p {
    font-size: 1.1rem;
  }

  /* Page 3 */
  #page3 {
    padding: 4rem 2rem;
  }

  #pgNo03 {
    margin-left: 0;
    text-align: center;
    margin-bottom: 2rem;
  }

  #page3 h1 {
    font-size: 2.5rem;
    line-height: 2.8rem;
    width: 100%;
    margin-bottom: 2rem;
  }

  #page3-body {
    margin-left: 0;
    width: 100%;
    text-align: center;
  }

  /* Page 4 */
  #page4 {
    flex-direction: column;
    padding: 3rem 2rem;
    gap: 3rem;
  }

  #thumbnail-div {
    order: 2;
    text-align: center;
  }

  #thumbnail-div img {
    height: 25rem;
    width: 100%;
    max-width: 300px;
    object-fit: cover;
    transform: rotateZ(-2deg);
  }

  #conversion-rate,
  #bounce-rates {
    position: static;
    margin: 1rem auto;
    transform: none;
    width: 8rem;
    height: 8rem;
  }

  #conversion-rate h2,
  #bounce-rates h2 {
    font-size: 2rem;
  }

  #conversion-rate h3,
  #bounce-rates h3 {
    font-size: 0.6rem;
  }

  #page4-body {
    order: 1;
    margin-left: 0;
    margin-top: 0;
    text-align: center;
  }

  #page4-body h1 {
    font-size: 2.5rem;
    line-height: 2.8rem;
  }

  #page4-body p {
    width: 100%;
    font-size: 1rem;
  }

  /* Page 5 */
  #page5 {
    flex-direction: column;
    padding: 3rem 2rem;
    gap: 3rem;
  }

  #page5-body h1 {
    font-size: 2.5rem;
    line-height: 2.8rem;
    width: 100%;
  }

  #page5-body p {
    width: 100%;
    font-size: 1rem;
  }

  #page5-list {
    width: 100%;
  }

  .list-item {
    font-size: 1.1rem;
    padding: 1.2rem 0;
  }

  .list-item img {
    height: 8rem;
    width: 8rem;
  }

  /* Page 6 */
  #page6 {
    padding: 4rem 2rem;
  }

  #page6-header {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }

  #page6-header h1 {
    font-size: 2.5rem;
  }

  #view-all-btn-div {
    font-size: 3rem;
  }

  #view-all-btn-div span {
    font-size: 2rem;
  }

  #view-all-btn-div a span {
    font-size: 3rem;
  }

  #project-grid {
    padding-top: 4rem;
  }

  .project-slab {
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    justify-content: center;
  }

  .project-slab a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
  }

  #proj1-img,
  #proj2-img,
  #proj3-img,
  #proj4-img {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin: 0 auto;
  }

  /* Page 7 */
  #page7 {
    flex-direction: column;
    padding: 4rem 2rem;
    gap: 3rem;
  }

  #page7-body h1 {
    font-size: 2.5rem;
  }

  #page7-body p {
    width: 100%;
  }

  #partners-grid {
    margin-left: 0;
    margin-top: 0;
    width: 100%;
    gap: 2rem;
  }

  #partners-grid img {
    flex: 0 0 45%;
    max-width: 45%;
    margin: 0 auto;
  }

  /* Footer */
  #footer {
    flex-direction: column;
    padding: 4rem 2rem;
    gap: 4rem;
  }

  #footer-left {
    width: 100%;
    padding-top: 0;
    flex-direction: column;
    gap: 3rem;
  }

  #footer-right {
    width: 100%;
  }

  #footer-right h1 {
    font-size: 2.5rem;
    width: 100%;
    margin-bottom: 3rem;
  }

  #footer-right h1 span {
    font-size: 2rem;
  }

  #footer-right input:nth-child(1),
  #footer-right input:nth-child(2) {
    width: 100%;
    margin-bottom: 1rem;
  }

  #reForm {
    margin-left: 0;
    margin-top: 1rem;
  }
}

/* Mobile: 480px and down */
@media screen and (max-width: 480px) {
  /* Navigation - Mobile optimized */
  nav {
    padding: 1rem 1.5rem;
  }

  #left-nav {
    gap: 1rem;
    align-items: center;
  }

  nav img {
    height: 1rem;
    margin-right: 1rem;
  }

  nav a {
    font-size: 0.6rem;
  }

  #right-nav a {
    height: 2.2rem;
    width: 7rem;
    font-size: 0.6rem;
  }

  /* Page 1 - Mobile Hero */
  #page1 {
    padding: 1rem 1.5rem;
    padding-top: 8vh;
  }

  #pgNo01 {
    margin-top: 3vh;
    padding: 0.8rem 0;
    font-size: 2rem;
  }

  #title h1 {
    font-size: 2.8rem;
    line-height: 2.8rem;
    letter-spacing: -0.05rem;
  }

  #title .line {
    height: 3.2rem;
  }

  #homepage-footer {
    margin-top: 8vh;
    gap: 2rem;
  }

  #homepage-footer .left p {
    font-size: 0.9rem;
  }

  #homepage-footer .left a {
    width: 100%;
    height: 2.5rem;
    font-size: 0.9rem;
  }

  /* Mobile carousel - keep horizontal but smaller items */
  #products-sm {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 10px;
  }

  #products-sm::-webkit-scrollbar {
    display: none;
  }

  #homepage-footer .right a {
    min-width: 85vw;
    flex-shrink: 0;
    scroll-snap-align: start;
  }

  .dets {
    width: 100%;
  }

  .dets h3 {
    font-size: 1.2rem;
  }

  .dets p {
    font-size: 0.75rem;
  }

  #product-sm-img {
    height: 4rem;
    margin-right: 1rem;
    flex-shrink: 0;
  }

  /* Page sections - Mobile */
  #page2,
  #page3,
  #page4,
  #page5,
  #page6,
  #page7 {
    padding: 3rem 1.5rem;
  }

  .page-number {
    font-size: 1.8rem;
  }

  #page2 h1,
  #page3 h1,
  #page4-body h1,
  #page5-body h1,
  #page6-header h1,
  #page7-body h1 {
    font-size: 2rem;
    line-height: 2.2rem;
  }

  #page2-body p,
  #page3-body p,
  #page4-body p,
  #page5-body p,
  #page7-body p {
    font-size: 1rem;
  }

  /* Page 4 - Mobile */
  #thumbnail-div img {
    height: 20rem;
    max-width: 250px;
  }

  #conversion-rate,
  #bounce-rates {
    width: 7rem;
    height: 7rem;
  }

  #conversion-rate h2,
  #bounce-rates h2 {
    font-size: 1.8rem;
  }

  #conversion-rate h3,
  #bounce-rates h3 {
    font-size: 0.5rem;
  }

  #thumbnail-div #subheading {
    width: 100%;
    font-size: 0.65rem;
    margin-left: 0;
    justify-content: center;
    gap: 1rem;
  }

  #thumbnail-div #heading {
    font-size: 1.8rem;
    margin-left: 0;
    text-align: center;
  }

  /* Page 5 - Mobile - Disable hover animations */
  .list-item {
    font-size: 1rem;
    padding: 1rem 0;
  }

  .list-item img {
    display: none !important;
  }

  .list-item:hover .right {
    opacity: 0.25;
  }

  /* Page 6 - Mobile - Better project alignment */
  #view-all-btn-div {
    font-size: 2.5rem;
  }

  #view-all-btn-div span {
    font-size: 1.5rem;
  }

  #view-all-btn-div a span {
    font-size: 2.5rem;
  }

  #project-grid {
    padding-top: 3rem;
  }

  .project-slab {
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    justify-content: center;
  }

  .project-slab a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
  }

  #proj1-img,
  #proj2-img,
  #proj3-img,
  #proj4-img {
    margin: 0 auto;
    border-radius: 8px;
    max-height: 200px;
  }

  /* Page 7 - Mobile */
  #partners-grid img {
    flex: 0 0 100%;
    max-width: 60%;
    margin: 0 auto;
  }

  /* Footer - Mobile */
  #footer {
    padding: 3rem 1.5rem;
    gap: 3rem;
  }

  #footer-left {
    gap: 2rem;
  }

  #footer-left div h3 {
    font-size: 0.7rem;
    margin-bottom: 1.5rem;
  }

  #footer-left div a {
    font-size: 1rem;
  }

  #footer-right h1 {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

  #footer-right h1 span {
    font-size: 1.5rem;
  }

  #footer-right textarea {
    height: 5rem;
  }

  #footer-right button {
    padding: 0.6rem 2rem;
  }

  #confirmationMessage h2 {
    font-size: 1rem;
  }
}

/* Extra small devices: 360px and down */
@media screen and (max-width: 360px) {
  #title h1 {
    font-size: 2.2rem;
    line-height: 2.2rem;
  }

  #title .line {
    height: 2.6rem;
  }

  #page2 h1,
  #page3 h1,
  #page4-body h1,
  #page5-body h1,
  #page6-header h1,
  #page7-body h1 {
    font-size: 1.6rem;
    line-height: 1.8rem;
  }

  #thumbnail-div img {
    height: 16rem;
    max-width: 200px;
  }

  #footer-right h1 {
    font-size: 1.6rem;
  }

  #footer-right h1 span {
    font-size: 1.2rem;
  }
}

/* Landscape orientation for phones */
@media screen and (max-height: 500px) and (orientation: landscape) {
  #page1 {
    padding-top: 12vh;
  }

  #pgNo01 {
    margin-top: 2vh;
  }

  #homepage-footer {
    margin-top: 5vh;
  }

  nav {
    height: 6vh;
  }
}

/* High DPI displays */
@media screen and (-webkit-min-device-pixel-ratio: 2),
  screen and (min-resolution: 192dpi) {
  nav img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Hover effects only on non-touch devices */
@media (hover: hover) and (pointer: fine) {
  /* Keep all existing hover effects */
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  /* Remove hover effects and add touch alternatives */
  .link:hover span,
  #left-nav a:hover,
  #view-all-btn-div a:hover,
  #view-all-btn-div a:hover span,
  .list-item:hover .right,
  #footer-left div a:hover {
    /* Reset hover effects for touch devices */
    transform: none;
    color: inherit;
    opacity: inherit;
  }

  /* Make interactive elements more touch-friendly */
  nav a,
  .link,
  .list-item,
  #footer-left div a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  /* Add active states for touch */
  nav a:active,
  .link:active {
    color: #0fadad;
  }

  #footer-left div a:active {
    color: rgb(253, 59, 59);
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  /* Disable animations for users who prefer reduced motion */
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  #products-sm {
    animation: none !important;
  }

  .upper-loadbar {
    transition: none !important;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  /* The site already has a good dark/light contrast, but we can optimize */
  #page2,
  #page4,
  #page6,
  #footer {
    /* These sections are already dark */
  }

  #page1,
  #page3,
  #page5,
  #page7 {
    /* Keep light sections as they are for brand consistency */
  }
}

/* Print styles */
@media print {
  #cursor,
  .circle,
  nav {
    display: none !important;
  }

  * {
    background: white !important;
    color: black !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
  }

  h1,
  h2,
  h3 {
    page-break-after: avoid;
  }

  img {
    max-width: 100% !important;
    height: auto !important;
  }
}
