/* ===========================
   (1) Base styles (your original CSS)
   =========================== */

:root{
    --brightText: #fff;
    --notBrightText: #697586;
    --darkText: #000;
    --background: #f0f0f0;
    --accent: #0264AA;
}

html {
    font-family: poppins, sans-serif;
    /* Ensure text scales if user adjusts browser font size */
    font-size: 100%;
    overflow-x: hidden !important;

}

body {
    margin: 0;
    overflow-x: hidden !important;
}
main * {
  transition: all 0.3s ease !important;
}


nav{
  display: none;
  max-width: 10vw;
}
* button:hover{
  opacity: 0.8;
}
.buttonMain {
    background-color: var(--accent);
    color: var(--brightText);
    border: none;
    padding: 1.5rem 3rem;
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 1rem;
    font-weight: 700;
}

h2{
  text-align: center;
}

#pageIndex {
    margin-top: 5vw;
    background-color: var(--background);
    color: var(--darkText);
}

/* Nesting in your original CSS assumed a preprocessor;
   if you’re using plain CSS, just un‐nest selectors accordingly: */

#pageIndex main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
}

#pageIndex main section {
    padding: 2rem 15rem;   /* will override for smaller screens below */
}

/* -------- Hero Section -------- */
#hero {
    display: grid;
    grid-template-columns: 3fr 2fr;
    & .logo{
      max-width: 20vw !important;
    }
}

#hero > div {
    display: flex;
    flex-direction: column;
    align-items: start;
}

#hero img {
    max-width: 30vw;
}

#hero h1 {
    font-size: 4rem;
    margin: auto 0;
    font-weight: 1000;
    line-height: 200%;
}

#hero p {
    color: var(--notBrightText);
    font-size: 2.5rem;
}

.logo {
    max-width: 15vw;
}

/* -------- Ilova Maqsadi -------- */
#ilovaMaqsadi {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#ilovaMaqsadi h2 {
    font-size: 5rem;
    font-weight: 1000;
    margin-bottom: 1rem;
}

#ilovaMaqsadi p {
    text-align: center;
    background-color: var(--accent);
    border-radius: 1rem;
    font-size: 4rem;
    font-weight: 700;
    color: var(--brightText);
    position: relative;
    padding: 8rem 2rem;
}

#ilovaMaqsadi p span {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 8rem;
}

/* -------- Ilova Funksiyalari -------- */
#ilovaFunksiyalari {
    display: grid;
    gap: 4rem;
}

#ilovaFunksiyalari article {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
}

#ilovaFunksiyalari article img {
    width: 100%;
    background-color: #e2e2e2;
    border-radius: 1rem;
    object-fit: contain;
    object-position: center;
}

#ilovaFunksiyalari article div {
    display: flex;
    flex-direction: column;
    padding: 2rem 4rem;
    border: #e2e2e2 .2rem solid;
    border-radius: 1rem;
    text-align: center;
}

#ilovaFunksiyalari article div aside {
    font-size: 2rem;
    color: var(--notBrightText);
    margin-bottom: 1rem;
}

#ilovaFunksiyalari article div h3 {
    font-size: 3rem;
    margin: auto;
}

#ilovaFunksiyalari article div p {
    font-size: 2rem;
    color: var(--notBrightText);
}

#ilovaFunksiyalari article:nth-child(even) img {
    order: 2;
}

/* -------- Nega Biz -------- */
#negaBiz article {
    display: grid !important;
    grid-template-columns: 1fr 2fr;
    background-color: var(--accent);
    border-radius: 3rem;
    color: var(--brightText);
    padding: 2rem 8rem;
}

#negaBiz article div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#negaBiz article h2 {
  text-align: end;
    font-size: 5rem;
    font-weight: 1000;
}

#negaBiz article p {
    font-size: 2rem;
    margin: auto 0;
    text-align: end;
    font-weight: 700;
    margin-left: 3ch;
}

#negaBiz article img {
    position: sticky;
    bottom: 0;
    scale: 1.2;
    width: 70%;
    overflow: hidden;
}

