/* 
 * Homepage Call to Action Section - Othala Solutions
 * Premium, modern styling for the homepage CTA
 */

/* Main CTA section */
.cta-section-homepage {
  position: relative;
  background: linear-gradient(135deg, #e6f7ff, #b3e0ff);
  padding: 8rem 0;
  overflow: hidden;
  color: var(--color-primary-dark);
  z-index: 1;
}

/* Background elements */
.cta-section-homepage::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('/images/shapes/circuit-pattern.svg');
  background-size: 1000px;
  opacity: 0.05;
  z-index: -1;
  animation: slowMove 40s linear infinite alternate;
}

/* Decorative elements */
.cta-decoration {
  position: absolute;
  z-index: 0;
  pointer-events: none;
}

.cta-decoration-circle {
  width: 300px;
  height: 300px;
  border: 1px solid rgba(0, 71, 171, 0.1);
  border-radius: 50%;
  top: -50px;
  left: -100px;
  animation: rotate 60s linear infinite;
}

.cta-decoration-dots {
  width: 200px;
  height: 200px;
  background-image: radial-gradient(circle, rgba(0, 71, 171, 0.2) 1px, transparent 1px);
  background-size: 15px 15px;
  bottom: -50px;
  right: -50px;
  opacity: 0.3;
}

.cta-decoration-shape {
  width: 150px;
  height: 150px;
  background-color: rgba(0, 71, 171, 0.05);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  top: 20%;
  right: 5%;
  animation: floatShape 10s ease-in-out infinite alternate;
}

/* Wrapper for content */
.cta-wrapper-premium {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  margin: 0 auto;
}

/* CTA header */
.cta-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 71, 171, 0.1);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-full);
  padding: 0.5rem 1rem;
  margin-bottom: 1rem;
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
  box-shadow: 0 4px 10px rgba(0, 71, 171, 0.1), inset 0 1px 1px rgba(255, 255, 255, 0.6);
}

.cta-badge i {
  margin-right: 0.5rem;
  color: var(--color-primary);
}

/* Title and subtitle */
.cta-title {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  line-height: 1.2;
  max-width: 800px;
  color: #42a5f5; /* Light blue color */
}

.cta-title .highlight {
  position: relative;
  display: inline-block;
}

.cta-title .highlight::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 3px;
  background-color: #42a5f5; /* Light blue color to match the text */
  border-radius: var(--radius-full);
  box-shadow: 0 0 10px rgba(66, 165, 245, 0.5);
}

.cta-subtitle {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-light);
  max-width: 700px;
  margin: 0 auto 3rem;
  line-height: 1.6;
  opacity: 0.9;
}

/* CTA buttons */
.cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 4rem;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  border-radius: var(--radius-lg);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-base);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cta-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.7s;
  z-index: 1;
}

.cta-btn:hover::before {
  left: 100%;
}

.cta-btn span, .cta-btn i {
  position: relative;
  z-index: 2;
}

.cta-btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 8px 20px rgba(0, 71, 171, 0.25);
}

.cta-btn-primary:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 71, 171, 0.35);
}

.cta-btn-secondary {
  background-color: transparent;
  color: var(--color-primary-dark);
  border: 2px solid var(--color-primary);
  box-shadow: 0 5px 15px rgba(0, 71, 171, 0.1);
}

.cta-btn-secondary:hover {
  background-color: rgba(0, 71, 171, 0.05);
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 71, 171, 0.15);
  border-color: var(--color-primary-dark);
}

/* Clients section */
.clients-section-premium {
  position: relative;
  padding-top: 3rem;
  border-top: 1px solid rgba(0, 71, 171, 0.15);
}

.clients-title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-medium);
  margin-bottom: 2rem;
  color: var(--color-primary-dark);
}

.client-logos-container {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.client-logo-wrapper {
  background-color: rgba(255, 255, 255, 0.6);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
  box-shadow: 0 4px 15px rgba(0, 71, 171, 0.1);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 71, 171, 0.1);
  position: relative;
}

.client-logo-wrapper:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 71, 171, 0.15);
  background-color: rgba(255, 255, 255, 0.9);
}

.client-logo-premium {
  height: 40px;
  width: auto;
  filter: grayscale(80%);
  opacity: 0.8;
  transition: all 0.3s ease;
}

.client-logo-wrapper:hover .client-logo-premium {
  opacity: 1;
  filter: grayscale(0%);
}

/* Tooltip styling */
.client-logo-tooltip {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-primary-dark);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: var(--font-size-xs);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  pointer-events: none;
}

.client-logo-tooltip::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  margin-left: -5px;
  border-width: 0 5px 5px;
  border-style: solid;
  border-color: transparent transparent var(--color-primary-dark);
}

.client-logo-wrapper:hover .client-logo-tooltip {
  opacity: 1;
  visibility: visible;
  bottom: -35px;
}

/* Stat counters */
.cta-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin: 0 auto 3rem;
  max-width: 800px;
}

.cta-stat {
  text-align: center;
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

.cta-stat:nth-child(1) {
  animation-delay: 0.2s;
}

.cta-stat:nth-child(2) {
  animation-delay: 0.4s;
}

.cta-stat:nth-child(3) {
  animation-delay: 0.6s;
}

.cta-stat-number {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: 0.5rem;
  background: linear-gradient(90deg, var(--color-primary-dark), var(--color-primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  display: inline-block;
}

.cta-stat-number::after {
  content: '+';
  position: absolute;
  right: -15px;
  top: 0;
  background: linear-gradient(90deg, var(--color-primary-dark), var(--color-primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cta-stat-label {
  font-size: var(--font-size-sm);
  opacity: 0.8;
}

/* Animations */
@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes floatShape {
  0%, 100% { 
    transform: translate(0, 0) rotate(0deg); 
  }
  50% { 
    transform: translate(20px, -20px) rotate(5deg); 
  }
}

@keyframes slowMove {
  0% { background-position: 0 0; }
  100% { background-position: 1000px 1000px; }
}

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

/* Responsive styles */
@media (max-width: 992px) {
  .cta-section-homepage {
    padding: 6rem 0;
  }
  
  .cta-title {
    font-size: var(--font-size-3xl);
  }
  
  .cta-subtitle {
    font-size: var(--font-size-lg);
  }
  
  .cta-stats {
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .cta-buttons {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
  
  .cta-btn {
    width: 100%;
    justify-content: center;
  }
  
  .client-logos-container {
    gap: 1.5rem;
  }
  
  .cta-stats {
    flex-direction: column;
    gap: 2rem;
  }
}
