/* index.css */
body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  background-color: #ffffff;
  color: #3C2F2F;
  overflow-x: hidden;
  position: relative;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  position: relative;
  z-index: 1;
}

.logo {
  display: block;
  margin: 0 auto 20px;
  width: 400px;
  animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {

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

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

.content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 300px;
  padding: 10px;
  opacity: 0;
  transform: translateY(50px);
  animation: fadeInUp 1s forwards;
  background-color: rgb(243, 242, 242);
  border-radius: 10px;
  padding-top: 50px;
  padding-bottom: 40px;
}

.whatis-section {
  background-color: white;
}

.advantages-section {
  margin-bottom: 80px;
  /* Base desktop */
  background-color: white;
}

.section:nth-child(2) {
  animation-delay: 0.2s;
}

.section:nth-child(3) {
  animation-delay: 0.4s;
}

.section:nth-child(4) {
  animation-delay: 0.6s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-divider {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(60, 47, 47, 0.5), transparent);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  margin: 15px 0;
}

.text-1,
.text-2,
.text-3,
.text-4 {
  flex: 1;
  font-size: 1.8em;
  line-height: 1.6;
  padding: 10px 15px;
  color: #282829;
  overflow: hidden;
}

.text-1 {
  text-align: left;
}

.text-2 {
  text-align: right;
}

.text-3 {
  text-align: left;
}

.text-4 {
  text-align: center;
}

.text span {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: letterPop 0.5s forwards;
}

.text span:nth-child(n) {
  animation-delay: calc(0.05s * var(--i));
}

@keyframes letterPop {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.image-placeholder,
.image-placeholder-hebrew,
.image-placeholder-computers {
  flex: 1;
  height: 300px;
  border-radius: 10px;
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.image-placeholder-computers {
  background: url('computers.png') no-repeat top center/cover;
  /* Desktop padrão */
}

.hebrew-writing {
  width: 100%;
  height: 100%;
  font-family: 'Noto Rashi Hebrew', serif;
  font-size: 5em;
  color: #110808;
  font-weight: 600;
  text-align: center;
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  border-radius: 10px;
  display: block;
  
}

.hebrew-writing::before {
  content: "מנא מנא תקל ופרסין";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  animation: writeHebrew 5s infinite ease-in-out;
}

@keyframes writeHebrew {
  0% {
    clip-path: inset(0 0 0 100%);
  }

  50% {
    clip-path: inset(0 0 0 0);
  }

  100% {
    clip-path: inset(0 0 0 0);
  }
}

.hebrew-citation {
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 0.16em;
  color: #110808;
  text-align: right;
}

.greek-writing {
  width: 100%;
  height: 100%;
  font-family: 'GFS Neohellenic', sans-serif;
  font-size: 3.5em;
  font-weight: bold;
  color: #110808;
  text-align: center;
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  display: block;
}

.greek-writing::before {
  content: "Ο Ιησούς λέει «Τελείωσε» και παραδίδει το πνεύμα του";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  animation: writeGreek 5s infinite ease-in-out;
}

@keyframes writeGreek {
  0% {
    clip-path: inset(0 100% 0 0);
  }

  50% {
    clip-path: inset(0 0 0 0);
  }

  100% {
    clip-path: inset(0 0 0 0);
  }
}

.greek-citation {
  position: absolute;
  bottom: 10px;
  left: 10px;
  font-size: 0.3em;
  color: #110808;
  text-align: left;
}

.install-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #251818;
  padding: 15px;
  text-align: center;
  z-index: 3;
}

#installButton {
  padding: 12px 30px;
  background-color: #ffe138;
  color: #000000;
  border: 3px solid #ffc400;
  border-radius: 8px;
  font-size: 1.3em;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s;
}

#installButton:hover {
  transform: scale(1.05);
  background-color: #f1f394;
}

#installButton:disabled {
  background-color: #999;
  color: #666;
  border-color: #666;
  cursor: not-allowed;
  box-shadow: none;
}

.sparkles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}

.sparkle {
  position: absolute;
  background-color: #800606;
  border-radius: 50%;
  opacity: 0.9;
  animation: fireBurst 5s infinite linear;
}

@keyframes fireBurst {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.9;
  }

  50% {
    transform: translate3d(var(--dx), var(--dy), var(--dz)) scale(0.8);
    opacity: 0.7;
  }

  100% {
    transform: translate3d(calc(var(--dx) * 2), calc(var(--dy) * 2), calc(var(--dz) * 2)) scale(0.4);
    opacity: 0;
  }
}

