  .hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    padding: 50px;
    background: 
      linear-gradient(
        to right, 
        rgba(255, 255, 255, 0.23) 40%, 
        rgb(137, 171, 255, 1) 65%, 
        rgb(251, 196, 238, 1) 100%
      ),
      url('../images/background.svg') left center/65% no-repeat;
    
    background-attachment: fixed; 
    background-position: left top 35%; 
  }
  
  .hero-content {
    position: relative;
    z-index: 2;
    flex: 1;
    max-width: 45%;
    text-align: left;
    padding-top: 8rem;
    left: 3rem;
  }
  
  .hero-title1 {
    font-size: 3rem;
    background: var(--secondary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
  }

  .hero-title2 {
    font-size: 3rem;
    color: white;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.8);
    min-height: 3rem; 
  }
  
  .hero-subtitle {
    font-size: 1.5rem;
    color: white;
    font-weight: bold;
    margin-bottom: 2rem;
    min-height: 3rem; 

  }
  
  .cta-button {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    background: var(--primary-gradient);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: opacity 0.3s ease;
    margin-bottom: 2rem;
  }
  
  .cta-button:hover {
    opacity: 0.9;
  }

.phone-container {
  width: clamp(15rem, 19rem, 23rem);
  height: auto;
  margin-bottom: 4rem;
  margin-top: 1rem;
}

  .hero-images {
    position: absolute;
    right: 4rem;
    top: 7rem;
    z-index: 2;
    display: flex;
    flex-direction: row;
    gap: 2rem;
    justify-content: center; 
    align-items: flex-end; 
  }
  

  .hero-image {
    width: 19rem !important; 
    height: auto !important;
    max-height: 35rem;
    object-fit: contain; 
    border-radius: 20px;
    transition: all 0.3s ease-in-out;
    z-index: 2;
    margin-bottom: 1rem;
  }
  
  .hero-image:hover {
    transform: scale(1.1);
    z-index: 3;
  }

  .phone-description {
    font-size: 1.5rem;
    text-align: center;
    color: var(--white);
    position: absolute;
    width: 19rem;
    font-weight: bold;
  }

  .app-links {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    margin-top: 2rem;
    margin-bottom: 4rem;
  }
  
  /* MarIA Section */
    .maria {
    display: flex;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    background: var(--primary-gradient);
    color: var(--white);
    overflow: hidden;
}

.maria-title-wrapper {
  text-align: center;
  margin-top: 0; 
  padding-top: 0; 
}

.maria-title-container {
  display: flex;
  align-items: center; 
  justify-content: center; 
  gap: 1rem; 
  margin: 0; 
}

.maria-title {
  font-size: 3rem;
  margin: 0; 
  padding: 0;
}

.maria-logo {
  width: 10rem; 
  height: auto;
}

.maria-subtitle {
  font-size: 2rem;
  margin-top: 1rem;
  padding-bottom: 3rem;
}


.maria-content {
    display: flex;
    flex-direction: row-reverse;
    gap: 2rem;
    align-items: center;
    position: relative;
    z-index: 2;
    max-width: 100%;
    font-weight: bold;
}

.maria-video {
    flex: 1;
    margin-bottom: 4rem;
}

.maria-video iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
}

.maria-description {
    flex: 1;
    text-align: left;
    font-size: 1.5rem;
    list-style-type: disc; 
    list-style-position: inside; 
    padding-left: 2rem; 
    align-self: flex-start; 
    display: block;
}

.maria-description li {
    display: list-item; 
    margin-bottom: 0.5rem; 
    list-style-type: disc;
}

