@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
    --primary: #0F0F23;
    --secondary: #1A1A3E;
    --accent: #E63946;
    --highlight: #F1FAEE;
    --text: #A8DADC;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

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

body {
    font-family: 'Space Grotesk', sans-serif;
    background-color: var(--primary);
    color: var(--highlight);
    overflow-x: hidden;
    cursor: none;
}

/* -----------------------------------------------------------
   CUSTOM CURSOR
   ----------------------------------------------------------- */
.cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 99999; /* Highest z-index to sit on top of everything */
    transition: all 0.1s ease;
    mix-blend-mode: difference;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    background: rgba(230, 57, 70, 0.1);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 99998;
    transition: all 0.3s ease;
}

/* -----------------------------------------------------------
   NAVIGATION
   ----------------------------------------------------------- */
.nav-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 3rem;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, rgba(15, 15, 35, 0.9), transparent);
    backdrop-filter: blur(10px);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--highlight);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.logo::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.logo:hover::before {
    transform: translateX(0);
}

.nav-menu {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    flex-wrap: wrap;
}

.nav-link {
    color: var(--highlight);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    padding: 0.3rem 0.5rem;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.nav-link:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

/* -----------------------------------------------------------
   HERO SECTION (DEFAULT)
   ----------------------------------------------------------- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Specific override for Research Page Short Hero */
.hero.research-hero {
    height: 40vh;
    min-height: 300px;
    margin-top: 5rem;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary);
    z-index: -2;
}

.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(168, 218, 220, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(168, 218, 220, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
}

.hero-content {
    text-align: center;
    max-width: 1000px;
    padding: 0 2rem;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(230, 57, 70, 0.2);
    border: 1px solid var(--accent);
    border-radius: 50px;
    font-weight: 500;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-title {
    font-size: 5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

/* Smaller title for research page */
.hero.research-hero .hero-title {
    font-size: 3.5rem;
}

.hero-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--accent);
}

.hero-desc {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    opacity: 0.8;
    font-family: 'JetBrains Mono', monospace;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.btn-hero {
    padding: 1rem 2.5rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: inline-block;
}

.btn-primary {
    background: var(--accent);
    color: var(--highlight);
    border: none;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--gradient-2);
    z-index: -1;
    transition: all 0.3s ease;
    opacity: 0;
}

.btn-primary:hover::before { opacity: 1; }

.btn-outline {
    background: transparent;
    color: var(--highlight);
    border: 2px solid var(--highlight);
}

.btn-outline::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--highlight);
    z-index: -1;
    transition: all 0.3s ease;
    transform: scaleX(0);
    transform-origin: left;
}

.btn-outline:hover { color: var(--primary); }
.btn-outline:hover::before { transform: scaleX(1); }

/* -----------------------------------------------------------
   SECTIONS (General)
   ----------------------------------------------------------- */
.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--accent);
}

.section-subtitle {
    font-size: 1.2rem;
    opacity: 0.8;
    max-width: 700px;
    margin: 0 auto;
    font-family: 'JetBrains Mono', monospace;
}

/* -----------------------------------------------------------
   ABOUT SECTION
   ----------------------------------------------------------- */
.about { padding: 8rem 0; position: relative; overflow: hidden; }
.about::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(15, 15, 35, 0.9) 0%, rgba(26, 26, 62, 0.9) 100%); z-index: -1;
}
.about-content { display: flex; gap: 4rem; align-items: center; }
.about-text { flex: 1; }
.about-text h3 {
    font-size: 2rem; font-weight: 700; margin-bottom: 1.5rem;
    background: var(--gradient-3); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.about-text p { font-size: 1.1rem; line-height: 1.8; margin-bottom: 1.5rem; opacity: 0.8; }
.about-image { flex: 1; position: relative; }
.about-image img { width: 100%; border-radius: 10px; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3); transition: all 0.3s ease; }
.about-image:hover img { transform: scale(1.05); }
.about-image::before {
    content: ''; position: absolute; top: -20px; left: -20px; right: 20px; bottom: 20px;
    border: 2px solid var(--accent); border-radius: 10px; z-index: -1;
}

/* -----------------------------------------------------------
   RESEARCH SECTION (From Index - Categories & Toggle)
   ----------------------------------------------------------- */