/* Controle de visibilidade */
.desktop-sections {
  display: block;
}

.mobile-sections {
  display: none;
}

/* Media Queries para Responsividade */
@media (max-width: 767px) {

  /* Celular (ajustado para não incluir iPad Mini) */
  .desktop-sections {
    display: none;
  }

  .mobile-sections {
    display: block;
  }

  .container {
    padding: 10px;
  }

  .logo {
    width: 200px;
    margin-bottom: 10px;
  }

  .section {
    flex-direction: column;
    min-height: 150px;
    padding-top: 25px;
    padding-bottom: 20px;
    justify-content: center;
  }

  .intro-text {
    background-color: rgb(243, 242, 242);
  }

  .intro-hebrew {
    background-color: #ffffff;
  }

  .whatis-text {
    background-color: rgb(243, 242, 242);
  }

  .whatis-greek {
    background-color: #ffffff;
  }

  .howworks-text {
    background-color: rgb(243, 242, 242);
  }

  .howworks-computers {
    background-color: #ffffff;
  }

  .advantages-text {
    background-color: rgb(243, 242, 242);
    margin-bottom: 70px;
    /* Proporção para celular */
  }

  .text-1,
  .text-2,
  .text-3,
  .text-4 {
    font-size: 1.2em;
    padding: 8px 10px;
    text-align: center;
    width: 100%;
  }

  .image-placeholder,
  .image-placeholder-hebrew,
  .image-placeholder-computers {
    height: 150px;
    margin: 10px 0;
  }

  .image-placeholder-computers {
    background: url('computers.png') no-repeat top center/contain;
    /* Corrige corte */
  }

  .hebrew-writing {
    font-size: 2.5em;
  }

  .greek-writing {
    font-size: 1.8em;
  }

  .hebrew-citation {
    font-size: 0.14em;
  }

  .greek-citation {
    font-size: 0.25em;
  }

  .install-bar {
    padding: 10px;
  }

  #installButton {
    font-size: 1em;
    padding: 8px 20px;
  }
}

/* iPad Mini (768x1024px) */
@media only screen and (min-width: 768px) and (max-width: 768px) and (min-height: 1024px) {
  .desktop-sections {
    display: block;
    /* Mantém layout desktop */
  }

  .mobile-sections {
    display: none;
  }

  .container {
    padding: 15px;
  }

  .logo {
    width: 300px;
  }

  .section {
    min-height: 250px;
    padding-top: 40px;
    /* Proporção ajustada */
    padding-bottom: 30px;
    /* Proporção ajustada */
  }

  .advantages-section {
    margin-bottom: 60px;
    /* Proporção para tablet */
  }

  .text-1,
  .text-2,
  .text-3,
  .text-4 {
    font-size: 1.5em;
  }

  .image-placeholder,
  .image-placeholder-hebrew,
  .image-placeholder-computers {
    height: 200px;
  }

  .image-placeholder-computers {
    background: url('computers.png') no-repeat center/cover;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {

  /* Outros tablets, incluindo iPad Air */
  .logo {
    width: 350px;
  }

  .section {
    min-height: 350px;
  }

  .advantages-section {
    margin-bottom: 60px;
  }

  /* Proporção para tablet */
  .text-1,
  .text-2,
  .text-3,
  .text-4 {
    font-size: 1.6em;
  }

  .image-placeholder,
  .image-placeholder-hebrew,
  .image-placeholder-computers {
    height: 250px;
  }
}

@media (min-width: 1025px) and (max-width: 1920px) {
  /* Desktop */
  /* Layout padrão já está no CSS base */
}

@media (min-width: 1921px) {

  /* TV */
  .container {
    max-width: 1600px;
    padding: 30px;
  }

  .logo {
    width: 500px;
  }

  .section {
    min-height: 500px;
  }

  .advantages-section {
    margin-bottom: 100px;
  }

  /* Proporção aumentada */
  .text-1,
  .text-2,
  .text-3,
  .text-4 {
    font-size: 2.2em;
    padding: 20px 30px;
  }

  .image-placeholder,
  .image-placeholder-hebrew,
  .image-placeholder-computers {
    height: 400px;
  }

  .hebrew-writing {
    font-size: 6em;
  }

  .greek-writing {
    font-size: 4em;
  }

  #installButton {
    font-size: 1.5em;
    padding: 15px 40px;
  }
}