/* 
ProntoApp Landing Page Styles
*/

:root {
  /* Brand Colors */
  --primary-color: #09a6e4;
  --primary-light: #deebf3;
  --primary-accent: #81d0e2;
  --dark-color: #070708;
  --dark-gray: #65676b;
  --medium-gray: #b1c3cd;
  --gray-text: #727473;
  --light-gray: #9ea1a9;
  --lighter-gray: #bcc3cf;
  --border-gray: #aaacab;
  
  /* Bootstrap Overrides */
  --secondary-color: #6c757d;
  --accent-color: #09a6e4;
  --light-color: #f8f9fa;
  --success-color: #28a745;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --info-color: #17a2b8;
  --font-primary: 'Poppins', sans-serif;
}

/* Base Styles */
body {
  font-family: var(--font-primary);
  padding-top: 70px;
  overflow-x: hidden;
  background-color: #ffffff;
  color: var(--dark-color);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
}

/* Navigation */
.navbar {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
  background-color: var(--dark-color) !important;
}

.navbar-brand {
  font-weight: 700;
  display: flex;
  align-items: center;
}

.brand-text {
  font-size: 1.5rem;
  color: var(--primary-color) !important;
}

.navbar-nav .nav-link {
  font-weight: 500;
  margin: 0 0.5rem;
  transition: color 0.3s ease;
  color: var(--lighter-gray) !important;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary-color) !important;
}

.language-switcher button {
  border-radius: 20px;
  font-weight: 600;
  border: 1px solid var(--primary-color) !important;
  color: var(--primary-color) !important;
}

.language-switcher button:hover {
  background-color: var(--primary-color) !important;
  color: white !important;
}

/* Hero Section */
.hero-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, rgba(9, 166, 228, 0.1) 0%, rgba(129, 208, 226, 0.1) 100%);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(222, 235, 243, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
  transform: rotate(30deg);
}

.hero-title {
  color: var(--dark-color);
  animation: fadeInUp 1s ease;
}

.hero-subtitle {
  color: var(--dark-gray);
  animation: fadeInUp 1s ease 0.2s both;
}

.hero-description {
  color: var(--gray-text);
  animation: fadeInUp 1s ease 0.4s both;
}

.hero-cta {
  animation: fadeInUp 1s ease 0.6s both;
  font-weight: 600;
  border-radius: 30px;
  background-color: var(--primary-color) !important;
  border: none;
  box-shadow: 0 4px 15px rgba(9, 166, 228, 0.3);
  transition: all 0.3s ease;
}

.hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(9, 166, 228, 0.4);
  background-color: var(--primary-accent) !important;
}

/* Sections */
section {
  padding: 5rem 0;
}

section h2.display-5 {
  color: var(--dark-color);
}

section .lead {
  color: var(--dark-gray);
}

/* Cards */
.feature-card, .testimonial-card, .pricing-card {
  border-radius: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-gray);
  opacity: 0;
  transform: translateY(20px);
  background-color: #ffffff;
}

.feature-card, .testimonial-card {
  will-change: transform, opacity;
}

/* Ensure elements remain visible after animation */
.animate__animated {
  opacity: 1 !important;
}

.feature-card:hover, .testimonial-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(9, 166, 228, 0.15);
}

.card-title {
  color: var(--dark-color);
}

.card-text {
  color: var(--gray-text);
}

/* Animation classes */
.animate__animated {
  animation-duration: 1s;
  animation-fill-mode: both;
  will-change: transform, opacity;
}

.animate__fadeInUp {
  animation-name: fadeInUp;
  opacity: 1;
}

/* Additional scroll animations */
.animate__fadeInLeft {
  animation-name: fadeInLeft;
}

.animate__fadeInRight {
  animation-name: fadeInRight;
}

.animate__zoomIn {
  animation-name: zoomIn;
}

/* Keyframes for animations */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translate3d(-100%, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translate3d(100%, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale3d(0.3, 0.3, 0.3);
  }
  50% {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 50px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* Active navigation link */
.navbar-nav .nav-link.active {
  color: var(--primary-color) !important;
  position: relative;
}

.navbar-nav .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 3px;
}

.icon-wrapper {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background-color: var(--primary-light) !important;
  color: var(--primary-color) !important;
}

/* Features */
.feature-item {
  padding: 1.5rem;
  border-radius: 10px;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translate3d(0, 0, 0); /* Fix for animation */
}

.feature-item:hover {
  background-color: rgba(9, 166, 228, 0.05);
  transform: translateX(5px);
}

.feature-item h5 {
  color: var(--dark-color);
}

.feature-item p {
  color: var(--gray-text);
}

/* Benefits */
.benefit-item {
  padding: 1.5rem;
  border-radius: 10px;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px) translate3d(0, 0, 0); /* Fix for animation */
}

.benefit-item:hover {
  background-color: rgba(9, 166, 228, 0.05);
}

.benefit-item h4 {
  color: var(--dark-color);
}

.benefit-item p {
  color: var(--gray-text);
}

/* Acquisition Card */
.pricing-card {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border-gray);
}

.pricing-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-accent));
}

.card-title {
  color: var(--dark-color);
}

.text-muted {
  color: var(--medium-gray) !important;
}

/* Contact Form */
#contactForm .form-control {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border-gray);
  transition: all 0.3s ease;
  background-color: var(--primary-light);
}

#contactForm .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(9, 166, 228, 0.25);
}

.form-label {
  color: var(--dark-color);
  font-weight: 500;
}

/* Footer */
footer {
  background: linear-gradient(135deg, var(--dark-color) 0%, #1a1e23 100%);
}

footer a {
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--primary-color) !important;
}

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

.social-links a:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

footer h5 {
  color: var(--primary-accent);
}

footer p, footer li {
  color: var(--medium-gray);
}



/* Responsive Adjustments */
@media (max-width: 991.98px) {
  .navbar-nav {
    padding: 1rem 0;
  }
  
  .navbar-nav .nav-item {
    margin: 0.5rem 0;
  }
  
  .hero-section {
    padding: 3rem 0;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .feature-item, .benefit-item {
    padding: 1rem;
  }
}

@media (max-width: 767.98px) {
  body {
    padding-top: 60px;
  }
  
  .hero-section {
    text-align: center;
  }
  
  .hero-section .img-fluid {
    margin-top: 2rem;
  }
  
  .feature-card, .testimonial-card {
    margin-bottom: 1.5rem;
  }
  
  section {
    padding: 3rem 0;
  }
}

/* Language Switcher */
#lang-toggle, #lang-toggle-footer {
  cursor: pointer;
  transition: all 0.3s ease;
}

#lang-toggle:hover, #lang-toggle-footer:hover {
  background-color: rgba(255, 255, 255, 0.2) !important;
}

.bg-light {
  background-color: var(--primary-light) !important;
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

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

/* Scroll margin for anchor links */
section[id] {
  scroll-margin-top: 80px;
}