/* Main styles for recognitionphysics.com - Modern Scientific Authority */
:root {
    --background-color: #ffffff;
    --text-color: #1a1a1a;
    --accent-color: #0066cc; /* Professional blue - trust and innovation */
    --secondary-accent: #ff6b35; /* Orange for CTAs and highlights */
    --border-color: #e0e0e0;
    --header-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --body-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --mono-font: 'SF Mono', Monaco, 'Inconsolata', 'Fira Code', monospace;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.12), 0 2px 4px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 20px rgba(0,0,0,0.15), 0 3px 6px rgba(0,0,0,0.10);
}

body {
    font-family: var(--body-font);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    padding: 0;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 16px;
}

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

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

/* Modern section spacing */
section {
    padding: 4rem 0;
}

@media (max-width: 768px) {
    section {
        padding: 2.5rem 0;
    }
}

h1, h2, h3 {
    font-family: var(--header-font);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #000;
}

h1 {
    font-size: clamp(2.5rem, 7vw, 4rem);
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 800;
    background: linear-gradient(135deg, #000 0%, #333 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: clamp(2rem, 5vw, 2.5rem);
    margin-top: 3rem;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

p {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
    color: #333;
}

.lead {
    font-size: 1.375rem;
    line-height: 1.5;
    font-weight: 400;
    color: #555;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    font-weight: 500;
}


strong, b {
    font-weight: 600; /* Use 600 for a semi-bold look instead of the default 700/bold */
    color: #222; /* Slightly softer than pure black */
}

a:hover {
    text-decoration: underline;
}

/* Modern Scientific Header */
.site-header {
    background: #fff;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Mobile hamburger menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #000;
    display: block;
    transition: 0.3s;
    transform-origin: center;
}

/* Hamburger animation */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

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

.logo a {
    font-family: var(--header-font);
    font-size: 1.5rem;
    font-weight: 800;
    color: #000;
    text-decoration: none;
    letter-spacing: -0.03em;
    text-align: center;
    transition: all 0.2s ease;
    display: inline-block;
}

.logo a:hover {
    transform: translateY(-1px);
    color: var(--accent-color);
}

.global-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2rem;
    background: transparent;
    align-items: center;
}

.global-nav a {
    font-family: var(--body-font);
    font-size: 0.975rem;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    text-transform: none;
    letter-spacing: -0.01em;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    display: block;
}

.global-nav a:last-child {
    border-right: none;
}

.global-nav a:hover {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
    transform: translateY(-1px);
}

    .global-nav a:active {
        background: #555;
    }

    /* Dropdown styles */
    .dropdown {
        position: relative;
        display: inline-block;
    }

    .dropdown-content {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #000;
        min-width: 180px;
        box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.3);
        z-index: 1000;
        border: 1px solid #333;
    }

    .dropdown-content a {
        font-family: var(--body-font);
        font-size: 0.9rem;
        font-weight: 500;
        color: #fff !important;
        text-decoration: none;
        text-transform: none;
        letter-spacing: 0.3px;
        padding: 0.8rem 1.5rem;
        display: block;
        text-align: left;
        border-right: none !important;
        border-bottom: 1px solid #333;
        transition: all 0.2s ease;
    }

    .dropdown-content a:last-child {
        border-bottom: none;
    }

    .dropdown-content a:hover {
        background-color: #333;
        color: #fff !important;
    }

    .dropdown:hover .dropdown-content {
        display: block;
    }

    /* Mobile Responsive Design */
    @media (max-width: 768px) {
        .header-container {
            flex-direction: column;
            gap: 0.5rem;
            padding: 0 1rem;
        }
        
        .site-header {
            padding: 1rem 0;
        }
        
        .logo a {
            font-size: 1.8rem;
            margin-bottom: 0.5rem;
        }
        
        .mobile-menu-toggle {
            display: flex;
            position: absolute;
            top: 1.5rem;
            right: 1rem;
        }
        
        .global-nav {
            width: 100%;
            order: 2;
        }
        
        .global-nav ul {
            flex-direction: column;
            width: 100%;
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease-in-out;
            display: flex;
            background: #f8f9fa;
            border-radius: 8px;
            margin-top: 1rem;
            padding: 0;
            box-shadow: var(--shadow-md);
        }
        
        .global-nav.active ul {
            max-height: 500px; /* Large enough to accommodate all menu items */
            padding: 0.5rem 0;
        }
        
        .global-nav a {
            border-bottom: none;
            text-align: center;
            padding: 0.75rem 1rem;
            margin: 0.25rem 0.5rem;
            border-radius: 6px;
            color: #333;
        }
        
        .global-nav a:last-child {
            border-bottom: none;
        }
        
        /* Mobile dropdown adjustments */
        .dropdown-content {
            position: static;
            max-height: 0;
            overflow: hidden;
            background: #222;
            box-shadow: none;
            border: none;
            min-width: auto;
            transition: max-height 0.3s ease-in-out;
            display: block; /* Always display, control with max-height */
        }

        .dropdown.active .dropdown-content {
            max-height: 200px; /* Large enough for dropdown items */
        }
        
        .dropdown-content a {
            padding: 0.8rem 2rem;
            border-bottom: 1px solid #444;
        }

        /* Better touch targets for mobile dropdowns */
        .dropdown .dropbtn {
            position: relative;
            padding: 1rem 1.5rem;
            touch-action: manipulation;
        }

        .dropdown .dropbtn:after {
            content: " ▼";
            font-size: 0.7em;
            margin-left: 0.5rem;
            transition: transform 0.3s ease;
        }

        .dropdown.active .dropbtn:after {
            transform: rotate(180deg);
        }

        /* Add touch feedback for mobile */
        .global-nav a:hover {
            background: rgba(0,102,204,0.1);
            color: var(--accent-color);
        }
        
        .global-nav a:active {
            background: rgba(0,102,204,0.2);
            transform: scale(0.98);
            transition: all 0.1s ease;
        }

        /* Improve mobile button feedback */
        .mobile-menu-toggle:active {
            transform: scale(0.95);
            background: rgba(0, 0, 0, 0.1);
            border-radius: 4px;
        }
        
        .dropdown:hover .dropdown-content {
            display: none; /* Disable hover effect on mobile */
        }
    }
    
    @media (max-width: 480px) {
        .header-container {
            padding: 0 0.5rem;
        }
        
        .logo a {
            font-size: 1.5rem;
        }
        
        .mobile-menu-toggle {
            top: 1rem;
            right: 0.5rem;
        }
    }

    /* Modern Component Cards */
    .component-card {
        background: #fff;
        border: 1px solid rgba(0,0,0,0.08);
        padding: 2.5rem;
        margin-bottom: 2rem;
        border-radius: 12px;
        box-shadow: var(--shadow-sm);
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }
    
    .component-card:hover {
        box-shadow: var(--shadow-md);
        transform: translateY(-2px);
    }
    
    .component-card:before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 4px;
        height: 100%;
        background: var(--accent-color);
        transform: scaleY(0);
        transition: transform 0.3s ease;
    }
    
    .component-card:hover:before {
        transform: scaleY(1);
    }

    .component-card h3 {
        margin-bottom: 1rem;
        font-size: 1.75rem;
        font-weight: 700;
        color: #000;
    }

    .component-link {
        margin-top: 1.5rem;
    }

    .theorem-list {
        list-style: none;
        padding-left: 0;
        margin-top: 1rem;
    }

    .theorem-list li {
        padding: 0.5rem 0;
        border-bottom: 1px solid #eee;
    }

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

    .theorem-list li a {
        color: #333;
        text-decoration: none;
        display: block;
        transition: all 0.2s ease;
    }

    .theorem-list li a:hover {
        background: #f5f5f5;
        padding-left: 10px;
    }

    .constants-table {
        width: 100%;
        margin-top: 1rem;
        border-collapse: collapse;
    }

    .constants-table th,
    .constants-table td {
        padding: 0.75rem;
        text-align: left;
        border-bottom: 1px solid #e0e0e0;
    }

    .constants-table th {
        font-weight: 600;
        background: #f5f5f5;
    }

    .constants-table td a {
        font-weight: 600;
        color: #000;
        text-decoration: none;
    }

    .constants-table td a:hover {
        text-decoration: underline;
    }

    .formula-display {
        background: #f8f9fa;
        padding: 2rem;
        margin-top: 1.5rem;
        font-family: var(--mono-font);
        border-radius: 8px;
        border: 1px solid rgba(0,0,0,0.06);
    }

    .formula-display p {
        margin: 0.75rem 0;
        font-size: 1rem;
        color: #000;
    }
    
    .formula-display strong {
        color: var(--accent-color);
        font-weight: 600;
    }

    /* Proof Box */
    .proof-box {
        background: #f5f5f5;
        border-left: 4px solid #000;
        padding: 1.5rem;
        margin: 2rem 0;
    }

    .proof-box ol {
        margin-top: 1rem;
        padding-left: 1.5rem;
    }

    .proof-box li {
        margin-bottom: 0.5rem;
    }

    /* Theorem Cards */
    .theorem-section {
        padding: 3rem 0;
    }

    .theorem-card {
        background: #fff;
        border: 1px solid #e0e0e0;
        margin-bottom: 2rem;
        position: relative;
        overflow: hidden;
    }

    .theorem-number {
        position: absolute;
        top: 0;
        left: 0;
        background: #000;
        color: #fff;
        padding: 0.5rem 1rem;
        font-weight: 600;
        font-size: 0.9rem;
    }

    .theorem-card h3 {
        margin: 0;
        padding: 1.5rem 2rem 1rem 2rem;
        font-size: 1.75rem;
        font-weight: 600;
        border-bottom: 1px solid #e0e0e0;
        margin-top: 2rem;
    }

    .theorem-card h3 a {
        color: inherit;
        text-decoration: none;
        transition: color 0.2s ease;
    }

    .theorem-card h3 a:hover {
        color: #666;
        text-decoration: underline;
    }

    .theorem-content {
        padding: 2rem;
    }

    .theorem-content p {
        margin-bottom: 1rem;
    }

    .theorem-content p:last-child {
        margin-bottom: 0;
    }

    .theorem-content strong {
        font-weight: 600;
        color: #000;
    }

    .call-to-action {
        margin-top: 2rem;
        text-align: center;
    }

    .call-to-action .button-link {
        margin: 0.5rem;
    }

    .button-link.secondary {
        background: #fff;
        color: #000;
        border: 2px solid #000;
    }

    .button-link.secondary:hover {
        background: #000;
        color: #fff;
    }

    /* Math and Code Boxes */
    .math-box {
        background: #f5f5f5;
        border: 1px solid #e0e0e0;
        padding: 2rem;
        margin: 2rem 0;
        overflow-x: auto;
    }

    .math-box h3 {
        margin-bottom: 1rem;
        font-size: 1.2rem;
        font-weight: 600;
    }

    .math-box pre {
        margin: 0;
        background: #fff;
        padding: 1.5rem;
        border: 1px solid #ddd;
        font-family: 'Courier New', monospace;
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .math-box code {
        color: #333;
    }

    /* Implication Cards */
    .implication-card {
        background: #fafafa;
        border-left: 4px solid #000;
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .implication-card h3 {
        margin-bottom: 0.75rem;
        font-size: 1.2rem;
        font-weight: 600;
    }

    .implication-card p {
        margin: 0;
        color: #555;
    }

@media (max-width: 768px) {
    .header-container {
        padding: 0 1rem;
    }
    
    .logo a {
        font-size: 1.8rem;
    }

    .global-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .global-nav a {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
        border-right: none;
        border-bottom: 1px solid #333;
        flex: 1;
        text-align: center;
        min-width: 120px;
    }
}



.narrative-section {
    padding: 2rem 0;
}

.footer {
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: #888;
}

.truth-card {
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 4px;
    background-color: #fff;
    transition: box-shadow 0.2s ease-in-out;
}

.truth-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.truth-card h3 {
    margin-top: 0;
    font-size: 1.25rem;
    color: var(--text-color);
}

.truth-card p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 1rem;
}

.read-more {
    font-weight: 600;
    font-family: var(--header-font);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    font-size: 0.875rem;
    color: var(--accent-color);
}

/* Conversation Links Section */
.conversation-links {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    margin-top: 3rem;
    box-shadow: var(--shadow-sm);
}

.conversation-links h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #000;
}

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

