/* ========== ENHANCED EURO HOME CARE CSS ========== */

/* CSS Custom Properties */
:root {
  --primary-color: #ec1d25;
  --secondary-color: #b71c1c;
  --accent-color: #ec1d25;
  --gradient-primary: linear-gradient(135deg, #ec1d25 0%, #b71c1c 100%);
  --gradient-secondary: linear-gradient(135deg, #ec1d25 0%, #ff5252 100%);
  --gradient-accent: linear-gradient(135deg, #ec1d25 0%, #ff5252 100%);
  --light-blue: #fff5f5;
  --dark-blue: #b71c1c;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --white: #ffffff;
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --shadow-light: 0 4px 20px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.15);
  --shadow-heavy: 0 20px 60px rgba(0, 0, 0, 0.2);
  --border-radius: 20px;
  --transition-fast: 0.2s ease;
  --transition-medium: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== RESET & BASE STYLES ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: "Cairo", sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
  min-height: 100vh;
}

/* ========== PRELOADER ========== */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #ec1d25 0%, #b71c1c 100%);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-content {
  text-align: center;
  color: white;
  position: relative;
  z-index: 2;
}

.preloader-icons {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin: 0 auto 30px;
}

.preloader-icons i {
  color: #fff;
  filter: drop-shadow(0 0 10px #fff8) drop-shadow(0 0 20px #1e40af88);
  animation: pulse 2s ease-in-out infinite;
}

.loading-text {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
  animation: fadeInUp 1s ease 0.6s both;
}

.loading-progress {
  width: 200px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  margin: 0 auto;
  overflow: hidden;
  animation: fadeInUp 1s ease 0.8s both;
}

.progress-bar {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #fff, #a855f7, #fff);
  border-radius: 2px;
  animation: loadingProgress 2s ease-in-out infinite;
}

.preloader-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.3;
}

/* ========== SCROLL PROGRESS ========== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.1);
}

.progress-track {
  height: 100%;
  background: var(--gradient-primary);
  width: 0%;
  transition: width 0.1s ease;
}

/* ========== BACK TO TOP ========== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  transition: all var(--transition-medium);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  box-shadow: var(--shadow-medium);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-heavy);
}

/* ========== NAVIGATION ========== */
.navbar {
  padding: 15px 0;
  transition: all var(--transition-medium);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar.scrolled {
  padding: 10px 0;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-light);
}

#mainNavbar.scrolled {
  background: #fff !important;
  transition: background 0.3s;
}

.navbar-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-medium);
  z-index: -1;
}

.navbar.scrolled .navbar-bg {
  opacity: 0.02;
}

.navbar-brand {
  position: relative;
  z-index: 2;
}

.logo-img {
  height: 60px;
  transition: all var(--transition-medium);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.navbar.scrolled .logo-img {
  height: 50px;
}

.logo-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
  opacity: 0;
  border-radius: 50%;
  transition: opacity var(--transition-medium);
  animation: glow 3s ease-in-out infinite;
}

.navbar-brand:hover .logo-glow {
  opacity: 0.1;
}

.navbar-toggler {
  border: none;
  padding: 8px;
  position: relative;
  width: 40px;
  height: 40px;
}

.burger-line {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--text-dark);
  margin: 5px 0;
  transition: all var(--transition-fast);
  border-radius: 1px;
}

.navbar-toggler[aria-expanded="true"] .burger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.navbar-toggler[aria-expanded="true"] .burger-line:nth-child(2) {
  opacity: 0;
}

