/* General Styling */
body {
    margin: 0;
    font-family: 'Times New Roman', Times, serif;
    background-color: #f5f5f5;
    scroll-behavior: smooth;
    line-height: 1.6;
    color: #333;
}

/* Header Styling */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 10px;
    background: linear-gradient(135deg, #2c3e50, #1a2a3a);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-left {
    font-size: 2.0rem;
    font-weight: 700;
    background: linear-gradient(to right, #4facfe, #00f2fe);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-right: auto; /* Pushes nav to the right */
    padding-left: 20px;    
}

.header-left:hover {
    transform: scale(1.05);
    text-shadow: 0 0 10px rgba(79, 172, 254, 0.3);
}

.header-right {
    display: flex;
    gap: 0.8rem; /* Reduced from 1.5rem */
    margin-left: -20px; /* Shift entire nav left */
    display: flex;
    padding-right: 20px;
}

.header-right a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0.7rem; /* Adjusted padding */
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    white-space: nowrap; /* Prevent text wrapping */
    font-size: 1.5rem;
}

.header-right a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #4facfe, #00f2fe);
    transition: width 0.3s ease;
}

.header-right a:hover::before {
    width: 100%;
}

.header-right a:hover {
    color: #4facfe;
    transform: translateY(-2px);
}

.header-right a.active {
    background: rgba(255, 255, 255, 0.1);
    color: #00f2fe;
}

.header-right a.active::before {
    width: 100%;
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 1rem;
        align-items: flex-start;
    }

    .header-left {
        margin-bottom: 1rem;
        margin-right: 0;
    }

    .header-right {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
        margin-left: 0;
    }

    .header-right.show {
        display: flex;
    }

    .menu-toggle {
        display: block;
        position: absolute;
        right: 1rem;
        top: 1rem;
    }
}

/* Scroll Effect */
header.scrolled {
    padding: 0.5rem 0.7rem;
    background: rgba(44, 62, 80, 0.95);
    backdrop-filter: blur(10px);
    font-size: 1.0rem;
    white-space: nowrap; /* Prevent text wrapping */

}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #0074cc 0%, #004e8a 100%);
    color: white;
    text-align: center;
    padding: 100px 20px;
    position: relative;
}

.hero::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: linear-gradient(to bottom right, transparent 49%, white 50%);
}

.hero h1 {
    font-size: 50px;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 25px;
    margin: 20px auto;
    max-width: 800px;
    opacity: 0.9;
}

.hero button {
    margin-top: 30px;
    padding: 12px 30px;
    font-size: 20px;
    background-color: white;
    color: #0074cc;
    border: none;
    cursor: pointer;
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.hero button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

/* Content Sections */
.section {
    padding: 80px 30px;
    text-align: center;
    background-color: white;
    position: relative;
}

.section h1 {
    font-size: 40px;
    margin-bottom: 30px;
    color: #003366;
    position: relative;
    display: inline-block;
}

.section h1::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    height: 3px;
    width: 80px;
    background-color: #0074cc;
}

.section h2 {
    font-size: 35px;
    margin-bottom: 25px;
    color: #003366;
}

.section p {
    font-size: 22px;
    max-width: 800px;
    margin: 0 auto 20px;
    line-height: 1.7;
}

.btn-group {
    margin: 30px 0;
}