.research { padding: 8rem 0; position: relative; overflow: hidden; }
.research::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(26, 26, 62, 0.9) 0%, rgba(15, 15, 35, 0.9) 100%); z-index: -1;
}
.research-categories { display: flex; gap: 2rem; margin-bottom: 3rem; flex-wrap: wrap; justify-content: center; }
.research-category {
    flex: 1; min-width: 200px; max-width: 250px; background: rgba(168, 218, 220, 0.1); border-radius: 15px;
    padding: 2rem; text-align: center; transition: all 0.3s ease; border: 1px solid rgba(168, 218, 220, 0.2);
    backdrop-filter: blur(10px);
}
.research-category:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2); }
.research-category i { font-size: 3rem; color: var(--accent); margin-bottom: 1.5rem; }
.research-category h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 1rem; color: var(--highlight); }
.research-category p { font-size: 1rem; opacity: 0.8; margin-bottom: 1.5rem; }
.research-category a {
    color: var(--accent); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem;
    transition: all 0.3s ease;
}
.research-category a:hover { gap: 1rem; }

.research-details {
    display: none; margin-top: 3rem; background: rgba(15, 15, 35, 0.5); border-radius: 15px;
    padding: 2.5rem; border-left: 3px solid var(--accent);
}
.research-details.active { display: block; animation: fadeIn 0.5s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.research-details h3 { font-size: 1.8rem; font-weight: 700; margin-bottom: 1.5rem; color: var(--highlight); }
.research-details p { font-size: 1.1rem; line-height: 1.8; margin-bottom: 1.5rem; opacity: 0.8; }
.research-details h4 { font-size: 1.4rem; font-weight: 600; margin-top: 2rem; margin-bottom: 1rem; color: var(--accent); }
.research-details ul { color: var(--highlight); opacity: 0.8; padding-left: 2rem; margin-bottom: 1.5rem; }
.research-details li { margin-bottom: 0.5rem; }
.research-subcategory { background: rgba(230, 57, 70, 0.1); padding: 1.5rem; border-radius: 10px; margin-bottom: 1.5rem; }
.research-subcategory h5 { color: var(--accent); font-weight: 600; margin-bottom: 1rem; }

/* -----------------------------------------------------------
   TEAM SECTION
   ----------------------------------------------------------- */
.team { padding: 8rem 0; position: relative; }
.team::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(26, 26, 62, 0.9) 0%, rgba(15, 15, 35, 0.9) 100%); z-index: -1;
}
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; margin-top: 3rem; }
.team-card {
    background: rgba(168, 218, 220, 0.1); border-radius: 15px; overflow: hidden; transition: all 0.3s ease;
    position: relative; backdrop-filter: blur(10px);
}
.team-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.1) 0%, rgba(15, 15, 35, 0.1) 100%); opacity: 0;
    transition: opacity 0.3s ease;
}
.team-card:hover::before { opacity: 1; }
.team-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2); }
.team-image { height: 250px; width: 100%; object-fit: cover; transition: all 0.3s ease; }
.team-card:hover .team-image { transform: scale(1.1); }
.team-content { padding: 1.5rem; text-align: center; position: relative; z-index: 1; }
.team-name { font-size: 1.3rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--highlight); }
.team-role { color: var(--accent); font-weight: 500; margin-bottom: 1rem; }
.team-social { display: flex; justify-content: center; gap: 1rem; }
.team-social a {
    width: 40px; height: 40px; border-radius: 50%; background: rgba(230, 57, 70, 0.2); display: flex;
    align-items: center; justify-content: center; color: var(--highlight); transition: all 0.3s ease;
}
.team-social a:hover { background: var(--accent); color: var(--highlight); transform: scale(1.1); }

/* -----------------------------------------------------------
   PUBLICATIONS SECTION
   ----------------------------------------------------------- */
.publications { padding: 8rem 0; background: var(--secondary); position: relative; }
.publication-list { margin-top: 3rem; }
.publication-item {
    background: rgba(15, 15, 35, 0.5); border-radius: 15px; padding: 2rem; margin-bottom: 1.5rem;
    transition: all 0.3s ease; position: relative; backdrop-filter: blur(10px); border-left: 3px solid var(--accent);
}
.publication-item:hover { transform: translateX(10px); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); }
.publication-title { font-size: 1.3rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--highlight); }
.publication-authors { font-family: 'JetBrains Mono', monospace; margin-bottom: 0.5rem; opacity: 0.8; }
.publication-journal { font-style: italic; opacity: 0.7; }

/* -----------------------------------------------------------
   CONTACT SECTION
   ----------------------------------------------------------- */
