/* Custom CSS for Matrix Biolab */

.glass-card {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
}

.glass-dark {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.24);
}

.text-gradient {
    background: linear-gradient(90deg, #0f3d5e 0%, #1ea7e1 55%, #5fd4ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.text-gradient-green {
    background: linear-gradient(90deg, #1ea7e1 0%, #8bc53f 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1ea7e1;
}

::selection {
    background-color: #1ea7e1;
    color: #fff;
}

.dna-bg {
    background-image:
        radial-gradient(circle at 15% 50%, rgba(30, 167, 225, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(139, 197, 63, 0.08), transparent 25%),
        radial-gradient(circle at 50% 80%, rgba(15, 61, 94, 0.05), transparent 30%);
    background-size: 100% 100%;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

[data-aos] {
    max-width: 100%;
    overflow-x: hidden;
}

.nav-solid {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 35px rgba(15, 23, 42, 0.08);
    border-bottom: 1px solid #e5e7eb;
}

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

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

.animate-float-delayed {
    animation: float 7s ease-in-out 2s infinite;
}

.hero-overlay {
    background: linear-gradient(90deg, rgba(15, 61, 94, 0.95) 0%, rgba(15, 61, 94, 0.8) 50%, rgba(30, 167, 225, 0.4) 100%);
}

.image-frame {
    position: relative;
    overflow: hidden;
}

.image-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 61, 94, 0.08), rgba(95, 212, 255, 0.02));
    pointer-events: none;
}

.prose p,
.prose li {
    color: #475569;
}

.prose h2,
.prose h3,
.prose h4 {
    color: #0f3d5e;
}

@media (min-width: 1024px) {
    .custom-cursor {
        cursor: none;
    }

    .custom-cursor a,
    .custom-cursor button {
        cursor: none;
    }

    .cursor-dot,
    .cursor-outline {
        position: fixed;
        top: 0;
        left: 0;
        transform: translate(-50%, -50%);
        border-radius: 50%;
        z-index: 9999;
        pointer-events: none;
    }

    .cursor-dot {
        width: 8px;
        height: 8px;
        background-color: #1ea7e1;
    }

    .cursor-outline {
        width: 40px;
        height: 40px;
        border: 2px solid rgba(30, 167, 225, 0.45);
        transition: width 0.2s ease, height 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
    }

    .cursor-outline.is-hovering {
        width: 60px;
        height: 60px;
        border-color: rgba(139, 197, 63, 0.85);
        background-color: rgba(139, 197, 63, 0.1);
    }
}
