/* Shared site styles used across the portfolio pages. */
/* Site styles: compact edition */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    background: #0d1117;
    color: white;
    font-family: 'DM Sans', sans-serif;
    line-height: 1.6;
}
a {
    text-decoration: none;
    color: inherit;
}
.navbar {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 25px;
    background: #161b22;
    border-bottom: 1px solid #30363d;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.navbar a {
    color: white;
    font-weight: 600;
    transition: 0.3s;
}
.navbar a:hover {
    color: #58a6ff;
}
.hero {
    width: 95%;
    margin: auto;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 40px;
}
.hero-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.hero-left h1 {
    font-size: 3rem;
    margin: 15px 0 10px;
}
.hero-left h2 {
    color: #58a6ff;
    margin-bottom: 15px;
}
.hero-left p {
    max-width: 500px;
    margin-bottom: 25px;
}
.hero-right {
    flex: 1.3;
}
.hero-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.profile-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 25px;
    border: 4px solid #58a6ff;
}
.cv-button {
    display: inline-block;
    padding: 12px 30px;
    background: #58a6ff;
    border-radius: 10px;
    color: white;
    font-weight: bold;
    transition: 0.3s;
}
.cv-button:hover {
    transform: translateY(-2px);
}
#game {
    width: 100%;
    height: 550px;
    border-radius: 15px;
    overflow: hidden;
    border: 3px solid #58a6ff;
}
#nes-frame {
    width: 100%;
    height: 100%;
    border: none;
}
.stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 50px;
}
.card {
    width: 220px;
    background: #161b22;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: 0.3s;
}
.card:hover {
    transform: translateY(-10px);
}
#timeline {
    width: 80%;
    margin: auto;
    padding: 50px 0;
}
.timeline-item {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}
.year {
    min-width: 100px;
    color: #58a6ff;
    font-weight: bold;
}
.content {
    border-left: 3px solid #58a6ff;
    padding-left: 20px;
}
#projects {
    width: 90%;
    margin: auto;
    padding: 50px 0;
}
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.project-card {
    background: #161b22;
    padding: 30px;
    border-radius: 15px;
}
.contact-links,
.footer-links {
    display: flex;
    justify-content: center;
    gap: 25px;
}
.contact-links {
    margin-bottom: 30px;
}
.footer-links {
    margin-bottom: 15px;
}
.contact-links a,
.footer-links a {
    font-size: 1.8rem;
    color: #8b949e;
    transition: 0.3s;
}
.contact-links a:hover,
.footer-links a:hover {
    color: #58a6ff;
    transform: translateY(-3px);
}
footer {
    margin-top: 80px;
    padding: 40px 20px;
    text-align: center;
    background: #161b22;
    border-top: 1px solid #30363d;
}
footer p {
    color: #8b949e;
    font-size: 0.9rem;
}
.page-header {
    text-align: center;
    margin: 60px 0 30px;
    z-index: 1000;
}
.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}
.page-header p {
    color: #8b949e;
}
.search-container {
    max-width: 1000px;
    margin: 30px auto;
    display: flex;
    gap: 12px;
    padding: 0 20px;
}
.search-container input {
    flex: 1;
    padding: 14px 18px;
    border: 1px solid #30363d;
    border-radius: 12px;
    background: #161b22;
    color: white;
}
.search-container button {
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    background: #58a6ff;
    color: white;
    cursor: pointer;
    font-weight: 600;
}
.search-container button:hover {
    transform: translateY(-2px);
}
.filters {
    max-width: 1000px;
    margin: 20px auto 30px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}
