@font-face {
  font-family: "Baron Neue";
  src: url("https://db.onlinewebfonts.com/t/6d7986f3374f37079b27ee9a2a7e60c4.eot");
  src:
    url("https://db.onlinewebfonts.com/t/6d7986f3374f37079b27ee9a2a7e60c4.eot?#iefix")
      format("embedded-opentype"),
    url("https://db.onlinewebfonts.com/t/6d7986f3374f37079b27ee9a2a7e60c4.woff2")
      format("woff2"),
    url("https://db.onlinewebfonts.com/t/6d7986f3374f37079b27ee9a2a7e60c4.woff")
      format("woff"),
    url("https://db.onlinewebfonts.com/t/6d7986f3374f37079b27ee9a2a7e60c4.ttf")
      format("truetype"),
    url("https://db.onlinewebfonts.com/t/6d7986f3374f37079b27ee9a2a7e60c4.svg#Baron Neue")
      format("svg");
}

:root {
  --primary-color: #007bff;
  --secondary-color: #ffc107;
  --dark-color: #1c1c1c;
  --secondary-dark-color: #232323;
  --light-color: #f8f9fa;
  --white-color: #ffffff;
  --font-family: "Poppins", sans-serif;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--light-color);
  color: var(--dark-color);
  line-height: 1.6;
  padding-top: 72px;
}

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

h1,
h2,
h3 {
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 20px;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
}

h1 small {
  font-size: clamp(1.5rem, 3vw, 1.75rem);
  display: block;
}

h2 {
  font-size: clamp(2rem, 5vw, 2.5rem);
  text-align: center;
}

p {
  margin-bottom: 15px;
}

.btn {
  display: inline-block;
  padding: 15px 35px;
  background: linear-gradient(90deg, var(--secondary-color), #ff8c00);
  color: var(--dark-color);
  font-weight: 700;
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.2rem;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(255, 165, 0, 0.4);
}

.logo a {
  font-family: "Baron Neue Bold", sans-serif;
  font-size: 2rem;
  font-weight: bold;
  color: var(--white-color);
  text-transform: uppercase;
  text-decoration: none;
}

.hero {
  position: relative;
  height: 60vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--white-color);
  background-image: url("../images/grid_of_cards.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: 1;
  overflow: hidden; /* Prevent content from overlapping */
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: -1;
}

.navbar {
  padding: 20px 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--secondary-dark-color);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.nav-links {
  list-style: none;
  display: flex;
}

.nav-links li {
  margin-left: 30px;
}

.nav-links a {
  color: var(--white-color);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--secondary-color);
}

.nav-btn {
  padding: 10px 20px;
  background: linear-gradient(90deg, var(--secondary-color), #ff8c00);
  color: var(--dark-color);
  font-weight: 700;
  text-decoration: none;
  border-radius: 50px;
  font-size: 1rem;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
}

.nav-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(255, 165, 0, 0.4);
  color: var(--dark-color);
}

.hero-content {
  padding: 0 20px;
}

.hero-content .subtitle {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 30px;
  color: rgba(255, 255, 255, 0.8);
  background-color: rgba(0, 0, 0, 0.5); /* Add background */
  padding: 10px 20px; /* Add padding */
  border-radius: 5px; /* Add border-radius */
  display: inline-block; /* Make background wrap text */
}

main {
}

/* --- Seções --- */
section {
  padding: 80px 0;
}

.features-section {
  background-color: var(--white-color);
}

.alternating-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 40px;
}

.alternating-columns .column img {
  width: 100%;
  border-radius: 10px;
}

.parallax-container {
  overflow: hidden;
}

.risk-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  align-items: start;
  text-align: center;
}

.risk-columns .column img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 15px;
}

