/*Variables Css*/
:root {
  --header-height: 3rem;
  /* --paua-color: #2e2886; */
  --pattens-blue-color: #d9f4ff;
  --sunglow-color: #ffd32c;
  --pattens2-blue-color: #cce8fd;
  --body-color: white;
  --white-color: #fff;
  --scroll-bar-color: #dcedfa;
  --scroll-thumb-color: #9edefc;
  --body-font: "Lato", sans-serif;
  --title-font: "Playfair Display", serif;
  --biggest-font-size: 2.5rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 4.25rem;
  --h3-font-size: 1rem;
  --normal-font-size: 0.938rem;
  --small-font-size: 0.813rem;
  --smaller-font-size: 0.75rem;

  --font-regular: 400;
  --font-medium: 500;
  --font-semi-bold: 600;
  --font-bold: 700;

  --mb-0-25: 0.25rem;
  --mb-0-5: 0.5rem;
  --mb-0-75: 0.75rem;
  --mb-1: 1rem;
  --mb-1-25: 1.25rem;
  --mb-1-5: 1.5rem;
  --mb-2: 2rem;
  --mb-2-5: 2.5rem;

  --z-tooltip: 10;
  --z-index: 100;
  --z-fixed: 100;

  --img-transition: 0.3s;
  --img-hidden: hidden;
  --img-scale: scale(1.1);
}

@media screen and (min-width: 968px) {
  :root {
    --biggest-font-size: 4rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 4.25rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: 0.875rem;
    --smaller-font-size: 0.813rem;
  }
}

.fade-in {
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.fade-in-visible {
  opacity: 1;
}

/* Base Styles */
.hero-wrap {
  margin-left: 1rem;
  margin-top: 0.4rem;
  display: flex;
  flex-direction: column;
}

.inner-hero-wrap {
  display: flex;
  flex-direction: row;
}

.hero-wrap h1 {
  color: var(--text-color);
  font-family: var(--title-font);
  font-size: 5rem;
  padding-bottom: 0;
  margin-bottom: 10px;
}

.hero-wrap p:nth-of-type(1) {
  margin-top: 0;
  padding-top: 0;
  padding-left: 8px;
  font-size: 2rem;
  font-family: var(--lato);
  color: var(--text-color);
}

.hero-wrap p:nth-of-type(2) {
  margin-top: 0;
  padding-left: 10px;
  padding-top: 0;
  font-size: 1.8rem;
}

#hero-img-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
  align-items: center;
}

#hero-img {
  width: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: auto;
  margin-right: 170px;
  border-radius: 50px;
}

@media screen and (min-width: 500px) {
  #hero-img {
    width: 650px;
  }
  .inner-hero-wrap {
    width: 500px;
  }
}

#hero-wrap-text {
  margin-top: 0px;
  margin-bottom: 20px;
}

@media screen and (min-width: 1200px) {
  .hero-wrap {
    flex-direction: row;
    margin: auto;
    display: flex;
    justify-content: center;
    max-width: 700px;
  }

  .inner-hero-wrap {
    max-width: 500px;
  }

  #hero-wrap-text {
    margin-top: 200px;
  }

  .hero-wrap h1 {
    font-size: 6.5rem;
  }
  #hero-img {
    width: 900px;
    display: flex;
    margin-right: 100px;
    border-radius: 3px;
    border-bottom-right-radius: 10rem;
    border-top-right-radius: 10rem;
  }
}

