/* Landing Page Specific Styles */

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

/* Hero Section Enhancements */
.section-hero {
  min-height: auto;
  padding: 120px 0 60px;
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.hero-content {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
}

.hero-messenger {
  flex: 1;
  min-width: 300px;
  max-width: 400px;
  margin: 0 auto;
}

.hero-logo {
  width: 150px;
  height: 150px;
  margin-bottom: 20px;
  transform: scale(0);
  animation: pop 0.8s ease-out forwards;
}

.big-headline {
  font-size: 2.8rem;
  margin-bottom: 15px;
}

.sub-headline {
  font-size: 1.2rem;
  margin-bottom: 25px;
}

/* Start Buttons */
.start-buttons {
  display: flex;
  justify-content: flex-start;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.btn-telegram, .btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  font-weight: bold;
}

.btn-telegram {
  background: #0088cc;
}

.btn-telegram:hover {
  background: #0077b3;
}

.btn-whatsapp {
  background: #25D366;
}

.btn-whatsapp:hover {
  background: #20bd5a;
}

.btn-telegram i, .btn-whatsapp i {
  font-size: 1.3rem;
  margin-right: 10px;
}

/* Navigation */
.topnav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 245, 236, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 15px 0;
  z-index: 1000;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 30px;
}

.nav-links a {
  font-weight: 500;
  color: #333;
  text-decoration: none;
  transition: color 0.3s;
  font-size: 1rem;
}

.nav-links a:hover {
  color: #FF6D00;
}

/* Features Section */
.section-features {
  background: #FFF5EC;
  padding: 100px 0;
}

.features-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 50px;
}

.feature-card {
  background: white;
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(255, 109, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex: 1;
  min-width: 220px;
  max-width: 280px;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(255, 109, 0, 0.12);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

/* Personalization Section */
.section-personalization {
  background: #FFF1E0;
  padding: 100px 0;
}

.personalization-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 50px;
}

.personalization-card {
  background: white;
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(255, 109, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex: 1;
  min-width: 220px;
  max-width: 280px;
}

.personalization-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(255, 109, 0, 0.12);
}

.personalization-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #FF6D00;
}

.personalization-card h3 {
  margin-bottom: 15px;
  color: #333;
}

.personalization-card p {
  color: #555;
  line-height: 1.5;
}

/* How It Works Section */
.section-how {
  background: #FFF5EC;
  padding: 100px 0;
}

.how-steps-full {
  max-width: 800px;
  margin: 40px auto 0;
}

.how-steps-full .how-step {
  display: flex;
  align-items: flex-start;
  margin-bottom: 40px;
  background: white;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(255, 109, 0, 0.08);
}

.how-steps-full .step-number {
  width: 50px;
  height: 50px;
  background: #FF6D00;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  font-weight: bold;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.how-steps-full .step-content {
  flex: 1;
}

.how-steps-full h3 {
  margin-top: 0;
  margin-bottom: 10px;
  color: #333;
}

.how-steps-full p {
  margin: 0;
  color: #555;
  line-height: 1.5;
}

/* Messenger Demo */
.messenger-demo {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  background: white;
  border: 1px solid #e1e1e1;
  flex-shrink: 0;
}

.messenger-header {
  background: #075E54;
  color: white;
  padding: 12px;
  display: flex;
  align-items: center;
}

.messenger-contact {
  display: flex;
  align-items: center;
}

.contact-avatar {
  width: 35px;
  height: 35px;
  background: #128C7E;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  font-size: 1rem;
}

.contact-name {
  font-weight: bold;
  font-size: 1rem;
}

.contact-status {
  font-size: 0.75rem;
  opacity: 0.8;
}

.messenger-body {
  height: 350px;
  padding: 12px;
  background: #E5DDD5;
  overflow-y: auto;
  position: relative;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.messenger-body::-webkit-scrollbar {
  width: 6px;
}

.messenger-body::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 10px;
}

.messenger-body::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}

