:root {
  --light-color: #b67e7d;
  --secondary-color: #640000;
  --tertiary-color: #420001;
  --text-color: #040b15;
}
*{
    scroll-behavior: auto;
}
.nav-container {
  display: flex;
  /* align-content: center; */
  width: 100%;
  margin: 0 auto;
}

.home-graph {
  position: relative;
  width: 80%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 10.5%;
  margin-left: 5%;
  margin-bottom: -.6%;
}
.home-graph img {
  width: 90%;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  display: block;
  position: relative;
  top: 3.5rem;
}
.nav-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-center {
  display: flex;
  align-items: center;
  position: relative;
  margin: 0 auto;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}

.nav-logo span {
  margin-left: 0.2rem;
  font-size: 20px;
  font-weight: bolder;
}

.nav-logo p {
  font-size: large;
  font-weight: 900;
  font-family: "Lequire", sans-serif;
}

.logo {
  width: 40px;
  height: 36px;
}

.navbar {
  position: static;
  top: 0;
  width: 70%;
  height: 4rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: space-between;
  align-content: center;
  background-color: rgb(247, 245, 245);
  z-index: 1000;
  position: relative;
  top: 1.5rem;
  border: 5px solid rgb(230, 230, 230);
  border-radius: 8px;
}

.nav-items {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  font-size: 17px;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--secondary-color);
}

.cart-container {
  position: relative;
  width: 28px;
  height: 28px;
  cursor: pointer;
}

.cart-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background-color: var(--secondary-color);
  color: #fff;
  font-size: 10px;
  font-weight: bold;
  padding: 1px 4px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
  z-index: 10;
  pointer-events: none;
  transition: transform 0.2s ease;
}

.cart-count.animate {
  transform: scale(1.3);
}

.cart-count.animate-remove {
  transform: scale(0.8);
}

.btn-get {
  padding: 0.5rem 1rem;
  text-align: center;
  color: white;
  background: var(--secondary-color);
  border: none;
  border-radius: 5px;
  font-size: 16px;
  margin-left: 0.8rem;
  cursor: pointer;
  box-shadow: inset 1px 1px 3px white ;
}

@media (max-width: 1500px) {
  .btn-get {
    display: none;
    padding: 0.3rem 0.5rem;
    font-size: 12px;
    margin-left: 30rem;
  }
  .nav-left {
    position: relative;
    left: 1rem;
  }
}
@media (max-width: 1300px) {
  .nav-container {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .nav-left {
    position: relative;
  }
  .btn-get {
    display: none;
  }
  .navbar {
    width: 85%;
    padding: 0.5rem 3%;
  }
  .nav-center {
    width: 100%;
    order: 3;
    position: relative;
    left: -2.2rem;
  }

  .nav-right {
    position: relative;
    left: 0;
  }

  .nav-links {
    position: absolute;
    top: 1rem;
    width: 108.9%;
    background: rgba(255, 255, 255, 0.95);
    flex-direction: column;
    gap: 1.2rem;
    padding: 1.5rem 1rem;
    display: none;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  }

  .nav-links.show {
    display: flex;
    animation: fadeIn 0.3s ease forwards;
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    cursor: pointer;
    z-index: 1100;
    transition: transform 0.4s ease;
  }

  .hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--secondary-color);
    border-radius: 5px;
    transition: all 0.5s ease;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
}

@media (max-width: 768px) {
  .nav-container {
    flex-wrap: wrap;
    justify-content: space-between;
  }
  .navbar {
    width: 85%;
  }
  .nav-center {
    width: 106%;
    order: 3;
    margin: 0px auto;
    display: block;
    position: relative;
    left: -0.8rem;
  }

  .nav-right {
    position: relative;
    left: 0;
  }

  .btn-get {
    display: none;
  }
  .nav-links.hide {
    position: relative;
    animation: fadeOut 0.8s ease-in-out;
    pointer-events: none;
  }
  .nav-links {
    position: absolute;
    left: 0;
    width: 108%;
    background: rgba(255, 255, 255, 0.95);
    flex-direction: column;
    align-items: flex-start;
    display: none;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  }

  .nav-links.show {
    display: flex;
    animation: fadeIn 0.5s ease-in-out;
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(-50%);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes fadeOut {
    from {
      opacity: 1;
      transform: translateY(0);
    }
    to {
      opacity: 0;
      transform: translateY(-50%);
    }
  }

  .nav-links.show li:nth-child(1) {
    transition-delay: 0.1s;
  }
  .nav-links.show li:nth-child(2) {
    transition-delay: 0.2s;
  }
  .nav-links.show li:nth-child(3) {
    transition-delay: 0.3s;
  }
  .nav-links.show li:nth-child(4) {
    transition-delay: 0.4s;
  }

  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    cursor: pointer;
    z-index: 1100;
    transition: transform 0.4s ease;
  }

  .hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--secondary-color);
    border-radius: 5px;
    transition: all 0.5s ease;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
  .home-graph {
    margin-left: 0%;
    left: 0%;
    transform: translateX(0%);
    
  }
}
/* TABLET FIX — for screens between 769px and 1300px */
@media (min-width: 769px) and (max-width: 1300px) {

  .home-graph {
    width: 85%;
    left: 45%;
    transform: translateX(-50%);
    margin-top: 18%;      /* bigger top margin → no overlap */
    margin-bottom: -2rem;
  }

  .home-graph img {
    width: 100%;
    top: 2rem;            /* reduce the lift */
  }
}