.contact { padding: 8rem 0; position: relative; }
.contact::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(15, 15, 35, 0.9) 0%, rgba(26, 26, 62, 0.9) 100%); z-index: -1;
}
.contact-container { display: flex; gap: 4rem; margin-top: 3rem; }
.contact-info { flex: 1; }
.contact-info h3 {
    font-size: 2rem; font-weight: 700; margin-bottom: 1.5rem;
    background: var(--gradient-2); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.contact-info p { font-size: 1.1rem; line-height: 1.8; margin-bottom: 2rem; opacity: 0.8; }
.contact-details { margin-bottom: 2rem; }
.contact-details h4 { font-size: 1.3rem; font-weight: 600; margin-bottom: 1rem; color: var(--accent); }
.contact-details p { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.8rem; }
.contact-details i { font-size: 1.2rem; color: var(--accent); }
.contact-form {
    flex: 1; background: rgba(168, 218, 220, 0.1); padding: 2rem; border-radius: 15px;
    backdrop-filter: blur(10px); border: 1px solid rgba(168, 218, 220, 0.2);
}
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; color: var(--highlight); }
.form-control {
    width: 100%; padding: 0.8rem; background: rgba(15, 15, 35, 0.5);
    border: 1px solid rgba(168, 218, 220, 0.2); border-radius: 5px; color: var(--highlight);
    transition: all 0.3s ease;
}
.form-control::placeholder { color: rgba(168, 218, 220, 0.5); }
.form-control:focus { outline: none; background: rgba(15, 15, 35, 0.7); border-color: var(--accent); }
.btn-submit {
    background: var(--accent); color: var(--highlight); border: none; padding: 0.8rem 2rem;
    font-weight: 600; border-radius: 50px; cursor: pointer; transition: all 0.3s ease;
    position: relative; overflow: hidden; z-index: 1; width: 100%;
}
.btn-submit::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--gradient-1); z-index: -1; transition: all 0.3s ease; opacity: 0;
}
.btn-submit:hover::before { opacity: 1; }
.btn-submit:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); }

/* -----------------------------------------------------------
   FOOTER
   ----------------------------------------------------------- */
footer {
    background: var(--primary); color: var(--highlight); padding: 3rem 0 1.5rem; text-align: center;
}
.footer-content { display: flex; justify-content: space-between; margin-bottom: 2rem; }
.footer-logo { font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
.footer-links a {
    color: var(--highlight); text-decoration: none; transition: all 0.3s ease; position: relative; font-size: 0.9rem;
}
.footer-links a::before {
    content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px;
    background: var(--accent); transition: width 0.3s ease;
}
.footer-links a:hover::before { width: 100%; }
.footer-bottom { padding-top: 1.5rem; border-top: 1px solid rgba(168, 218, 220, 0.1); opacity: 0.7; }

/* -----------------------------------------------------------
   RESEARCH PAGE SPECIFIC STYLES
   ----------------------------------------------------------- */

/* Main Research Container */
.research-details-container {
    padding: 6rem 0;
    position: relative;
    z-index: 1; /* Ensure it sits above hero background */
}

.research-details-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(15, 15, 35, 0.9) 0%, rgba(26, 26, 62, 0.9) 100%);
    z-index: -1;
}

/* Research Article Cards */
.research-article {
    background: rgba(168, 218, 220, 0.1);
    border-radius: 15px;
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(168, 218, 220, 0.2);
    z-index: 2;
}

.research-article:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.research-article h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--highlight);
}

.research-article p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    opacity: 0.8;
}

/* CAVE Modal */
.cave-modal {
    display: none;
    position: fixed;
    z-index: 10005; /* Lower than custom cursor (99999) */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 15, 35, 0.85);
    backdrop-filter: blur(8px);
}

.cave-modal-content {
    background-color: var(--secondary);
    margin: 5% auto;
    padding: 2.5rem;
    border: 1px solid var(--accent);
    width: 90%;
    max-width: 700px;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 0 40px rgba(230, 57, 70, 0.2);
    max-height: 85vh;
    overflow-y: auto;
    cursor: none; /* Keep cursor none to let custom cursor show */
}