.conversation-links li {
    margin: 1rem 0;
    padding: 0;
}

.conversation-links a {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
    color: #333;
    font-weight: 500;
    border: 1px solid transparent;
}

.conversation-links a:hover {
    background: white;
    border-color: var(--accent-color);
    transform: translateX(4px);
    color: var(--accent-color);
    text-decoration: none;
    box-shadow: var(--shadow-sm);
}

/* Paper Link Section */
.paper-link-section {
    text-align: center;
    margin-top: 3rem;
    padding: 3rem;
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    border-radius: 16px;
    color: white;
    position: relative;
    overflow: hidden;
}

.paper-link-section:before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.paper-link-section h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.75rem;
}

.paper-link-section p {
    color: rgba(255,255,255,0.9);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.paper-link-section .button-link {
    background: white;
    color: var(--accent-color);
    font-weight: 700;
    padding: 1rem 2.5rem;
    border: none;
    font-size: 1.125rem;
}

.paper-link-section .button-link:hover {
    background: #f8f9fa;
    transform: translateY(-2px) scale(1.02);
}

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

.button-link {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.875rem 2rem;
    background: var(--accent-color);
    color: white;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 2px solid var(--accent-color);
    font-size: 1rem;
    letter-spacing: -0.01em;
    box-shadow: 0 2px 4px rgba(0,102,204,0.2);
}

.button-link:hover {
    background-color: #0052a3;
    border-color: #0052a3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,102,204,0.3);
    text-decoration: none;
    color: white;
}

.button-link.secondary {
    background: white;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

.button-link.secondary:hover {
    background: var(--accent-color);
    color: white;
}


/* Quote Box Styles */
.quote-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 2rem;
    border-left: 4px solid var(--accent-color);
    margin: 2rem 0;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.quote-box:before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 10px;
    font-size: 4rem;
    color: var(--accent-color);
    opacity: 0.1;
    font-family: Georgia, serif;
}

.quote-box p:first-child {
    font-size: 1.125rem;
    font-style: italic;
    color: #333;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.quote-box p:last-child {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0;
    font-weight: 600;
}

/* Validation Section Styling */
.validation-section {
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.validation-section:before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0,102,204,0.03) 0%, transparent 70%);
    pointer-events: none;
}

