/* Modern Style for VetPro - Creative and Contemporary Design */

/* CSS Variables */
:root {
  --primary-color: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --secondary-color: #10b981;
  --accent-color: #f59e0b;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --text-light: #9ca3af;
  --bg-primary: #ffffff;
  --bg-secondary: #f9fafb;
  --bg-dark: #111827;
  --border-color: #e5e7eb;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  --gradient-secondary: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --gradient-accent: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  --border-radius: 12px;
  --border-radius-lg: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Vazirmatn', 'Tahoma', 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
  font-display: swap;
}

/* Font loading states */
html.fonts-loaded body {
  font-family: 'Vazirmatn', 'Tahoma', 'Arial', sans-serif;
}

html.fonts-failed body {
  font-family: 'Tahoma', 'Arial', sans-serif;
}

/* Force font application for all text elements */
* {
  font-family: inherit;
}

/* Force font application for all text elements */
html,
body,
div,
span,
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
button,
input,
textarea,
select,
label,
li,
ul,
ol {
  font-family: 'Vazirmatn', 'Tahoma', 'Arial', sans-serif !important;
}

/* Bootstrap override for font */
.navbar,
.navbar-brand,
.nav-link,
.btn,
.form-control,
.form-select {
  font-family: 'Vazirmatn', 'Tahoma', 'Arial', sans-serif !important;
}

/* Specific font weights for different elements */
.font-light {
  font-weight: 300;
}
.font-normal {
  font-weight: 400;
}
.font-medium {
  font-weight: 500;
}
.font-semibold {
  font-weight: 600;
}
.font-bold {
  font-weight: 700;
}
.font-extrabold {
  font-weight: 800;
}
.font-black {
  font-weight: 900;
}
/* Ensure text is always visible even if fonts fail to load */
* {
  font-display: swap;
}

/* Fallback for when Google Fonts fail to load */
@supports not (font-display: swap) {
  body {
    font-family: 'Tahoma', 'Arial', sans-serif !important;
  }
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
}

.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.5s;
}

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

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: white;
}

.btn-outline-primary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

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

.btn-lg {
  padding: 16px 32px;
  font-size: 1.125rem;
}

