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

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

  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --first-color: hsl(228, 66%, 53%);
  --first-color-alt: hsl(228, 66%, 47%);
  --first-color-light: hsl(228, 62%, 59%);
  --first-color-lighten: hsl(228, 100%, 97%);
  --second-color: hsl(25, 83%, 53%);
  --title-color: hsl(228, 57%, 28%);
  --text-color: hsl(228, 15%, 50%);
  --text-color-light: hsl(228, 12%, 75%);
  --border-color: hsl(228, 99%, 98%);
  --body-color: #fff;
  --container-color: #fff;

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --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;
}

/* 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 - OPTIMIZED FOR PERFORMANCE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  color: var(--text-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
  /* Performance optimization */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeSpeed;
}

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;
  /* Performance optimization */
  image-rendering: optimizeQuality;
}

/* Mobile-specific image optimization */
@media (max-width: 768px) {
  img {
    image-rendering: optimizeSpeed;
    image-rendering: -webkit-optimize-contrast;
  }
}

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

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

.grid {
  display: grid;
}

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

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

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

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

.main {
  overflow: hidden;
  flex: 1;
  position: relative;
}

/*=============== HEADER & NAV - OPTIMIZED ===============*/
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #101010;
  z-index: var(--z-fixed);
  transition: all 0.3s ease;
  /* Performance optimization */
  will-change: transform, background-color;
  transform: translate3d(0, 0, 0);
}

.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: color 0.3s ease;
}

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

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

/*=============== MOBILE NAVIGATION - OPTIMIZED ===============*/
@media screen and (max-width: 1023px) {
  .nav__menu {
    display: none;
  }
  
  .hamburger {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    /* Performance optimization */
    will-change: transform;
    transform: translate3d(0, 0, 0);
  }
  
  .bar {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 3px 0;
    transition: 0.3s;
    /* Hardware acceleration */
    transform: translate3d(0, 0, 0);
  }
  
  .hamburger.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }
  
  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }
  
  .mobile-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background-color: rgba(16, 16, 16, 0.95);
    backdrop-filter: blur(10px);
    z-index: 999;
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* Performance optimization */
    will-change: left;
    transform: translate3d(0, 0, 0);
  }
  
  .mobile-nav.active {
    left: 0;
  }
  
  .mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
  
  .mobile-nav-link {
    color: #fff;
    font-size: 1.5rem;
    font-weight: var(--font-medium);
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    /* Hardware acceleration */
    transform: translate3d(0, 0, 0);
  }
  
  .mobile-nav-link:hover {
    color: var(--first-color);
    border-color: var(--first-color);
    background-color: rgba(255, 255, 255, 0.1);
  }
}

/* Desktop Navigation */
@media screen and (min-width: 1023px) {
  .hamburger {
    display: none;
  }
  
  .mobile-nav {
    display: none;
  }
  
  .nav__menu {
    width: initial;
    margin-left: auto;
  }
  
  .nav__list {
    display: flex;
    column-gap: 3rem;
  }
  
  .nav__link {
    color: #fff;
    transition: color 0.3s ease;
    font-weight: var(--font-medium);
  }
  
  .nav__link:hover {
    color: var(--first-color);
  }
  
  .nav__link i {
    display: none;
  }
}