.btn-group button {
    margin: 10px 15px;
    padding: 12px 25px;
    font-size: 20px;
    background-color: #0074cc;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 30px;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.btn-group button:hover {
    background-color: #005fa3;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.images {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.images img {
    width: 350px;
    height: auto;
    border-radius: 10px;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.images img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Concepts Section */
.concepts-section {
    padding: 50px 30px;
    background-color: #f9f9f9;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.concept {
    margin-bottom: 30px;
    background-color: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.concept:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.concept h2 {
    color: #003366;
    font-size: 25px;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.concept h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #0074cc;
}

.concept p {
    margin-bottom: 20px;
    font-size: 20px;
    line-height: 1.6;
    color: #555;
}

.concept ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.concept li {
    margin-bottom: 10px;
    line-height: 1.5;
}

.concept img {
    width: 100%;
    border-radius: 8px;
    margin-top: auto;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* Lab Section */
.lab-brief {
    background-color: #f0f8ff;
}

.lab-brief button {
    margin-top: 25px;
    padding: 12px 30px;
    background-color: #0074cc;
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.lab-brief button:hover {
    background-color: #005fa3;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.lab-section {
    padding: 50px 30px;
    background: #f8f9fa;
}

.accordion {
    max-width: 900px;
    margin: auto;
}

.accordion-item {
    margin-bottom: 15px;
    border: none;
    border-radius: 10px;
    overflow: hidden;
    background-color: white;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.accordion-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.12);
}

.accordion-header {
    background-color: #e6f2ff;
    color: #003366;
    cursor: pointer;
    padding: 18px 20px;
    text-align: left;
    font-size: 22px;
    width: 100%;
    border: none;
    outline: none;
    transition: background 0.3s ease;
    position: relative;
    font-weight: 600;
}

.accordion-header:hover {
    background-color: #d0eaff;
}

.accordion-content {
    padding: 25px;
    display: none;
    animation: fadeIn 0.4s ease-in-out;
    background-color: #fefefe;
}

.accordion-content p {
    margin-bottom: 15px;
    line-height: 1.6;
}

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

.accordion-item.active .accordion-content {
    display: block;
}

.accordion-header::after {
    content: '▼';
    position: absolute;
    right: 20px;
    transition: transform 0.3s ease;
    margin-left: 15px;
}

.accordion-item.active .accordion-header::after {
    transform: rotate(180deg);
}

/* Quote Styling */
.quote {
    margin: 60px auto;
    font-style: italic;
    background: #f0f8ff;
    border-left: 6px solid #0074cc;
    padding: 30px;
    font-size: 1.3rem;
    color: #333;
    max-width: 800px;
    border-radius: 0 10px 10px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    position: relative;
}

.quote::before {
    content: "";
    font-size: 4rem;
    color: #0074cc;
    opacity: 0.2;
    position: absolute;
    top: 10px;
    left: 10px;
    line-height: 1;
}

/* Footer Styling */
footer {
    background-color: #003366;
    color: white;
    padding: 40px 30px;
    text-align: center;
}

footer p {
    margin: 10px 0;
}

footer nav {
    margin: 20px 0;
}

footer nav a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s ease;
}

footer nav a:hover {
    color: #66b3ff;
}

.social-icons {
    margin: 20px 0;
}

.social-icons a {
    display: inline-block;
    margin: 0 10px;
    transition: transform 0.3s ease;
}

.social-icons img {
    width: 30px;
    margin: 0;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.social-icons a:hover {
    transform: translateY(-3px);
}

.social-icons a:hover img {
    opacity: 1;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .header-right a {
        margin-left: 10px;
        font-size: 18px;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 20px;
    }
    
    .section {
        padding: 50px 20px;
    }
    
    .section h1 {
        font-size: 28px;
    }
    
    .section h2 {
        font-size: 24px;
    }
    
    .section p {
        font-size: 18px;
    }
    
    .concepts-section {
        grid-template-columns: 1fr;
    }
    
    .btn-group button {
        margin: 10px 5px;
        font-size: 20px;
    }
}
/* Lab Page Hero Section */
.lab-hero {
    background: linear-gradient(135deg, #004e8a 0%, #0074cc 100%);
    color: white;
    text-align: center;
    padding: 100px 20px;
    position: relative;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.lab-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.lab-hero h1 {
    font-size: 42px;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.lab-hero p {
    font-size: 25px;
    opacity: 0.9;
}

/* Lab Introduction Section */
.lab-intro {
    padding: 80px 30px 50px;
}

.lab-highlights {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.highlight-card {
    background-color: #f5f9ff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    transition: all 0.3s ease;
}

.highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.highlight-icon {
    font-size: 36px;
    margin-bottom: 15px;
}

.highlight-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #003366;
}

.lab-approach {
    max-width: 800px;
    margin: 30px auto;
    font-style: italic;
    font-size: 20px;
    line-height: 1.7;
}

.lab-methodology {
    background-color: #f0f8ff;
    padding: 30px;
    border-radius: 12px;
    max-width: 800px;
    margin: 40px auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
    font-size: 20px;
}

.lab-methodology h3 {
    color: #003366;
    margin-bottom: 20px;
    text-align: left;
}

.lab-methodology ol {
    text-align: left;
    padding-left: 25px;
    font-size: 18px;
}

.lab-methodology li {
    margin-bottom: 10px;
    line-height: 1.7;
    font-size: 18px;
}

/* Metrics Section */
.metrics-section {
    background-color: #e6f2ff;
    padding: 60px 30px;
    text-align: center;
}

.metrics-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
}

.metric-card {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    min-width: 180px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.metric-value {
    font-size: 42px;
    font-weight: 700;
    color: #0074cc;
    margin-bottom: 10px;
}

.metric-label {
    font-size: 18px;
    color: #555;
}

/* Lab Guide Section */
.lab-guide-section {
    padding: 60px 30px 30px;
    text-align: center;
    background-color: white;
}

.filter-controls {
    margin: 30px 0;
}

.filter-btn {
    background-color: #f0f0f0;
    border: none;
    padding: 8px 15px;
    margin: 0 5px 10px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background-color: #e0e0e0;
}

.filter-btn.active {
    background-color: #0074cc;
    color: white;
}

/* Accordion Styling Enhancements */
.exp-number {
    background-color: #0074cc;
    color: white;
    padding: 5px 10px;
    border-radius: 50%;
    margin-right: 15px;
    font-weight: bold;
    display: inline-block;
    min-width: 25px;
    text-align: center;
}

.exp-title {
    flex-grow: 1;
}

.exp-complexity {
    background-color: #f0f8ff;
    padding: 5px 22px;
    border-radius: 5px;
    font-size: 16px;
    color: #0074cc;
    font-family: 'Times New Roman', Times, serif;
    font-weight: normal;
}

.accordion-header {
    display: flex;
    align-items: center;
}

/* Experiment Content Styling */
.experiment-details {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.experiment-description {
    flex: 3;
    min-width: 300px;
    font-size: 18px;
}

.experiment-analysis {
    flex: 2;
    min-width: 300px;
    padding: 25px;
    background-color: #f9f9f9;
    border-radius: 10px;
    font-size: 18px;
}

.algorithm-details {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.algorithm-details:last-child {
    border-bottom: none;
}

.algorithm-properties {
    background-color: #f5f9ff;
    padding: 15px 20px;
    border-radius: 8px;
    margin-top: 15px;
    list-style-type: none;
}

.algorithm-properties li {
    margin-bottom: 8px;
}

.algorithm-properties ul {
    padding-left: 20px;
    margin-top: 5px;
    list-style-type: disc;
}

.implementation-insight {
    margin-top: 20px;
    padding: 15px;
    background-color: #fff8e6;
    border-left: 4px solid #ffd166;
    border-radius: 0 5px 5px 0;
    font-size: 18px;
}

.chart-placeholder {
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
}

.chart-placeholder img {
    width: 100%;
    display: block;
}

.key-findings, .optimization-note, .application-examples {
    margin-top: 20px;
}

.key-findings h5, .optimization-note h5, .application-examples h5 {
    font-size: 18px;
    color: #003366;
    margin-bottom: 10px;
}

/* Lab Conclusion Section */
.lab-conclusion {
    background-color: #f0f8ff;
}

.learning-outcomes {
    max-width: 800px;
    margin: 30px auto;
    text-align: left;
    font-size: 20px; /* Increase font size for general text */
}

.learning-outcomes h3 {
    margin-bottom: 20px;
    color: #003366;
    font-size: 26px; /* Increase font size for the heading */
}

.learning-outcomes ul {
    padding-left: 25px;
}

.learning-outcomes li {
    margin-bottom: 10px;
    line-height: 1.7;
    font-size: 20px; /* Ensure list items have an increased font size */
}


/* Back to Top Button */
#backToTopBtn {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: #0074cc;
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;
    font-size: 20px;
    width: 50px;
    height: 50px;
    text-align: center;
    line-height: 1;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

#backToTopBtn:hover {
    background-color: #005fa3;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.25);
}

/* Additional styling for font family consistency */
.hero-badges .badge {
    font-family: 'Times New Roman', Times, serif;
}

.quote-box .quote-text, 
.quote-box .quote-author {
    font-family: 'Times New Roman', Times, serif;
}

.timeline-item .timeline-content p {
    font-family: 'Times New Roman', Times, serif;
}

.algorithm-name, 
.algorithm-complexity {
    font-family: 'Times New Roman', Times, serif;
}

.footer-content h3,
.footer-content p,
.footer-bottom p {
    font-family: 'Times New Roman', Times, serif;
}

/* Responsive styling for experiment details */
@media (max-width: 768px) {
    .lab-hero {
        padding: 70px 20px;
    }
    
    .lab-hero h1 {
        font-size: 32px;
    }
    
    .highlight-card {
        min-width: 100%;
    }
    
    .experiment-details {
        flex-direction: column;
    }
    
    .accordion-header {
        padding: 15px;
        font-size: 18px;
    }
    
    .exp-complexity {
        background-color: #f0f8ff;
        padding: 5px 22px;
        border-radius: 5px;
        font-size: 18px;
        color: #0074cc;
        font-family: 'Times New Roman', Times, serif;
        font-weight: normal;
    }
    
    
    .metric-card {
        min-width: 140px;
        padding: 20px;
    }
    
    .metric-value {
        font-size: 32px;
    }
}