.policy,
.success {
  padding-block: 130px 60px;
  min-height: 92vh;
}

.success__text {
  margin-bottom: 30px;
}

.policy__title,
.success__title {
  font-weight: 700;
  font-size: 40px;
  line-height: 100%;
  letter-spacing: 0%;
  vertical-align: middle;

  margin-bottom: 30px;
}

.policy__text {
  font-weight: 400;
  font-size: 18px;
  line-height: 130%;
  letter-spacing: 0%;
}

.policy__text h2,
.policy__text p,
.policy__text ul {
  margin-bottom: 14px;
}

.policy__text ul {
  padding-left: 20px;
}

.policy__link {
  color: #fff;
}

h1,
h2,
h3,
h4 {
  word-break: break-word;
}

html {
  scroll-behavior: smooth;
}

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

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

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Fredoka", cursive;
}

/* Cookie Popup */
.cookie-popup {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: white;
  border: 3px solid #20b2aa;
  border-radius: 15px;
  padding: 20px;
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  max-width: 500px;
  margin: 0 auto;
}

.cookie-popup.hidden {
  display: none;
}

.cookie-content h3 {
  color: #333;
  font-size: 18px;
  margin-bottom: 10px;
  font-weight: 600;
}

.cookie-content p {
  font-size: 14px;
  margin-bottom: 15px;
  line-height: 1.5;
}

.cookie-content a {
  color: #20b2aa;
  text-decoration: none;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
}

.btn-accept,
.btn-reject {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
}

.btn-accept {
  background: #20b2aa;
  color: white;
}

.btn-accept:hover {
  background: #1a9999;
}

.btn-reject {
  background: #20b2aa;
  color: white;
}

.btn-reject:hover {
  background: #1a9999;
}

/* Header */
.header {
  background: #20b2aa;
  padding: 15px 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-family: "Fredoka", cursive;
  font-size: 24px;
  font-weight: 600;
  text-decoration: none;
}

.logo img {
  width: 40px;
  height: 40px;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-list a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 5px 0;
}

.nav-list a:hover {
  color: #ffd700;
}

.burger-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
}

.burger-menu span {
  width: 25px;
  height: 3px;
  background: white;
  transition: all 0.3s ease;
}

.mobile-menu {
  position: fixed;
  top: 70px;
  left: -100%;
  width: 100%;
  height: calc(100vh - 70px);
  background: #20b2aa;
  z-index: 998;
  transition: left 0.3s ease;
  padding: 20px;
}

