/* Reset and Variables for Futuristic Sci-Fi Theme */
:root {
    --bg-dark: #070B14;           /* Deep dark space/navy */
    --box-bg: rgba(15, 23, 42, 0.65);  /* Translucent charcoal */
    --box-border: rgba(0, 240, 255, 0.2); /* Neon blue border */
    --primary-neon: #00F0FF;      /* Neon bright blue */
    --accent-color: #38bdf8;      /* Light metallic blue */
    --text-main: #e2e8f0;         /* Light silver text */
    --text-muted: #94a3b8;        /* Muted grayish text */
    --white: #ffffff;
    
    --container-width: 1000px;
    --nav-height: 70px;
}

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

body {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-dark);
    /* Futuristic Background Image applied to all pages */
    background-image: linear-gradient(rgba(7, 11, 20, 0.85), rgba(7, 11, 20, 0.85)), url('images/background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: var(--primary-neon);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--white);
    text-shadow: 0 0 8px var(--primary-neon);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Glassmorphism / Sci-Fi Panels */
.panel {
    background-color: var(--box-bg);
    border: 1px solid var(--box-border);
    backdrop-filter: blur(12px);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.panel:hover {
    border-color: rgba(0, 240, 255, 0.5);
    box-shadow: 0 8px 32px rgba(0, 240, 255, 0.1);
}

/* Header & Nav */
.header {
    background-color: rgba(7, 11, 20, 0.9);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--box-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--nav-height);
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

.nav {
    display: flex;
    gap: 30px;
}

.nav a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    padding: 8px 0;
}

.nav a:hover, .nav a.active {
    color: var(--primary-neon) !important;
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--primary-neon);
    transition: width 0.3s ease;
    box-shadow: 0 0 8px var(--primary-neon);
}

.nav a:hover::after, .nav a.active::after {
    width: 100%;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: transparent;
    color: var(--primary-neon);
    border: 1px solid var(--primary-neon);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.1) inset;
}

.btn-primary:hover {
    background: rgba(0, 240, 255, 0.15);
    color: var(--white);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4) inset, 0 0 10px rgba(0, 240, 255, 0.4);
    text-shadow: 0 0 5px var(--white);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--text-muted);
}

.btn-outline:hover {
    border-color: var(--primary-neon);
    color: var(--primary-neon);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.btn-disabled {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: not-allowed;
}

.btn-disabled:hover {
    text-shadow: none;
    box-shadow: none;
}

/* Hero Section (Sci-Fi specific for Hero image) */
.hero {
    position: relative;
    min-height: 100vh;
    padding: 120px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

/* The prompt specifically asked for full-width hero image with Kon Lab overlaid, background not too pronounced */
.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.7; /* keep it visible but allow text to pop */
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(7, 11, 20, 0.2), rgba(7, 11, 20, 1));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-top-text {
    text-align: left;
    font-size: 4.8rem;
    color: var(--primary-neon);
    letter-spacing: 4px;
    font-weight: 800;
    margin-bottom: 120px;
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.6), 0 0 10px rgba(0, 240, 255, 0.4);
    line-height: 1.1;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .hero-top-text {
        font-size: clamp(1.5rem, 6vw, 2.8rem);
    }
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.8), 0 0 40px rgba(0, 240, 255, 0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--text-main);
    margin-bottom: 40px;
    line-height: 1.8;
    letter-spacing: 1px;
}

.hero-btn-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
    width: 100%;
    max-width: 580px;
    margin: 0 auto;
}

.hero-btn-group .btn {
    text-align: left;
    padding: 16px 32px;
    font-size: 1.05rem;
}

@media (max-width: 768px) {
    .hero-btn-group .btn {
        padding: 14px 20px;
        font-size: 0.95rem;
    }
}

.seminar-panel {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-top: 3px solid var(--primary-neon);
    border-radius: 12px;
    padding: 32px 40px;
    max-width: 660px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 240, 255, 0.1);
    backdrop-filter: blur(16px);
}

.seminar-title {
    font-size: 1.6rem;
    color: var(--white);
    text-align: center;
    margin-bottom: 24px;
    letter-spacing: 2px;
    text-shadow: 0 0 12px rgba(0, 240, 255, 0.6);
}

