:root {
    /* Standard Scientific Palette - Deep Blue & Clean White */
    --primary-color: #003366;   /* Deep Navy Blue */
    --secondary-color: #00509e; /* Lighter Navy */
    --accent-color: #ff9900;    /* Muted Orange */
    --text-dark: #333333;       /* Dark Grey */
    --text-light: #666666;      /* Muted Text */
    --bg-light: #ffffff;        /* White */
    --bg-offwhite: #f4f6f9;     /* Very Light Blue-Grey Background */
    --border-color: #e0e0e0;    /* Borders */
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: var(--bg-offwhite);
    color: var(--text-dark);
    line-height: 1.6;
    padding-top: 120px; /* Increased padding-top to ensure content clears fixed navbar */
}

/* Navbar */
.navbar, .header-bar {
    background-color: var(--primary-color) !important;
    background-image: none !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 0.8rem 0;
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.4rem;
    color: white !important;
    display: flex; /* Flexbox alignment for brand */
    align-items: center;
}

/* Specific Logo Styling - Main Website Logo */
.navbar-logo {
    height: 65px;
    width: 65px;
    object-fit: cover; /* Forces image to fill the circle */
    margin-right: 12px;
    border-radius: 50%;
    /* Removed background-color to avoid white gaps */
    padding: 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2); /* Stronger shadow for definition */
    border: 1px solid rgba(255,255,255,0.1);
}

/* Footer Institute Logos */
.footer-logo {
    height: 80px;  /* Bigger size */
    width: 80px;   /* Round shape */
    object-fit: contain;
    background-color: white;
    border-radius: 50%; /* Perfectly round */
    padding: 5px;  /* Space inside the circle */
    box-shadow: 0 4px 10px rgba(0,0,0,0.3); /* Depth */
}

.nav-link {
    font-weight: 500;
    color: rgba(255,255,255,0.9) !important;
    margin: 0 10px;
    font-size: 1rem;
}

.nav-link:hover, .nav-link.active {
    color: white !important;
    text-decoration: underline;
    text-underline-offset: 5px;
}

/* 
   HERO SECTION - UPDATED FOR KEN BURNS EFFECT
*/
.hero-section {
    position: relative;
    padding: 5rem 0 7rem 0;
    color: white;
    overflow: hidden; /* Contains the zoomed image */
    background-color: #001e3c; /* Fallback color */
}

/* The Pseudo-element for the Background Image */
.hero-section::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('../images/hero_carp.jpg') no-repeat center center;
    background-size: cover;
    z-index: 0; /* Behind content */
    animation: kenburns 25s infinite alternate; /* Slow zoom/pan */
}

/* Overlay to darken image slightly for text readability */
.hero-section::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 30, 60, 0.4); /* Blue-ish tint */
    z-index: 1;
}

/* Ensure content stays on top */
.hero-section .container {
    position: relative;
    z-index: 2;
}

@keyframes kenburns {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.15) translate(-1%, -1%); }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    color: #e0e0e0;
    margin-bottom: 2rem;
}

.hero-info-card {
    background: rgba(0, 30, 60, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    font-size: 1.05rem;
    line-height: 1.7;
}

.text-justify {
    text-align: justify;
    text-justify: inter-word;
}

/* Floating Stats Strip */
.floating-stats {
    margin-top: -4rem;
    position: relative;
    z-index: 10;
    margin-bottom: 3rem;
}

.metric-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.2s ease;
    border-bottom: 4px solid var(--primary-color);
    height: 100%;
}

.metric-card:hover {
    transform: translateY(-5px);
}

.metric-icon {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 0.8rem;
}

.metric-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.1;
}

.metric-label {
    font-size: 0.9rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Feature/Research Cards */
.feature-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    text-align: center; /* Center aligned for better balance */
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: var(--secondary-color);
}

.feature-icon-circle {
    width: 70px;
    height: 70px;
    background: #f0f7ff;
    color: var(--primary-color);
    font-size: 1.8rem;
    line-height: 70px;
    text-align: center;
    border-radius: 50%;
    margin: 0 auto 1.5rem; /* Centered */
}

.section-title {
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.6rem;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
    display: inline-block; /* Inline to fit text width */
}

/* Map Section & Hover Zoom Effects */
.figure-container {
    background: white;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    border: 4px solid white; /* Frame effect */
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.figure-container:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.hover-zoom {
    transition: transform 0.5s ease;
}

.figure-container:hover .hover-zoom {
    transform: scale(1.03);
}

.overlay-hint {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.0);
    transition: background 0.3s ease;
    opacity: 0;
}