.filters select {
    min-width: 180px;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #30363d;
    background: #161b22;
    color: white;
}
#resultCount {
    text-align: center;
    color: #8b949e;
    margin-bottom: 25px;
}
#publicationsContainer {
    max-width: 1100px;
    margin: auto;
    padding: 0 20px;
}
.stats-section {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 40px auto;
    max-width: 1100px;
}
.stat-card {
    background: #161b22;
    padding: 25px;
    min-width: 200px;
    text-align: center;
    border-radius: 14px;
    border: 1px solid #30363d;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}
.stat-card h2 {
    color: #58a6ff;
    font-size: 2rem;
}
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
    }
    .hero-right {
        width: 100%;
    }
    #game {
        height: 400px;
    }
    .search-container {
        flex-direction: column;
    }
}
.header-content {
    display: flex;
    align-items: center;
    gap: 20px;
}
.header-avatar {
    width: 180px;
    height: 180px;
    object-fit: contain;
}
.header-text h1 {
    margin-bottom: 10px;
}
.page-header {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    z-index: 1000;
}
.page-header-publications {
    background-image: url('../assets/bg-images/bgpublications.png');
    background-size: cover;
    background-position: center;
    min-height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
.page-header-projects {
    background-image: url('../assets/bg-images/bgprojects.png');
    background-size: cover;
    background-position: center;
    min-height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.page-header-blogs {
    background-image: url('../assets/bg-images/bgblogs.png');
    background-size: cover;
    background-position: center;
    min-height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
.header-content {
    display: flex;
    align-items: center;
    gap: 30px;
}
.header-avatar {
    width: 180px;
    height: 180px;
    object-fit: contain;
}
.header-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    text-shadow:
        0 0 10px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(0, 0, 0, 0.8),
        0 0 30px rgba(0, 0, 0, 0.8);
    margin-bottom: 12px;
}
.header-text p {
    font-size: 1.2rem;
    color: #e0e0e0;
    text-shadow:
        0 0 8px rgba(0, 0, 0, 0.8),
        0 0 16px rgba(0, 0, 0, 0.8);
}
.results-section {
    background-image:
        linear-gradient(rgba(13, 17, 23, 0.95), rgba(13, 17, 23, 0.95)),
        url('../assets/bg-images/research-grid.png');
    background-size: cover;
    background-position: center;
}
.results-background {
    position: relative;
    min-height: 100vh;
    padding-bottom: 60px;
}
.results-background::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../assets/bg-images/research-grid.png');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    opacity: 0.8;
    z-index: 0;
}
.search-container,
.filters,
#resultCount,
#publicationsContainer {
    position: relative;
    z-index: 1;
}
.tag {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}
#selectedKeywords {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}
.selected-keyword {
    background: #065f46;
    color: white;
    padding: 8px 14px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
}
.selected-keyword button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
}
#tech-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.25;
}
body {
    overflow-x: hidden;
}
.profile-image {
    transition: opacity 0.5s ease;
}
.arcade-cabinet {
    width: 100%;
    max-width: 700px;
    margin: auto;
    background: #111;
    border: 8px solid #444;
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 0 25px rgba(0, 255, 255, 0.25),
        0 0 60px rgba(255, 0, 255, 0.15);
}
.arcade-marquee {
    background: linear-gradient(90deg, #ff0066, #ffcc00, #00ffff);
    text-align: center;
    padding: 15px;
    font-size: 1.3rem;
    font-weight: bold;
    letter-spacing: 3px;
    color: #000;
    text-shadow: 0 0 5px white;
}
.arcade-screen-frame {
    padding: 20px;
    background: #050505;
    border-top: 4px solid #222;
    border-bottom: 4px solid #222;
}
#game {
    width: 100%;
    min-height: 500px;
    border: 6px solid #333;
    border-radius: 10px;
    overflow: hidden;
    box-shadow:
        inset 0 0 40px rgba(0, 255, 0, 0.15),
        0 0 25px rgba(0, 255, 255, 0.3);
}
.arcade-controls {
    display: flex;
    justify-content: space-between;
    padding: 12px 20px;
    background: #111;
    color: #00ff99;
    font-family: monospace;
    font-size: 0.9rem;
    letter-spacing: 2px;
}
.arcade-screen-frame {
    position: relative;
}
.arcade-screen-frame::after {
    content: '';
    position: absolute;
    inset: 20px;
    pointer-events: none;
    background: repeating-linear-gradient(
        transparent 0px,
        transparent 2px,
        rgba(255, 255, 255, 0.04) 3px
    );
    mix-blend-mode: screen;
}
.navbar {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(8px);
    border-bottom: 3px solid #222;
}
.nav-btn {
    min-width: 180px;
    padding: 14px 24px;
    text-align: center;
    text-decoration: none;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 10px;
    transition: 0.2s;
    box-shadow:
        inset 0 -4px rgba(0, 0, 0, 0.35),
        0 5px 12px rgba(0, 0, 0, 0.4);
}
.nav-btn i {
    margin-right: 8px;
}
.nav-btn:hover {
    transform: translateY(-3px);
}
.nav-btn:active {
    transform: translateY(2px);
}
.home-btn {
    background: #e63946;
}
.pub-btn {
    background: #4361ee;
}
.project-btn {
    background: #2a9d8f;
}
.blog-btn {
    background: #f4a261;
}
.home-btn {
    background: linear-gradient(#ff5c6c, #c1121f);
}
.pub-btn {
    background: linear-gradient(#5a7dff, #1d4ed8);
}
.project-btn {
    background: linear-gradient(#38d9a9, #087f5b);
}
.blog-btn {
    background: linear-gradient(#ffbf69, #f77f00);
}
.nav-btn {
    border: 3px solid rgba(255, 255, 255, 0.15);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.skills-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin: 60px auto;
    max-width: 1400px;
    padding: 0 30px;
}
.skill-card {
    background: rgba(22, 27, 34, 0.85);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 20px;
    padding: 25px;
    transition: 0.35s;
    backdrop-filter: blur(10px);
}
.skill-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 25px rgba(0, 255, 136, 0.15);
}
.skill-card img {
    width: 72px;
    image-rendering: pixelated;
    margin-bottom: 15px;
}
.skill-card h3 {
    color: #00ff88;
    margin-bottom: 15px;
}
.skill-card ul {
    padding-left: 18px;
}
.skill-card li {
    margin-bottom: 8px;
}
.skills-carousel-section {
    margin: 60px auto;
    max-width: 1400px;
    padding: 0 20px;
}
.skills-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 0 20px;
}
.skills-carousel::-webkit-scrollbar {
    height: 10px;
}
.skills-carousel::-webkit-scrollbar-thumb {
    background: #00ff88;
    border-radius: 10px;
}
.skill-card {
    flex: 0 0 300px;
    background: rgba(20, 20, 20, 0.85);
    border: 1px solid rgba(0, 255, 136, 0.25);
    border-radius: 18px;
    padding: 20px;
    transition: 0.3s;
}
.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px rgba(0, 255, 136, 0.2);
}
.skill-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}
.skill-header img {
    width: 48px;
    height: 48px;
    image-rendering: pixelated;
}
.skill-header h3 {
    margin: 0;
    color: #00ff88;
    font-size: 1.1rem;
}
.skill-card ul {
    margin: 0;
    padding-left: 20px;
}
.skill-card li {
    margin-bottom: 8px;
}
.skill-cartridges {
    margin: 80px auto;
    max-width: 1600px;
    padding: 0 20px;
}
.skill-cartridges h2 {
    text-align: center;
    margin-bottom: 40px;
}
.cartridge-carousel {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding-bottom: 20px;
}
.skill-carousel-section {
    max-width: 1600px;
    margin: 80px auto;
    text-align: center;
}
.skill-carousel-section h2 {
    margin-bottom: 40px;
    font-size: 2rem;
}
.carousel-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}
.carousel-btn {
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    background: #111;
    color: #00ff88;
    font-size: 1.5rem;
    cursor: pointer;
    transition: 0.25s;
}
.carousel-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
}
.carousel-3d {
    position: relative;
    width: 900px;
    height: 700px;
    perspective: 1800px;
    overflow: visible;
}
.skill-slide {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 340px;
    transform-style: preserve-3d;
    transition: 0.6s ease;
}
.skill-slide img {
    width: 100%;
    border-radius: 18px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    user-select: none;
}
#timeline {
    max-width: 1000px;
    margin: 120px auto;
    text-align: center;
}
#timeline h2 {
    margin-bottom: 40px;
}
.timeline-carousel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.timeline-btn {
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.3rem;
    color: white;
    background: #00ff88;
    transition: 0.3s;
}
.timeline-btn:hover {
    transform: scale(1.1);
}
.timeline-view {
    position: relative;
    height: 520px;
    overflow: hidden;
    perspective: 1500px;
}
.timeline-slide {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 80%;
    transform-style: preserve-3d;
    background: rgba(22, 27, 34, 0.92);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 20px;
    padding: 35px;
    backdrop-filter: blur(10px);
    transition:
        transform 0.6s ease,
        opacity 0.6s ease;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}
