:root {
  --blue-clr: #1b1b5d;
  --light-blue-clr: #27278d;
  --pink-clr: #a632c0;
  --light-pink-clr: #cb41e9;
  --dark-bg: #101010;
  --light-dark-bg: #1b1b1b;
  --primary-text: #e0e0e0;
  --secondary-text: #acacac;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--dark-bg);
  color: var(--primary-text);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  text-transform: capitalize;
  margin: 0;
  font-weight: 600;
  letter-spacing: 1px;
  line-height: 1.5;
}

p {
  letter-spacing: 1px;
  line-height: 1.5;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
  text-transform: capitalize;
}

img {
  width: 100%;
  object-fit: cover;
}

.container {
  width: 100%;
  max-width: 1200px;
  padding: 0 20px;
  margin: 0 auto;
}

.section-container {
  padding: 80px 0;
}

/* Button */
.btn {
  display: inline-block;
  padding: 8px 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  background: linear-gradient(135deg,
      var(--light-pink-clr) 30%,
      var(--pink-clr) 70%,
      var(--blue-clr) 100%);
  color: var(--primary-text);
  border-radius: 8px;
  border: 0;
  outline: 0;
  font-size: 1rem;
  letter-spacing: 1px;
  text-wrap: nowrap;
  text-transform: capitalize;
  cursor: pointer;
  transition: 0.5s;
}

.btn:hover {
  background: linear-gradient(135deg,
      var(--light-pink-clr) 30%,
      var(--pink-clr) 55%,
      var(--blue-clr) 100%);
  transform: translateY(-2px);
}

/* Section heading */
.sub-heading {
  text-align: center;
  margin-bottom: 40px;
  animation: showHeadingOnScroll linear;
  animation-timeline: view(70% 5%);
}

.sub-heading span {
  position: relative;
  color: var(--light-pink-clr);
  padding-left: 10px;
  text-transform: capitalize;
}

.sub-heading span::before {
  content: '';
  position: absolute;
  width: 4px;
  height: 100%;
  background: var(--pink-clr);
  left: 0;
}

.sub-heading h2 {
  font-family: 'Josefin Sans', sans-serif;
  font-size: clamp(1.5rem, 5vw, 2.25rem);
  margin-top: 10px;
}

/* Grid */
.grid-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.grid-item {
  position: relative;
  border-radius: 12px;
  width: 100%;
  max-width: 450px;
  margin: 0 auto;
  overflow: hidden;
}

/* Top text */
.top-p {
  text-align: center;
  padding-block: 5px;
  font-size: 0.8rem;
}

.top-p a {
  color: var(--light-pink-clr);
  margin-left: 5px;
}

.top-p a:hover {
  text-decoration: underline;
}

/* Header */
.header-container {
  position: fixed;
  top: 32px;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: 0.5s;
}

.nav-bar {
  position: relative;
  background: #2a2a2acc;
  border: #686868 solid 1px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 2.3em;
  border-radius: 12px;
}

.logo {
  display: grid;
  place-items: center;
  margin-right: 10px;
}

.logo img {
  width: 190px;
}

.mob-nav-menu {
  position: absolute;
  width: 100%;
  background: inherit;
  top: -150px;
  left: 0;
  opacity: 0;
  visibility: hidden;
  padding: 20px 30px;
  border-radius: 0 0 12px 12px;
  transition: 0.5s;
}

.nav-bar.active .mob-nav-menu {
  top: 58px;
  visibility: visible;
  opacity: 1;
}

.nav-bar.active {
  border-radius: 12px 12px 0 0;
}

.nav-links:not(.mob-nav-menu .nav-links),
.nav-btns:not(.mob-nav-menu .nav-btns) {
  display: none;
}

.nav-links a {
  display: block;
  position: relative;
  padding-block: 10px;
  margin-block: 10px;
  text-align: center;
  text-wrap: nowrap;
  font-size: 125%;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--pink-clr);
  transition: 0.5s;
}

.nav-links a:hover::after,
.nav-links a.active-link::after {
  width: 100%;
}

.nav-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 15px;
  gap: 10px;
}

.nav-btns a {
  padding: 5px;
  border-radius: 50%;
}

.nav-btns a:hover {
  color: var(--pink-clr);
}

.nav-btns button {
  padding-block: 4px;
}

.nav-btns .log-in {
  background: var(--light-blue-clr);
}

.nav-btns .log-in:hover {
  background: var(--blue-clr);
}

.menu-toggle-btn {
  background: transparent;
  border: 0;
  outline: 0;
  color: inherit;
  font-size: 1.5rem;
  cursor: pointer;
  transition: 0.5s;
}

.menu-toggle-btn:hover {
  color: var(--pink-clr);
}

