/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;

  --first-color: hsl(30, 16%, 50%);
  --first-color-alt: hsl(30, 16%, 45%);
  --first-color-light: hsl(30, 16%, 65%);
  --first-color-lighten: hsl(30, 16%, 95%);
  --second-color: hsl(40, 60%, 70%);
  --title-color: hsl(30, 8%, 15%);
  --text-color: hsl(30, 8%, 35%);
  --text-color-light: hsl(30, 8%, 65%);
  --border-color: hsl(30, 8%, 80%);
  --body-color: hsl(30, 8%, 98%);
  --container-color: hsl(30, 8%, 95%);

  /*========== Font and typography ==========*/
  --body-font: 'Poppins', sans-serif;
  --biggest-font-size: 2.25rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --normal-font-size: .938rem;
  --small-font-size: .813rem;
  --smaller-font-size: .75rem;

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

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

/* Responsive typography */
@media screen and (min-width: 1024px) {
  :root {
    --biggest-font-size: 4rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
    --smaller-font-size: .813rem;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  color: var(--text-color);
  transition: .3s;
}

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

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  object-fit: cover; /* Ensure images scale properly */
}

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

/*=============== LOADER ===============*/
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--body-color);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: var(--z-loader);
  opacity: 1;
  transition: opacity 0.5s ease-out;
}

.loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader__content {
  text-align: center;
}

.loader__logo {
  display: inline-flex;
  align-items: center;
  column-gap: .25rem;
  font-size: var(--h1-font-size);
  font-weight: var(--font-semi-bold);
  color: var(--title-color);
  animation: fadeInOut 1.5s infinite;
}

.loader__logo i {
  font-size: 1.5rem;
  color: var(--first-color);
}

@keyframes fadeInOut {
  0%, 100% { opacity: 0.5; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1); }
}

/*=============== THEME ===============*/
.change-theme {
  font-size: 1.25rem;
  color: var(--title-color);
  cursor: pointer;
  transition: .3s;
  padding: 0.5rem; /* Increase touch target */
}

.change-theme:hover {
  color: var(--first-color);
}

/*========== Variables Dark theme ==========*/
body.dark-theme {
  --first-color: hsl(30, 16%, 60%);
  --first-color-alt: hsl(30, 16%, 55%);
  --first-color-light: hsl(30, 16%, 75%);
  --first-color-lighten: hsl(30, 16%, 90%);
  --second-color: hsl(40, 60%, 65%);
  --title-color: hsl(30, 8%, 95%);
  --text-color: hsl(30, 8%, 75%);
  --border-color: hsl(30, 8%, 20%);
  --body-color: hsl(30, 8%, 12%);
  --container-color: hsl(30, 8%, 15%);
}

/*========== Color changes in some parts ==========*/
.dark-theme .home__search,
.dark-theme .swiper-button-next,
.dark-theme .swiper-button-prev {
  border: 3px solid var(--border-color);
}

.dark-theme .nav__menu,
.dark-theme .home__img,
.dark-theme .popular__card:hover,
.dark-theme .value__img,
.dark-theme .accordion-open,
.dark-theme .accordion-open .value__accordion-icon,
.dark-theme .accordion-open .value__accordion-arrow,
.dark-theme .contact__img,
.dark-theme .contact__card-box:hover,
.dark-theme .scrollup,
.dark-theme .project__card:hover {
  box-shadow: none;
}

.dark-theme .value__orbe,
.dark-theme .value__accordion-icon,
.dark-theme .value__accordion-arrow,
.dark-theme .contact__orbe,
.dark-theme .contact__card i,
.dark-theme .contact__card-button,
.dark-theme .subscribe__container {
  background-color: var(--container-color);
}

.dark-theme .subscribe__container {
  border: 6px solid var(--border-color);
}

.dark-theme .subscribe__description {
  color: var(--text-color);
}

.dark-theme::-webkit-scrollbar {
  background-color: hsl(30, 8%, 15%);
}

.dark-theme::-webkit-scrollbar-thumb {
  background-color: hsl(30, 8%, 25%);
}

