/* General Styling */
html, body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    line-height: 1.6;
    color: #e0e0e0; /* Light text for dark background */
}

html {
    background-color: transparent; /* Removed to allow Canvas to be the sole background */
}

body {
    background-color: transparent; /* Transparent to show the Canvas behind */
}

/* Professional Navigation */
nav {
    background: #2c3e50; /* Dark professional blue */
    color: #fff;
    padding: 1rem;
    text-align: center;
}

nav ul { list-style: none; padding: 0; }
nav ul li { display: inline; margin: 0 15px; }
nav a { color: #fff; text-decoration: none; font-weight: bold; }

/* Hero Section with Graphics-Ready Background */
#hero {
    background-color: transparent; /* Transparent for Sequence Effect */
    position: relative;
    height: 400px;
    width: 100%;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

/* Ensure Hero content sits above the particles */
#hero h1, #hero h2, #hero p, #hero .cta-buttons {
    position: relative;
    z-index: 1;
}

/* Style for the main name */
#hero h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 4.5rem; /* Larger font size for emphasis */
    margin-bottom: 0.5rem; /* Adjust spacing below the name */
}

/* Ensure Hero sub-heading is white for contrast against Vanta background */
#hero h2 {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 400;
    color: whitesmoke;
    border-bottom: none;
    padding-bottom: 0;
}

/* Sections */
section { padding: 2rem; max-width: 100%; margin: auto; text-align: justify; }
h2 { 
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    color: #90caf9; border-bottom: 2px solid #90caf9; padding-bottom: 10px; }

/* Buttons */
.cta-buttons { margin-top: 1.5rem; }
.btn {
    display: inline-block;
    background-color: #90caf9;
    color: #121212;
    padding: 0.75rem 1.5rem;
    margin: 0 0.5rem;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}
.btn:hover { background-color: #fff; }

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

/* Images */
.about-container {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.profile-pic {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #90caf9;
    flex-shrink: 0;
}
.project-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid #333;
}

@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
        text-align: center;
    }
}

/* Timeline Graphic */
.timeline {
    position: relative;
    border-left: 4px solid #90caf9;
    margin-left: 1rem;
    padding-left: 2rem;
}

/* Timeline item for the main Research section */
.timeline .timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

/* Timeline Dot */
.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.6rem; /* Aligns dot with the border line */
    top: 0;
    width: 16px;
    height: 16px;
    background: #121212;
    border: 4px solid #90caf9;
    border-radius: 50%;
    z-index: 1;
}

.timeline-year {
    display: inline-block;
    background-color: #90caf9;
    color: #121212;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* Research Card Styling (New) */
.research-card {
    background: rgba(30, 30, 30, 0.6);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.research-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    border-color: #90caf9;
}

.research-card h3 {
    margin-top: 0;
    color: #90caf9;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.4rem;
}

.read-more {
    display: inline-block;
    margin-top: 1rem;
    color: #e67e22; /* Saffron accent */
    text-decoration: none;
    font-weight: bold;
    font-family: 'Rajdhani', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s;
}

.read-more:hover {
    border-bottom-color: #e67e22;
    color: #fff;
}

/* Detail Page Styling */
.research-detail {
    background: rgba(18, 18, 18, 0.7); /* More transparent to show matrix */
    margin: 4rem auto;
    padding: 3rem;
    border-radius: 12px;
    max-width: 900px;
    border: 1px solid #333;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

.research-detail h1 {
    font-family: 'Orbitron', sans-serif;
    color: #90caf9;
    margin-bottom: 0.5rem;
}

.research-detail .subtitle {
    color: #aaa;
    font-style: italic;
    margin-bottom: 2rem;
    border-bottom: 1px solid #333;
    padding-bottom: 1rem;
}

.project-img-detail {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 2rem;
    border: 1px solid #444;
}

/* --- Interactive Elements for Research Page --- */

/* Feature B: Quorum Sensing Animation */
.qs-demo {
    background: #0f1520;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 1rem;
    margin: 1.5rem 0;
    text-align: center;
}
.qs-controls { margin-bottom: 1rem; display: flex; align-items: center; justify-content: center; gap: 10px; }
.petri-dish {
    position: relative;
    width: 100%;
    height: 200px;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #333;
    margin: 0 auto;
}
.bacterium {
    position: absolute;
    width: 12px;
    height: 24px;
    background: #ff5722; /* Virulent color */
    border-radius: 10px;
    box-shadow: 0 0 15px #ff5722;
    animation: pulse-glow 1s infinite alternate;
}
.sludge {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(76, 175, 80, 0.3); /* Biofilm slime */
    filter: blur(20px);
    transition: opacity 1s ease;
    z-index: 1;
}
/* Inhibited State */
.qs-demo.inhibited .sludge { opacity: 0; }
.qs-demo.inhibited .bacterium {
    background: #555;
    box-shadow: none;
    animation: none;
    transform: scale(0.9);
    transition: all 1s ease;
}
@keyframes pulse-glow {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.2); opacity: 1; }
}

/* Feature C: Veggie Screening Game */
.veggie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
    margin-top: 1.5rem;
}
.veggie-card {
    background: #1e1e1e;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}
.veggie-card:hover { transform: translateY(-5px); background: #252525; }
.veggie-icon { font-size: 2.5rem; margin-bottom: 0.5rem; }
.veggie-name { font-weight: bold; color: #e0e0e0; }
.veggie-result { display: none; margin-top: 0.5rem; font-size: 0.9rem; animation: fadeIn 0.5s; }
.veggie-card.revealed .veggie-icon { display: none; }
.veggie-card.revealed .veggie-result { display: block; }
.res-success { color: #4caf50; font-weight: bold; font-size: 1.1rem; }
.res-fail { color: #f44336; }

/* Feature D: Pipeline Scroll */
.pipeline-scroll {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding: 1rem 0;
    margin: 1.5rem 0;
    scrollbar-width: thin;
    scrollbar-color: #90caf9 #1e1e1e;
}
.pipeline-step {
    min-width: 220px;
    background: rgba(30, 30, 30, 0.8);
    border: 1px solid #90caf9;
    border-radius: 8px;
    padding: 1rem;
    flex-shrink: 0;
    text-align: center;
}
.pipeline-step h4 { color: #90caf9; margin-top: 0; font-size: 1rem; }
.pipeline-step p { font-size: 0.85rem; color: #ccc; margin-bottom: 0; }
.pipeline-arrow { display: flex; align-items: center; color: #555; font-size: 1.5rem; }

/* Feature E: Safety Dashboard */
.admet-dashboard {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}
.gauge-card {
    flex: 1;
    min-width: 200px;
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
}
.gauge-title { color: #aaa; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }
.gauge-value { font-size: 1.8rem; font-weight: bold; margin: 0.5rem 0; color: #4caf50; }
.gauge-bar { height: 8px; background: #333; border-radius: 4px; overflow: hidden; margin-top: 0.5rem; }
.gauge-fill { height: 100%; background: #4caf50; width: 0%; transition: width 1s ease-out; }