.timeline-slide .year {
    display: inline-block;
    margin-bottom: 15px;
    padding: 6px 14px;
    border-radius: 20px;
    background: #00ff88;
    color: #000;
    font-weight: bold;
}
.timeline-slide h3 {
    color: #00ff88;
    margin-bottom: 15px;
}
.timeline-slide p {
    color: #ddd;
    line-height: 1.7;
}
.career-dashboard {
    max-width: 1800px;
    margin: 100px auto;
    padding: 0 30px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
}
.dashboard-column {
    min-height: 520px;
    border-radius: 24px;
    padding: 25px;
    position: relative;
    overflow: hidden;
}
.career-column {
    background: linear-gradient(180deg, rgba(0, 255, 136, 0.15), rgba(0, 255, 136, 0.05));
    border: 1px solid rgba(0, 255, 136, 0.3);
}
.project-column {
    background: linear-gradient(180deg, rgba(0, 150, 255, 0.15), rgba(0, 150, 255, 0.05));
    border: 1px solid rgba(0, 150, 255, 0.3);
}
.blog-column {
    background: linear-gradient(180deg, rgba(180, 0, 255, 0.15), rgba(180, 0, 255, 0.05));
    border: 1px solid rgba(180, 0, 255, 0.3);
}
.dashboard-column h2 {
    text-align: center;
    margin-bottom: 20px;
}
.panel-view {
    position: relative;
    height: 320px;
}
.timeline-slide,
.project-slide,
.blog-slide {
    position: absolute;
    inset: 0;
    border-radius: 18px;
    padding: 25px;
    background: rgba(20, 20, 20, 0.8);
    transition: 0.5s;
}
.project-slide {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}
.blog-slide {
    border: 1px solid rgba(180, 0, 255, 0.3);
}
.panel-btn {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    color: white;
    margin: 10px auto;
    display: block;
}
.career-column .panel-btn {
    background: #00ff88;
}
.project-column .panel-btn {
    background: #0096ff;
}
.blog-column .panel-btn {
    background: #b400ff;
}
.year {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    background: #00ff88;
    color: black;
    font-weight: bold;
    margin-bottom: 15px;
}
@media (max-width: 1200px) {
    .career-dashboard {
        grid-template-columns: 1fr;
    }
}
.career-column .panel-view {
    perspective: 1200px;
}
.career-column .panel-view {
    position: relative;
    height: 600px;
    overflow: visible;
    perspective: 1500px;
}
.timeline-slide {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    max-width: 350px;
    padding: 20px;
    border-radius: 20px;
    background: #08110d;
    border: 1px solid #00ff99;
    transition:
        transform 0.5s ease,
        opacity 0.5s ease;
    transform-origin: center center;
}
.timeline-slide .year {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 20px;
    background: #00ff99;
    color: #000;
    font-weight: bold;
}
.career-column .panel-view {
    position: relative;
    height: 350px;
    overflow: hidden;
    perspective: 1000px;
}
.solar-system-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: auto;
    overflow: visible;
}
.solar-system {
    position: relative;
    width: 1200px;
    height: 1200px;
    transform-style: preserve-3d;
    perspective: 1500px;
}
.planet-core {
    position: absolute;
    width: 260px;
    height: 260px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 0 60px rgba(0, 255, 255, 0.4);
}
.planet-core img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: planetRotate 60s linear infinite;
    z-index: 100;
}
.planet-title {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    text-shadow: 0 0 10px cyan;
}
.orbit {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border-style: dashed;
    border-width: 2px;
    opacity: 0.35;
    pointer-events: none;
}
.orbit-label {
    position: absolute;
    font-weight: bold;
    font-size: 1rem;
    text-shadow: 0 0 10px currentColor;
    pointer-events: none;
}
.satellite {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: visible;
    cursor: pointer;
    transition: 0.3s;
}
.satellite:hover {
    transform: scale(1.15);
    z-index: 100;
}
.satellite img {
    box-shadow:
        0 0 10px rgba(255, 255, 255, 0.8),
        0 0 25px rgba(0, 255, 255, 0.5),
        0 0 50px rgba(0, 255, 255, 0.2);
}
.satellite-info {
    position: absolute;
    top: 130px;
    left: 50%;
    transform: translateX(-50%);
    width: 220px;
    opacity: 0;
    transition: 0.3s;
    text-align: center;
    color: white;
    pointer-events: none;
}
.satellite:hover .satellite-info {
    opacity: 1;
}
@keyframes planetRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
.star {
    position: fixed;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: white;
    opacity: 0.6;
}
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.15);
        opacity: 0.9;
    }
    100% {
        transform: scale(1);
        opacity: 0.5;
    }
}
.planet-glow {
    position: absolute;
    inset: -30px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.5), transparent);
    animation: pulse 4s infinite;
}
#orbitContainer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.category-planet {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid white;
    overflow: hidden;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.3);
}
.planet-surface {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    animation: planetRotate 20s linear infinite;
}
.planet-label {
    position: absolute;
    top: 110px;
    width: 180px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    font-weight: bold;
    color: white;
}
#orbitContainer {
    position: absolute;
    inset: 0;
    z-index: 20;
    pointer-events: none;
}
.satellite {
    pointer-events: auto;
}
.solar-system {
    position: relative;
    width: 1600px;
    min-height: auto;
}
#galaxy3d {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
#orbitContainer {
    position: absolute;
    inset: 0;
    z-index: 10;
    pointer-events: none;
}
.satellite {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    pointer-events: auto;
    cursor: pointer;
    transition: 0.3s;
}
.satellite:hover {
    transform: scale(1.15);
    z-index: 100;
}
.satellite img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow:
        0 0 15px rgba(255, 255, 255, 0.8),
        0 0 30px rgba(0, 255, 255, 0.5);
}
.satellite-info {
    position: absolute;
    top: 130px;
    left: 50%;
    transform: translateX(-50%);
    width: 220px;
    text-align: center;
    opacity: 0;
    transition: 0.3s;
    color: white;
}
.satellite:hover .satellite-info {
    opacity: 1;
}
.core-label {
    position: absolute;
    width: 240px;
    text-align: center;
    color: white;
    z-index: 100;
    pointer-events: none;
}
.core-title {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-shadow: 0 0 20px cyan;
    color: white;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}