.navbar-toggler[aria-expanded="true"] .burger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.navbar-nav .nav-link {
  font-weight: 600;
  color: var(--text-dark) !important;
  margin: 0 15px;
  position: relative;
  padding: 10px 0 !important;
  transition: color 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

/* Remove the sliding ::before effect */
.navbar-nav .nav-link::before {
  display: none;
}

.navbar-nav .nav-link:hover {
  color: var(--primary-color) !important;
  text-shadow: 0 0 8px var(--primary-color), 0 0 16px var(--primary-color);
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 50%;
  width: 0;
  height: 3px;
  background: var(--gradient-primary);
  transition: width 0.18s cubic-bezier(0.4, 0, 0.2, 1),
    right 0.18s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
  box-shadow: none;
}

.navbar-nav .nav-link:hover::after {
  width: 100%;
  right: 0;
  box-shadow: 0 0 8px 2px var(--primary-color),
    0 0 16px 4px var(--primary-color);
}

.navbar-nav .nav-link:hover {
  color: var(--primary-color) !important;
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 50%;
  width: 0;
  height: 3px;
  background: var(--gradient-primary);
  transition: width 0.18s cubic-bezier(0.4, 0, 0.2, 1),
    right 0.18s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
  box-shadow: none;
}

.navbar-nav .nav-link:hover::after {
  width: 100%;
  right: 0;
  box-shadow: 0 0 8px 2px var(--primary-color),
    0 0 16px 4px var(--primary-color);
}

/* ========== HERO SECTION ========== */
.hero-section {
  min-height: 100vh;
  background: var(--gradient-primary);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

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

.hero-bg-animation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" stop-color="rgba(255,255,255,0.1)"/><stop offset="100%" stop-color="transparent"/></radialGradient></defs><circle cx="200" cy="200" r="100" fill="url(%23a)" opacity="0.5"><animateTransform attributeName="transform" type="translate" values="0 0; 800 600; 0 0" dur="20s" repeatCount="indefinite"/></circle><circle cx="800" cy="300" r="150" fill="url(%23a)" opacity="0.3"><animateTransform attributeName="transform" type="translate" values="0 0; -600 400; 0 0" dur="25s" repeatCount="indefinite"/></circle></svg>');
  background-size: cover;
  opacity: 0.1;
  animation: float 20s ease-in-out infinite;
}

.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 1;
  visibility: visible;
}

.floating-icon {
  position: absolute;
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.4);
  animation: floatVertical 6s ease-in-out infinite;
  z-index: 2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: all var(--transition-medium);
}

.floating-icon:hover {
  color: rgba(255, 255, 255, 0.8);
  transform: scale(1.2);
  text-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.floating-icon:nth-child(1) {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.floating-icon:nth-child(2) {
  top: 60%;
  left: 85%;
  animation-delay: 2s;
}

.floating-icon:nth-child(3) {
  top: 30%;
  left: 80%;
  animation-delay: 4s;
}

.floating-icon:nth-child(4) {
  top: 70%;
  left: 15%;
  animation-delay: 1s;
}

.hero-content {
  position: relative;
  z-index: 3;
  color: white;
  opacity: 1;
  visibility: visible;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  padding: 12px 20px;
  border-radius: 50px;
  margin-bottom: 30px;
  font-weight: 600;
  animation: slideInRight 1s ease 0.2s both;
  opacity: 1;
  visibility: visible;
  z-index: 3;
}

.hero-badge i {
  color: #fbbf24;
  animation: pulse 2s ease-in-out infinite;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 30px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.title-line {
  display: block;
  overflow: hidden;
}

.title-line:nth-child(1) {
  animation: slideInLeft 1s ease 0.4s both;
}

.title-line:nth-child(2) {
  animation: slideInLeft 1s ease 0.6s both;
}

.title-line:nth-child(3) {
  animation: slideInLeft 1s ease 0.8s both;
}

.gradient-text {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.3rem;
  line-height: 1.8;
  opacity: 0.9;
  margin-bottom: 40px;
  animation: fadeInUp 1s ease 1s both;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  margin-bottom: 60px;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease 1.2s both;
  opacity: 1;
  visibility: visible;
  z-index: 3;
  position: relative;
}

.btn-hero {
  position: relative;
  padding: 18px 35px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all var(--transition-medium);
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 200px;
  justify-content: center;
  z-index: 3;
  opacity: 1;
  visibility: visible;
}

.btn-primary-hero {
  background: var(--gradient-secondary);
  color: white;
  box-shadow: 0 8px 25px rgba(220, 38, 38, 0.4);
}

.btn-secondary-hero {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 2px solid var(--glass-border);
  color: white;
}

.btn-ripple {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.5s ease;
}

.btn-hero:hover .btn-ripple {
  width: 300px;
  height: 300px;
}

.btn-hero:hover {
  transform: translateY(-3px);
}

.btn-primary-hero:hover {
  box-shadow: 0 15px 40px rgba(220, 38, 38, 0.6);
}

.btn-secondary-hero:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

.hero-stats {
  display: flex;
  gap: 40px;
  animation: fadeInUp 1s ease 1.4s both;
  flex-wrap: wrap;
  opacity: 1;
  visibility: visible;
  z-index: 3;
  position: relative;
}

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

.hero-stats .stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: #fbbf24;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-stats .stat-label {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-top: 5px;
}

.hero-image {
  position: relative;
  z-index: 2;
  animation: fadeInUp 1s ease 0.8s both;
  opacity: 1;
  visibility: visible;
}

.image-wrapper {
  position: relative;
  text-align: center;
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.main-image {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
  animation: float 6s ease-in-out infinite;
}

.image-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.3) 0%,
    transparent 70%
  );
  border-radius: 50%;
  animation: pulse 4s ease-in-out infinite;
}

