@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Outfit';
    src: url('../fonts/Outfit-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Outfit';
    src: url('../fonts/Outfit-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary-sterile-white: #ffffff;
    --primary-medical-blue: #0b192c;
    --primary-biotech-cyan: #00d2ff;
    --primary-graphite-gray: #1a1f2b;
    --primary-lab-silver: #e2e8f0;
    
    --accent-glow-scan: rgba(0, 210, 255, 0.6);
    --accent-molecular-teal: #00e5ff;
    --accent-scientific-green: #00ffaa;
    
    --text-main: #94a3b8;
    --text-heading: #f8fafc;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--primary-medical-blue);
    color: var(--text-main);
}

/* Lenis Recommended CSS Boilerplate */
html.lenis, html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}
.lenis.lenis-smooth iframe {
  pointer-events: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-heading);
}

/* Override Bootstrap text-muted for dark theme */
.text-muted {
    color: var(--text-main) !important;
}

a {
    text-decoration: none;
    color: var(--primary-biotech-cyan);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-molecular-teal);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--primary-medical-blue);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-graphite-gray);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-biotech-cyan);
}

/* UI Elements */
.precision-btn {
    display: inline-block;
    padding: 12px 32px;
    background: transparent;
    border: 1px solid var(--primary-biotech-cyan);
    color: var(--primary-biotech-cyan);
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 0.4s ease;
}

.precision-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 210, 255, 0.2), transparent);
    z-index: -1;
    transition: left 0.4s ease;
}

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

.precision-btn:hover {
    color: var(--primary-sterile-white);
    background: rgba(0, 210, 255, 0.1);
    box-shadow: 0 0 15px var(--accent-glow-scan);
}

/* Navbar */
.navbar {
    background: rgba(11, 25, 44, 0.8) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px 0;
}
.navbar-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-sterile-white) !important;
    font-size: 1.5rem;
    letter-spacing: 1px;
}
.navbar-brand span {
    color: var(--primary-biotech-cyan);
}
.nav-link {
    color: var(--primary-lab-silver) !important;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 10px;
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-biotech-cyan);
    transition: width 0.3s ease;
}
.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* Dropdown Styling */
.dropdown-menu {
    background: rgba(11, 25, 44, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 210, 255, 0.2);
    border-radius: 8px;
    padding: 10px 0;
}
.dropdown-item {
    color: var(--text-main);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 20px;
    transition: all 0.3s ease;
}
.dropdown-item:hover, .dropdown-item.active {
    background: rgba(0, 210, 255, 0.1);
    color: var(--primary-biotech-cyan);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px;
}
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/hero_bg.png');
    background-size: cover;
    background-position: center;
    z-index: -2;
    opacity: 0.4;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(11, 25, 44, 0.9) 0%, rgba(26, 31, 43, 0.7) 100%);
    z-index: -1;
}
.hero-title {
    font-size: 5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, var(--primary-biotech-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-subtitle {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 40px;
    color: var(--primary-lab-silver);
}
.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-glow-scan);
    box-shadow: 0 0 10px var(--primary-biotech-cyan);
    z-index: 10;
    opacity: 0;
}

/* Page Header for Inner Pages */
.page-header {
    margin-top: 80px;
    position: relative;
    background-image: url('../images/hero_bg.png');
    background-size: cover;
    background-position: center;
    padding: 120px 0;
}
.page-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(11, 25, 44, 0.9) 0%, rgba(26, 31, 43, 0.8) 100%);
    z-index: 0;
}
.page-header > .container {
    z-index: 1;
    position: relative;
}

/* Modules/Sections */
.section-padding {
    padding: 100px 0;
}
.section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
}
.section-subtitle {
    font-size: 1rem;
    color: var(--primary-biotech-cyan);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 10px;
    display: block;
}

/* Diagnostic Cards */
.diagnostic-card {
    background: var(--primary-graphite-gray);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 30px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    height: 100%;
}
.diagnostic-card:hover {
    border-color: rgba(0, 210, 255, 0.3);
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.diagnostic-icon {
    font-size: 3rem;
    color: var(--primary-biotech-cyan);
    margin-bottom: 20px;
}
.diagnostic-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}
.diagnostic-card p {
    color: var(--text-main);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Grid overlay effect */
.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
    z-index: -1;
}

/* Footer */
.footer {
    background: #060e1a;
    padding: 80px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.footer-title {
    color: var(--primary-sterile-white);
    font-size: 1.2rem;
    margin-bottom: 25px;
    font-family: var(--font-heading);
}
.footer-links {
    list-style: none;
    padding: 0;
}
.footer-links li {
    margin-bottom: 12px;
}
.footer-links a {
    color: var(--text-main);
    transition: all 0.3s ease;
}
.footer-links a:hover {
    color: var(--primary-biotech-cyan);
    padding-left: 5px;
}
.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    margin-top: 50px;
    text-align: center;
    font-size: 0.9rem;
}

/* Gallery styling */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 30px;
}
.gallery-item img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}
.gallery-item:hover img {
    transform: scale(1.05);
}
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 25, 44, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.gallery-item:hover .gallery-overlay {
    opacity: 1;
}
.gallery-icon {
    color: var(--primary-sterile-white);
    font-size: 2rem;
}