/* Navigation */
.navbar {
  background: transparent;
  border-bottom: none;
  padding: 1rem 0;
  transition: var(--transition);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.navbar-brand {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  box-shadow: var(--shadow-md);
}

.brand-text {
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
}

.navbar-nav .nav-link {
  color: white;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
  position: relative;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: var(--transition);
  transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
  width: 80%;
}

/* Navbar toggler styling */
.navbar-toggler {
  border: none;
  padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Active navigation link styling */
.navbar-nav .nav-link.active {
  color: #ffd700 !important;
  font-weight: 600;
}

.navbar-nav .nav-link:hover {
  color: #ffd700 !important;
}

/* Hero Section */
.hero-section {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-section-parent {
  min-height: 100vh;
  background: linear-gradient(190deg, #667eea 0%, transparent);
  padding-top: 80px; /* Account for fixed navbar */
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.floating-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
}

.shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  animation: float 6s ease-in-out infinite;
}

.shape-1 {
  width: 80px;
  height: 80px;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.shape-2 {
  width: 120px;
  height: 120px;
  top: 60%;
  right: 15%;
  animation-delay: 2s;
}

.shape-3 {
  width: 60px;
  height: 60px;
  bottom: 20%;
  left: 20%;
  animation-delay: 4s;
}

.shape-4 {
  width: 100px;
  height: 100px;
  top: 30%;
  right: 30%;
  animation-delay: 1s;
}

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

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

.badge-container {
  display: inline-block;
}

.badge {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.gradient-text {
  color: white;
  font-weight: 800;
}

.special-text {
  background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.hero-subtitle {
  font-size: 2rem;
  font-weight: 600;
  opacity: 0.9;
}

.hero-description {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  max-width: 600px;
  text-align: justify;
  direction: rtl;
  color: white;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 900;
  color: #ffd700;
  display: block;
}

.stat-label {
  font-size: 0.875rem;
  opacity: 0.8;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.app-mockup {
  position: relative;
  width: 300px;
  height: 500px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  animation: float-phone 4s ease-in-out infinite;
}

#hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: float-phone 4s ease-in-out infinite;
}

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

.mockup-screen {
  width: 100%;
  height: 100%;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.screen-content {
  background: white;
  border-radius: 16px;
  height: 100%;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.app-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 20px;
  font-weight: 700;
  color: var(--primary-color);
}

.app-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 8px;
  background: var(--bg-secondary);
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.feature-item i {
  color: var(--primary-color);
  width: 20px;
}

/* Section Styles */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 1rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-description {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* About Section */
.about-section {
  padding: 6rem 0;
  background: var(--bg-secondary);
  opacity: 1 !important;
  visibility: visible !important;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid var(--border-color);
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
  font-size: 2rem;
  box-shadow: var(--shadow-md);
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Services Section */
.services-section {
  padding: 6rem 0;
  background: white;
  opacity: 1 !important;
  visibility: visible !important;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  justify-content: space-between;
}

.service-card {
  background: white;
  padding: 2.5rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid var(--border-color);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: var(--transition);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
  font-size: 2rem;
  box-shadow: var(--shadow-md);
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.service-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Apps Section */
.apps-section {
  padding: 6rem 0;
  background: var(--bg-secondary);
  opacity: 1 !important;
  visibility: visible !important;
}

.app-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 6rem;
}

/* Reverse only on desktop (large screens) */
@media (min-width: 992px) {
  .app-showcase.reverse {
    direction: rtl;
  }

  .app-showcase.reverse .app-content {
    direction: ltr;
  }
}

/* Ensure no reverse on mobile */
@media (max-width: 991.98px) {
  .app-showcase.reverse {
    direction: ltr;
  }

  .app-showcase.reverse .app-content {
    direction: ltr;
  }
}

.app-badge {
  display: inline-block;
  background: var(--gradient-primary);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
  align-items: center;
  display: inline-flex;
}

.app-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.app-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.app-features {
  margin-bottom: 2rem;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.feature-item i {
  color: var(--secondary-color);
  font-size: 1.125rem;
}

.app-benefits {
  background: white;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.app-benefits h4 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.app-benefits ul {
  list-style: none;
  padding: 0;
}

.app-benefits li {
  padding: 0.5rem 0;
  color: var(--text-secondary);
  position: relative;
  padding-right: 1.5rem;
}

.app-benefits li::before {
  content: '✓';
  position: absolute;
  right: 0;
  color: var(--secondary-color);
  font-weight: bold;
}

/* App Visual */
.app-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.app-mockup-large {
  width: 320px;
  height: 670px;
  backdrop-filter: blur(10px);
  border-radius: 48px;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  animation: float-phone-large 6s ease-in-out infinite;
}

@keyframes float-phone-large {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-15px) rotate(3deg);
  }
}

.mockup-screen-large {
  width: 100%;
  height: 100%;
  padding: 15px;
  display: flex;
  flex-direction: column;
}

.screen-content-large {
  background: transparent;
  border-radius: 16px;
  height: 100%;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.app-header-large {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 25px;
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1.125rem;
}

.app-body-large {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature-item-large {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 15px;
  background: var(--bg-secondary);
  border-radius: 10px;
  font-size: 1rem;
  color: var(--text-secondary);
}

.feature-item-large i {
  color: var(--primary-color);
  width: 24px;
  font-size: 1.25rem;
}

.doctor-app .feature-item-large i {
  color: var(--secondary-color);
}

/* Statistics Section */
.stats-section {
  padding: 4rem 0;
  background: var(--gradient-primary);
  color: white;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.stat-card {
  text-align: center;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.stat-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
  color: #ffd700;
}

.stat-label {
  font-size: 1rem;
  opacity: 0.9;
}

/* Contact Section */
.contact-section {
  padding: 6rem 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  opacity: 1 !important;
  visibility: visible !important;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.contact-card {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.contact-card:hover::before {
  transform: scaleX(1);
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.contact-card-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  margin: 0 auto 1.5rem;
  transition: var(--transition);
}

.contact-card:hover .contact-card-icon {
  transform: scale(1.1);
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

.contact-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.contact-card-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  padding: 0.5rem;
  border-radius: var(--border-radius);
}

.contact-link:hover {
  color: var(--primary-dark);
  background: rgba(99, 102, 241, 0.1);
  transform: translateX(5px);
}

.contact-card-content p {
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

.contact-cta {
  margin-top: 4rem;
  background: white;
  padding: 3rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.cta-content h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.cta-content p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-buttons .btn {
  min-width: 200px;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-control,
.form-select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: var(--transition);
  background: white;
}

.form-control:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* Footer */
.footer {
  background: var(--bg-dark);
  color: white;
  padding: 4rem 0 2rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: start;
  text-align: center;
  gap: 1.5rem;
}

.brand-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-description {
  color: #9ca3af;
  line-height: 1.6;
  max-width: 400px;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--primary-color);
  transform: translateY(-2px);
}

.footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid #374151;
}

.footer-enamad {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-copyright {
  color: #9ca3af;
  text-align: center;
}

.footer-legal a {
  color: #9ca3af;
  text-decoration: none;
  transition: var(--transition);
}

.footer-legal a:hover {
  color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
  .navbar-nav .nav-link {
    color: #000000;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    position: relative;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.5rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-stats {
    justify-content: center;
  }

  .app-showcase {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .contact-card {
    padding: 1.5rem;
  }

  .contact-cta {
    padding: 2rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-buttons .btn {
    min-width: 250px;
  }

  .footer-content {
    flex-direction: column;
    gap: 2rem;
  }

  .footer-brand {
    gap: 1rem;
    align-items: center;
  }

  .brand-description {
    max-width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .app-mockup,
  .app-mockup-large {
    width: 280px;
    height: 560px;
    border-radius: 32px;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 2rem;
  }

  .features-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }

  .app-mockup-large {
    width: 240px;
    height: 480px;
    border-radius: 32px;
  }
}

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

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

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

/* Scroll animations */
.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.fade-in-left {
  animation: fadeInLeft 0.6s ease-out;
}

.fade-in-right {
  animation: fadeInRight 0.6s ease-out;
}

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

/* Loading animation */
.loading {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}

.loading.loaded {
  opacity: 1;
  transform: translateY(0);
}

/* Ensure elements are visible by default */
.feature-card,
.service-card,
.stat-card,
.contact-item {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.6s ease-out;
}

/* Only apply loading state if explicitly added */
.feature-card.loading,
.service-card.loading,
.stat-card.loading,
.contact-item.loading {
  opacity: 0;
  transform: translateY(20px);
}

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

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* Bootstrap Overrides */
.btn-primary {
  background: var(--gradient-primary) !important;
  border: none !important;
  color: white !important;
}

.btn-outline-primary {
  background: transparent !important;
  color: var(--primary-color) !important;
  border: 2px solid var(--primary-color) !important;
}

.btn-outline-primary:hover {
  background: var(--primary-color) !important;
  color: white !important;
}

.bg-primary {
  background: var(--gradient-primary) !important;
}

.text-primary {
  color: var(--primary-color) !important;
}

.badge.bg-primary {
  background: var(--gradient-primary) !important;
}

.bg-gradient-primary {
  background: var(--gradient-primary) !important;
}

.bg-gradient-secondary {
  background: var(--gradient-secondary) !important;
}

.bg-gradient-accent {
  background: var(--gradient-accent) !important;
}

/* Fix for navbar collapse */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    margin-top: 1rem;
    padding: 1rem;
    box-shadow: var(--shadow-lg);
  }
}

/* Fix for form controls */
.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25) !important;
}

/* Fix for navbar brand */
.navbar-brand {
  text-decoration: none !important;
}

/* Fix for container spacing */
.container {
  padding-left: 15px !important;
  padding-right: 15px !important;
}

/* Fix for row spacing */
.row {
  margin-left: -15px !important;
  margin-right: -15px !important;
}

/* Fix for column spacing */
.col,
.col-lg-6,
.col-lg-12 {
  padding-left: 15px !important;
  padding-right: 15px !important;
}

/* Veterinary Specialties Section */
.specialties-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  position: relative;
  overflow: hidden;
}

.specialties-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23e2e8f0" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
  z-index: 0;
}

.specialties-section .container-fluid {
  position: relative;
  z-index: 1;
}

.specialties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin: 60px 0 40px;
  padding: 20px 0;
}

.specialty-card {
  background: var(--bg-primary);
  border-radius: var(--border-radius-lg);
  padding: 24px 20px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  text-align: center;
}

.specialty-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.specialty-card:hover::before {
  transform: scaleX(1);
}

.specialty-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-light);
}

.specialty-icon {
  width: 56px;
  height: 56px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  position: relative;
  overflow: hidden;
}

.specialty-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 70%
  );
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.specialty-card:hover .specialty-icon::before {
  transform: translateX(100%);
}

.specialty-icon i {
  font-size: 24px;
  color: white;
  z-index: 1;
  position: relative;
}

.specialty-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.3;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .specialties-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
  }

  .specialty-card {
    padding: 20px 16px;
  }

  .specialty-icon {
    width: 48px;
    height: 48px;
  }

  .specialty-icon i {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .specialties-section {
    padding: 60px 0;
  }

  .specialties-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
  }

  .specialty-card {
    padding: 16px 12px;
  }

  .specialty-card h3 {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .specialties-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
  }

  .specialty-card {
    padding: 12px 8px;
  }

  .specialty-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 12px;
  }

  .specialty-icon i {
    font-size: 18px;
  }

  .specialty-card h3 {
    font-size: 0.8rem;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .specialty-card:hover {
    transform: none;
  }

  .specialty-card:active {
    transform: scale(0.98);
  }

  .scroll-btn:hover {
    transform: none;
  }

  .scroll-btn:active {
    transform: scale(0.95);
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .specialty-card {
    border: 2px solid var(--text-primary);
  }

  .specialty-card:hover {
    border-color: var(--primary-color);
  }

  .feature-tag {
    border: 1px solid var(--text-primary);
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .specialties-scroll {
    transition: none;
  }

  .specialty-card {
    transition: none;
  }

  .specialty-card:hover {
    transform: none;
  }

  .specialty-icon::before {
    display: none;
  }

  .specialties-scroll.auto-scroll {
    animation: none;
  }
}

/* Doctors Section Styles */
.doctors-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  position: relative;
  overflow: hidden;
}

.doctors-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="%23e2e8f0" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
  z-index: 0;
}

.doctors-section .container {
  position: relative;
  z-index: 1;
}

.doctors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.doctor-card {
  max-width: 350px;
  background: white;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  border: 1px solid var(--border-color);
}

.doctor-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.doctor-card:hover::before {
  transform: scaleX(1);
}

.doctor-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.doctor-image {
  position: relative;
  height: 250px;
  overflow: hidden;
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

.doctor-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.doctor-info {
  padding: 1.5rem;
}

.doctor-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.doctor-specialty {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.95rem;
}

.doctor-specialty i {
  font-size: 1rem;
  color: var(--primary-color);
}

.doctor-description {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.doctor-stats {
  display: flex;
  gap: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.doctor-stats .stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.doctor-stats .stat-number {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
}

.doctor-stats .stat-label {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 0.25rem;
}

/* Testimonials Section Styles */
.testimonials-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
  position: relative;
}

.testimonials-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%23e5e7eb"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
  opacity: 0.2;
  z-index: 0;
}

.testimonials-section .container {
  position: relative;
  z-index: 1;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.testimonial-card {
  background: white;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  border: 1px solid var(--border-color);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 4rem;
  color: var(--primary-light);
  opacity: 0.1;
  font-family: serif;
  line-height: 1;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.testimonial-content {
  margin-bottom: 1.5rem;
}

.testimonial-rating {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.testimonial-rating i {
  color: #fbbf24;
  font-size: 1rem;
}

.testimonial-text {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.95rem;
  font-style: italic;
  margin-bottom: 0;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.author-image {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  flex-shrink: 0;
}

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

.author-info {
  flex: 1;
}

.author-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.author-location {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 0;
}

/* Responsive Design for Doctors and Testimonials */
@media (max-width: 1200px) {
  .doctors-grid,
  .testimonials-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .doctors-section,
  .testimonials-section {
    padding: 60px 0;
  }

  .doctors-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .doctor-card,
  .testimonial-card {
    margin-bottom: 1rem;
  }

  .doctor-image {
    height: 200px;
  }

  .doctor-info {
    padding: 1.25rem;
  }

  .doctor-name {
    font-size: 1.25rem;
  }

  .testimonial-card {
    padding: 1.5rem;
  }

  .testimonial-text {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .doctors-grid,
  .testimonials-grid {
    gap: 1rem;
  }

  .doctor-card,
  .testimonial-card {
    border-radius: var(--border-radius);
  }

  .doctor-image {
    height: 180px;
  }

  .doctor-info {
    padding: 1rem;
  }

  .doctor-name {
    font-size: 1.1rem;
  }

  .doctor-stats {
    gap: 1rem;
  }

  .testimonial-card {
    padding: 1.25rem;
  }

  .testimonial-card::before {
    font-size: 3rem;
    top: 0.75rem;
    right: 1.25rem;
  }

  .author-image {
    width: 40px;
    height: 40px;
  }

  .author-name {
    font-size: 0.9rem;
  }

  .author-location {
    font-size: 0.8rem;
  }
}

/* Hover effects for touch devices */
@media (hover: none) and (pointer: coarse) {
  .doctor-card:hover,
  .testimonial-card:hover {
    transform: none;
  }

  .doctor-card:active,
  .testimonial-card:active {
    transform: scale(0.98);
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .doctor-card,
  .testimonial-card {
    border: 2px solid var(--text-primary);
  }

  .doctor-card:hover,
  .testimonial-card:hover {
    border-color: var(--primary-color);
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .doctor-card,
  .testimonial-card,
  .doctor-image img {
    transition: none;
  }

  .doctor-card:hover,
  .testimonial-card:hover {
    transform: none;
  }
}