.floating-badge {
  position: absolute;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  padding: 15px 20px;
  border-radius: 15px;
  color: white;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: floatVertical 4s ease-in-out infinite;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  z-index: 10;
  opacity: 1;
  visibility: visible;
}

.badge-1 {
  top: 10%;
  right: -10%;
  animation-delay: 0s;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.badge-2 {
  top: 50%;
  right: -15%;
  animation-delay: 1s;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.badge-3 {
  bottom: 10%;
  right: -5%;
  animation-delay: 2s;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.medical-icons {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 1;
  visibility: visible;
  z-index: 5;
  pointer-events: none;
}

.medical-icon {
  position: absolute;
  width: 50px;
  height: 50px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  animation: orbitRotate 20s linear infinite;
  z-index: 6;
  opacity: 1;
  visibility: visible;
}

.icon-1 {
  top: 20%;
  left: -10%;
  animation-delay: 0s;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.icon-2 {
  top: 10%;
  right: -5%;
  animation-delay: 5s;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.icon-3 {
  bottom: 30%;
  left: -15%;
  animation-delay: 10s;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.icon-4 {
  bottom: 10%;
  right: -10%;
  animation-delay: 15s;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  animation: bounce 2s ease-in-out infinite;
}

.scroll-mouse {
  width: 25px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 15px;
  margin: 0 auto 10px;
  position: relative;
}

.scroll-wheel {
  width: 3px;
  height: 8px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 2s ease-in-out infinite;
}

/* ========== SERVICES SECTION ========== */
.services-section {
  padding: 120px 0;
  background: var(--light-blue);
  position: relative;
  overflow: hidden;
}

.section-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.05;
}

.bg-pattern {
  width: 100%;
  height: 100%;
  background-image: radial-gradient(
      circle at 25% 25%,
      var(--primary-color) 2px,
      transparent 2px
    ),
    radial-gradient(
      circle at 75% 75%,
      var(--secondary-color) 2px,
      transparent 2px
    );
  background-size: 100px 100px;
  animation: patternMove 20s linear infinite;
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-badge {
  display: inline-block;
  background: var(--gradient-primary);
  color: white;
  padding: 10px 25px;
  border-radius: 50px;
  font-weight: 600;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.section-badge::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s ease;
}

.section-badge:hover::before {
  left: 100%;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 20px;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.service-card {
  background: white;
  padding: 40px 30px;
  border-radius: var(--border-radius);
  position: relative;
  transition: all var(--transition-medium);
  border: 1px solid rgba(0, 0, 0, 0.05);
  overflow: hidden;
  cursor: pointer;
  height: 100%;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-medium);
  z-index: 1;
}

.service-card:hover::before {
  opacity: 0.03;
}

.card-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--transition-medium);
  animation: rotate 10s linear infinite;
}

.service-card:hover .card-glow {
  opacity: 0.05;
}

.service-icon {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
  position: relative;
  z-index: 2;
  transition: all var(--transition-medium);
  background: var(--gradient-primary);
}

.service-icon i {
  font-size: 2.2rem;
  color: white;
  transition: all var(--transition-medium);
}

.icon-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  background: var(--gradient-primary);
  border-radius: 50%;
  opacity: 0;
  transition: all var(--transition-medium);
  z-index: -1;
}

.service-card:hover .service-icon {
  transform: scale(1.15) rotateY(360deg);
  background: var(--gradient-secondary);
}

.service-card:hover .icon-bg {
  opacity: 0.1;
  transform: translate(-50%, -50%) scale(1.5);
}

.service-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 20px;
  text-align: center;
  position: relative;
  z-index: 2;
  transition: color var(--transition-medium);
}

.service-description {
  color: var(--text-light);
  line-height: 1.8;
  text-align: center;
  margin-bottom: 25px;
  position: relative;
  z-index: 2;
}

.service-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  z-index: 2;
}

.service-features span {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-light);
  font-size: 0.9rem;
}

