@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700&display=swap');

:root {
    --primary-color: #0d47a1;
    --secondary-color: #00bcd4;
    --accent-color: #64ffda;
    --dark-bg: #0a192f;
    --light-bg: #f8faff;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.3);
    --text-main: #2d3436;
    --text-muted: #636e72;
    --lab-gradient: linear-gradient(135deg, #0d47a1 0%, #00bcd4 100%);
    --lab-glow: 0 0 20px rgba(0, 188, 212, 0.4);
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--light-bg);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

/* --- Layout Utilities --- */
.section-padding {
    padding: 100px 0;
}

.lab-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.lab-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary-color);
    box-shadow: var(--lab-glow);
}

/* --- Navbar --- */
.navbar {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    padding: 180px 0 120px;
    background: var(--dark-bg);
    color: white;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/hero.png') no-repeat center center/cover;
    opacity: 0.3;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-overlay-text {
    background: -webkit-linear-gradient(var(--secondary-color), var(--accent-color));
    background: linear-gradient(var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Buttons --- */
.btn-lab {
    background: var(--lab-gradient);
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-lab:hover {
    transform: scale(1.05);
    box-shadow: var(--lab-glow);
    color: white;
}

.btn-lab-outline {
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    padding: 10px 28px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-lab-outline:hover {
    background: var(--secondary-color);
    color: white;
}

/* --- Service Icons --- */
.service-icon {
    width: 70px;
    height: 70px;
    background: rgba(0, 188, 212, 0.1);
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 2rem;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.lab-card:hover .service-icon {
    background: var(--secondary-color);
    color: white;
}

/* --- Laboratory Grid Background Animation --- */
.lab-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 188, 212, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 188, 212, 0.07) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
    animation: gridDrift 20s linear infinite;
}

@keyframes gridDrift {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 50px 50px;
    }
}

/* --- Nav link hover underline effect --- */
.navbar-nav .nav-link {
    position: relative;
    font-weight: 500;
    color: #2d3436;
    padding-bottom: 4px;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 80%;
}

/* --- Hero heading pulse glow --- */
.hero-overlay-text {
    animation: textGlow 3s ease-in-out infinite alternate;
}

@keyframes textGlow {
    from {
        filter: brightness(1);
    }

    to {
        filter: brightness(1.3) drop-shadow(0 0 12px rgba(100, 255, 218, 0.5));
    }
}

/* --- Lab Card stagger animation helper --- */
.lab-card:nth-child(1) {
    transition-delay: 0s;
}

.lab-card:nth-child(2) {
    transition-delay: 0.05s;
}

.lab-card:nth-child(3) {
    transition-delay: 0.10s;
}

.lab-card:nth-child(4) {
    transition-delay: 0.15s;
}

.lab-card:nth-child(5) {
    transition-delay: 0.20s;
}

.lab-card:nth-child(6) {
    transition-delay: 0.25s;
}

/* --- Pricing highlighted card --- */
.pricing-featured {
    background: linear-gradient(145deg, #0d47a1, #00bcd4);
    color: white;
    border: none !important;
}

.pricing-featured h5,
.pricing-featured h2,
.pricing-featured li {
    color: white !important;
}

.pricing-featured .text-muted {
    color: rgba(255, 255, 255, 0.75) !important;
}

/* --- Smooth page transitions --- */
body {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Breadcrumb styling --- */
.breadcrumb-item+.breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.4);
}

/* --- Footer --- */
footer {
    background: var(--dark-bg);
    color: white;
    padding: 80px 0 20px;
}

.footer-link {
    color: #a0aec0;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    margin-bottom: 10px;
}

.footer-link:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--secondary-color);
}

/* --- Subject Badge --- */
.subject-badge {
    padding: 8px 15px;
    background: white;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    margin: 5px;
    display: inline-block;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.subject-badge:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-3px);
}

/* --- Stats --- */
.stat-box {
    text-align: center;
    border-right: 1px solid var(--glass-border);
}

.stat-box:last-child {
    border-right: none;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary-color);
    display: block;
}

/* =========================================================
   HERO GLASS PANEL — Premium Transparent Card
   ========================================================= */

/* Outer container */
.hero-glass-panel {
    position: relative;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 36px 32px 28px;
    text-align: center;
    box-shadow:
        0 0 0 1px rgba(0, 188, 212, 0.12),
        0 30px 60px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    overflow: hidden;
    /* Animated border shimmer */
    animation: panelEntrance 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* Subtle top-edge cyan accent line */
.hero-glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
    border-radius: 0 0 4px 4px;
}

@keyframes panelEntrance {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* --- Stat row --- */
.hero-stat-row {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 28px;
}

.hero-stat-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    padding: 8px 16px;
    color: white;
    font-size: 0.82rem;
    transition: background 0.3s ease;
}

.hero-stat-chip:hover {
    background: rgba(0, 188, 212, 0.15);
    border-color: rgba(0, 188, 212, 0.4);
}

.hero-stat-chip i {
    font-size: 1rem;
    color: var(--secondary-color);
}

.hero-stat-chip strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.1;
    color: white;
}

.hero-stat-chip span {
    display: block;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1;
}

/* --- Glowing icon ring --- */
.hero-icon-ring {
    position: relative;
    width: 90px;
    height: 90px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1.5px solid rgba(0, 188, 212, 0.4);
    background: rgba(0, 188, 212, 0.07);
}

.hero-icon-ring i {
    font-size: 2.4rem;
    color: var(--secondary-color);
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 10px rgba(0, 188, 212, 0.6));
    animation: iconFloat 3s ease-in-out infinite;
}

.hero-icon-glow {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(0, 188, 212, 0.2) 0%, transparent 70%);
    animation: glowPulse 2.5s ease-in-out infinite;
}

@keyframes iconFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.15);
    }
}

/* --- Trust list --- */
.hero-trust-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    text-align: left;
}

.hero-trust-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-trust-list li:last-child {
    border-bottom: none;
}

.hero-trust-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    background: rgba(0, 188, 212, 0.12);
    border: 1px solid rgba(0, 188, 212, 0.25);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    font-size: 0.95rem;
    margin-top: 2px;
}

.hero-trust-list li div strong {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1px;
}

.hero-trust-list li div p {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
    line-height: 1.3;
}

/* --- Panel CTA button --- */
.hero-panel-cta {
    display: inline-block;
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #0d47a1, #00bcd4);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 20px rgba(0, 188, 212, 0.25);
    margin-bottom: 16px;
}

.hero-panel-cta:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 188, 212, 0.45);
}

/* --- Live indicator badge --- */
.hero-live-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.3px;
}

.hero-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4caf50;
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4);
    animation: livePing 1.5s ease-in-out infinite;
}

@keyframes livePing {
    0% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(76, 175, 80, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}

/* ========================================================= */

@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }

    .hero-section {
        padding: 120px 0 60px;
    }

    .stat-box {
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
        padding: 20px 0;
    }

    .stat-box:last-child {
        border-bottom: none;
    }
}