/* SCROLLED STATE */
.scroll-header {
  background-color: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.scroll-header .hamburger .bar {
  background-color: var(--text-color);
}

@media screen and (min-width: 1023px) {
  .scroll-header .nav__link {
    color: var(--text-color);
  }
  
  .scroll-header .nav__link:hover {
    color: var(--first-color);
  }
  
  .scroll-header .active-link {
    color: var(--first-color);
  }
}

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

@media screen and (min-width: 1023px) {
  .active-link {
    background: none;
    box-shadow: none;
    color: var(--first-color);
    font-weight: var(--font-medium);
  }
}

/*=============== BUTTON - OPTIMIZED ===============*/
.button {
  display: inline-block;
  background: linear-gradient(101deg,
                hsl(228, 66%, 53%),
                hsl(228, 66%, 47%));
  color: #fff;
  padding: 14px 28px;
  border-radius: .5rem;
  font-size: var(--normal-font-size);
  font-weight: var(--font-medium);
  box-shadow: 0 4px 8px hsla(228, 66%, 45%, .25);
  transition: .3s;
  cursor: pointer;
  /* Hardware acceleration */
  transform: translate3d(0, 0, 0);
  will-change: transform, box-shadow;
}

.button:hover {
  box-shadow: 0 4px 12px hsla(228, 66%, 45%, .25);
  transform: translateY(-2px);
}

.nav__button {
  display: none;
  margin-left: 50px;
}

/*=============== HOME - OPTIMIZED ===============*/
.home {
  background: #101010;
  padding-bottom: 0;
  position: relative;
}

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

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

.home__value-number {
  color: #fff;
}

.home__value-number span {
  color: var(--second-color) !important;
  font-weight: 700 !important;
  display: inline-block !important;
  transition: none !important;
  animation: none !important;
  animation-fill-mode: forwards !important;
  -webkit-animation-fill-mode: forwards !important;
}

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

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

.comic-button {
  display: inline-block;
  padding: 10px 20px;
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  color: #fff;
  background-color: #3150CF;
  border: 2px solid #000;
  border-radius: 10px;
  box-shadow: 5px 5px 0px #000;
  transition: all 0.3s ease;
  cursor: pointer;
  /* Hardware acceleration */
  transform: translate3d(0, 0, 0);
  will-change: transform, background-color;
}

.comic-button:hover {
  background-color: #fff;
  color: #3150CF;
  border: 2px solid #3150CF;
  box-shadow: 5px 5px 0px #3150CF;
}

.comic-button:active {
  background-color: #fff;
  box-shadow: none;
  transform: translateY(4px);
}

.home__value {
  display: flex;
  column-gap: 2.5rem;
  margin-bottom: 2rem;
}

.home__value-number {
  font-size: var(--h1-font-size);
  font-weight: var(--font-medium);
}

.home__value-description {
  display: flex;
  color: var(--text-color-light);
  font-size: var(--smaller-font-size);
}

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

.home__orbe {
  width: 265px;
  height: 284px;
  background: linear-gradient(180deg,
                    hsl(0, 0%, 16%) 93%,
                    hsl(0, 0%, 67%) 100%);
  border-radius: 135px 135px 0 0;
}

.home__img {
  position: absolute;
  width: 250px;
  height: 300px;
  overflow: hidden;
  border-radius: 125px 125px 12px 12px;
  display: inline-flex;
  align-items: flex-end;
  bottom: -1.5rem;
  box-shadow: 0 16px 32px hsla(228, 66%, 25%, .25);
}

/*=============== LOGOS - OPTIMIZED ===============*/
.logo_k {
  align-items: center;
  text-align: center;
  font-family: poppins;
  font-weight: 40px;
  margin-top: 100px;
  margin-bottom: 40px;
}

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

.logo-img {
  width: 50px;
  height: auto;
  vertical-align: middle;
  margin-left: 1px;
}

/* Mobile optimization for logo slider */
@media (max-width: 768px) {
  .slider {
    /* Reduce animation complexity on mobile */
    mask-image: linear-gradient(
        to right,
        transparent,
        #000 20% 80%,
        transparent
    );
  }
  
  .slider .list .item {
    /* Simpler animation for mobile */
    animation-duration: 15s; /* Slower for better performance */
  }
  
  .slider:hover .item {
    /* Disable hover effects on mobile */
    animation-play-state: running !important;
    filter: none;
  }
}

.slider{
    width: 100%;
    height: var(--height);
    overflow: hidden;
    mask-image: linear-gradient(
        to right,
        transparent,
        #000 10% 90%,
        transparent
    );
    margin-top: 70px;
    margin-bottom: -60px;
}

.slider .list{
    display: flex;
    width: 100%;
    min-width: calc(var(--width) * var(--quantity));
    position: relative;
}

.slider .list .item{
    width: var(--width);
    height: var(--height);
    position: absolute;
    left: 100%;
    animation: autoRun 10s linear infinite;
    transition: filter 0.5s;
    animation-delay: calc( (10s / var(--quantity)) * (var(--position) - 1) )!important;
    /* Hardware acceleration */
    transform: translate3d(0, 0, 0);
    will-change: transform;
}

.slider .list .item img{
    width: 100%;
}

@keyframes autoRun{
    from{
        left: 100%;
    }to{
        left: calc(var(--width) * -1);
    }
}

.slider:hover .item{
    animation-play-state: paused!important;
    filter: grayscale(1);
}

.slider .item:hover{
    filter: grayscale(0);
}

.slider[reverse="true"] .item{
    animation: reversePlay 10s linear infinite;
}

@keyframes reversePlay{
    from{
        left: calc(var(--width) * -1);
    }to{
        left: 100%;
    }
}

/*=============== POPULAR (Products) - MOBILE OPTIMIZED ===============*/
.popular__container.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  padding: 1rem 0 5rem;
  justify-items: center;
}