.service-features i {
  color: var(--accent-color);
  font-size: 0.8rem;
}

.card-hover-effect {
  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.6s ease;
}

.service-card:hover .card-hover-effect {
  left: 100%;
}

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

/* ========== FEATURES SECTION ========== */
.features-section {
  padding: 100px 0;
  background: white;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 50px;
  margin-top: 60px;
}

.feature-item {
  text-align: center;
  position: relative;
  padding: 40px 20px;
  border-radius: var(--border-radius);
  transition: all var(--transition-medium);
}

.feature-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0;
  border-radius: var(--border-radius);
  transition: opacity var(--transition-medium);
  z-index: -1;
}

.feature-item:hover::before {
  opacity: 0.05;
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
}

.feature-icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transition: all var(--transition-medium);
}

.feature-item:hover .feature-icon::before {
  width: 100px;
  height: 100px;
}

.feature-icon i {
  font-size: 2rem;
  color: white;
  z-index: 2;
  position: relative;
}

.feature-item:hover .feature-icon {
  transform: rotateY(360deg) scale(1.1);
}

.feature-item h4 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 15px;
}

.feature-item p {
  color: var(--text-light);
  line-height: 1.8;
}

/* ========== STATS SECTION ========== */
.stats-section {
  padding: 100px 0;
  background: var(--gradient-primary);
  position: relative;
  overflow: hidden;
}

.stats-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 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="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
  animation: patternMove 30s linear infinite;
}

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

.stat-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  padding: 40px 30px;
  border-radius: var(--border-radius);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-medium);
}

.stat-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  opacity: 0;
  transition: opacity var(--transition-medium);
  animation: rotate 4s linear infinite;
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-icon {
  width: 70px;
  height: 70px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  color: white;
  font-size: 1.8rem;
  position: relative;
  z-index: 2;
  transition: all var(--transition-medium);
}

.stat-card:hover .stat-icon {
  transform: scale(1.2) rotateY(360deg);
  background: rgba(255, 255, 255, 0.3);
}

.stat-content {
  position: relative;
  z-index: 2;
}

.stat-number {
  display: block;
  font-size: 3.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 10px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.stat-label {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  font-weight: 600;
}

.stat-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 150px;
  height: 150px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  border-radius: 50%;
  opacity: 0;
  transition: opacity var(--transition-medium);
  animation: pulse 3s ease-in-out infinite;
}

.stat-card:hover .stat-glow {
  opacity: 1;
}

.stat-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* ========== BLOG SECTION ========== */
.blog-section {
  padding: 120px 0;
  background: white;
  position: relative;
  overflow: hidden;
}

.blog-intro {
  max-width: 800px;
  margin: 0 auto 60px;
  text-align: center;
}

.benefits-list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.benefits-list li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  font-size: 1.1rem;
  color: var(--text-dark);
  background: var(--light-blue);
  padding: 20px 30px;
  border-radius: 15px;
  transition: all var(--transition-medium);
}

.benefits-list li:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-light);
}

.benefits-list i {
  color: var(--accent-color);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.blog-description {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--text-light);
  margin-top: 30px;
  padding: 25px;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: 15px;
  border-right: 4px solid var(--primary-color);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.blog-card {
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: all var(--transition-medium);
  position: relative;
  height: fit-content;
}

.blog-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-medium);
  z-index: 1;
}

.blog-card:hover::before {
  opacity: 0.02;
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-heavy);
}

.blog-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(30, 64, 175, 0.8) 0%,
    rgba(220, 38, 38, 0.8) 100%
  );
  opacity: 0;
  transition: opacity var(--transition-medium);
}

.blog-card:hover .image-overlay {
  opacity: 0.25;
}

.blog-category {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--gradient-secondary);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 2;
  transition: all var(--transition-medium);
}

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

.blog-content {
  padding: 30px;
  position: relative;
  z-index: 2;
}

.blog-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 20px;
  text-align: right;
  position: relative;
  padding-bottom: 15px;
}

.blog-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 60px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.blog-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.blog-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 15px;
  padding: 12px 0;
  text-align: right;
  line-height: 1.7;
  color: var(--text-light);
  border-bottom: 1px solid #f1f5f9;
  transition: all var(--transition-fast);
}