.core-stats {
    margin-top: 10px;
    font-size: 0.95rem;
    color: white;
    line-height: 1.6;
}
.category-title {
    font-size: 1rem;
    font-weight: bold;
}
.category-count {
    font-size: 0.8rem;
    color: #9be7ff;
    margin-top: 3px;
}
.satellite {
    width: 70px;
    height: 70px;
}
.satellite img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
}
#projectPanel {
    position: fixed;
    width: 420px;
    background: rgba(5, 10, 20, 0.95);
    border: 1px solid cyan;
    border-radius: 20px;
    padding: 20px;
    backdrop-filter: blur(15px);
    box-shadow: 0 0 40px rgba(0, 255, 255, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s;
    z-index: 99999;
}
#projectPanel.open {
    opacity: 1;
    pointer-events: auto;
}
.panel-content {
    display: flex;
    gap: 20px;
}
.panel-content img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 12px;
}
.panel-close {
    position: absolute;
    right: 15px;
    top: 10px;
    cursor: pointer;
    font-size: 22px;
}
#panelLink {
    display: inline-block;
    margin-top: 15px;
    color: cyan;
}
.satellite {
    transition:
        transform 0.3s,
        filter 0.3s,
        box-shadow 0.3s;
}
.satellite.focused {
    transform: translate(-50%, -50%) scale(1.35);
    z-index: 999;
    filter: brightness(1.4);
    box-shadow: 0 0 35px cyan;
}
.satellite {
    transition:
        transform 0.35s ease,
        filter 0.35s ease,
        box-shadow 0.35s ease;
}
.satellite.focused {
    transform: translate(-50%, -50%) scale(1.4);
    z-index: 9999;
    filter: brightness(1.5);
    box-shadow:
        0 0 40px cyan,
        0 0 80px cyan;
}
.satellite {
    transition:
        transform 0.35s ease,
        filter 0.35s ease,
        box-shadow 0.35s ease;
}
.satellite.focused {
    transform: translate(-50%, -50%) scale(1.4);
    z-index: 9999;
    filter: brightness(1.5);
    box-shadow:
        0 0 40px cyan,
        0 0 80px cyan;
}
.project-open .satellite {
    opacity: 0.3;
}
.project-open .satellite.focused {
    opacity: 1;
}
.project-open .category-title,
.project-open .category-count {
    opacity: 0.3;
}
.project-year {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    opacity: 0.7;
    color: #8ff;
}
.left-character {
    position: fixed;
    left: 10px;
    top: 50%;
    transform: translateY(-60%);
    z-index: 1;
    opacity: 0.4;
    pointer-events: none;
}
.left-character img {
    height: 75vh;
    opacity: 0.35;
    mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 60%, rgba(0, 0, 0, 0));
    -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 60%, rgba(0, 0, 0, 0));
}
.project-slide {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
}
.featured-project-image {
    width: 216px;
    height: 216px;
    object-fit: cover;
    border-radius: 16px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}