.golpe-section {
  background: linear-gradient(180deg, #f0f0f0, #e0e0e0);
}

.how-it-works-section {
  background-color: var(--light-color);
}

.how-it-works-content {
  display: flex;
  align-items: center;
  gap: 60px;
}

.how-it-works-text {
  flex: 1;
}

.how-it-works-image {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
  min-height: 400px;
}

.card-flipper {
  position: relative;
  width: 80%;
  padding-bottom: 50%;
  transform-style: preserve-3d;
  transition: transform 0.8s;
}

.card-flipper:hover {
  cursor: pointer;
}

.card-face {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-face img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
}

.card-back {
  transform: rotateY(180deg);
}

.how-it-works-text ul {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.how-it-works-text li {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.check-icon {
  color: var(--primary-color);
  font-weight: bold;
  margin-right: 10px;
}

.cta-section {
  position: relative;
  color: var(--white-color);
  text-align: center;
  background-image: url("../images/grid_of_cards.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: 1;
}

.cta-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: -1;
}

.cta-section p {
  max-width: 600px;
  margin: 0 auto 30px;
}

.cta-content {
  transition: transform 0.1s linear;
}

/* --- Rodapé --- */
footer {
  color: #aaa;
  padding: 30px 0;
  background: var(--dark-color)
    url("https://www.transparenttextures.com/patterns/carbon-fibre.png");
  color: var(--white-color);
  text-align: center;
}

footer .logo {
  font-size: 1.5rem;
}

.social-links {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.social-links a {
  color: #fff;
  font-size: 3rem;
  transition: color 0.2s;
}

.social-links a:hover {
  color: var(--secondary-color);
}

a.modal-link {
  color: var(--white-color);
  text-decoration: none;
  font-weight: bold;
}

a.modal-link:visited {
  color: var(--white-color);
  text-decoration: none;
  font-weight: bold;
}

span.trade-mark {
  font-size: 1.8rem;
  color: #ccc;
}

/* --- Responsividade --- */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background-color: var(--secondary-dark-color);
    padding: 20px 0;
    text-align: center;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    margin: 15px 0;
  }

  .hamburger-menu {
    display: block;
  }

  .hamburger-menu .bar {
    width: 25px;
    height: 3px;
    background-color: var(--white-color);
    margin: 5px 0;
    transition: 0.4s;
  }

  .hamburger-menu.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }

  .hamburger-menu.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger-menu.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }

  .hero-content {
    padding: 0 20px;
  }

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

  .alternating-columns:nth-child(even) {
    direction: ltr;
  }

  .how-it-works-content {
    flex-direction: column;
  }

  .how-it-works-image {
    min-height: 300px;
    width: 100%;
  }

  .card-flipper {
    width: 60%;
  }

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

  .risk-columns .column {
    color: var(--dark-color); /* Reset color for readability on mobile */
    min-height: 250px; /* Adjust height for mobile */
    background-image: none; /* Remove background image on mobile */
    clip-path: none; /* Remove clip-path on mobile */
    padding: 40px 20px; /* Adjust padding for mobile */
  }

  .mobile-risk-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 15px;
  }

  .hero {
    background-color: var(--dark-color);
    height: 100vh;
  }

  .hero,
  .cta-section {
    background-image: none;
    background-attachment: scroll;
  }
}

.scroll-indicator {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 50px;
  height: 50px;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: bounce 2s infinite;
}

.arrow {
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 15px solid var(--white-color);
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* --- FAQ Section --- */
.faq-section {
  background-color: var(--white-color);
}

.accordion {
  max-width: 800px;
  margin: 0 auto;
}

.accordion-item {
  border-bottom: 1px solid #ddd;
  margin-bottom: 10px;
}

.accordion-question {
  padding: 15px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  transition: background-color 0.3s ease;
}

.accordion-question:hover {
  background-color: #f0f0f0;
}

.accordion-question::after {
  content: "+";
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.accordion-question.active {
  background-color: #f0f0f0;
}

.accordion-question.active::after {
  transform: rotate(45deg);
}

.accordion-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding: 0 15px;
}

.accordion-answer p {
  padding: 15px 0;
}

.accordion-answer.active {
  max-height: 300px; /* Adjust as needed */
  transition: max-height 0.5s ease-in;
}

/* --- Modal --- */
.modal {
  display: none;
  position: fixed;
  z-index: 1001;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 800px;
  position: relative;
}

.close-button {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close-button:hover,
.close-button:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

@media (min-width: 769px) {
  .risk-columns {
    display: flex;
    margin-top: 50px;
  }

  .risk-columns .column {
    position: relative;
    padding: 100px 40px;
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    flex: 1;
    transition: flex 0.3s ease-in-out;
    overflow: hidden;
    min-height: 400px; /* Added for better image filling */
  }

  .risk-columns .column:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
  }

  .risk-content {
    position: relative;
    z-index: 2;
  }

  .risk-one {
    background-image: url("../images/public-transport.png");
    clip-path: polygon(0 0, 100% 0, 90% 100%, 0% 100%);
  }

  .risk-two {
    background-image: url("../images/crowded-event.png");
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0% 100%);
  }

  .risk-three {
    background-image: url("../images/crowded-place.png");
    clip-path: polygon(10% 0, 100% 0, 100% 100%, 0% 100%);
  }

  .risk-columns .column:hover {
    flex: 1.5;
  }

  /* Hide mobile images on desktop */
  .mobile-risk-image {
    display: none;
  }
}
