@media (max-width: 769px) {
  .parentSpan {
    display: block;
    overflow: hidden;
  }

  .childSpan {
    display: block;
    overflow: hidden;
    position: relative;
  }

  #loader .loader-span .childSpan {
    display: block;
    overflow: hidden;
    position: relative;
    width: 100dvw;
    padding-left: 32%;
    pointer-events: none;
  }

  #upper-text h3 {
    font-size: 1.5dvw;
    width: 15%;
    line-height: 1.7dvw;
  }

  #loader .loader-parent span {
    left: 75%;
    font-size: 4dvw;
    font-weight: 100;
  }

  #loader .loader-parent span:nth-child(2) {
    left: 88%;
  }

  #loader .loader-parent span:nth-child(3) {
    left: 100%;
  }

  #loader .loader-parent span:nth-child(4) {
    left: 103.5%;
  }

  #nav a {
    display: none;
  }

  #nav a:nth-child(1) {
    text-decoration: underline;
    font-size: 1.5dvw;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    opacity: 1;
  }

  #nav a:nth-child(4) {
    text-decoration: underline;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    font-size: 1.5dvw;
    opacity: 1;
  }

  .anchorLine {
    display: none;
  }

  #home {
    height: 280dvh;
  }

  #home #content {
    height: 24%;
    padding: 10% 4% 3% 7%;
  }

  #content-row-1 {
    height: 40%;
  }

  #content-row-1 h2 {
    font-size: 16dvw;
  }

  #content-para-1 {
    display: none;
  }

  #content-para-2 {
    display: none;
  }

  #content-row-2 {
    height: 55%;
  }

  #icon {
    display: none;
  }

  #text-content {
    flex-direction: column;
    justify-content: center;
  }

  #content-row-2 h2 {
    font-size: 16dvw;
    text-align: left;
    margin-top: -2rem;
  }

  #content-row-2 h3 {
    font-size: 8dvw;
    margin-right: -10dvw;
    text-align: right;
    position: relative;
  }

  #content-row-2 h3::before {
    content: "";
    width: 60%;
    height: 0.4rem;
    background-color: var(--span-text-color);
    position: absolute;
    left: -70%;
    top: 50%;
  }

  #project-images {
    z-index: 1;
  }

  #about-para {
    display: none;
  }

  .media-screen-para {
    display: block;
    font-size: 1.7rem;
    position: absolute;
    bottom: 12.5%;
    padding: 0 3rem 0 3rem;
    color: var(--primary-text-color);
    font-weight: 540;
  }

  .media-screen-para span {
    color: var(--span-text-color);
  }

  .media-about-para {
    display: block;
    opacity: 0.5;
    position: absolute;
    bottom: 22%;
    font-size: 0.8rem;
    padding-left: 3rem;
    color: var(--primary-text-color);
  }

  .media-screen-contact {
    display: block;
    display: flex;
    gap: 0.8rem;
    align-items: center;
    position: absolute;
    bottom: 6%;
    left: 20%;
  }

  .media-screen-contact a {
    color: var(--primary-text-color);
    font-size: 0.8rem;
  }

  #cards {
    width: 100%;
    height: 90%;
    right: -10%;
  }

  .card {
    height: 75%;
    width: 70%;
  }

  #exprience-techologies {
    display: none;
  }

  #svg-line-affect {
    height: 50dvh;
    flex-direction: column;
    justify-content: flex-end;
  }

  .media-screen-svg-tech-para {
    display: block;
    height: 80%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 2rem;
  }

  .media-screen-svg-tech-para #hero-para {
    font-size: 0.9rem;
    width: 25%;
    opacity: 1;
    color: var(--primary-text-color);
    line-height: 1.2;
    margin-left: -10.5rem;
    margin-bottom: 2rem;
  }

  .media-screen-svg-tech-para #technologies-para {
    font-size: 1.3rem;
    color: var(--primary-text-color);
    width: 50%;
    padding-top: 2rem;
  }

  #page-1 #page-1-title h2 {
    font-size: 12vw;
  }

  .projects {
    display: flex;
    flex-direction: column;
  }

  #project-row-1 {
    flex-direction: column;
    justify-content: center;
    height: 150dvh;
    padding: 0 4dvw;
    gap: 3rem;
  }

  .project-1 {
    width: 100%;
  }

  .project-1 .project-details {
    bottom: 37%;
  }

  .project-2 {
    width: 100%;
    height: 100%;
    margin-right: 0;
  }

  .sm-card .project-details {
    bottom: 37%;
    left: 4%;
  }

  #project-row-2 {
    height: 70dvh;
    padding: 0 4dvw;
    margin-top: 0.5rem;
  }

  #project-row-2 .project-3 {
    height: 100%;
    width: 100%;
  }

  .project-3 .project-details {
    bottom: 37%;
  }

  #project-row-3 {
    height: 150dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin-top: 0.5rem;
    padding: 0 4dvw;
  }

  .project-4 {
    height: 80dvh;
    width: 100%;
    left: 0;
  }

  .project-4 img {
    width: 102%;
  }

  .project-4 .project-details {
    bottom: 37%;
  }

  .project-5 {
    height: 80dvh;
    width: 100%;
    left: 0%;
    bottom: 0;
  }

  .project-5 img {
    width: 102%;
    object-position: top;
  }

  .project-5 .project-details {
    bottom: 2%;
  }

  .btn {
    width: 10rem;
    height: 6vw;
    font-size: 1.5rem;
  }

  footer {
    height: 180dvh;
  }

  .footer-container {
    border: none;
    border-radius: 0;
  }

  #footer-heading {
    height: 15rem;
    width: 70%;
    margin-top: 1rem;
  }

  #footer-heading .media-screen-footer-header {
    display: block;
    font-size: 12dvw;
    font-weight: 540;
    height: 100%;
  }

  #footer-heading > h2 {
    display: none;
  }

  #footer-heading .media-screen-footer-header .footer-parent-span {
    display: block;
    height: 6rem;
  }

  .media-screen-footer-header .footer-child-span {
    width: 100%;
    margin-top: 0.5rem;
    display: block;
    height: 100%;
    transform: translate(0, 500%);
  }

  #footer-buttons {
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .socials {
    display: flex;
    flex-direction: column;
    justify-content: none;
    align-items: center;
    padding: 4rem 2rem;
    position: relative;
  }

  .footer-container .social-account {
    width: 90dvw;
    height: 13dvw;
    margin-top: 0;
  }

  .social-icon {
    width: 6dvw;
    height: 6dvw;
  }

  #technology-detail {
    height: 20dvh;
    width: 100dvw;
    position: absolute;
    bottom: 0;
    padding: 2dvw 5dvw;
    display: flex;
  }

  .footer-project-details a {
    font-size: 2dvw;
  }

  .footer-project-details p {
    font-size: 2dvw;
  }

  .close-btn {
    height: 4dvw;
    width: 4dvw;
    right: 2%;
    margin-top: 3.2rem;
  }

  .footer-slogen {
    flex-direction: column;
    margin-top: 0;
    font-size: 2dvw;
  }

  .footer-slogen a {
    color: #8b9d9b85;
    font-size: 2dvw;
  }

  .footer-slogen p {
    display: inline-block;
    line-height: 1.8;
  }
}

