/* Ensure navbar logo link has no underline in any state */
.nav-logo,
.nav-logo:link,
.nav-logo:visited,
.nav-logo:hover,
.nav-logo:active {
    text-decoration: none;
}
/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

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

/* Navigation */
.navbar {
    background: #ffffff;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.5rem;
    color: #2563eb;
}

.logo-img {
    width: 40px;
    height: 40px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: #374151;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link:hover,
.nav-link.active {
    color: #2563eb;
    background-color: #f0f9ff;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 8px 0;
    min-width: 250px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    list-style: none;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: 0;
    background: none;
}

.dropdown-menu a:hover {
    background-color: #f0f9ff;
    color: #2563eb;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #374151;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 0 80px;
    margin-top: 70px;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: #ffffff;
    color: #2563eb;
}

.btn-primary:hover {
    background: #f0f9ff;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #2563eb;
    transform: translateY(-2px);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.strip-chart-demo {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.chart-container {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.chart-container canvas {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.25rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

.bg-light {
    background-color: #f9fafb;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.content-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.card-icon i {
    font-size: 1.5rem;
    color: white;
}

.content-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.content-card .card-icon {
    flex-shrink: 0;
}

/* Parameter Header */
.parameter-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.parameter-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.parameter-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    flex-shrink: 0;
}

/* Guide Item */
.guide-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.guide-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.guide-icon i {
    font-size: 1.25rem;
    color: white;
}

.guide-item h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.5rem 0;
}

.guide-item p {
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

/* Step Card */
.step-card {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 1rem 0;
}

.step-content p {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.step-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.step-content li {
    padding: 0.5rem 0;
    color: #6b7280;
    position: relative;
    padding-left: 1.5rem;
}

.step-content li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

/* Traditional Test Strips Styles */
.traditional-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.test-strip-demo {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

.test-strip {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.strip-pad {
    width: 30px;
    height: 40px;
    border-radius: 4px;
    border: 2px solid #374151;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.color-chart h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
    text-align: center;
}

.chart-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: #f8fafc;
    border-radius: 6px;
}

.param-name {
    font-weight: 600;
    color: #374151;
    min-width: 80px;
}

.color-scale {
    display: flex;
    gap: 0.25rem;
}

.color-box {
    width: 20px;
    height: 20px;
    border-radius: 3px;
    border: 1px solid #d1d5db;
}

.value-range {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
}

.reading-steps h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1.5rem;
}

.step-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.step-item .step-number {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.step-text {
    color: #6b7280;
    line-height: 1.5;
    padding-top: 0.25rem;
}

/* Comparison Styles */
.comparison-section {
    margin-top: 3rem;
}

.comparison-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 2rem;
    text-align: center;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.comparison-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.comparison-card.traditional {
    border-left: 4px solid #f59e0b;
}

.comparison-card.modern {
    border-left: 4px solid #10b981;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}

.card-header .card-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-header .card-icon i {
    font-size: 1.25rem;
    color: white;
}

.card-header h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.comparison-content {
    padding: 1.5rem;
}

.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.pros h5, .cons h5 {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

.pros h5 {
    color: #10b981;
}

.cons h5 {
    color: #ef4444;
}

.pros ul, .cons ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pros li, .cons li {
    padding: 0.5rem 0;
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.4;
}

.comparison-summary {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

.comparison-summary h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1.5rem;
    text-align: center;
}

.usage-recommendations {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.recommendation h5 {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

.recommendation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recommendation li {
    padding: 0.5rem 0;
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Parameter Details Styles */
.parameter-details {
    margin-top: 3rem;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

.parameter-details h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 2rem;
    text-align: center;
}

.parameters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.param-detail-card {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.param-detail-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.param-detail-card .param-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.param-detail-card .param-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    flex-shrink: 0;
}

.param-detail-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.param-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.normal-range {
    font-size: 0.9rem;
    color: #374151;
}

.param-description {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.4;
}

.param-importance {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.4;
}

/* Responsive Design */
@media (max-width: 768px) {
    .traditional-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .comparison-grid {
        grid-template-columns: 1fr;
    }
    
    .pros-cons {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .usage-recommendations {
        grid-template-columns: 1fr;
    }
    
    .parameters-grid {
        grid-template-columns: 1fr;
    }
}

.content-card p {
    color: #6b7280;
    line-height: 1.6;
}

.content-card ul {
    list-style: none;
    padding: 0;
}

.content-card li {
    padding: 0.5rem 0;
    color: #6b7280;
    position: relative;
    padding-left: 1.5rem;
}

.content-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

/* Elements Grid */
.elements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.element-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.element-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.element-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.element-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.element-item h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.element-item p {
    color: #6b7280;
    line-height: 1.6;
}

/* Applications Grid */
.applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.application-category {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.application-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.category-header i {
    font-size: 2rem;
    color: #2563eb;
}

.category-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
}

.application-list {
    list-style: none;
    padding: 0;
}

.application-list li {
    padding: 0.75rem 0;
    color: #6b7280;
    border-bottom: 1px solid #f3f4f6;
    position: relative;
    padding-left: 1.5rem;
}

.application-list li:last-child {
    border-bottom: none;
}

.application-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #2563eb;
    font-weight: bold;
}

/* Size Chart */
.size-chart-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.size-chart-table {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

th {
    background-color: #f9fafb;
    font-weight: 600;
    color: #1f2937;
}

tr:hover {
    background-color: #f9fafb;
}

/* Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.tool-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.tool-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.tool-header i {
    font-size: 2rem;
    color: #2563eb;
}

.tool-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
}

.tool-card p {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.tool-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.feature-tag {
    background: #f0f9ff;
    color: #2563eb;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Selection Guide */
.selection-guide {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

.selection-criteria h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 2rem;
}

.criteria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.criteria-item h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

.criteria-item ul {
    list-style: none;
    padding: 0;
}

.criteria-item li {
    padding: 0.5rem 0;
    color: #6b7280;
    border-bottom: 1px solid #f3f4f6;
}

.criteria-item li:last-child {
    border-bottom: none;
}

.criteria-item strong {
    color: #2563eb;
    font-weight: 600;
}

/* Comparison Grid */
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2rem;
}

.comparison-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

.comparison-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1.5rem;
    text-align: center;
}

.comparison-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: start;
}

.comparison-item h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

.comparison-item ul {
    list-style: none;
    padding: 0;
}

.comparison-item li {
    padding: 0.5rem 0;
    color: #6b7280;
    position: relative;
    padding-left: 1.5rem;
}

.comparison-item li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #2563eb;
    font-weight: bold;
}

.vs-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #2563eb;
    font-size: 1.25rem;
}

/* Footer */
.footer {
    background: #1f2937;
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.footer-logo-img {
    width: 40px;
    height: 40px;
}

.footer-logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #60a5fa;
}

.footer-description {
    color: #d1d5db;
    line-height: 1.6;
    margin-bottom: 0;
}

.footer-section h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #60a5fa;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #374151;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #60a5fa;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    text-align: center;
    color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .content-grid,
    .elements-grid,
    .applications-grid,
    .tools-grid {
        grid-template-columns: 1fr;
    }

    .comparison-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .vs-divider {
        order: 2;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .section {
        padding: 60px 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }
}

/* Animation Classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Additional styles for makers page */
.comparison-table-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #e5e7eb;
    margin: 2rem 0;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th {
    background: #f9fafb;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #1f2937;
    border-bottom: 2px solid #e5e7eb;
}

.comparison-table td {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: middle;
}

.comparison-table tr:hover {
    background-color: #f8fafc;
}

.difficulty {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.difficulty.low {
    background: #dcfce7;
    color: #166534;
}

.difficulty.medium {
    background: #fef3c7;
    color: #92400e;
}

.difficulty.high {
    background: #fee2e2;
    color: #991b1b;
}

.cost {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.cost.free {
    background: #dcfce7;
    color: #166534;
}

.cost.commercial {
    background: #dbeafe;
    color: #1e40af;
}

.cost.enterprise {
    background: #f3e8ff;
    color: #7c3aed;
}

.text-green {
    color: #10b981;
}

.text-red {
    color: #ef4444;
}

/* Tool selector styles */
.tool-selector-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    padding: 2rem;
}

.selector-form {
    margin-bottom: 2rem;
}

.question-group {
    margin-bottom: 2rem;
}

.question-group h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

.option-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.option-card {
    display: block;
    cursor: pointer;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    background: white;
}

.option-card:hover {
    border-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.15);
}

.option-card.active {
    border-color: #2563eb;
    background: #f0f9ff;
}

.option-card input[type="radio"] {
    display: none;
}

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

.option-content i {
    font-size: 2rem;
    color: #2563eb;
    margin-bottom: 1rem;
    display: block;
}

.option-content h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.option-content p {
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.5;
}

.option-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.option-simple {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.option-simple:hover {
    border-color: #2563eb;
    background: #f0f9ff;
}

.option-simple input[type="radio"] {
    margin: 0;
}

.option-simple.active {
    border-color: #2563eb;
    background: #f0f9ff;
}

/* Recommendation panel */
.recommendation-panel {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
}

.recommendation-panel h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.recommended-tool-content {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

.tool-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.tool-header h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.tool-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rating-stars {
    color: #fbbf24;
    font-size: 1.25rem;
}

.rating-text {
    font-size: 0.875rem;
    opacity: 0.9;
}

.recommendation-reason {
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.feature-list h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    padding: 0.25rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

.recommendation-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.recommendation-actions .btn {
    background: white;
    color: #2563eb;
    border: none;
}

.recommendation-actions .btn:hover {
    background: #f0f9ff;
    transform: translateY(-2px);
}

/* Tool detail styles */
.tool-detail {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    padding: 2rem;
    margin-bottom: 2rem;
}

.tool-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.tool-icon-large {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.tool-info h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.tool-tagline {
    font-size: 1.125rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.tool-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.badge.industrial {
    background: #dbeafe;
    color: #1e40af;
}

.badge.real-time {
    background: #dcfce7;
    color: #166534;
}

.badge.commercial {
    background: #f3e8ff;
    color: #7c3aed;
}

.badge.data-science {
    background: #fef3c7;
    color: #92400e;
}

.badge.free {
    background: #dcfce7;
    color: #166534;
}

.badge.web {
    background: #dbeafe;
    color: #1e40af;
}

.badge.geospatial {
    background: #f0fdf4;
    color: #166534;
}

.tool-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.tool-description h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

.tool-description p {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.tool-description ul {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.tool-description li {
    padding: 0.5rem 0;
    color: #6b7280;
    position: relative;
    padding-left: 1.5rem;
}

.tool-description li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #2563eb;
    font-weight: bold;
}

.tool-example h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

.code-block {
    background: #1f2937;
    border-radius: 8px;
    padding: 1.5rem;
    position: relative;
    overflow-x: auto;
}

.code-block pre {
    margin: 0;
    color: #f9fafb;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.5;
}

.code-block code {
    color: #f9fafb;
}

.copy-code-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #374151;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-code-btn:hover {
    background: #4b5563;
    transform: translateY(-1px);
}

/* Tools preview in hero */
.tools-preview {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.tool-icon {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.tool-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.tool-icon i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.tool-icon span {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Responsive adjustments for makers page */
@media (max-width: 768px) {
    .tool-content {
        grid-template-columns: 1fr;
    }
    
    .option-grid {
        grid-template-columns: 1fr;
    }
    
    .option-row {
        flex-direction: column;
    }
    
    .tools-preview {
        grid-template-columns: 1fr;
    }
    
    .comparison-table-container {
        overflow-x: auto;
    }
    
    .tool-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

/* Legal pages styles */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 3rem;
    border: 1px solid #e5e7eb;
}

.legal-header {
    background: #f9fafb;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-left: 4px solid #2563eb;
}

.legal-header p {
    margin: 0.5rem 0;
    color: #6b7280;
    font-size: 0.875rem;
}

.legal-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #f3f4f6;
}

.legal-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.legal-section h2 {
    color: #1f2937;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-top: 1rem;
}

.legal-section h3 {
    color: #374151;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem 0;
}

.legal-section p {
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.legal-section ul {
    margin: 1rem 0;
    padding-left: 0;
    list-style: none;
}

.legal-section li {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.legal-section li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #2563eb;
    font-weight: bold;
}

.contact-info {
    background: #f0f9ff;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.contact-info p {
    margin: 0.5rem 0;
    color: #1e40af;
    font-weight: 500;
}

/* About page specific styles */
.mission-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.mission-text p {
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.mission-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.value-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    text-align: center;
    transition: all 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.value-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.5rem;
}

.value-card h3 {
    color: #1f2937;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.value-card p {
    color: #6b7280;
    line-height: 1.6;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.team-member {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    text-align: center;
    transition: all 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.member-photo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.team-member h3 {
    color: #1f2937;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.member-title {
    color: #2563eb;
    font-weight: 500;
    margin-bottom: 1rem;
}

.member-bio {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.member-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.member-social a {
    width: 35px;
    height: 35px;
    background: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.3s ease;
}

.member-social a:hover {
    background: #2563eb;
    color: white;
    transform: translateY(-2px);
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.expertise-category {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

.expertise-category h3 {
    color: #1f2937;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.expertise-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.expertise-category li {
    padding: 0.5rem 0;
    color: #6b7280;
    position: relative;
    padding-left: 1.5rem;
    border-bottom: 1px solid #f3f4f6;
}

.expertise-category li:last-child {
    border-bottom: none;
}

.expertise-category li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #2563eb;
    font-weight: bold;
}

.cta-content {
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 2rem;
    border-radius: 12px;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    background: white;
    color: #2563eb;
    border: none;
}

.cta-buttons .btn:hover {
    background: #f0f9ff;
    transform: translateY(-2px);
}

.cta-buttons .btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-buttons .btn-secondary:hover {
    background: white;
    color: #2563eb;
}

/* Responsive adjustments for legal pages */
@media (max-width: 768px) {
    .legal-content {
        padding: 2rem 1.5rem;
    }
    
    .mission-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .mission-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .values-grid,
    .team-grid,
    .expertise-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-content {
        padding: 3rem 1.5rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* Enhanced homepage styles */
.strip-chart-gallery {
    margin-top: 3rem;
}

.strip-chart-gallery h3 {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 2rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.gallery-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.chart-image {
    margin-bottom: 1rem;
    width: 100%;
    overflow: hidden;
    background: #f8fafc;
    border-radius: 8px;
    padding: 0.5rem;
}

/* Strip chart image styling */
.strip-chart-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
    object-fit: contain;
}

/* Industrial strip chart specific sizing - optimized for 835x525 image */
.chart-image img[src*="industrial-strip-chart"] {
    max-width: 100%;
    width: 100%;
    max-height: 400px;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
}

/* Responsive sizing for industrial strip chart */
@media (max-width: 768px) {
    .chart-image img[src*="industrial-strip-chart"] {
        max-height: 300px;
    }
}

@media (max-width: 480px) {
    .chart-image img[src*="industrial-strip-chart"] {
        max-height: 250px;
    }
}

/* Medical strip chart specific sizing - optimized for 835x525 image */
.chart-image img[src*="medical-strip-chart"] {
    max-width: 100%;
    width: 100%;
    max-height: 400px;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
}

/* Responsive sizing for medical strip chart */
@media (max-width: 768px) {
    .chart-image img[src*="medical-strip-chart"] {
        max-height: 300px;
    }
}

@media (max-width: 480px) {
    .chart-image img[src*="medical-strip-chart"] {
        max-height: 250px;
    }
}

/* Environmental strip chart specific sizing - optimized for 835x525 image */
.chart-image img[src*="environmental-strip-chart"] {
    max-width: 100%;
    width: 100%;
    max-height: 400px;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
}

/* Responsive sizing for environmental strip chart */
@media (max-width: 768px) {
    .chart-image img[src*="environmental-strip-chart"] {
        max-height: 300px;
    }
}

@media (max-width: 480px) {
    .chart-image img[src*="environmental-strip-chart"] {
        max-height: 250px;
    }
}

/* Financial strip chart specific sizing - optimized for 835x525 image */
.chart-image img[src*="financial-strip-chart"] {
    max-width: 100%;
    width: 100%;
    max-height: 400px;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
}

/* Responsive sizing for financial strip chart */
@media (max-width: 768px) {
    .chart-image img[src*="financial-strip-chart"] {
        max-height: 300px;
    }
}

@media (max-width: 480px) {
    .chart-image img[src*="financial-strip-chart"] {
        max-height: 250px;
    }
}

/* Scientific strip chart specific sizing - optimized for 835x525 image */
.chart-image img[src*="scientific-strip-chart"] {
    max-width: 100%;
    width: 100%;
    max-height: 400px;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
}

/* Responsive sizing for scientific strip chart */
@media (max-width: 768px) {
    .chart-image img[src*="scientific-strip-chart"] {
        max-height: 300px;
    }
}

@media (max-width: 480px) {
    .chart-image img[src*="scientific-strip-chart"] {
        max-height: 250px;
    }
}

/* Network strip chart specific sizing - optimized for 835x525 image */
.chart-image img[src*="network-strip-chart"] {
    max-width: 100%;
    width: 100%;
    max-height: 400px;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
}

/* Responsive sizing for network strip chart */
@media (max-width: 768px) {
    .chart-image img[src*="network-strip-chart"] {
        max-height: 300px;
    }
}

@media (max-width: 480px) {
    .chart-image img[src*="network-strip-chart"] {
        max-height: 250px;
    }
}

/* Sample strip chart specific sizing - optimized for 835x525 image */
.sample-strip-chart-image {
    max-width: 100%;
    width: 100%;
    max-height: 500px;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    display: block;
}

/* Responsive sizing for sample strip chart */
@media (max-width: 768px) {
    .sample-strip-chart-image {
        max-height: 400px;
    }
}

@media (max-width: 480px) {
    .sample-strip-chart-image {
        max-height: 300px;
    }
}

.chart-demo {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    height: 200px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.chart-demo canvas {
    width: 100%;
    height: 100%;
    border-radius: 4px;
    background: white;
}

.chart-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 1rem;
    text-align: center;
}

.chart-lines {
    position: relative;
    height: 120px;
}

.line {
    position: absolute;
    height: 2px;
    background: var(--color);
    width: 100%;
    animation: stripChartAnimation 3s ease-in-out infinite;
    animation-delay: var(--delay);
}

.line.heartbeat {
    animation: heartbeatAnimation 1.5s ease-in-out infinite;
}

.line.volatile {
    animation: volatileAnimation 2s ease-in-out infinite;
}

@keyframes stripChartAnimation {
    0%, 100% { transform: translateX(0); opacity: 0.7; }
    50% { transform: translateX(20px); opacity: 1; }
}

@keyframes heartbeatAnimation {
    0%, 100% { transform: scaleX(1); }
    25% { transform: scaleX(1.2); }
    50% { transform: scaleX(0.8); }
    75% { transform: scaleX(1.1); }
}

@keyframes volatileAnimation {
    0%, 100% { transform: translateX(0) scaleX(1); }
    25% { transform: translateX(10px) scaleX(1.1); }
    50% { transform: translateX(-5px) scaleX(0.9); }
    75% { transform: translateX(15px) scaleX(1.05); }
}

.gallery-item h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.gallery-item p {
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Reading guide styles */
.reading-guide {
    margin-top: 3rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    border: 1px solid #e5e7eb;
}

.reading-guide h3 {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 2rem;
}

.guide-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.guide-image {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #e5e7eb;
}

.annotated-chart {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #e5e7eb;
}

.chart-container {
    position: relative;
    height: 200px;
}

.chart-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 1rem;
    text-align: center;
}

.chart-area {
    position: relative;
    height: 150px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    background: #fafafa;
}

.y-axis {
    position: absolute;
    left: 0;
    top: 0;
    width: 30px;
    height: 100%;
    border-right: 1px solid #d1d5db;
    background: #f9fafb;
}

.y-label {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 0.75rem;
    color: #6b7280;
    margin: 0.5rem;
}

.y-scale {
    font-size: 0.75rem;
    color: #6b7280;
    margin: 0.25rem 0.5rem;
}

.chart-lines {
    position: absolute;
    left: 30px;
    top: 0;
    right: 0;
    height: 100%;
}

.data-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color);
    transform: translateY(-50%);
}

.data-point {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--color);
    border-radius: 50%;
    left: var(--x);
    top: var(--y);
    cursor: pointer;
}

.data-point:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1f2937;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
}

.x-axis {
    position: absolute;
    bottom: 0;
    left: 30px;
    right: 0;
    height: 30px;
    border-top: 1px solid #d1d5db;
    background: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0.5rem;
}

.x-label {
    font-size: 0.75rem;
    color: #6b7280;
}

.time-markers {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: #6b7280;
}

.guide-text h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

.guide-text ul {
    list-style: none;
    padding: 0;
}

.guide-text li {
    padding: 0.5rem 0;
    color: #6b7280;
    position: relative;
    padding-left: 1.5rem;
    border-bottom: 1px solid #f3f4f6;
}

.guide-text li:last-child {
    border-bottom: none;
}

.guide-text li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #2563eb;
    font-weight: bold;
}

.interpretation-examples {
    margin-top: 2rem;
}

.interpretation-examples h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1.5rem;
}

.pattern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.pattern-item {
    text-align: center;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.pattern-visual {
    height: 180px;
    margin-bottom: 0.5rem;
    position: relative;
    background: #f8fafc;
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pattern-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 160px;
    min-height: 140px;
    object-fit: contain;
    border-radius: 4px;
    display: block;
}

/* Responsive sizing for pattern images */
@media (max-width: 768px) {
    .pattern-visual {
        height: 160px;
        padding: 0.75rem;
    }
    
    .pattern-image {
        max-height: 140px;
        min-height: 120px;
    }
}

@media (max-width: 480px) {
    .pattern-visual {
        height: 140px;
        padding: 0.5rem;
    }
    
    .pattern-image {
        max-height: 120px;
        min-height: 100px;
    }
}

/* Original pattern-line styles - keeping for backward compatibility but not used with images */

.pattern-line {
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 2px;
    background: #2563eb;
    transform: translateY(-50%);
}

.pattern-line.stable {
    background: #10b981;
}

.pattern-line.trending-up {
    background: #f59e0b;
    transform: translateY(-50%) rotate(15deg);
}

.pattern-line.trending-down {
    background: #ef4444;
    transform: translateY(-50%) rotate(-15deg);
}

.pattern-line.oscillating {
    background: #8b5cf6;
    animation: oscillate 2s ease-in-out infinite;
}

.pattern-line.spike {
    background: #ef4444;
    animation: spike 3s ease-in-out infinite;
}

.pattern-line.noise {
    background: #6b7280;
    animation: noise 1s ease-in-out infinite;
}

@keyframes oscillate {
    0%, 100% { transform: translateY(-50%) scaleY(1); }
    50% { transform: translateY(-50%) scaleY(1.5); }
}

@keyframes spike {
    0%, 90% { transform: translateY(-50%) scaleY(1); }
    95% { transform: translateY(-50%) scaleY(3); }
}

@keyframes noise {
    0%, 100% { transform: translateY(-50%) translateX(0); }
    25% { transform: translateY(-50%) translateX(2px); }
    50% { transform: translateY(-50%) translateX(-1px); }
    75% { transform: translateY(-50%) translateX(1px); }
}

.pattern-item h5 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.pattern-item p {
    font-size: 0.75rem;
    color: #6b7280;
    margin: 0;
}

/* Size examples styles */
.size-examples {
    margin-top: 3rem;
}

.size-examples h3 {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 2rem;
}

.size-examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.size-example {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.size-example:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.example-chart {
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    margin-bottom: 1rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.example-chart canvas {
    width: 100%;
    height: 100%;
    border-radius: 4px;
    background: white;
}

.chart-header {
    background: #e5e7eb;
    padding: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #374151;
    text-align: center;
}

.chart-content {
    padding: 1rem;
    height: 120px;
    position: relative;
}

.chart-lines {
    position: relative;
    height: 100%;
}

.line {
    position: absolute;
    height: 2px;
    background: var(--color);
    width: var(--width);
    top: 50%;
    transform: translateY(-50%);
    animation: stripChartAnimation 3s ease-in-out infinite;
}

.standard-size {
    width: 100%;
    max-width: 400px;
}

.high-res-size {
    width: 100%;
    max-width: 600px;
}

.multi-channel-size {
    width: 100%;
    max-width: 500px;
}

.compact-size {
    width: 100%;
    max-width: 300px;
}

.size-example h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.size-example p {
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.size-example ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.size-example li {
    padding: 0.25rem 0;
    color: #6b7280;
    font-size: 0.875rem;
    position: relative;
    padding-left: 1rem;
}

.size-example li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #2563eb;
    font-weight: bold;
}

/* Application examples styles */
.application-examples {
    margin-top: 3rem;
}

.application-examples h3 {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 2rem;
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.example-scenario {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.example-scenario:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.scenario-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.scenario-header i {
    font-size: 1.5rem;
    color: #2563eb;
}

.scenario-header h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.scenario-content p {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.scenario-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.feature-tag {
    background: #f0f9ff;
    color: #2563eb;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Enhanced comparison styles */
.example-use {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    border-left: 4px solid #2563eb;
}

.example-use strong {
    color: #1f2937;
    font-weight: 600;
}

/* Responsive adjustments for new content */
@media (max-width: 768px) {
    .guide-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .pattern-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .size-examples-grid,
    .examples-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* Advantages and Applications Layout Fixes */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.advantage-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.advantage-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.advantage-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.advantage-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.advantage-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.advantage-card p {
    color: #6b7280;
    line-height: 1.6;
}

.applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.application-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.application-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.application-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.application-image {
    flex-shrink: 0;
}

.placeholder-image {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    text-align: center;
}

.placeholder-image p {
    font-size: 0.6rem;
    margin: 0;
    padding: 0.2rem;
    line-height: 1.2;
}

.application-content {
    flex: 1;
}

.application-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.5rem 0;
}

.application-content p {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.application-features {
    list-style: none;
    padding: 0;
}

.application-features li {
    padding: 0.5rem 0;
    color: #6b7280;
    position: relative;
    padding-left: 1.5rem;
}

.application-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

/* Step Images */
.step-image-img {
    width: 100%;
    max-width: 70%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: block;
    margin: 0 auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .advantage-header,
    .application-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .advantage-icon,
    .placeholder-image {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .placeholder-image {
        font-size: 1.2rem;
    }
    
    .placeholder-image p {
        font-size: 0.5rem;
    }
}

/* Blog page styles */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.blog-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.blog-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card-content {
    padding: 1.5rem;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.blog-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.blog-date i {
    color: #2563eb;
}

.blog-category {
    background: #f0f9ff;
    color: #2563eb;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.blog-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.blog-excerpt {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.blog-read-more:hover {
    color: #1d4ed8;
    gap: 0.75rem;
}

.blog-read-more i {
    transition: transform 0.3s ease;
}

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

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}
