/* TRON Legacy Inspired Theme - Global Styles */

:root {
    --primary-cyan: #00ffff;
    --primary-orange: #ff6600;
    --neon-green: #00ff00;
    --neon-pink: #ff00ff;
    --neon-yellow: #ffff00;
    --dark-bg: #000000;
    --dark-grid: #0a0a0a;
    --grid-color: #00ffff;
    --accent-blue: #0088ff;
    --text-primary: #00ffff;
    --text-secondary: #cccccc;
    --border-color: #00ffff;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-primary);
    font-family: 'Monaco', 'Courier New', monospace;
    line-height: 1.6;
    overflow-x: hidden;
}

main.container > p {
    color: var(--text-secondary);
}

main.container > p a {
    color: var(--primary-cyan);
}

/* Grid Background Animation */
.grid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(0deg, transparent 24%, rgba(0, 255, 255, 0.05) 25%, rgba(0, 255, 255, 0.05) 26%, transparent 27%, transparent 74%, rgba(0, 255, 255, 0.05) 75%, rgba(0, 255, 255, 0.05) 76%, transparent 77%, transparent),
        linear-gradient(90deg, transparent 24%, rgba(0, 255, 255, 0.05) 25%, rgba(0, 255, 255, 0.05) 26%, transparent 27%, transparent 74%, rgba(0, 255, 255, 0.05) 75%, rgba(0, 255, 255, 0.05) 76%, transparent 77%, transparent);
    background-size: 50px 50px;
    background-position: 0 0;
    animation: moveGrid 3s linear infinite;
    pointer-events: none;
    z-index: -2;
}

@keyframes moveGrid {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 50px 50px;
    }
}

/* Navigation Bar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(0, 0, 0, 0.95);
    border-bottom: 2px solid var(--primary-cyan);
    box-shadow: 0 0 0px rgba(0, 255, 255, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    position: relative;
}

.logo {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--primary-cyan);
    text-decoration: none;
    text-shadow: 0 0 0px var(--primary-cyan);
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.menu-toggle {
    display: none !important;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9em;
    letter-spacing: 1px;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-cyan);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-cyan);
    text-shadow: 0 0 10px var(--primary-cyan);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary-cyan);
    text-shadow: 0 0 10px var(--primary-cyan);
}

.nav-link.active::after {
    width: 100%;
}

/* Container & Main Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

main {
    min-height: calc(100vh - 120px);
}

.research-opportunities {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin: 30px 0 60px;
}

.research-opportunity {
    padding: 24px;
    border: 1px solid var(--primary-cyan);
    background-color: rgba(0, 255, 255, 0.05);
}

.research-opportunity h2 {
    margin-bottom: 12px;
    color: var(--primary-cyan);
    font-size: 1.2em;
}

.research-opportunity p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Page Header */
.page-header {
    text-align: center;
    padding: 60px 20px 40px;
    border-bottom: 2px solid var(--primary-cyan);
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 3em;
    margin-bottom: 20px;
    text-shadow: 0 0 0px var(--primary-cyan);
    letter-spacing: 4px;
    animation: glitchText 0.3s ease;
}

@keyframes glitchText {
    0%, 100% {
        text-shadow: 0 0 20px var(--primary-cyan);
    }
    50% {
        text-shadow: 0 0 30px var(--primary-cyan), -2px 0 0 var(--primary-orange);
    }
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
    padding: 10px 20px;
    position: relative;
    margin-top: 30px;
}

.hero-content {
    text-align: center;
}

.hero h1 {
    font-size: 3em;
    margin-bottom: 20px;
    letter-spacing: 3px;
    text-shadow: 0 0 0px var(--primary-cyan);
    position: relative;
}

@keyframes glitch {
    0%, 100% {
        text-shadow: 0 0 20px var(--primary-cyan);
    }
    25% {
        text-shadow: -2px 0 var(--primary-orange), 2px 2px var(--primary-cyan);
    }
    50% {
        text-shadow: -2px -2px var(--neon-pink), 2px 0 var(--primary-cyan);
    }
    75% {
        text-shadow: 0 2px var(--primary-cyan), -2px -2px var(--primary-orange);
    }
}

