@import url(https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css);

/* متغیرها */
:root {
  --primary-color: #FFD369;
  --text-color: #EEEEEE;
  --background-dark: #222831;
}

/* ریست اولیه */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* استایل عمومی */
body {
  background-image: url(assets/img/red_motorcycle_bg.jpg);
  background-attachment: fixed;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  font-family: Vazirmatn, sans-serif;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

/* CENTERING */
.centered {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* THE FRONT */
.front {
  background-image: url(assets/img/bc_front.jpg);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #393E46;
}

/* THE BACK */
.back {
  background-image: url(assets/img/bc_back.jpg);
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  padding: 25px 20px 20px;
  background-color: rgba(34, 40, 49, 0.95);
  justify-content: space-between;
  min-height: 100%;
}

.back header {
  text-align: center;
  margin-bottom: 15px;
  flex-shrink: 0;
}

.back h1 {
  color: var(--text-color);
  font-size: 28px;
  margin-bottom: 10px;
}

.back p {
  color: var(--text-color);
  font-size: 16px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--primary-color);
  width: 100%;
  text-align: center;
  margin: 0 auto;
}

.back .font-a-icons {
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 15px 0;
  flex: 1;
  justify-content: center;
}

.back .icon-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-align: center;
}

.back .bold {
  font-weight: bold;
  color: var(--primary-color);
}

.back .contact {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s;
  word-break: break-word;
}

.back .contact:hover {
  color: var(--primary-color);
}

.back footer {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: auto;
  padding-top: 15px;
  flex-shrink: 0;
}

.back .icon-box {
  color: var(--primary-color);
  font-size: 20px;
  height: 45px;
  width: 45px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid var(--primary-color);
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.back .icon-box:hover {
  box-shadow: inset 0 0 0 50px var(--primary-color);
  color: var(--background-dark);
}

/* THE FLIP EFFECT */
.flip-container {
  perspective: 1000px;
  width: 100%;
  max-width: 600px;
}

.flip-container:hover .flipper, .flip-container.hover .flipper {
  transform: rotateY(180deg);
  cursor: pointer;
}

.flip-container, .front, .back {
  height: 450px; /* افزایش ارتفاع برای نمایش بهتر */
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.flipper {
  transition: 0.6s;
  transform-style: preserve-3d;
  position: relative;
  width: 100%;
  height: 100%;
}

.front, .back {
  backface-visibility: hidden;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.front {
  z-index: 2;
  transform: rotateY(0deg);
}

.back {
  transform: rotateY(180deg);
}

/* رسپانسیو برای تبلت */
@media (max-width: 992px) {
  .flip-container, .front, .back {
    height: 420px;
    max-width: 500px;
  }
  
  .back h1 {
    font-size: 24px;
  }
  
  .back p {
    font-size: 15px;
  }
}

/* رسپانسیو برای موبایل */
@media (max-width: 576px) {
  body {
    padding: 10px;
    background-attachment: scroll;
  }
  
  .flip-container, .front, .back {
    height: 500px;
    max-width: 350px;
  }
  
  .back {
    padding: 20px 15px 15px;
    background-size: cover;
  }
  
  .front {
    background-size: contain;
  }
  
  .back h1 {
    font-size: 22px;
    margin-bottom: 8px;
  }
  
  .back p {
    font-size: 14px;
    padding-bottom: 10px;
    width: 90%;
  }
  
  .back .font-a-icons {
    gap: 12px;
    margin: 10px 0;
  }
  
  .back .icon-group {
    font-size: 14px;
  }
  
  .back .icon-box {
    height: 40px;
    width: 40px;
    font-size: 18px;
  }
}

/* رسپانسیو برای نمایشگرهای خیلی کوچک */
@media (max-width: 380px) {
  .flip-container, .front, .back {
    height: 520px;
    max-width: 300px;
  }
  
  .back h1 {
    font-size: 20px;
  }
  
  .back p {
    font-size: 13px;
  }
  
  .back .icon-group {
    font-size: 13px;
  }
  
  .back .icon-group a {
    font-size: 12px;
  }
  
  .back footer {
    gap: 10px;
  }
}