/* Add transition effect */
.fade-in {
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.fade-in-visible {
  opacity: 1;
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: var(--header-height) 0 0 0;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  color: #130f49;
}

h1,
h2,
h3 {
  /* color: var(--paua-color); */
  font-weight: var(--font-semi-bold);
  font-family: var(--title-font);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  /* max-width: 100%; */
  height: auto;
}

button,
input {
  border: none;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
}

button {
  cursor: pointer;
}

input {
  outline: none;
}

.main {
  overflow-x: hidden;
}

.section {
  padding: 4.5rem 0 2.5rem;
}

.section__title {
  font-size: var(--h2-font-size);
  /* color: #130f49; */
  text-transform: capitalize;
  margin-bottom: var(--mb-2);
}

.container {
  max-width: 1040px;
  margin-left: var(--mb-1);
  margin-right: var(--mb-1);
}

.container-full {
  max-width: 1356px;
  margin: 0 auto;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
  background-color: transparent;
}

.show-menu {
  right: 0;
}

.active-link {
  position: relative;
  color: var(--title-color);
}

.app_btn {
  display: flex;
  align-items: center;
  padding: 19px 22px;
  border-radius: 1.313rem;
}

.app_btn .button__data {
  display: flex;
  flex-direction: column;
  letter-spacing: -0.01em;
  text-align: left;
}

.app_btn .button__data {
  font-size: 19px;
  font-weight: var(--font-medium);
}

.app_btn .button__data span {
  font-size: 14px;
}

.app_btn img {
  margin-right: 12px;
}

.app__btn_dark {
  /* background-color: var(--paua-color); */
  color: var(--white-color);
}
.app_btn span {
  opacity: 1;
  /* color: #130f49; */
  font-size: 1.4rem;
}

.app__btn_white {
  background-color: var(--pattens-blue-color);
}

.br_bottom {
  border-bottom: 2px solid;
}
.br_sunglow {
  border-color: var(--sunglow-color);
}
.home__data-title {
  font-size: 7.625rem;
  line-height: 3.5rem;
  letter-spacing: -0.02em;
  font-weight: var(--font-semi-bold);
  margin-bottom: var(--mb-2-5);
}

.button {
  display: inline-block;
  /* background-color: var(--paua-color); */
  color: var(--white-color);
  padding: 1.25rem 2.25rem;
  border-radius: 1.25rem;
  font-size: 1.125rem;
  font-weight: var(--font-semi-bold);
  transition: 0.3s;
}

.button--flex {
  display: flex;
  align-items: center;
  column-gap: 0.25rem;
}

.button--link {
  background: none;
  padding: 0;
}

.button--link:hover {
  background: none;
}

.scroll-header .nav__logo,
.scroll-header .nav__toggle {
  color: var(--title-color);
}

.target__data {
  text-align: center;
}

.target__container {
  row-gap: 2.5rem;
}

.target__description {
  margin-bottom: var(--mb-2);
  font-size: 24px;
  line-height: 35px;
  letter-spacing: -0.01em;
  /* color: #130f49; */
  opacity: 0.4;
}

.target__img {
  display: flex;
  column-gap: 1rem;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.target__img {
  width: 501px;
  height: 501px;
  background-color: #fecfd0;
  border-radius: 100%;
}

.target__img-overlay {
  overflow: var(--img-hidden);
}

.target__img-one {
  height: 450px !important;
  width: 500px !important;
}

.target__img-one,
.target__img-two {
  transition: var(--img-transition);
}

.target__img-one:hover,
.target__img-two:hover {
  transition: var(--img-scale);
}

.target__img-overlay {
  overflow: var(--img-hidden);
  display: flex;
  align-items: flex-end;
  box-shadow: 4px 16px 50px 0px #f1a0ad;
  border-radius: 30px;
}

.target__img-overlay img {
  height: 100%;
}

/* YOUTUBE EMBED STYLES */

.video-wrapper {
  margin: auto;
  position: relative;
  width: 90%; /* Flexible width for small screens */
  max-width: 1000px; /* Lock width to 500px for larger screens */
  height: 481px; /* Lock height to maintain 16:9 aspect ratio at 500px width */
  background-color: #000;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 100px;
  margin-bottom: 100px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Responsive iframe styling */
.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* FULLSCREEN IMAGE STYLES */

/* Hover effect for images */
.grid-wrapper > div > img {
  position: relative;
  cursor: pointer;
  transition: filter 0.3s ease;
}

.grid-wrapper > div > img:hover {
  filter: grayscale(0.5);
}

.grid-wrapper {
  max-width: 90%;
  margin: auto;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

/* Eye icon overlay */
/* Icon overlay styling */
.grid-wrapper > div {
  position: relative;
}

.grid-wrapper > div ion-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.8);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.grid-wrapper > div:hover ion-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Fullscreen view styles */
.fullscreen-view {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.8);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1000;
}

.fullscreen-view.active {
  visibility: visible;
  opacity: 1;
}

.fullscreen-view img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
}

#close-btn {
  position: absolute;
  top: 20px;
  right: 50px;
  font-size: 2rem;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
}

#grid-h3 {
  /* color: var(--paua-color); */
  margin: auto;
  display: flex;
  text-align: center;
  justify-content: center;
  align-items: center;
  font-size: 4rem;
  margin-top: 2rem;
  margin-bottom: 1.6rem;
}

.grid-wrapper > img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  display: inline-block;
}

.grid-wrapper {
  background-color: #d9f4ff;
  margin-top: 4rem;
}
@media screen and (min-width: 2200px) {
  .grid-wrapper {
    max-width: 2000px;
  }
}

/* Flex centering for individual items */
.grid-wrapper > div {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Image styling */
.grid-wrapper > div > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
}