.chat-conversation {
  display: none;
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.chat-conversation.active {
  display: block;
}

.message-date {
  text-align: center;
  margin: 8px 0;
  font-size: 0.75rem;
  color: #555;
  background: rgba(225, 245, 254, 0.5);
  padding: 4px 8px;
  border-radius: 10px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.message {
  max-width: 80%;
  margin-bottom: 12px;
  position: relative;
  display: none; /* Initially hidden, will be shown by JS */
}

.message-sent {
  margin-left: auto;
  background: #DCF8C6;
  border-radius: 12px 0 12px 12px;
  padding: 8px 12px;
}

.message-received {
  margin-right: auto;
  background: white;
  border-radius: 0 12px 12px 12px;
  padding: 8px 12px;
}

.message-content {
  margin-bottom: 4px;
  line-height: 1.3;
  font-size: 0.9rem;
}

.message-time {
  text-align: right;
  font-size: 0.65rem;
  color: #777;
}

.reminder-box {
  display: flex;
  align-items: center;
  background: #FFF1E0;
  border-left: 3px solid #FF6D00;
  padding: 8px;
  border-radius: 4px;
}

.reminder-icon {
  font-size: 1.2rem;
  margin-right: 8px;
}

.reminder-text {
  font-weight: bold;
  color: #FF6D00;
  font-size: 0.85rem;
}

.messenger-input {
  display: flex;
  padding: 8px;
  background: #F0F0F0;
  border-top: 1px solid #e1e1e1;
}

.messenger-input input {
  flex: 1;
  padding: 8px 12px;
  border: none;
  border-radius: 20px;
  margin-right: 8px;
  background: white;
  font-size: 0.9rem;
}

.send-button {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: #128C7E;
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.9rem;
}

/* Typing indicator */
.typing-indicator {
  display: none;
  margin-right: auto;
  background: white;
  border-radius: 20px;
  padding: 12px 16px;
  margin-bottom: 12px;
}

.typing-indicator span {
  height: 8px;
  width: 8px;
  float: left;
  margin: 0 1px;
  background-color: #9E9EA1;
  display: block;
  border-radius: 50%;
  opacity: 0.4;
}

.typing-indicator span:nth-of-type(1) {
  animation: typing 1s infinite;
}

.typing-indicator span:nth-of-type(2) {
  animation: typing 1s infinite 0.2s;
}

.typing-indicator span:nth-of-type(3) {
  animation: typing 1s infinite 0.4s;
}

@keyframes typing {
  0% { transform: translateY(0px); }
  33% { transform: translateY(-5px); }
  66% { transform: translateY(0px); }
}

/* Pricing Info Box */
.pricing-info-box {
  background: #FFF1E0;
  border-left: 5px solid #FF6D00;
  padding: 20px;
  border-radius: 10px;
  margin: 30px auto;
  max-width: 800px;
  display: flex;
  align-items: center;
  text-align: left;
  box-shadow: 0 5px 15px rgba(255, 109, 0, 0.1);
}

.pricing-info-box i {
  font-size: 2rem;
  color: #FF6D00;
  margin-right: 20px;
  flex-shrink: 0;
}

.pricing-info-box p {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.5;
}

/* Pricing Table Enhancements */
.pricing-table {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: nowrap;
}

.plan {
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex: 1;
  min-width: 0; /* Allow plans to shrink below min-width */
  max-width: 300px;
  padding-bottom: 30px; /* Add extra padding at bottom since buttons are removed */
}

.plan:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(255, 109, 0, 0.12);
}

.popular-badge {
  position: absolute;
  top: -12px;
  right: -12px;
  background: #FF6D00;
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
}

.plan ul li {
  position: relative;
  padding-left: 5px;
  margin-bottom: 10px;
}

.btn-large {
  padding: 16px 32px;
  font-size: 1.2rem;
}

/* Apple-like Scroll Effects */
.parallax-section {
  position: relative;
  overflow: hidden;
}

.parallax-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  transform: translateZ(0);
}

/* Sticky Navigation */
.topnav.sticky {
  background: rgba(255, 245, 236, 0.98);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Message Animation */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
  .pricing-table {
    flex-wrap: wrap;
  }
  
  .plan {
    min-width: 280px;
    margin-bottom: 20px;
  }
  
  .features-row, .personalization-grid {
    justify-content: center;
  }
  
  .feature-card, .personalization-card {
    min-width: 200px;
    max-width: 45%;
  }
}

@media (max-width: 900px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-content, .hero-messenger {
    max-width: 100%;
  }
  
  .hero-messenger {
    margin-top: 40px;
    max-width: 400px;
  }
  
  .start-buttons {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .topnav {
    display: none; /* Hide navigation on mobile */
  }
  
  .section-hero {
    padding: 40px 20px;
  }
  
  .section {
    padding: 60px 20px;
  }
  
  .big-headline {
    font-size: 2rem;
  }
  
  .sub-headline {
    font-size: 1rem;
  }
  
  .features-grid, .testimonials {
    grid-template-columns: 1fr;
  }
  
  .features-row, .personalization-grid {
    flex-direction: column;
    align-items: center;
  }
  
  .feature-card, .personalization-card {
    max-width: 100%;
  }
  
  .messenger-demo {
    width: 100%;
  }
  
  .messenger-body {
    height: 300px;
  }
  
  .start-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn-telegram, .btn-whatsapp {
    width: 100%;
  }
  
  .pricing-info-box {
    flex-direction: column;
    text-align: center;
  }
  
  .pricing-info-box i {
    margin-right: 0;
    margin-bottom: 15px;
  }
  
  .how-steps-full .how-step {
    flex-direction: column;
    text-align: center;
  }
  
  .how-steps-full .step-number {
    margin: 0 auto 15px;
  }
}

@media (max-width: 480px) {
  .section-hero {
    padding: 30px 15px;
  }
  
  .hero-logo {
    width: 120px;
    height: 120px;
  }
  
  .big-headline {
    font-size: 1.8rem;
  }
  
  .messenger-body {
    height: 280px;
  }
}

/* Animation Keyframes */
@keyframes pop {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes fadeUp {
  0% { transform: translateY(30px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* Additional Scroll Effects */
.scroll-reveal {
  opacity: 0;
  transition: all 0.8s ease;
}

.scroll-reveal.visible {
  opacity: 1;
}

.fade-up {
  transform: translateY(30px);
  transition: transform 0.8s ease, opacity 0.8s ease;
}

.fade-up.visible {
  transform: translateY(0);
}

.scale-in {
  transform: scale(0.8);
  transition: transform 0.8s ease, opacity 0.8s ease;
}

.scale-in.visible {
  transform: scale(1);
}

/* SEO Optimizations */
.seo-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Accessibility Improvements */
.btn:focus, a:focus {
  outline: 2px solid #FF6D00;
  outline-offset: 2px;
}