.blog-list li:hover {
  color: var(--text-dark);
  padding-right: 10px;
}

.blog-list li:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.blog-list i {
  color: var(--primary-color);
  font-size: 0.9rem;
  margin-top: 4px;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.blog-list li:hover i {
  color: var(--secondary-color);
  transform: scale(1.2);
}

.patients-list li {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 10px;
  border: 1px solid #e2e8f0;
  border-bottom: none;
}

.patients-list li:hover {
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
  transform: translateX(-5px);
}

.blog-text {
  margin: 20px 0;
  text-align: right;
}

.blog-text p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 15px;
  text-align: justify;
}

.blog-footer-text {
  background: var(--light-blue);
  padding: 20px;
  border-radius: 12px;
  margin: 25px 0;
  text-align: right;
  color: var(--text-dark);
  font-weight: 600;
  border-right: 4px solid var(--accent-color);
}

.blog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid #f1f5f9;
  margin-top: 25px;
}

.author-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  /* border: 2px solid var(--primary-color); */
  border: 2px solid white;
}

.author-name {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.blog-stats {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 0.9rem;
  color: var(--text-light);
}

.blog-stats .date {
  font-weight: 500;
}

.blog-stats .likes,
.blog-stats .comments {
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color var(--transition-fast);
}

.blog-stats .likes:hover {
  color: #dc2626;
}

.blog-stats .comments:hover {
  color: var(--primary-color);
}

.blog-stats i {
  font-size: 0.8rem;
}

/* ========== ABOUT SECTION ========== */
.about-section {
  padding: 120px 0;
  background: white;
}

.about-image {
  position: relative;
}

.image-wrapper {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-medium);
}

.main-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--transition-slow);
}

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

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-medium);
}

.image-wrapper:hover .image-overlay {
  opacity: 0.2;
}

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 2px solid white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all var(--transition-medium);
  opacity: 0;
}

.image-wrapper:hover .play-btn {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}

.experience-badge {
  position: absolute;
  bottom: -30px;
  right: 30px;
  background: var(--gradient-secondary);
  padding: 25px;
  border-radius: 50%;
  box-shadow: var(--shadow-medium);
  text-align: center;
  color: white;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: float 6s ease-in-out infinite;
}

.badge-content .years {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.badge-content .text {
  font-size: 0.9rem;
  font-weight: 600;
}

.about-content {
  padding-right: 40px;
}

.about-text p {
  font-size: 1.1rem;
  line-height: 2;
  color: var(--text-light);
  margin-bottom: 25px;
}

.about-features {
  margin: 40px 0;
}

.about-features .feature {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  font-size: 1.1rem;
  color: var(--text-dark);
}

.about-features i {
  color: var(--accent-color);
  font-size: 1rem;
  width: 20px;
}

.btn-about {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  background: var(--gradient-primary);
  color: white;
  padding: 18px 35px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
}

.btn-about::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.6s ease;
}

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

.btn-about:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-heavy);
}

/* ========== CONTACT SECTION ========== */
.contact-section {
  padding: 120px 0;
  background: var(--light-blue);
  position: relative;
  overflow: hidden;
}

.contact-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.contact-particles {
  width: 100%;
  height: 100%;
  opacity: 0.1;
}

.contact-form {
  background: white;
  padding: 50px 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
  position: relative;
  overflow: hidden;
}

.contact-form::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--gradient-primary);
}

.form-header {
  text-align: center;
  margin-bottom: 40px;
}

.form-header h4 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.form-header p {
  color: var(--text-light);
  font-size: 1.1rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.form-group {
  position: relative;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 12px;
  font-size: 1rem;
}

.form-label i {
  color: var(--primary-color);
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  padding: 18px 20px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 1rem;
  transition: all var(--transition-medium);
  background: white;
  color: var(--text-dark);
  position: relative;
  z-index: 2;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(30, 64, 175, 0.1);
  transform: translateY(-2px);
}

.form-line {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--gradient-primary);
  transition: width var(--transition-medium);
  border-radius: 2px;
}

.form-control:focus + .form-line {
  width: 100%;
}

.btn-submit {
  background: var(--gradient-primary);
  color: white;
  padding: 20px 40px;
  border: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  width: 100%;
  min-height: 60px;
}

