/* Custom Styles leveraging Tailwind */

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
    font-size: 16px;
    height: 100%;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #F3F4F6;
    color: #000000;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.hero-mask {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.5); /* Slightly darker base mask */
    z-index: 5;
}

@media (max-width: 768px) {
    .hero-mask {
        background: linear-gradient(to bottom, rgba(255,255,255,0.8), rgba(255,255,255,0.4));
    }
}

img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

main {
    flex: 1;
}

/* Enforce NO rounded corners normally, but allow specific overrides */
*, *::before, *::after {
    border-radius: 0 !important;
}

.rounded-override {
    border-radius: 0.5rem !important; /* Forces rounded-lg specifically for optimized buttons */
}

/* Utility to remove focus outline ring, replaced by bold solid borders when needed */
*:focus {
    outline: none !important;
    box-shadow: none !important;
    border-color: #2563EB !important;
}

/* Base Parallax Container for Heros */
/* DNA Animation Canvas Layering */
.canvas-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

/* Ensure Hero and Footer are above the animation */
.parallax-hero, footer {
    position: relative;
    z-index: 20;
}

/* Global Background Pattern: Dedicated Stationary Watermark */
.site-watermark {
    position: fixed;
    inset: 0;
    background-image: url('../assets/logo.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 20% auto;
    opacity: 0.04;
    pointer-events: none;
    z-index: -1; 
}

/* Global Background Pattern: Legacy class (retained for safety but cleaned) */
.bg-global-pattern {
    background-color: transparent;
    background-image: none !important; /* No longer used locally */
    position: relative;
    z-index: 10;
}

/* New Washed Background System */
.washed-bg {
    position: relative;
    overflow: hidden;
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.washed-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: transparent; /* Completely visible background photos */
    z-index: 0;
}

.hero-text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.washed-bg > * {
    position: relative;
    z-index: 10;
}

.canvas-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

/* Simple medical themed SVG Pattern for hero backgrounds (legacy support) */
.bg-medical-pattern {
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%232563eb' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Custom animations for dynamic feel without breaking severity of medical aesthetics */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.8s ease-in-out forwards;
}

/* Watermark Utility (Legacy - preferring .bg-global-pattern) */
.watermark-container {
    position: relative;
    overflow: hidden;
}
.watermark-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../assets/logo.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 50%;
    opacity: 0.04;
    pointer-events: none;
    z-index: 0;
}
.watermark-container > * {
    position: relative;
    z-index: 10;
}

/* Contour Topographical Background (Deprecated) */
.bg-contour-pattern {
    background-color: #F3F4F6 !important;
    background-image: repeating-radial-gradient(circle at center, transparent 0, transparent 40px, rgba(37, 99, 235, 0.09) 40px, rgba(37, 99, 235, 0.09) 42px) !important;
}

/* DNA Hexagonal Grid SVG Pattern (Legacy) */
.bg-dna-pattern {
    background-color: #F3F4F6 !important;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='103.923' viewBox='0 0 60 103.923' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0l25.98 15v30L30 60 4.02 45V15z' fill='none' stroke='%232563EB' stroke-width='2' stroke-opacity='0.10'/%3E%3Cpath d='M30 103.923l25.98-15v-30L30 43.923l-25.98 15v30z' fill='none' stroke='%232563EB' stroke-width='2' stroke-opacity='0.10'/%3E%3C/svg%3E") !important;
    background-size: 60px 103.923px !important;
}