.dark-theme::-webkit-scrollbar-thumb:hover {
  background-color: hsl(30, 8%, 35%);
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1024px;
  margin-left: 1rem;
  margin-right: 1rem;
}

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

.section {
  padding: 4rem 0 1.5rem;
}

.section__title {
  font-size: var(--h2-font-size);
  margin-bottom: 1rem;
  text-align: center;
}

.section__title span {
  color: var(--second-color);
}

.section__subtitle {
  display: block;
  font-size: var(--small-font-size);
  color: var(--second-color);
  text-align: center;
}

.main {
  overflow-x: hidden;
}

/*=============== SCROLL ANIMATION CLASSES ===============*/
.scroll-reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}

.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.card-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  will-change: opacity, transform;
}

.card-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Apply animations to sections */
.home__container,
.popular__container,
.value__container,
.contact__container,
.subscribe__container,
.projects__container,
.footer__container {
  opacity: 0;
}

/* Apply animations to cards */
.popular__card,
.project__card,
.contact__card-box,
.value__accordion-item {
  opacity: 0;
}

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

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

.nav__logo {
  color: #fff;
  display: inline-flex;
  align-items: center;
  column-gap: .25rem;
  font-weight: var(--font-medium);
  transition: .3s;
  padding: 0.5rem; /* Increase touch target */
}

.nav__logo i {
  font-size: 1.25rem;
}

.nav__logo:hover {
  color: var(--first-color);
}

.nav__list {
  display: flex;
  column-gap: 2rem;
}

.nav__link {
  color: var(--text-color-light);
  display: flex;
  align-items: center;
  font-weight: var(--font-medium);
  transition: .3s;
  padding: 0.5rem; /* Increase touch target */
}

.nav__link i {
  font-size: 1.25rem;
  margin-right: .5rem;
}

.nav__link:hover {
  color: var(--first-color);
}

.nav__toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #fff;
  padding: 0.5rem; /* Increase touch target */
}

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

/* Change background header */
.scroll-header {
  background-color: var(--body-color);
  box-shadow: 0 1px 4px hsla(30, 8%, 15%, .1);
}

.scroll-header .nav__logo {
  color: var(--first-color);
}

.scroll-header .change-theme {
  color: var(--title-color);
}

/* Active link */
.active-link {
  background: linear-gradient(101deg, hsl(30, 16%, 50%), hsl(30, 16%, 45%));
  color: #fff;
  box-shadow: 0 4px 8px hsla(30, 16%, 45%, .25);
  padding: .5rem;
  border-radius: .5rem;
}

/* Dropdown styles */
.dropdown {
  position: relative;
}

.dropdown__toggle {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.dropdown__menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--container-color);
  min-width: 12rem;
  box-shadow: 0 4px 8px hsla(30, 8%, 45%, .15);
  border-radius: .25rem;
  z-index: var(--z-tooltip);
  padding: .5rem 0;
}

.dark-theme .dropdown__menu {
  background-color: hsl(30, 8%, 20%);
}

.dropdown:hover .dropdown__menu,
.dropdown__toggle:focus + .dropdown__menu,
.dropdown__toggle:active + .dropdown__menu {
  display: block;
}

.dropdown__item {
  display: block;
  padding: .5rem 1rem;
  color: var(--text-color);
  font-size: var(--small-font-size);
  transition: .3s;
}

.dark-theme .dropdown__item {
  color: var(--text-color);
}

.dropdown__item:hover,
.dropdown__item:focus {
  background-color: var(--first-color);
  color: #fff;
}

/*=============== HOME ===============*/
.home {
  background: linear-gradient(170deg, hsl(0, 0%, 22%) 0%, hsl(0, 0%, 6%) 30%);
  padding-bottom: 0;
}

.home__container {
  padding-top: 3rem;
  row-gap: 2rem;
}

.home__title,
.home__value-number {
  color: #fff;
}

.home__title {
  font-size: var(--biggest-font-size);
  line-height: 120%;
  margin-bottom: 1rem;
}

.home__description {
  color: var(--text-color-light);
  margin-bottom: 1.5rem;
}

.home__images {
  position: relative;
  display: flex;
  justify-content: center;
}

