/* Alignment Framework - Unified Physics Framework Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    min-height: 100vh;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
}

/* Header */
header {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    padding: 2rem;
    text-align: center;
}

header h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 300;
    margin-bottom: 1rem;
}

.header-highlight {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    padding: 1rem;
    margin-top: 1rem;
    backdrop-filter: blur(10px);
}

.header-highlight p {
    margin: 0.5rem 0;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.header-highlight strong {
    color: #f1c40f;
}

/* View Counter Styles */
.view-counter {
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.stats-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    font-size: 0.9rem;
}

.stat-item {
    display: flex;
    align-items: center;
    color: #ecf0f1;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

@media (max-width: 768px) {
    .stats-display {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .stat-item {
        font-size: 0.8rem;
    }
}

/* Navigation Tabs */
.tabs {
    display: flex;
    background: #34495e;
    overflow-x: auto;
}

.tab-button {
    flex: 1;
    padding: 1rem 1.5rem;
    background: transparent;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tab-button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.tab-button.active {
    background: #3498db;
    border-bottom: 3px solid #2980b9;
}

/* Main Content */
main {
    padding: 2rem;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Cards */
.card {
    background: white;
    margin-bottom: 2rem;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #3498db;
}

.card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.card h4 {
    color: #34495e;
    margin: 1rem 0 0.5rem;
    font-size: 1.2rem;
}

/* Equations */
.equation-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #3498db;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
    text-align: center;
    position: relative;
}

.equation-caption {
    font-style: italic;
    color: #666;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

thead {
    background: #3498db;
    color: white;
}

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

tbody tr:nth-child(even) {
    background: #f8f9fa;
}

tbody tr:hover {
    background: #e3f2fd;
}

.success {
    color: #27ae60;
    font-weight: bold;
}

.highlight {
    background: #e8f5e8 !important;
    font-weight: bold;
}

/* Calculator and Interactive Elements */
.calculator {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.input-group {
    margin-bottom: 1rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #495057;
}

.input-group input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ced4da;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

button {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    margin: 0.5rem 0;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.result {
    background: #e8f5e8;
    border: 1px solid #27ae60;
    border-radius: 5px;
    padding: 1rem;
    margin-top: 1rem;
    font-weight: bold;
    color: #27ae60;
}

/* Consciousness Hierarchy */
.hierarchy-diagram {
    text-align: center;
    margin: 2rem 0;
}

.hierarchy-level {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hierarchy-level h4 {
    color: white;
    margin-bottom: 0.5rem;
}

.arrow {
    font-size: 2rem;
    color: #3498db;
    font-weight: bold;
    margin: 1rem 0;
}

/* Proof Chain */
.proof-chain {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

.proof-step {
    background: #f8f9fa;
    border: 2px solid #3498db;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    flex: 1;
    min-width: 200px;
    max-width: 250px;
}

.proof-step strong {
    color: #2c3e50;
    display: block;
    margin-bottom: 0.5rem;
}

.proof-step p {
    font-size: 0.9rem;
    color: #666;
}

/* Validation Box */
.validation-box {
    background: linear-gradient(135deg, #e8f5e8 0%, #d4edda 100%);
    border: 2px solid #27ae60;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.validation-box h4 {
    color: #155724;
    margin-bottom: 0.5rem;
}

.validation-box ul {
    margin-left: 1rem;
}

/* Test Protocol */
.test-protocol {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.test-protocol h4 {
    color: #856404;
    margin-bottom: 1rem;
}

.test-protocol ol {
    margin-left: 1rem;
}

/* Plots */
#alignment-plot, #force-plot, #lightcone-plot {
    height: 400px;
    margin: 1rem 0;
    border: 1px solid #dee2e6;
    border-radius: 5px;
}

/* Comparison Tables */
.comparison-table table {
    font-size: 0.95rem;
}

.constants-table table {
    font-size: 0.9rem;
}

.predictions-table table {
    font-size: 0.85rem;
}

/* Footer */
footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 2rem;
}

footer p {
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.footer-links {
    margin: 1rem 0;
}

.footer-twitter {
    display: inline-block;
    background: linear-gradient(135deg, #1da1f2 0%, #0d8bd9 100%);
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-twitter:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(29, 161, 242, 0.4);
    background: linear-gradient(135deg, #0d8bd9 0%, #0c7cd5 100%);
}

/* Articles Section */
.article-form {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    margin: 1rem 0;
}

.help-text {
    color: #6c757d;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: block;
}

.submission-info {
    background: #e9ecef;
    border-left: 4px solid #6c757d;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 5px;
}

.articles-access {
    background: linear-gradient(135deg, #e8f5e8 0%, #d4edda 100%);
    border: 2px solid #27ae60;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
    text-align: center;
}

.articles-access p {
    margin: 0.5rem 0;
}

.articles-access a {
    color: #155724;
    font-weight: 600;
    text-decoration: none;
}

.articles-access a:hover {
    text-decoration: underline;
}

.loading-message {
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
    padding: 1rem;
    border-radius: 5px;
    margin: 1rem 0;
    text-align: center;
}

.loading-articles {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 2rem;
}

.no-articles {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px dashed #dee2e6;
}

.article-item {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
    transition: all 0.3s ease;
}

.article-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-color: #3498db;
}

.article-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    gap: 1rem;
}

.article-title {
    margin: 0;
    flex: 1;
}

.article-title a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
}

.article-title a:hover {
    color: #3498db;
    text-decoration: underline;
}

.article-date {
    color: #6c757d;
    font-size: 0.85rem;
    white-space: nowrap;
}

.article-description {
    color: #495057;
    margin: 0.75rem 0;
    line-height: 1.5;
}

.article-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
}

.article-link {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.article-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(52, 152, 219, 0.3);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.pagination button {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.pagination button:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(52, 152, 219, 0.3);
}

.pagination button:disabled {
    background: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

.pagination button:disabled:hover {
    transform: none;
    box-shadow: none;
}

#page-info {
    font-weight: 500;
    color: #495057;
}

@media (max-width: 768px) {
    .article-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .article-date {
        white-space: normal;
    }
    
    .pagination {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .pagination button {
        width: 100%;
        max-width: 200px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        margin: 0;
    }

    header h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    main {
        padding: 1rem;
    }

    .card {
        padding: 1rem;
    }

    .tabs {
        flex-direction: column;
    }

    .tab-button {
        flex: none;
    }

    .proof-chain {
        flex-direction: column;
    }

    .proof-step {
        max-width: 100%;
    }

    table {
        font-size: 0.8rem;
    }

    th, td {
        padding: 0.5rem;
    }
}

@media (max-width: 480px) {
    header {
        padding: 1rem;
    }

    header h1 {
        font-size: 1.5rem;
    }

    .equation-box {
        padding: 1rem;
    }

    .calculator {
        padding: 1rem;
    }
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #2980b9;
}

/* Loading animation for plots */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    color: #666;
    font-style: italic;
}

/* Special styling for key insights */
.key-insight {
    background: linear-gradient(135deg, #ffd54f 0%, #ffca28 100%);
    border-left: 4px solid #ff8f00;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 5px;
    font-weight: 500;
}

/* Mathematical notation improvements */
.mjx-chtml {
    font-size: 1.1em !important;
}

/* Enhanced hover effects */
.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

/* Papers Tab Styles */
.paper-summary {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.paper-summary h4 {
    color: #2c3e50;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.25rem;
}

.paper-summary h4:first-child {
    margin-top: 0;
}

.paper-summary a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

.paper-summary a:hover {
    text-decoration: underline;
}

.integration-flow {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 2rem 0;
}

.flow-step {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 0.5rem 0;
    text-align: center;
    width: 80%;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.flow-step h4 {
    color: white;
    margin-bottom: 0.5rem;
}

.author-info {
    background: #e8f4f8;
    border-left: 4px solid #3498db;
    padding: 1.5rem;
    border-radius: 5px;
}

.author-info h4 {
    color: #2c3e50;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.comparison-highlight {
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
    border: 2px solid #e17055;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    font-weight: 500;
    text-align: center;
}

.comparison-highlight strong {
    color: #2d3436;
}

/* Derived Physics Tab Styles */
.physics-derivation {
    background: #f8f9fa;
    border-left: 4px solid #27ae60;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 5px;
}

.physics-derivation p {
    margin: 0.5rem 0;
}

.physics-derivation ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.physics-derivation li {
    margin: 0.25rem 0;
}

.coverage-table {
    overflow-x: auto;
    margin: 1rem 0;
}

.coverage-table table {
    font-size: 0.85rem;
    min-width: 100%;
}

.coverage-table th {
    background: #27ae60;
    color: white;
    font-weight: 600;
    padding: 0.75rem;
}

.coverage-table td {
    padding: 0.75rem;
    vertical-align: top;
}

.coverage-table tr:nth-child(even) {
    background: #f8f9fa;
}

.coverage-table tr:hover {
    background: #e8f5e8;
}

/* Enhanced equation styling for derived physics */
.physics-derivation .equation-box {
    margin: 0.75rem 0;
    padding: 1rem;
    background: linear-gradient(135deg, #e8f5e8 0%, #d4f1d4 100%);
    border: 2px solid #27ae60;
}

.physics-derivation .equation-box .equation-caption {
    color: #155724;
    font-weight: 500;
}

/* Contact Styles */
.contact-info {
    background: #e8f4f8;
    border-left: 4px solid #3498db;
    padding: 1.5rem;
    border-radius: 5px;
    margin: 1rem 0;
}

.contact-info p {
    margin: 0.5rem 0;
    color: #2c3e50;
}

.x-contact {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    margin: 1rem 0;
    text-align: center;
}

.x-contact p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #495057;
}

.x-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.x-handle {
    background: linear-gradient(135deg, #1da1f2 0%, #0d8bd9 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-size: 1.2rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(29, 161, 242, 0.3);
}

.x-btn {
    background: linear-gradient(135deg, #1da1f2 0%, #0d8bd9 100%);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.x-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(29, 161, 242, 0.4);
    background: linear-gradient(135deg, #0d8bd9 0%, #0c7cd5 100%);
}

.academic-links {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #27ae60;
}

.research-summary {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #e67e22;
}

.research-summary p {
    margin-bottom: 1.5rem;
    color: #495057;
    font-size: 1.05rem;
    line-height: 1.7;
}

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

.highlight-item {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    font-weight: 500;
    color: #856404;
    font-size: 0.9rem;
}

.highlight-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

@media (max-width: 768px) {
    .research-highlights {
        grid-template-columns: 1fr;
    }
    
    .x-profile {
        gap: 0.75rem;
    }
    
    .x-handle {
        font-size: 1.1rem;
        padding: 0.875rem 1.5rem;
    }
    
    .x-btn {
        font-size: 0.9rem;
        padding: 0.675rem 1.5rem;
    }
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #495057;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ced4da;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

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

.form-group select {
    cursor: pointer;
}

.checkbox-label {
    display: flex !important;
    align-items: center;
    font-weight: normal !important;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: auto !important;
    margin-right: 0.75rem;
    transform: scale(1.2);
    accent-color: #3498db;
}

.submit-btn {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    margin: 1rem 0;
    width: 100%;
    max-width: 300px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.3);
    background: linear-gradient(135deg, #229954 0%, #1e8449 100%);
}

.submit-btn:active {
    transform: translateY(0);
}

.form-note {
    margin-top: 1rem;
    color: #6c757d;
    font-style: italic;
    text-align: center;
}

.form-note small {
    font-size: 0.85rem;
}

/* Alternative Contact Methods */
.alt-contact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.contact-method {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.contact-method h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
}

.contact-method p {
    margin: 0.75rem 0;
    color: #495057;
}

.contact-method ul {
    margin: 0.75rem 0;
    padding-left: 1.5rem;
}

.contact-method li {
    margin: 0.5rem 0;
    color: #495057;
}

.profile-links a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

.profile-links a:hover {
    text-decoration: underline;
}

/* Email Obfuscation */
.email-obfuscated {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

#email-display {
    background: #e9ecef;
    padding: 0.75rem 1rem;
    border-radius: 5px;
    border: 1px solid #ced4da;
    font-family: monospace;
    font-size: 0.95rem;
    color: #495057;
    flex: 1;
    min-width: 200px;
}

.reveal-email-btn {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.reveal-email-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
}

/* Research Areas Grid */
.research-areas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.research-area {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    border-top: 4px solid #3498db;
    transition: all 0.3s ease;
}

.research-area:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    border-top-color: #2980b9;
}

.research-area h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
}

.research-area ul {
    margin: 0;
    padding-left: 1.5rem;
}

.research-area li {
    margin: 0.5rem 0;
    color: #495057;
    font-size: 0.95rem;
}

/* Contact Form Validation States */
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.form-group input.success,
.form-group select.success,
.form-group textarea.success {
    border-color: #27ae60;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
}

.error-message {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: block;
}

.success-message {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 1rem;
    border-radius: 5px;
    margin: 1rem 0;
    text-align: center;
    font-weight: 500;
}

/* Form submission states */
.form-submitting .submit-btn {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
}

.form-submitting .submit-btn:hover {
    background: #6c757d;
    transform: none;
    box-shadow: none;
}

/* Responsive Contact Form */
@media (max-width: 768px) {
    .contact-form {
        padding: 1.5rem;
    }
    
    .alt-contact {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .research-areas {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .email-obfuscated {
        flex-direction: column;
        align-items: stretch;
    }
    
    #email-display {
        min-width: auto;
    }
    
    .reveal-email-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .contact-form {
        padding: 1rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .submit-btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

/* Contact Tab Animation */
#contact.tab-content.active .card {
    animation: slideInUp 0.6s ease-out;
}

#contact.tab-content.active .card:nth-child(2) {
    animation-delay: 0.1s;
}

#contact.tab-content.active .card:nth-child(3) {
    animation-delay: 0.2s;
}

#contact.tab-content.active .card:nth-child(4) {
    animation-delay: 0.3s;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Print styles */
@media print {
    body {
        background: white;
    }
    
    .container {
        box-shadow: none;
        background: white;
    }
    
    .tabs, button, .reveal-email-btn, .submit-btn {
        display: none;
    }
    
    .tab-content {
        display: block !important;
    }
    
    .paper-summary, .integration-flow, .author-info, .contact-form {
        break-inside: avoid;
    }
    
    .email-obfuscated #email-display {
        background: transparent;
        border: 1px solid #ccc;
    }
}