.subtitle {
    font-size: 1.3em;
    color: var(--text-secondary);
    margin-bottom: 40px;
    letter-spacing: 2px;
}

.hero-content > a {
    color: var(--primary-cyan);
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 255, 255, 0.02) 0px,
        rgba(0, 255, 255, 0.02) 2px,
        transparent 2px,
        transparent 4px
    );
    pointer-events: none;
    animation: scanlines 8s linear infinite;
}

@keyframes scanlines {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(10px);
    }
}

/* About Section */
.about {
    margin: 0px 0px;
    padding: 10px;
}

.about-card {
    background-color: rgba(0, 255, 255, 0.05);
    border: 2px solid var(--primary-cyan);
    padding: 40px;
    position: relative;
    box-shadow: 0 0 0px rgba(0, 255, 255, 0.2), inset 0 0 20px rgba(0, 255, 255, 0.05);
}

.about-card h2 {
    font-size: 2em;
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-shadow: 0 0 0px var(--primary-cyan);
}

.about-card p {
    line-height: 1.8;
    color: var(--text-secondary);
    font-size: 1.0em;
}

.profile-card {
    display: grid;
    grid-template-columns: 260px 1fr;
    column-gap: 30px;
    align-items: start;
}

.profile-card .accent-line {
    grid-column: 1 / -1;
}

.profile-visual {
    grid-row: 1 / span 1;
}

.profile-visual a {
    color: var(--primary-cyan);
    text-decoration: none;
}

.profile-visual a span {
    text-decoration: underline;
}

.profile-visual p:last-child {
    white-space: nowrap;
}

.news-card {
    padding: 20px;
}

.news-card h2 {
    margin-bottom: 10px;
}

.news-content {
    max-height: 260px;
    overflow-y: auto;
    padding-right: 12px;
}

.news-content p {
    font-size: 0.95em;
    line-height: 1.5;
    margin-bottom: 10px;
}

.news-content {
    max-height: 260px;
    overflow-y: auto;
    padding-right: 12px;
}

.news-content p {
    font-size: 0.95em;
    line-height: 1.5;
    margin-bottom: 10px;
}

.news-content a {
    color: var(--primary-cyan);
}

.profile-content a {
    color: var(--primary-cyan);
}

.identity-disc {
    position: relative;
    width: 200px;
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-cyan);
    box-shadow:
        0 0 12px var(--primary-cyan),
        0 0 28px rgba(0, 255, 255, 0.65),
        inset 0 0 16px var(--primary-cyan);
}

.identity-disc::before {
    content: "";
    position: absolute;
    inset: 8px;
    z-index: 2;
    /* border: 2px solid var(--primary-cyan); */
    border-radius: 50%;
    /* background: rgba(0, 255, 255, 0.82); */
    /* box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.75); */
    pointer-events: none;
}

.identity-disc img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 700px) {
    .profile-card {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .profile-visual {
        margin: 0 auto 20px;
    }
}

/* Accent Lines */
.accent-line {
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--primary-cyan) 20%, var(--primary-cyan) 80%, transparent 100%);
    margin: 20px 0;
}

/* Quick Links Section */
.quick-links {
    margin: 80px 0;
    text-align: center;
}

.quick-links h2 {
    font-size: 2.5em;
    margin-bottom: 50px;
    letter-spacing: 2px;
    text-shadow: 0 0 0px var(--primary-cyan);
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.link-card {
    background-color: rgba(0, 255, 255, 0.05);
    border: 2px solid var(--primary-cyan);
    padding: 40px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(0, 255, 255, 0.1);
    transition: left 0.3s ease;
    z-index: -1;
}

.link-card:hover::before {
    left: 0;
}

.link-card:hover {
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.4), inset 0 0 20px rgba(0, 255, 255, 0.1);
    transform: translateY(-5px);
}

.card-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.link-card h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.link-card p {
    color: var(--text-secondary);
    font-size: 0.95em;
}

/* Filters Section */
.filters {
    margin: 40px 0;
    padding: 30px;
    background-color: rgba(0, 255, 255, 0.05);
    border: 2px solid var(--primary-cyan);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 20px;
}

