/* Base Styles */
html, body {
  height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  background: #f5f5f5;
  color: #333;
  font-size: 16px;
}

img {
  max-width: 100%;
  height: auto;
}

.continue {
    width: 10rem;
    height: 4rem;
    border-radius: 20px;
    font-size: 16pt;
    margin-top: 3rem;
    border: none;
    /* display: none; */
}

/* Hero Section */
.hero-section {
  height: 100%;
  background: linear-gradient(180deg, rgba(101, 0, 132, 1) 0%, rgba(66, 0, 87, 1) 50%, rgba(0, 0, 0, 1) 100%);
  color: #fff;
  width: 100%;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: transparent;
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

.navbar nav {
  display: flex;
}

.navbar nav a {
  color: #fff;
  margin-left: 1.5rem;
  text-decoration: none;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
  transition: color 0.3s ease;
  font-size: 1.1rem;
}

.navbar nav a:hover {
  color: #ffd700;
}

/* Common Section Styles */
.hero, .intro, .security-and-privacy, .how-it-works, .features, 
.features-testimonials {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  padding: 4rem 2rem;
  /* flex-wrap: wrap; */
  /* width: 100%; */
  /* box-sizing: border-box; */
}

.hero > aside, .intro > aside, 
.security-and-privacy > aside, 
.how-it-works > aside, 
.features > aside {
  text-align: center;
  /* max-width: 600px; */
}

.hero aside h1, .intro aside h1, 
.security-and-privacy aside h1, 
.how-it-works aside h1, 
.features aside h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  margin: 0 0 1.5rem 0;
}

.hero aside p, .intro aside p, 
.security-and-privacy aside p, 
.how-it-works aside p, 
.features aside p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* Features Section */
.features h2 {
  font-size: 1.8rem;
  margin: 0 0 1rem 0;
  color: #650088;
}

.features {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.features-testimonials {
  padding-bottom: 6rem;
}

.features-testimonials .download-buttons {
  margin: 3rem auto;
  display: flex;
  justify-content: center;
  width: 100%;
}

/* Download Buttons */
.download-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
  justify-content: center;
}

.download-buttons a {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: transform 0.3s ease;
}

.download-buttons a:hover {
  transform: translateY(-3px);
}

.download-buttons a img {
  width: 180px;
  height: auto;
}

/* Intro Section */
.intro, .how-it-works, .privacy-section {
  background-image: url('./images/Fondo-chat-privochat.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #fff;
}

.intro aside {
  padding: 3rem;
  border-radius: 15px;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
}

.intro aside p {
  color: #e0e0e0;
}

.phone-image img {
  width: 350px;
  max-width: 90vw;
  z-index: 2;
  transition: transform 0.5s ease;
}

.phone-image img:hover {
  transform: scale(1.05);
}

/* Feature Text */
.features-content {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 3rem;
  margin: 3rem 0;
}

.feature-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 250px;
  padding: 1.5rem;
  line-height: 1.6;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}

.feature-text:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
}

.feature-text.left {
  text-align: right;
}

.feature-text.right {
  text-align: left;
}

.feature-text h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  color: #fff;
}

.feature-text p {
  font-size: 1rem;
  color: #d0d0d0;
  margin: 0;
}

/* Security and Privacy */
.security-and-privacy, .features-testimonials {
  background: #e6e2ed;
}

.download {
  background-color: #570080;
  cursor: pointer;
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: none;
}

.download:hover {
  background-color: #450066;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(87, 0, 128, 0.3);
}

.private-room {
  background-color: #161616;
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: none;
}