.home-title {
  width: 24rem;
  height: 2.6rem;
  padding-left: 0.1rem;
  padding-right: 0.6rem;
  padding: -0.67rem 0px;
  display: flex;
  background: #fff;
  align-items: center;
  border-radius: 1.7rem;
  position: relative;
  top: 4rem;
  margin: 0px auto;
}
.home-title p {
  font-size: 17px;
  text-align: center;
  margin: 0px auto;
}
.home-title img {
  width: auto;
  height: 100%;
  margin: 2%;
}
.home-heading {
  display: flex;
  flex-direction: column;
  position: relative;
  top: 5.5rem;
  align-items: center;
}

.head-1 {
  font-size: 48px;
  font-weight: 500;
  text-align: center;
  font-family: "Inter Tight", sans-serif;
  color: #dad5d5;
}
.head-2 {
  font-size: 16px;
  position: relative;
  top: 1.5rem;
  color: #c1c0c0;
}
.email {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  gap: 1rem;
}

.email input {
  width: 30%;
  height: 3rem;
  display: flex;
  background: #fff;
  border: none;
  border-radius: 1.7rem;
  position: relative;
  top: 9.5rem;
  font-size: 16px;
  padding: 8px;
  padding-left: 20px;
  color: var(--secondary-color);
}

.email button {
  width: 8.5rem;
  height: 3.3rem;
  padding: 0.5rem;
  border-radius: 1.7rem;
  font-size: 16px;
  color: #fff;
  background-color: var(--secondary-color);
  position: relative;
  top: 9.5rem;
  border: none;
    box-shadow: inset 1px 1px 5px white ;
  &:hover {
    background-color: var(--tertiary-color);
  }
}

@media (max-width: 768px) {
  .home-title {
    width: 24rem;
    padding-left: 0.1rem;
    padding-right: 0.6rem;
    padding: -0.67rem 0px;
    display: flex;
    background: #fff;
    align-items: center;
    border-radius: 1.7rem;
    position: relative;
    top: 4rem;
  }
  .home-title img {
    width: 40px;
    height: 100%;
  }
  .home-heading {
    display: flex;
    flex-direction: column;
    position: relative;
    top: 5.5rem;
    align-items: center;
  }

  .head-1 {
    font-size: 48px;
    font-weight: 500;
    text-align: center;
    font-family: "Inter Tight", sans-serif;
    color: #dad5d5;
  }
  .head-2 {
    font-size: 16px;
    position: relative;
    top: 1.5rem;
    color: #c1c0c0;
  }
  .email {
    align-items: center;
  }

  .email input {
    width: 50%;
    height: 3rem;
    display: flex;
    background: #fff;
    border: none;
    border-radius: 1.7rem;
    position: relative;
    top: 9.5rem;
    font-size: 16px;
    padding: 8px;
    padding-left: 20px;
    color: var(--secondary-color);
  }

  .email button {
    width: 8.5rem;
    height: 3.3rem;
    padding: 0.5rem;
    border-radius: 1.7rem;
    font-size: 16px;
    color: #fff;
    background-color: var(--secondary-color);
    position: relative;
    top: 9.5rem;
    box-shadow: inset 1px 1px 3px white ;
    &:hover {
      background-color: var(--tertiary-color);
    }
  }

  .home-graph {
    position: relative;
    width: 100%;
    left: 5%;
    margin-top: 32%;
    margin-bottom: -3.3%;

  }
  .home-graph img {
    width: 90%;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    display: block;
    position: relative;
    top: 3rem;
  }
}


.home-container {
  position: relative;
  overflow: hidden;
  z-index: 0;
}
.home-container::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width:100%;
  height: 50px;
  background: linear-gradient(transparent, var(--light-color));
  pointer-events: none;
}


.home-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.home-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(1); 
}


.home-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.navbar {
  z-index: 9999 !important;
  position: relative !important;
}

@media (max-width: 1300px) {
  .nav-links {
    z-index: 9999 !important;
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  }

  .hamburger {
    z-index: 10000 !important;
  }
}

.home-container {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  padding-bottom: 4rem;
}

.home-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.home-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.8);
}

.home-body,
.navbar {
  position: relative;
  z-index: 10;
}

.navbar {
  z-index: 9999 !important;
  position: relative !important;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
}

/* Mobile menu stays on top */
@media (max-width: 1300px) {
  .nav-links {
    z-index: 9999 !important;
  }
}
