/* ===== CSS Variables & Design System ===== */
:root {
    /* Color Palette - HemoScan Theme (Rich Red/Rose) */
    --bg-primary: #FFF0F5;
    /* Soft light background */
    /* --bg-primary: #FFFFFF; Changed to White to ensure transparent images show up correctly if they have white text */

    --bg-card: #FFFFFF;
    /* Pure White for Cards */

    --text-heading: #080A30;
    /* Deep Navy Blue (Primary - keeps brand consistency) */
    --text-body: #333333;
    /* Soft Black/Dark Gray */
    --text-on-dark: #FFFFFF;
    /* White on dark backgrounds */

    --text-accent: #E11D48;
    /* Primary Brand Red (Rose 600) - Distinct for HemoScan */
    --text-accent-hover: #BE123C;
    /* Darker Red for hover */

    --border-subtle: rgba(8, 10, 48, 0.15);

    /* Spacing & Layout */
    --nav-height: 65px;
    --container-width: 1200px;
    --gap-sm: 10px;
    --gap-md: 24px;
    --gap-lg: 48px;

    /* Typography - Poppins */
    --font-main: 'Poppins', sans-serif;
    --line-height-body: 1.5;

    /* Effects */
    --shadow-soft: 0 4px 6px -1px rgba(225, 29, 72, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    /* Red-tinted shadow */
    --radius-default: 8px;

    --transition-base: 0.2s ease;
}

/* ===== Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-primary);
    color: var(--text-body);
    line-height: var(--line-height-body);
    font-weight: 400;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-main);
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: var(--gap-sm);
    line-height: 1.25;
}

p {
    font-weight: 400;
    color: var(--text-body);
    margin-bottom: var(--gap-sm);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--gap-md);
}

/* ===== Navigation Bar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background-color: var(--bg-primary);
    /* Matches bg */
    border-bottom: 1px solid var(--border-subtle);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 40px;
    height: 100%;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    height: 100%;
    text-decoration: none;
    z-index: 10;
}

.company-logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
}


.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
    height: 100%;
    margin: 0;
    padding: 0;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-heading);
    position: relative;
    padding-bottom: 2px;
    display: flex;
    align-items: center;
}

/* Hover Effect */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--text-accent);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-accent);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none !important;
    /* Always hidden - no mobile menu */
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-heading);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover span {
    background-color: var(--text-accent);
}

/* ===== Hero Section ===== */
.hero {
    padding-top: 0 !important;
    /* No padding at top */
    padding-bottom: 10px;
    display: block;
    margin-top: var(--nav-height) !important;
    /* Push down below fixed navbar */
    position: relative;
    z-index: 1;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: -10px !important;
    /* Pull up tight to logo */
}

.hero-text {
    flex: 0.8;
}

.hero-title {
    font-size: 2.5rem;
    letter-spacing: -0.5px;
    line-height: 1.2;
    margin-top: 0 !important;
    /* No space above title */
    margin-bottom: 20px;
    /* Reduced spacing */
}

.hero-title span.gradient-text {
    font-size: 1.3em;
    display: inline-block;
    /* Changed from block to inline-block */
    /* line-height: 1.1; */
    margin-bottom: 0px;
    background: linear-gradient(135deg, var(--text-accent) 0%, #9F1239 100%);
    /* Red gradient */
    -webkit-background-clip: text;
    background-clip: text;
    /* Added standard property */
    -webkit-text-fill-color: transparent;
    white-space: nowrap;
    /* Prevent wrapping */
}

.hero-subheading {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-body);
    margin: 0 0 6px 0;
    line-height: 1.4;
    white-space: nowrap;
}

.hero-description {
    font-size: 1.125rem;
    margin-bottom: 32px;
    max-width: 580px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 24px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--text-accent);
    color: white;
    box-shadow: 0 4px 6px rgba(225, 29, 72, 0.2);
}

