/* 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: #1f2937;
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #4b5563;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #2563eb;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #2563eb 0%, #10b981 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Calculator Section */
.calculator-section {
    padding: 4rem 0;
    background: #f9fafb;
}

.calculator-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
}

.calculator-card h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #1f2937;
    font-size: 2rem;
}

.calculator-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #374151;
}

.form-group input,
.form-group select {
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #2563eb;
}

.calculate-btn {
    background: linear-gradient(135deg, #2563eb 0%, #10b981 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.calculate-btn:hover {
    transform: translateY(-2px);
}

/* Results */
.results {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
}

.results h3 {
    margin-bottom: 1rem;
    color: #1f2937;
}

.result-display {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.ph-value, .poh-value, .classification {
    text-align: center;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.label {
    display: block;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
}

/* pH Scale Visual */
.ph-scale-visual {
    margin: 1.5rem 0;
}

.scale-bar {
    height: 20px;
    background: linear-gradient(to right, 
        #dc2626 0%, #ea580c 14.3%, #ca8a04 28.6%, 
        #65a30d 42.9%, #16a34a 50%, #059669 57.1%, 
        #0891b2 71.4%, #2563eb 85.7%, #7c3aed 100%);
    border-radius: 10px;
    position: relative;
    margin-bottom: 0.5rem;
}

.indicator {
    position: absolute;
    top: -5px;
    width: 4px;
    height: 30px;
    background: #1f2937;
    border-radius: 2px;
    transition: left 0.3s ease;
}

.scale-labels {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    color: #6b7280;
}

.show-work-btn {
    background: #6b7280;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.calculation-steps {
    margin-top: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #2563eb;
}

/* Features Section */
.features {
    padding: 4rem 0;
    background: white;
}

.features h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #1f2937;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: 12px;
    background: #f9fafb;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: #1f2937;
}

.feature-card p {
    color: #6b7280;
}

/* Footer */
.footer {
    background: #1f2937;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: #10b981;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #10b981;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 1rem;
    text-align: center;
    color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .calculator-card {
        margin: 0 1rem;
        padding: 1.5rem;
    }
    
    .result-display {
        grid-template-columns: 1fr;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .calculator-card {
        border: 2px solid #000;
    }
    
    .form-group input,
    .form-group select {
        border: 2px solid #000;
    }
}/* Additiona
l styles for new pages */
.page-header {
    background: linear-gradient(135deg, #2563eb 0%, #10b981 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Navigation active state */
.nav-link.active {
    color: #2563eb;
    font-weight: 600;
}

/* Database page styles */
.database-section {
    padding: 3rem 0;
    background: #f9fafb;
}

.database-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    gap: 1rem;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid #e5e7eb;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    color: #4b5563;
}

.tab-btn:hover {
    border-color: #2563eb;
    color: #2563eb;
}

.tab-btn.active {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-content h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #1f2937;
    font-size: 2rem;
}

.compounds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.compound-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-left: 4px solid;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.compound-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.compound-card.strong {
    border-left-color: #dc2626;
}

.compound-card.weak {
    border-left-color: #2563eb;
}

.compound-card h3 {
    margin-bottom: 1rem;
    color: #1f2937;
    font-size: 1.25rem;
}

.compound-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.type {
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    width: fit-content;
}

.strong .type {
    background: #fee2e2;
    color: #dc2626;
}

.weak .type {
    background: #dbeafe;
    color: #2563eb;
}

.ka-value {
    font-family: 'Courier New', monospace;
    color: #6b7280;
    font-size: 0.9rem;
}

.use-compound-btn {
    background: #10b981;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.use-compound-btn:hover {
    background: #059669;
    transform: translateY(-1px);
}

/* FAQ page styles */
.faq-section {
    padding: 3rem 0;
    background: white;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: white;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
    color: #1f2937;
}

.faq-question:hover {
    background: #f9fafb;
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: #2563eb;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #f9fafb;
}

.faq-answer p, .faq-answer ul {
    padding: 0 1.5rem;
    margin: 1rem 0;
    line-height: 1.6;
}

.faq-answer ul {
    padding-left: 3rem;
}

.faq-answer li {
    margin: 0.5rem 0;
}

.faq-answer strong {
    color: #1f2937;
}

.faq-answer a {
    color: #2563eb;
    text-decoration: none;
}

.faq-answer a:hover {
    text-decoration: underline;
}

.faq-item.active .faq-question {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header p {
        font-size: 1rem;
    }
    
    .database-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .tab-btn {
        width: 200px;
        text-align: center;
    }
    
    .compounds-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .compound-card {
        margin: 0 1rem;
    }
    
    .faq-question {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .faq-answer p, .faq-answer ul {
        padding: 0 1rem;
    }
    
    .faq-answer ul {
        padding-left: 2rem;
    }
}

/* Print styles */
@media print {
    .header, .footer {
        display: none;
    }
    
    .page-header {
        background: none;
        color: black;
        padding: 1rem 0;
    }
    
    .compound-card, .faq-item {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}
/* Mobi
le Menu Styles */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: #2563eb;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav {
        position: relative;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 80px;
        transition: left 0.3s ease;
        z-index: 1000;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .nav-menu .nav-link {
        font-size: 1.2rem;
        padding: 1rem 2rem;
        display: block;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #f3f4f6;
    }

    .nav-menu .nav-link:hover {
        background: #f9fafb;
    }

    .nav-menu .nav-link.active {
        background: #eff6ff;
        color: #2563eb;
    }

    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }

    /* Overlay for mobile menu */
    .nav-menu.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
    }
}

/* Additional styles for new pages */

/* pH Scale Page Styles */
.ph-scale-section {
    padding: 3rem 0;
    background: #f9fafb;
}

.scale-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.scale-container h2 {
    margin-bottom: 2rem;
    color: #1f2937;
    font-size: 2rem;
}

.interactive-scale {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
}

.scale-bar-large {
    margin: 2rem 0;
}

.scale-segments {
    display: grid;
    grid-template-columns: repeat(15, 1fr);
    gap: 2px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.segment {
    padding: 1rem 0.5rem;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.segment:hover {
    transform: scale(1.05);
    z-index: 10;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.ph-number {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.ph-label {
    font-size: 0.8rem;
    text-align: center;
    line-height: 1.2;
}

.scale-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.category {
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.acidic-cat {
    background: #fee2e2;
    color: #dc2626;
}

.neutral-cat {
    background: #dcfce7;
    color: #16a34a;
}

.basic-cat {
    background: #dbeafe;
    color: #2563eb;
}

.ph-info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.info-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.info-card h3 {
    color: #1f2937;
    margin-bottom: 1rem;
}

.info-card ul {
    margin-top: 1rem;
    padding-left: 1.5rem;
}

.info-card li {
    margin: 0.5rem 0;
}

.download-section {
    text-align: center;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.download-btn {
    background: linear-gradient(135deg, #2563eb 0%, #10b981 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease;
    margin-top: 1rem;
}

.download-btn:hover {
    transform: translateY(-2px);
}

/* Blog Page Styles */
.blog-section {
    padding: 3rem 0;
    background: #f9fafb;
}

.blog-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 2rem;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.blog-card.featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 2fr;
    margin-bottom: 3rem;
}

.blog-image {
    height: 200px;
    overflow: hidden;
}

.blog-card.featured .blog-image {
    height: auto;
}

.placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
}

.blog-content {
    padding: 1.5rem;
}

.blog-category {
    display: inline-block;
    background: #eff6ff;
    color: #2563eb;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.blog-card h2, .blog-card h3 {
    color: #1f2937;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.blog-card h2 {
    font-size: 1.5rem;
}

.blog-card h3 {
    font-size: 1.25rem;
}

.blog-card p {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #9ca3af;
}

.read-more-btn {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.read-more-btn:hover {
    color: #1d4ed8;
}

.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-widget {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.sidebar-widget h3 {
    color: #1f2937;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.category-list, .popular-list {
    list-style: none;
}

.category-list li, .popular-list li {
    margin-bottom: 0.5rem;
}

.category-list a, .popular-list a {
    color: #4b5563;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.category-list a:hover, .popular-list a:hover {
    color: #2563eb;
}

.category-list span {
    background: #f3f4f6;
    color: #6b7280;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
}

.newsletter {
    background: linear-gradient(135deg, #2563eb 0%, #10b981 100%);
    color: white;
}

.newsletter h3 {
    color: white;
}

.newsletter p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.newsletter-form input {
    padding: 0.75rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
}

.newsletter-form button {
    background: white;
    color: #2563eb;
    border: none;
    padding: 0.75rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.newsletter-form button:hover {
    background: #f3f4f6;
}

/* About Page Styles */
.about-section {
    padding: 3rem 0;
    background: white;
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
}

.about-text h2, .about-text h3 {
    color: #1f2937;
    margin-bottom: 1rem;
}

.about-text h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.about-text h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
}

.about-text p {
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.features-list {
    margin: 2rem 0;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
}

.feature-item .feature-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.feature-text h4 {
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.feature-text p {
    color: #6b7280;
    margin: 0;
}

.stats-section {
    background: #f9fafb;
    padding: 2rem;
    border-radius: 12px;
    margin: 3rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.stat-card {
    text-align: center;
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #6b7280;
    font-weight: 500;
}

.quality-points ul {
    margin-top: 1rem;
    padding-left: 1.5rem;
}

.quality-points li {
    margin: 0.75rem 0;
    color: #4b5563;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.value-card {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #2563eb;
}

.value-card h4 {
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.value-card p {
    color: #6b7280;
    margin: 0;
}

/* Contact Page Styles */
.contact-section {
    padding: 3rem 0;
    background: #f9fafb;
}

.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-form-section, .contact-info-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.contact-form .form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #374151;
    display: block;
}

.contact-form .form-group input,
.contact-form .form-group select,
.contact-form .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.contact-form .form-group input:focus,
.contact-form .form-group select:focus,
.contact-form .form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: normal;
}

.submit-btn {
    background: linear-gradient(135deg, #2563eb 0%, #10b981 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-card {
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.contact-card:hover {
    background: #f9fafb;
}

.contact-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.contact-card h3 {
    color: #1f2937;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.contact-card p {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.contact-card a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.response-time {
    margin-bottom: 2rem;
}

.response-time h3 {
    color: #1f2937;
    margin-bottom: 1rem;
}

.response-time ul {
    list-style: none;
    padding: 0;
}

.response-time li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f4f6;
    color: #4b5563;
}

.social-buttons {
    display: flex;
    gap: 0.5rem;
}

.social-btn {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background 0.3s ease;
}

.social-btn.twitter {
    background: #eff6ff;
    color: #2563eb;
}

.social-btn.linkedin {
    background: #eff6ff;
    color: #2563eb;
}

.social-btn.github {
    background: #f3f4f6;
    color: #374151;
}

.social-btn:hover {
    opacity: 0.8;
}

/* Privacy Page Styles */
.privacy-section {
    padding: 3rem 0;
    background: white;
}

.privacy-content {
    max-width: 1000px;
    margin: 0 auto;
}

.last-updated {
    font-style: italic;
    color: #6b7280;
    margin-top: 0.5rem;
}

.privacy-summary {
    margin-bottom: 3rem;
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.summary-card {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    border-left: 4px solid #2563eb;
}

.summary-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.summary-card h3 {
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.summary-card p {
    color: #6b7280;
    margin: 0;
}

.policy-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.policy-section:last-child {
    border-bottom: none;
}

.policy-section h3 {
    color: #1f2937;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.policy-section h4 {
    color: #374151;
    font-size: 1.25rem;
    margin: 1.5rem 0 0.75rem 0;
}

.policy-section p {
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.policy-section ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.policy-section li {
    color: #4b5563;
    margin: 0.5rem 0;
    line-height: 1.6;
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 768px) {
    .scale-segments {
        grid-template-columns: repeat(5, 1fr);
        gap: 1px;
    }
    
    .segment {
        min-height: 60px;
        padding: 0.5rem 0.25rem;
    }
    
    .ph-number {
        font-size: 1rem;
    }
    
    .ph-label {
        font-size: 0.7rem;
    }
    
    .scale-categories {
        grid-template-columns: 1fr;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .blog-card.featured {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .summary-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .scale-segments {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .social-buttons {
        flex-direction: column;
    }
}/* New Home 
Page Sections Styles */

/* How It Works Section */
.how-it-works {
    padding: 4rem 0;
    background: white;
}

.how-it-works h2 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 2.5rem;
    color: #1f2937;
}

.section-intro {
    text-align: center;
    font-size: 1.2rem;
    color: #6b7280;
    max-width: 800px;
    margin: 0 auto 3rem auto;
    line-height: 1.6;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.step-card {
    background: #f9fafb;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    position: relative;
    border: 2px solid #e5e7eb;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #2563eb;
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #2563eb 0%, #10b981 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem auto;
}

.step-card h3 {
    color: #1f2937;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.step-card p {
    color: #6b7280;
    line-height: 1.6;
}

/* pH Examples Section */
.ph-examples {
    padding: 4rem 0;
    background: #f9fafb;
}

.ph-examples h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #1f2937;
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.example-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.example-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.example-card h3 {
    color: #1f2937;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
}

.example-problem {
    margin-bottom: 1.5rem;
}

.example-problem p {
    margin: 0.75rem 0;
    line-height: 1.6;
}

.example-problem strong {
    color: #1f2937;
}

.try-example-btn {
    width: 100%;
    background: linear-gradient(135deg, #2563eb 0%, #10b981 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease;
    font-size: 1rem;
}

.try-example-btn:hover {
    transform: translateY(-2px);
}

/* Applications Section */
.applications {
    padding: 4rem 0;
    background: white;
}

.applications h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #1f2937;
}

.applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.application-card {
    background: #f9fafb;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid #2563eb;
}

.application-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    background: white;
}

.app-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.application-card h3 {
    color: #1f2937;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.application-card p {
    color: #6b7280;
    line-height: 1.6;
}

/* FAQ Section Styles for Home Page */
.faq-section {
    padding: 4rem 0;
    background: #f9fafb;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #1f2937;
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: white;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
    color: #1f2937;
}

.faq-question:hover {
    background: #f9fafb;
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: #2563eb;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #f9fafb;
}

.faq-answer p, .faq-answer ul, .faq-answer ol {
    padding: 0 1.5rem;
    margin: 1rem 0;
    line-height: 1.6;
    color: #4b5563;
}

.faq-answer ul, .faq-answer ol {
    padding-left: 3rem;
}

.faq-answer li {
    margin: 0.5rem 0;
}

.faq-answer strong {
    color: #1f2937;
}

.faq-item.active .faq-question {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

/* Enhanced Mobile Responsiveness for New Sections */
@media (max-width: 768px) {
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .examples-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .applications-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .example-card, .step-card, .application-card {
        margin: 0 1rem;
    }
    
    .section-intro {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .how-it-works h2, .ph-examples h2, .applications h2, .faq-section h2 {
        font-size: 2rem;
    }
    
    .faq-question {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .faq-answer p, .faq-answer ul, .faq-answer ol {
        padding: 0 1rem;
    }
    
    .faq-answer ul, .faq-answer ol {
        padding-left: 2rem;
    }
}

@media (max-width: 480px) {
    .step-card, .example-card, .application-card {
        padding: 1.5rem;
        margin: 0 0.5rem;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    
    .app-icon {
        font-size: 2.5rem;
    }
}