@media (max-width: 768px) {
    .seminar-panel {
        padding: 24px 20px;
    }
    .seminar-title {
        font-size: 1.3rem;
    }
}

/* Base Sections */
.section {
    padding: 80px 0;
    min-height: calc(100vh - 70px - 100px); /* Adjust for header and footer */
}

.section-title {
    font-size: 2.2rem;
    color: var(--white);
    margin-bottom: 48px;
    text-align: center;
    position: relative;
    padding-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background-color: var(--primary-neon);
    box-shadow: 0 0 10px var(--primary-neon);
}

.section-intro {
    text-align: center;
    margin-bottom: 48px;
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Biography Section */
.bio-header {
    background: linear-gradient(90deg, rgba(0, 240, 255, 0.1), transparent);
    border-bottom: 1px solid var(--box-border);
    padding: 32px 40px;
    overflow: hidden;
}

.jp-name {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    display: inline-block;
    margin-right: 12px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.en-name {
    font-size: 1.1rem;
    color: var(--primary-neon);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.bio-title {
    margin-top: 8px;
    font-size: 1rem;
    color: var(--text-muted);
}

.bio-image {
    float: right;
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 0 20px 32px;
    border: 2px solid rgba(0, 240, 255, 0.6);
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.3), inset 0 0 10px rgba(0, 240, 255, 0.2);
}

@media (max-width: 768px) {
    .bio-image {
        float: none;
        display: block;
        width: 180px;
        height: 180px;
        margin: 0 auto 24px auto;
    }
    .bio-header {
        text-align: center;
    }
}

.bio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 40px;
}

.sub-heading {
    font-size: 1.2rem;
    color: var(--primary-neon);
    margin-bottom: 24px;
    border-left: 2px solid var(--primary-neon);
    padding-left: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timeline {
    list-style: none;
}

.timeline li {
    display: flex;
    margin-bottom: 20px;
    font-size: 0.95rem;
    position: relative;
}

.timeline .year {
    font-weight: 600;
    color: var(--accent-color);
    min-width: 120px;
    flex-shrink: 0;
}

.timeline .content {
    color: var(--text-main);
}

.bio-memberships {
    padding: 0 40px 40px;
}

/* Research Section */
.research-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

.research-card {
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.research-title {
    font-size: 1.5rem;
    color: var(--primary-neon);
    margin-bottom: 16px;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 12px;
}

.research-title::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--primary-neon);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-neon);
}

.research-desc {
    color: var(--text-muted);
    font-size: 1rem;
    flex-grow: 1;
}

/* Software Section */
.software-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.software-card {
    padding: 24px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.software-info {
    flex: 1;
    padding-right: 32px;
}

.software-title {
    font-size: 1.3rem;
    color: var(--white);
    display: inline-block;
    margin-right: 12px;
}

.software-title a {
    color: var(--white);
    transition: color 0.3s ease;
}

.software-title a:hover {
    color: var(--primary-neon);
}

.software-tag {
    display: inline-block;
    background-color: rgba(0, 240, 255, 0.1);
    color: var(--primary-neon);
    font-size: 0.8rem;
    padding: 4px 8px;
    border-radius: 2px;
    vertical-align: middle;
    border: 1px solid rgba(0, 240, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.software-tag.warning-tag {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
}

.software-desc {
    margin: 12px 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.software-warning {
    color: #f87171;
    font-size: 0.9rem;
    margin-top: 8px;
    border-left: 2px solid #ef4444;
    padding-left: 8px;
}

.software-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--accent-color);
}

.software-link:hover {
    text-decoration: underline;
}

.software-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 160px;
}

.dl-count {
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--primary-neon);
    font-family: monospace;
    letter-spacing: 1px;
}

/* Footer */
.footer {
    background-color: rgba(7, 11, 20, 0.95);
    border-top: 1px solid var(--box-border);
    color: var(--text-muted);
    text-align: center;
    padding: 32px 0;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        padding-top: 16px;
        padding-bottom: 16px;
        height: auto;
        gap: 16px;
    }
    
    .nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .bio-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .software-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }
    
    .software-info {
        padding-right: 0;
    }
    
    .software-action {
        width: 100%;
        align-items: flex-start;
        flex-direction: row;
        gap: 20px;
    }
    
    .dl-count {
        margin-top: 0;
    }
}