/* -------- Foydali Tomonlari -------- */
#foydaliTomonlari article {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    color: var(--darkText);
}



















#foydaliTomonlari article {
  position: relative;
  background-color: transparent; /* or whatever base color you want */
  border-radius: 16px;
  overflow: hidden;
}

/* Inner glow effect */
#foydaliTomonlari article::before {
  content: "";
  position: absolute;
  overflow: visible;
  top: 40%;
  left: -15%;
  width: 100%;
  height: 50%;
  background: radial-gradient(
    circle at center, rgba(9, 126, 209, 0.733),rgba(0, 0, 0, 0) 50%);
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
}

/* Ensure content appears above the glow */
#foydaliTomonlari article > * {
  position: relative;
  z-index: 1;
}
























#foydaliTomonlari article div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#foydaliTomonlari article h2 {
    text-align: start;
    font-size: 5rem;
    font-weight: 1000;
}

#foydaliTomonlari article p {
    font-size: 2rem;
    line-height: 200%;
}

#foydaliTomonlari article img {
    width: 100%;
}

/* -------- Yuklab Oling -------- */
#yuklabOling {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Align content to the top */
    gap: 2rem;
    background-color: var(--accent);
    color: var(--brightText);
}

#yuklabOling .content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

#yuklabOling h2 {
    font-size: 5rem;
    text-wrap: nowrap;
    font-weight: 1000;
    text-align: start;
    margin-bottom: 0rem;
}

#yuklabOling .subtitle {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    margin-top: 0;
}

#yuklabOling .main-download {
    display: inline-block;
    width: fit-content;
    font-weight: bold;
    background-color: var(--brightText);
    color: var(--darkText);
    padding: 1rem 2rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    text-decoration: none;
    font-size: 2.5rem;
    &:hover {
      scale: 1.05;
    }
}

#yuklabOling .store-buttons {
  display: flex;
  margin-top: 5vw;
  gap: 1rem;
  & a{
    max-width: 15vw;
    &:hover{
      scale: 1.05;
    }
    & img{
      width: 100%;
      height: auto;
    }
  }
}

#yuklabOling .image-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

#yuklabOling .image-wrapper img {
    max-width: 100%;
    height: auto;
    scale: 1.4;
}




/* ===========================
   (2) Responsive Media Queries
   =========================== */







@media (min-width: 1024px) and (max-width: 1921px) {
  :root{
    font-size: 14px !important;
  }
    #pageIndex main section {
        padding: 2rem 5rem;
    }

    #hero h1 {
        font-size: 3rem;
    }

    #hero p {
        font-size: 1.75rem;
    }

    #hero .logo {
        max-width: 10vw;
    }

    #ilovaMaqsadi h2 {
        font-size: 4rem;
    }

    #ilovaMaqsadi p {
        font-size: 3rem;
        padding: 5rem 5rem;
    }

    #ilovaMaqsadi p span {
        font-size: 6rem;
    }

    #ilovaFunksiyalari article div aside {
        font-size: 1.5rem;
    }

    #ilovaFunksiyalari article div h3 {
        font-size: 2.5rem;
    }

    #ilovaFunksiyalari article div p {
        font-size: 1.5rem;
    }

    #negaBiz h2,
    #foydaliTomonlari h2 {
        font-size: 4rem;
    }

    #negaBiz p,
    #foydaliTomonlari p {
        font-size: 2rem;
    }

    #yuklabOling h2 {
        font-size: 4rem;
    }

    #yuklabOling .subtitle {
        font-size: 2.5rem;
    }

    #yuklabOling .main-download {
        font-size: 1.25rem;
    }
}




