/* Custom Styles for Poison Stem Cell Clinic */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #050505; 
}
::-webkit-scrollbar-thumb {
    background: #007BFF;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #00e5ff; 
}

/* Glassmorphism Utilities */
.glass {
    background: rgba(5, 5, 5, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 229, 255, 0.15);
}

.glass-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 123, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
}

/* Text Gradients */
.text-gradient {
    background: linear-gradient(135deg, #00e5ff, #ffffff, #007BFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: shine 4s linear infinite;
}

.text-gradient-dark {
    background: linear-gradient(135deg, #444444, #00e5ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

/* Basic Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
}

.hover-lift {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 229, 255, 0.15);
    border-color: rgba(0, 229, 255, 0.4);
}

/* Biological Animations */

/* 1. Organic Cell Floating */
.cell-float {
    animation: organic-float 15s ease-in-out infinite alternate;
}
.cell-float-delayed {
    animation: organic-float 20s ease-in-out infinite alternate-reverse;
}

@keyframes organic-float {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); }
    33% { transform: translate(30px, -50px) scale(1.05) rotate(10deg); }
    66% { transform: translate(-20px, 20px) scale(0.95) rotate(-5deg); }
    100% { transform: translate(0, 0) scale(1) rotate(0deg); }
}

/* 2. Pulse / Heartbeat */
.bio-pulse {
    animation: heartbeat 2s infinite;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.08); }
    28% { transform: scale(1); }
    42% { transform: scale(1.08); }
    70% { transform: scale(1); }
}

/* 3. DNA Helix / Science Grid Background */
.science-pattern {
    background-image: radial-gradient(rgba(0, 123, 255, 0.15) 2px, transparent 2px);
    background-size: 40px 40px;
}

/* DNA String visual element */
.dna-string {
    position: absolute;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(0, 229, 255, 0.8), transparent);
    animation: glow-pulse 3s linear infinite;
}
@keyframes glow-pulse {
    0%, 100% { opacity: 0.3; box-shadow: 0 0 10px rgba(0,229,255,0.2); }
    50% { opacity: 1; box-shadow: 0 0 25px rgba(0,229,255,0.8); }
}

/* Helper styles for biology aesthetic nodes */
.bio-node {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #00e5ff;
    position: absolute;
    box-shadow: 0 0 20px #00e5ff;
}