.filters h3 {
    margin: 0;
    letter-spacing: 1px;
    white-space: nowrap;
    min-width: 150px;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-btn {
    padding: 10px 25px;
    background-color: transparent;
    border: 2px solid var(--primary-cyan);
    color: var(--text-secondary);
    cursor: pointer;
    font-family: 'Monaco', 'Courier New', monospace;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9em;
}

.filter-btn:hover {
    background-color: rgba(0, 255, 255, 0.1);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
    color: var(--primary-cyan);
}

.filter-btn.active {
    background-color: var(--primary-cyan);
    color: var(--dark-bg);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

/* Publications Section */
.publications {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin: 40px 0 80px;
}

.publication-item {
    background-color: rgba(0, 255, 255, 0.03);
    border-left: 4px solid var(--primary-cyan);
    padding: 30px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border-top: 2px solid var(--primary-cyan);
}

.publication-item::before {
    content: '';
    position: absolute;
    top: 0;
    right: -50%;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(0, 255, 255, 0.1) 100%);
    transition: right 0.3s ease;
    pointer-events: none;
}

.publication-item:hover {
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3), inset -200px 0 100px rgba(0, 255, 255, 0.05);
    transform: translateX(10px);
}

.publication-item:hover::before {
    right: -20%;
}

.pub-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 15px;
}

.pub-header h3 {
    flex: 1;
    font-size: 1.3em;
    margin: 0;
    line-height: 1.4;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 3px;
    font-size: 0.7em;
    font-weight: bold;
    letter-spacing: 1px;
    white-space: nowrap;
    text-transform: uppercase;
}

.badge.conference {
    background-color: var(--neon-green);
    color: var(--dark-bg);
    box-shadow: 0 0 10px var(--neon-green);
}

.badge.poster {
    background-color: var(--neon-yellow);
    color: var(--dark-bg);
    box-shadow: 0 0 10px var(--neon-yellow);
}

.badge.demo {
    background-color: var(--neon-pink);
    color: var(--dark-bg);
    box-shadow: 0 0 10px var(--neon-pink);
}

.badge.award {
    background-color: var(--accent-blue);
    color: var(--dark-bg);
    box-shadow: 0 0 10px var(--accent-blue);
}

.badge.preprint {
    background-color: var(--primary-orange);
    color: var(--dark-bg);
    box-shadow: 0 0 10px var(--primary-orange);
}

.authors {
    color: var(--text-secondary);
    font-size: 0.95em;
    margin: 10px 0;
}

.venue {
    color: var(--accent-blue);
    font-size: 0.95em;
    margin: 5px 0 15px;
}

.award-text {
    color: var(--text-primary);
    font-weight: bold;
}

.award-text::before {
    content: "🏆";
    margin-right: 0.35em;
}

.description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 15px 0;
}

.pub-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 255, 255, 0.2);
}

.pub-link {
    color: var(--primary-cyan);
    text-decoration: none;
    font-size: 0.9em;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.pub-link:hover {
    text-shadow: 0 0 10px var(--primary-cyan);
    text-decoration: underline;
}

.pub-date {
    color: var(--text-secondary);
    font-size: 0.85em;
    margin-left: auto;
    text-align: right;
}

.publication-item.hidden {
    display: none;
}

/* Teaching Section */
.institution-section {
    margin-top: 75px;
    margin-bottom: 30px;
}

.institution-header {
    /* border-top: 2px solid var(--primary-cyan); */
    margin-bottom: 20px;
    padding-bottom: 10px;
}

.institution-header h2 {
    font-size: 2.2em;
    margin-bottom: 5px;
    text-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
    letter-spacing: 2px;
}

.institution-name {
    color: var(--accent-blue);
    font-size: 1.1em;
    letter-spacing: 1px;
}

.teaching-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.teaching-entry {
    background-color: rgba(0, 255, 255, 0.05);
    border: 2px solid var(--primary-cyan);
    padding: 18px;
    margin-bottom: 12px;
    position: relative;
    transition: all 0.3s ease;
}

.teaching-entry:hover {
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.4), inset 0 0 20px rgba(0, 255, 255, 0.1);
    transform: translateY(-10px);
}

.card-number {
    display: none;
}

