/* ============================================
   Dr. Ashutosh Tripathi Clinic — Custom Styles
   ============================================ */

/* Smooth Scrolling & Overflow */
html, body {
  scroll-behavior: smooth;
  overflow-x: hidden !important;
  max-width: 100vw;
  width: 100%;
}

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

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #14B8A6, #0D9488);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #0D9488, #0F766E);
}

/* Custom Selection */
::selection {
  background: rgba(20, 184, 166, 0.3);
  color: #0F172A;
}

/* ============================================
   KEYFRAME ANIMATIONS
   ============================================ */

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

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

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes floatSlow {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(2deg); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.5); }
  50% { box-shadow: 0 0 0 18px rgba(20, 184, 166, 0); }
}

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

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

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

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

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

/* ============================================
   ANIMATION CLASSES
   ============================================ */

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fade-in-down {
  animation: fadeInDown 0.8s ease-out forwards;
}

.animate-fade-in-left {
  animation: fadeInLeft 0.8s ease-out forwards;
}

.animate-fade-in-right {
  animation: fadeInRight 0.8s ease-out forwards;
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-float-slow {
  animation: floatSlow 4s ease-in-out infinite;
}

.animate-pulse-glow {
  animation: pulseGlow 2s ease-in-out infinite;
}

.animate-scale-in {
  animation: scaleIn 0.6s ease-out forwards;
}

/* Animation Delays */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }
.delay-700 { animation-delay: 0.7s; }
.delay-800 { animation-delay: 0.8s; }

/* ============================================
   SCROLL REVEAL
   ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale.active {
  opacity: 1;
  transform: scale(1);
}

/* ============================================
   GLASSMORPHISM
   ============================================ */