/* ---- (A) Large tablets / small desktops (max-width: 1024px) ---- */
@media (max-width: 1024px) {
  /* Reduce big paddings */
  #pageIndex main section{
    padding: 2rem 4rem;
  }
  section{
    padding: 2rem 2rem !important;
  }
  /* Hero adjusts to two columns: 2fr 1fr */
  #hero {
    grid-template-columns: 2fr 1fr;
    & button{
      font-size: 1.2rem !important;
    }
  }
  #hero h1 {
    font-size: 2.3rem !important;
  }
  #hero p {
    font-size: 1.5rem !important;
  }
  #hero img{
    max-width: 40vw !important;
  }

  /* Ilova Maqsadi text shrinks */
  #ilovaMaqsadi h2 {
    font-size: 4rem !important;
  }
  #ilovaMaqsadi p {
    font-size: 2rem !important;
    padding: 4rem 2rem;
  }
  #ilovaMaqsadi p span {
    font-size: 4rem !important;
  }

  /* Ilova Funksiyalari: keep two columns, but smaller gaps */
  #ilovaFunksiyalari {
    gap: 2rem;
  }
  #ilovaFunksiyalari article {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  #ilovaFunksiyalari article div {
    padding: 1.5rem 2rem;
  }
  #ilovaFunksiyalari article div aside {
    font-size: 1.8rem;
  }
  #ilovaFunksiyalari article div h3 {
    font-size: 2.5rem;
  }
  #ilovaFunksiyalari article div p {
    font-size: 1.8rem;
  }

  /* Nega Biz: adjust text */
  #negaBiz article {
    padding: 1.5rem 3rem !important;
    & img{
      margin: auto;
    }
  }
  #negaBiz article h2 {
    font-size: 2.2rem !important;
  }
    #negaBiz * svg{
      top: -7ch !important;
    }
  #negaBiz article p {
    font-size: 1.3rem !important;
  }

  /* Foydali Tomonlari */
  #foydaliTomonlari article h2 {
    font-size: 2.5rem !important;
  }
  #foydaliTomonlari article p {
    font-size: 1.4rem !important;
  }
  #foydaliTomonlari article img{
    margin: auto;
  }

  /* Yuklab Oling: stack content vertically */
  #yuklabOling {
    flex-direction: column;
    padding: 2rem 4rem;
  }
  #yuklabOling h2 {
    font-size: 4rem;
    white-space: normal;
    margin-bottom: 1rem;
  }
  #yuklabOling .subtitle {
    font-size: 2.5rem;
  }
    #yuklabOling .store-buttons {
        & a{
          max-width: 30vw !important;
        }
    }
  #yuklabOling .main-download {
    font-size: 0.9rem;
    padding: 0.75rem 1.5rem;
  }
  #yuklabOling .image-wrapper img{
    scale: 1;
  }
}

/* ---- (B) Tablets / large phones (max-width: 768px) ---- */
@media (max-width: 768px) {
    #pageIndex main {
        padding: 0 2rem;
    }

    #pageIndex main section {
        padding: 2rem 1rem;
    }

    #hero {
        grid-template-columns: 1fr !important;
        text-align: center;
        gap: 2rem;
        & h1{
            font-size: 1.5rem !important;
        }
    }

    #hero div {
        align-items: center !important;
    }

    #hero .logo {
        max-width: 40vw !important;
    }

    #hero h1 {
        font-size: 2.5rem !important;
        line-height: 140% !important;
    }

    #hero p {
        font-size: 1.5rem !important;
    }

    #ilovaMaqsadi h2 {
        font-size: 3rem !important;
    }

    #ilovaMaqsadi p {
        font-size: 2rem !important;
        padding: 2rem 1rem !important;
    }

    #ilovaMaqsadi p span {
        font-size: 4rem !important;
    }

    #ilovaFunksiyalari {
        display: flex !important;
        flex-direction: column !important;
        gap: 2rem;
    }

    #ilovaFunksiyalari article {
        grid-template-columns: 1fr !important;
    }

    #ilovaFunksiyalari article img {
        order: 0 !important;
    }

    #negaBiz article,
    #foydaliTomonlari article {
      display: flex !important;
        flex-direction: column !important;
        padding: 2rem !important;
    }

    #negaBiz h2,
    #foydaliTomonlari h2 {
        font-size: 3rem !important;
        text-align: center;
    }

    #negaBiz * svg{
      top: -10ch !important;
    }
    #negaBiz p,
    #foydaliTomonlari p {
        font-size: 1.5rem !important;
        text-align: center !important;
    }

    #yuklabOling {
        flex-direction: column !important;
        padding: 2rem !important;
        text-align: center;
    }

    #yuklabOling h2 {
        font-size: 3rem !important;
        text-wrap: wrap !important;
    }

    #yuklabOling .subtitle {
        font-size: 1.5rem !important;
    }

    #yuklabOling .main-download {
        font-size: 1rem !important;
    }
    #yuklabOling .store-buttons {
        & a{
          max-width: 50vw !important;
        }
    }

}