.popular__card {
  width: 350px;
  background-color: var(--container-color);
  padding: 1rem 1rem 2rem;
  border-radius: 1rem;
  margin: 0 auto;
  transition: box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 12px 16px hsla(228, 66%, 45%, 0.1);
  /* Hardware acceleration */
  transform: translate3d(0, 0, 0);
  will-change: transform, box-shadow;
}

.popular__card:hover {
  box-shadow: 0 16px 24px hsla(228, 66%, 45%, 0.15);
}

.popular__img {
  border-radius: 1rem;
  margin-bottom: 1.25rem;
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.popular__title {
  font-size: var(--h3-font-size);
  margin: 0 0 0.65rem;
}

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

.btn-donate {
  --clr-font-main: hsla(0 0% 20% / 100);
  --btn-bg-1: hsla(194 100% 69% / 1);
  --btn-bg-2: hsla(217 100% 56% / 1);
  --btn-bg-color: hsla(360 100% 100% / 1);
  --radii: 0.5em;
  cursor: pointer;
  padding: 0.6em 0.8em;
  min-width: 65px;
  min-height: 30px;
  font-size: var(--size, 1rem);
  font-family: "Segoe UI", system-ui, sans-serif;
  font-weight: 500;
  transition: 0.8s;
  background-size: 280% auto;
  background-image: linear-gradient(325deg, var(--btn-bg-2) 0%, var(--btn-bg-1) 55%, var(--btn-bg-2) 90%);
  border: none;
  border-radius: var(--radii);
  color: var(--btn-bg-color);
  box-shadow:
    0px 0px 20px rgba(71, 184, 255, 0.5),
    0px 5px 5px -1px rgba(58, 125, 233, 0.25),
    inset 4px 4px 8px rgba(175, 230, 255, 0.5),
    inset -4px -4px 8px rgba(19, 95, 216, 0.35);
  text-decoration: none;
  user-select: none;
  display: inline-block;
  margin: 0 auto;
  /* Hardware acceleration */
  transform: translate3d(0, 0, 0);
  will-change: transform, background-position;
}

.btn-donate:hover {
  background-position: right top;
  text-decoration: none;
}

.btn-donate:is(:focus, :focus-visible, :active) {
  outline: none;
  box-shadow: 0 0 0 3px var(--btn-bg-color), 0 0 0 6px var(--btn-bg-2);
}

.explore-btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    /* Hardware acceleration */
    transform: translate3d(0, 0, 0);
    will-change: transform;
}

.explore-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.explore-btn:active {
    transform: translateY(0);
}

.explore-btn:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Mobile optimizations for popular cards */
@media (max-width: 900px) {
  .popular__container.grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .popular__container.grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .popular__card {
    width: 100%;
    max-width: 350px;
    /* Simplified animations on mobile */
    transition: box-shadow 0.2s ease;
  }
  
  .popular__card:hover {
    /* Reduced hover effects on mobile */
    transform: none;
    box-shadow: 0 12px 16px hsla(228, 66%, 45%, 0.1);
  }
  
  .explore-btn:hover {
    /* Simplified mobile hover */
    transform: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn-donate,
  .explore-btn,
  .popular__card {
    transition: none;
  }
}

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

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

.value__orbe {
  width: 266px;
  height: 316px;
  background-color: hsl(228, 24%, 97%);
  border-radius: 135px 135px 16px 16px;
}

.value__img {
  position: absolute;
  width: 250px;
  height: 300px;
  overflow: hidden;
  border-radius: 125px 125px 12px 12px;
  inset: 0;
  margin: auto;
  box-shadow: 0 16px 32px hsla(228, 66%, 25%, .25);
}

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

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

.value__accordion-item {
  background-color: var(--body-color);
  border: 2px solid var(--border-color);
  border-radius: .5rem;
  padding: 1rem .75rem;
  /* Hardware acceleration */
  transform: translate3d(0, 0, 0);
  will-change: transform, box-shadow;
}

.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: 18px;
  color: var(--first-color);
  margin-right: .75rem;
  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: 1.25rem 2.5rem 0 2.75rem;
}

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

