@import url("./variables.css");

@media (max-width: 768px) {
  :root {
    --mobile-height: 553px;
    --marquee-width: 100vw;
    --marquee-height: 16vh;
    --marquee-elements-displayed: 3;
    --mobile-width: 310px;
  }

  header:not(.home-header) {
    min-height: calc(var(--mobile-height) - 100px);
  }

  header:is(.home-header, .developer-header) {
    min-height: 220px;
  }

  section {
    min-height: 200px;
  }

  h1 {
    font-size: 30px;
  }

  h2 {
    font-size: 24px !important;
    text-align: center;
  }

  footer .footer-contents {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    row-gap: 20px;
    padding: 0 20px;
    column-gap: 22px;
  }

  .footer-contents > * {
    margin: 0 12px;
  }

  .footer-content li {
    width: unset;
    font-size: 12px;
  }

  .footer-content h6 {
    font-size: 12px;
  }

  .container {
    max-width: auto !important;
  }

  .explore {
    display: none;
  }

  .products-grids {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(6, 1fr);
  }

  .nav-section {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    top: -305px;
    right: 0;
    padding: 12px;
    z-index: 4;
    width: 100%;
    opacity: 0;
    transition: top 0.4s cubic-bezier(0.25, 0.1, 0.25, 1), opacity 0.4s ease-in;
    z-index: -10;
    /* max-width: 300px; */
  }

  .blogs-heading {
    width: auto;
  }

  .blogs-list {
    flex-direction: column;
  }

  .blogs-list > * {
    width: 95%;
    height: 455px;
    margin: 20px auto;
    padding: 15px;
  }

  .below-blog .publish,
  .below-blog a {
    font-size: 17px;
  }

  .nav-section.open {
    top: 56px;
    opacity: 1;
  }

  .products-foot .trigger-modal {
    font-size: 14px;
  }

  .nav-section:is(.nav-index) {
    background-color: var(--bg-white);
  }

  .nav-section:not(.nav-index) {
    background-color: var(--primary-color);
  }

  .nav-section .button-group > * {
    margin: 5px 0;
  }

  .mob-nav {
    display: inline;
  }

  .nav-bar {
    max-width: calc(var(--mobile-width) + 20px);
    margin: 15px auto;
    padding: 15px;
    border-radius: 8px;
  }

  .nav-bar nav {
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    width: 100%;
  }

  nav ul > li {
    padding: 6px 0;
    margin: 5px 0;
  }

  .nav-bar nav ul {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 20px 0;
  }

  .nav-section .button-group {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
  }

  .action-content .trigger-modal {
    font-size: 14px;
  }

  .hero > * {
    margin: 30px auto;
  }

  section:not(.partners, .action) {
    padding: 50px 10px;
  }

  .marquee:before,
  .marquee:after {
    width: 5rem;
  }

  .marquee-content li {
    width: calc(var(--marquee-element-width) - 30px);
    margin: 0 10px;
  }

  .marquee-content li img {
    width: 100%;
  }

  .marquee-content:hover {
    animation-play-state: running;
  }

  .empowring {
    flex-direction: column-reverse;
  }

  .empowering-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
  }

  .empowering-content .btn-link {
    align-self: flex-end;
  }

  .empowering-content,
  .empowering-content:first-child {
    width: var(--mobile-width);
  }

  .empowering-content > img {
    width: 100%;
  }

  .empowring > * {
    margin: 0 10px;
  }

  .empowring > *:last-child {
    margin-top: -80px;
    margin-bottom: 55px;
  }

  .products-heading {
    width: var(--mobile-width);
    padding: 12px 1px;
  }

  .products-heading > h2 {
    font-size: 24px;
    font-weight: 600;
    line-height: 28.41px;
    letter-spacing: -0.03em;
  }

  .products-heading > p {
    font-size: 14px;
  }

  .product-grid {
    border-left: 0;
    border-right: 0;
  }

  .product-grid h3,
  .product-grid img {
    margin-top: 0;
    vertical-align: middle;
    display: inline;
  }

  .product-grid img {
    margin-right: 14px;
    width: 42px;
    height: 42px;
  }

  .products-foot {
    width: var(--mobile-width);
    padding: 0;
  }

  .products-foot > * {
    margin: 24px;
  }

  .products-foot > .btn-link {
    margin-right: auto;
    margin-left: auto;
  }

  .solutions-heading {
    width: var(--mobile-width);
  }

  .solutions-heading > p {
    font-size: 16px;
  }

  .solutions-lists {
    flex-direction: column;
    margin: 0 14px;
    padding: 0 24px;
  }

  .solution {
    width: calc(var(--solution-width) - 50px);
    height: var(--solution-height);
    border-radius: 65px 0px 65px 0px;
    margin: 20px auto;
  }

  .solution .info {
    width: calc(var(--solution-width) - 55px);
    padding: 60px 40px;
  }

  .solution span {
    top: 45px;
    left: 45px;
    font-size: 25px;
  }

  .solution h5 {
    top: 30px;
    left: 85px;
    line-height: 25px;
  }

  .extras {
    padding: 0;
  }

  .extras-heading {
    width: var(--mobile-width);
  }

  .extras-content ul {
    display: grid;
    grid-template-columns: auto auto;
    height: auto;
    margin: 0;
    gap: 10px;
  }

  .extras-content ul li {
    max-height: 281px;
    width: unset;
    margin: 0;
    padding: 16px 10px;
    gap: 10px;
  }

  .extras-content li > h5 {
    width: unset;
    line-height: 20px;
    font-size: 15px;
    text-align: center;
    margin: 0 auto;
  }

  .extras-content ul li > p {
    font-size: 12px;
    line-height: 14x;
  }

  .extras-content ul li:last-child {
    grid-column: 1 / 3;
    height: unset;
  }

  .extras-foot {
    text-align: center;
  }

  .img-rocket {
    display: none;
  }

  .img-check {
    display: none;
  }

  .action {
    padding: 20px;
  }

  .action-content {
    width: auto;
  }

  .action-content h2 {
    line-height: 25.67px;
  }

  .faq-heading {
    width: auto;
  }

  .faq-heading h2 {
    line-height: 26px;
  }

  .faq-grid::marker {
    font-size: 12px;
  }

  .faq-grid h4 {
    font-size: 12px;
  }

  .hero-content {
    max-width: unset;
    width: unset;
  }

  .building-hero > p {
    width: unset;
  }

  .building-hero > h1 {
    padding: 0 0px;
    font-size: 28px;
  }

  .mid-banner {
    margin: 0 auto;
    padding: unset;
  }

  .mid-banner .banner-content {
    flex-direction: column;
    width: calc(var(--mobile-width) + 20px);
    margin: 0 auto;
    margin-top: 50px;
    padding: 15px;
  }

  img:is(.banner-desc) {
    left: unset;
    width: 100%;
    position: absolute;
    top: -100px;
    /* top: -100px; */
  }
  .banner-desc:not(img) {
    left: unset;
    /* top: -100px; */
    margin-top: 130px;
  }

  .banner-desc > h2 {
    font-size: 25px;
    text-align: left;
  }

  .how {
    flex-direction: column-reverse;
    padding: 0 20px;
  }

  .how-contents {
    width: var(--mobile-width);
    margin: 30px 12px;
  }

  .how-contents:not(.texts) {
    width: 287px;
    height: unset;
  }

  .how-contents:not(.texts) .img-anch {
    border-radius: 0px 0px 45px 0px;
  }

  .how-contents:not(.texts) > img {
    width: 100%;
  }

  .vision {
    padding: 0 20px;
    min-height: unset !important;
  }

  .vision .vision-content {
    width: unset;
  }

  .vision-content > p {
    width: unset;
  }

  .values .values-heading {
    width: unset;
    padding: 0 40px;
  }

  .values-content {
    grid-template-columns: repeat(1, 1fr);
    justify-content: center;
    align-items: center;
  }

  .value {
    grid-column: unset;
  }

  .value:nth-child(2) {
    grid-column: unset;
  }

  .value:nth-child(3) {
    grid-column: unset;
  }

  .value:nth-child(4) {
    grid-column: unset;
  }

  .value:nth-child(6) {
    grid-column: unset;
  }

  .value:nth-child(7) {
    grid-column: unset;
  }

  .value:nth-child(8) {
    grid-column: unset;
  }

  .value:nth-child(9) {
    grid-column: unset;
  }

  .empty-box:nth-child(1),
  .empty-box:nth-child(6) {
    display: none;
  }

  .empty-box:nth-child(5),
  .empty-box:nth-child(9) {
    display: none;
  }

  .values-footer {
    width: unset;
    padding: 0 40px;
  }

  .teams-heading {
    width: unset;
    padding: 0 20px;
  }

  .team-list {
    flex-direction: row;
    padding: 0 20px;
    margin: 0 auto;
    row-gap: 15px;
    width: var(--mobile-width);
    scroll-behavior: smooth;
  }

  .team-member {
    margin: 20px 16px;
  }

  .team-member img {
    width: 100%;
  }

  .future {
    flex-direction: column-reverse;
    width: unset;
    margin: 0 auto;
  }

  .future-content {
    margin: 0 auto;
    width: unset;
  }

  .ready-content {
    width: unset;
  }

  .ready-content h2 {
    width: unset;
  }

  .ready-content p:not(.white-btn) {
    width: unset;
  }

  .products-hero {
    width: unset;
    height: auto;
  }

  .prod-list {
    width: var(--mobile-width);
  }

  .prod-list > h3 {
    font-size: 13px;
    min-width: 80px;
    padding: 2px 2.1px;
  }

  .prod-text {
    padding: 0 15px;
  }

  .prod-text p {
    text-align: justify;
    font-size: 16px;
    line-height: 25px;
    margin-top: 25px;
  }

  .products-hero {
    margin-top: -50px;
  }

  .product-details {
    grid-template-columns: repeat(1, auto);
    column-gap: 10px;
  }

  .prod-detail:nth-child(even) {
    top: unset;
  }

  .developers-hero > * {
    width: auto;
    margin: 12px;
  }

  .api-heading {
    flex-direction: column-reverse;
  }

  .api-heading {
    width: unset;
    gap: 10px;
  }

  .heading-content {
    width: unset;
  }

  .heading-content:has(img) {
    align-items: center;
    width: 200px;
    margin: 0 auto;
  }

  .heading-content > img {
    width: 150px;
  }

  .heading-content > h2 {
    text-align: center;
  }

  .heading-content:has(:not(img)) {
    padding: unset;
  }

  .heading-content h2 {
    font-size: 24px;
    font-weight: 600;
    line-height: 20.05px;
    letter-spacing: -0.03em;
    text-align: center;
  }

  .api h4 {
    font-size: 24px;
    font-weight: 600;
    line-height: 30.05px;
    letter-spacing: -0.03em;
    text-align: center;
    color: var(--text-black);
  }

  .api-content {
    width: unset !important;
    padding: 0 !important;
    margin: auto;
  }

  .api-content .prod-list {
    width: var(--mobile-width);
    margin: unset auto !important;
    margin-bottom: 56px !important;
    left: 0;
    margin-left: auto;
  }

  .api-content .inline-list {
    margin: unset !important;
    max-width: auto !important;
  }

  .api-contents {
    margin: 34px auto;
    padding: 0;
  }

  .api-contents {
    gap: unset;
    width: unset;
  }

  .api-contents * {
    width: unset;
  }

  .documentation {
    width: unset;
    flex-direction: column-reverse;
  }

  .documentation > .docs-contents:has(img) {
    display: none;
  }

  .documentation > .docs-contents {
    width: unset;
  }

  .docs-content .trigger-cm {
    margin-right: 0;
    margin-left: auto;
    font-size: 14px;
  }

  .api-content {
    display: flex;
    flex-direction: column;
  }

  #openModalBtn {
    margin-top: 24px;
    align-self: flex-end;
  }

  .tools {
    width: unset;
  }

  .support-heading {
    width: unset;
  }

  .support-contents {
    grid-template-columns: repeat(1, var(--mobile-width));
  }

  .just-main {
    width: var(--mobile-width);
    padding: 10px;
  }

  header:is(.just-header) {
    height: unset !important;
    min-height: unset;
  }
}

@media (min-width: 1024px) {
  .solution span {
    right: 40px;
    transition: right 0.5s ease-in-out;
  }

  .solution h5 {
    bottom: 35px;
    font-size: 48px;
    transition: font-size 0.5s ease-in-out, bottom 0.5s ease-in-out,
      left 0.5s ease-in-out;
  }

  .solution .info {
    height: 0;
    opacity: 0;
    padding: 60px 40px;
    transform: translateY(100%);
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out,
      height 0.5s ease-in-out;
  }

  .solution:hover .info {
    opacity: 1;
    transform: translateY(0);
    z-index: 4;
    height: 263px;
  }

  .solution:hover h5 {
    font-size: 20px;
    bottom: calc(var(--solution-height) - 63px);
    line-height: 20px;
    left: 80px;
    font-weight: 700;
  }

  .solution:hover span {
    right: calc(var(--solution-width) - 70px);
    top: 50px;
    font-size: 25px;
  }

  .developer-header .hero {
    height: var(--height-screen);
  }

  .hero p {
    max-width: 540px;
  }
}
