
:root {
  --bg-color: #EEE6DB;
  --text-color: #2A2A2A;
  --primary-accent: #688967;
  --secondary-accent: #B68487;
  --font-heading: 'Cormorant Garamond', serif;
  --font-body: 'Lato', sans-serif;
  --transition-speed: 0.4s;
}

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

html {
}

body {
  font-family: var(--font-body);
  background-color: transparent;
  color: var(--text-color);
  line-height: 1.7;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
}
#live-background-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-speed) ease;
}


.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;

  backdrop-filter: blur(10px);
  padding: 15px 0;
}
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 1px;
}

.nav-link {
  margin: 0 20px;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding-bottom: 5px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--primary-accent);
  transition: width var(--transition-speed) ease;
}

.nav-link:hover::after {
  width: 100%;
}

.cart-icon {
  font-size: 20px;
}
.cart-icon:hover {
  color: var(--primary-accent);
}


.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: url('../img/background.png') no-repeat center center/cover;
  color: var(--text-color);
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-color: rgba(238, 230, 219, 0.5);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-title {
  font-size: 4.5rem;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.2rem;
  font-weight: 300;
  margin-bottom: 40px;
}


.section-title {
  font-size: 5rem;
  text-align: center;
  margin-bottom: 60px;
  font-weight: 400;
}
.nasvazy{
  font-size: 3rem;
}
.section-text {
  max-width: 700px;
  margin: 0 auto 20px auto;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 300;
}

.cloud{
  z-index: -1;
  position: absolute;
  top: 0;
  left: 50%;
  scale: 2;
  transform: translate(-50%,0);
  opacity: 0.5;
}




.btn {
  display: inline-block;
  padding: 15px 40px;
  background-color: var(--primary-accent);
  color: #fff;
  border: 1px solid var(--primary-accent);
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: all var(--transition-speed) ease;
}

.btn:hover {
  background-color: transparent;
  color: var(--primary-accent);
}

.btn-outline {
  display: inline-block;
  padding: 12px 35px;
  background-color: transparent;
  color: var(--text-color);
  border: 1px solid var(--text-color);
  margin-top: 15px;
  transition: all var(--transition-speed) ease;
}

.btn-outline:hover {
  background-color: var(--text-color);
  color: #fff;
}


.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.product-card {
  text-align: center;
}

.product-image-wrapper {
  position: relative;
  overflow: hidden;
  margin-bottom: 25px;
  filter: drop-shadow(1px 1px 20px rgb(110, 109, 109));
}

.product-image {
  width: 100%;
  animation: float 6s ease-in-out infinite;

}
.product-info{
  position: relative;
  margin-top: -20px;
}

.about-section, .products-section, .contact-section {
  padding: 100px 0;
  background-color: rgba(238, 230, 219, 0.97);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;

}

.product-title {
  font-size: 2.2rem;
  margin-bottom: 5px;
  font-weight: 600;
}
.about-section {
  position: relative;
  padding: 0;
}

.about-section::before {
  content: '';
  position: absolute;

  bottom: 100%;
  left: 0;
  width: 100%;
  height: 200px;

  background: linear-gradient(to bottom, transparent, #EFE7DC);
  z-index: 2;
}
.product-scent {
  color: #777;
  margin-bottom: 15px;
}

.product-price {
  font-size: 1.3rem;
  font-weight: 600;
  display: block;
}



.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info .section-title,
.contact-info .section-text {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}
.contact-info{
  position: relative;
  z-index: 2;
}
.instagram-link {
  display: inline-flex;
  align-items: center;
  font-size: 1.2rem;
  margin-top: 20px;
  color: var(--secondary-accent);
  font-weight: bold;
}
.instagram-link:hover {
  color: var(--primary-accent);
}
.instagram-link i {
  font-size: 2rem;
  margin-right: 15px;
}

.contact-form-wrapper p {
  margin-bottom: 20px;
  font-weight: 300;
}

#contact-form input,
#contact-form textarea {
  width: 100%;
  padding: 15px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  background-color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
}

#contact-form input:focus,
#contact-form textarea:focus {
  outline: 1px solid var(--primary-accent);
}

#contact-form textarea {
  resize: vertical;
}

#contact-form .btn {
  width: 100%;
  cursor: pointer;
}


.footer {
  padding: 30px 0;
  text-align: center;

  background-color: rgba(238, 230, 219, 0.97);
  border-top: 1px solid #ddd;
  position: relative;
  z-index: 2;
  transform: translateZ(0);
}

.back-to-top {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--text-color);
}
.back-to-top:hover {
  color: var(--primary-accent);
}

.cloud2{
  position: absolute;
  bottom: -200px;
  right: -100px;
  z-index: 0;
  opacity: 0.5;
  pointer-events: none;
  scale: 1.5;
}



.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}



@media (max-width: 992px) {
  .hero-title {
    font-size: 3.5rem;
  }
  .products-grid,
  .contact-container {
    grid-template-columns: 1fr;
  }
  .contact-info .section-title,
  .contact-info .section-text {
    text-align: center;
  }
  .contact-info {
    text-align: center;
  }
}
.scroll-anchor {
  position: relative;
  top: -100px;
  display: block;
  height: 0;
  width: 0;
  visibility: hidden;
}
@media (max-width: 768px) {
  .nav {
    flex-direction: column;
  }
  .nav-logo {

  }

  .hero-subtitle {
    font-size: 1rem;
  }
  .section-title {
    font-size: 2.2rem;
  }
  .about-section, .products-section, .contact-section {
    padding: 60px 0;
  }
}

.ingredients-section {
  padding: 100px 0;


  background-color: rgba(238, 230, 219, 0.97);
}


