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

:root {
  --primary-color: #93c572;
  --dark-bg: #1a1a1a;
  --darker-bg: #0d0d0d;
  --text-light: #ffffff;
  --text-muted: #cccccc;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(135deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
  overflow: hidden;
  height: 100vh;
  width: 100vw;
}

.app {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.back-button {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 10000;
  background: var(--primary-color);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: white;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(147, 197, 114, 0.3);
}

.back-button:hover {
  background: #7fb05a;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(147, 197, 114, 0.5);
}

.back-button svg {
  width: 24px;
  height: 24px;
}

/* Card List */
.cardList {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.cards__wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 400px;
  max-height: 600px;
  perspective: 1000px;
}

.card {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.card__image {
  width: 100%;
  height: 100%;
}

.card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.current--card {
  z-index: 3;
  transform: scale(1);
  opacity: 1;
}

.next--card {
  z-index: 2;
  transform: scale(0.9) translateX(20%);
  opacity: 0.7;
}

.previous--card {
  z-index: 2;
  transform: scale(0.9) translateX(-20%);
  opacity: 0.7;
}

/* Buttons */
.cardList__btn {
  position: fixed;
  bottom: 30px;
  z-index: 9999;
  width: 60px;
  height: 60px;
  border: 3px solid var(--primary-color);
  border-radius: 50%;
  background: rgba(26, 26, 26, 0.9);
  backdrop-filter: blur(10px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.cardList__btn:hover {
  background: var(--primary-color);
  box-shadow: 0 0 30px rgba(147, 197, 114, 0.6);
}

.cardList__btn:active {
  box-shadow: 0 0 15px rgba(147, 197, 114, 0.4);
}

.btn--left {
  left: 30px;
}

.btn--right {
  right: 30px;
}

.icon svg {
  width: 30px;
  height: 30px;
}

/* Info List */
.infoList {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  width: 90%;
  max-width: 600px;
  text-align: center;
}

.info__wrapper {
  position: relative;
  width: 100%;
  height: 150px;
}

.info {
  position: absolute;
  width: 100%;
  transition: all 0.5s ease;
}

.text {
  color: var(--text-light);
  margin: 5px 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.text.name {
  font-family: "Oswald", sans-serif;
  font-size: 2.5em;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.text.location {
  font-size: 1.2em;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.text.description {
  font-size: 1em;
  line-height: 1.6;
  color: var(--text-light);
}

.current--info {
  opacity: 1;
  visibility: visible;
  z-index: 3;
  transform: translateY(0);
}

.next--info,
.previous--info {
  opacity: 0;
  visibility: hidden;
  z-index: 1;
  transform: translateY(20px);
}

/* Background */
.app__bg {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
}

.app__bg__image {
  position: absolute;
  width: 100%;
  height: 100%;
  transition: all 0.8s ease;
}

.app__bg__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4) blur(3px);
}

.current--image {
  opacity: 1;
  z-index: 2;
}

.next--image,
.previous--image {
  opacity: 0;
  z-index: 1;
}

/* Loading */
.loading__wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--darker-bg);
  z-index: 20000;
  transition: opacity 0.5s ease;
}

.loading__wrapper.hide {
  opacity: 0;
  pointer-events: none;
}

.loader--text {
  color: var(--primary-color);
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 20px;
}

.loader {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(147, 197, 114, 0.2);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Responsive Design */

/* Tablet */
@media (max-width: 1024px) {
  .cards__wrapper {
    max-width: 350px;
    max-height: 500px;
  }

  .text.name {
    font-size: 2em;
  }

  .text.location {
    font-size: 1.1em;
  }

  .text.description {
    font-size: 0.95em;
  }

  .cardList__btn {
    width: 55px;
    height: 55px;
  }

  .btn--left {
    left: 20px;
  }

  .btn--right {
    right: 20px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .cards__wrapper {
    max-width: 300px;
    max-height: 450px;
  }

  .text.name {
    font-size: 1.8em;
  }

  .text.location {
    font-size: 1em;
  }

  .text.description {
    font-size: 0.9em;
  }

  .infoList {
    bottom: 140px;
    width: 95%;
  }

  .info__wrapper {
    height: 120px;
  }

  .cardList__btn {
    width: 50px;
    height: 50px;
    bottom: 60px;
  }

  .btn--left {
    left: calc(50% - 70px);
    transform: none;
  }

  .btn--right {
    right: calc(50% - 70px);
    transform: none;
  }

  .icon svg {
    width: 25px;
    height: 25px;
  }

  .back-button {
    width: 45px;
    height: 45px;
    top: 15px;
    left: 15px;
  }

  .back-button svg {
    width: 20px;
    height: 20px;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .cards__wrapper {
    max-width: 280px;
    max-height: 400px;
  }

  .text.name {
    font-size: 1.5em;
  }

  .text.location {
    font-size: 0.9em;
  }

  .text.description {
    font-size: 0.85em;
  }

  .infoList {
    bottom: 120px;
  }

  .cardList__btn {
    width: 45px;
    height: 45px;
    bottom: 40px;
    border-width: 2px;
  }

  .btn--left {
    left: calc(50% - 60px);
    transform: none;
  }

  .btn--right {
    right: calc(50% - 60px);
    transform: none;
  }

  .icon svg {
    width: 22px;
    height: 22px;
  }
}

/* Very Small Screens */
@media (max-width: 360px) {
  .cards__wrapper {
    max-width: 250px;
    max-height: 350px;
  }

  .text.name {
    font-size: 1.3em;
  }

  .cardList__btn {
    width: 40px;
    height: 40px;
  }

  .btn--left {
    left: calc(50% - 50px);
    transform: none;
  }

  .btn--right {
    right: calc(50% - 50px);
    transform: none;
  }

  .icon svg {
    width: 20px;
    height: 20px;
  }
}