.btn-submit::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.6s ease;
}

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

.btn-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn-submit.loading .btn-text,
.btn-submit.loading i {
  opacity: 0;
}

.btn-submit.loading .btn-loading {
  opacity: 1;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.btn-submit:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-heavy);
}

.contact-info {
  background: var(--gradient-primary);
  color: white;
  padding: 50px 40px;
  border-radius: var(--border-radius);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.contact-info::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg,
    transparent,
    rgba(255, 255, 255, 0.05),
    transparent
  );
  animation: rotate 20s linear infinite;
}

.contact-info h4 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 40px;
  position: relative;
  z-index: 2;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 35px;
  position: relative;
  z-index: 2;
}

.contact-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  transition: all var(--transition-medium);
}

.contact-item:hover .contact-icon {
  transform: scale(1.1) rotateY(360deg);
  background: rgba(255, 255, 255, 0.3);
}

.contact-details h6 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.9);
}

.contact-details p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin: 0;
}

.social-section {
  margin-top: 40px;
  position: relative;
  z-index: 2;
}

.social-section h6 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.9);
}

.social-links {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.social-link {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
  text-decoration: none; /* Remove underline */
}

.social-link::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-radius: 50%;
  transition: all var(--transition-medium);
}

.facebook {
  background: #1877f2;
}

.facebook::before {
  background: #0d5dbf;
}

.twitter {
  background: #1da1f2;
}

.twitter::before {
  background: #0c85d0;
}

.linkedin {
  background: #0077b5;
}

.linkedin::before {
  background: #005582;
}

.instagram {
  background: linear-gradient(
    45deg,
    #f09433 0%,
    #e6683c 25%,
    #dc2743 50%,
    #cc2366 75%,
    #bc1888 100%
  );
}

.instagram::before {
  background: #8b0a50;
}

.social-link:hover::before {
  width: 100%;
  height: 100%;
}

.social-link:hover {
  transform: translateY(-3px) rotateY(360deg);
}

/* ========== FOOTER ========== */
.footer {
  background: var(--text-dark);
  color: white;
  padding: 80px 0 0;
  position: relative;
  overflow: hidden;
}

.footer-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.05;
}

.footer-content {
  position: relative;
  z-index: 2;
}

.footer-section {
  height: 100%;
}

.footer-logo {
  margin-bottom: 25px;
}

.footer-logo img {
  max-height: 80px;
  filter: brightness(0) invert(1);
}

.footer-description {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
  margin-bottom: 30px;
  font-size: 1.1rem;
}

.footer-social {
  display: flex;
  gap: 15px;
}

.footer-social a {
  width: 45px;
  height: 45px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
  transition: all var(--transition-medium);
}

.footer-social a:hover {
  background: var(--primary-color);
  transform: translateY(-3px) rotateY(360deg);
}

.footer-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 25px;
  color: white;
  position: relative;
}

.footer-title::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all var(--transition-medium);
  font-size: 1rem;
  position: relative;
  padding-left: 20px;
}

.footer-links a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width var(--transition-medium);
}

.footer-links a:hover::before {
  width: 12px;
}

.footer-links a:hover {
  color: var(--primary-color);
  padding-left: 25px;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.newsletter-form form {
  display: flex;
  gap: 10px;
  position: relative;
}

.newsletter-form input {
  flex: 1;
  padding: 15px 20px;
  border: 2px solid var(--glass-border);
  border-radius: 12px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  color: white;
  font-size: 1rem;
  transition: all var(--transition-medium);
  direction: ltr;
  text-align: left;
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--primary-color);
  background: rgba(255, 255, 255, 0.15);
}

.newsletter-form input.is-invalid {
  border-color: #dc2626;
  background: rgba(220, 38, 38, 0.1);
}

.newsletter-form input.is-invalid:focus {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
}

.newsletter-form button {
  padding: 15px 20px;
  background: var(--gradient-primary);
  border: none;
  border-radius: 12px;
  color: white;
  cursor: pointer;
  transition: all var(--transition-medium);
  font-size: 1.1rem;
  position: relative;
  min-width: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.newsletter-form button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.newsletter-form button.loading {
  background: var(--gradient-secondary);
  pointer-events: none;
}

.newsletter-form button.loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

#newsletterAlert {
  margin-top: 10px;
  border-radius: 10px;
  border: none;
  font-size: 14px;
  padding: 12px 16px;
}