.home__orbe {
  width: 80vw;
  max-width: 300px;
  height: 80vw;
  max-height: 320px;
  background: linear-gradient(180deg, hsl(0, 0%, 16%) 93%, hsl(0, 0%, 67%) 100%);
  border-radius: 50% 50% 0 0;
}

.home__img {
  position: absolute;
  width: 70vw;
  max-width: 280px;
  height: 70vw;
  max-height: 300px;
  overflow: hidden;
  border-radius: 45% 45% 10px 10px;
  display: inline-flex;
  align-items: flex-end;
  bottom: -1rem;
  box-shadow: 0 12px 24px hsla(30, 8%, 25%, .2);
}

/*=============== BUTTON ===============*/
.button {
  display: inline-block;
  background: linear-gradient(101deg, hsl(30, 16%, 50%), hsl(30, 16%, 45%));
  color: #fff;
  padding: 12px 24px;
  border-radius: 0.5rem;
  font-size: var(--normal-font-size);
  font-weight: var(--font-medium);
  box-shadow: 0 4px 8px hsla(30, 16%, 45%, .25);
  transition: .3s;
  cursor: pointer;
  min-height: 48px; /* Ensure touch target size */
}

.button:hover {
  box-shadow: 0 4px 12px hsla(30, 8%, 25%, .25);
}

/*=============== POPULAR ===============*/
.popular__container {
  padding: 1rem 0 1.5rem;
}

.popular__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 90%;
  max-width: 300px;
  padding: 1rem;
  border-radius: 1rem;
  margin: 0 auto;
  transition: 0.4s;
}

.popular__img {
  border-radius: 1rem;
  margin-bottom: 1rem;
  max-height: 50vh;
  width: 100%;
}

.popular__data {
  padding: 0 0.5rem;
}

.popular__price {
  font-size: var(--h2-font-size);
  color: var(--text-color);
  margin-bottom: 0.25rem;
}

.popular__price span {
  color: var(--second-color);
}

.popular__title {
  font-size: var(--h3-font-size);
  margin-bottom: 0.75rem;
}

.popular__description {
  font-size: var(--small-font-size);
}

.popular__card:hover {
  box-shadow: 0 8px 12px hsla(30, 8%, 45%, .1);
}

/* Swiper class */
.swiper-wrapper {
  margin-bottom: 1rem;
}

.swiper-button-prev::after,
.swiper-button-next::after {
  content: '';
}

.swiper-button-next,
.swiper-button-prev {
  top: initial;
  bottom: 0;
  width: 2rem;
  height: 2rem;
  background-color: var(--container-color);
  border: 2px solid var(--text-color-light);
  padding: 4px;
  border-radius: .5rem;
  font-size: 1.2rem;
  color: var(--first-color);
  cursor: pointer;
  pointer-events: auto;
  z-index: var(--z-tooltip);
}

.swiper-button-prev {
  left: calc(50% - 2.5rem);
}

.swiper-button-next {
  right: calc(50% - 2.5rem);
}

/*=============== VALUE ===============*/
.value__container {
  row-gap: 2rem;
}

.value__images {
  position: relative;
  display: flex;
  justify-content: center;
}

.value__orbe {
  width: 80vw;
  max-width: 300px;
  height: 80vw;
  max-height: 320px;
  background: linear-gradient(180deg, hsl(0, 0%, 16%) 93%, hsl(0, 0%, 67%) 100%);
  border-radius: 50% 50% 12px 12px;
}

.value__img {
  position: absolute;
  width: 70vw;
  max-width: 280px;
  height: 70vw;
  max-height: 300px;
  overflow: hidden;
  border-radius: 45% 45% 10px 10px;
  inset: 0;
  margin: auto;
  box-shadow: 0 12px 24px hsla(30, 8%, 25%, .2);
}

.value__description {
  font-size: var(--small-font-size);
  margin-bottom: 1.5rem;
}

.value__accordion {
  display: grid;
  row-gap: 1rem;
}

.value__accordion-item {
  background-color: var(--body-color);
  border: 2px solid var(--border-color);
  border-radius: .5rem;
  padding: 0.75rem;
}