.featured-project-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.blog-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}
.under-construction-image {
    width: 100%;
    max-width: 320px;
    height: auto;
    object-fit: contain;
}
.game-cartridge-selector {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    flex-wrap: wrap;
}
.game-cartridge {
    width: 100px;
    height: 100px;
    object-fit: contain;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        filter 0.2s ease;
}
.game-cartridge:hover {
    transform: scale(1.08);
}
.selected-cartridge {
    transform: scale(1.1);
}
.search-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}
.search-container #searchInput {
    flex: 1 1 250px;
    min-width: 0;
}
.download-publications-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    background: #243b21;
    color: #33ff11;
    border: 1px solid #33ff11;
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    z-index: 10;
    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}
.download-publications-btn:hover {
    background: #33ff11;
    color: #152b12;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(51, 255, 17, 0.3);
}
.download-publications-btn i {
    font-size: 17px;
}
@media (max-width: 768px) {
    .search-container #searchInput {
        flex-basis: 100%;
    }
    .download-publications-btn {
        flex: 1;
    }
}
.search-container button#downloadPublicationsBtn {
    background-color: #243b21;
    color: #33ff11;
    border: 1px solid #33ff11;
}
.search-container button#downloadPublicationsBtn:hover {
    background-color: #33ff11;
    color: #152b12;
    border-color: #33ff11;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(51, 255, 17, 0.3);
}
.search-container .download-japanese-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    background-color: #183a64;
    color: #ffffff;
    border: 1px solid #4a90e2;
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    position: relative;
    z-index: 10;
    transition:
        background-color 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}