#newsletterAlert.alert-success {
  background: rgba(5, 150, 105, 0.1);
  color: #10b981;
  border-left: 4px solid #10b981;
}

#newsletterAlert.alert-danger {
  background: rgba(220, 38, 38, 0.1);
  color: #ef4444;
  border-left: 4px solid #ef4444;
}

.footer-bottom {
  margin-top: 60px;
  padding: 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 2;
}

.copyright {
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  font-size: 1rem;
}

.footer-bottom-links {
  display: flex;
  gap: 30px;
  justify-content: flex-end;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color var(--transition-medium);
  font-size: 1rem;
}

.footer-bottom-links a:hover {
  color: var(--primary-color);
}

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

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

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

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

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

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

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

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

@keyframes orbitRotate {
  from {
    transform: rotate(0deg) translateX(100px) rotate(0deg);
  }
  to {
    transform: rotate(360deg) translateX(100px) rotate(-360deg);
  }
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

@keyframes scrollWheel {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) translateY(8px);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(15px);
  }
}

@keyframes loadingProgress {
  0% {
    width: 0%;
  }
  50% {
    width: 100%;
  }
  100% {
    width: 0%;
  }
}

@keyframes patternMove {
  0% {
    transform: translateX(0) translateY(0);
  }
  100% {
    transform: translateX(100px) translateY(100px);
  }
}

@keyframes glow {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

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

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }

  .about-content {
    padding-right: 20px;
  }
}

