img {
  display: block;
  width: 100%;
  max-width: 100%;
  object-fit: cover;
}
/* =========================================
   MAIN PRELOADER
   ========================================= */

.page-preloader {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.7s ease,
    visibility 0.7s ease;
}

/* =========================================
   HIDDEN STATE
   ========================================= */

.page-preloader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* =========================================
   PRELOADER CONTENT
   ========================================= */

.preloader-content {
  width: 90%;
  max-width: 420px;
  text-align: center;
  animation: preloaderContent 0.8s ease forwards;
}

/* =========================================
   LOGO
   ========================================= */

.preloader-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 22px;
}

/* Logo Circle */

.logo-circle {
  width: 85px;
  height: 85px;
  border-radius: 50%;
  box-shadow:
    0 0 0 8px rgba(255, 202, 129, 0.12),
    0 10px 40px rgba(0, 0, 0, 0.25);
  animation:
    logoPulse 1.8s ease-in-out infinite,
    logoRotate 0.8s ease;
}

/* =========================================
   BRAND TEXT
   ========================================= */

.preloader-content h2 {
  margin: 0;
  color: var(--white);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 3px;
  line-height: 1.1;
}

.preloader-content p {
  margin: 5px 0 25px;
  color: var(--secondary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
}

/* =========================================
   LOADING BAR
   ========================================= */

.loading-bar {
  position: relative;
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  overflow: hidden;
  margin-bottom: 12px;
}

.loading-bar span {
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: var(--secondary);
  border-radius: 50px;
  transition: width 0.15s linear;
}

/* =========================================
   LOADING TEXT
   ========================================= */

.loading-text {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
  letter-spacing: 0.3px;
}

.loading-text strong {
  color: var(--secondary);
  font-size: 12px;
  font-weight: 700;
}

/* =========================================
   ANIMATIONS
   ========================================= */

@keyframes logoPulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.06);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes logoRotate {
  from {
    opacity: 0;
    transform: scale(0.5) rotate(-180deg);
  }

  to {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}

@keyframes preloaderContent {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 576px) {
  .preloader-content {
    max-width: 300px;
  }

  .logo-circle {
    width: 70px;
    height: 70px;

    font-size: 38px;
  }

  .preloader-content h2 {
    font-size: 25px;
    letter-spacing: 2px;
  }

  .preloader-content p {
    font-size: 10px;
    letter-spacing: 1.5px;
  }
}

.back-to-top {
  position: fixed;
  left: 25px;
  bottom: 25px;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 50%;
  background: var(--primary);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  box-shadow: 0 10px 30px rgba(113, 25, 40, 0.25);
  transition:
    opacity 0.35s ease,
    visibility 0.35s ease,
    transform 0.35s ease,
    background 0.35s ease,
    color 0.35s ease;
}

/* =========================================
   SHOW BUTTON
========================================= */

.back-to-top.show {
  opacity: 1;
  visibility: visible;

  transform: translateY(0);
}

/* =========================================
   HOVER
========================================= */

.back-to-top:hover {
  background: var(--secondary);
  color: var(--primary);

  transform: translateY(-5px);

  box-shadow: 0 15px 35px rgba(113, 25, 40, 0.3);
}

/* =========================================
   ICON
========================================= */

.back-to-top i {
  transition: transform 0.3s ease;
}

.back-to-top:hover i {
  transform: translateY(-3px);
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 576px) {
  .back-to-top {
    left: 15px;
    bottom: 15px;
    width: 45px;
    height: 45px;
    font-size: 18px;
  }
}

/* =========================================
   FLOATING CHAT
========================================= */

.chat-widget {
  position: fixed;
  right: 25px;
  bottom: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 9999;
}

/* Chat Options */

.chat-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: 0.35s ease;
}

/* Open */

.chat-widget.active .chat-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Small Buttons */

.chat-option {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 19px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.18);
  transition: 0.3s ease;
}

/* WhatsApp */

.chat-option.whatsapp {
  background: #711928;
  color: #ffca81;
}

/* Phone */

.chat-option.phone {
  background: #ffca81;
  color: #711928;
}

.chat-option:hover {
  transform: scale(1.1);
}

/* Main Chat */

.chat-main {
  width: 55px;
  height: 55px;
  border: none;
  border-radius: 50%;
  background: #711928;
  color: #ffca81;
  border: 2px solid #ffca81;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(113, 25, 40, 0.3);
  transition: 0.35s ease;
}

.chat-main:hover {
  background: #ffca81;
  color: #711928;

  transform: translateY(-4px);
}

.chat-main i {
  transition: 0.35s ease;
}

.chat-widget.active .chat-main i {
  transform: rotate(90deg);
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 576px) {
  .chat-widget {
    right: 15px;
    bottom: 15px;
  }

  .chat-main {
    width: 48px;
    height: 48px;
  }

  .chat-option {
    width: 42px;
    height: 42px;
  }
}
