@import "./fonts.css";

:root {
  --primary-color: #361a0c;
  --secondary-color: #f5bd07;
  --tertiary-color: #140a04;
}

::selection {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

::-moz-selection {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background-color: var(--secondary-color);
  font-family: "Milligram Trial", sans-serif;
  overflow-x: hidden;
}

#loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--primary-color);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: clip-path 1s ease-in-out;
  clip-path: circle(150% at 50% 50%);
}

#loader-wrapper.melting {
  clip-path: circle(0% at 50% 50%);
}

.loader {
  width: 100px;
  height: 100px;
  animation: melt 2s ease-in-out infinite;
}

@keyframes melt {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(20px);
  }
}

.container {
  max-width: calc(100% - 100px);
  margin: 0 auto;
  padding: 0 210px;
}

header {
  padding: 30px 210px;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #4f3324;
  padding-bottom: 30px;
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

header .logo {
  flex: 1;
  font-family: "Kangmas", sans-serif;
  font-size: 25px;
}

header nav {
  flex: 2;
  display: flex;
  justify-content: center;
}

header nav ul {
  display: flex;
  list-style-type: none;
  padding: 0;
  margin: 0;
}

header nav ul li {
  margin: 0 20px;
  position: relative;
}

header nav ul li a {
  color: white;
  text-decoration: none;
  padding: 10px 0;
  font-size: 16px;
  font-weight: 500;
  transition: color 0.3s ease;
  display: inline-block;
}

header nav ul li a:hover {
  color: var(--secondary-color);
}

header .brush {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 10px;
  pointer-events: none;
}

header .brush path {
  stroke-dasharray: 0 100;
  stroke-dashoffset: 0;
  transition: stroke-dasharray 0.5s ease;
}

header nav ul li:hover .brush path {
  stroke-dasharray: 100 0;
}

header .user {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 30px;
}

header .user-circle {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background-color: var(--secondary-color);
}

header .hamburger-menu {
  cursor: pointer;
}

.hero-section {
  background-color: var(--primary-color);
  color: white;
  padding-bottom: 50px;
}

#hero .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hero-content {
  flex: 1;
  max-width: 23%;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

#hero h1 {
  font-family: "Kangmas", sans-serif;
  font-weight: 400;
  font-size: 64px;
  margin-bottom: 20px;
}

#hero p {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 30px;
}

#hero button {
  background-color: var(--secondary-color);
  color: var(--tertiary-color);
  border: 2px solid #291012;
  padding: 20px 80px;
  font-family: "Kangmas", sans-serif;
  font-size: 24px;
  cursor: pointer;
  border-radius: 100px / 50px;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 0 8px 0 -2px white;
}

#hero button:hover {
  transform: scale(1.05);
}

.ice-cream-design {
  width: 300px;
  height: 350px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

#ice-cream-image {
  max-width: 100%;
  max-height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
  transform: scale(0.8);
}

#ice-cream-image.visible {
  opacity: 1;
  transform: scale(1);
}

#ice-cream-image.hidden {
  opacity: 0;
  transform: scale(0.8);
}

.curved-section-wrapper {
  position: relative;
  height: 150px;
  overflow: visible;
  margin-bottom: 0;
}

.curved-section {
  position: relative;
  width: 100%;
  height: 100%;
  background-color: var(--primary-color);
  overflow: visible;
}

.curve-background {
  position: absolute;
  bottom: -60%;
  left: 50%;
  width: 150%;
  height: 150%;
  background-color: var(--secondary-color);
  border-radius: 50%;
  transform: translateX(-50%) translateY(25%);
}

#curved-buttons-container {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  padding: 20px 90px;
  box-sizing: border-box;
  z-index: 2;
}

.button-wrapper {
  position: absolute;
  width: 180px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  transform-origin: center center;
  transition: all 0.3s ease;
  z-index: 10;
  overflow: visible;
}

.curved-button {
  position: relative;
  background-color: white;
  border: 1px solid var(--tertiary-color);
  border-radius: 100px;
  cursor: pointer;
  font-family: "Kangmas", sans-serif;
  font-size: 16px;
  color: var(--tertiary-color);
  transition: all 0.3s ease;
  white-space: nowrap;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  transform-origin: center center;
}

.button-wrapper:hover {
  z-index: 20;
}

.curved-button:hover {
  transform: scale(1.15);
}

.ice-cream-carousel {
  position: relative;
  width: 300px;
  height: 350px;
  perspective: 1000px;
  overflow: hidden;
}

.ice-cream-image {
  position: absolute;
  width: 100%;
  height: 100%;
  transition: all 0.5s ease-in-out, opacity 0.5s ease-in-out,
    transform 0.5s ease-in-out;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.8);
}

.ice-cream-image[data-position="center"] {
  opacity: 1;
  transform: scale(1) translateX(0) rotateY(0) translateZ(0);
}

.ice-cream-image[data-position="left"],
.ice-cream-image[data-position="right"] {
  opacity: 0.7;
}

.ice-cream-image.slide-left {
  animation: slideLeft 0.5s ease-in-out forwards;
}

.ice-cream-image.slide-right {
  animation: slideRight 0.5s ease-in-out forwards;
}

@keyframes slideLeft {
  from {
    transform: translateX(50%) rotateY(-45deg) translateZ(-300px);
  }
  to {
    transform: translateX(-50%) rotateY(45deg) translateZ(-300px);
  }
}

@keyframes slideRight {
  from {
    transform: translateX(-50%) rotateY(45deg) translateZ(-300px);
  }
  to {
    transform: translateX(50%) rotateY(-45deg) translateZ(-300px);
  }
}

footer {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  position: relative;
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}

footer .footer-left,
footer .footer-center,
footer .footer-right {
  flex: 1;
}

footer .footer-left h3 {
  font-family: "Kangmas", sans-serif;
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 10px;
  color: var(--tertiary-color);
}

footer .footer-left p {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 20px;
  color: var(--tertiary-color);
}

footer .input-wrapper {
  position: relative;
  width: 100%;
  max-width: 300px;
}

footer .input-wrapper input {
  width: 100%;
  padding: 15px 90px 15px 20px;
  border-radius: 50px;
  border: 1px solid var(--tertiary-color);
  font-family: "Kangmas", sans-serif;
  font-size: 16px;
  color: var(--tertiary-color);
  box-sizing: border-box;
  outline: none;
}

footer .input-wrapper input::placeholder {
  color: var(--tertiary-color);
}

footer .subscribe-btn {
  position: absolute;
  right: 1px;
  top: 1px;
  bottom: 1px;
  width: 75px;
  background-color: #ff2194;
  border: none;
  border-radius: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

footer .subscribe-btn svg {
  width: 20px;
  height: 20px;
  fill: white;
}

footer .footer-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

footer .footer-center .logo-container {
  width: 150px;
  height: 150px;
  background-color: var(--primary-color);
  border: 1px solid #96725c;
  border-radius: 100px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 0 5px var(--primary-color);
}

footer .footer-right p {
  font-family: "Kangmas", sans-serif;
  font-size: 20px;
  line-height: 1.5;
  color: var(--tertiary-color);
}
