/* =============================================
   Nike-inspired Dark Design System
   Dark teal palette, modern sans-serif typography
   ============================================= */

.hidden { display: none !important; }

:root {
    --bg:           #0a2c2e;
    --bg-card:      #1a3f42;
    --bg-dark:      #061a1c;
    --text:         #ffffff;
    --text-muted:   #a0b5b7;
    --accent:       #00d9d9;
    --accent-hover: #00ffff;
    --border:       #2a4f52;
    --surface:      #1a3f42;
    --surface-dark: #0f2729;
    --success:      #00d9d9;
    --danger:       #ff5757;
    --warning:      #ffa726;
    --shadow:       0 4px 16px rgba(0, 0, 0, 0.3);
    --shadow-lg:    0 8px 32px rgba(0, 0, 0, 0.4);
    --radius:       20px;
    --font-sans:    -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    scroll-padding-top: 94px; /* offset for fixed navbar */
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
    position: relative;
    padding-top: 94px;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../Background1.avif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    opacity: 0.75;
    z-index: -1;
    pointer-events: none;
}

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

/* =============================================
   Navigation Bar
   ============================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(6, 26, 28, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    box-shadow: var(--shadow);
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 24px;
}

.navbar-logo {
    margin-left: -70px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.navbar-logo img {
    height: 82px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
    padding: 8px;
    border-radius: 12px;
}

.navbar-logo:hover img {
    transform: scale(1.05);
}

.navbar-tagline {
    color: var(--text);
    font-size: 0.69rem;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.navbar-menu {
    list-style: none;
    display: flex;
    gap: 32px;
    margin: 0;
    padding: 0;
}

.navbar-menu li {
    margin: 0;
}

.navbar-menu a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 8px 12px;
    border-radius: 8px;
    display: block;
}

.navbar-menu a:hover {
    color: var(--accent);
    background: rgba(0, 217, 217, 0.1);
}

/* =============================================
   Header
   ============================================= */
header {
    background-color: rgba(6, 26, 28, 0.95);
    background-image: url('../HeartXray.jpg');
    background-size: cover;
    background-position: center;
    background-blend-mode: multiply;
    color: var(--text);
    padding: 48px 0 36px;
    text-align: center;
    border-bottom: 3px solid var(--accent);
    box-shadow: var(--shadow-lg);
}

header h1 {
    font-family: var(--font-sans);
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 12px;
    color: var(--text);
}

header h1::before { content: ''; }

header .subtitle {
    font-size: 1.25rem;
    color: var(--accent);
    letter-spacing: 0.5px;
    font-weight: 300;
}

/* =============================================
   Hero
   ============================================= */
.hero {
    text-align: center;
    margin: 64px 0 48px;
}

.hero h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* =============================================
   Cards
   ============================================= */
.modality-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
    margin-bottom: 80px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.card-icon {
    margin-bottom: 20px;
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 16px;
    display: block;
}

.card h3 {
    font-family: var(--font-sans);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
}

.card .description {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 16px;
    min-height: 48px;
}

.card .price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    margin: 20px 0;
    margin-top: auto;
}

/* =============================================
   Buttons
   ============================================= */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: var(--font-sans);
}

.btn-primary {
    background: var(--accent);
    color: var(--bg-dark);
    box-shadow: 0 4px 12px rgba(0, 217, 217, 0.3);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 217, 217, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
}

.btn-secondary:hover {
    background: var(--accent);
    color: var(--bg-dark);
}

/* =============================================
   How It Works
   ============================================= */
.info-section {
    margin-bottom: 80px;
}

.info-section h2 {
    font-family: var(--font-sans);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 48px;
    text-align: center;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
}

.step {
    text-align: center;
    padding: 24px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.step:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.step-number {
    width: 64px;
    height: 64px;
    background: var(--accent);
    color: var(--bg-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 auto 16px;
    box-shadow: 0 4px 12px rgba(0, 217, 217, 0.3);
}

.step h4 {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.step p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* =============================================
   Sample Report
   ============================================= */
.sample-report {
    margin-bottom: 80px;
}

.sample-report h2 {
    font-family: var(--font-sans);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
    text-align: center;
}

.sample-report-intro {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 32px;
}

.report-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-card);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.report-header {
    background: var(--bg-dark);
    color: var(--text);
    padding: 24px 32px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    border-bottom: 3px solid var(--accent);
}

.report-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.95rem;
}

.report-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 1px;
}

