/* --- Variables & Reset (Premium Tech Theme) --- */
:root {
    /* Color Palette */
    --primary-bg: #F5F7FA;
    /* Light Blue-Grey Background */
    --secondary-bg: #FFFFFF;
    /* White for Cards/Sections */

    /* Vibrant Gradients */
    --gradient-primary: linear-gradient(135deg, #0061ff 0%, #60efff 100%);
    --gradient-dark: linear-gradient(135deg, #001a2c 0%, #004e80 100%);

    --primary-blue: #0061ff;
    /* Electric Blue */
    --brand-navy: #001a2c;
    --accent-cyan: #00d4ff;

    --text-main: #2c3e50;
    /* Deep Blue Grey */
    --text-muted: #546e7a;
    --text-light: #FFFFFF;

    --border-color: #E6E9EF;

    /* Modern Shadows */
    --card-shadow: 0 10px 30px rgba(0, 97, 255, 0.05);
    /* Blue-tinted shadow */
    --card-hover-shadow: 0 20px 40px rgba(0, 97, 255, 0.15);

    /* Typography */
    --font-head: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;

    /* Spacing & Layout */
    --container-width: 1200px;
    --section-padding: 100px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--primary-bg);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-head);
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--brand-navy);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: var(--section-padding) 0;
}

.text-center {
    text-align: center;
}

/* --- Typography Utilities --- */
.text-stroke {
    /* For light theme, outline might look odd, prefer solid accent color */
    color: var(--accent-cyan);
    -webkit-text-stroke: 0;
}

.sub-heading {
    display: block;
    color: var(--accent-cyan);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 15px;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

.lead {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin: 20px 0;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 15px 35px;
    border: none;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    font-family: var(--font-head);
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border-radius: 50px;
    /* Modern Pill Shape */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: var(--gradient-primary);
    color: #FFFFFF;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 97, 255, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid #FFFFFF;
    color: #FFFFFF;
    margin-left: 20px;
}

.btn-outline:hover {
    background: #FFFFFF;
    color: var(--primary-blue);
}

/* --- Header & Nav --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
}

.logo img {
    max-height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--brand-navy);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-blue);
    position: relative;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-primary);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    background-color: var(--dark-navy);
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    transition: 0.3s;
}

/* --- Hero Section --- */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: url('../images/hero-bg.png');
    /* Updated to PNG */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
    color: #FFFFFF;
    /* Text stays white on hero image */
}

/* Overlay for Hero Text Readability */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 43, 73, 0.5), rgba(0, 43, 73, 0.4));
    /* Lighter overlay for visibility */
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-section h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    line-height: 1.1;
    color: #FFFFFF;
}

.hero-section p {
    font-size: 1.5rem;
    color: #E0E0E0;
    max-width: 800px;
    margin: 0 auto 40px;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #FFFFFF;
    font-size: 2rem;
    animation: bounce 2s infinite;
    z-index: 2;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translate(-50%, 0);
    }

    40% {
        transform: translate(-50%, -10px);
    }

    60% {
        transform: translate(-50%, -5px);
    }
}

/* --- About Section --- */
.about-section {
    background-color: var(--secondary-bg);
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.stats-row {
    display: flex;
    gap: 50px;
    margin-top: 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-head);
    font-size: 3.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    /* Gradient Text */
    display: inline-block;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-top: 5px;
}

.image-wrapper {
    position: relative;
    padding-bottom: 70%;
    /* Aspect Ratio */
    background: #fff;
    border-radius: 20px;
    /* Softer rounded corners */
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.placeholder-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-muted);
    font-size: 1.2rem;
    background: #EAEAEA;
}

.placeholder-content i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--primary-blue);
}

/* --- Products Section --- */
.products-section {
    background-color: var(--primary-bg);
    /* Light Grey */
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.product-card {
    background: #FFFFFF;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 40px;
    transition: all 0.4s ease;
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
    border-bottom: 4px solid var(--primary-blue);
}

.product-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--card-hover-shadow);
}

.card-icon i {
    font-size: 3rem;
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 25px;
}

.product-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: var(--brand-navy);
}

.product-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 25px;
}

.product-card ul {
    margin-bottom: 30px;
}

.product-card li {
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--text-main);
}

.product-card li i {
    color: var(--accent-cyan);
    margin-right: 10px;
}

.read-more {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    color: var(--primary-blue);
}

.read-more i {
    margin-left: 5px;
    transition: transform 0.3s;
}

.read-more:hover i {
    transform: translateX(5px);
}

/* --- Tech Section (EHR) --- */
.tech-section {
    position: relative;
    background-color: var(--secondary-bg);
    /* White */
    display: flex;
    align-items: center;
    min-height: 600px;
}

.tech-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('../images/tech-bg.png');
    /* Updated to PNG */
    background-size: cover;
    background-position: center;
    z-index: 0;
}



.tech-content {
    position: relative;
    z-index: 1;
    width: 50%;
    padding-right: 50px;
}

.tech-content h2 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.tech-content h3 {
    color: var(--primary-blue);
    margin-bottom: 25px;
}

.features-list {
    margin-top: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.feature {
    display: flex;
    gap: 15px;
}

.feature i {
    font-size: 2rem;
    color: var(--accent-cyan);
}

.feature h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--dark-navy);
}

.feature p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* --- Footer (Light Theme) --- */
.main-footer {
    background-color: #FFFFFF;
    color: var(--text-main);
    padding-top: 80px;
    border-top: 1px solid var(--border-color);
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 60px;
}

.footer-col h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--brand-navy);
    /* Dark text for headers */
}