@media (max-width: 890px) {
  #footer-buttons {
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
}

@media (max-width: 640px) {
  .loader {
    width: 100%;
    height: 100dvh;
    background-color: var(--loader-bg-color);
    color: var(--primary-color);
    position: absolute;
    overflow: hidden;
  }

  #upper-text {
    padding-top: 3dvw;
  }

  #upper-text h3 {
    font-size: 2.5dvw;
    width: 25%;
    line-height: 1.3;
  }

  #nav {
    width: 100%;
    height: 8dvh;
    /* backdrop-filter: blur(5px); */
    display: block;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 6.5dvw;
    transition: all 0.5s ease-in 0.5s;
    position: fixed;
    top: 0;
    z-index: 999;
    opacity: 0;
  }

  #nav a:nth-child(1),
  #nav a:nth-child(4) {
    text-decoration: none;
    color: var(--primary-text-color);
    font-size: 0.75rem;
  }

  #home {
    width: 100%;
    height: 180vh;
    position: relative;
    background-color: var(--home-pg-bg-color);
  }

  #home #content {
    height: 30%;
    padding: 35% 4% 3%;
    color: var(--primary-text-color);
  }

  #content-row-1 {
    height: 30%;
  }

  #content-row-1 h2 {
    font-size: 20vw;
  }

  #content-row-2 {
    height: 50%;
  }

  #icon {
    display: none;
  }

  #content-row-2 h2 {
    font-size: 20vw;
  }

  #content-row-2 h3 {
    font-size: 15vw;
    font-weight: 400;
    margin-right: 3dvw;
    margin-bottom: 1rem;
  }

  #content-row-2 h3::before {
    content: "";
    width: 80%;
    height: 0.25rem;
    left: -80%;
  }

  #project-images {
    width: 100%;
    height: 60%;
    padding: 5% 5%;
    position: relative;
    background-color: #314e45;
  }

  #cards {
    width: 80%;
    height: 75%;
    left: 50%;
    top: -5%;
    transform: translate(-50%, 0);
    background-color: #d6ede6;
  }

  .card {
    height: 70%;
    width: 90%;
    border-radius: 0.5rem;
    overflow: hidden;
  }

  .card img {
    height: 100%;
    width: 100%;
  }

  #cards .card-1 {
    top: 0;
    transform: rotate(-20deg);
    right: 50%;
    overflow: hidden;
    transition: filter cubic-bezier(0.19, 1, 0.22, 1) 0.3s;
  }

  .card-1 img {
    border-radius: 0.5rem;
  }

  #cards .card-2 {
    top: 10%;
    right: 40%;
    transform: rotate(-15deg);
    overflow: hidden;
  }

  .card-2 img {
    border-radius: 0.5rem;
  }

  #cards .card-3 {
    top: 20%;
    right: 30%;
    transform: rotate(-5deg);
    overflow: hidden;
  }

  .card-3 img {
    border-radius: 0.5rem;
  }

  #exprience-techologies {
    position: relative;
    bottom: 5%;
    left: 15%;
    height: 8rem;
    width: 20rem;
    overflow: hidden;
  }

  #hero-para {
    width: 45%;
    font-size: 0.8vw;
    line-height: 1vw;
    opacity: 0.5;
    position: absolute;
    color: var(--primary-text-color);
  }

  #technologies-para {
    width: 78%;
    font-size: 1.5vw;
    margin-top: 2.5rem;
    position: relative;
    color: var(--primary-text-color);
  }

  #svg-line-affect {
    height: 10vh;
    width: 100vw;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    z-index: 88;
    stroke: var(--primary-text-color);
    background-color: var(--project-page-bg-color);
  }

  path {
    z-index: 88;
  }

  #page-1 {
    width: 100%;
    background-color: var(--project-page-bg-color);
  }

  #page-1-title {
    display: flex;
    gap: 1rem;
    padding: 4% 17%;
    position: relative;
    overflow: hidden;
    height: 10rem;
  }

  .scrollContainer #page-1-title h2 {
    font-weight: 540;
    position: relative;
    font-size: 9vw;
    transform-origin: 0 50%;
    transform: rotate(30deg);
    top: 80%;
    color: var(--primary-text-color);
  }

  #page-1-title h2 sub {
    font-size: 1.5vw;
  }

  .projects {
    width: 100%;
    height: 90%;
    padding: 5vw;
  }

  #project-row-1 {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 110vh;
    width: 100%;
    margin-bottom: 5vw;
  }

  .project-1 {
    width: 55%;
    height: 100%;
    border-radius: 4vw;
    overflow: hidden;
    position: relative;
  }

  .project-1 .project-details {
    bottom: 27.5%;
  }

  .project-1 img {
    width: 102%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 4vw;
  }

  .project-2 {
    width: 30%;
    height: 65%;
    border-radius: 4vw;
    overflow: hidden;
    margin-right: 8vw;
    position: relative;
  }

  .project-2 img {
    width: 102%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 4vw;
  }

  .project-2 button {
    font-size: 1.5rem;
  }

  .sm-card .project-details {
    bottom: 42%;
    left: 6%;
  }

  #project-row-2 {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 110vh;
    width: 100%;
    margin-bottom: 5vw;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  #project-row-2 .project-3 {
    height: 100%;
    width: 65%;
    border-radius: 4vw;
    overflow: hidden;
  }

  .project-3 img {
    width: 102%;
    height: 95%;
    object-fit: cover;
    object-position: top;
    border-radius: 4vw;
  }

  .project-3 .absolute {
    bottom: 9%;
  }

  .project-3 .project-details {
    bottom: 28%;
  }

  #project-row-3 {
    height: 130dvh;
    width: 100%;
  }

  .project-4 {
    height: 100dvh;
    width: 60%;
    border-radius: 4dvw;
    overflow: hidden;
    position: relative;
    left: 39%;
  }

  .project-4 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 4dvw;
  }

  .project-4 .project-details {
    bottom: 30%;
  }

  .project-5 {
    height: 70vdh;
    width: 33%;
    border-radius: 4dvw;
    overflow: hidden;
    position: relative;
    left: 0%;
    bottom: 35%;
  }

  .project-5 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: bottom;
    border-radius: 4dvw;
  }

  .project-5 .absolute {
    position: absolute;
    bottom: 5%;
  }

  .project-5 .project-details {
    position: absolute;
    bottom: 8%;
  }

  .grayColor {
    filter: grayscale(0);
    transition: all cubic-bezier(0, 0.89, 0.41, 1) 1s;
  }

  .grayColor:hover {
    filter: grayscale();
  }

  .relative {
    position: relative;
    z-index: 2;
    cursor: pointer;
    transition: all cubic-bezier(0, 0.89, 0.41, 1) 0.5s;
  }

  .absolute {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    z-index: 55;
    display: flex;
    gap: 1rem;
  }

  .btn {
    width: 13rem;
    height: 5dvw;
    border: none;
    border-radius: 12.5dvw;
    background-color: #fff;
    color: #000;
    padding: 0 1rem;
    font-size: 2rem;
  }

  .project-details {
    position: relative;
    bottom: 30%;
    left: 4%;
    height: 10rem;
    width: 15rem;
    font-size: 0.89rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    overflow: hidden;
  }

  .year {
    font-size: 0.8rem;
    color: #000;
  }

  .role {
    font-size: 0.9rem;
    color: #000;
  }

  .project-details .role-span {
    display: block;
    height: 2.5rem;
    width: 12rem;
    overflow: hidden;
    border-radius: 12rem;
    padding: 0.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
    position: absolute;
    top: 30%;
    top: -100%;
    background-color: #fff;
    opacity: 0;
    cursor: pointer;
  }

  .project-details .year-span {
    display: block;
    height: 2.5rem;
    width: 6rem;
    overflow: hidden;
    border-radius: 12rem;
    padding: 0.2rem 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
    position: absolute;
    background-color: #fff;
    top: -100%;
    opacity: 0;
    cursor: pointer;
  }

  .project-preview {
    width: 25dvw;
    height: 50dvh;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
  }

  .project-preview header {
    height: 15%;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    padding: 0 1rem;
    gap: 1rem;
  }

  header .cursor-seat {
    width: 3dvw;
    height: 3dvw;
    border-radius: 50%;
    border: 1px solid #fff;
    cursor: pointer;
  }

  .agency-info {
    width: 40%;
    height: 80%;
    background-color: #fff;
    border-radius: 12rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  #images {
    height: 30dvh;
    width: 100%;
    margin-top: 1rem;
  }

  #images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    border-radius: 0;
    position: absolute;
    opacity: 0;
    transition: all cubic-bezier(0.19, 1, 0.22, 1) 0.5s;
  }

  .preview-1 {
    animation: bannerImgAnimation 3s cubic-bezier(0.19, 1, 0.22, 1) infinite;
    animation-name: bannerImgAnimation;
    animation-delay: 1s;
  }

  .preview-2 {
    animation: bannerImgAnimation 3s cubic-bezier(0.19, 1, 0.22, 1) infinite;
    animation-name: bannerImgAnimation;
    animation-delay: 2s;
  }

  .preview-3 {
    animation: bannerImgAnimation 3s cubic-bezier(0.19, 1, 0.22, 1) infinite;
    animation-name: bannerImgAnimation;
    animation-delay: 3s;
  }

  .preview-4 {
    animation: bannerImgAnimation 3s cubic-bezier(0.19, 1, 0.22, 1) infinite;
    animation-name: bannerImgAnimation;
    animation-delay: 4s;
  }

  .preview-5 {
    animation: bannerImgAnimation 3s cubic-bezier(0.19, 1, 0.22, 1) infinite;
    animation-name: bannerImgAnimation;
    animation-delay: 5s;
  }

  @keyframes bannerImgAnimation {
    0% {
      opacity: 1;
    }

    20% {
      opacity: 1;
    }

    21% {
      opacity: 0;
    }

    60% {
      opacity: 0;
    }

    80% {
      opacity: 0;
    }

    90% {
      opacity: 0;
    }

    100% {
      opacity: 0;
    }
  }

  footer {
    height: 140dvh;
    width: 100dvw;
    position: relative;
    background-color: var(--footer-bg-color);
  }

  .green {
    color: var(--span-text-color);
  }

  .footer-container {
    background-color: var(--footer-bg-color);
    width: 100%;
    height: 100%;
    margin: auto;
    padding: 5rem 3rem;
    text-align: center;
    color: var(--primary-color);
    position: relative;
  }

  #footer-heading {
    height: 20rem;
    width: 70%;
    text-align: center;
    margin: auto;
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
  }

  #footer-heading h2 {
    width: 85%;
    font-size: 6dvw;
    font-weight: 550;
  }

  #footer-heading h2 .footer-parent-span {
    width: 100%;
    margin-top: 0.5rem;
    display: block;
    transform: translate(10%, 0);
    height: 4.5rem;
    overflow: hidden;
  }

  #footer-heading h2 .footer-child-span {
    width: 100%;
    margin-top: 0.5rem;
    display: block;
    height: 100%;
    transform: translate(0, 500%);
  }

  #footer-buttons {
    padding: 4rem 0;
  }

  #footer-buttons .footer-btn {
    padding: 2.31dvw 9.5dvw;
    background-color: transparent;
    margin: 0 2dvw;
    border-radius: 10rem;
    border: 1px solid var(--secondary-text-color);
    text-decoration: none;
    color: var(--secondary-text-color);
    font-size: 1.5rem;
    font-weight: 560;
    position: relative;
    z-index: 2;
    cursor: pointer;
  }

  .button-bg {
    width: 70%;
    height: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 12rem;
    z-index: -1;
    background-color: #fff;
    opacity: 0;
    transition: all ease-in-out 0.2s;
  }

  .socials {
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    position: relative;
  }

  .footer-container .social-account {
    width: 18dvw;
    height: 6dvw;
    border-top: 1px solid #fff;
    text-align: start;
    margin-top: 4rem;
    position: relative;
  }

  .social-content {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: absolute;
    z-index: 2;
    pointer-events: none;
  }

  .social-icon {
    width: 3.5dvw;
    height: 3.5dvw;
    background-color: #dadada;
    border-radius: 50%;
  }

  .social-icon img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
  }

  footer a {
    cursor: pointer;
  }

  .social-account-id {
    font-weight: 100;
    text-decoration: none;
    color: var(--primary-color);
  }

  .social-account-id h4 {
    font-weight: 100;
    font-size: 1.5rem;
    z-index: 88;
  }

  .account-id {
    opacity: 0.7;
    z-index: 2;
  }

  .social-hover-gb {
    width: 100%;
    height: 0;
    background-color: #14cf93;
    z-index: 1;
    position: absolute;
    top: 0;
    transition: all ease-in-out 0.2s;
  }

  #technology-detail {
    height: 20dvh;
    width: 100dvw;
    background-color: var(--home-pg-bg-color);
    position: absolute;
    bottom: 0;
    padding: 2dvw 5dvw;
    display: flex;
    opacity: 0;
    z-index: 8;
    transition: opacity ease-in 0.1s;
    overflow: hidden;
  }

  .footer-project-details {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    position: relative;
    top: 150%;
    transform-origin: 0 50%;
    transform: rotate(40deg);
    opacity: 0;
  }

  .footer-project-details a {
    color: var(--primary-text-color);
    text-decoration: underline;
    font-size: 1.8dvw;
    padding-right: 0.5dvw;
  }

  .footer-project-details p {
    font-size: 1.2dvw;
    color: var(--primary-text-color);
    font-weight: 550;
  }

  .technologies {
    margin-right: 4dvw;
  }

  .font {
    margin: 0 4dvw;
  }

  .developer-details {
    margin-left: 4dvw;
  }

  .close-btn {
    height: 4dvw;
    width: 4dvw;
    background-color: var(--span-text-color);
    border-radius: 50%;
    position: absolute;
    right: 5%;
    top: 150%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-top: 2rem;
  }

  .close-btn img {
    height: 30%;
    width: 30%;
    cursor: pointer;
  }

  .footer-slogen {
    text-align: left;
    display: flex;
    justify-content: space-between;
    color: #8b9d9b;
    margin-top: 7dvw;
    font-size: 1dvw;
    z-index: 888;
    position: relative;
    transition: none;
  }

  .footer-slogen a {
    color: #8b9d9b85;
    font-size: 1dvw;
    cursor: pointer;
  }

  #credits {
    cursor: pointer;
  }

  .footer-slogen p {
    display: inline-block;
  }

  .color-mixer {
    height: 12dvh;
    width: 100%;
    position: absolute;
    bottom: 0;
    background-image: linear-gradient(
      var(--home-pg-bg-color),
      var(--project-page-bg-color)
    );
  }

  .dark-mode .footer-color-mixer {
    height: 12dvh;
    width: 100%;
    position: absolute;
    top: 0;
    background-image: linear-gradient(
      var(--project-page-bg-color),
      var(--footer-bg-color)
    );
  }

  .media-screen-para {
    display: none;
  }

  .media-about-para {
    display: none;
  }

  .media-screen-contact {
    display: none;
  }

  .media-screen-svg-tech-para {
    display: none;
  }

  .media-screen-footer-header {
    display: none;
  }
}
