:root{
    --header-height:3rem;
      /*========== Colors ==========*/
--hue-color: 45; /* Warm golden hue */
--black-color: hsl(var(--hue-color), 15%, 5%); /* Rich deep black */
--black-color-alt: hsl(var(--hue-color), 15%, 10%);
--title-color: hsl(var(--hue-color), 30%, 96%); /* Elegant ivory white */
--text-color: hsl(var(--hue-color), 20%, 78%); /* Warm light beige text */
--text-color-light: hsl(var(--hue-color), 20%, 65%);
--white-color: #FFFFFF;
--body-color: hsl(var(--hue-color), 12%, 7%); /* Soft black background */
--container-color: hsl(var(--hue-color), 12%, 12%);
--text-gradient: linear-gradient(
  hsl(var(--hue-color), 40%, 60%), 
  hsl(var(--hue-color), 40%, 35%)
); /* Gold metallic gradient */
--scroll-thumb-color: hsl(var(--hue-color), 15%, 25%);
--scroll-thumb-color-alt: hsl(var(--hue-color), 15%, 30%);



  /*========== Font and typography ==========*/
  --body-font: 'Poppins', sans-serif;
  --biggest-font-size: 5rem;
  --bigger-font-size: 3.5rem;
  --big-font-size: 2.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1.125rem;
  --normal-font-size: .938rem;
  --small-font-size: .813rem;
  --smaller-font-size: .75rem;
  --text-line-height: 2rem;

  /*========== Font weight ==========*/
  --font-medium: 500;
  --font-semi-bold: 600;

  /*========== Margin Bottom ==========*/
  --mb-0-5: .5rem;
  --mb-0-75: .75rem;
  --mb-1: 1rem;
  --mb-1-5: 1.5rem;
  --mb-2: 2rem;
  --mb-2-5: 2.5rem;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

/*=============RESPONSIVE TYPOGRAGHY=========*/
@media screen and (min-width: 968px) {
  :root {
    --biggest-font-size: 7.5rem;
    --bigger-font-size: 4.5rem;
    --big-font-size: 4rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
    --smaller-font-size: .813rem;
  }
}

/*========================BODY========================*/

*{
    box-sizing: border-box;
    margin: 0;
    padding: 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: var(--text-color);
}

h1,h2,h3{
    color: var(--title-color);
}

ul{
    list-style: none;
}

a{
    text-decoration: none;
}

button,
input{
    border: none;
    outline: none;
}

button{
    cursor: pointer;
}

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

/*========================REUSABLE CSS CLASSES========================*/
.section{
    padding: 4rem 0 2rem;
}

.section__title{
    font-size: var(--bigger-font-size);
    text-align: center;
    margin-bottom: var(--mb-2-5);
}

.section__title-gradient{
    background: var(--text-gradient);
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
}

/*========================LAYOUT========================*/
.main{
    overflow: hidden;
}

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

.grid{
    display: grid;
}

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

/*=============== NAV ===============*/
.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  display: flex;
  width: 1.5rem;
}

.nav__toggle {
  font-size: 1.2rem;
  color: var(--white-color);
  cursor: pointer;
}

 
  .nav__menu {
    position: fixed;
    background-color: var(--body-color);
    top: -100%;
    left: 0;
    width: 100%;
    padding: 4rem 0 3rem;
    transition: .4s;
  }
  .nav__menu.show-menu {
  top: 0;
  }


.nav__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 1rem;
}

.nav__link {
  color: var(--white-color);
  font-size: var(--h2-font-size);
  text-transform: uppercase;
  font-weight: var(--font-semi-bold);
  background: var(--text-gradient);
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  transition: .4s;
}

.nav__link:hover {
  background: var(--white-color);
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}

.nav__close {
  position: absolute;
  font-size: 1.5rem;
  top: 1rem;
  right: 1rem;
  color: var(--white-color);
  cursor: pointer;
}

/* show menu */
.show-menu {
  top: 0;
}

/* Change background header */
.scroll-header {
  background-color: var(--body-color);
}

/* Active link */
.active-link {
  background: var(--white-color);
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}
/*=============== HOME ===============*/

.home__img {
  width: 250px;
  position: absolute;
  top: -16rem;
  right: 1.5rem;
  transform: translateY(25rem);
}