.figure-container:hover .overlay-hint {
    background: rgba(0,0,0,0.2);
    opacity: 1;
}

.figure-caption {
    font-style: italic;
    color: #666;
    margin-top: 0;
    text-align: center;
    font-size: 0.95rem;
}

.feature-divider {
    opacity: 0.1;
    border-top: 2px dashed var(--primary-color);
}

/* Buttons */
.btn-custom {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: background-color 0.2s;
}

.btn-custom:hover {
    background-color: #e68a00;
    color: white;
}

.btn-jbrowse {
    background-color: transparent;
    border: 1px solid rgba(255,255,255,0.5);
    color: white !important;
    border-radius: 4px;
    padding: 6px 15px !important;
    font-size: 0.9rem;
}

.btn-jbrowse:hover {
    background-color: white;
    color: var(--primary-color) !important;
}

/* Footer */
.footer {
    background-color: #1a1a1a;
    color: #cccccc;
    padding: 3rem 0;
    margin-top: 5rem;
    font-size: 0.9rem;
}

.footer h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
}

.footer a {
    color: #999;
    text-decoration: none;
}

.footer a:hover {
    color: white;
    text-decoration: underline;
}

/* Utility */
.text-primary { color: var(--primary-color) !important; }
.text-justify { text-align: justify; }

/* Team Page Styles */
.team-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 5rem 0;
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    overflow: hidden;
}

.team-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
 /*   background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgdmlld0JveD0iMCAwIDQwIDQwIj48ZyBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxnIGZpbGw9IiNmZmZmZmYiIGZpbGwtb3BhY2l0eT0iMC4wNSI+PHBhdGggZD0iTTAgMGg0MHY0MEgwVjB6bTIwIDIwaDIwdjIwSDIwVjIwek0wIDIwaDIwdjIwSDBWMjB6Ii8+PC9nPjwvZz48L3N2Zz4='); */
}