.footer-col h4 {
    color: var(--primary-blue);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-col p,
.footer-col a {
    color: var(--text-muted);
    /* Muted dark text */
    font-size: 0.95rem;
    margin-bottom: 10px;
    display: block;
}

.footer-col a:hover {
    color: var(--primary-blue);
    padding-left: 5px;
    /* Subtle hover effect */
}

.social-links {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #F5F7FA;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--primary-blue);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--gradient-primary);
    color: #FFFFFF;
    border-color: transparent;
    transform: translateY(-3px);
}

.footer-bottom {
    background-color: #F5F7FA;
    /* Slightly different for bottom bar */
    border-top: 1px solid var(--border-color);
    padding: 20px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- Animations --- */
.animate-up,
.animate-left,
.animate-right {
    opacity: 0;
    transition: all 0.8s ease-out;
}

.animate-up {
    transform: translateY(50px);
}

.animate-left {
    transform: translateX(-50px);
}

.animate-right {
    transform: translateX(50px);
}

.animate-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.animate-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: 1fr 1fr;
    }

    .tech-bg {
        width: 100%;
        height: 400px;
        position: relative;
        margin-bottom: 40px;
    }

    .tech-section {
        flex-direction: column-reverse;
    }

    .tech-content {
        width: 100%;
        padding: 0;
    }

    .split-layout {
        grid-template-columns: 1fr;
    }

    .hamburger {
        display: block;
        z-index: 1001;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: #FFFFFF;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .hamburger.active span {
        background: var(--dark-navy);
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-btns {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .btn-outline {
        margin: 0;
        border-color: var(--primary-blue);
        color: var(--primary-blue);
    }

    .btn-outline:hover {
        background: var(--primary-blue);
        color: #fff;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .stats-row {
        justify-content: center;
    }
}

/* --- Sub-Page Specific Styles --- */

/* Specific Page Backgrounds */
.about-bg {
    background: url('../images/about-bg.png');
    background-size: cover;
    background-position: center;
}

.products-bg {
    background: url('../images/products-bg.png');
    background-size: cover;
    background-position: center;
}

.contact-bg {
    background: url('../images/contact-bg.png');
    background-size: cover;
    background-position: center;
}

.tech-bg-header {
    background: url('../images/tech-header-bg.png');
    background-size: cover;
    background-position: center;
}

/* Page Header */
.page-header {
    height: 50vh;
    min-height: 350px;
    /* Background is handled by specific classes above, fallback below */
    background-color: #002B49;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 60px;
    /* Offset fixed header */
    color: #FFFFFF;
    position: relative;
    /* For overlay if needed */
}

/* Ensure text is readable on images */
.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 43, 73, 0.6);
    /* Blue overlay */
    z-index: 0;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #FFFFFF;
}

/* Breadcrumbs */
.breadcrumbs {
    color: #CCCCCC;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.breadcrumbs a {
    color: #FFFFFF;
}

.breadcrumbs a:hover {
    color: var(--accent-cyan);
}

.breadcrumbs span {
    margin: 0 10px;
    color: var(--accent-cyan);
}

/* Contact Form */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--dark-navy);
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 15px;
    background: #F9F9F9;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s;
    border-radius: 4px;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-blue);
    background: #FFFFFF;
    box-shadow: 0 0 5px rgba(0, 78, 128, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

/* Contact Info Box */
.contact-info-box {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    padding: 40px;
    box-shadow: var(--card-shadow);
    border-radius: 8px;
}

.info-item {
    margin-bottom: 30px;
    display: flex;
    gap: 20px;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-top: 5px;
}

.info-item h4 {
    margin-bottom: 5px;
    color: var(--dark-navy);
}

.info-item p {
    color: var(--text-muted);
}

/* Map placeholder */
.map-container {
    margin-top: 30px;
    height: 300px;
    width: 100%;
    background-color: #EAEAEA;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    border-radius: 8px;
}

/* Tables */
.tech-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #FFFFFF;
    box-shadow: var(--card-shadow);
    border-radius: 8px;
    overflow: hidden;
}

.tech-table th,
.tech-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

.tech-table th {
    background: var(--secondary-bg);
    color: var(--dark-navy);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.tech-table tr:hover {
    background: #F9F9F9;
}

/* Timeline (Clean Light Version) */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    /* Thicker line */
    background-color: var(--border-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    right: -12px;
    background-color: #FFFFFF;
    border: 4px solid var(--primary-blue);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-left {
    left: 0;
}

.timeline-right {
    left: 50%;
}

.timeline-left::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    right: 30px;
    border: medium solid white;
    /* Arrow points to white card */
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent #FFFFFF;
    filter: drop-shadow(1px 0 1px rgba(0, 0, 0, 0.05));
}

.timeline-right::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    left: 30px;
    border: medium solid white;
    border-width: 10px 10px 10px 0;
    border-color: transparent #FFFFFF transparent transparent;
    filter: drop-shadow(-1px 0 1px rgba(0, 0, 0, 0.05));
}

.timeline-right::after {
    left: -12px;
}

.timeline-content {
    padding: 25px 30px;
    background-color: #FFFFFF;
    position: relative;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
}

.timeline-content h3 {
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.timeline-content p {
    color: var(--text-muted);
}

@media screen and (max-width: 600px) {
    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item::before {
        left: 60px;
        border: medium solid white;
        border-width: 10px 10px 10px 0;
        border-color: transparent #FFFFFF transparent transparent;
    }

    .timeline-left::after,
    .timeline-right::after {
        left: 19px;
    }

    .timeline-right {
        left: 0%;
    }
}