.close-cave {
    position: absolute;
    right: 25px;
    top: 15px;
    color: var(--highlight);
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-cave:hover { color: var(--accent); }

.cave-btn-small {
    background: var(--accent);
    color: white;
    border: none;
    padding: 4px 15px;
    border-radius: 5px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: transform 0.2s;
    vertical-align: middle;
    margin-left: 8px;
}

.cave-btn-small:hover { transform: scale(1.05); }


/* -----------------------------------------------------------
   PROJECTS PAGE SPECIFIC STYLES
   ----------------------------------------------------------- */

.projects-section {
    padding: 8rem 0; /* Match other sections */
    position: relative;
    z-index: 1; /* Ensure visibility above hero */
}

.projects-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(26, 26, 62, 0.9) 0%, rgba(15, 15, 35, 0.9) 100%);
    z-index: -1;
}

.projects-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0 2rem 3rem;
}

.projects-desc {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 3rem;
    opacity: 0.8;
    font-family: 'JetBrains Mono', monospace;
}

.project-categories {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 700px;
    margin: 0 auto;
}

.project-category {
    background: rgba(168, 218, 220, 0.1);
    border-radius: 15px;
    padding: 1.5rem 2rem;
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(168, 218, 220, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none; /* Ensure <a> tags don't have underline */
    color: inherit; /* Inherit text color */
}

.project-category::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 5px; height: 100%;
    background: var(--gradient-2);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.3s ease;
}

.project-category:hover::before {
    transform: scaleY(1);
}

.project-category:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.project-category-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--highlight);
}

.project-category-type {
    font-size: 0.9rem;
    opacity: 0.7;
    font-family: 'JetBrains Mono', monospace;
}

.project-category-arrow {
    color: var(--accent);
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.project-category:hover .project-category-arrow {
    transform: translateX(5px);
}

/* Responsive for Projects */
@media (max-width: 768px) {
    .project-category {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    .project-category-arrow {
        align-self: flex-end;
    }
}
/* -----------------------------------------------------------
   SUB-PROJECT PAGES (VR, Haptics, etc.)
   ----------------------------------------------------------- */

/* Page Header (Used instead of Hero for sub-pages) */
.page-header {
    padding: 12rem 0 5rem;
    position: relative;
    overflow: hidden;
    z-index: 1; /* Ensure visibility */
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(15, 15, 35, 0.9) 0%, rgba(26, 26, 62, 0.9) 100%);
    z-index: -1;
}

.page-header-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--primary);
    z-index: -2;
}

.page-header-grid {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image:
        linear-gradient(rgba(168, 218, 220, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(168, 218, 220, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
}

.page-header-content {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.page-title {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--accent);
}

/* Breadcrumb Navigation */
.breadcrumb-container {
    padding: 2rem 0 1rem;
    position: relative;
    z-index: 2; /* Above header background */
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    display: flex;
    list-style: none;
    justify-content: center; /* Center the breadcrumbs */
}

.breadcrumb-item {
    color: var(--text);
    font-family: 'JetBrains Mono', monospace;
}

.breadcrumb-item a {
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--accent);
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: var(--accent);
    padding: 0 0.5rem;
}

/* Sub-Projects Content Area */
.projects-sub-container {
    padding: 5rem 0;
    position: relative;
    z-index: 2; /* Ensure visibility */
}

.projects-sub-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(26, 26, 62, 0.9) 0%, rgba(15, 15, 35, 0.9) 100%);
    z-index: -1;
}

.projects-sub-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.projects-desc {
    font-size: 1.2rem;
    line-height: 1.8;
    opacity: 0.8;
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 3rem;
    text-align: center;
}

.projects-list {
    background: rgba(168, 218, 220, 0.1);
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(168, 218, 220, 0.2);
    margin-bottom: 3rem;
}

.project-item {
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(168, 218, 220, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.project-item:last-child {
    border-bottom: none;
}

.project-item::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
}

.project-item:hover::before {
    opacity: 1;
}

.project-item:hover {
    padding-left: 1rem;
    color: var(--highlight);
}

.project-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Specific Sections (Consortium, Companies) */
.consortium-section, .companies-section {
    background: rgba(230, 57, 70, 0.1);
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(230, 57, 70, 0.2);
    margin-top: 3rem;
    text-decoration: none; /* Make clickable if wrapped in a */
    color: inherit;
    display: block;
    transition: all 0.3s ease;
}

.consortium-section:hover, .companies-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.consortium-title, .companies-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--highlight);
    position: relative;
    display: inline-block;
}

.consortium-title::after, .companies-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent);
}