.accordion-open {
  box-shadow: 0 12px 32px hsla(228, 66%, 45%, .1);
}

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

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

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

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

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

.contact__orbe {
  width: 266px;
  height: 316px;
  background-color: hsl(228, 24%, 97%);
  border-radius: 135px 135px 16px 16px;
}

.contact__img {
  position: absolute;
  width: 250px;
  height: 300px;
  overflow: hidden;
  border-radius: 125px 125px 12px 12px;
  inset: 0;
  margin: auto;
  box-shadow: 0 16px 32px hsla(228, 66%, 25%, .25);
}

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

.contact__card {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem .75rem;
}

.contact__card-box {
  background-color: var(--body-color);
  border: 2px solid var(--border-color);
  padding: 1.25rem .75rem;
  border-radius: .5rem;
  transition: .3s;
  /* Hardware acceleration */
  transform: translate3d(0, 0, 0);
  will-change: transform, box-shadow;
}

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

.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: 14px 0;
  width: 100%;
  border-radius: .25rem;
  background: var(--first-color-lighten);
  color: var(--first-color);
  font-weight: var(--font-semi-bold);
  box-shadow: none;
  /* Hardware acceleration */
  transform: translate3d(0, 0, 0);
  will-change: transform, background-color;
}

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

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

/* Mobile optimizations for contact cards */
@media (max-width: 768px) {
  .contact__card {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .contact__card-box:hover {
    /* Simplified mobile hover */
    transform: none;
    box-shadow: 0 4px 12px hsla(228, 66%, 45%, .1);
  }
}

/*=============== FOOTER ===============*/
.footer {
  margin-top: auto;
}

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

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

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

/*=============== SCROLL UP - OPTIMIZED ===============*/
.scrollup {
  position: fixed;
  right: 1rem;
  bottom: -30%;
  background-color: var(--container-color);
  box-shadow: 0 8px 12px hsla(228, 66%, 45%, .1);
  display: inline-flex;
  padding: .35rem;
  border-radius: .25rem;
  color: var(--title-color);
  font-size: 1.25rem;
  z-index: var(--z-tooltip);
  transition: .3s;
  /* Hardware acceleration */
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

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

.show-scroll {
  bottom: 8rem;
}

/*=============== OPTIMIZED ANIMATIONS ===============*/
@keyframes float {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(0, -20px, 0); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 30px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translate3d(-50px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* Mobile-specific animation optimizations */
@media (max-width: 768px) {
  @keyframes float {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(0, -10px, 0); } /* Reduced movement */
  }
  
  /* Disable complex animations on mobile */
  .animate-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
  
  .animate-on-scroll.animate-in {
    opacity: 1;
    transform: none;
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.popular__card,
.contact__card-box,
.button,
.nav__item {
    transition: all 0.3s ease;
}

.popular__card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.contact__card-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

/*=============== MOBILE SPACING OPTIMIZATION ===============*/
@media screen and (max-width: 768px) {
  .home__data {
    display: grid !important;
    grid-template-rows: auto auto auto auto !important;
    gap: 40px 0 !important;
    text-align: center;
  }
  
  .home__value {
    grid-row: 3 !important;
    margin-bottom: 0 !important;
  }
  
  .home__description {
    grid-row: 2 !important;
    margin-bottom: 0 !important;
  }
  
  .home__search {
    grid-row: 4 !important;
    margin-top: 0 !important;
  }
  
  /* Optimize popular cards hover effects */
  .popular__card:hover {
    transform: none;
    box-shadow: 0 12px 16px hsla(228, 66%, 45%, 0.1);
  }
  
  .contact__card-box:hover {
    transform: none;
    box-shadow: 0 8px 24px hsla(228, 66%, 45%, .1);
  }
}

@media screen and (max-width: 480px) {
  .home__data {
    gap: 30px 0 !important;
  }
}

@media screen and (max-width: 320px) {
  .home__data {
    gap: 25px 0 !important;
  }
}

/*=============== OPTIMIZED LOADING OVERLAY - WASHING MACHINE FIX ===============*/
.loader {
  width: 120px;
  height: 150px;
  background-color: #f5f5f5;
  background-repeat: no-repeat;
  background-image: linear-gradient(#333 50%, #222 51%),
    linear-gradient(#333, #333), linear-gradient(#333, #333),
    radial-gradient(ellipse at center, #444 25%, #ddd 26%, #ddd 50%, #0000 55%),
    radial-gradient(ellipse at center, #444 25%, #ddd 26%, #ddd 50%, #0000 55%),
    radial-gradient(ellipse at center, #444 25%, #ddd 26%, #ddd 50%, #0000 55%);
  background-position: 0 20px, 45px 0, 8px 6px, 55px 3px, 75px 3px, 95px 3px;
  background-size: 100% 4px, 1px 23px, 30px 8px, 15px 15px, 15px 15px, 15px 15px;
  position: relative;
  border-radius: 6%;
  border: 2px solid #333;
  animation: shake 3s ease-in-out infinite;
  transform-origin: 60px 180px;
  /* Hardware acceleration */
  will-change: transform;
  transform: translate3d(0, 0, 0);
  /* FIXED: Center the loader properly */
  margin: 0 auto;
  left: 50%;
  margin-left: -60px; /* Half of width to center */
}

.loader:before {
  content: "";
  position: absolute;
  left: 5px;
  top: 100%;
  width: 7px;
  height: 5px;
  background: #333;
  border-radius: 0 0 4px 4px;
  /* FIXED: Adjust the legs positioning */
  box-shadow: 102px 0 #333;
}

.loader:after {
  content: "";
  position: absolute;
  width: 95px;
  height: 95px;
  left: 0;
  right: 0;
  margin: auto;
  bottom: 20px;
  background-color: #4a90e2;
  background-image: linear-gradient( to right, #0004 0%, #0004 49%, #0000 50%, #0000 100% ),
    linear-gradient(135deg, #5ba0f2 50%, #2c5282 51%);
  background-size: 30px 100%, 90px 80px;
  border-radius: 50%;
  background-repeat: repeat, no-repeat;
  background-position: 0 0;
  box-sizing: border-box;
  border: 10px solid #333;
  box-shadow: 0 0 0 4px #666 inset, 0 0 6px 6px #0004 inset;
  animation: spin 3s ease-in-out infinite;
  /* Hardware acceleration */
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

/* Mobile optimization for loader */
@media (max-width: 768px) {
  .loader {
    width: 100px;
    height: 125px;
    /* Simplified animation on mobile */
    animation-duration: 4s;
    /* FIXED: Better centering on mobile */
    margin-left: -50px; /* Half of mobile width */
  }
  
  .loader:after {
    width: 75px;
    height: 75px;
    animation-duration: 4s;
  }
  
  .loader:before {
    /* FIXED: Adjust legs for mobile */
    box-shadow: 85px 0 #333; /* Adjusted for smaller width */
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg)
  }
  50% {
    transform: rotate(360deg)
  }
  75% {
    transform: rotate(750deg)
  }
  100% {
    transform: rotate(1800deg)
  }
}

@keyframes shake {
  65%, 80%, 88%, 96% {
    transform: rotate(0.5deg)
  }
  50%, 75%, 84%, 92% {
    transform: rotate(-0.5deg)
  }
  0%, 50%, 100% {
    transform: rotate(0)
  }
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    /* Hardware acceleration */
    will-change: opacity, visibility;
    transform: translate3d(0, 0, 0);
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loading-text {
    color: #000000;
    font-size: 1.2rem;
    margin-top: 30px;
    font-weight: 600;
    letter-spacing: 1px;
}

/*=============== MOBILE FIXES FOR SPECIFIC ISSUES ===============*/
@media (max-width: 768px) {
  /* Fix 1: Business card description left alignment on mobile */
  .business-card__description {
    text-align: left !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
  }

  /* Fix 2: Washing machine stand alignment */
  .laundry-simple-card {
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
    text-align: center !important;
  }
  
  .laundry-simple-card .simple-image-wrapper {
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
    position: relative !important;
  }
  
  .laundry-simple-card .simple-product-image {
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
    position: relative !important;
    left: 0 !important;
    transform: none !important;
  }
}

/*=============== RESPONSIVE BREAKPOINTS - OPTIMIZED ===============*/
/* For small devices */
@media screen and (max-width: 320px) {
  .nav__menu {
    padding: 1.3rem 1.5rem;
  }

  .home__value {
    column-gap: 1rem;
  }
  .home__img {
    width: 220px;
    height: 280px;
  }
  .home__orbe {
    width: 240px;
    height: 264px;
  }

  .popular__card {
    width: 230px;
    padding: .5rem .5rem .75rem;
  }

  .value__img,
  .contact__img {
    width: 220px;
    height: 260px;
  }
  .value__orbe,
  .contact__orbe {
    width: 236px;
    height: 280px;
  }
}

/* For medium devices */
@media screen and (min-width: 576px) {
  .nav__menu {
    width: 342px;
  }

  .home__search {
    width: 412px;
  }

  .contact__card {
    grid-template-columns: repeat(2, 192px);
    justify-content: center;
  }
}

@media screen and (min-width: 767px) {
  .home__container {
    grid-template-columns: repeat(2, 1fr);
    padding-top: 2rem;
  }
  .home__orbe {
    align-self: flex-end;
  }
  .home__data {
    padding-bottom: 2rem;
  }

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

  .contact__images {
    order: 1;
  }
  .contact__card {
    justify-content: initial;
  }
}

/* For large devices */
@media screen and (min-width: 1023px) {
  .section {
    padding: 7.5rem  0 1rem;
  }
  .section__title {
    font-size: 2.25rem;
  }
  .section__subtitle {
    font-size: var(--normal-font-size);
  }

  .nav {
    height: calc(var(--header-height) + 1.5rem);
  }
  .nav__menu {
    width: initial;
    margin-left: auto;
  }
  .nav__list {
    display: flex;
    column-gap: 3rem;
  }
  
  .nav__link {
    color: #fff;
    transition: color 0.3s ease;
    font-weight: var(--font-medium);
  }
  
  .nav__link:hover {
    color: var(--first-color);
  }
  
  .nav__link i {
    display: none;
  }
  .nav__button {
    display: inline-block;
  }

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

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

  .home {
    padding-bottom: 0;
  }
  .home__container {
    padding-top: 5rem;
    column-gap: 2rem;
  }
  .home__data {
    padding-bottom: 4rem;
  }
  .home__title {
    margin-bottom: 2rem;
  }
  .home__description, 
  .home__search {
    margin-bottom: 3rem;
  }
  .home__value {
    column-gap: 3.5rem;
  }
  .home__orbe {
    width: 504px;
    height: 611px;
    border-radius: 256px 256px 0 0;
  }
  .home__img {
    width: 472px;
    height: 634px;
    border-radius: 236px 236px 12px 12px;
    bottom: -2.5rem;
  }

  .popular__container {
    padding-top: 3rem;
  }
  .popular__card {
    width: 320px;
    padding: .75rem .75rem 2rem;
  }

  .value__container,
  .contact__container {
    align-items: flex-start;
    column-gap: 5rem;
  }
  .value__orbe,
  .contact__orbe {
    width: 501px;
    height: 641px;
    border-radius: 258px 258px 16px 16px;
  }
  .value__img,
  .contact__img {
    width: 461px;
    height: 601px;
    border-radius: 238px 238px 12px 12px;
  }
  .value__img img,
  .contact__img img {
    max-width: initial;
    width: 490px;
  }
  .value__description,
  .contact__description {
    font-size: var(--normal-font-size);
    margin-bottom: 2.5rem;
  }

  .value__accordion-title {
    font-size: var(--normal-font-size);
  }
  .value__accordion-item {
    padding: 1.25rem 1.25rem 1.25rem 1rem;
  }
  .value__accordion-description {
    padding-bottom: 1rem;
    font-size: var(--small-font-size);
  }

  .contact__card {
    grid-template-columns: repeat(2, 200px);
  }
  .contact__card-box {
    padding: 28px 1.5rem 1.5rem;
  }

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

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

/* For 2K & 4K resolutions */
@media screen and (min-width: 2048px) {
  body {
    zoom: 1.5;
  }
}

@media screen and (min-width: 3840px) {
  body {
    zoom: 2;
  }
}

/* Add this to your existing mobile styles section */
@media screen and (max-width: 768px) {
  .home__value {
    justify-content: center !important;
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
  }
  
  .home__value-number,
  .home__value-description {
    text-align: center !important;
  }
}

/* For even smaller screens */
@media screen and (max-width: 480px) {
  .home__value {
    column-gap: 1.5rem !important; /* Reduce gap on very small screens */
    justify-content: center !important;
  }
}