.btn-primary:hover {
    background-color: var(--text-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(225, 29, 72, 0.3);
}

.btn-secondary {
    background-color: white;
    border-color: var(--border-subtle);
    color: var(--text-heading);
}

.btn-secondary:hover {
    border-color: var(--text-accent);
    color: var(--text-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.hero-stats {
    display: flex;
    gap: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-heading);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-body);
}

.hero-image {
    flex: 1.6;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    max-width: 100%;
    padding: 0;
    position: relative;
    pointer-events: auto;
    /* Changed to auto to detect hover */
}

.hero-image .tray-image {
    position: absolute;
    bottom: 50px;
    /* Aligned hinge point to the bottom of the device */
    right: 20px;
    width: 260px;
    z-index: 1;
    opacity: 1;
    transform-origin: left bottom;
    /* Hinge point at the bottom left of the tray */
    transform: rotate(0deg);
    transition: transform 1.5s ease-in-out;
    pointer-events: none;
    will-change: transform;
    /* Optimizes for transform changes only */
}

.hero-image:has(.product-image:hover) .tray-image {
    transform: rotate(90deg);
    /* Only rotates when hovering directly on the product image */
}

.hero-image .product-image {
    width: 280px;
    height: auto;
    max-width: 100%;
    animation: float 4s ease-in-out infinite;
    filter: drop-shadow(0 25px 40px rgba(0, 0, 0, 0.35)) drop-shadow(0 10px 15px rgba(0, 0, 0, 0.25));
    margin-left: 20px;
    margin-top: 0;
    position: relative;
    z-index: 2;
    pointer-events: auto;
    cursor: pointer;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* ===== Section Titles ===== */
.section-title {
    font-size: 2.25rem;
    text-align: center;
    margin-bottom: 16px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--text-accent) 0%, #9F1239 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
}

/* ===== Features Section ===== */
.features {
    padding: 60px 0 60px 0;
    margin-top: 0px;
}

.features-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}

.feature-card {
    flex: 1 1 300px;
    background-color: var(--bg-card);
    padding: 32px;
    border-radius: var(--radius-default);
    border: 1px solid var(--border-subtle);
    transition: all 0.3s ease;
    cursor: default;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--text-accent);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background-color: #FFF0F5;
    /* Light pink background for icons */
    color: var(--text-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.25rem;
}

.feature-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

/* ===== Overview & Parameters ===== */
.overview,
.parameters,
.specifications,
.contact {
    padding: 80px 0;
    border-top: 1px solid var(--border-subtle);
}

.overview,
.specifications,
.contact {
    background-color: white;
}

.overview-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.highlight-icon {
    color: var(--text-accent);
    font-weight: bold;
}

/* Parameters Specific */
.parameters-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.param-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.param-card-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #FFF0F5;
    /* Light pink header */
}

.param-badge {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    background-color: white;
    border: 1px solid var(--border-subtle);
    color: var(--text-accent);
}

.param-details {
    padding: 32px;
}

.param-list li {
    background-color: #f8fafc;
    padding: 12px 16px;
    /* Slightly larger padding */
    margin-bottom: 8px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.param-list li:before {
    content: '•';
    color: var(--text-accent);
    font-weight: bold;
    font-size: 1.2em;
}

/* Specs Table */
.spec-table-wrapper {
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    overflow: hidden;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
}

.spec-table tr {
    border-bottom: 1px solid var(--border-subtle);
}

.spec-label {
    padding: 16px 24px;
    font-weight: 600;
    background-color: #FFF0F5;
    /* Light pink */
    width: 35%;
    color: var(--text-heading);
}

.spec-value {
    padding: 16px 24px;
    color: var(--text-body);
}

/* Contact */
.contact {
    background-color: var(--bg-primary);
    padding: 60px 0;
}

.contact-details {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 200px;
}

.contact-icon {
    width: 64px;
    height: 64px;
    background-color: #FFFFFF;
    color: var(--text-accent);
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    /* Slight shadow for lift */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}


/* Footer */
.footer {
    padding: 40px 0;
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-subtle);
    text-align: center;
}

.footer-bottom {
    margin-top: 24px;
    font-size: 0.85rem;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* Hide default nav */
        position: absolute;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        padding: 24px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    /* Mobile menu toggle removed */

    .hero-content {
        flex-direction: column;
        /* Text first, then image */
        text-align: center;
        align-items: center !important;
        gap: 30px !important;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
    }

    .features-grid {
        flex-direction: column;
    }

    .hero-title {
        font-size: 1.7rem !important;
        line-height: 1.3 !important;
    }

    .hero-title span.gradient-text {
        white-space: normal !important;
        font-size: 1em !important;
        display: block !important;
    }

    .hero-subheading {
        font-size: 1.2rem !important;
        white-space: normal !important;
        line-height: 1.4 !important;
    }

    .hero-description {
        font-size: 1rem !important;
        padding: 0 10px !important;
        /* Increased side padding for 'poem' look */
        line-height: 1.6 !important;
        max-width: 100% !important;
    }

    .hero-text {
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
    }

    .hero-image {
        width: 100% !important;
        max-width: 100% !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .hero-image .product-image {
        width: 200px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        animation: none !important;
        /* No floating animation on mobile */
        pointer-events: none !important;
        /* No hover/click interactions on mobile */
    }

    /* Completely hide tray on mobile, no interaction */
    .hero-image .tray-image {
        display: none !important;
    }

    .container {
        padding: 0 20px;
    }
}