.ingredients-section .container {
  padding: 40px 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.card-wrap {
  margin: 15px;
  transform: perspective(800px);
  transform-style: preserve-3d;
  cursor: pointer;
}

.card {
  position: relative;
  flex: 0 0 240px;
  width: 240px;
  height: 320px;
  background-color: #333;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: rgba(0, 0, 0, 0.66) 0 30px 60px 0, inset #333 0 0 0 5px, inset rgba(255, 255, 255, 0.5) 0 0 0 6px;
  transition: 1s cubic-bezier(0.445, 0.05, 0.55, 0.95);
}

.card-bg {
  opacity: 0.5;
  position: absolute;

  top: -30px;
  left: -30px;
  width: calc(100% + 60px);
  height: calc(100% + 60px);

  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  transition: 1s cubic-bezier(0.445, 0.05, 0.55, 0.95), opacity 5s 1s cubic-bezier(0.445, 0.05, 0.55, 0.95);
  pointer-events: none;


  border-radius: 10px;
}
.card-info {
  padding: 20px;
  position: absolute;
  bottom: 0;
  color: #fff;
  transform: translateY(40%);
  transition: 0.6s 1.6s cubic-bezier(0.215, 0.61, 0.355, 1);
}
.card-info p {
  opacity: 0;


  text-shadow: black 0 2px 3px;
  transition: 0.6s 1.6s cubic-bezier(0.215, 0.61, 0.355, 1);
}
.card-info * {
  position: relative;
  z-index: 1;
}
.card-info:after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.6) 100%);
  background-blend-mode: overlay;
  opacity: 0;
  transform: translateY(100%);
  transition: 5s 1s cubic-bezier(0.445, 0.05, 0.55, 0.95);
}

.card-info h1 {
  font-family: "Playfair Display", serif;
  font-size: 26px;
  font-weight: 700;
  text-shadow: rgba(0, 0, 0, 0.5) 0 10px 10px;
}

.card-wrap:hover .card-info {
  transform: translateY(0);
}
.card-wrap:hover .card-info p {
  opacity: 1;
}
.card-wrap:hover .card-info, .card-wrap:hover .card-info p {
  transition: 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}
.card-wrap:hover .card-info:after {
  transition: 5s cubic-bezier(0.23, 1, 0.32, 1);
  opacity: 1;
  transform: translateY(0);
}
.card-wrap:hover .card-bg {
  transition: 0.6s cubic-bezier(0.23, 1, 0.32, 1), opacity 5s cubic-bezier(0.23, 1, 0.32, 1);
  opacity: 0.8;
}
.card-wrap:hover .card {
  transition: 0.6s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 2s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: rgba(255, 255, 255, 0.2) 0 0 40px 5px, white 0 0 0 1px, rgba(0, 0, 0, 0.66) 0 30px 60px 0, inset #333 0 0 0 5px, inset white 0 0 0 6px;
}



@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.hero-title,
.hero-subtitle,
.hero .btn {
  opacity: 0;
}




.hero-title {
  animation: fadeInUp 1s ease-out 0.5s forwards;
}


.hero-subtitle {
  animation: fadeInUp 1s ease-out 0.8s forwards;
}


.hero .btn {
  animation: fadeInUp 1s ease-out 1.1s forwards;
}
.product-card-link {
  text-decoration: none;
  display: block;
}

.product-image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.product-hover-info {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(2px);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 25px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.product-hover-info h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 2.4rem;
  margin: 0;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  padding-bottom: 10px;
}

.product-hover-info ul {
  list-style-type: none;
  padding: 0;
  margin-top: 15px;
  text-align: left;
  width: 100%;
}

.product-hover-info li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 12px;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.5;
}

.product-hover-info li i {
  color: var(--primary-accent);
  margin-right: 12px;
  font-size: 1rem;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
  margin-top: 4px;
}


.product-image {
  width: 100%;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.product-card-link:hover .product-image {
  transform: scale(1.05);
  filter: brightness(0.7);
}

.product-card-link:hover .product-hover-info {
  opacity: 1;
  visibility: visible;
}




@media (max-width: 760px){
  section{
    padding: 0 20px;
  }
  h1{
    font-size: 2rem !important;
  }
  .card h1{
    font-size: 1.5rem !important;
  }
}



.nav-burger-btn {
  display: none;
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  width: 30px;
  height: 22px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1002;
  padding: 0;
}

.nav-burger-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-color);
  position: absolute;
  left: 0;
  transition: all 0.3s ease-in-out;
  border-radius: 2px;
}

.nav-burger-btn span:nth-child(1) { top: 0; }
.nav-burger-btn span:nth-child(2) { top: 10px; }
.nav-burger-btn span:nth-child(3) { top: 20px; }

@media (max-width: 992px) {
  .nav-burger-btn {
    display: block;
  }

  .nav {
    justify-content: center;
  }

  .nav-link:not(.nav-logo) {
    display: none;
  }

  .nav.nav-mobile {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: rgba(238, 230, 219, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 1000;
  }

  .nav.nav-mobile .nav-link {
    display: block;
    font-size: 2rem;
    font-family: var(--font-heading);
  }

  .nav-logo {
    position: relative;
    z-index: 1001;
  }

  .header.nav-open .nav.nav-mobile {
    right: 0;
  }

  .header.nav-open .nav-burger-btn span:nth-child(1) {
    top: 10px;
    transform: rotate(45deg);
  }
  .header.nav-open .nav-burger-btn span:nth-child(2) {
    opacity: 0;
  }
  .header.nav-open .nav-burger-btn span:nth-child(3) {
    top: 10px;
    transform: rotate(-45deg);
  }
}