.mobile-menu.active {
  left: 0;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-nav-list a {
  color: white;
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* Hero Section */
.hero {
  background: url("../img/hero-mob.png") center / cover no-repeat;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

@media (min-width: 1200px) {
  .hero {
    min-height: 100vh;
    background: url("../img/hero.png") center / cover no-repeat;
  }
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  position: relative;
  padding-top: 14rem;
}


.hero-center {
  flex: 1;
  text-align: center;
  position: relative;
}

.game-title {
  position: relative;
  margin-bottom: 40px;
}

.bermuda {
  font-family: "Fredoka", cursive;
  font-size: 4rem;
  color: #20b2aa;
  margin: 10px 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  font-weight: 700;
  opacity: 0;
}

@keyframes fly {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(5deg);
  }
}

.google-play-btn {
  display: inline-block;
  transition: transform 0.3s ease;
}

.google-play-btn:hover {
  transform: scale(1.05);
}

.google-play-btn img {
  height: 60px;
  width: auto;
}

/* Game Description */
.game-description {
  background: #20b2aa;
  padding: 80px 0;
  color: white;
}

.description-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.description-text {
  flex: 1;
}

.description-text h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  line-height: 1.3;
}

.description-text p {
  font-size: 16px;
  line-height: 1.7;
}

.description-image {
  flex: 1;
}

.description-image img {
  width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Features Section */
.features {
  padding: 80px 0;
  background: #f8f9fa;
}

.features h2 {
  text-align: center;
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 50px;
  font-weight: 600;
}

.features-grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.feature-card {
  width: 100%;
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: flex-start;
  gap: 20px;
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon {
  flex-shrink: 0;
}

.feature-icon img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
}

.feature-content h3 {
  color: #20b2aa;
  font-size: 18px;
  margin-bottom: 10px;
  font-weight: 600;
}

.feature-content p {
  font-size: 14px;
  line-height: 1.6;
  color: #666;
}

/* Test Skills Section */
.test-skills {
  background: url("../img/bg-1.png") center / cover no-repeat;
  padding: 80px 0;
}

.test-skills-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.test-skills-image {
  flex: 1;
}

.test-skills-image img {
  width: 100%;
  height: auto;
  border-radius: 15px;
}

.test-skills-text {
  flex: 1;
  text-align: center;
}

.test-skills-text h2 {
  color: white;
  font-size: 2rem;
  margin-bottom: 30px;
  line-height: 1.3;
}

/* Reviews Section */
.reviews {
  padding: 80px 0;
  background: #f8f9fa;
}

.reviews h2 {
  text-align: center;
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 50px;
  font-weight: 600;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.review-card {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.review-card:hover {
  transform: translateY(-5px);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.reviewer-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.review-header h3 {
  color: #20b2aa;
  font-size: 16px;
  font-weight: 600;
}

.review-card p {
  font-size: 14px;
  line-height: 1.6;
  color: #666;
  font-style: italic;
}

/* Gallery Section */
.gallery {
  padding: 80px 0;
  background: white;
}

.gallery h2 {
  text-align: center;
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 50px;
  font-weight: 600;
}

.gallery-slider {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.gallery-wrapper {
  position: relative;
  width: 100%;
  height: 450px;
  overflow: hidden;
  background: #f0f0f0;
}

.gallery-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s ease-in-out;
  z-index: 1;
}

.gallery-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Slider Navigation Buttons */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(32, 178, 170, 0.8);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  user-select: none;
}

.slider-btn:hover {
  background: rgba(32, 178, 170, 1);
  transform: translateY(-50%) scale(1.1);
}

.slider-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.slider-prev {
  left: 20px;
}

.slider-next {
  right: 20px;
}

/* Dots Indicator */
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
}

.dot.active {
  background: #20b2aa;
  transform: scale(1.2);
}

.dot:hover {
  background: #20b2aa;
}

/* Thumbnail Navigation */
.gallery-thumbnails {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.thumbnail {
  width: 80px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 3px solid transparent;
  opacity: 0.7;
  user-select: none;
}

.thumbnail.active {
  border-color: #20b2aa;
  opacity: 1;
  transform: scale(1.1);
}

.thumbnail:hover {
  opacity: 1;
  transform: scale(1.05);
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

/* Newsletter Section */
.newsletter {
  background: url("../img/contact-bg.png") center / cover no-repeat;
  padding: 80px 0;
  color: white;
  text-align: center;
}

.newsletter-content h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  line-height: 1.3;
}

.newsletter-content p {
  font-size: 16px;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 500px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.newsletter-form input {
  flex: 1;
  min-width: 200px;
  padding: 15px 20px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  outline: none;
}

.btn-submit {
  background: #20b2aa;
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-submit:hover {
  background: #1a9999;
  transform: translateY(-2px);
}

.success__btn {
  background: #20b2aa;
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.success__btn:hover {
  background: #1a9999;
  transform: translateY(-2px);
}


/* Footer */
.footer {
  background: #333;
  color: white;
  padding: 30px 0;
}

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

.footer-links {
  display: flex;
  gap: 30px;
}

.footer-links a {
  color: white;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #20b2aa;
}

.footer-copyright p {
  font-size: 14px;
  color: #ccc;
}

/* Responsive Design */
@media (max-width: 768px) {
  .burger-menu {
    display: flex;
  }

  .nav {
    display: none;
  }

  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .hero-left,
  .hero-center,
  .hero-right {
    flex: none;
  }

  .bermuda {
    font-size: 3rem;
  }

  .down-in {
    font-size: 2rem;
  }

  .description-content {
    flex-direction: column;
    gap: 30px;
  }

  .test-skills-content {
    flex-direction: column;
    gap: 30px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    flex-direction: column;
    text-align: center;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 150px;
  }

  .gallery-featured {
    grid-column: span 2;
    grid-row: span 1;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form input,
  .btn-submit {
    width: 100%;
  }

  .footer-content {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .footer-links {
    flex-direction: column;
    gap: 15px;
  }

  .cookie-popup {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }

  .cookie-buttons {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .bermuda {
    font-size: 2.5rem;
  }

  .down-in {
    font-size: 1.5rem;
  }

  .hero-character,
  .hero-island {
    max-width: 200px;
  }

  .features h2,
  .reviews h2,
  .gallery h2 {
    font-size: 2rem;
  }

  .newsletter-content h2 {
    font-size: 1.5rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-featured {
    grid-column: span 1;
  }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Loading Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feature-card,
.review-card,
.gallery-item {
  animation: fadeInUp 0.6s ease-out;
}

/* Focus Styles for Accessibility */
a:focus,
button:focus,
input:focus {
  outline: 2px solid #20b2aa;
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .header,
  .footer,
  .cookie-popup {
    display: none !important;
  }

  .hero {
    page-break-after: always;
  }
}
