/* Custom CSS for CRODoctor Landing Page */

/* Loader Styles */
.loader {
  border: 3px solid rgba(30, 58, 138, 0.1);
  border-top: 3px solid #1E3A8A;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Navbar Styles */
.navbar-scroll {
  transition: all 0.3s ease;
}

.navbar-scroll.scrolled {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
}

/* Mobile Menu Animation */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
}

.mobile-menu.active {
  transform: translateX(0);
}

/* Hamburger Menu Animation */
.hamburger-line {
  transition: all 0.3s ease;
}

.hamburger.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero Section Animations */
.hero-pattern {
  background-image:
    radial-gradient(circle at 20% 80%, rgba(30, 58, 138, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(245, 158, 11, 0.03) 0%, transparent 50%);
}

/* Feature Icons */
.feature-icon {
  background: linear-gradient(135deg, #1E3A8A 0%, #3B82F6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Pricing Card Popular Badge */
.popular-badge {
  position: absolute;
  top: -12px;
  right: 24px;
  background: linear-gradient(135deg, #F59E0B 0%, #FCD34D 100%);
  color: white;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 6px rgba(245, 158, 11, 0.3);
}

/* Testimonial Cards */
.testimonial-card {
  background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
  border: 1px solid rgba(30, 58, 138, 0.1);
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Stats Counter */
.stat-number {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* Integration Logos Ticker */
.logos-ticker {
  display: flex;
  animation: scroll 30s linear infinite;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Form Styles */
.form-input {
  transition: all 0.2s ease;
}

.form-input:focus {
  border-color: #1E3A8A;
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

/* Success/Error Messages */
.alert-success {
  background-color: #10B981;
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  animation: slideDown 0.3s ease;
}

.alert-error {
  background-color: #EF4444;
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  animation: slideDown 0.3s ease;
}

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

/* Accordion Styles */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-content.active {
  max-height: 500px;
}

/* Tab Styles */
.tab-button {
  position: relative;
  transition: all 0.3s ease;
}

.tab-button.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #1E3A8A 0%, #3B82F6 100%);
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    width: 0;
    left: 50%;
  }
  to {
    width: 100%;
    left: 0;
  }
}

/* Modal Styles */
.modal-backdrop {
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.modal-content {
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Tooltip Styles */
.tooltip {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  background: #111827;
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 14px;
  white-space: nowrap;
  z-index: 1000;
  transition: all 0.2s ease;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
}

.tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #111827 transparent transparent transparent;
}

.tooltip-trigger:hover .tooltip {
  visibility: visible;
  opacity: 1;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #1E3A8A 0%, #3B82F6 100%);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #1E3A8A 0%, #60A5FA 100%);
}

/* Parallax Effect */
.parallax {
  transition: transform 0.5s ease-out;
}

/* Glow Effects */
.glow-primary {
  box-shadow: 0 0 30px rgba(30, 58, 138, 0.3);
}

.glow-secondary {
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.3);
}

.glow-accent {
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.3);
}