.companies-desc, .consortium-desc {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.companies-link {
    display: inline-block;
    color: var(--highlight);
    font-weight: 500;
    text-decoration: none;
    padding: 0.5rem 1.5rem;
    border: 1px solid var(--highlight);
    border-radius: 30px;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.companies-link:hover {
    background: var(--highlight);
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
/* -----------------------------------------------------------
   ADDITIONS FOR PEOPLE PAGE (people.html)
   ----------------------------------------------------------- */

/* Hero Section - People Specific */
.hero {
    height: 50vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin-top: 5rem; /* Account for fixed nav */
}

.hero-content {
    text-align: center;
    max-width: 1000px;
    padding: 0 2rem;
}

.hero-desc {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    opacity: 0.8;
    font-family: 'JetBrains Mono', monospace;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.btn-hero {
    padding: 1rem 2.5rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--accent);
    color: var(--highlight);
    border: none;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-2);
    z-index: -1;
    transition: all 0.3s ease;
    opacity: 0;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-outline {
    background: transparent;
    color: var(--highlight);
    border: 2px solid var(--highlight);
}

.btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--highlight);
    z-index: -1;
    transition: all 0.3s ease;
    transform: scaleX(0);
    transform-origin: left;
}

.btn-outline:hover {
    color: var(--primary);
}

.btn-outline:hover::before {
    transform: scaleX(1);
}

/* People Section General */
.people {
    padding: 8rem 0;
    position: relative;
}

.people::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 26, 62, 0.9) 0%, rgba(15, 15, 35, 0.9) 100%);
    z-index: -1;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--accent);
}

.section-subtitle {
    font-size: 1.2rem;
    opacity: 0.8;
    max-width: 700px;
    margin: 0 auto;
    font-family: 'JetBrains Mono', monospace;
}

/* Faculty Section */
.faculty-section {
    margin-bottom: 8rem;
}

.faculty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.faculty-card {
    background: rgba(168, 218, 220, 0.1);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: blur(10px);
}

.faculty-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.1) 0%, rgba(15, 15, 35, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.faculty-card:hover::before {
    opacity: 1;
}

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

.faculty-content {
    padding: 1.5rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.faculty-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--highlight);
}

.faculty-role {
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 1rem;
}

.faculty-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.faculty-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(230, 57, 70, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--highlight);
    transition: all 0.3s ease;
}

.faculty-social a:hover {
    background: var(--accent);
    color: var(--highlight);
    transform: scale(1.1);
}

/* People List & Categories */
.people-section {
    margin-bottom: 8rem;
}

.people-list {
    margin-top: 3rem;
}

.people-category {
    margin-bottom: 4rem;
}

.category-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    background: var(--gradient-3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.person-item {
    background: rgba(15, 15, 35, 0.5);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: blur(10px);
    border-left: 3px solid var(--accent);
}

.person-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.person-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--highlight);
}

.person-details {
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.person-year {
    font-style: italic;
    opacity: 0.7;
}

/* Alumni Section */
.alumni-section {
    margin-bottom: 8rem;
}

/* Mobile Responsiveness for People Page */
@media (max-width: 768px) {
    .hero {
        height: 40vh;
        min-height: 300px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
    }
}
/* -----------------------------------------------------------
   ADDITIONS FOR HEAD OF LABORATORY PAGE (hol.html)
   ----------------------------------------------------------- */

/* Head of Laboratory Section */
.head-of-lab {
    padding: 8rem 0;
    position: relative;
}

.head-of-lab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 26, 62, 0.9) 0%, rgba(15, 15, 35, 0.9) 100%);
    z-index: -1;
}

.head-card {
    background: rgba(168, 218, 220, 0.1);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: blur(10px);
    margin-bottom: 4rem;
}

