/* Base Animations */
@keyframes float {
    0%,
    100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-10px);
    }
  }
  
  @keyframes pulse-ring {
    0% {
      transform: scale(0.5);
      opacity: 0;
    }
    50% {
      opacity: 0.5;
    }
    100% {
      transform: scale(1.5);
      opacity: 0;
    }
  }
  
  @keyframes morph {
    0% {
      border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
    50% {
      border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }
    100% {
      border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
  }
  
  @keyframes shimmer {
    0% {
      background-position: -1000px 0;
    }
    100% {
      background-position: 1000px 0;
    }
  }
  
  @keyframes scroll-x {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-100%);
    }
  }
  
  @keyframes drop {
    0% {
      transform: translateX(-50%) translateY(0) scale(1);
    }
    40% {
      transform: translateX(-50%) translateY(20px) scale(0.5);
    }
    50% {
      transform: translateX(-50%) translateY(30px) scale(0.2);
      opacity: 0;
    }
    100% {
      transform: translateX(-50%) translateY(0) scale(1);
      opacity: 1;
    }
  }
  
  @keyframes fill {
    0% {
      height: 0%;
    }
    50% {
      height: 80%;
    }
    100% {
      height: 80%;
    }
  }
  
  @keyframes rotate {
    from {
      transform: rotateX(0deg);
    }
    to {
      transform: rotateX(360deg);
    }
  }
  
  @keyframes particle-float {
    0% {
      transform: translateY(100vh) translateX(0);
    }
    100% {
      transform: translateY(-100px) translateX(100px);
    }
  }
  
  /* DNA Animation */
  .dna-container {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 100px;
    overflow: hidden;
    opacity: 0.15;
  }
  
  .dna-helix {
    position: relative;
    width: 60px;
    height: 600px;
    margin: 0 auto;
    transform-style: preserve-3d;
    animation: rotate 15s linear infinite;
  }
  
  .strand {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
  
  .strand-1 {
    transform: rotateY(0deg);
  }
  
  .strand-2 {
    transform: rotateY(180deg);
  }
  
  .strand span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: #1e88e5;
    border-radius: 4px;
  }
  
  .strand-1 span {
    transform-origin: 100% 50%;
  }
  
  .strand-2 span {
    transform-origin: 0% 50%;
  }
  
  .connector {
    position: absolute;
    left: 50%;
    width: 30px;
    height: 2px;
    margin-left: -15px;
    background-color: #4caf50;
    transform-origin: 50% 50%;
  }
  
  /* Preloader */
  .preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
  }
  
  .preloader.hidden {
    opacity: 0;
    visibility: hidden;
  }
  
  /* DHR SPACE Logo Preloader */
  .dhr-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    max-width: 300px;
  }
  
  .logo-container {
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
    animation: pulse-logo 2s infinite ease-in-out;
  }
  
  .logo-image {
    max-width: 100%;
    max-height: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
  }
  
  /* Loading Text & Progress Bar */
  .loading-text {
    color: #1E88E5;
    font-size: 1.2rem;
    letter-spacing: 1px;
    text-align: center;
    margin-bottom: 15px;
  }
  
  .loading-bar-container {
    width: 200px;
    height: 6px;
    background-color: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
    position: relative;
  }
  
  .loading-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(to right, #1E88E5, #4CAF50, #FF5722);
    border-radius: 3px;
    animation: loading 2s ease infinite;
  }
  
  /* Animation for the logo pulsing effect */
  @keyframes pulse-logo {
    0%, 100% {
      transform: scale(1);
      box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
    }
    50% {
      transform: scale(1.05);
      box-shadow: 0 15px 40px -5px rgba(0, 0, 0, 0.15);
    }
  }
  
  /* Animation for the loading bar */
  @keyframes loading {
    0% {
      width: 0%;
    }
    50% {
      width: 70%;
    }
    100% {
      width: 100%;
    }
  }
  
  /* Bike Animation */
  .bike-body {
    position: relative;
    width: 120px;
    height: 70px;
    z-index: 10;
  }
  
  .bike-frame {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid #1E88E5;
    border-radius: 50px;
    clip-path: polygon(0% 50%, 30% 0%, 70% 0%, 100% 50%, 70% 100%, 30% 100%);
    animation: frame-pulse 1.5s infinite alternate;
  }
  
  .bike-handlebars {
    position: absolute;
    top: 10px;
    right: 15px;
    width: 25px;
    height: 25px;
    border: 4px solid #1E88E5;
    border-radius: 50%;
  }
  
  .bike-seat {
    position: absolute;
    top: 10px;
    left: 15px;
    width: 25px;
    height: 8px;
    background-color: #1E88E5;
    border-radius: 5px;
  }
  
  /* Bike Wheels */
  .bike-wheel {
    position: absolute;
    width: 50px;
    height: 50px;
    top: 50px;
    z-index: 5;
  }
  
  .bike-wheel-left {
    left: 20px;
    animation: wheel-spin 2s linear infinite;
  }
  
  .bike-wheel-right {
    right: 20px;
    animation: wheel-spin 2s linear infinite;
  }
  
  .wheel-outer {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid #4CAF50;
    border-radius: 50%;
  }
  
  .wheel-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 15px;
    height: 15px;
    background-color: #4CAF50;
    border-radius: 50%;
    transform: translate(-50%, -50%);
  }
  
  .wheel-spokes {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
  }
  
  .wheel-spokes:before,
  .wheel-spokes:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 4px;
    background-color: rgba(76, 175, 80, 0.7);
    transform: translate(-50%, -50%);
  }
  
  .wheel-spokes:after {
    transform: translate(-50%, -50%) rotate(90deg);
  }
  
  /* Medical Cross */
  .medical-cross {
    position: absolute;
    top: 15px;
    left: 50%;
    width: 30px;
    height: 30px;
    transform: translateX(-50%);
    z-index: 20;
  }
  
  .cross-vertical,
  .cross-horizontal {
    position: absolute;
    background-color: #FF5722;
    border-radius: 3px;
  }
  
  .cross-vertical {
    top: 0;
    left: 50%;
    width: 8px;
    height: 30px;
    transform: translateX(-50%);
    animation: pulse-cross 2s infinite;
  }
  
  .cross-horizontal {
    top: 50%;
    left: 0;
    width: 30px;
    height: 8px;
    transform: translateY(-50%);
    animation: pulse-cross 2s infinite 0.3s;
  }
  
  /* Loading Text & Progress Bar */
  .loading-text {
    margin-top: 90px;
    color: #1E88E5;
    font-size: 1.2rem;
    letter-spacing: 1px;
    text-align: center;
    margin-bottom: 15px;
  }
  
  .loading-bar-container {
    width: 150px;
    height: 6px;
    background-color: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
  }
  
  .loading-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(to right, #1E88E5, #4CAF50, #FF5722);
    border-radius: 3px;
    animation: loading 2s ease infinite;
  }
  
  /* Animations */
  @keyframes wheel-spin {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
  }
  
  @keyframes frame-pulse {
    0% {
      transform: scale(1);
    }
    100% {
      transform: scale(1.05);
    }
  }
  
  @keyframes pulse-cross {
    0%, 100% {
      opacity: 1;
      transform: translateX(-50%) scale(1);
    }
    50% {
      opacity: 0.7;
      transform: translateX(-50%) scale(1.1);
    }
  }
  
  @keyframes loading {
    0% {
      width: 0%;
    }
    50% {
      width: 70%;
    }
    100% {
      width: 100%;
    }
  }
  
  .loader {
    position: relative;
    width: 100px;
    height: 100px;
  }
  
  /* Liquid Button Effect */
  .liquid-button {
    position: relative;
    z-index: 1;
    overflow: hidden;
  }
  
  .liquid-button::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 40%;
    transform: translate3d(-50%, -50%, 0) scale(0);
    transition: transform 0.5s;
    z-index: -1;
  }
  
  .liquid-button:hover::before {
    transform: translate3d(-50%, -50%, 0) scale(1.5);
  }
  
  /* Custom cursor */
  .custom-cursor {
    position: fixed;
    width: 40px;
    height: 40px;
    /* border: 2px solid #1e88e5; /* Removed border */
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    transition: all 0.1s ease;
    opacity: 0;
  }
  
  .cursor-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    background: #1e88e5;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    transition: all 0.15s ease-out;
  }
  
  /* Morphing backgrounds */
  .morphing-bg {
    position: absolute;
    top: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: linear-gradient(45deg, rgba(30, 136, 229, 0.2), rgba(76, 175, 80, 0.2));
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: morph 15s linear infinite alternate;
    z-index: -1;
  }
  
  /* Cards and content styling */
  .feature-card {
    transition: all 0.3s ease;
    overflow: hidden;
  }
  
  .feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #1e88e5, #4caf50);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
  }
  
  .feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  }
  
  .feature-card:hover::before {
    transform: translateY(0);
  }
  
  /* 3D Card flip effect */
  .card-3d-wrap {
    perspective: 1000px;
  }
  
  .card-3d-wrapper {
    transform-style: preserve-3d;
    transition: transform 0.8s ease;
    height: 100%;
  }
  
  .card-front,
  .card-back {
    backface-visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
  
  .card-back {
    transform: rotateY(180deg);
  }
  
  .card-3d-wrap:hover .card-3d-wrapper {
    transform: rotateY(180deg);
  }
  
  /* Link hover effects */
  .hover-link {
    position: relative;
    display: inline-block;
  }
  
  .hover-link::after {
    content: "";
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: currentColor;
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
  }
  
  .hover-link:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
  }
  
  /* Pulsing elements */
  .pulse-element {
    position: relative;
  }
  
  .pulse-element::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: inherit;
    background: inherit;
    animation: pulse-ring 1.5s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
    z-index: -1;
    opacity: 0.3;
  }
  
  /* Shimmer effect */
  .shimmer {
    position: relative;
    overflow: hidden;
  }
  
  .shimmer::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 2s infinite linear;
  }
  
  /* Magnetic Button Effect */
  .magnetic-btn {
    transform-style: preserve-3d;
    transform: perspective(500px);
    transition: transform 0.1s;
  }
  
  /* Micro Interactions */
  .micro-interaction {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  
  .micro-interaction:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 14px rgba(0, 0, 0, 0.1);
  }
  
  .micro-interaction:active {
    transform: translateY(0);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
  }
  
  /* Medical card style */
  .medical-card {
    border-radius: 12px;
    border: 1px solid rgba(30, 136, 229, 0.1);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
  }
  
  .medical-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.1);
    border-color: rgba(30, 136, 229, 0.3);
  }
  
  /* Stethoscope cursor */
  .stethoscope-cursor {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%231E88E5" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M4.8 2.3A.3.3 0 105 2H4a2 2 0 00-2 2v5a6 6 0 006 6v0a6 6 0 006-6V4a2 2 0 00-2-2h-1a.2.2 0 10.3.3"/><path d="M8 15v1a6 6 0 006 6v0a6 6 0 006-6v-4"/><circle cx="20" cy="10" r="2"/></svg>'),
      auto;
  }
  
  /* Scrolling marquee */
  .scrolling-marquee {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
  }
  
  .scrolling-marquee-content {
    display: inline-block;
    animation: scroll-x 30s linear infinite;
    padding-right: 2rem;
  }
  
  /* Stats counter animation */
  .stat-counter {
    font-variant-numeric: tabular-nums;
    transition: color 0.3s ease;
  }
  
  .stat-counter:hover {
    color: #1e88e5;
  }
  
  /* Particles */
  .particle {
    position: absolute;
    background-color: rgba(30, 136, 229, 0.2);
    border-radius: 50%;
    animation: float 20s linear infinite;
  }
  
  /* Fade in section */
  .fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  }
  
  .fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* Heartbeat animation */
  .heartbeat {
    animation: heartbeat 1.5s ease-in-out infinite;
  }
  
  @keyframes heartbeat {
    0% {
      transform: scale(1);
    }
    14% {
      transform: scale(1.1);
    }
    28% {
      transform: scale(1);
    }
    42% {
      transform: scale(1.1);
    }
    70% {
      transform: scale(1);
    }
  }
  
  /* Typing animation */
  .typing-animation {
    overflow: hidden;
    border-right: 2px solid #1e88e5;
    white-space: nowrap;
    margin: 0 auto;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
  }
  
  @keyframes typing {
    from {
      width: 0;
    }
    to {
      width: 100%;
    }
  }
  
  @keyframes blink-caret {
    from,
    to {
      border-color: transparent;
    }
    50% {
      border-color: #1e88e5;
    }
  }
  
  /* Blood cells animation */
  .blood-cell {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: #e53935;
    border-radius: 50%;
    opacity: 0.8;
    animation: float 15s linear infinite;
  }
  
  /* Microscope view */
  .microscope-view {
    position: relative;
    width: 100%;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    background: radial-gradient(
      circle,
      rgba(255, 255, 255, 0.9) 0%,
      rgba(240, 240, 240, 0.8) 70%,
      rgba(220, 220, 220, 0.7) 100%
    );
  }
  
  .cell {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(30, 136, 229, 0.2);
    border: 1px solid rgba(30, 136, 229, 0.5);
    animation: float-cell 20s linear infinite;
  }
  
  @keyframes float-cell {
    0% {
      transform: translate(0, 0) rotate(0deg);
    }
    25% {
      transform: translate(20px, 15px) rotate(90deg);
    }
    50% {
      transform: translate(0, 30px) rotate(180deg);
    }
    75% {
      transform: translate(-20px, 15px) rotate(270deg);
    }
    100% {
      transform: translate(0, 0) rotate(360deg);
    }
  }
  
  /* Particles container */
  .particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
  }
  