/* Animations for Panams Real Estate Website */

/* Animated CTA Buttons */
.btn-animated {
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
  animation: bounce 1s ease infinite alternate;
}

@keyframes bounce {
  0% { transform: translateY(0); }
  100% { transform: translateY(-5px); }
}

.btn-glow {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  background: linear-gradient(90deg, 
    rgba(255,255,255,0) 0%, 
    rgba(255,255,255,0.2) 50%, 
    rgba(255,255,255,0) 100%);
  transform: skewX(-20deg);
  animation: glowAnimation 2s infinite;
  pointer-events: none;
}

@keyframes glowAnimation {
  0% { left: -30%; }
  100% { left: 130%; }
}

/* Form Success Animation */
.success-message {
  text-align: center;
  padding: 2rem 1rem;
  animation: fadeInUp 0.5s ease forwards;
}

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

.success-icon {
  font-size: 4rem;
  color: #4CAF50;
  margin-bottom: 1rem;
  animation: scaleIn 0.5s ease forwards;
}

@keyframes scaleIn {
  from { transform: scale(0); }
  to { transform: scale(1); }
}

.email-animation {
  margin: 2rem auto;
  position: relative;
  width: 80%;
  height: 3px;
  background-color: #e0e0e0;
}

.email-animation i {
  position: absolute;
  left: 0;
  top: -10px;
  color: var(--primary);
  animation: sendEmail 2.5s ease infinite;
}

@keyframes sendEmail {
  0% { left: 0; transform: scale(1); }
  50% { left: 100%; transform: scale(1); }
  55% { transform: scale(0); }
  56% { left: 0; transform: scale(0); }
  60% { transform: scale(1); }
  100% { left: 0; transform: scale(1); }
}

.email-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: var(--secondary);
  animation: growLine 2.5s ease infinite;
}

@keyframes growLine {
  0% { width: 0; }
  50% { width: 100%; }
  100% { width: 0; }
}

/* Animated Hero Background */
.hero-section {
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0,71,143,0.2) 0%, rgba(10,110,189,0.1) 100%);
  z-index: 1;
  animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% { opacity: 0.2; }
  100% { opacity: 0.6; }
}

.floating-element {
  position: absolute;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: float 30s linear infinite;
}

@keyframes float {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
  100% { transform: translateY(0) rotate(360deg); }
}

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

.hero-light-beam {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.03) 20%,
    rgba(255,255,255,0.08) 50%,
    rgba(255,255,255,0.03) 80%,
    rgba(255,255,255,0) 100%
  );
  z-index: 1;
  pointer-events: none;
  animation: lightBeam 12s ease-in-out infinite;
  transform: skewX(-20deg);
}

@keyframes lightBeam {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Pulsing Logo Dot */
.logo-dot.pulse {
  position: relative;
  color: var(--secondary);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.2); }
  100% { opacity: 1; transform: scale(1); }
}

/* Scroll to top button */
.scroll-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--primary);
  color: white;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.scroll-top-btn.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  background-color: var(--primary-light);
  transform: translateY(-5px);
}

/* Modern Testimonial Design */
.testimonial-modern {
  background: white;
  border-radius: 15px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  overflow: visible;
  position: relative;
  margin-top: 40px;
  padding: 2rem;
}

.testimonial-brand {
  position: absolute;
  top: -30px;
  left: 30px;
  width: 60px;
  height: 60px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-brand img {
  max-width: 70%;
  max-height: 70%;
  object-fit: contain;
}

.testimonial-modern .testimonial-text {
  position: relative;
  padding-left: 2rem;
}

.testimonial-modern .testimonial-text::before {
  content: '"';
  position: absolute;
  top: 0;
  left: 0;
  font-size: 4rem;
  line-height: 1;
  color: var(--secondary);
  opacity: 0.2;
  font-family: 'Georgia', serif;
}

.testimonial-modern .testimonial-stars {
  margin-bottom: 1rem;
  color: var(--secondary);
}

.testimonial-modern blockquote {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  position: relative;
}

.testimonial-modern .author-info {
  display: flex;
  align-items: center;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 1rem;
}

.testimonial-modern .author-image {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 1rem;
}

.testimonial-modern .author-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-modern .author-name {
  font-weight: bold;
  color: var(--primary);
  margin-bottom: 0.2rem;
}

.testimonial-modern .author-title {
  font-size: 0.9rem;
  color: var(--gray);
}