.maria-description-last {
  font-size: 2rem;
  list-style: none !important; 
  padding-left: 0 !important; 
  margin-left: 0 !important; 
}

  .features {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    background-color: var(--white);
  }
  
  .features-title {
    font-size: 3rem;
    text-align: center;
    width: 100%;
    margin-bottom: 7rem;
    z-index: 3;
    position: relative;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  
  
  .feature-cards {
    display: grid;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    z-index: 2;
    position: relative;
    width: 100%;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
  
  .feature-card {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    flex: 1 1 250px;
    min-width: 20rem;
    max-width: 25rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  }
  
  
  .feature-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 1300;
  }

  .discover {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1rem;
    background: var(--primary-gradient);
    position: relative;
    overflow: hidden;
  }

  .discover .section-title {
    font-size: 3rem;
    text-align: center;
    width: 100%;
    color: white;
    z-index: 2;
    margin-bottom: 1rem;
  }

  .end {
    position: relative;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    background-color: var(--white);
    overflow: hidden;
  }
  
  .end .section-title {
    font-size: 3rem;
    text-align: center;
    width: 100%;
    margin-top: 3rem;
    margin-bottom: 6rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    z-index: 2;
  }
  
  .end-description1 {
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 5rem;
  }
  
  .end-description2 {
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
  }

  .app-links-bottom{
    margin-top: 4rem;
    margin-bottom: 3rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
  }

/* ====== RESPONSIVE STYLES ====== */

@media (min-width: 1500px) {
  .phone-container {
    margin-top: 4rem;
  }
}

@media (max-width: 1160px) {
    .hero {
        flex-direction: column;
        align-items: center;
        height: unset;
        text-align: center;
        justify-content: center;
        padding: 5rem 2rem;
        background: 
          linear-gradient(to bottom , 
            rgba(255, 255, 255, 0.2) 40%, 
            rgb(137, 171, 255, 1) 65%, 
            rgb(251, 196, 238, 1) 100%
          ), 
          url('../images/background.svg') center/cover no-repeat;
          background-size: contain; 
          background-position: center top; 
          background-attachment: scroll; 
    }

    .hero-content {
        max-width: 80%;
        text-align: center;
        left: unset;
    }

    .hero-title1 {
      background: var(--third-gradient);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
    }

    .app-links {
        justify-content: center;
    }

    .hero-images {
        position: static;
        right: unset;
        bottom: unset;
        flex-direction: row;
        justify-content: center;
        margin-top: 3rem;
        min-height: 35rem;
    }

    .maria{
        height: unset;
    }

    .maria-content {
      flex-direction: column;
      text-align: center;
    }
  
    .maria-description {
      text-align: left;
      font-size: 1.3rem;
      margin-bottom: 2rem;
    }
  
    .maria-video {
      width: 100%;
    }

    .feature-cards {
        grid-template-columns: repeat(1, 1fr);
      }
  
      .feature-card {
        width: 100%; 
      
        margin: 0 auto;
      }

  }

@media (max-width: 768px) {
    .hero{
        background: 
        linear-gradient(to bottom, 
          rgba(255, 255, 255, 0.2) 40%, 
          rgb(186, 205, 250, 1) 65%, 
          rgb(251, 196, 238, 1) 100%
        ), 
        url('../images/background.svg') top/cover no-repeat;
        background-size: cover;
        background-position: center top; 
    }


    .hero-subtitle{
        color: white;
    }

    .hero-content {
        max-width: 90%;
        color: var(--text-color);
    }

    .hero-images {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        object-fit: cover;
    }

    .hero-image {
        width: 80%;
        height: auto;
        margin: 0;
    }

    .maria-title {
        font-size: 2.5rem;
      }
    
      .maria-subtitle {
        font-size: 1.8rem;
      }
    
      .maria-description {
        font-size: 1.2rem;
      }

      .feature-cards {
        grid-template-columns: repeat(1, 1fr); 
      }
    
      .feature-card {
        width: 100%; 
        margin: 0 auto;
      }
}

  
  @media (max-width: 510px) {
    .maria-title {
      font-size: 2rem;
    }
  
    .maria-subtitle {
      font-size: 1.5rem;
    }
  
    .maria-description {
      font-size: 1rem;
    }

    .end .section-title {
      font-size: 2rem;
    }

    .end p {
      font-size: 1rem;
    }
}

.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--white);
    width: 90vw; 
    max-width: 30rem; 
    height: auto; 
    max-height: 90vh; 
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    overflow-y: auto; 
}


.modal-content h2 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.modal-content form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.modal-content input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-light);
    border-radius: 5px;
    background-color: var(--input-bg, #fff);
    color: var(--text-color, #000);
}

/* Close button for modals */
.modal-content { position: relative; }

.modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-color, #333);
  opacity: 0.75;
  z-index: 10; /* ensure it's above content */
}

.modal-close:hover,
.modal-close:focus {
  opacity: 1;
  outline: none;
}


/* Make images shrink within their containers (prevents layout blowouts) */
img { max-width: 100%; height: auto; }

/* Mobile fixes: stop the section from exceeding the viewport width */
@media (max-width: 600px) {
  .features {
    padding: 1.25rem;          /* was 4rem; gives content more room */
    overflow-x: hidden;        /* safety valve in case of edge cases */
  }

  .feature-cards {
    grid-template-columns: 1fr; /* single column on phones */
  }

  .feature-card {
    min-width: 0;              /* remove 20rem floor */
    width: 100%;               /* fill the column */
  }

  /* Optional: hide decorative diamonds on phones if they crowd the layout */
  .features > img {
    display: none;
  }
}
