@import url("https://fonts.googleapis.com/css2?family=Cormorant:wght@400;700&display=swap");

:root {
  --primary: #bcb5aa;
  --secondary: #111920;
  --dark: #000;
  --light: #fff;
}

* {
  margin: 0;
  padding: 0;
}

/*-------Header-------*/
.menu {
  background-color: #0f161d;
  height: 7%;
  width: 100%;
  display: flex;
  /* Enables flexbox */
  justify-content: center;
  /* Centers horizontally */
  align-items: center;
}

.menu a {
  text-decoration: none;
}

.menu button {
  background-color: #ffffff;
  color: #0f161d;
  border: none;
  font-family: "Cormorant", serif;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: bold;
  display: block;
  padding: 5px 10px;
  border-radius: 50px;
  text-decoration: none;
}

h1 {
  align-self: flex-start;
  /* Aligns the <h1> to the top */
  margin-top: 5%;
  color: var(--light);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  text-align: center;
  text-shadow: 2px 2px 50px rgba(0, 0, 0, 0.7);
}

/*-------Body-------*/
body {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* height: 100vh; */
  font-family: "Cormorant", serif;
  background-color: rgba(0, 0, 0, 0.368);
  background-image: url("https://www.sibyllamartina.it/wp-content/uploads/2024/12/Background.jpg");
  background-blend-mode: overlay;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/*-------First Container-------*/
.first-container {
  padding: 0px;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 90vh;
  width: 100%;
  max-height: 900px;
}

.card {
  height: 100%;
  /*The parent elemetn (Body) is 100vh so this is 60% of the height of the screen*/
  width: auto;
  aspect-ratio: 3 / 4.5;
  border-radius: 5%;
  perspective: 1000px;
  position: relative;
  margin: 30px 0 30px 0;
}

.card-fronts {
  width: 100%;
  height: 100%;
  border-radius: 5%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 1s;
  /* box-shadow: 0 0 50px rgba(101, 101, 101); */
}

.card-face {
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  position: absolute;
  /* Ensures stacking */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.front-card {
  width: 100%;
  height: 100%;
  /* background-image: url("https://www.sibyllamartina.it/wp-content/uploads/2025/01/tarot-card-back-design-mystical-esoteric-symbols_543062-4716-2.png"); */
  background-image: url(../img/Carta.png);
  background-size: contain;
  /* Ensures the image is fully visible */
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 5%;
  display: flex;
  /* Enables flexbox for centering */
  justify-content: center;
  /* Centers horizontally */
  align-items: center;
  /* Centers vertically */
}

.front-card h3 {
  margin-left: 5%;
  margin-right: 5%;
  color: var(--light);
  font-size: clamp(1.2rem, 4vw, 2rem);
  text-align: center;
  text-shadow: 2px 2px 50px rgb(255, 255, 255);
}

.back-card {
  transform: rotateY(180deg);
  position: absolute;
  /* Fix stacking with front-card */
  top: 0;
  left: 0;
  border-radius: 5%;
  background-color: var(--primary);
}

.top-back-card {
  height: 50%;
  width: 100%;
  display: flex;
  background-image: url("https://www.sibyllamartina.it/wp-content/uploads/2024/12/ProfilePic.jpeg");
  background-blend-mode: overlay;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 5% 5% 50% 0%;
}

.bottom-back-card {
  height: 50%;
  width: 100%;
  display: flex;
  flex-direction: column;
  /* justify-content: center; */
  align-items: center;
  text-align: center;
  gap: 10px;
}

.bottom-back-card h3 {
  color: var(--secondary);
  font-size: clamp(0.2rem, 4vw, 2rem);
  font-weight: 900;
  margin-top: 5%;
}

.bottom-back-card p {
  color: var(--secondary);
  font-size: clamp(0.2rem, 4vw, 1.5rem);
  font-weight: bold;
  max-width: 90%;
  /* Constrains the text width */
  word-wrap: break-word;
  /* Breaks long words to avoid overflow */
  margin: auto 0;
}

.bottom-back-card img {
  height: 20%;
  margin-top: auto;
  margin-bottom: 5%;
}

.card.no-shadow {
  box-shadow: none;
  /* Removes the shadow */
}

.pulse {
  animation: pulse 3s infinite;
}

.front-card {
  height: 100%;
  width: 100%;
}

.card.is-flipped .card-fronts {
  transform: rotateY(180deg);
}

/*----------- CTA -----------*/
.call-to-action {
  margin-bottom: 2%;
  display: block;
}

.call-to-action h3 {
  color: var(--light);
  font-size: 40px;
  text-align: center;
  text-shadow: 2px 2px 50px rgba(0, 0, 0, 0.7);
}

.call-to-action h4 {
  color: var(--light);
  font-size: 25px;
  text-align: center;
  text-shadow: 2px 2px 50px rgba(0, 0, 0, 0.7);
}

.call-to-action button {
  background-color: var(--primary);
  border: none;
  border-radius: 50px;
  padding: 8px;
  font-family: "Cormorant", serif;
  font-weight: bold;
  font-size: 25px;
  display: block;
  margin: 5px auto 0 auto;
  text-decoration: none;
}

.call-to-action a {
  text-decoration: none;
  color: #1b2025;
}

.call-to-action button:active {
  transform: scale(0.95);
  /* Shrinks the button slightly */
  box-shadow: none;
  /* Removes the shadow for a pressed look */
  background-color: var(--light);
  color: var(--secondary);
}

.first-container-hr {
  width: 80%;
  height: 1px;
  background-color: rgb(255, 255, 255, 10);
  box-shadow: 10px 10px 30px 10px rgba(255, 255, 255, 10); /* Adds shadow */
  margin: 20px auto 10px; /* Adds space around it */
}

/*----------- Shop Container -----------*/
.second-container h3 {
  color: var(--light);
  font-size: 40px;
  text-align: center;
  text-shadow: 2px 2px 50px rgba(255, 255, 255, 0.7);
}

.blog-carousel {
  width: 100%;
  max-width: 1120px;
  display: flex;
  justify-content: space-between;
  gap: 20px; /* Space between cards */
  padding: 20px;
  margin: 0px auto 30px auto;
}

.blog-card {
  flex: 1; /* Makes all cards the same width */
  max-width: 300px; /* Prevents them from getting too large */
  text-align: center;
  background: #bcb4a8;
  padding: 15px;
  border-radius: 25px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.blog-card:active {
  transform: scale(0.98);
  opacity: 0.6;
  background-color: #aca394;
}

.blog-card img {
  width: 100%;
  height: auto;
  border-radius: 25px;
}

.blog-caption {
  margin-top: 10px;
  font-family: "Cormorant", serif;
  font-size: 26px;
  color: #000;
  font-weight: bold;
}

.second-container a {
  text-decoration: none;
}

@media screen and (max-width: 768px) {
  .blog-carousel {
    flex-direction: column; /* Stack cards on mobile */
    align-items: center;
    max-width: 80%;
  }

  .blog-card {
    width: 90%;
    overflow: hidden;
    padding-bottom: 0px;
  }

  .blog-card img {
    height: 100px;
    object-fit: cover;
  }

  .blog-card p {
    margin-bottom: 10px;
  }
}

/*----------- blog Carousels -----------*/

.second-container {
  margin: 0;
  padding: 0;
  width: 100%;
  flex-grow: 1;
  box-sizing: border-box;
  font-family: "Cormorant", serif;
  justify-content: center;
  margin-bottom: 20px;
}

.shop-carousel {
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide-container {
  max-width: 1120px;
  width: 100%;
  padding: 40px 0;
}

.slide-content {
  margin: 0 40px;
  overflow: hidden;
  border-radius: 25px;
}

.slider-card {
  border-radius: 25px;
  background-color: #fff;
}

.image-content,
.card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 14px;
}

.image-content {
  position: relative;
  row-gap: 5px;
  padding: 25px 0;
}

.overlay {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  background-color: #bcb4a8;
  border-radius: 25px 25px 0 25px;
}

.overlay::before,
.overlay::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -40px;
  height: 40px;
  width: 40px;
  background-color: #bcb4a8;
}

.overlay::after {
  border-radius: 0 25px 0 0;
  background-color: #fff;
}

.card-image {
  position: relative;
  height: 150px;
  width: 150px;
  border-radius: 50%;
  /* background: #fff; */
  padding: 3px;
  border: 1px solid #fff;
}

.card-image .card-img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.name {
  font-size: 23px;
  font-weight: bold;
  color: #333;
}

.description {
  font-size: 16px;
  color: #707070;
  text-align: center;
}

.button {
  border: none;
  font-family: "Cormorant", serif;
  font-size: 20px;
  color: #000;
  padding: 8px 16px;
  background-color: #bcb4a8;
  border-radius: 6px;
  margin: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: bold;
}

.button:hover {
  background: #a59a8a;
}

.swiper-navBtn {
  color: #fff;
  transition: color 0.3s ease;
}

.swiper-navBtn:hover {
  color: #bcb4a8;
}

.swiper-navBtn::before,
.swiper-navBtn::after {
  font-size: 35px;
}

.swiper-button-next {
  right: 0;
}

.swiper-button-prev {
  left: 0;
}

.swiper-pagination-bullet {
  background-color: #fff;
  opacity: 1;
}

.swiper-pagination-bullet-active {
  background-color: #bcb4a8;
}
.button a {
  text-decoration: none; /* Removes underline */
  color: inherit; /* Inherits text color from parent */
  outline: none; /* Removes focus outline */
}

@media screen and (max-width: 768px) {
  .slide-content {
    margin: 0 10px;
  }

  .swiper-navBtn {
    display: none;
  }

  .slide-container {
    width: 90%;
    padding-top: 15px;
  }
}

/*----------- Animations -----------*/

.pulse {
  animation: pulse 3s infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.03);
  }
}