/* ---- (C) Smartphones / narrow viewports (max-width: 480px) ---- */
@media (max-width: 480px) {
  /* Further reduce paddings */
  #pageIndex main section,

  main{
    padding: .2rem !important;
  }
  * section{
    padding: 1rem !important;
  }
  
  /* Hero */
  #hero h1 {
    font-size: 2rem !important;
  }
  #hero img:not(.logo) {
    max-width: 80vw;
    margin: auto;
  }
  .logo {
    max-width: 35vw;
  }

  /* Ilova Maqsadi */
  #ilovaMaqsadi h2 {
    font-size: 2rem !important;
  }
  #ilovaMaqsadi p {
    font-size: 1.5rem !important;
    padding: 2rem 1rem;
  }
  #ilovaMaqsadi p span {
    font-size: 4rem;
  }

  /* Ilova Funksiyalari */
  #ilovaFunksiyalari article div h3 {
    font-size: 1.8rem;
  }
  #ilovaFunksiyalari article div p {
    font-size: 1.2rem;
  }
  #ilovaFunksiyalari article img {
    width: 100%;
    height: auto;
  }

  /* Nega Biz */
  #negaBiz article h2 {
    text-align: center;
    font-size: 2rem !important;
  }
  #negaBiz article p {
    font-size: 1.4rem;
    text-align: center;
    margin-left: 0;
  }

  #negaBiz article img {
    display: none;
  }

  /* Foydali Tomonlari */
  #foydaliTomonlari article {
    display: flex !important;
    flex-direction: column !important;
    align-items: center;
    text-align: center;
    padding: 1rem !important;
  }
  #foydaliTomonlari article h2 {
    text-align: center;
    font-size: 2rem !important;
  }
  #foydaliTomonlari article p {
    font-size: 1rem !important;
    font-weight: 700;
  }

  /* Yuklab Oling */
  #yuklabOling h2 {
    font-size: 2.5rem;
  }
  #yuklabOling .subtitle {
    font-size: 1.4rem;
  }
  #yuklabOling .main-download {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
  }
}














footer {
  background: #fff;
  color: #000000;
  padding: 2rem 10%;
  font-family: sans-serif;
  overflow: hidden;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
}

footer section {
  flex: 1 1 200px;
  min-width: 200px;
}

footer section img {
  max-width: 120px;
}

footer section p {
  margin: 0.5rem 0;
}
.app-links, .social-links{
  display: flex;
}
.social-links a,
.app-links a {
  margin-right: 0.5rem;
  color: #000000;
  font-size: 1.2rem;
  cursor: pointer;
}


footer section a {
  display: block !important;
  margin: 0.3rem 0;
  color: #000000;
  text-decoration: none;
  width: fit-content;
}

footer section a:hover {
  color: #1d1d1d;
}

#copyright {
  text-align: center;
  margin-top: 2rem;
  border-top: 1px solid #444;
  padding-top: 1rem;
  font-size: 0.9rem;
}

#copyright a {
  color: #000000;
  text-decoration: underline;
}

/* Responsive layout for smaller screens */
@media (max-width: 768px) {
  footer{
    padding: 1rem 0.2rem;
  }
  .footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}
.app-links img, .social-links img {
  height: 4ch; /* You can adjust to 16px or 20px if you want even smaller */
  width: 4ch;
  margin-right: 0.5rem;
}