:root {
    --primary-color: #2e7d32; /* Emerald Green */
    --primary-dark: #1b5e20;
    --secondary-color: #1565c0; /* Professional Blue */
    --text-color: #2c3e50;
    --text-light: #546e7a;
    --bg-color: #fcfdfc;
    --card-bg: #ffffff;
    --border-color: #e0e0e0;
    --highlight-bg: #e8f5e9;
    --highlight-border: #81c784;
    --footer-bg: #1a252f;
    --nav-height: 70px;
    --transition: all 0.3s ease;
}

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

body {
    display: flex;
    flex-direction: column;
    background-color: var(--bg-color);
    padding-top: 40px;
    min-height: 100vh;
    color: var(--text-color);
    line-height: 1.6;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid #e0e0e0;
    background-color: #ffffff;
    width: 100%;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    padding: 0 20px;
    max-width: 1200px;
    height: var(--nav-height);
}

.logo {
    display: flex;
    align-items: center;
    transition: var(--transition);
    cursor: pointer;
    border-radius: 6px;
    padding: 6px 10px;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.4rem;
    text-decoration: none;
}

.logo:hover {
    background-color: rgba(46, 125, 50, 0.1);
}

.nav-links {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-links li {
    border-right: 1px solid #ccc;
    padding: 0 12px;
}

.nav-links li:last-child {
    border-right: none;
}

.nav-links a {
    transition: var(--transition);
    border-bottom: 2px solid transparent;
    background: transparent;
    padding: 8px 10px;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
}

.nav-links a:hover {
    border-bottom: 2px solid #43a047;
    border-radius: 4px;
    background-color: rgba(67, 160, 71, 0.08);
    color: #43a047;
}

.nav-links a.active {
    border-bottom: 3px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
}

/* Main Content */
main {
    flex: 1;
    margin-top: 40px;
    margin: 40px auto;
    margin-top: var(--nav-height);
    padding: 0 40px;
    width: 100%;
    max-width: 1100px;
}

/* Headings */
h1 {
    margin-bottom: 10px;
    color: var(--primary-dark);
    font-size: 2.4rem;
}

h2 {
    margin: 30px 0 15px 0;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    color: var(--secondary-color);
    font-size: 1.6rem;
}

h3 {
    margin: 20px 0 10px 0;
    color: var(--text-color);
    font-size: 1.3rem;
    font-size: 1.3rem;
}

p {
    margin-bottom: 15px;
    color: var(--text-color);
}

.subtitle {
    margin-bottom: 25px;
    color: var(--text-light);
    font-size: 1.2rem;
}

.section {
    margin-bottom: 60px;
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.card {
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--card-bg);
    padding: 25px;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

.card h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Buttons */
.btn {
    display: inline-block;
    transition: var(--transition);
    margin-top: 10px;
    border-radius: 5px;
    background: var(--primary-color);
    padding: 10px 20px;
    color: white;
    text-decoration: none;
}

.btn:hover {
    background: var(--primary-dark);
}

/* Data Box */
.data-box {
    margin: 25px 0;
    border: 1px solid var(--highlight-border);
    border-left: 5px solid var(--highlight-border);
    border-radius: 8px;
    background: var(--highlight-bg);
    background-color: var(--highlight-bg);
    padding: 20px;
}

.data-box h4 {
    margin-bottom: 10px;
    margin: 0 0 10px 0;
    color: var(--primary-dark);
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.data-box p {
    margin-bottom: 10px;
}

.data-box ul {
    margin-top: 10px;
    margin-left: 20px;
}

.data-box li {
    margin-bottom: 8px;
}

/* Tables */
.table-container {
    margin: 25px 0;
    overflow-x: auto;
}

table {
    border-collapse: collapse;
    background: white;
    width: 100%;
}

th,
td {
    border-bottom: 1px solid var(--border-color);
    padding: 15px;
    text-align: left;
}

th {
    background-color: #f1f3f5;
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
}

tr:hover {
    background-color: #f9f9f9;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.team-member {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: white;
    padding: 20px;
    text-align: center;
}

.member-photo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 15px;
    border-radius: 50%;
    background: #e0e0e0;
    width: 100px;
    height: 100px;
    color: #999;
    font-size: 2rem;
}

.team-member h4 {
    margin-bottom: 5px;
}

.team-member p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Footer */
footer {
    margin-top: auto;
    background-color: var(--footer-bg);
    padding: 40px 20px;
    color: #ffffff;
}

.footer-bottom {
    margin: 30px auto 0;
    border-top: 1px solid #34495e;
    padding-top: 20px;
    max-width: 1200px;
    color: #e2e8f0;
    font-size: 0.85rem;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: start;
    gap: 30px;
    margin: 0 auto;
    max-width: 1200px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    color: #ffffff;
}

.footer-section h4 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

footer a {
    transition: var(--transition);
    color: #81c784;
    text-decoration: underline;
    text-underline-offset: 3px;
}

footer a:hover {
    color: #95f697;
    text-decoration-thickness: 2px;
}

footer p {
    color: #f5f7fa;
}

/* Accessibility & Utils */
.source-note {
    margin-top: 10px;
    color: var(--text-light);
    font-style: italic;
    font-size: 0.85rem;
}

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

li {
    margin-bottom: 10px;
}

/* Image Comparison Slider */
.comparison-slider-container {
    margin: 30px 0;
}

.comparison-image-wrapper {
    position: relative;
    cursor: ew-resize;
    margin: 0 auto;
    border-radius: 8px;
    width: 100%;
    max-width: 800px;
    overflow: hidden;
}

.comparison-img-bottom {
    display: block;
    width: 100%;
    height: auto;
}

.comparison-img-top-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
}

.comparison-img-top {
    display: block;
    width: 800px;
    max-width: none;
    height: 100%;
}

.comparison-slider-handle {
    display: flex;
    position: absolute;
    top: 0;
    left: 50%;
    justify-content: center;
    align-items: center;
    transform: translateX(-50%);
    z-index: 10;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    background: white;
    width: 4px;
    height: 100%;
}

.slider-arrow {
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    background: white;
    width: 40px;
    height: 40px;
    color: #333;
    font-size: 20px;
}

.comparison-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    padding: 0 20px;
}

.comparison-labels span {
    border-radius: 4px;
    background: var(--highlight-bg);
    padding: 8px 16px;
    color: var(--text-color);
    font-size: 0.9rem;
}

.label-before {
    background: #4caf50 !important;
    color: white !important;
}

.label-after {
    background: #f44336 !important;
    color: white !important;
}

/* Ensure long names wrap nicely in cards and tables */
.team-member h4 {
    margin-bottom: 10px;
    line-height: 1.2;
    hyphens: auto;
    overflow-wrap: break-word;
}
td {
    word-break: break-word;
}

/* Video Container */
.video-container {
    position: relative;
    margin: 30px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background: #000;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-container video,
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    border: none;
    width: 100%;
    height: 100%;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    .nav-links {
        display: none;
    } /* Simplified for academic static scope */
    nav {
        justify-content: center;
    }
}

ol.ieee {
    counter-reset: ref;
    padding-left: 0;
    font-family: "Times New Roman", Times, serif;
    list-style: none;
}

ol.ieee li {
    position: relative;
    counter-increment: ref;
    margin-bottom: 0.5em;
    padding-left: 3.5em;
}

ol.ieee li::before {
    position: absolute;
    left: 0;
    width: 3em;
    content: "[" counter(ref) "]";
    text-align: left;
}
