/* Custom Styles for DentalX Marketing Website */

:root {
  --primary: #0d6efd;
  --secondary: #6c757d;
  --success: #198754;
  --info: #0dcaf0;
  --warning: #ffc107;
  --danger: #dc3545;
  --light: #f8f9fa;
  --dark: #212529;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: var(--dark);
}

/* Gradient Backgrounds */
.bg-gradient-primary {
  background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
}

/* Navbar Styles */
.navbar {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
}

.nav-link {
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: rgba(255, 255, 255, 0.8) !important;
}

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

.hero-title-animated {
  animation: fadeInDown 0.8s ease-out;
}

.text-gradient {
  background: linear-gradient(45deg, #fff, #ffd700, #fff, #87ceeb);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

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

.fade-in-up {
  animation: fadeInUp 1s ease-out 0.3s both;
}

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

.hero-image-wrapper img {
  transition: transform 0.3s ease;
}

.hero-image-wrapper:hover img {
  transform: scale(1.05);
}

/* Stats Section */
.stat-box {
  transition: transform 0.3s ease;
}

.stat-box:hover {
  transform: translateY(-5px);
}

.counter {
  font-size: 2.5rem;
  font-weight: 700;
}

/* Feature Cards */
.feature-card {
  transition: all 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

.feature-icon {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Pricing Cards */
.pricing-card {
  position: relative;
  transition: all 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2) !important;
}

.badge-wrapper {
  position: absolute;
  top: -10px;
  right: 20px;
}

.pricing-price {
  font-size: 2rem;
}

/* Contact Section */
.contact-info .icon-wrapper {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Forms */
.form-control,
.form-select {
  border-radius: 8px;
  border: 2px solid #e9ecef;
  padding: 12px;
  transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.1);
}

/* Buttons */
.btn {
  border-radius: 8px;
  padding: 10px 24px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1.1rem;
}

.btn-primary {
  background: var(--primary);
  border: none;
}

.btn-primary:hover {
  background: #0a58ca;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}

.btn-outline-primary:hover {
  transform: translateY(-2px);
}

/* Cards */
.card {
  border-radius: 12px;
  overflow: hidden;
}

/* Page Headers */
.page-header {
  position: relative;
}

/* Accordion */
.accordion-button {
  font-weight: 600;
  border-radius: 8px !important;
}

.accordion-button:not(.collapsed) {
  background-color: var(--primary);
  color: white;
}

/* Footer */
footer a:hover {
  color: white !important;
}

.social-links a {
  transition: all 0.3s ease;
  display: inline-block;
}

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

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
  .display-3 {
    font-size: 2.5rem;
  }

  .display-4 {
    font-size: 2rem;
  }

  .display-5 {
    font-size: 1.75rem;
  }

  .counter {
    font-size: 2rem;
  }
}

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

/* Loading Spinner */
.spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-left-color: var(--primary);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Utility Classes */
.text-white-50 {
  color: rgba(255, 255, 255, 0.5) !important;
}

.shadow-lg {
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

/* Success Icon Animation */
.success-icon {
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: scaleIn 0.5s ease-out;
}

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

/* Hero Carousel Enhancements */
#heroCarousel .carousel-item img {
  height: 500px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

#heroCarousel .carousel-item.active img {
  animation: zoomIn 4s ease-out forwards;
}

@keyframes zoomIn {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.1);
  }
}

#heroCarousel .carousel-caption {
  bottom: 2rem;
  animation: slideUp 0.6s ease-out;
}

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

#heroCarousel .carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 5px;
  background-color: rgba(255, 255, 255, 0.5);
  border: 2px solid #fff;
}

#heroCarousel .carousel-indicators button.active {
  background-color: #fff;
  transform: scale(1.2);
}

/* Pulse Animation for Badge */
.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.9;
  }
}

/* Carousel Fade Effect */
.carousel-fade .carousel-item {
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.carousel-fade .carousel-item.active {
  opacity: 1;
}

/* Hero Section Floating Animation */
.hero-image-wrapper {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Responsive adjustments for carousel */
@media (max-width: 768px) {
  #heroCarousel .carousel-item img {
    height: 300px;
  }

  #heroCarousel .carousel-caption {
    font-size: 0.8rem;
    padding: 0.5rem !important;
  }

  #heroCarousel .carousel-caption h5 {
    font-size: 1rem;
  }

  #heroCarousel .carousel-caption p {
    font-size: 0.75rem;
    margin-bottom: 0;
  }
}

/* ============================================
   PRICING PAGE STYLES
   ============================================ */

/* Deployment Mode Toggle */
.deployment-selection {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.deployment-toggle {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  overflow: hidden;
}

.deployment-toggle .btn {
  padding: 1rem 2rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.deployment-toggle .btn:hover {
  transform: translateY(-2px);
}

.deployment-toggle .btn-check:checked + .btn {
  background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.4);
}

/* Pricing Cards */
.pricing-card {
  transition: all 0.3s ease;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background: white;
}

.pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15) !important;
}

.pricing-card.border-primary {
  box-shadow: 0 10px 40px rgba(13, 110, 253, 0.25) !important;
  border: 3px solid #0d6efd !important;
}

.pricing-card.border-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #0d6efd, #0dcaf0);
}