.private-room:hover {
  background-color: #000;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* How It Works */
.how-it-works .info-box {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2rem;
  background: rgba(0, 0, 0, 0.5);
  padding: 1.5rem;
  border-radius: 12px;
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}

.how-it-works .info-box:hover {
  background: rgba(0, 0, 0, 0.6);
  transform: translateX(5px);
}

.info-icon {
  width: 50px;
  height: 50px;
  margin-top: 0.3rem;
  flex-shrink: 0;
}

.info-text h4 {
  margin: 0 0 0.8rem 0;
  font-size: 1.4rem;
  color: #fff;
}

.info-text ul {
  margin: 0;
  padding-left: 1.5rem;
  color: #d0d0d0;
}

.info-text li {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Testimonials */
.pre-testimonials {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 4rem 0;
  width: 100%;
}

.pre-testimonials h2 {
  font-size: 3rem;
  margin: 0;
  color: #333;
}

.pre-testimonials h2 strong {
  color: #570080;
}

.pre-testimonials p {
  margin-top: 1rem;
  font-size: 1.2rem;
  color: #666;
  max-width: 700px;
}

.testimonials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 2rem;
}

.testimonial-box {
  max-width: 450px;
  background: white;
  padding: 2.5rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  flex: 1 1 350px;
}

.testimonial-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.stars {
  font-size: 1.5rem;
  color: #570080;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 1.1rem;
  color: #333;
  margin: 0 0 1.5rem 0;
  line-height: 1.7;
}

.stars .half {
  position: relative;
  display: inline-block;
  color: #ccc;
}

.stars .half::before {
  content: "★";
  position: absolute;
  left: 0;
  width: 50%;
  overflow: hidden;
  color: #570080;
}

.testimonial-user {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.testimonial-user img {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #570080;
}

.user-info .name {
  font-weight: bold;
  font-size: 1.2rem;
  color: #333;
}

.user-info .title {
  font-size: 1rem;
  color: #666;
}

.world-image {
  display: block;
  width: 100%;
  max-width: 1200px;
  margin: 5rem auto;
  transition: all 0.5s ease;
}

.world-image:hover {
  transform: scale(1.02);
}

/* Privacy Section */
.privacy-section {
  padding: 8rem 8rem;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
}

.privacy-section > * {
  position: relative;
  z-index: 2;
}

.privacy-section h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  max-width: 1000px;
}

.privacy-section p {
  font-size: 1.3rem;
  color: #e0e0e0;
  max-width: 800px;
}

.privacy-section h2 {
  font-size: 2rem;
  color: #fff;
}

/* Footer */
.footer {
  background: linear-gradient(to bottom, #000, #570080);
  color: #fff;
  padding: 5rem 2rem 3rem;
  font-family: Arial, sans-serif;
  position: relative;
  width: 100%;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.logo-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 2rem;
}

.logo-section img {
  width: 180px;
}

.footer a {
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer a:hover {
  color: #b28dff;
  text-decoration: underline;
}

hr {
  border: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
  margin: 2.5rem auto;
  max-width: 800px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  font-size: 1rem;
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.social-icons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin: 1.5rem 0;
}

.social-icons a {
  color: #fff;
  font-size: 1.5rem;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
  text-decoration: none;
}

.back-to-top {
  display: inline-block;
  background: #7c2aa8;
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  margin-top: 2rem;
  transition: all 0.3s ease;
  font-size: 1.1rem;
}

.back-to-top:hover {
  background: #5d1d7f;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(124, 42, 168, 0.3);
}

.footer p, .footer-bottom span {
  color: #b3b3b3;
  margin: 1rem 0;
  font-size: 1.1rem;
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .hero aside h1, .intro aside h1, 
  .security-and-privacy aside h1, 
  .how-it-works aside h1 {
    font-size: 3rem;
  }
  
  .testimonial-box {
    max-width: 400px;
  }
}

@media (max-width: 992px) {
  .hero, .intro, .security-and-privacy, 
  .how-it-works, .features {
    padding: 4rem 1.5rem;
  }
  
  .feature-text {
    max-width: 200px;
  }
}

@media (max-width: 768px) {
  /* Navbar */
  .menu-toggle {
    display: block;
  }
  
  .navbar nav {
    display: none;
    width: 100%;
    flex-direction: column;
    padding: 1rem 0;
    background: rgba(0, 0, 0, 0.8);
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 100;
  }
  
  .navbar nav.active {
    display: flex;
  }
  
  .navbar nav a {
    margin: 0;
    padding: 1rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  /* Hero Section */
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 3rem 1rem;
  }
  
  .hero aside h1 {
    font-size: 2.5rem;
  }
  
  .hero aside p {
    font-size: 1.1rem;
  }
  
  .download-buttons {
    justify-content: center;
  }
  
  /* Intro Section */
  .intro aside {
    padding: 2rem;
  }
  
  .features-content {
    flex-direction: column;
  }
  
  .feature-text.left, 
  .feature-text.right {
    text-align: center;
    max-width: 100%;
    margin: 1rem 0;
  }
  
  /* Security and Privacy */
  .security-and-privacy {
    flex-direction: column;
  }
  
  /* How It Works */
  .how-it-works {
    flex-direction: column;
  }
  
  .how-it-works aside {
    order: -1;
    padding: 1rem;
  }
  
  /* Testimonials */
  .pre-testimonials h2 {
    font-size: 2.2rem;
  }
  
  .testimonial-box {
    max-width: 100%;
  }
  
  /* Privacy Section */
  .privacy-section {
    padding: 5rem 1rem;
  }
  
  .privacy-section h1 {
    font-size: 2.5rem;
  }
  
  /* Footer */
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .social-icons {
    margin-top: 1.5rem;
  }
  
  .back-to-top {
    position: static;
    margin-top: 2rem;
  }
}

@media (max-width: 576px) {
  .hero aside h1 {
    font-size: 2rem;
  }
  
  .download-buttons button img {
    width: 140px;
  }

  .private-room {
    margin-left: 0;
  }
  
  .privacy-section h1 {
    font-size: 2rem;
  }
  
  .footer {
    padding: 3rem 1rem;
  }
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero, .intro, .security-and-privacy, 
.how-it-works, .features-testimonials, 
.privacy-section, .footer {
  animation: fadeIn 0.8s ease-out forwards;
}