@media (max-width: 992px) {
  .hero-buttons {
    justify-content: center;
  }

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

  .about-content {
    padding-right: 0;
    margin-top: 50px;
  }

  .contact-form {
    margin-bottom: 30px;
  }

  .blog-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
  }

  .benefits-list {
    gap: 15px;
  }

  .benefits-list li {
    padding: 15px 20px;
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }

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

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

  .btn-hero {
    width: 100%;
    max-width: 300px;
  }

  .hero-stats {
    gap: 20px;
  }

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

  .features-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

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

  .form-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom-links {
    justify-content: center;
    margin-top: 20px;
  }

  /* Hide only on very small screens for performance */
  .floating-badge {
    display: none;
  }

  .medical-icons {
    display: none;
  }

  /* Keep floating icons but make them smaller on mobile */
  .floating-icon {
    font-size: 1.5rem;
    opacity: 0.3;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .blog-content {
    padding: 20px;
  }

  .blog-meta {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

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

  .benefits-list li {
    flex-direction: column;
    text-align: center;
    gap: 10px;
    padding: 15px;
  }

  .blog-description {
    padding: 20px;
    font-size: 1.1rem;
  }
}

@media (max-width: 576px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .contact-form,
  .contact-info {
    padding: 30px 25px;
  }

  .footer-bottom-links {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
}

/* Force visibility for hero elements */
.hero-section .hero-content,
.hero-section .hero-badge,
.hero-section .hero-buttons,
.hero-section .hero-stats,
.hero-section .btn-hero,
.hero-section .floating-badge,
.hero-section .medical-icon {
  opacity: 1 !important;
  visibility: visible !important;
}

.hero-section .hero-buttons .btn-hero {
  display: inline-flex !important;
}

.hero-section .hero-stats .stat-item {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* ========== UTILITY CLASSES ========== */
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass-effect {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
}

.shadow-custom {
  box-shadow: var(--shadow-medium);
}

.border-radius-custom {
  border-radius: var(--border-radius);
}

/* ========== ALERT STYLES ========== */
.alert-custom {
  border-radius: 15px;
  border: none;
  padding: 20px 25px;
  font-weight: 600;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
}

.alert-custom::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
}

.alert-success {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  color: #065f46;
}

.alert-success::before {
  background: #059669;
}

.alert-danger {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  color: #991b1b;
}

.alert-danger::before {
  background: #dc2626;
}

.alert-custom i {
  margin-left: 10px;
}

/* ========== ACCESSIBILITY ========== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .scroll-indicator {
    animation: none;
  }

  .floating-elements,
  .medical-icons {
    display: none;
  }
}

/* Focus styles for better accessibility */
.btn-hero:focus,
.btn-submit:focus,
.form-control:focus,
.social-link:focus {
  outline: 3px solid var(--primary-color);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #000080;
    --secondary-color: #800000;
    --text-light: #333333;
  }
}

/* ========== PRINT STYLES ========== */
@media print {
  .navbar,
  .back-to-top,
  .scroll-progress,
  .floating-elements,
  .medical-icons,
  .contact-form {
    display: none !important;
  }

  .hero-section,
  .stats-section,
  .contact-section {
    background: white !important;
    color: black !important;
  }

  .service-card,
  .stat-card {
    break-inside: avoid;
  }
}

@media (min-width: 992px) {
  .hero-section ~ .navbar .navbar-nav .nav-link,
  .navbar:not(.scrolled) .navbar-nav .nav-link {
    color: #fff !important;
  }
}

/* All white effect for navbar logo when in hero section */
.logo-img.white-logo {
  filter: brightness(0) invert(1) drop-shadow(0 0 16px #fff)
    drop-shadow(0 0 32px #ec1d25);
  transition: filter 0.3s;
}

/* Ensure footer logo is always white */
.footer-logo img {
  filter: brightness(0) invert(1);
}

/* ========== CUSTOM SCROLLBAR ========== */
/* Webkit Browsers */
::-webkit-scrollbar {
  width: 12px;
  background: #fff;
}
::-webkit-scrollbar-thumb {
  background: #ec1d25;
  border-radius: 999px;
  border: 2px solid #fff;
  margin: 0;
  min-height: 40px;
}
::-webkit-scrollbar-track {
  background: #fff;
  margin-top: 0;
  margin-bottom: 0;
  border: none;
}
/* Remove scrollbar buttons (arrows) if present */
::-webkit-scrollbar-button {
  display: none;
  height: 0;
}
/* Firefox */
html {
  scrollbar-color: #ec1d25 #fff;
  scrollbar-width: thin;
}

/* ========== ENHANCED MOBILE RESPONSIVENESS ========== */
@media (max-width: 576px) {
  html {
    font-size: 14px;
  }
  .navbar {
    padding: 8px 0;
  }
  .navbar-brand img {
    max-width: 120px;
  }
  .hero-title {
    font-size: 2rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  .btn-hero,
  .btn-about,
  .btn-submit {
    font-size: 1rem;
    padding: 10px 18px;
    min-width: 120px;
  }
  .form-control {
    font-size: 1rem;
    padding: 10px 12px;
  }
  .footer-section {
    padding: 10px 0;
  }
  .footer-logo img {
    max-width: 100px;
  }
  .contact-info h4,
  .footer-title {
    font-size: 1.1rem;
  }
  .contact-details p,
  .footer-description {
    font-size: 0.95rem;
  }
  .stat-number {
    font-size: 1.3rem;
  }
  .stat-label {
    font-size: 0.95rem;
  }
  .service-title,
  .feature-item h4 {
    font-size: 1.1rem;
  }
  .service-description,
  .feature-item p {
    font-size: 0.95rem;
  }
  .blog-title {
    font-size: 1.1rem;
  }
  .blog-list li,
  .patients-list li {
    font-size: 0.95rem;
  }
  .about-features .feature {
    font-size: 0.95rem;
  }
  .footer-bottom-links a {
    font-size: 0.95rem;
  }
}

/* Touch target improvements */
@media (max-width: 768px) {
  .btn-hero,
  .btn-about,
  .btn-submit,
  .footer-social a,
  .social-link {
    min-height: 48px;
    min-width: 48px;
    font-size: 1.1rem;
  }
  .navbar-toggler {
    min-width: 48px;
    min-height: 48px;
  }
}

/* --- Fix mobile horizontal overflow and extra space --- */
@media (max-width: 576px) {
  .container,
  .row {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    overflow-x: hidden !important;
  }
  section,
  .services-section,
  .features-section,
  .stats-section,
  .about-section,
  .blog-section,
  .contact-section,
  .footer {
    overflow-x: hidden !important;
  }
  .services-grid,
  .blog-grid,
  .features-grid {
    grid-template-columns: 1fr !important;
    min-width: 0 !important;
  }
  .service-card,
  .blog-card,
  .feature-item {
    min-width: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* Tighter grid min-width for small screens */
@media (max-width: 768px) {
  .services-grid,
  .blog-grid,
  .features-grid {
    grid-template-columns: 1fr !important;
    min-width: 0 !important;
  }
  .service-card,
  .blog-card,
  .feature-item {
    min-width: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}