.search-container .download-japanese-btn:hover {
    background-color: #2b65a5;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(43, 101, 165, 0.3);
}
.download-japanese-btn i {
    font-size: 17px;
}
@media (max-width: 768px) {
    .search-container .download-japanese-btn {
        flex: 1;
    }
}

/* Compact publications */
.results-background .carousel-wrapper {
    position: relative;
    z-index: 1;
    width: min(1180px, 100%);
    margin: auto;
    padding: 0 12px;
    gap: 10px;
}
#publicationsContainer {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
    min-width: 0;
    max-width: 1100px;
    margin: auto;
    padding: 8px 4px 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
}
#publicationsContainer .publication-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex: 0 0 300px;
    width: 300px;
    min-width: 0;
    max-width: 300px;
    height: auto;
    gap: 0;
    padding: 14px;
    margin: 0;
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 14px;
    background: rgba(22, 27, 34, 0.92);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    scroll-snap-align: start;
    transition:
        transform 0.2s,
        border-color 0.2s;
}
#publicationsContainer .publication-card:hover {
    transform: translateY(-3px);
    border-color: #00ff88;
}
.publication-thumbnail {
    flex: none;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: 140px;
    margin-bottom: 10px;
    overflow: hidden;
    border-radius: 9px;
    background: #0d1117;
}
.publication-thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border: 0;
    border-radius: 9px;
}
.publication-content {
    flex: 1;
    min-width: 0;
    padding: 0;
    overflow-wrap: anywhere;
}
.publication-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}
.publication-year,
.publication-type {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}
.publication-year {
    background: #00ff88;
    color: #08110d;
}
.publication-type {
    background: #252d38;
    color: #fff;
}
.publication-content h3,
.publication-title {
    color: #fff;
    font-size: 16px;
    line-height: 1.35;
    margin: 8px 0;
}
.publication-content p,
.publication-abstract {
    font-size: 12px;
    line-height: 1.5;
    margin: 6px 0;
    color: #d1d5db;
}
.publication-doi {
    overflow-wrap: anywhere;
    color: #9ca3af;
}
.publication-tags,
.publication-links {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 8px 0 0;
}
.publication-tags .tag {
    padding: 3px 7px;
    font-size: 10px;
    border-radius: 20px;
}
.language-tag {
    background: #1e3a8a;
    color: #fff;
}
.keyword-tag {
    background: #1d2530;
    border: 1px solid rgba(0, 255, 136, 0.25);
    color: #00ff88;
}
.paper-button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    padding: 6px 9px;
    border-radius: 7px;
    background: #2563eb;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    transition: transform 0.2s;
}
.paper-button:hover {
    transform: translateY(-2px);
}
.publication-btn {
    background: #2563eb;
}
.youtube-btn {
    background: #dc2626;
}
.github-btn {
    background: #24292e;
}
.results-background .carousel-nav {
    flex: 0 0 32px;
    width: 32px;
    height: 38px;
    border: 1px solid #30363d;
    border-radius: 8px;
    background: #161b22;
    color: #00ff88;
    cursor: pointer;
}
@media (max-width: 600px) {
    .navbar {
        flex-wrap: wrap;
        gap: 8px;
        padding: 12px;
    }
    .nav-btn {
        min-width: 0;
        padding: 9px 12px;
        font-size: 12px;
    }
    .header-content {
        flex-direction: column;
        gap: 12px;
        padding: 20px;
        text-align: center;
    }
    .header-avatar {
        width: 110px;
        height: 110px;
    }
    .header-text h1 {
        font-size: 2rem;
    }
    .header-text p {
        font-size: 1rem;
    }
    .search-container {
        align-items: stretch;
    }
    .search-container #searchInput {
        flex: 1 1 auto;
        width: 100%;
    }
    .filters {
        padding: 0 16px;
        gap: 8px;
    }
    .filters select {
        min-width: 0;
        max-width: 100%;
        flex: 1 1 140px;
    }
}
@media (max-width: 480px) {
    #publicationsContainer .publication-card {
        flex-basis: min(260px, 100%);
        width: 260px;
        max-width: 100%;
    }
    .publication-thumbnail {
        height: 120px;
    }
    .results-background .carousel-wrapper {
        gap: 6px;
        padding: 0 8px;
    }
    .results-background .carousel-nav {
        flex-basis: 26px;
        width: 26px;
    }
}

