/* --- Root & Reset --- */
:root {
    --primary: #007cba;
    --secondary: #5cb85c;
    --dark: #121619;
    --light-bg: #f9fbff;
    --text: #334155;
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'IBM Plex Sans', sans-serif;
    color: var(--text);
    line-height: 1.6;
    background-color: #fff;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* --- Navigation --- */
.navbar {
    height: 80px;
    display: flex;
    align-items: center;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo { font-size: 1.5rem; font-weight: 700; text-decoration: none; color: var(--dark); }
.logo span { color: var(--primary); }

.nav-menu { display: flex; list-style: none; align-items: center; gap: 30px; }
.nav-menu a { text-decoration: none; color: var(--text); font-weight: 600; font-size: 0.95rem; }
.nav-menu a:hover { color: var(--primary); }

.github-btn {
    background: var(--dark);
    color: #fff !important;
    padding: 8px 18px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* --- Mobile Menu Toggle --- */
.nav-toggle { display: none; }
.nav-toggle-label { display: none; cursor: pointer; }

/* --- Hero Section --- */
.hero { padding: 80px 0; background: var(--light-bg); overflow: hidden; }
.grid-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }

.tagline { color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: 0.85rem; }
.hero-text h1 { font-size: 3.5rem; line-height: 1.1; margin: 15px 0 25px; color: var(--dark); }
.hero-text p { font-size: 1.2rem; margin-bottom: 35px; color: #64748b; }

.hero-actions { display: flex; gap: 15px; }

/* FHIR Badge Visualization */
.hero-visual { display: flex; justify-content: center; }
.fhir-badge {
    background: var(--dark);
    color: #fff;
    padding: 40px;
    border-radius: 50%;
    text-align: center;
    width: 250px;
    height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 8px solid #fff;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.fhir-badge i { font-size: 4rem; color: #ff6000; margin-bottom: 10px; }

/* --- Compliance Bar --- */
.compliance-bar { background: var(--secondary); color: white; padding: 20px 0; text-align: center; }
.compliance-content { display: flex; align-items: center; justify-content: center; gap: 15px; }
.compliance-content i { font-size: 1.5rem; }

/* --- Tech Cards --- */
.tech-stack { padding: 100px 0; }
.section-title { text-align: center; margin-bottom: 60px; font-size: 2.5rem; }
.tech-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }

.tech-card {
    padding: 40px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition: var(--transition);
}
.tech-card:hover { transform: translateY(-10px); box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); }
.tech-card i { font-size: 2.5rem; color: var(--primary); margin-bottom: 20px; }
.tech-card h3 { margin-bottom: 15px; font-size: 1.4rem; }

/* --- Buttons --- */
.btn { padding: 14px 28px; border-radius: 6px; text-decoration: none; font-weight: 700; transition: var(--transition); display: inline-block; }
.btn-primary { background: var(--primary); color: white; }
.btn-outline { border: 2px solid var(--primary); color: var(--primary); }
.btn:hover { opacity: 0.9; }

/* --- Footer --- */
.footer { background: var(--dark); color: #cbd5e1; padding: 60px 0 20px; }
.footer-grid { display: flex; justify-content: space-between; margin-bottom: 40px; }
.footer-links { display: flex; gap: 20px; font-size: 1.5rem; }
.footer-links a { color: #fff; }
.copyright { text-align: center; border-top: 1px solid #334155; padding-top: 20px; font-size: 0.85rem; }

/* --- Responsive Media Queries --- */

@media (max-width: 992px) {
    .hero-text h1 { font-size: 2.8rem; }
    .grid-hero { grid-template-columns: 1fr; text-align: center; }
    .hero-actions { justify-content: center; }
    .hero-visual { display: none; } /* Hide heavy graphic on mobile */
}

@media (max-width: 768px) {
    .nav-toggle-label { display: block; position: relative; width: 30px; height: 20px; }
    .nav-toggle-label span, .nav-toggle-label span::before, .nav-toggle-label span::after {
        content: ""; display: block; background: var(--dark); height: 3px; width: 100%; position: absolute; border-radius: 3px;
    }
    .nav-toggle-label span::before { top: -8px; }
    .nav-toggle-label span::after { top: 8px; }

    .nav-menu {
        position: absolute; top: 80px; left: 0; background: #fff; width: 100%; height: 0; overflow: hidden;
        flex-direction: column; transition: var(--transition); border-bottom: 1px solid #eee;
    }
    .nav-menu li { width: 100%; text-align: center; padding: 15px 0; }
    
    .nav-toggle:checked ~ .nav-menu { height: 300px; padding: 20px 0; }
    
    .hero-text h1 { font-size: 2.2rem; }
    .footer-grid { flex-direction: column; text-align: center; gap: 30px; }
}