.report-body {
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.report-section h4 {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 10px;
}

.report-section p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.report-footer {
    padding: 16px 32px;
    background: var(--surface-dark);
    border-top: 1px solid var(--border);
    text-align: center;
}

.report-badge {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-muted);
    border: 2px solid var(--border);
    padding: 6px 16px;
    border-radius: 50px;
    display: inline-block;
}

/* =============================================
   FAQ
   ============================================= */
.faq {
    margin-bottom: 80px;
}

.faq h2 {
    font-family: var(--font-sans);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 32px;
    text-align: center;
}

.faq-item {
    background: var(--bg-card);
    padding: 24px 28px;
    margin-bottom: 16px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--accent);
}

.faq-item h4 {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
}

.faq-item h4::before {
    content: '';
}

.faq-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* =============================================
   Footer
   ============================================= */
footer {
    background: var(--bg-dark);
    color: var(--text-muted);
    padding: 40px 0;
    text-align: center;
    border-top: 2px solid var(--border);
    margin-top: 80px;
}

footer p {
    margin: 8px 0;
    font-size: 0.9rem;
}

footer a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* =============================================
   Forms
   ============================================= */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: 12px;
    background: var(--bg-card);
    color: var(--text);
    font-size: 1rem;
    font-family: var(--font-sans);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 217, 217, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Radio buttons */
.radio-group {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text-muted);
}

.radio-group input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: var(--accent);
}

/* File upload */
.file-upload {
    border: 2px dashed var(--border);
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    background: var(--surface-dark);
    transition: all 0.3s ease;
}

.file-upload:hover {
    border-color: var(--accent);
    background: var(--bg-card);
}

.file-upload input[type="file"] {
    display: none;
}

.file-upload label {
    cursor: pointer;
    color: var(--accent);
    font-weight: 600;
}

/* Progress bar */
.progress {
    width: 100%;
    height: 8px;
    background: var(--border);
    border-radius: 50px;
    overflow: hidden;
    margin: 16px 0;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover));
    border-radius: 50px;
    transition: width 0.3s ease;
}

/* Alerts */
.alert {
    padding: 16px 20px;
    border-radius: 12px;
    margin: 16px 0;
    font-size: 0.95rem;
}

.alert-success {
    background: rgba(0, 217, 217, 0.1);
    border: 1px solid var(--accent);
    color: var(--accent);
}

.alert-error {
    background: rgba(255, 87, 87, 0.1);
    border: 1px solid var(--danger);
    color: var(--danger);
}

.alert-info {
    background: rgba(255, 167, 38, 0.1);
    border: 1px solid var(--warning);
    color: var(--warning);
}

/* =============================================
   Responsive Design
   ============================================= */
@media (max-width: 768px) {
    .navbar-menu {
        gap: 16px;
        font-size: 0.85rem;
    }

    .navbar-logo img {
        height: 68px;
    }

    header h1 {
        font-size: 2.5rem;
    }

    header .subtitle {
        font-size: 1rem;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .modality-cards {
        grid-template-columns: 1fr;
    }

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

    .report-header {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .navbar-content {
        padding: 12px 16px;
    }

    .navbar-menu {
        gap: 8px;
        font-size: 0.75rem;
    }

    .navbar-menu a {
        padding: 6px 8px;
    }

    .navbar-logo img {
        height: 54px;
    }

    body {
        padding-top: 73px;
    }

    header h1 {
        font-size: 2rem;
    }

    .card .price {
        font-size: 1.75rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
}

/* =============================================
   Dashboard Styles
   ============================================= */
.dashboard-header {
    background: var(--bg-dark);
    padding: 24px;
    border-radius: var(--radius);
    margin-bottom: 32px;
    border: 1px solid var(--border);
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--bg-card);
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    text-align: center;
}

.stat-card h3 {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 8px;
}

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

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
}

table th {
    background: var(--bg-dark);
    color: var(--accent);
    padding: 16px;
    text-align: left;
    font-weight: 700;
    font-size: 0.9rem;
}

table td {
    padding: 16px;
    border-top: 1px solid var(--border);
    color: var(--text);
}

table tr:hover {
    background: var(--surface-dark);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--bg-card);
    padding: 32px;
    border-radius: var(--radius);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    border: 1px solid var(--border);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.modal-header h2 {
    color: var(--text);
    font-size: 1.5rem;
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: var(--text);
}