.head-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.1) 0%, rgba(15, 15, 35, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.head-card:hover::before {
    opacity: 1;
}

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

.head-content {
    padding: 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.head-name {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--highlight);
}

.head-role {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 2rem;
    font-weight: 600;
}

.head-social {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.head-social a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(230, 57, 70, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--highlight);
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.head-social a:hover {
    background: var(--accent);
    color: var(--highlight);
    transform: scale(1.1);
}

/* Info Sections */
.info-section {
    margin-bottom: 4rem;
}

.info-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    background: var(--gradient-3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.info-card {
    background: rgba(15, 15, 35, 0.5);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: blur(10px);
    border-left: 3px solid var(--accent);
}

.info-card:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.info-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.info-list {
    list-style: none;
    padding: 0;
}

.info-list li {
    margin-bottom: 1rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-list li strong {
    color: var(--accent);
}

.info-list li a {
    color: var(--highlight);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.info-list li a:hover {
    color: var(--accent);
    transform: translateX(5px);
}

.info-list li a i {
    font-size: 0.8rem;
}

/* -----------------------------------------------------------
   ADDITIONS FOR MEMBERS PAGE (members.html)
   ----------------------------------------------------------- */

/* Members Section */
.members {
    padding: 6rem 0;
    position: relative;
    min-height: 100vh;
}

.members::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 15, 35, 0.9) 0%, rgba(26, 26, 62, 0.9) 100%);
    z-index: -1;
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.member-card {
    background: rgba(168, 218, 220, 0.1);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(168, 218, 220, 0.2);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.member-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.1) 0%, rgba(15, 15, 35, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.member-card:hover::before {
    opacity: 1;
}

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

.member-avatar {
    height: 200px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary);
    position: relative;
    overflow: hidden;
}

.member-avatar i {
    font-size: 4rem;
    color: var(--text);
    opacity: 0.7;
}

.member-avatar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    opacity: 0.2;
}

.member-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.member-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--highlight);
}

.member-role {
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 1rem;
}

.member-bio {
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0.8;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.member-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.member-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(230, 57, 70, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--highlight);
    transition: all 0.3s ease;
}

.member-social a:hover {
    background: var(--accent);
    color: var(--highlight);
    transform: scale(1.1);
}

/* Back to Home Button (Floating) */
.back-home {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--accent);
    color: var(--highlight);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 999;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-decoration: none;
}

.back-home:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    color: var(--highlight); /* Ensure text color stays consistent */
}

/* Mobile Responsiveness for Grid */
@media (max-width: 768px) {
    .members-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}
.admin-controls-card {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.btn-pill {
    border: none;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
    color: white;
}

.btn-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.btn-edit {
    background: linear-gradient(135deg, #66fcf1, #45a29e);
}

.btn-delete {
    background: linear-gradient(135deg, #ff4b5c, #c0392b);
}
/* -----------------------------------------------------------
   ADDITIONS FOR LOGIN & ADMIN MODALS
   ----------------------------------------------------------- */

/* Login Page Styles */
.login-wrapper {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    position: relative;
    overflow: hidden;
}

.login-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(168, 218, 220, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(168, 218, 220, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
}

.login-card {
    background: rgba(26, 26, 62, 0.9);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 15px;
    border: 1px solid rgba(168, 218, 220, 0.2);
    width: 100%;
    max-width: 400px;
    z-index: 1;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.login-title {
    font-weight: 700;
    color: var(--highlight);
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: var(--accent);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
}

.btn-login {
    background: var(--accent);
    color: var(--highlight);
    font-weight: 600;
    padding: 0.8rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background: var(--gradient-2);
    color: var(--highlight);
}

/* Modals */
.dark-modal {
    background-color: var(--secondary);
    border: 1px solid var(--accent);
    color: var(--highlight);
}

.dark-modal .form-control:focus {
    background-color: var(--primary);
    color: var(--highlight);
    border-color: var(--accent);
    box-shadow: 0 0 0 0.25rem rgba(230, 57, 70, 0.25);
}

/* Admin Controls on Cards */
.admin-controls-card {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 5px;
    z-index: 10;
}

.admin-controls-card .btn-sm {
    width: 30px;
    height: 30px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* -----------------------------------------------------------
   UTILITIES (Server Status)
   ----------------------------------------------------------- */
.server-status {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: rgba(15, 15, 35, 0.9);
    color: var(--highlight);
    padding: 0.8rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    z-index: 1001;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(168, 218, 220, 0.2);
}

.status-dot {
    width: 8px; height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(230, 57, 70, 0); }
    100% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0); }
}

/* -----------------------------------------------------------
   RESPONSIVE
   ----------------------------------------------------------- */
@media (max-width: 992px) {
    .about-content { flex-direction: column; }
    .contact-container { flex-direction: column; }
    .nav-menu { display: none; }
}

@media (max-width: 768px) {
    .hero-title { font-size: 3rem; }
    .section-title { font-size: 2.5rem; }
    .footer-content { flex-direction: column; gap: 1.5rem; }
    .research-categories { flex-direction: column; align-items: center; }
    .research-category { max-width: 100%; }
}
