/* Staff Page Styles */
:root {
    --primary-color: #0066cc;
    --secondary-color: #004d99;
    --accent-color: #00b3e6;
    --text-color: #333;
    --light-text: #fff;
    --dark-bg: #23222a;
    --darker-bg: #1a1921;
    --light-bg: #f8f9fa;
    --gray-bg: #f0f2f5;
    --border-color: #e0e0e0;
    --success-color: #28a745;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --card-bg: #fff;
    --header-bg: rgba(255, 255, 255, 0.95);
    --footer-bg: var(--dark-bg);
    --footer-text: var(--light-text);
    --card-front-bg: rgb(35, 34, 41);
    --card-back-bg: rgb(35, 34, 41);
}

/* Dark Theme Variables */
html[data-theme="dark"] {
    --primary-color: #4d94ff;
    --secondary-color: #80b3ff;
    --accent-color: #33ccff;
    --text-color: #e0e0e0;
    --light-bg: #2a2a36;
    --gray-bg: #333340;
    --border-color: #444;
    --card-bg: #2d2d3a;
    --header-bg: rgba(35, 34, 42, 0.95);
    --footer-bg: #1a1a24;
    --footer-text: #e0e0e0;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --card-front-bg: rgb(35, 34, 41);
    --card-back-bg: rgb(35, 34, 41);
}

.staff-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Business Card Section */
.business-card-section {
    margin-bottom: 60px;
}

.business-card-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
}

/* Business Card - Front */
.business-card-front {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 16 / 9;
    background-color: var(--card-front-bg);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 30px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--light-text);
}

/* Animated background curves */
.business-card-front::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.7;
}

.business-card-front::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cpath fill='none' stroke='rgba(255,255,255,0.1)' stroke-width='1' d='M10,50 Q30,30 50,50 T90,50'/%3E%3C/svg%3E");
    background-size: 100px 100px;
    animation: moveBackground 15s linear infinite;
    z-index: 0;
    opacity: 0.3;
}

@keyframes moveBackground {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 100px 100px;
    }
}

.card-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 25px;
    margin-bottom: 10px;
}

.name-section {
    flex: 1;
    position: relative;
}

.name-container {
    display: flex;
    align-items: baseline;
    gap: 35px;
    margin-bottom: 5px;
}

.name-primary {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.name-secondary {
    font-size: 1rem;
    opacity: 0.7;
    font-weight: normal;
}

.position-container {
    margin-bottom: 0px;
}

.position-jp {
    font-size: 0.8rem;
    opacity: 0.9;
    margin-bottom: 3px;
}

.position-en {
    font-size: 0.8rem;
    opacity: 0.9;
}

.card-footer {
    margin-top: auto;
}

.company-container {
    margin-bottom: 15px;
}

.company-jp {
    font-size: 1rem;
    font-weight: 500;
}

.company-en {
    font-size: 1.0rem;
    opacity: 1.0;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
}

.contact-item i {
    color: var(--accent-color);
    width: 16px;
    text-align: center;
}

/* Language Toggle */
.language-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 8px;
}

.language-toggle button {
    background: none;
    border: none;
    color: var(--light-text);
    font-size: 0.8rem;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.6;
    transition: var(--transition);
}

.language-toggle button.active {
    background-color: rgba(255, 255, 255, 0.2);
    opacity: 1;
    font-weight: bold;
}

.language-toggle button:hover {
    opacity: 1;
}

/* Language Content */
.jp-content,
.en-content {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.lang-jp .jp-content {
    display: block;
    transform: translateX(0);
    opacity: 1;
}

.lang-jp .en-content {
    display: none;
    transform: translateX(20px);
    opacity: 0;
}

.lang-en .jp-content {
    display: none;
    transform: translateX(-20px);
    opacity: 0;
}

.lang-en .en-content {
    display: block;
    transform: translateX(0);
    opacity: 1;
}

/* Business Card - Back */
.business-card-back {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 16 / 9;
    background-color: var(--card-back-bg);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 0;
    position: relative;
    overflow: hidden;
    color: var(--light-text);
}

.card-back-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
}

.blackhole-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    z-index: 0;
}

.blackhole-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

.logo-container {
    position: relative;
    z-index: 1;
    text-align: center;
    margin-bottom: 10px;
    margin-right: 40px;
}

.logo-container img {
    max-width: 250px;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
}

/* Staff Details Section */
.staff-details-section {
    background-color: var(--card-bg);
    border-radius: 15px;
    box-shadow: var(--shadow);
    padding: 40px;
}

.details-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
}

.topics-section {
    border-right: 1px solid var(--border-color);
    padding-right: 30px;
}

.topics-section h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

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

.topics-list li {
    margin-bottom: 10px;
    padding: 8px 15px;
    background-color: var(--gray-bg);
    border-radius: 5px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.topics-list li:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
    transform: translateX(5px);
}


.description-section h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.description-jp {
    margin-bottom: 20px;
    line-height: 1.8;
}

.description-en {
    line-height: 1.8;
    opacity: 0.9;
}

/* Animation for language switching */
@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in-right {
    animation: fadeInRight 0.3s ease forwards;
}

.fade-in-left {
    animation: fadeInLeft 0.3s ease forwards;
}

/* Responsive Styles */
@media (max-width: 490px) {
    .details-container {
        grid-template-columns: 1fr;
    }

    .topics-section {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding-right: 0;
        padding-bottom: 30px;
    }

    .business-card-front,
    .business-card-back {
        max-width: 100%;
        padding-top: 10px;
        padding-left: 30px;
        padding-right: 30px;
        padding-bottom: 10px;
    }

    .name-container {
        align-items: baseline;
        gap: 5px;
    }

    /* Scale down all text on business card front to 70% for mobile */
    .business-card-front .name-primary {
        font-size: 1.40rem;
        /* 70% of 1.8rem */
    }

    .business-card-front .name-secondary {
        font-size: 0.8rem;
        /* 70% of 1rem */
    }

    .business-card-front .position-jp,
    .business-card-front .position-en {
        font-size: 0.7rem;
        /* 70% of 0.8rem */
    }

    .business-card-front .company-jp,
    .business-card-front .company-en {
        font-size: 0.7rem;
        /* 70% of 1rem */
    }

    .business-card-front .contact-item {
        font-size: 0.49rem;
        /* 70% of 0.7rem */
    }

    .business-card-front .language-toggle button {
        font-size: 0.56rem;
        /* 70% of 0.8rem */
        padding: 3px 6px;
        /* Slightly smaller padding for better fit */
    }
}