/* Modern Paper List */
.paper-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.paper-list li {
    background: white;
    border: 1px solid rgba(0,0,0,0.08);
    padding: 1.75rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.paper-list li:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
    border-left: 3px solid var(--accent-color);
}

.paper-list h3 {
    margin: 0 0 0.75rem 0;
    font-size: 1.25rem;
}

.paper-list p {
    margin: 0;
    color: #666;
    font-size: 1rem;
}

/* Theorem List Modern Style */
.theorem-list {
    list-style: none;
    padding-left: 0;
    margin-top: 1.5rem;
}

.theorem-list li {
    padding: 0.875rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: all 0.2s ease;
}

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

.theorem-list li a {
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
    font-weight: 500;
}

.theorem-list li a:before {
    content: '→';
    margin-right: 0.75rem;
    color: var(--accent-color);
    font-weight: 700;
    transition: transform 0.2s ease;
}

.theorem-list li a:hover {
    color: var(--accent-color);
    padding-left: 8px;
}

.theorem-list li a:hover:before {
    transform: translateX(4px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    body {
        font-size: 15px;
    }
    
    .component-card {
        padding: 1.75rem;
    }
    
    h1 {
        font-size: 2.25rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    p {
        font-size: 1rem;
    }
    
    .quote-box {
        padding: 1.5rem;
    }
}