.home__data {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.home__header {
  position: relative;
  padding-top: 5rem;
}

.home__title {
  position: absolute;
  top: -4rem;
  left: 1rem;
  line-height: 6rem;
  padding-top: 5rem;
  font-size: var(--biggest-font-size);
  background: var(--text-gradient);
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}

.home__subtitle {
  font-size: var(--big-font-size);
  margin-bottom: var(--mb-2-5);
}

.home__title-description {
  font-size: var(--h3-font-size);
  font-weight: var(--font-medium);
  margin-bottom: var(--mb-1);
}

.home__description {
  margin-bottom: var(--mb-2-5);
  line-height: var(--text-line-height);
}

.home__price {
  font-size: var(--h3-font-size);
  font-weight: var(--font-semi-bold);
  margin-left: var(--mb-0-75);
}
/*=============== BUTTON ===============*/

.button {
  display: inline-block;
  background-color: var(--black-color);
  color: var(--white-color);
  padding: 1rem 1.25rem;
  border-radius: .5rem;
  transition: .3s;
}

.button:hover {
  background-color: var(--black-color-alt);
}

.button__icon {
  font-size: 1.2rem;
}

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


/*=============== FEATURES ===============*/
.features__container {
  position: relative;
  padding-right: 300px;
}

.features__content {
  row-gap: 1.5rem;
}

.features__data {
  display: grid;
  row-gap: .25rem;
}

.features__icon {
  font-size: 1.2rem;
  color: var(--white-color);
}

.features__title {
  font-size: var(--normal-font-size);
  font-weight: var(--font-medium);
}

.features__subtitle {
  font-size: var(--smaller-font-size);
}

.features__data:nth-child(1), .features__data:nth-child(4) {
  margin-left: 2.5rem;
}

.features__img {
  width: 250px;
  position: absolute;
  top: 5rem;
  right: -4rem;
}

/*=============== TESTIMONIAL ===============*/
.test__container {
  position: relative;
  grid-template-columns: repeat(2, 1fr);
  gap: 5rem 3rem;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.test__card {
  position: relative;
  height: 132px;
  background-color: var(--container-color);
  padding: .75rem;
  border-radius: .5rem;
  display: grid;
}

.test__content {
  align-self: center;
}


/*=============== PRODUCTS ===============*/
.products__line {
  line-height: 4rem;
}

.products__container {
  grid-template-columns: repeat(2, 1fr);
  gap: 5rem 1.5rem;
  padding-top: 3rem;
}

.products__card {
  position: relative;
  height: 132px;
  background-color: var(--container-color);
  padding: .75rem;
  border-radius: .5rem;
  display: grid;
}

.products__img {
  width: 80px;
  position: absolute;
  inset: 0;
  margin-right: auto;
  margin-left: auto;
  top: -3rem;
}

.products__content {
  align-self: flex-end;
}

.products__title, .products__price {
  font-size: var(--small-font-size);
}

.products__price {
  font-weight: var(--font-semi-bold);
}

.products__button {
  position: absolute;
  right: .5rem;
  bottom: .5rem;
  padding: .5rem;
  border-radius: .35rem;
}


/*=============== DISCOUNT ===============*/
.discount__container {
  position: relative;
  background-color: var(--container-color);
  padding: 2rem 1.5rem;
  border-radius: .75rem;
}

.discount__title {
  font-size: var(--h3-font-size);
  margin-bottom: var(--mb-0-75);
}

.discount__description {
  margin-bottom: var(--mb-1);
}

.discount__img {
  width: 300px;
  position: absolute;
  top: 4rem;
  right: -11rem;
}


/*=============== FOOTER ===============*/
.footer__container {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  row-gap: 2rem;
}

.footer__logo {
  width: 2rem;
}

.footer__title {
  font-size: var(--h3-font-size);
  font-weight: var(--font-medium);
  margin-bottom: var(--mb-1);
}

.footer__links {
  display: flex;
  flex-direction: column;
  row-gap: .5rem;
}

.footer__link {
  color: var(--text-color);
}

.footer__link:hover {
  color: var(--white-color);
}

.footer__form {
  display: flex;
  column-gap: .5rem;
  background-color: var(--container-color);
  padding: .5rem .75rem;
  border-radius: .5rem;
  margin-bottom: var(--mb-2);
}

.footer__input {
  background-color: var(--container-color);
  width: 90%;
  color: var(--white-color);
}

.footer__input::placeholder {
  color: var(--text-color);
  font-size: var(--normal-font-size);
  font-family: var(--body-font);
}

.footer__social {
  display: flex;
  column-gap: 1.25rem;
}

.footer__social-link {
  display: inline-flex;
  color: var(--white-color);
  background-color: var(--container-color);
  padding: .5rem;
  border-radius: .25rem;
  font-size: 1rem;
}

.footer__social-link:hover {
  background-color: var(--black-color);
}

.footer__copy {
  margin-top: 5rem;
  text-align: center;
}

.footer__copy-link {
  font-size: var(--smaller-font-size);
  color: var(--text-color-light);
}

/*=============== SCROLL UP ===============*/
.scrollup {
  position: fixed;
  right: 1rem;
  bottom: -20%;
  display: flex;
  background-color: var(--container-color);
  border-radius: .25rem;
  padding: .45rem;
  opacity: 9;
  z-index: var(--z-tooltip);
  transition: .4s;
}

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

.scrollup__icon {
  color: var(--white-color);
  font-size: 1.35rem;
}

/* Show Scroll Up*/
.show-scroll {
  bottom: 5rem;
}

/*=============== SCROLL BAR ===============*/
::-webkit-scrollbar {
  width: .60rem;
  border-radius: .5rem;
}

::-webkit-scrollbar-thumb {
  background-color: var(--scroll-thumb-color);
  border-radius: .5rem;
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--scroll-thumb-color-alt);
}

/*=============== MEDIA QUERIES ===============*/
/* For small devices */
@media screen and (max-width: 340px) {
  .container {
    margin-left: var(--mb-1);
    margin-right: var(--mb-1);
  }
  .section__title {
    font-size: var(--big-font-size);
  }
  .home__img {
    width: 200px;
    top: -13rem;
  }
  .home__title {
    top: -4rem;
    font-size: var(--bigger-font-size);
  }
  .home__data {
    padding-top: 1rem;
  }
  .home__description {
    font-size: var(--small-font-size);
  }
  .specs__img {
    width: 200px;
  }
  .case__container {
    grid-template-columns: .6fr 1fr;
  }
  .case__img {
    width: 220px;
    top: -2rem;
    left: -9rem;
  }
  .case__data {
    padding: 0;
  }
  .products__container {
    grid-template-columns: 142px;
    justify-content: center;
  }
}

/* For medium devices */
@media screen and (min-width: 576px) {
  .home__container {
    grid-template-columns: .8fr 1fr;
  }
  .home__data {
    padding-top: 2rem;
  }
  .home__img {
    top: -7rem;
    left: 0;
  }
  .specs__img {
    position: initial;
  }
  .specs__container {
    grid-template-columns: repeat(2, 1fr);
    justify-items: center;
    align-items: center;
  }
  .case__img {
    position: initial;
  }
  .case__data {
    padding: 0;
  }
  .case__container {
    grid-template-columns: max-content 250px;
    justify-content: center;
    align-items: center;
    column-gap: 2rem;
  }
  .discount__img {
    position: initial;
  }
  .discount__container {
    grid-template-columns: repeat(2, 1fr);
    justify-items: center;
    align-items: center;
  }
  .products__container {
    grid-template-columns: repeat(3, 142px);
    justify-content: center;
  }
}

@media screen and (min-width: 767px) {
  body {
    margin: 0;
  }
  .section {
    padding: 6rem 0 2rem;
  }
  .nav {
    height: calc(var(--header-height) + 1.5rem);
  }
  .nav__logo {
    width: 2rem;
  }
  .nav__list {
    flex-direction: row;
    column-gap: 3.5rem;
  }
  .nav__link {
    font-size: var(--normal-font-size);
    text-transform: initial;
  }
  .nav__toggle, .nav__close {
    display: none;
  }
  .home__container {
    position: relative;
    grid-template-columns: repeat(2, 1fr);
  }
  .home__img {
    top: -9rem;
    left: 4rem;
  }
  .home__data {
    padding-top: 8rem;
  }
  .specs__img {
    width: 300px;
  }
  .case__container {
    column-gap: 5rem;
  }
  .case__img {
    width: 300px;
  }
  .case__description {
    margin-bottom: var(--mb-2);
  }
  .discount__container {
    grid-template-columns: 250px max-content;
    justify-content: center;
    column-gap: 5rem;
    padding: 3rem 0;
  }
  .discount__title {
    font-size: var(--h2-font-size);
    margin-bottom: var(--mb-1);
  }
  .discount__description {
    margin-bottom: var(--mb-2);
  }
  .products__container {
    grid-template-columns: repeat(3, 162px);
    gap: 6rem 3rem;
    padding-top: 5rem;
  }
  .products__card {
    height: 152px;
    padding: .85rem;
  }
  .products__img {
    width: 95px;
  }
  .footer__container {
    grid-template-columns: .4fr .7fr .7fr 1fr;
  }
}

/* For large devices */
@media screen and (min-width: 1024px) {
  .container {
    margin-left: auto;
    margin-right: auto;
  }
  .home__img {
    width: 300px;
    top: -15rem;
  }
  .home__title {
    top: -5rem;
    left: 3.5rem;
  }
  .home__description {
    padding-right: 5rem;
  }
  .sponsor__img {
    width: 100px;
  }
  .discount__img {
    width: 350px;
  }
  .footer__container {
    padding-top: 3rem;
  }
  .footer__copy {
    margin-top: 9rem;
  }
}
  /* Extra small screens (phones under 480px) */
@media screen and (max-width: 480px) {
  /* Make sure images scale inside their sections */
  .home__img,
  .features__img,
  .discount__img {
    position: static;     /* remove absolute positioning */
    display: block;
    margin: 1rem auto;
    width: 70%;           /* responsive width */
    max-width: 250px;
    height: auto;
  }

  /* Resize text so it doesn’t overflow */
  .home__title {
    position: static;     /* remove absolute positioning */
    font-size: 2rem;
    line-height: 2.5rem;
    text-align: center;
    padding: 0;
    margin-bottom: 1rem;
  }

  .home__subtitle,
  .home__title-description,
  .home__description {
    text-align: center;
    padding: 0 1rem;
  }

  /* Products and features as 1-column */
  .products__container,
  .features__container,
  .test__container {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
    padding: 1rem;
  }

  /* Buttons scale */
  .button {
    width: 100%;
    text-align: center;
  }

  /* Footer stacks */
  .footer__container {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* ======================== MOBILE RESPONSIVE FIXES ========================= */
@media screen and (max-width: 767px) {
  /* Container adjustments */
  .container {
    margin-left: var(--mb-1);
    margin-right: var(--mb-1);
  }
  
  /* Home section mobile fixes */
  .home__img {
    position: relative;
    width: 200px;
    top: 0;
    right: 0;
    margin: 0 auto;
    transform: none;
  }
  
  .home__header {
    padding-top: 2rem;
  }
  
  .home__title {
    position: relative;
    top: 0;
    left: 0;
    line-height: 3.5rem;
    font-size: var(--bigger-font-size);
    text-align: center;
    padding-top: 0;
    margin-bottom: var(--mb-1);
  }
  
  .home__data {
    padding-top: 2rem;
    padding-bottom: 2rem;
    text-align: center;
  }
  
  .home__subtitle {
    font-size: var(--big-font-size);
    margin-bottom: var(--mb-1-5);
  }
  
  /* Features section mobile fixes */
  .features__container {
    padding-right: 0;
  }
  
  .features__img {
    position: relative;
    width: 200px;
    top: 0;
    right: 0;
    margin: 2rem auto;
    display: block;
  }
  
  .features__data:nth-child(1), 
  .features__data:nth-child(4) {
    margin-left: 0;
  }
  
  /* Testimonials mobile fixes */
  .test__container {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
  
  /* ================= PRODUCTS MOBILE FIX ================== */
  .products__container {
    grid-template-columns: 1fr; /* stack by default */
    gap: 2rem;
    padding-top: 2rem;
  }

  /* Between 500px–767px → allow 2 columns */
  @media screen and (min-width: 500px) and (max-width: 767px) {
    .products__container {
      grid-template-columns: repeat(2, 1fr);
      gap: 2rem 1rem;
    }
  }

  .products__card {
    height: auto;
    padding: 1rem;
    text-align: center;
  }

  .products__img {
    position: relative;
    width: 100px;
    max-width: 70%;
    margin: 0 auto 0.75rem;
    display: block;
  }

  .products__title {
    font-size: var(--h3-font-size);
    margin-bottom: 0.5rem;
  }

  .products__price {
    font-size: var(--normal-font-size);
  }

.button__icon{
 margin-left: -6px;
 }

.products__button{
 width: 40px;
}

.products__card{
margin-bottom: 20px;
}

  /* Discount section mobile fixes */
  .discount__container {
    text-align: center;
    padding: 1.5rem;
  }
  
  .discount__img {
    position: relative;
    width: 200px;
    top: 0;
    right: 0;
    margin: 1.5rem auto 0;
  }
  
  /* Navigation menu improvements */
  .nav__menu {
    padding: 3rem 0 2rem;
  }
  
  .nav__link {
    font-size: var(--h3-font-size);
  }
  
  /* Section spacing for mobile */
  .section {
    padding: 3rem 0 1.5rem;
  }
  
  .section__title {
    font-size: var(--big-font-size);
    margin-bottom: var(--mb-2);
  }
  
  /* Text elements */
  .home__description {
    line-height: 1.6;
    font-size: var(--normal-font-size);
  }
  
  /* Button sizing */
  .button {
    padding: 0.875rem 1rem;
  }
}

/* ================= EXTRA SMALL DEVICES (phones under 340px) ================= */
@media screen and (max-width: 340px) {
  .products__container {
    grid-template-columns: 1fr;
  }
  
  .home__title {
    font-size: var(--big-font-size);
    line-height: 3rem;
  }
  
  .home__subtitle {
    font-size: var(--h2-font-size);
  }
}

/* ================= TABLET ADJUSTMENTS (768px to 1023px) ================= */
@media screen and (min-width: 768px) and (max-width: 1023px) {
  .home__img {
    width: 220px;
    top: -10rem;
  }
  
  .features__img {
    width: 220px;
    right: -2rem;
  }
  
  .discount__img {
    width: 250px;
    right: -8rem;
  }
}