.toAppear {
  opacity: 0;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.appear {
  animation: fadeIn 2.5s ease-in forwards;
  /* Apply animation */
}

.invisible {
  display: none;
}

.shop-container-phone img {
  box-shadow: 0 0 20px rgb(191, 190, 190);
  margin-top: 20px;
  border: 2px solid white;
}

/* Custom Carousel Container */
.custom-carousel-container {
  position: relative;
  width: 80%;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* Carousel Wrapper */
.custom-carousel-wrapper {
  overflow: hidden;
  width: 100%;
}

/* Carousel */
.custom-carousel {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

/* Individual Slide */
.custom-slide {
  flex: 0 0 33.333%;
  padding: 20px;
  text-align: center;
  background-color: #111;
  color: white;
  border-radius: 10px;
  transition: transform 0.5s;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.custom-slide img {
  width: 100%;
  height: 200px;
  border-radius: 10px;
  object-fit: cover;
}

.custom-slide-content {
  padding: 15px;
}

.custom-slide h3 {
  font-size: 1.5rem;
  margin: 10px 0;
}

.custom-slide p {
  font-size: 1rem;
  opacity: 0.8;
}

/* Navigation Buttons */
.custom-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: none;
  font-size: 24px;
  color: white;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.3s;
}

.custom-prev-btn {
  left: -40px;
}

.custom-next-btn {
  right: -40px;
}

.custom-carousel-btn:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* Pagination Dots */
.custom-carousel-dots {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.custom-dot {
  width: 10px;
  height: 10px;
  margin: 0 5px;
  background: #888;
  border-radius: 50%;
  cursor: pointer;
}

.custom-dot.active {
  background: white;
}

/*------------- FOOTER -------------*/
.footer {
  background-color: #0f161d; /* Dark background */
  padding: 20px 0;
  display: flex;
  justify-content: center;
  width: 100%;
}

.footer-container {
  width: 90%;
  max-width: 1200px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left a {
  color: white;
  text-decoration: none;
  font-family: "Cormorant", serif;
  font-weight: bold;
}

.footer-center {
  text-align: center;
  color: white;
  font-family: "Cormorant", serif;
}

.footer-logo {
  max-width: 80px; /* Adjust logo size */
  margin-bottom: 10px;
}

.footer-center a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.footer-right {
  display: flex;
  gap: 10px;
}

.social-icon img {
  width: 30px;
  height: 30px;
  border-radius: 5px;
  padding: 5px;
}

/*---------------------------MEDIA QUERIES----------------*/
@media (max-width: 768px) {
  /* Target devices with width 768px or smaller */
  .menu {
    height: 8%;
    /* Increase height for better tapability */
  }

  .menu button {
    font-size: 18px;
    /* Reduce button font size for smaller screens */
    padding: 8px;
    /* Add more padding for touch-friendly UI */
  }

  h1 {
    font-size: 1.5rem;
    /* Adjust font size for smaller screens */
    margin-top: 5%;
  }

  .card {
    width: 90%;
    margin-top: 1.2rem;
    margin-bottom: 1.2rem;
    /* Reduce card height */
  }

  .front-card h3 {
    font-size: 1.5rem;
    /* Smaller font size for card text */
  }

  .bottom-back-card h3 {
    font-size: 1.8rem;
    /* Adjust text size */
  }

  .bottom-back-card p {
    font-size: 18px;
    /* Make text smaller for readability */
  }

  .call-to-action {
    margin-bottom: 5%;
    /* Space out for better touch usability */
  }

  .call-to-action h4 {
    margin-top: 20px;
  }

  .call-to-action h3 {
    margin-bottom: 10px;
  }

  .call-to-action h3,
  .call-to-action h4 {
    font-size: 20px;
    /* Scale down text */
  }

  .call-to-action button {
    font-size: 20px;
    padding: 10px 15px;
    /* Adjust padding for smaller buttons */
    color: #1b2025;
    margin-bottom: 20px;
  }

  .footer-container {
    flex-direction: column; /* Stack elements */
    text-align: center;
    align-items: center;
  }

  /* Reordering elements */
  .footer-center {
    order: 1; /* Logo first */
  }

  .footer-right {
    order: 2; /* Social media icons second */
    margin: 10px 0;
  }

  .footer-left {
    order: 3; /* Business info last */
    margin-top: 10px;
  }

  /* Adjust logo size for mobile */
  .footer-logo {
    max-width: 60px;
  }

  /* Reduce social icon size */
  .social-icon img {
    width: 25px;
    height: 25px;
  }
}

@media (min-width: 1024px) {
  .shop-container-phone {
    display: none;
  }

  .shop-container-desktop {
    display: flex;
  }
}

@media (max-width: 1024px) {
  .shop-container-phone {
    display: block;
  }

  .shop-container-desktop {
    display: none;
  }
}
