/* ==============================
   Global Styles for Academic Theme
   ============================== */
:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --secondary: #4f46e5;
    --tertiary: #0ea5e9;
    --accent: #6366f1;
    --dark: #1e293b;
    --light: #f8fafc;
    --gray: #64748b;
    --light-gray: #e2e8f0;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --paper: #ffffff;
    --paper-accent: #f7f9fc;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --font-heading: 'DM Serif Display', Georgia, 'Times New Roman', Times, serif;
    --font-mono: 'JetBrains Mono', 'Courier New', Courier, monospace;
    --transition: all 0.3s ease;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow: 0 4px 6px rgba(0,0,0,0.07);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
    font-size: 16px;
}

body.academic-theme {
    background-color: var(--paper);
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 0;
}

/* Typography for Academic Theme */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    margin-bottom: 1rem;
    font-weight: 700;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary);
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1.5rem;
}

.lead-paragraph {
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--dark);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.caption {
    font-size: 0.875rem;
    color: var(--gray);
    text-align: center;
    margin-top: 0.5rem;
}

blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--gray);
}

blockquote cite {
    display: block;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    font-style: normal;
    color: var(--dark);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--primary);
    color: #fff;
    border-radius: 4px;
    font-weight: 500;
    transition: var(--transition);
    border: 2px solid var(--primary);
    cursor: pointer;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-sm);
}

.btn:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-outline {
    background-color: white;
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: #fff;
}

.hero-actions .btn {
    margin: 0.5rem;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
    z-index: 1000;
    backdrop-filter: blur(5px);
    border-bottom: 1px solid var(--light-gray);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 5%;
}

.logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--accent);
    font-size: 1.1em;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links li a {
    color: var(--dark);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding-bottom: 5px;
}

.nav-links li a:hover {
    color: var(--primary);
}

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-links li a:hover::after {
    width: 100%;
}

/* Academic Hero Section */
.academic-hero {
    height: 100vh;
    background: linear-gradient(to right, rgba(30, 41, 59, 0.95), rgba(30, 41, 59, 0.85));
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 4rem;
    overflow: hidden;
}

.hero-content {
    max-width: 1000px;
    padding: 2rem;
    z-index: 1;
}

.project-tag {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--light);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.academic-hero h1 {
    font-size: 2.8rem;
    color: #fff;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.author {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.project-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Academic Layout */
.academic-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.sidebar {
    position: sticky;
    top: 100px;
    height: calc(100vh - 120px);
    overflow-y: auto;
    padding-right: 1rem;
    scrollbar-width: thin;
}

.sidebar-content {
    background-color: var(--light);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.sidebar h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--light-gray);
}

.sidebar-nav {
    margin-bottom: 2rem;
}

.sidebar-nav li {
    margin-bottom: 0.5rem;
}

.sidebar-nav a {
    display: block;
    padding: 0.5rem 0;
    color: var(--gray);
    transition: var(--transition);
    font-size: 0.95rem;
}

.sidebar-nav a:hover {
    color: var(--primary);
    padding-left: 0.5rem;
}

.stat-highlight {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed var(--light-gray);
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-desc {
    font-size: 0.9rem;
    color: var(--gray);
}

.download-section {
    margin-top: 2rem;
}

.download-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    color: var(--dark);
    border-bottom: 1px solid var(--light-gray);
}

.download-link:hover {
    color: var(--primary);
}

.download-link i {
    margin-right: 0.75rem;
    color: var(--primary);
}

/* Content Area */
.content-area {
    background-color: var(--paper);
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.content-section {
    padding: 3rem;
    border-bottom: 1px solid var(--light-gray);
}

.content-section:last-child {
    border-bottom: none;
}

.section-content {
    margin-top: 2rem;
}

.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

/* Research Context */
.media-text-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: start;
}