.value__accordion-header {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.value__accordion-icon {
  background-color: var(--first-color-lighten);
  padding: 5px;
  border-radius: .25rem;
  font-size: 16px;
  color: var(--first-color);
  margin-right: .5rem;
  transition: .3s;
}

.value__accordion-title {
  font-size: var(--small-font-size);
}

.value__accordion-arrow {
  display: inline-flex;
  background-color: var(--first-color-lighten);
  padding: .25rem;
  color: var(--first-color);
  border-radius: 2px;
  font-size: 10px;
  margin-left: auto;
  transition: .3s;
}

.value__accordion-arrow i {
  transition: .4s;
}

.value__accordion-description {
  font-size: var(--smaller-font-size);
  padding: 1rem 2rem 0 2.5rem;
}

.value__accordion-content {
  overflow: hidden;
  height: 0;
  transition: all 0.3s ease;
}

.accordion-open {
  box-shadow: 0 8px 24px hsla(30, 8%, 45%, .1);
}

.accordion-open .value__accordion-icon {
  box-shadow: 0 4px 4px hsla(30, 8%, 45%, .1);
}

.accordion-open .value__accordion-arrow {
  box-shadow: 0 2px 4px hsla(30, 8%, 45%, .1);
}

.accordion-open .value__accordion-arrow i {
  transform: rotate(-180deg);
}

/*=============== CONTACT ===============*/
.contact__container {
  row-gap: 2rem;
}

.contact__images {
  position: relative;
  display: flex;
  justify-content: center;
}

.contact__orbe {
  width: 80vw;
  max-width: 300px;
  height: 80vw;
  max-height: 320px;
  background: linear-gradient(180deg, hsl(0, 0%, 16%) 93%, hsl(0, 0%, 67%) 100%);
  border-radius: 50% 50% 12px 12px;
}

.contact__img {
  position: absolute;
  width: 70vw;
  max-width: 280px;
  height: 70vw;
  max-height: 300px;
  overflow: hidden;
  border-radius: 45% 45% 10px 10px;
  inset: 0;
  margin: auto;
  box-shadow: 0 12px 24px hsla(30, 8%, 25%, .2);
}

.contact__description {
  font-size: var(--small-font-size);
  margin-bottom: 2rem;
}

.contact__card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2.5rem;
}

.contact__card-box {
  background-color: var(--body-color);
  border: 2px solid var(--border-color);
  padding: 10rem;
  border-radius: .5rem;
  transition: .3s;
  width: 300px;
}

.contact__card-info {
  display: flex;
  align-items: flex-start;
  column-gap: .5rem;
  margin-bottom: 1rem;
}

.contact__card i {
  padding: 6px;
  background-color: var(--first-color-lighten);
  border-radius: 6px;
  font-size: 1.25rem;
  color: var(--first-color);
}

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

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

.contact__card-button {
  font-size: var(--small-font-size);
  padding: 12px;
  width: 100%;
  border-radius: .25rem;
  background: var(--first-color-lighten);
  color: var(--first-color);
  font-weight: var(--font-semi-bold);
  box-shadow: none;
  transition: all .4s ease;
  min-height: 48px; /* Ensure touch target size */
}

.contact__card-button:hover {
  background-color: var(--first-color);
  color: #fff;
}

.contact__card-box:hover {
  box-shadow: 0 8px 16px hsla(30, 8%, 45%, .1);
}

/*=============== SUBSCRIBE ===============*/
.subscribe {
  padding: 2rem 0;
}

.subscribe__container {
  background-color: var(--first-color);
  padding: 2.5rem 1.5rem;
  border-radius: 1rem;
  border: 6px solid var(--first-color-light);
  text-align: center;
}

.subscribe__title {
  font-size: var(--h2-font-size);
  color: #fff;
  margin-bottom: 1rem;
}

.subscribe__description {
  color: var(--first-color-lighten);
  font-size: var(--small-font-size);
  margin-bottom: 1.5rem;
}

.subscribe__button {
  border: 2px solid #fff;
  background: var(--first-color-light);
  font-size: var(--small-font-size);
  padding: 12px 24px;
  min-height: 48px; /* Ensure touch target size */
}