@media (min-width: 800px) {
  .mob-nav-menu {
    display: none;
  }

  .nav-links:not(.mob-nav-menu .nav-links),
  .nav-btns:not(.mob-nav-menu .nav-btns) {
    display: flex;
    margin: 0;
  }

  .nav-links a {
    margin: 0;
    margin-right: 10px;
    padding: 6px;
  }

  .menu-toggle-btn {
    display: none;
  }
}

/* Hero */
#hero {
  /* background: url(/img/hero-bg.png) no-repeat center center/cover; */
  background: #04306e;
  background: linear-gradient(0deg, rgba(4, 48, 110, 1) 0%, rgba(3, 49, 112, 1) 6%, rgba(12, 43, 110, 1) 24%, rgba(0, 0, 0, 1) 86%);
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding-top: 70px;
  padding-bottom: 30px;
  overflow: hidden;
}

.row1 {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

@media (min-width: 768px) {
  .row1 {
    justify-content: center;
    gap: 3em;
  }
}

/* Button */
.btn-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: .3em;
  padding: 8px 0;
  width: 170px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  color: var(--primary-text);
  border-radius: 8px;
  border: 0;
  outline: 0;
  font-size: 1rem;
  letter-spacing: 1px;
  text-wrap: nowrap;
  text-transform: capitalize;
  cursor: pointer;
  transition: 0.5s;
  font-weight: bold;
}

@media (max-width: 390px) {
  .btn-hero {
    width: 145px;
  }
}

.btn-hero:first-child {
  background: #23cc45;
}

.btn-hero:last-child {
  background: #5764f2;
}

.btn-hero:hover {
  transform: translateY(-2px);
}

.btn-hero img {
  width: 30px;
}
  
.hero-content {
  display: grid;
  place-items: center;
  gap: 40px;
  width: 100%;
}

.hero-text {
  text-align: center;
  max-width: 500px;
}

.hero-text h1 {
  font-family: 'Josefin Sans', sans-serif;
  font-size: clamp(2rem, 5vw, 2.75rem);
  margin-bottom: 10px;
  animation: showHeroText 1s linear;
}

.hero-text h1 span {
  color: var(--light-pink-clr);
  font-size: clamp(2.5rem, 5vw, 3.25rem);
  display: block;
}

.hero-text h1 span span {
  display: inline;
}

.hero-text p {
  margin-bottom: 20px;
  animation: showHeroText 1.5s linear;
}

/* .shop-now {
  padding-inline: 30px;
  font-size: 1.3rem;
  animation: showHeroText 2s linear;
} */

.hero-img img {
  width: 100%;
  max-width: 550px;
  animation: showHeroImg 2s linear;
}

/* Categories */

.categories {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 60px;
}

.category-card {
  text-align: center;
  animation: showCardOnScroll linear;
  animation-timeline: view(70% 5%);
}

.category-icon {
  width: 150px;
  height: 150px;
  border-radius: 12px;
  background: var(--light-dark-bg);
  display: grid;
  place-items: center;
  margin-bottom: 15px;
  transition: 0.5s;
  overflow: hidden;
}

.category-icon img {
  width: 150px;
}

.category-icon:hover {
  background: var(--blue-clr);
}

/* Products */
.carousel-nav {
  display: flex;
  justify-content: end;
  gap: 10px;
  margin-bottom: 20px;
}

.swiper-button-next,
.swiper-button-prev {
  position: static !important;
  width: 40px !important;
  height: 40px !important;
  font-size: 1rem !important;
  background: var(--light-dark-bg);
  border: 2px solid var(--light-pink-clr);
  color: var(--light-pink-clr);
  border-radius: 50%;
  font-weight: bold;
  transition: 0.5s;
}

.swiper-button-next::after,
.swiper-button-prev::after {
  content: none !important;
}

.swiper-button-next svg,
.swiper-button-prev svg {
  display: none !important;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: var(--dark-bg);
}

.swiper {
  padding-bottom: 20px;
  height: auto;
  animation: showSwiperCardOnScroll linear;
  animation-timeline: view(95% 5%);
}

.swiper .card {
  background: var(--light-dark-bg);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  height: 100%;
  overflow: hidden;
}

.swiper .card-img {
  position: relative;
  height: 210px;
  margin-bottom: 15px;
  display: grid;
  place-items: center;
  transition: 0.5s;
}

.swiper .card-img img {
  width: 100px;
  z-index: 10;
  transition: 0.5s;
}

.swiper .card-img::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  background: var(--light-blue-clr);
  border: 4px solid var(--light-pink-clr);
  border-radius: 50%;
  top: -60%;
  left: -50%;
}

.swiper .card:hover .card-img img {
  scale: 1.05;
}

.swiper h3 {
  font-size: 1.2rem;
  margin-bottom: 7px;
}

.swiper .ratting {
  font-size: 0.8rem;
  margin-bottom: 15px;
}

.swiper .ratting i {
  color: #fbc531;
  margin-right: 2px;
}

.swiper .rating-num {
  color: var(--secondary-text);
}

.swiper .price {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 20px;
}