.glass {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.glass-white {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.glass-dark {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ============================================
   GRADIENTS
   ============================================ */

.gradient-hero {
  background: linear-gradient(135deg, #0F172A 0%, #1e293b 40%, #0F172A 100%);
  position: relative;
  overflow: hidden;
}

.gradient-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.gradient-hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.gradient-accent {
  background: linear-gradient(135deg, #14B8A6 0%, #0D9488 100%);
}

.gradient-accent-reverse {
  background: linear-gradient(135deg, #0D9488 0%, #14B8A6 100%);
}

.gradient-cta {
  background: linear-gradient(135deg, #14B8A6 0%, #0ea5e9 100%);
}

.gradient-dark {
  background: linear-gradient(180deg, #0F172A 0%, #1e293b 100%);
}

.gradient-text {
  background: linear-gradient(135deg, #14B8A6, #5EEAD4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-animated {
  background: linear-gradient(270deg, #14B8A6, #0ea5e9, #14B8A6);
  background-size: 400% 400%;
  animation: gradientShift 8s ease infinite;
}

/* ============================================
   NAVBAR
   ============================================ */

.navbar {
  transition: background-color 0.3s ease,
              backdrop-filter 0.3s ease,
              box-shadow 0.3s ease;
}

.navbar.scrolled {
  background: rgba(15, 23, 42, 0.95) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #14B8A6, #5EEAD4);
  border-radius: 1px;
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: #14B8A6;
}

/* Mobile Nav */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ============================================
   CARDS
   ============================================ */

.card-hover {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s ease;
}

.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(20, 184, 166, 0.12);
}

.treatment-card {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s ease,
              border-color 0.3s ease;
}

.treatment-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 60px rgba(20, 184, 166, 0.15);
  border-color: #14B8A6;
}

.treatment-card:hover .treatment-icon {
  transform: scale(1.1) rotate(5deg);
  background: linear-gradient(135deg, #14B8A6, #0D9488);
  color: white;
}

.treatment-icon {
  transition: transform 0.4s ease, background 0.4s ease, color 0.4s ease;
}

.stat-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(20, 184, 166, 0.1);
}

/* ============================================
   COUNTER ANIMATION
   ============================================ */

.counter-value {
  font-variant-numeric: tabular-nums;
}

/* ============================================
   TESTIMONIAL SLIDER
   ============================================ */

.testimonial-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.testimonial-card {
  min-width: 100%;
  padding: 0 8px;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .testimonial-card {
    min-width: 50%;
  }
}

@media (min-width: 1024px) {
  .testimonial-card {
    min-width: 33.333%;
  }
}

.testimonial-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
  transition: background 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}

.testimonial-dot.active {
  background: #14B8A6;
  transform: scale(1.3);
}

/* ============================================
   FAQ ACCORDION
   ============================================ */

.faq-item {
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.faq-item:hover {
  border-color: #14B8A6;
}

.faq-item.open {
  border-color: #14B8A6;
  box-shadow: 0 8px 30px rgba(20, 184, 166, 0.08);
}

.faq-question {
  cursor: pointer;
  transition: color 0.3s ease;
}

.faq-question:hover {
  color: #14B8A6;
}

.faq-icon {
  transition: transform 0.3s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.open .faq-answer {
  max-height: 500px;
}

/* ============================================
   FLOATING MOBILE BUTTONS
   ============================================ */

.floating-buttons {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  padding: 12px 16px;
  gap: 10px;
  background: rgba(15, 23, 42, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(20, 184, 166, 0.25);
  animation: slideUp 0.5s ease-out 1s forwards;
  opacity: 0;
}

@media (min-width: 768px) {
  .floating-buttons {
    display: none;
  }
}

/* Desktop WhatsApp Float */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 45;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25D366;
  color: white;
  font-size: 28px;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: pulseGlow 2s ease-in-out infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

@media (max-width: 767px) {
  .whatsapp-float {
    display: none;
  }
}

/* ============================================
   FORM STYLES
   ============================================ */

.form-input {
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
  border-color: #14B8A6;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
  outline: none;
}

.form-label {
  transition: color 0.3s ease;
}

/* Loading Spinner */
.spinner {
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

/* Success/Error Messages */
.form-message {
  animation: fadeInUp 0.4s ease-out;
}

/* ============================================
   HERO FLOATING CARDS
   ============================================ */

.hero-float-card {
  animation: float 3s ease-in-out infinite;
}

.hero-float-card:nth-child(2) {
  animation-delay: 0.6s;
}

.hero-float-card:nth-child(3) {
  animation-delay: 1.2s;
}

/* Hero decorative circles */
.hero-circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.06;
  background: #14B8A6;
  pointer-events: none;
}

/* ============================================
   SHIMMER / SKELETON LOADING
   ============================================ */

.shimmer {
  background: linear-gradient(90deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.1) 50%,
    rgba(255,255,255,0) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* ============================================
   SECTION DIVIDERS
   ============================================ */

.section-divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #14B8A6, #5EEAD4);
  border-radius: 2px;
  margin: 0 auto;
}

.section-divider-left {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #14B8A6, #5EEAD4);
  border-radius: 2px;
}

/* ============================================
   PAGE LOAD ANIMATION
   ============================================ */

body {
  opacity: 0;
  animation: fadeIn 0.4s ease-out 0.1s forwards;
}

/* ============================================
   BLOG CARD
   ============================================ */

.blog-card {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s ease;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.blog-card:hover .blog-image {
  transform: scale(1.05);
}

.blog-image {
  transition: transform 0.6s ease;
}

/* ============================================
   MISC UTILITIES
   ============================================ */

/* Padding for fixed mobile buttons */
@media (max-width: 767px) {
  .mobile-bottom-padding {
    padding-bottom: 90px !important;
  }
}

/* Image hover zoom */
.img-zoom {
  overflow: hidden;
}

.img-zoom img {
  transition: transform 0.6s ease;
}

.img-zoom:hover img {
  transform: scale(1.08);
}

/* Button press effect */
.btn-press:active {
  transform: scale(0.97);
}

/* Text gradient */
.text-gradient {
  background: linear-gradient(135deg, #14B8A6, #5EEAD4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Decorative dots pattern */
.dots-pattern {
  background-image: radial-gradient(circle, rgba(20, 184, 166, 0.15) 1px, transparent 1px);
  background-size: 20px 20px;
}