/* Publication cards in a responsive grid */
.results-background .carousel-wrapper {
    display: block;
    width: min(1180px, 100%);
    margin: auto;
    padding: 0 16px;
}
.results-background .carousel-nav {
    display: none;
}
#publicationsContainer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
    align-items: stretch;
    gap: 18px;
    width: 100%;
    max-width: 1100px;
    min-width: 0;
    margin: auto;
    padding: 8px 0 24px;
    overflow: visible;
    scroll-snap-type: none;
}
#publicationsContainer .publication-card {
    width: 100%;
    max-width: none;
    min-width: 0;
    height: auto;
    margin: 0;
    scroll-snap-align: none;
}
#publicationsContainer .publication-content {
    display: flex;
    flex-direction: column;
}
#publicationsContainer .publication-links {
    margin-top: auto;
    padding-top: 10px;
}

/* Fixed card width, including filtered results */
#publicationsContainer {
    grid-template-columns: repeat(auto-fill, minmax(0, 300px));
    justify-content: center;
    align-items: stretch;
}
#publicationsContainer .publication-card {
    width: 100%;
    max-width: 300px;
    min-width: 0;
}
#publicationsContainer .publication-thumbnail {
    flex: none;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: 140px;
    overflow: hidden;
}
#publicationsContainer .publication-thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    object-position: center;
    transform: none;
}
@media (max-width: 360px) {
    #publicationsContainer {
        grid-template-columns: minmax(0, 300px);
    }
}
