:root {
    --primary-color: #0056b3;
    --secondary-color: #6c757d;
    --accent-color: #00d2ff;
    --dark-color: #333;
    --light-color: #f8f9fa;
    --white: #ffffff;
    --transition: all 0.3s ease;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--white);
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-family: 'Outfit', sans-serif;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.sec-padding {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--light-color);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background: var(--primary-color);
    margin: 10px auto;
}

/* Header & Nav */
header {
    background: var(--white);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 40px;
    margin-right: 10px;
    border-radius: 5px;
}

.logo span {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin: 0 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 600;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--white);
    min-width: 160px;
    box-shadow: var(--shadow);
    z-index: 1;
    border-top: 3px solid var(--primary-color);
}

.dropdown-content a {
    color: var(--dark-color);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Hero Section */
.hero {
    height: 80vh;
    background: linear-gradient(135deg, rgba(0, 86, 179, 0.9), rgba(0, 210, 255, 0.7)), url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?auto=format&fit=crop&q=80&w=1920');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
    margin-top: 70px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background: var(--white);
    color: var(--primary-color);
    margin-right: 1rem;
}

.btn-primary:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
}

/* Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.tool-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border: 1px solid #eee;
}

.tool-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
}

.tool-card img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 1.5rem;
}

.tool-card h3 {
    margin-bottom: 1rem;
}

.tool-link {
    display: inline-block;
    margin-top: 1.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
}

/* About Section */
.about-flex {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    background: var(--primary-color);
    height: 300px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.info-box {
    text-align: center;
    padding: 20px;
}

.info-box i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.info-box p {
    margin-bottom: 5px;
    font-size: 0.95rem;
}

/* Footer */
footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 4rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo img {
    width: 25%;
    height: auto;
    margin-right: 15px;
    border-radius: 5px;
}

.text-link {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.text-link:hover {
    border-bottom-color: var(--primary-color);
}

.footer-info a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}

.footer-info a:hover {
    text-decoration: underline;
}

.fa-orcid {
    color: #A6CE39;
    margin-right: 5px;
}

/* Tables */
.table-container {
    overflow-x: auto;
    margin: 2rem 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

th,
td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    background-color: var(--primary-color);
    color: var(--white);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

tr:hover {
    background-color: #f1f7ff;
}

/* Callouts / Critical Comments */
.comments-section {
    margin-top: 4rem;
}

.comment-card {
    background: #fff;
    padding: 1.5rem;
    border-left: 5px solid var(--accent-color);
    margin-bottom: 1.5rem;
    border-radius: 0 10px 10px 0;
    box-shadow: var(--shadow);
}

.comment-card h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Search Bar */
.search-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

.search-container input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border-radius: 50px;
    border: 2px solid #eee;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.search-container input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 86, 179, 0.1);
}

.search-icon {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary-color);
    font-size: 1.2rem;
}

/* Responsive */
/* Investigator Cards */
.investigators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}

.investigator-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 5px solid var(--primary-color);
}

.investigator-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.investigator-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.investigator-header h2 {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.role {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.investigator-bio p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.bio-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
}

.bio-list li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    padding-left: 1.5rem;
    position: relative;
}

.bio-list li::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.investigator-card .links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.investigator-card .links a {
    color: var(--secondary-color);
    font-size: 0.9rem;
    transition: var(--transition);
}

.investigator-card .links a:hover {
    color: var(--primary-color);
}

.burger {
    display: none;
    cursor: pointer;
}

/* AI Chat Widget Styles */
/* AI Chat Widget Styles */
.chat-bubble {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background-color: var(--white);
    border-radius: 50%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border: 2px solid var(--primary-color);
    animation: pulseBubble 2s infinite;
}

@keyframes pulseBubble {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 86, 179, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(0, 86, 179, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 86, 179, 0);
    }
}

.chat-bubble:hover {
    transform: scale(1.1) rotate(5deg);
    animation: none;
}

.chat-bubble img {
    width: 70%;
    height: 70%;
    object-fit: contain;
}

.chat-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #ff4757;
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: bold;
    z-index: 2;
}

.chat-widget {
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 350px;
    max-height: 550px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    z-index: 2000;
    overflow: hidden;
    animation: slideInChat 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

@keyframes slideInChat {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.chat-header {
    background: var(--primary-color);
    color: var(--white);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    padding: 2px;
}

.chat-header h4 {
    margin: 0;
    font-size: 1rem;
}

.chat-header span {
    font-size: 0.75rem;
    opacity: 0.8;
}

.close-chat {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.8;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #f8faff;
    min-height: 300px;
    scroll-behavior: smooth;
}

.message {
    padding: 10px 15px;
    border-radius: 15px;
    max-width: 85%;
    font-size: 0.9rem;
    line-height: 1.4;
    position: relative;
    animation: messageIn 0.3s ease;
}

@keyframes messageIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ai-message {
    background: white;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.user-message {
    background: var(--primary-color);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

/* Typing Indicator */
.typing-indicator {
    display: none;
    align-self: flex-start;
    background: #e9ecef;
    padding: 12px 16px;
    border-radius: 15px;
    border-bottom-left-radius: 2px;
    margin-bottom: 15px;
}

.typing-dot {
    height: 6px;
    width: 6px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: inline-block;
    margin-right: 4px;
    animation: dotPulse 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dotPulse {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

/* Quick Suggestions */
.quick-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 20px 15px 20px;
    background: #f8faff;
}

.suggestion-btn {
    background: white;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
}

.suggestion-btn:hover {
    background: var(--primary-color);
    color: white;
}

.chat-input-area {
    padding: 15px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
}

.chat-input-area input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
    font-size: 0.9rem;
}

.send-chat {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.send-chat:hover {
    background: var(--accent-color);
}

@media screen and (max-width: 768px) {
    .chat-widget {
        width: 90%;
        right: 5%;
        bottom: 100px;
    }
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    margin: 5px;
    transition: var(--transition);
}

@media screen and (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: 0px;
        height: 92vh;
        top: 8vh;
        background-color: var(--white);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
    }

    .nav-links li {
        opacity: 0;
        margin: 2rem 0;
    }

    .burger {
        display: block;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .about-flex {
        flex-direction: column;
    }
}

.nav-active {
    transform: translateX(0%);
}

@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0px);
    }
}