/* Fonts */
@font-face {
  font-family: "Caramella";
  src: url("../fonts/Caramella_Regular.ttf");
}

@font-face {
  font-family: "BalooChettan";
  src: url("../fonts/BalooChettanMalayalam.ttc");
}

/* ===================================================================
 * # css reset
 *
 * ------------------------------------------------------------------- */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Add root level optimizations */
:root {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

/* ===================================================================
 * # preloader
 *
 * ------------------------------------------------------------------- */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #481516;
  z-index: 500;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

.no-js #preloader {
  display: none;
}

#loader {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  padding: 0;
  display: inline-block;
  -webkit-transform: translate3d(-50%, -50%, 0);
  transform: translate3d(-50%, -50%, 0);
}

#loader > div {
  content: "";
  background: #ffffff;
  width: 6px;
  height: 6px;
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 50%;
}

#loader > div:nth-of-type(1) {
  left: 15px;
}

#loader > div:nth-of-type(3) {
  left: -15px;
}

/* dots jump */

@-webkit-keyframes dots-jump {
  0% {
    top: 0;
  }

  40% {
    top: -6px;
  }

  80% {
    top: 0;
  }
}

@keyframes dots-jump {
  0% {
    top: 0;
  }

  40% {
    top: -6px;
  }

  80% {
    top: 0;
  }
}

/* dots fade */
.dots-fade > div {
  -webkit-animation: dots-fade 1.6s infinite ease;
  animation: dots-fade 1.6s infinite ease;
  animation-delay: 0.4s;
}

.dots-fade > div:nth-of-type(1) {
  animation-delay: 0.8s;
}

.dots-fade > div:nth-of-type(3) {
  animation-delay: 0s;
}

@-webkit-keyframes dots-fade {
  0% {
    opacity: 1;
  }

  40% {
    opacity: 0.2;
  }

  80% {
    opacity: 1;
  }
}

@keyframes dots-fade {
  0% {
    opacity: 1;
  }

  40% {
    opacity: 0.2;
  }

  80% {
    opacity: 1;
  }
}

/* dots pulse */

@-webkit-keyframes dots-pulse {
  0% {
    -webkit-transform: scale(1);
    transform: scale(1);
  }

  40% {
    -webkit-transform: scale(1.1);
    transform: scale(1.3);
  }

  80% {
    -webkit-transform: scale(1);
    transform: scale(1);
  }
}

@keyframes dots-pulse {
  0% {
    -webkit-transform: scale(1);
    transform: scale(1);
  }

  40% {
    -webkit-transform: scale(1.1);
    transform: scale(1.3);
  }

  80% {
    -webkit-transform: scale(1);
    transform: scale(1);
  }
}

.hero {
  height: 100dvh;
  width: 100%;
  background-color: #efe5dd;
  padding-inline: clamp(20px, 5vw, 100px);
  padding-block: clamp(30px, 4vh, 60px);
  overflow-x: hidden;
}

.hero-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.hero-subtitle-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-subtitle {
  font-size: clamp(1rem, 3vw, 1.5rem);
  font-weight: 400;
  color: #481516;
  text-align: center;
  font-family: "Caramella";
}
.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: column;
  height: 93%;
}

.hero-content-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(500px, 85vw);
  height: auto;
  max-height: 150px;
}

.hero-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-content-footer {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  color: #481516;
  text-align: center;
  margin: 1rem 0;
  font-family: "Caramella";
}

.hero-content-input {
  border: 1px solid #481516;
  height: 50px;
  width: min(300px, 60vw);
  border-radius: 50px;
  padding: 10px;
  font-size: 1.2rem;
  font-weight: 400;
  color: #481516;
  outline: none;
  text-align: center;
  font-family: "BalooChettan";
  background-color: transparent;
  border: 2px solid #b12432;
}

.hero-content-input::placeholder {
  color: #481516;
}

.input-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-direction: column;
}

.hero-content-button {
  background-color: #b12432;
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 10px 20px;
  font-family: "BalooChettan";
  font-size: 1.2rem;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-content-response {
  font-family: "BalooChettan";
  font-size: 1.2rem;
  font-weight: 400;
  color: #481516;
}

.hero-content-button:hover {
  background-color: #99282c;
  color: #fff;
}

.hero-content-button:active {
  background-color: #5f1c1e;
  color: #fff;
}

.hero-content-button:disabled {
  background-color: #99282c;
  opacity: 0.5;
  color: #fff;
  cursor: not-allowed;
}

.hero-content-image-container {
  position: relative;
  width: 100%;
  max-width: min(500px, 90vw);
  padding: clamp(10px, 3vw, 20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  height: auto;
}

.hero-content-image {
  width: min(250px, 70vw);
  height: 300px;
  object-fit: contain;
  position: relative;
  z-index: 0;
  margin-bottom: -30px;
}

.hero-content-image-tagline {
  width: min(300px, 80vw);
  height: auto;
  position: relative;
  z-index: 1;
}

.hero-content-footer-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.hero-content-footer-input-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.hero-content-footer-image {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.hero-content-footer-image.rotated {
  transform: rotate(195deg);
}

.hero-subtitle-container.bottom {
  display: none;
}

/* Add media queries for smaller screens */
@media screen and (max-width: 768px) {
  .hero-header {
    display: none;
  }

  .hero-subtitle-container {
    width: 100%;
    text-align: center;
  }

  .hero-content {
    padding-block: 1rem;
    gap: 1rem;
    justify-content: space-between;
    height: 100%;
  }

  .hero-content-image {
    height: 300px;
  }

  .input-row {
    width: 100%;
    padding: 0 1rem;
  }

  .hero-content-input {
    font-size: 0.8rem;
  }

  .hero-content-footer-image {
    width: 30px;
    height: 30px;
  }

  .hero-subtitle-container.bottom {
    display: flex;
    margin-top: 1rem;
  }

  .hero {
    padding-block: 1rem;
  }
}