.team-card {
    background: white;
    border-radius: 15px;
    padding: 0;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.team-img-wrapper {
    background: linear-gradient(to bottom right, #f8f9fa, #e9ecef);
    padding: 2rem 0;
    position: relative;
}

.team-img-wrapper::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background: white;
    clip-path: polygon(0 30px, 100% 0, 100% 30px);
}

.team-card img {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.team-card:hover img {
    transform: scale(1.05);
}

.team-card-body {
    padding: 1.5rem 2rem 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-card h3 {
    color: var(--primary-color);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.role-badge {
    display: inline-block;
    background-color: rgba(255, 153, 0, 0.1);
    color: var(--accent-color);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 20px;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.divider-small {
    height: 3px;
    width: 40px;
    background-color: var(--secondary-color);
    margin: 0 auto 1rem;
    border-radius: 2px;
    opacity: 0.2;
}

.team-card .affiliation {
    color: var(--text-dark);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.team-card .email {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.btn-profile {
    margin-top: auto;
    background-color: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 8px 20px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-profile:hover {
    background-color: var(--secondary-color);
    color: white;
    box-shadow: 0 4px 10px rgba(0, 80, 158, 0.3);
}

/* Footer Nav Creative */
.footer-nav-creative {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-nav-creative a {
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: none !important;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    position: relative;
}

.footer-nav-creative a:hover {
    color: white !important;
    transform: translateY(-2px);
}

.nav-dot {
    width: 5px;
    height: 5px;
    background-color: var(--accent-color);
    border-radius: 50%;
    opacity: 0.6;
}

@media (max-width: 768px) {
    .team-hero {
        padding: 3rem 0;
    }
    .footer-nav-creative {
        gap: 10px;
    }
}

/* 
========================================================================
   Data Table (data_table.php) Styles
========================================================================
*/
.table thead th {
    background-color: #f8f9fa;
    color: var(--primary-color);
    border-bottom: 2px solid #e9ecef;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    vertical-align: middle;
}

.seq-name {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 0.9rem;
    word-break: break-all;
}

/* Legends */
.legend-box {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 3px;
    margin-right: 5px;
    vertical-align: middle;
}
.legend-p { background-color: #e3f2fd; border: 1px solid #bbdefb; }
.legend-f { background-color: #e8f5e9; border: 1px solid #c8e6c9; }
.legend-c { background-color: #f3e5f5; border: 1px solid #e1bee7; }

.go-container {
    font-size: 0.85rem;
}
.go-item {
    margin-bottom: 4px;
    line-height: 1.4;
    padding: 2px 0;
    border-bottom: 1px dashed #eee;
}
.go-item:last-child { border-bottom: none; }

.go-id {
    font-family: monospace;
    font-weight: bold;
    color: #444; /* Default text color for go-id span */
    background: #eee;
    padding: 1px 4px;
    border-radius: 3px;
    margin-right: 6px;
    font-size: 0.8rem;
    transition: all 0.2s ease-in-out; /* Smooth transition for hover effects */
}
.go-id.go-p { color: #0d47a1; background: #e3f2fd; }
.go-id.go-f { color: #1b5e20; background: #e8f5e9; }
.go-id.go-c { color: #4a148c; background: #f3e5f5; }

/* Styles for the hyperlink when hovered */
a.text-decoration-none:hover .go-id {
    cursor: pointer;
    text-decoration: underline;
    filter: brightness(0.9); /* Slightly darken the background/color */
}

.xref-badge {
    display: inline-block;
    margin: 2px 2px 2px 0;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}
.ipr-badge {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* 
========================================================================
   Downloads Page (downloads.php) Styles
========================================================================
*/
.download-card {
    padding: 2rem;
    margin-bottom: 1.5rem;
    height: 100%;
}

.download-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.download-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.btn-download {
    background: var(--primary-color);
    border: none;
    color: white;
    padding: 10px 25px;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
    width: 100%;
}

.btn-download:hover {
    background: var(--secondary-color);
    color: white;
}

.file-meta {
    font-size: 0.9rem;
    color: #666;
    margin: 1rem 0;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 6px;
}

.format-badge {
    background-color: #e9ecef;
    color: #495057;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid #ced4da;
}

.citation-box {
    background: #fff;
    border-left: 4px solid var(--success-color); /* Note: --success-color might need to be defined or use hex */
    padding: 1.5rem;
    margin-top: 3rem;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* 
========================================================================
   Index Page (index.php) Styles
========================================================================
*/

/* Scroll Reveal Class */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Stats Grid - Clean, No Borders */
.stats-grid { margin-top: -40px; position: relative; z-index: 10; }
.stat-box {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    transition: transform 0.2s;
    border: none;
}
.stat-box:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.stat-val { font-size: 1.8rem; font-weight: 800; color: var(--text-dark); line-height: 1; }
.stat-lbl { font-size: 0.85rem; text-transform: uppercase; color: #888; font-weight: 600; }
.stat-icon { font-size: 2rem; opacity: 0.3; }

/* Explorer Section - Clean & Functional */
.explorer-section {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    overflow: hidden;
    margin-top: 3rem;
    border: 1px solid #eee;
}

/* Side Nav */
.explorer-nav {
    background: #f8f9fa;
    padding: 1.5rem 1rem;
    border-right: 1px solid #eee;
}

.explorer-btn {
    width: 100%;
    text-align: left;
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: #555;
    font-weight: 600;
    transition: all 0.2s;
    margin-bottom: 5px;
}

.explorer-btn:hover { background: #e9ecef; color: var(--primary-color); }

.explorer-btn.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.explorer-btn i { width: 25px; text-align: center; margin-right: 10px; }

/* Content Area */
.explorer-content {
    padding: 1.5rem; /* Reduced padding as requested */
    min-height: 500px;
    background: white;
    display: flex;
    align-items: center;
}

.tab-pane { width: 100%; animation: fadeIn 0.3s ease-out; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Clean Image Container */
.img-container {
    position: relative;
    display: inline-block;
    cursor: zoom-in;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.2s;
    width: 100%; /* Ensure full width availability */
    text-align: center;
    background: #fcfcfc;
}

.zoom-icon {
    position: absolute; bottom: 10px; right: 10px;
    background: 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.8rem; pointer-events: none;
}

/* Carousel Styles */
.carousel-item {
    text-align: center;
    padding: 1rem;
}
.carousel-item img {
    max-height: 400px;
    object-fit: contain;
    margin: 0 auto;
}
.carousel-caption-custom {
    margin-top: 1rem;
    color: var(--text-dark);
}
.carousel-control-prev-icon, .carousel-control-next-icon {
    background-color: var(--primary-color);
    border-radius: 50%;
    padding: 15px;
    background-size: 60%;
}