.academic-list {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.academic-list li {
    margin-bottom: 0.5rem;
}

.research-image {
    width: 100%;
    border-radius: 4px;
    box-shadow: var(--shadow);
}

.technology-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.comparison-item {
    background-color: var(--light);
    padding: 1.5rem;
    border-radius: 8px;
}

.check-list {
    list-style: none;
    padding: 0;
}

.check-list li {
    position: relative;
    padding-left: 1.8rem;
    margin-bottom: 0.75rem;
}

.check-list.positive li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

.check-list.negative li:before {
    content: '✗';
    position: absolute;
    left: 0;
    color: var(--danger);
    font-weight: bold;
}

/* Methodology */
.research-approach {
    font-size: 1.2rem;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    color: var(--gray);
}

.methodology-diagram {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    position: relative;
}

.methodology-diagram:before {
    content: '';
    position: absolute;
    top: 35px;
    left: 10%;
    right: 10%;
    height: 2px;
    background-color: var(--light-gray);
    z-index: 0;
}

.method-stage {
    position: relative;
    background-color: var(--paper);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    width: 30%;
    z-index: 1;
}

.stage-number {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: var(--shadow);
}

.method-stage h4 {
    text-align: center;
    margin-bottom: 1rem;
}

.method-details {
    list-style-type: disc;
    padding-left: 1.5rem;
}

.method-details li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.tools-used {
    margin-top: 3rem;
}

.tools-used h3 {
    text-align: center;
    margin-bottom: 2rem;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
}

.tool-item {
    text-align: center;
    padding: 1.5rem;
    background-color: var(--light);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.tool-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.tool-item i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.tool-item h4 {
    margin-bottom: 0.5rem;
}

.tool-item p {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 0;
}

/* Findings */
.findings-highlight {
    background-color: var(--light);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 3rem;
    border-left: 4px solid var(--primary);
}

.findings-highlight p {
    font-size: 1.2rem;
    margin-bottom: 0;
}

.findings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.finding-card {
    background-color: var(--light);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.finding-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.finding-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(37, 99, 235, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.finding-icon i {
    font-size: 1.5rem;
    color: var(--primary);
}

.finding-card h3 {
    margin-bottom: 0.5rem;
}

.finding-data {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.limitations-section {
    margin-top: 3rem;
}

.limitations-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.limitation-item {
    background-color: var(--light);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.limitation-item h4 {
    color: var(--gray);
    margin-bottom: 0.5rem;
}

.limitation-item h4 i {
    color: var(--warning);
    margin-right: 0.5rem;
}

.limitation-item p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

.case-study {
    margin-top: 3rem;
    background-color: var(--light);
    padding: 2rem;
    border-radius: 8px;
}

.case-study h3 {
    margin-bottom: 1.5rem;
}

.case-study-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}

.case-image {
    align-self: start;
}

.case-details p:last-child {
    margin-bottom: 0;
}

/* Implications */
.implications-intro {
    text-align: center;
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.application-card {
    background-color: var(--light);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.application-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.application-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(37, 99, 235, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.application-icon i {
    font-size: 1.5rem;
    color: var(--primary);
}

.application-card h3 {
    margin-bottom: 1rem;
}

.application-card p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

.future-research {
    margin-top: 3rem;
}

.research-directions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    list-style: none;
    padding: 0;
}

.research-directions li {
    background-color: var(--light);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.research-directions h4 {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.research-directions h4:before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
}

.research-directions p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* CTA Section */
.cta-section {
    background-color: var(--primary-dark);
    color: white;
    padding: 3rem;
    text-align: center;
}

.cta-section h2 {
    color: white;
}

.cta-section h2:after {
    background-color: white;
    left: 50%;
    transform: translateX(-50%);
}

.cta-section p {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Academic Contact */
.academic-contact {
    background-color: var(--light);
    padding: 5rem 0;
}

.contact-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-item i {
    font-size: 1.25rem;
    color: var(--primary);
    margin-top: 0.25rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--gray);
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary);
    transform: translateY(-3px);
}

.supervisor-info {
    background-color: var(--paper);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    margin-top: 1rem;
}

.supervisor-info h4 {
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background-color: var(--paper);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 0.8rem;
    border: 1px solid var(--light-gray);
    border-radius: 4px;
    font-family: var(--font-main);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

/* Academic Footer */
.academic-footer {
    background-color: var(--dark);
    color: #fff;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 2fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-info p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
}

.copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin-top: 1.5rem;
}

.footer-links h4,
.footer-acknowledgment h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-links ul li a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-acknowledgment p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

/* Responsive Styles */
@media (max-width: 1100px) {
    .academic-layout {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
        height: auto;
        margin-bottom: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 992px) {
    .academic-hero h1 {
        font-size: 2.2rem;
    }
    
    .methodology-diagram {
        flex-direction: column;
        gap: 2rem;
    }
    
    .methodology-diagram:before {
        display: none;
    }
    
    .method-stage {
        width: 100%;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .media-text-container,
    .two-column,
    .case-study-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .content-section {
        padding: 2rem;
    }
    
    .technology-comparison {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .academic-hero {
        padding-top: 8rem;
    }
    
    .academic-hero h1 {
        font-size: 1.8rem;
    }
    
    .findings-grid,
    .limitations-container,
    .applications-grid {
        grid-template-columns: 1fr;
    }
    
    .tool-item {
        padding: 1rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light);
}

::-webkit-scrollbar-thumb {
    background: var(--gray);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Code block styling */
code {
    font-family: var(--font-mono);
    background-color: var(--light);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-size: 0.9em;
    color: var(--primary-dark);
}

pre {
    background-color: var(--dark);
    color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

pre code {
    background-color: transparent;
    color: #fff;
    padding: 0;
}
/* Enhanced Table Styling - Simple Version */
.comparison-section {
    background-color: var(--light);
    padding: 2rem;
    border-radius: 8px;
    margin: 3rem 0;
    box-shadow: var(--shadow);
}

.table-responsive {
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.academic-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background-color: var(--paper);
}

.academic-table thead {
    background-color: var(--primary);
    color: white;
}

.academic-table th, 
.academic-table td {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid var(--light-gray);
}

.academic-table th {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.academic-table tbody tr:hover {
    background-color: rgba(37, 99, 235, 0.05);
}

/* Success values styling */
.success-value {
    color: var(--success);
    font-weight: 700;
}

/* Highlighted row */
.highlight-row {
    background-color: rgba(37, 99, 235, 0.08);
    font-weight: 600;
}

.highlight-row td {
    border-top: 2px solid var(--light-gray);
}

/* Table caption */
.table-caption {
    font-size: 0.9rem;
    color: var(--gray);
    text-align: center;
    margin-top: 1rem;
}

/* Video Demo Section */
.video-demo {
    margin: 3rem 0;
    text-align: center;
}

.video-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background-color: var(--primary);
    color: white;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.video-link:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.video-link i {
    font-size: 1.5rem;
}
/* ==============================
   Additional Styles for Enhanced UX
   ============================== */

/* Dark Theme Support */
body.dark-theme {
    --primary: #3B82F6;
    --primary-dark: #1D4ED8;
    --secondary: #6366F1;
    --tertiary: #0EA5E9;
    --accent: #818CF8;
    --dark: #F8FAFC;
    --light: #1E293B;
    --gray: #94A3B8;
    --light-gray: #334155;
    --paper: #0F172A;
    --paper-accent: #1E293B;
    color: var(--dark);
    background-color: var(--light);
}

body.dark-theme .sidebar-content,
body.dark-theme .content-area {
    background-color: var(--paper);
}

body.dark-theme .finding-card,
body.dark-theme .tool-item,
body.dark-theme .application-card {
    background-color: var(--paper-accent);
}

body.dark-theme blockquote {
    color: var(--gray);
}

body.dark-theme header {
    background-color: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(5px);
}

body.dark-theme .findings-highlight {
    background-color: var(--paper-accent);
}

body.dark-theme a {
    color: var(--primary);
}

body.dark-theme a:hover {
    color: var(--primary-dark);
}

body.dark-theme .nav-links li a {
    color: rgba(255, 255, 255, 0.85); /* Bright, slightly transparent white instead of var(--light) */
}

body.dark-theme .academic-table thead {
    background-color: var(--primary-dark);
}

body.dark-theme .academic-table tbody tr:hover {
    background-color: rgba(59, 130, 246, 0.1);
}
body.dark-theme .academic-footer {
    background-color: #0a101e; /* Darker than the main background */
    color: var(--dark);
}

body.dark-theme .footer-info p,
body.dark-theme .footer-acknowledgment p {
    color: rgba(248, 250, 252, 0.7);
}

body.dark-theme .footer-links ul li a {
    color: rgba(248, 250, 252, 0.7);
}

body.dark-theme .footer-links ul li a:hover {
    color: #fff;
}

body.dark-theme .footer-links h4,
body.dark-theme .footer-acknowledgment h4 {
    color: rgba(248, 250, 252, 0.9);
}

body.dark-theme .copyright {
    color: rgba(248, 250, 252, 0.5);
}

body.dark-theme .project-tag {
    color: rgba(255, 255, 255, 0.9);
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Ensure the theme switch button appears on all pages */
.theme-switch {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    z-index: 1000; /* Increased z-index to ensure visibility */
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.theme-switch:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.theme-switch.dark-active {
    background-color: var(--light);
    color: var(--primary);
}

/* Enhanced Header */
header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

header.header-hidden {
    transform: translateY(-100%);
}

/* Active Navigation Styling */
.nav-links li a.active,
.sidebar-nav a.active {
    color: var(--primary) !important;
    font-weight: 600;
}

.nav-links li a.active::after {
    width: 100%;
}

.sidebar-nav a.active {
    padding-left: 0.5rem;
    border-left: 3px solid var(--primary);
}

/* Form Error States */
.error {
    border-color: var(--danger) !important;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2) !important;
}

.form-status {
    padding: 0.75rem;
    border-radius: 4px;
    margin-top: 1rem;
    text-align: center;
    font-weight: 500;
}

.form-status.success {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.form-status.error {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

/* Image Zoom Functionality */
.zoom-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.research-image {
    cursor: pointer;
}

.research-image:hover + .zoom-indicator,
.zoom-indicator:hover {
    opacity: 1;
}

.image-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    cursor: zoom-out;
}

.zoomed-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.overlay-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

/* Enhanced Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* Page Header Styling */
.page-header {
    background: linear-gradient(to right, rgba(30, 41, 59, 0.95), rgba(30, 41, 59, 0.85));
    color: white;
    padding: 8rem 0 4rem;
    text-align: center;
}

.page-header h1 {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.9);
}

/* Fixed sidebar for large screens */
@media (min-width: 1100px) {
    .academic-layout {
        position: relative;
    }
    
    .sidebar {
        position: sticky;
        top: 100px;
    }
}

/* Mobile navigation improvements */
@media (max-width: 768px) {
    header {
        transition: transform 0.3s ease;
    }
    
    nav {
        padding: 0.5rem 5%;
    }
    
    .nav-links {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.98);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        padding: 1rem 0;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
        z-index: 90;
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    
    .mobile-menu-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 1.5rem;
        color: var(--dark);
        cursor: pointer;
    }
   body.dark-theme .nav-links {
    background-color: rgba(15, 23, 42, 0.98);
}
} /* Added missing closing brace for the media query */

/* Dark mode fixes for all primary action buttons */
body.dark-theme .btn {
    color: white;
}

body.dark-theme .hero-actions .btn,
body.dark-theme .cta-section .btn {
    background-color: white;
    color: var(--primary-dark);
    border-color: white;
}

body.dark-theme .hero-actions .btn-outline,
body.dark-theme .cta-section .btn-outline {
    background-color: transparent;
    color: white;
    border-color: white;
}

body.dark-theme .hero-actions .btn-outline:hover,
body.dark-theme .cta-section .btn-outline:hover {
    background-color: white;
    color: var(--primary-dark);
}
/* Add this to your CSS file */

/* Technology comparison responsive fixes */
@media (max-width: 768px) {
    .technology-comparison {
        flex-direction: column;
    }
    
    .comparison-item {
        margin-bottom: 20px;
        width: 100%;
    }
    
    /* Methodology section fixes */
    .methodology-diagram {
        flex-direction: column;
    }
    
    .method-stage {
        width: 100%;
        margin-bottom: 20px;
    }
    
    /* Findings grid fixes */
    .findings-grid {
        grid-template-columns: 1fr;
    }
    
    .finding-card {
        margin-bottom: 20px;
    }
    
    /* Tools grid responsive */
    .tools-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    /* Video height adjustment */
    .video-embed-wrapper {
        height: 250px !important;
    }
    
    /* Applications grid */
    .applications-grid {
        grid-template-columns: 1fr;
    }
    
    /* Case study responsive */
    .case-study-content {
        flex-direction: column;
    }
    
    .case-image {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .case-details {
        width: 100%;
    }
    
    /* Limitations container */
    .limitations-container {
        flex-direction: column;
    }
    
    .limitation-item {
        width: 100%;
        margin-bottom: 15px;
    }
}

/* Fix for very small screens */
@media (max-width: 480px) {
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .stage-number {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