.subscribe__button:hover {
  background-color: var(--first-color);
}

/*=============== FOOTER ===============*/
.footer__container {
  row-gap: 2rem;
}

.footer__logo {
  color: var(--first-color);
  font-size: var(--h3-font-size);
  font-weight: var(--font-semi-bold);
  display: inline-flex;
  align-items: center;
  column-gap: .25rem;
  margin-bottom: .75rem;
}

.footer__logo i {
  font-size: 4rem;
}

.footer__description,
.footer__link {
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
}

.footer__content,
.footer__links {
  display: grid;
  gap: 0.5rem;
}

.footer__content {
  display: flex;
  justify-content: space-evenly;
  margin: auto;
}

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

.footer__links {
  row-gap: .5rem;
}

.footer__link {
  color: var(--text-color);
  transition: .3s;
  padding: 0.5rem; /* Increase touch target */
}

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

.social {
  margin: 1.5rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.footer__social {
  display: flex;
  justify-content: center;
  text-align: center;
  column-gap: 1rem;
}

.footer__social-link {
  font-size: 1.5rem;
  color: var(--text-color);
  transition: .3s;
  padding: 0.5rem; /* Increase touch target */
}

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

.footer__info,
.footer__privacy {
  display: flex;
}

.footer__info {
  padding-bottom: 4rem;
  margin-top: 1rem;
  flex-direction: column;
  text-align: center;
  row-gap: 1rem;
}

.footer__copy,
.footer__privacy a {
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
  color: var(--text-color);
}

.footer__privacy {
  justify-content: center;
  column-gap: 1rem;
}

/*=============== SCROLL BAR ===============*/
::-webkit-scrollbar {
  width: .6rem;
  border-radius: .5rem;
  background-color: hsl(30, 8%, 76%);
}

::-webkit-scrollbar-thumb {
  background-color: hsl(30, 8%, 64%);
  border-radius: .5rem;
}

::-webkit-scrollbar-thumb:hover {
  background-color: hsl(30, 8%, 54%);
}

/*=============== SCROLL UP ===============*/
.scrollup {
  position: fixed;
  right: 1rem;
  bottom: -30%;
  background-color: var(--container-color);
  box-shadow: 0 6px 12px hsla(30, 8%, 45%, .1);
  display: inline-flex;
  padding: .5rem;
  border-radius: .25rem;
  color: var(--title-color);
  font-size: 1.25rem;
  z-index: var(--z-tooltip);
  transition: .3s;
  min-height: 48px; /* Ensure touch target size */
}

.scrollup:hover {
  transform: translateY(-.25rem);
  color: var(--first-color);
}

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

/*=============== PROJECTS ===============*/
.projects__container {
  padding: 1rem 0 1.5rem;
}

.projects__content {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.project__card {
  background-color: var(--container-color);
  border: 2px solid var(--border-color);
  padding: 1.5rem;
  border-radius: 1rem;
  transition: .4s;
}

.project__slider {
  position: relative;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.project__img {
  border-radius: 1rem;
  max-height: 250px;
  width: 100%;
  object-fit: cover;
}

.project__title {
  font-size: var(--h3-font-size);
  color: var(--title-color);
  margin-bottom: 0.75rem;
}

.project__description {
  font-size: var(--small-font-size);
  color: var(--text-color);
}

.project__card:hover {
  box-shadow: 0 8px 12px hsla(30, 8%, 45%, .1);
}

/* Swiper navigation for projects */
.project__slider .swiper-button-next,
.project__slider .swiper-button-prev {
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--container-color);
  border: 2px solid var(--text-color-light);
  padding: 4px;
  border-radius: .5rem;
  font-size: 0.8rem;
  height: 2rem;
  width: 2rem;
  color: var(--first-color);
  cursor: pointer;
  pointer-events: auto;
  z-index: var(--z-tooltip);
}

.project__slider .swiper-button-next {
  right: 8px;
}

.project__slider .swiper-button-prev {
  left: 8px;
}

.project__slider .swiper-button-next::after,
.project__slider .swiper-button-prev::after {
  content: '';
}

/* Dark theme adjustments */
.dark-theme .project__card {
  box-shadow: none;
}

/*=============== BREAKPOINTS ===============*/
@media screen and (max-width: 767px) {
  .container {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
  }

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

  .nav {
    height: calc(var(--header-height) + 0.5rem);
  }

  .nav__list {
    flex-direction: column;
    gap: 1.5rem;
  }

  .nav__toggle {
    display: block;
  }

  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 90%;
    max-width: 280px;
    height: 100%;
    background-color: var(--container-color);
    padding: 3rem 1rem;
    transition: right .4s;
    z-index: var(--z-fixed);
    box-shadow: -2px 0 8px hsla(30, 8%, 15%, .2);
  }

  .dark-theme .nav__menu {
    background-color: hsl(30, 8%, 20%);
  }

  .nav__menu.show-menu {
    right: 0;
  }

  .nav__link {
    color: var(--text-color);
    font-size: var(--normal-font-size);
    padding: 0.5rem;
  }

  .nav__link i {
    display: block;
    margin-right: .5rem;
  }

  .nav__link span {
    display: inline;
  }

  .active-link {
    background: none;
    box-shadow: none;
    color: var(--first-color);
  }

  .dropdown__menu {
    position: static;
    background-color: transparent;
    box-shadow: none;
    padding: .5rem 0 0 1rem;
  }

  .dark-theme .dropdown__menu {
    background-color: transparent;
  }

  .dropdown__item {
    font-size: var(--small-font-size);
  }

  .home__container {
    row-gap: 1.5rem;
    padding-top: 1.5rem;
  }

  .home__orbe {
    width: 90vw;
    max-width: 260px;
    height: 130vw;
    max-height: 280px;
    border-radius: 45% 45% 0 0;
  }

  .home__img {
    width: 80vw;
    max-width: 240px;
    height: 80vw;
    max-height: 260px;
    border-radius: 40% 40% 8px 8px;
    bottom: -0.8rem;
  }

  .home__title {
    font-size: calc(var(--h1-font-size) * 0.9);
  }

  .popular__card {
    width: 100%;
    padding: 0.75rem;
  }

  .popular__img {
    max-height: 35vh;
  }

  .value__container,
  .contact__container {
    row-gap: 1.5rem;
  }

  .value__orbe,
  .contact__orbe {
    width: 90vw;
    max-width: 260px;
    height: 90vw;
    max-height: 280px;
    border-radius: 45% 45% 10px 10px;
  }

  .value__img,
  .contact__img {
    width: 80vw;
    max-width: 240px;
    height: 80vw;
    max-height: 260px;
    border-radius: 40% 40% 8px 8px;
  }

  .projects__content {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .project__card {
    padding: 1rem;
  }

  .project__img {
    max-height: 180px;
  }

  .project__slider .swiper-button-next,
  .project__slider .swiper-button-prev {
    width: 1.8rem;
    height: 1.8rem;
    font-size: .7rem;
  }

  .subscribe__container {
    padding: 1.5rem 1rem;
  }

  .footer__content {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .footer__info {
    padding-bottom: 2rem;
  }

  .show-scroll {
    bottom: 2rem;
  }
}

@media screen and (max-width: 400px) {
  .container {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
  }

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

  .home {
    padding-bottom: 0;
  }

  .contact__card {
    grid-template-columns: 1fr;
    justify-content: center;
  }

  .projects__content {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 320px) {
  .home__orbe {
    width: 85vw;
    max-width: 220px;
    height: 85vw;
    max-height: 240px;
  }

  .home__img {
    width: 75vw;
    max-width: 200px;
    height: 75vw;
    max-height: 220px;
  }

  .popular__card {
    padding: .5rem;
  }

  .value__orbe,
  .contact__orbe {
    width: 85vw;
    max-width: 220px;
    height: 85vw;
    max-height: 240px;
  }

  .value__img,
  .contact__img {
    width: 75vw;
    max-width: 200px;
    height: 75vw;
    max-height: 220px;
  }

  .subscribe__container {
    padding: 1rem 0.5rem;
  }
}

@media screen and (min-width: 576px) {
  .contact__card {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
    justify-content: center;
  }

  .footer__content {
    grid-template-columns: repeat(2, max-content);
  }
}

@media screen and (min-width: 767px) {
  .home__container {
    grid-template-columns: repeat(2, 1fr);
    padding-top: 1.5rem;
  }

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

  .home__data {
    padding-bottom: 1.5rem;
  }

  .value__container,
  .contact__container {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
  }

  .contact__images {
    order: 1;
  }

  .contact__card {
    justify-content: initial;
  }

  .subscribe__container {
    padding: 2rem 8rem;
  }

  .footer__content {
    grid-template-columns: repeat(3, max-content);
  }
}

@media screen and (min-width: 1023px) {
  .section {
    padding: 6rem 0 1rem;
  }

  .section__title {
    font-size: 2rem;
  }

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

  .nav {
    height: calc(var(--header-height) + 1rem);
  }

  .nav__menu {
    width: initial;
    margin-left: auto;
  }

  .nav__list {
    display: flex;
    column-gap: 2.5rem;
  }

  .nav__link {
    color: var(--text-color-light);
  }

  .nav__link i {
    display: none;
  }

  .active-link {
    background: none;
    box-shadow: none;
    color: var(--first-color);
    font-weight: var(--font-medium);
  }

  .change-theme {
    margin: 0 2.5rem;
    color: var(--text-color-light);
  }

  .scroll-header .nav__link,
  .scroll-header .change-theme {
    color: var(--text-color);
  }

  .scroll-header .active-link {
    color: var(--first-color);
  }

  .home {
    padding-bottom: 0;
  }

  .home__container {
    padding-top: 4rem;
    column-gap: 1.5rem;
  }

  .home__data {
    padding-bottom: 3rem;
  }

  .home__title {
    margin-bottom: 1.5rem;
  }

  .home__description {
    margin-bottom: 2rem;
  }

  .home__orbe {
    width: 450px;
    height: 550px;
    border-radius: 225px 225px 0 0;
  }

  .home__img {
    width: 420px;
    height: 570px;
    border-radius: 210px 210px 10px 10px;
    bottom: -2rem;
  }

  .popular__card {
    width: 300px;
    padding: .5rem .5rem 1.5rem;
  }

  .popular__data {
    padding: 0 .25rem;
  }

  .value__container,
  .contact__container {
    align-items: flex-start;
    column-gap: 4rem;
  }

  .value__orbe,
  .contact__orbe {
    width: 450px;
    height: 550px;
    border-radius: 225px 225px 14px 14px;
  }

  .value__img,
  .contact__img {
    width: 420px;
    height: 510px;
    border-radius: 205px 205px 10px 10px;
  }

  .value__description,
  .contact__description {
    font-size: var(--normal-font-size);
    margin-bottom: 2rem;
  }

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

  .value__accordion-item {
    padding: 1rem;
  }

  .value__accordion-description {
    padding-bottom: 0.75rem;
    font-size: var(--small-font-size);
  }

  .contact__card {
    grid-template-columns: repeat(2, 280px);
  }

  .contact__card-box {
    padding: 24px 1.25rem;
  }

  .subscribe__container {
    padding: 3rem 8rem 3.5rem;
    border-radius: 1.5rem;
    border: 10px solid var(--first-color-light);
  }

  .subscribe__title {
    font-size: 2rem;
    margin-bottom: 1.25rem;
  }

  .subscribe__description {
    font-size: var(--normal-font-size);
    padding: 0 6rem;
  }

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

  .footer__content {
    grid-template-columns: repeat(4, max-content);
  }

  .footer__title {
    margin-bottom: 1.25rem;
  }

  .footer__links {
    row-gap: 0.75rem;
  }

  .footer__info {
    flex-direction: row;
    justify-content: space-between;
    padding-bottom: 1.5rem;
  }

  .show-scroll {
    bottom: 2.5rem;
    right: 2.5rem;
  }
}

@media screen and (min-width: 1040px) {
  .container {
    margin-left: auto;
    margin-right: auto;
  }

  .home__container {
    column-gap: 3rem;
  }
}