.swiper .btns {
  display: flex;
  align-items: center;
  gap: 15px;
}

.swiper .btn {
  flex: 1;
}

.swiper .rounded-btn {
  border: 2px solid var(--light-pink-clr);
  color: var(--light-pink-clr);
  border-radius: 50%;
  outline: 0;
  background: transparent;
  font-size: 1.1rem;
  padding: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: 0.5s;
}

.swiper .rounded-btn:hover {
  background: var(--dark-bg);
}

/* Featured */
.featured-item {
  animation: showCardOnScroll linear;
  animation-timeline: view(90% 1%);
}

.featured-item img {
  height: 100%;
}

.featured-content {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 20px;
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.8),
      rgba(0, 0, 0, 0.7),
      rgba(0, 0, 0, 0.6),
      rgba(0, 0, 0, 0.5),
      transparent);
}

.featured-content h3 {
  margin-bottom: 10px;
}

.featured-content p {
  color: var(--secondary-text);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.featured-content .price {
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 15px;
  color: var(--primary-text);
}

.featured-content .btn {
  background: var(--light-blue-clr);
  font-size: 0.8rem;
  padding-inline: 25px;
}

.featured-content .btn:hover {
  background: var(--blue-clr);
}

/* Blogs */
.blog-item {
  background: var(--light-dark-bg);
  animation: showCardOnScroll linear;
  animation-timeline: view(90% 5%);
}

.blog-item img {
  height: 220px;
}

.blog-content {
  padding: 20px;
}

.blog-content h3 {
  margin-bottom: 10px;
}

.blog-content p {
  color: var(--secondary-text);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.blog-content .read-more {
  color: var(--light-pink-clr);
}

.blog-content .read-more:hover {
  text-decoration: underline;
}

@media (min-width: 700px) {
  .grid-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-container {
    grid-template-columns: repeat(3, 1fr);
  }

  .featured-item:first-of-type {
    grid-row: span 2;
    grid-column: span 8/2;
  }
}

/* Facilities */
.facilities {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}

.facility-item {
  max-width: 300px;
  text-align: center;
  animation: showCardOnScroll linear;
  animation-timeline: view(80% 5%);
}

.facility-item .icon {
  display: inline-block;
  background: var(--blue-clr);
  border: 8px solid var(--light-blue-clr);
  font-size: 2rem;
  padding: 10px;
  border-radius: 50%;
}

.facility-item h3 {
  font-size: 1.4rem;
  margin: 15px 0 10px;
}

.facility-item p {
  color: var(--secondary-text);
  font-size: 0.9rem;
}

/* Footer */
.footer-content {
  background: var(--blue-clr);
  padding: 40px 0 20px;
  margin-top: 50px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-bottom: 40px;
}

.footer-logo {
  display: block;
  margin-bottom: 20px;
}

.footer-logo img {
  width: 170px;
}

.footer-column:first-child p {
  margin-bottom: 12px;
}

.footer-column h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.footer-links li {
  margin-bottom: 20px;
}

.footer-column a:hover {
  color: var(--secondary-text);
}

.subscribe-form {
  display: flex;
  max-width: 350px;
}

.subscribe-form input {
  flex: 1;
  padding: 8px;
  background: transparent;
  color: inherit;
  border: 3px solid var(--pink-clr);
  border-right: none;
  border-radius: 5px 0 0 5px;
  font-size: 16px;
  outline: 0;
}

.subscribe-form button {
  padding-right: 8px;
  outline: 0;
  font-size: 20px;
  background: transparent;
  color: inherit;
  border: 3px solid var(--pink-clr);
  border-left: none;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
  transition: 0.5s;
}

.subscribe-form button:hover {
  color: var(--pink-clr);
}

.footer-column:last-child .footer-links {
  display: flex;
  gap: 15px;
  font-size: 20px;
}

.footer-column:last-child .footer-links a:hover {
  color: var(--pink-clr);
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--secondary-text);
  opacity: 0.5;
  font-size: 0.9rem;
}

@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Animations */
/* Hero text */
@keyframes showHeroText {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.8);
  }

  to {
    opacity: 1;
    transform: translateY(0px) scale(1);
  }
}

/* Hero image */
@keyframes showHeroImg {
  from {
    opacity: 0;
    transform: translateY(200px) scale(0.8);
  }

  to {
    opacity: 1;
    transform: translateY(0px) scale(1);
  }
}

/* Sub-heading */
@keyframes showHeadingOnScroll {
  from {
    opacity: 0;
    transform: translateY(100px) scale(0.3);
  }

  to {
    opacity: 1;
    transform: translateY(0px) scale(1);
  }
}

/* Card */
@keyframes showCardOnScroll {
  from {
    opacity: 0;
    transform: scale(0.3);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Swiper card */
@keyframes showSwiperCardOnScroll {
  from {
    opacity: 0;
    transform: translateX(200px);
  }

  to {
    opacity: 1;
    transform: translateX(0px);
  }
}