/* --- style.css --- */


/* --- Global Styles & Reset --- */
body {
    margin: 0;
    padding: 0;
    background-color: #000; /* Pure black background for academic contrast */
    color: #fff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

/* width limitation */
.container {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
}


/* --- 1. Navigation & Language Switcher --- */
.top-bar {
    width: 100%;
    height: 40px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0 20px;
    box-sizing: border-box;
    background-color: rgba(255, 255, 255, 0.05);
}

.lang-switch {
    font-size: 1.1rem;
    font-weight: bold;
    color: #666;
}

.lang-btn {
    cursor: pointer;
    transition: all 0.3s;
    padding: 0 5px;
}

.lang-btn.active {
    color: #007bff;/* Signature Blue for active language */
}

.lang-btn:hover {
    color: #fff;
}

.separator {
    margin: 0 5px;
    color: #444;
}

/* Logic: Hide Chinese content by default */
.lang-zh {
    display: none;
}


/* --- 2. Profile Section --- */
.profile-section {
    background-color: rgba(128, 128, 128, 0.5);
    padding: 30px;
    border-radius: 15px;
    margin-top: 30px;
    backdrop-filter: blur(5px); 
    display: flex;
    align-items: center;
    gap: 40px;
}

/* photo: Avatar "Bubble" Styling */
.avatar-box img {
    width: 150px;
    height: 150px;
    border-radius: 50%; /* Makes the image a perfect circle */
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.4s ease-out, border-color 0.3s; /* 'ease-out' starts fast and ends slow, creating a "bubbly" elastic feel */
    cursor: pointer; /* Changes cursor to a pointer hand on hover */
}

/* Hover Effect: Bubble Expansion */
.avatar-box img:hover {
    transform: scale(1.1); /* Enlarges the image by 1.1x */
    border-color: rgba(0, 123, 255, 0.8); /* Highlights the border */
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.5); /* Adds a glow shadow */
}

/* information */
.info-box {
    flex: 1;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.info-item strong {
    color: #ddd;
    display: block;
    font-size: 0.9em;
    margin-bottom: 2px;
}

/* Social Iconography */
.social-icons {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 15px;
}

.social-icons a {
    color: white;
    font-size: 24px;
    transition: transform 0.3s, color 0.3s;
}

.social-icons a:hover {
    color: #007bff;
    transform: scale(1.1);
}


/* --- 3. Education --- */
.section-title {
    text-align: center;
    margin: 40px 0 20px 0;
    font-size: 24px;
    border-bottom: 2px solid #444;
    padding-bottom: 10px;
    width: 100%;
}

.education-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.edu-item {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 15px 20px;
    border-left: 4px solid #007bff;
    border-radius: 4px;
}

.edu-year {
    font-size: 0.9em;
    color: #aaa;
}

/* --- 4. Academic Research --- */
.research-showcase {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 60px;
}

/* Dual-column */
.demo-container {
    display: flex;
    align-items: center;
    gap: 30px;
    background: rgba(255, 255, 255, 0.03);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Implementation of alternating (reversed) layout */
.demo-container.reverse {
    flex-direction: row-reverse;
}

/* Text Content Section */
.demo-info {
    flex: 1;
}

.demo-info h4 {
    color: #007bff;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.demo-info p {
    color: #ccc;
    line-height: 1.6;
    font-size: 0.95rem;
}

.demo-features {
    list-style: none;
    padding: 0;
    margin-top: 15px;
    font-size: 0.85rem;
    color: #aaa;
}

.demo-features li {
    margin-bottom: 5px;
}

.demo-features i {
    color: #28a745; /* Green checkmark icon */
    margin-right: 8px;
}

/* Video Player Section */
.demo-video {
    flex: 1;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    background: #000;
}

.demo-video video {
    width: 100%;
    display: block;
    transition: transform 0.5s;
}

/* Subtle zoom effect on video during container hover */
.demo-container:hover .demo-video video {
    transform: scale(1.05);
}

/* Responsive design: Stack elements vertically on mobile devices */
@media (max-width: 768px) {
    .demo-container, .demo-container.reverse {
        flex-direction: column;
    }
}


/* --- 5. Publications(Dual Column) --- */
/* Outer wrapper: Implements a side-by-side (dual-column) layout */
.pub-patent-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 30px; /* Spacing between the left and right columns */
    margin-bottom: 50px;
}

/* Individual column settings */
.achievement-column {
    flex: 1;
    min-width: 300px;
}

/* Header styling for each column */
.achievement-column h4 {
    /* border-bottom: 2px solid #007bff; */
    padding-bottom: 10px;
    margin-bottom: 20px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Card-style container */
.item-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: background 0.3s;
}

.item-card:hover {
    background: rgba(255, 255, 255, 0.1);
}

.item-card h5 {
    margin: 8px 0;
    font-size: 1rem;
    color: #eee;
}

/* Supporting text and typography for authors/venues */
.authors, .venue {
    font-size: 0.85rem;
    margin: 2px 0;
    color: #bbb;
}

.links {
    margin-top: 10px;
}

.links a {
    font-size: 0.8rem;
    color: #007bff;
    text-decoration: none;
    margin-right: 12px;
}

/* Responsive design: Stack elements vertically on mobile devices */
@media (max-width: 768px) {
    .pub-patent-wrapper {
        flex-direction: column;
    }
}


/* --- 6.Showcase --- */
.interactive-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 50px;
    gap: 20px;
    min-height: 300px;
}

.menu-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 180px;
}

.menu-btn {
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    text-align: center;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.menu-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: #fff;
}

/* Dynamic Display Panel */
.display-center {
    flex: 1;
    background-color: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    display: flex;
    flex-direction: column; /* Stacks content vertically */
    justify-content: flex-start; /* Aligns content to the top */
    align-items: flex-start; /* Aligns items to the left */
    text-align: left; /* Ensures text is left-aligned */
    min-height: 350px;
    transition: opacity 0.3s ease;
    overflow-y: auto; /* Enables scrollbar if content exceeds height */
}

/* Life Gallery Photo Wall Styling */
.life-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.life-photo {
    width: 30%;
    height: 20%;
    /* border-radius: 50%; */
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.5);
    transition: all 0.4s ease;
    cursor: pointer;
}

/* Interactive Hover Effect (Bubble Expansion) */
.life-photo:hover {
    transform: scale(1.3);
    border-color: #007bff;
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.6);
    z-index: 10; /* Ensures the zoomed image appears above others */
}

/* Responsive design: Stack elements vertically on mobile devices */
@media (max-width: 768px) {
    .profile-section { flex-direction: column; text-align: center; }
    .info-grid { grid-template-columns: 1fr; }
    .social-icons { justify-content: center; }
    .interactive-section { flex-direction: column; }
    .menu-column { width: 100%; flex-direction: row; justify-content: space-around; }
    .display-center { width: 100%; }
}