.teaching-entry h3 {
    font-size: 1.4em;
    margin-bottom: 6px;
    text-shadow: 0 0 0px rgba(0, 255, 255, 0.3);
}

.course-code {
    color: var(--text-secondary);
    font-size: 0.9em;
    margin-bottom: 5px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.course-code a {
    color: var(--primary-cyan);
}

.course-semesters {
    color: var(--accent-blue);
    font-size: 0.85em;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.course-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95em;
}

.course-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.topic {
    display: inline-block;
    padding: 5px 12px;
    background-color: rgba(0, 255, 255, 0.1);
    border: 1px solid var(--primary-cyan);
    border-radius: 20px;
    font-size: 0.8em;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.topic:hover {
    background-color: var(--primary-cyan);
    color: var(--dark-bg);
}

/* Mentoring Section */
.mentoring {
    background-color: rgba(0, 255, 255, 0.05);
    border: 2px solid var(--primary-cyan);
    padding: 40px;
    margin: 80px 0;
}

.mentoring h2 {
    font-size: 2em;
    margin-bottom: 20px;
    text-shadow: 0 0 0px var(--primary-cyan);
}

.mentoring p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.05em;
}

.mentoring-section {
    margin-bottom: 40px;
}

.mentoring-section h2 {
    font-size: 2em;
    letter-spacing: 2px;
    text-shadow: 0 0 0px var(--primary-cyan);
}

.mentoring-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.05em;
}

.mentoring-section ul {
    color: var(--text-secondary);
}

/* Training Program Section */
.teaching-entry {
    background-color: rgba(0, 255, 255, 0.05);
    border-left: 4px solid var(--primary-cyan);
    padding: 18px;
    margin: 30px 0;
}

.program-info {
    color: var(--accent-blue);
    font-size: 0.9em;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.program-description {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95em;
}

/* Footer */
.footer {
    background-color: rgba(0, 0, 0, 0.95);
    border-top: 2px solid var(--primary-cyan);
    padding: 30px;
    text-align: center;
    color: var(--text-secondary);
    margin-top: 100px;
    position: relative;
    z-index: 1;
}

.footer p {
    margin: 5px 0;
    font-size: 0.9em;
}

.status {
    color: var(--neon-green);
    text-shadow: 0 0 5px var(--neon-green);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .research-opportunities {
        grid-template-columns: 1fr;
    }

    .menu-toggle {
        display: flex !important;
        width: 44px;
        height: 44px;
        padding: 10px;
        flex-direction: column;
        justify-content: space-between;
        border: 1px solid var(--primary-cyan);
        background: transparent;
        cursor: pointer;
    }

    .menu-toggle span {
        display: block;
        width: 100%;
        height: 2px;
        background: var(--primary-cyan);
        transition: transform 0.2s ease, opacity 0.2s ease;
    }

    .menu-toggle[aria-expanded="true"] span:first-child {
        transform: translateY(10px) rotate(45deg);
    }

    .menu-toggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle[aria-expanded="true"] span:last-child {
        transform: translateY(-10px) rotate(-45deg);
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 12px;
        right: 12px;
        flex-direction: column;
        gap: 0;
        padding: 8px 20px;
        background-color: rgba(0, 0, 0, 0.98);
        border: 1px solid var(--primary-cyan);
        box-shadow: 0 8px 16px rgba(0, 255, 255, 0.15);
    }

    .nav-menu.is-open {
        display: flex;
    }

    .nav-menu .nav-link {
        display: block;
        padding: 12px 0;
    }

    .page-header h1 {
        font-size: 2em;
    }

    .hero h1 {
        font-size: 2.5em;
    }

    .quick-links h2 {
        font-size: 1.8em;
    }

    .pub-header {
        flex-direction: column;
    }

    .badge {
        font-size: 0.65em;
    }

    .filter-group {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .filters h3 {
        min-width: 0;
    }

    .filter-buttons {
        flex-direction: column;
    }

    .filter-btn {
        width: 100%;
    }

    .teaching-card h3 {
        font-size: 1.1em;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .grid-background,
    .footer {
        display: none;
    }

    body {
        background: white;
        color: black;
    }
}