.scrollup {
  position: fixed;
  right: 1rem;
  bottom: -20%;
  background-color: var(--first-color);
  padding: 0.5rem;
  display: flex;
  opacity: 0.9;
  z-index: var(--z-tooltip);
  transition: 0.4s;
}

.scrollup__icon {
  color: var(--white-color);
}

.scrollup:hover {
  background-color: var(--first-color-alt);
  opacity: 1;
}

.show-scroll {
  bottom: 5rem;
}

::-webkit-scrollbar {
  width: 0.6rem;
  background-color: var(--scroll-bar-color);
}
::-webkit-scrollbar-thumb {
  background-color: var(--scroll-thumb-color);
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--text-color-light);
}

/* Small devices */
@media screen and (max-width: 340px) {
  .home__info {
    width: 190px;
    padding: 1rem;
  }
  .home__data-subtitle {
    margin-top: 20px;
  }
}

/* Medium devices */

@media screen and (min-width: 992px) {
  body {
    margin: 0;
  }
  .nav {
    height: calc(var(--header-height) + 1.5rem);
  }
  .nav__link {
    color: #0b0736;
    text-transform: initial;
  }
  .nav__link:hover {
    color: #0b0736;
  }
  .nav__menu {
    display: flex;
    column-gap: 1rem;
  }
  .nav__list {
    flex-direction: row;
    column-gap: 4rem;
  }

  .change-theme {
    color: var(--white-color);
  }
  .scroll-header .nav__link {
    color: var(--text-color);
  }
  .scroll-header .active-link {
    color: var(--title-color);
  }
  .scroll-header .change-theme {
    color: var(--text-color);
  }

  .section {
    padding: 7rem 0 2rem;
  }

  .target__container {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: 5rem;
  }
  .target__data,
  .target__title {
    text-align: initial;
  }
  .target__title {
    margin-bottom: var(--mb-1-5);
    color: var(--paua-color);
  }
  .target__description {
    margin-bottom: var(--mb-2);
  }
}

/* Large devices */
@media screen and (min-width: 1024px) {
  .container {
    margin-left: auto;
    margin-right: auto;
  }

  .target__img-one {
    width: 240px;
  }
}

@media screen and (min-width: 1200px) {
  .container {
    max-width: 1024px;
  }
}

/* Tall screens on mobiles y descktop */
@media screen and (min-height: 721px) {
  body {
    margin: 0;
  }
}

@media screen and (max-width: 992px) {
  .target__container {
    text-align: center;
  }
  .target__img {
    margin: 0 auto;
  }
  .target .app_btn {
    margin: 0 auto;
  }

  .scroll-header {
    padding-top: 8px;
  }
  .header {
    padding-top: 8px;
    justify-content: space-between;
  }
}

@media screen and (max-width: 552px) {
  .target__img {
    width: 400px;
    height: 400px;
  }
}

@media screen and (max-width: 442px) {
  .target__img-one {
    height: 350px !important;
    width: 500px !important;
  }

  h2 {
    font-size: 3rem !important;
    line-height: 3.2rem !important;
  }
  .target__img {
    width: 320px;
    height: 320px;
    overflow: visible;
  }

  .grid-wrapper {
    max-width: 350px;
    margin: auto;
  }
  section#target {
    padding: 200px 0 0;
  }
}

@media screen and (max-width: 320px) {
  h2 {
    font-size: 2.4rem !important;
    line-height: 2.6rem !important;
  }
  .target__img {
    width: 240px;
    height: 240px;
    overflow: visible;
  }
  section#target {
    padding: 200px 0 0;
  }
}

/* Desktop and tablet layout (above 768px) */
@media (min-width: 768px) {
  .grid-wrapper {
    display: flex;
    flex-direction: column;
  }

  .target__img-one {
    height: 600px !important;
    width: 500px !important;
  }
}

/* Default grid layout */
.grid-wrapper {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-auto-rows: 200px;
  grid-auto-flow: dense;
}

/* Grid span classes */
.grid-wrapper .wide {
  grid-column: span 2;
}

.grid-wrapper .tall {
  grid-row: span 2;
}

.grid-wrapper .big {
  grid-column: span 2;
  grid-row: span 2;
}

/* Adjustments for small screens (phones) */
@media only screen and (max-width: 600px) {
  .grid-wrapper {
    display: flex;
    flex-direction: column;
  }

  .grid-wrapper > div {
    width: 100%;
    height: auto;
  }

  .tall,
  .wide,
  .big {
    grid-column: span 1;
    grid-row: span 1;
  }

  .grid-wrapper > div > img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }
}