.badge-wrapper {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 10;
}

.badge-wrapper .badge {
  padding: 0.6rem 1.2rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 25px;
  box-shadow: 0 4px 15px rgba(13, 110, 253, 0.4);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Pricing Display */
.pricing-price {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 1rem 1.25rem;
  border-radius: 12px;
  text-align: center;
  border: 2px solid #e9ecef;
}

.pricing-price .h2,
.pricing-price .h3 {
  color: #0d6efd;
  margin-bottom: 0;
  font-weight: 700;
}

.pricing-price .small {
  font-size: 0.85rem;
  line-height: 1.4;
}

/* Feature List Scrollable */
.features-list {
  scrollbar-width: thin;
  scrollbar-color: #0d6efd #f1f1f1;
  background: #f8f9fa;
  padding: 0.75rem;
  border-radius: 10px;
}

.features-list::-webkit-scrollbar {
  width: 8px;
}

.features-list::-webkit-scrollbar-track {
  background: #e9ecef;
  border-radius: 10px;
}

.features-list::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #0d6efd, #0dcaf0);
  border-radius: 10px;
}

.features-list::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #0a58ca, #0d6efd);
}

.features-list ul li {
  font-size: 0.9rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid #e9ecef;
}

.features-list ul li:last-child {
  border-bottom: none;
}

.features-list .badge {
  font-size: 0.65rem;
  padding: 0.25rem 0.5rem;
  font-weight: 600;
  border-radius: 20px;
  white-space: nowrap;
}

.features-list .badge.bg-info {
  background: linear-gradient(135deg, #17a2b8, #0dcaf0) !important;
}

.features-list .badge.bg-primary {
  background: linear-gradient(135deg, #0d6efd, #0dcaf0) !important;
}

.features-list .badge.bg-warning {
  background: linear-gradient(135deg, #ffc107, #fd7e14) !important;
}

.features-list .badge.bg-secondary {
  background: linear-gradient(135deg, #6c757d, #495057) !important;
}

/* Feature Icons */
.features-list i.bi {
  font-size: 1.1rem;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.features-list i.bi-check-circle-fill {
  color: #198754 !important;
}

.features-list i.bi-x-circle-fill {
  color: #dc3545 !important;
  opacity: 0.6;
}

/* Core Limits Section */
.features-list hr {
  border-top: 2px dashed #0d6efd;
  opacity: 0.3;
}

/* Checkout Button */
.pricing-card .btn {
  padding: 1rem 2rem;
  font-weight: 700;
  border-radius: 12px;
  transition: all 0.3s ease;
  font-size: 1rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.pricing-card .btn-primary {
  background: linear-gradient(135deg, #0d6efd, #0dcaf0);
  border: none;
  box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

.pricing-card .btn-primary:hover {
  background: linear-gradient(135deg, #0a58ca, #0d6efd);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4);
}

.pricing-card .btn-outline-primary {
  border: 2px solid #0d6efd;
  color: #0d6efd;
  font-weight: 700;
}

.pricing-card .btn-outline-primary:hover {
  background: linear-gradient(135deg, #0d6efd, #0dcaf0);
  border-color: transparent;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4);
}

/* FAQ Section */
.faq-section .accordion-button {
  font-weight: 600;
  color: var(--dark);
}

.faq-section .accordion-button:not(.collapsed) {
  background-color: #e7f1ff;
  color: var(--primary);
}

.faq-section .accordion-body {
  color: var(--secondary);
}

/* Responsive Pricing */
@media (max-width: 768px) {
  .deployment-toggle .btn {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  .deployment-toggle .btn small {
    font-size: 0.7rem;
  }

  .pricing-card {
    margin-bottom: 1.5rem;
  }

  .features-list {
    max-height: 300px !important;
  }

  .pricing-price {
    padding: 1rem;
  }

  .pricing-price .h2,
  .pricing-price .h3 {
    font-size: 1.5rem;
  }
}

/* Floating Survey Button */
.floating-survey-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #0d6efd;
  color: white;
  border: none;
  box-shadow: 0 4px 20px rgba(13, 110, 253, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  animation: pulse-survey 2s infinite;
}

.floating-survey-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(13, 110, 253, 0.6);
}

.floating-survey-btn .btn-text {
  display: none;
  position: absolute;
  right: 70px;
  background: white;
  color: #0d6efd;
  padding: 10px 20px;
  border-radius: 25px;
  white-space: nowrap;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.floating-survey-btn:hover .btn-text {
  display: block;
}

@keyframes pulse-survey {
  0% {
    box-shadow: 0 4px 20px rgba(13, 110, 253, 0.4);
  }
  50% {
    box-shadow: 0 4px 30px rgba(13, 110, 253, 0.7);
  }
  100% {
    box-shadow: 0 4px 20px rgba(13, 110, 253, 0.4);
  }
}

@media (max-width: 768px) {
  .floating-survey-btn {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
    font-size: 1.2rem;
  }

  .floating-survey-btn .btn-text {
    display: none !important;
  }
}

/* Survey CTA Card Hover Effect */
.survey-cta-card {
  transition: transform 0.3s ease;
}

.survey-cta-card:hover {
  transform: translateY(-5px);
}
