/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #8b5cf6;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-dark: #111827;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

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

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

/* Dropdown Menu */
.nav-menu-item {
    position: relative;
}

.nav-dropdown-toggle {
    cursor: pointer;
}

.nav-dropdown-toggle::after {
    display: none;
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 0.5rem;
    padding: 0.5rem 0;
    border: 1px solid var(--border-color);
}

.nav-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
}

.nav-dropdown a:hover {
    background-color: var(--bg-secondary);
    color: var(--primary-color);
}

.nav-dropdown a::after {
    display: none;
}

.nav-lang-toggle {
    display: flex;
    gap: 0.5rem;
    margin-left: 2rem;
}

.nav-lang-toggle .lang-btn {
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s;
    color: var(--text-secondary);
}

.nav-lang-toggle .lang-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.nav-lang-toggle .lang-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
    background: #ffffff;
    color: #000000;
    position: relative;
}

.hero .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

/* Full width container for hero with background */
.hero--bg .container {
    max-width: 100%;
    padding: 0;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Left-align content for hero with background image */
.hero--bg .hero-content {
    text-align: left;
    padding-left: 8vw;
    max-width: 100%;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: #000000;
    letter-spacing: -0.01em;
}

/* Hero title spacing and size adjustment for background images */
.hero--bg .hero-title {
    margin-top: 6vh;
    font-size: clamp(36px, 5vw, 56px);
    line-height: 1.15;
}

.hero-subtitle {
    font-size: 1.75rem;
    font-weight: 400;
    margin-bottom: 3.5rem;
    color: #1a1a1a;
    line-height: 1.6;
}

/* Hero text colors - white for background images */
.hero--bg,
.hero--bg * {
    color: rgba(255, 255, 255, 0.92);
}

.hero--bg .hero-title {
    color: rgba(255, 255, 255, 0.92);
}

.hero--bg .hero-subtitle,
.hero--bg .tagline {
    color: rgba(255, 255, 255, 0.72);
}

.hero--bg .hero-value {
    color: rgba(255, 255, 255, 0.85);
}

.hero--bg .value-en {
    color: rgba(255, 255, 255, 0.85);
}

.hero--bg .metric-row,
.hero--bg .metric-left,
.hero--bg .metric-right {
    color: rgba(255, 255, 255, 0.75);
}

.hero--bg .metric-row strong {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 500;
}

.hero--bg .metric-row a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease;
    cursor: pointer;
    pointer-events: auto;
    position: relative;
    z-index: 1;
    display: inline-block;
}

.hero--bg .metric-row a:hover {
    opacity: 0.85;
    text-decoration: underline;
}

.hero--bg .metric-row a strong {
    font-weight: 700;
    color: inherit;
}

.hero--bg .metric-light {
    color: rgba(255, 255, 255, 0.75);
}

.hero--bg .metric-separator {
    opacity: 0.35;
    transform: scaleY(0.8);
}

.hero-metrics {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin: 0 0 3.5rem 0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Left-align metrics for hero with background */
.hero--bg .hero-metrics {
    margin-left: 0;
    margin-right: 0;
}

.metric-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1.5rem;
    align-items: center;
    font-size: 1.3rem;
    line-height: 1.4;
}

.metric-left,
.metric-right {
    text-align: left;
}

.metric-right {
    text-align: right;
}

.metric-separator {
    color: #cccccc;
    font-weight: 300;
    font-size: 1.1rem;
}

.metric-light {
    font-weight: 300;
    color: #666666;
    font-size: 0.9em;
}

.metric-row strong {
    font-weight: 700;
    color: #000000;
    font-size: 1.1em;
}

.hero-identity {
    font-weight: 600;
}

.hero-identity strong {
    font-weight: 800;
}

.hero-identity .metric-light {
    font-weight: 600;
}

.hero-cta {
    margin-bottom: 3.5rem;
}

.cta-email {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 600;
    color: #000000;
    text-decoration: none;
    padding: 1rem 2.5rem;
    border: 3px solid #000000;
    border-radius: 0;
    transition: all 0.2s ease;
    letter-spacing: 0.02em;
}

.cta-email:hover {
    background: #000000;
    color: #ffffff;
}

.hero-value {
    font-size: 1.15rem;
    line-height: 2;
    color: #1a1a1a;
    max-width: 750px;
    margin: 0 auto;
    text-align: left;
}

/* Left-align value text for hero with background */
.hero--bg .hero-value {
    margin-left: 0;
    margin-right: 0;
}

.value-zh {
    display: block;
    margin-bottom: 1rem;
}

.value-en {
    display: block;
    font-size: 1.15rem;
    color: #1a1a1a;
    font-style: normal;
    line-height: 2;
    margin-top: 0;
}

/* Entry Section */
.entry {
    padding: 100px 0;
    background: #ffffff;
}

.entry-title {
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 4rem;
    color: #1a1a1a;
    letter-spacing: -0.01em;
}

.entry-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.entry-card {
    display: block;
    padding: 2.5rem;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.entry-card:hover {
    border-color: #1a1a1a;
    background: #fafafa;
    transform: translateY(-2px);
}

.entry-card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #1a1a1a;
}

.entry-card-desc {
    font-size: 1rem;
    color: #666666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.entry-card-link {
    font-size: 1rem;
    font-weight: 500;
    color: #1a1a1a;
    display: inline-block;
}

.entry-card:hover .entry-card-link {
    color: #000000;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.8;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
    border: 2px solid transparent;
}

.btn-primary {
    background: white;
    color: var(--primary-color);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
}

.hero-image {
    animation: fadeInRight 0.8s ease-out;
}

.floating-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-xl);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.code-snippet {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.8;
}

.code-line {
    margin-bottom: 0.5rem;
}

.code-line.indent {
    padding-left: 1.5rem;
}

.code-keyword { color: #c792ea; }
.code-variable { color: #82aaff; }
.code-operator { color: #89ddff; }
.code-string { color: #c3e88d; }
.code-property { color: #f78c6c; }

/* Section Styles */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

/* About Section */
.about {
    background: var(--bg-secondary);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-weight: 500;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.project-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.project-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-placeholder {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
}

.project-content {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    padding: 4px 12px;
    background: var(--bg-secondary);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.project-link:hover {
    color: var(--primary-dark);
}

/* Skills Section */
.skills {
    background: var(--bg-secondary);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.skill-category {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.skill-category-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.skill-item {
    margin-bottom: 1.5rem;
}

.skill-name {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.skill-bar {
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
    transition: width 1s ease-out;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.contact-info p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s;
}

.contact-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(5px);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Footer */
/* Feedback Form Section */
.feedback-section {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.feedback-form {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.form-section {
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.form-group label strong {
    font-weight: 600;
}

.required {
    color: #ef4444;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    transition: border-color 0.3s ease;
    background: #ffffff;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-submit {
    margin-top: 2rem;
    text-align: center;
}

.submit-btn {
    padding: 1rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    background: var(--primary-color);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.form-success {
    padding: 2rem;
    text-align: center;
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 8px;
    margin-top: 2rem;
}

/* 移动端响应式 */
@media (max-width: 768px) {
    .feedback-section {
        padding: 40px 0;
    }
    
    .form-section-title {
        font-size: 1.1rem;
    }
    
    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group textarea {
        font-size: 0.9rem;
        padding: 0.65rem 0.85rem;
    }
    
    .submit-btn {
        width: 100%;
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }
}

.footer {
    background: #ffffff;
    color: #1a1a1a;
    text-align: center;
    padding: 3rem 0;
    border-top: 1px solid #e5e7eb;
}

.footer p {
    margin: 0 0 1rem 0;
    font-size: 0.9rem;
    color: #666666;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #1a1a1a;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #000000;
    text-decoration: underline;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        margin-top: 0;
        padding: 0;
        background: transparent;
        display: none;
    }

    .nav-dropdown.active {
        display: block;
    }

    .nav-dropdown a {
        padding: 0.75rem 1rem;
        padding-left: 2rem;
    }

    .hamburger {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.4rem;
        margin-bottom: 2.5rem;
    }

    .hero-metrics {
        gap: 1rem;
        margin-bottom: 2.5rem;
    }

    .metric-row {
        font-size: 1.1rem;
        gap: 1rem;
    }

    .cta-email {
        font-size: 1.25rem;
        padding: 0.875rem 2rem;
    }

    .hero-value {
        font-size: 1rem;
    }

    .value-en {
        font-size: 0.8em;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 2rem;
    }

    .hero-metrics {
        gap: 0.875rem;
        margin-bottom: 2rem;
    }

    .metric-row {
        font-size: 1rem;
        gap: 0.75rem;
    }

    .entry {
        padding: 60px 0;
    }

    .entry-title {
        font-size: 1.5rem;
        margin-bottom: 2.5rem;
    }

    .entry-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .entry-card {
        padding: 2rem;
    }

    .nav-lang-toggle {
        margin-left: 1rem;
    }

    .cta-email {
        font-size: 1.1rem;
        padding: 0.75rem 1.5rem;
    }

    .hero-value {
        font-size: 0.95rem;
        line-height: 1.8;
    }

    .value-en {
        font-size: 0.75em;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* Language Toggle */
.lang-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.lang-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Hero Avatar */
.hero-avatar {
    text-align: center;
    margin-bottom: 2rem;
}

.hero-avatar img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: var(--shadow-lg);
}

.hero-tagline {
    font-size: 1.2rem;
    font-style: italic;
    margin: 1rem 0;
    opacity: 0.9;
}

.hero-info {
    margin-top: 2rem;
}

.info-item {
    margin: 0.5rem 0;
    font-size: 1rem;
}

.info-label {
    font-weight: 600;
}

.hero-info a {
    color: white;
    text-decoration: underline;
}

/* Highlights */
.highlights {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.highlight-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s;
}

.highlight-card:hover {
    transform: translateY(-5px);
}

.highlight-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.highlight-card ul {
    list-style: none;
    padding: 0;
}

.highlight-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.highlight-card li:last-child {
    border-bottom: none;
}

.highlight-card li a {
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease, color 0.3s ease;
    display: inline-block;
}

.highlight-card li a:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* Experience Section */
.experience {
    padding: 80px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.view-toggle {
    display: flex;
    gap: 0.5rem;
}

.toggle-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.toggle-btn.active {
    background: var(--primary-color);
    color: white;
}

.view-content {
    display: none;
}

.view-content.active {
    display: block;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-color);
}

.timeline-item {
    position: relative;
    padding-bottom: 3rem;
    padding-left: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 3px solid white;
    box-shadow: 0 0 0 3px var(--primary-color);
}

.timeline-year {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.timeline-content h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.timeline-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.timeline-photo {
    display: block;
    width: 100%;
    max-width: 720px;
    height: auto;
    margin: 12px 0 6px 0;
}

.timeline-media {
    margin-top: 10px;
}

.timeline-media img {
    width: 100%;
    max-width: 720px;
    height: auto;
    border-radius: 12px;
    display: block;
}

.timeline-caption {
    margin-top: 6px;
    font-size: 14px;
    opacity: 0.75;
}

.timeline-gallery {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.timeline-gallery .tl-fig {
    margin: 0;
}

.timeline-gallery img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    margin: 0;
}

.timeline-gallery .tl-cap {
    margin-top: 4px;
    font-size: 12px;
}

.tl-img {
    max-width: 720px;
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    margin: 12px 0;
}

.tl-fig {
    margin: 14px 0 18px 0;
}

.tl-cap {
    font-size: 14px;
    opacity: 0.75;
    margin-top: 6px;
}

@media (max-width: 820px) {
    .timeline-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .timeline-gallery img {
        height: 150px;
    }
}

@media (max-width: 520px) {
    .timeline-gallery {
        grid-template-columns: 1fr;
    }
    .timeline-gallery img {
        height: 200px;
    }
}

/* Timeline Tooltip */
.timeline-tooltip {
    position: fixed;
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-xl);
    max-width: 400px;
    z-index: 10000;
    pointer-events: none;
    animation: fadeInTooltip 0.3s ease-out;
    border: 1px solid var(--border-color);
}

@keyframes fadeInTooltip {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.timeline-tooltip .tooltip-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.timeline-tooltip .tooltip-header h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    flex: 1;
}

.timeline-tooltip .tooltip-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
    white-space: nowrap;
    margin-left: 1rem;
}

.timeline-tooltip .tooltip-content {
    color: var(--text-secondary);
    line-height: 1.6;
}

.timeline-tooltip .tooltip-content p {
    margin: 0 0 0.5rem 0;
}

.timeline-tooltip .tooltip-type {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--bg-secondary);
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--primary-color);
    font-weight: 500;
    margin-top: 0.5rem;
}

.timeline-item {
    cursor: pointer;
    transition: transform 0.2s;
}

.timeline-item:hover {
    transform: translateX(5px);
}

/* Theme View */
.theme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.theme-category {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 12px;
}

.theme-category h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.theme-category ul {
    list-style: none;
    padding: 0;
}

.theme-category li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.theme-category li:last-child {
    border-bottom: none;
}

/* Articles View */
.articles-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    min-height: 600px;
}

.articles-list {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 1.5rem;
    overflow-y: auto;
    max-height: 800px;
}

.article-item {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.article-item:hover {
    border-color: var(--primary-color);
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.article-item.active {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
}

.article-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.article-item-header h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    flex: 1;
}

.article-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
    white-space: nowrap;
    margin-left: 1rem;
}

.article-preview {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

.article-detail {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    overflow-y: auto;
    max-height: 800px;
    box-shadow: var(--shadow-md);
}

.article-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.article-detail-header {
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.article-detail-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
}

.article-detail-date {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.article-detail-content {
    color: var(--text-primary);
    line-height: 1.8;
    font-size: 1rem;
}

.article-detail-content p {
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .articles-container {
        grid-template-columns: 1fr;
    }
    
    .articles-list {
        max-height: 300px;
    }
    
    .article-detail {
        max-height: 500px;
    }
}

/* Year Review Section */
.year-review {
    padding: 80px 0;
    background: linear-gradient(180deg, #f9fafb 0%, #ffffff 100%);
    position: relative;
}

.progress-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    z-index: 9999;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    width: 0%;
    transition: width 0.1s ease;
}

.review-content {
    max-width: 1000px;
    margin: 0 auto;
}

.review-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.review-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.review-card.overview-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
    border: 2px solid rgba(99, 102, 241, 0.2);
}

.review-card h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.card-header h3 {
    margin: 0;
    font-size: 1.8rem;
}

.timeline-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.clickable-timeline-link {
    background: none;
    border: none;
    color: var(--primary-color);
    text-decoration: underline;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.clickable-timeline-link:hover {
    opacity: 0.7;
}

.category-percentage {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

/* Time Distribution */
.time-distribution {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.distribution-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.distribution-label {
    min-width: 140px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.distribution-hours {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-secondary);
}

.distribution-bar-container {
    flex: 1;
    position: relative;
    background: var(--bg-secondary);
    border-radius: 8px;
    height: 60px;
    overflow: hidden;
}

.clickable-distribution-bar {
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.clickable-distribution-bar:hover {
    opacity: 0.85;
}

.clickable-distribution-bar .distribution-bar {
    cursor: pointer;
}

.distribution-bar {
    height: 100%;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 1.5rem;
    color: white;
    font-weight: 700;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    position: relative;
    min-width: 80px;
}

.distribution-bar span {
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
    z-index: 1;
    font-size: 1.3rem;
    white-space: nowrap;
}

.distribution-bar:hover {
    filter: brightness(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .distribution-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .distribution-label {
        min-width: auto;
        text-align: left;
        font-size: 1rem;
    }
    
    .distribution-bar-container {
        width: 100%;
    }
}

/* Achievements Grid */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.achievement-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.achievement-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.clickable-achievement {
    cursor: pointer;
}

.clickable-achievement:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.achievement-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.achievement-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Work Items */
.work-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.work-item {
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.work-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.clickable-work-item {
    cursor: pointer;
}

.clickable-work-item:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.work-item h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.work-item p {
    color: var(--text-secondary);
    margin: 0;
}

/* Financial Summary */
.financial-charts-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Year-over-Year Comparison */
.year-comparison-summary {
    margin-bottom: 2rem;
}

.comparison-table-wrapper {
    overflow-x: auto;
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 1rem;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.comparison-table thead {
    background: var(--primary-color);
    color: white;
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    text-align: left;
}

.comparison-table th {
    font-weight: 600;
    font-size: 1rem;
}

.comparison-table tbody tr {
    border-bottom: 1px solid var(--border-color);
}

.comparison-table tbody tr:last-child {
    border-bottom: none;
}

.comparison-table td {
    color: var(--text-primary);
}

.comparison-table td strong {
    font-size: 1.2rem;
    color: var(--text-primary);
}

.negative-change {
    color: #ef4444;
    font-weight: 600;
}

.positive-change {
    color: #10b981;
    font-weight: 600;
}

.income-structure-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.structure-year {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 1.5rem;
}

.structure-year-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
}

.structure-breakdown {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.structure-category {
    background: white;
    border-radius: 8px;
    padding: 1rem;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.category-icon {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.category-name {
    flex: 1;
    font-weight: 600;
    color: var(--text-primary);
}

.category-total {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.category-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
}

.detail-name {
    color: var(--text-primary);
    flex: 1;
}

.detail-amount {
    font-weight: 600;
    color: var(--text-primary);
}

.detail-note {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-left: 0.5rem;
}

.year-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border-top: 3px solid var(--primary-color);
}

.total-label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.total-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.comparison-conclusions {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
}

.conclusions-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.conclusions-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.conclusion-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.conclusion-badge {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    flex-shrink: 0;
}

.conclusion-text {
    color: var(--text-primary);
    font-weight: 500;
}

.risk-curve-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.risk-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.risk-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.risk-year {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    border-top: 4px solid var(--primary-color);
}

.risk-year-label {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.risk-characteristics {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.risk-characteristics li {
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: 6px;
    color: var(--text-primary);
    position: relative;
    padding-left: 2rem;
}

.risk-characteristics li::before {
    content: "•";
    position: absolute;
    left: 0.75rem;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .income-structure-comparison {
        grid-template-columns: 1fr;
    }
    
    .risk-comparison {
        grid-template-columns: 1fr;
    }
    
    .comparison-table-wrapper {
        padding: 0.5rem;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
    }
}

.financial-summary-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.summary-card-large {
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    text-align: center;
    border-top: 4px solid;
}

.summary-card-large.income-card {
    border-top-color: #10b981;
}

.summary-card-large.expense-card {
    border-top-color: #ef4444;
}

.summary-card-large .summary-label {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-weight: 500;
}

.summary-value-large {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
}

.summary-value-large.positive {
    color: #10b981;
}

.summary-value-large.negative {
    color: #ef4444;
}

.chart-section {
    margin-bottom: 2rem;
}

.charts-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.chart-section-inline {
    display: flex;
    flex-direction: column;
}

.chart-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
    text-align: center;
}

.chart-container-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.chart-wrapper {
    position: relative;
    height: 300px;
    max-width: 300px;
    margin: 0 auto;
}

.chart-wrapper-inline {
    position: relative;
    height: 350px;
    margin: 0 auto;
    width: 100%;
    max-width: 400px;
}

.chart-legend {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
}

.legend-color {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    flex-shrink: 0;
}

.legend-label {
    flex: 1;
    font-weight: 500;
    color: var(--text-primary);
}

.legend-value {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .financial-summary-cards {
        grid-template-columns: 1fr;
    }
    
    .charts-row {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .chart-container-wrapper {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .chart-wrapper {
        height: 250px;
    }
    
    .chart-wrapper-inline {
        height: 300px;
    }
    
    .summary-value-large {
        font-size: 2.5rem;
    }
}

.financial-section {
    margin-bottom: 2rem;
}

.financial-section .section-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
}

.financial-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.detail-category {
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 12px;
}

.detail-category h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.detail-total {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.detail-total.highlight {
    color: var(--primary-color);
}

.detail-note {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.detail-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: white;
    border-radius: 6px;
    flex-wrap: wrap;
}

.item-name {
    color: var(--text-primary);
    font-weight: 500;
}

.item-amount {
    color: var(--text-primary);
    font-weight: 600;
    margin-left: auto;
    margin-right: 0.5rem;
}

.item-note {
    color: var(--text-secondary);
    font-size: 0.85rem;
    width: 100%;
    margin-top: 0.25rem;
}

/* Expense Categories */
.expense-category {
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--border-color);
}

.expense-category.highlight-expense {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.05), rgba(219, 39, 119, 0.05));
    border-left-color: #ec4899;
}

.expense-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.expense-header h5 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    flex: 1;
}

.expense-total {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.expense-percentage {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.expense-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.expense-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    flex-wrap: wrap;
}

.expense-item.special-item {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
    border: 2px solid rgba(99, 102, 241, 0.2);
    flex-direction: column;
    align-items: stretch;
}

.expense-item.asset-item {
    border-left: 3px solid #10b981;
}

.expense-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 0.75rem;
}

.sub-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.5rem;
    width: 100%;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.sub-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    background: white;
    border-radius: 6px;
    font-size: 0.9rem;
}

.sub-name {
    color: var(--text-secondary);
}

.sub-amount {
    color: var(--text-primary);
    font-weight: 500;
}

.item-tag {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.asset-tag {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.expense-note {
    margin-top: 1rem;
    padding: 0.75rem;
    background: white;
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.expense-note strong {
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .financial-overview-summary {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .financial-details-grid {
        grid-template-columns: 1fr;
    }
    
    .expense-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .sub-items {
        grid-template-columns: 1fr;
    }
}

/* Monthly Timeline */
.monthly-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.month-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 1.5rem;
    border-left: 4px solid var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.month-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.month-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.month-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.month-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.month-events {
    list-style: none;
    padding: 0;
    margin: 0;
}

.month-events li {
    padding: 0.75rem 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    line-height: 1.6;
}

.month-events li:last-child {
    border-bottom: none;
}

/* Relationship Structure */
.relationship-structure {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.relationship-section {
    display: flex;
    flex-direction: column;
}

.relationship-section .section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.relationship-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.relationship-item {
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    border-left: 4px solid transparent;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.relationship-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.relationship-item.highlight-item {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.1), rgba(219, 39, 119, 0.1));
    border-left-color: #ec4899;
}

.relationship-item h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.relationship-item p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Relationship Result */
.relationship-result {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.result-item {
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    border-left: 4px solid;
}

.result-item.positive {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.1));
    border-left-color: #10b981;
    color: #059669;
}

.result-item.negative {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.1));
    border-left-color: #ef4444;
    color: #dc2626;
}

.result-label {
    display: block;
}

@media (max-width: 768px) {
    .relationship-structure {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Projects Section */
.projects-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.project-item {
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.project-item h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.project-item p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Reading Section */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
}

.book-item {
    padding: 1rem 1.25rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.book-item:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

@media (max-width: 768px) {
    .books-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 0.75rem;
    }
    
    .book-item {
        font-size: 0.85rem;
        padding: 0.75rem 1rem;
    }
}

/* AI Section */
.ai-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.ai-stat-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 12px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* AI Conversation Statistics */
.ai-conversation-stats {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 12px;
}

.ai-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
}

.conversation-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.conversation-stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    border-top: 4px solid var(--primary-color);
}

.conversation-stat-card .stat-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.conversation-stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.conversation-stat-card .stat-label-small {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* AI Peak Usage Info */
.ai-peak-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
    border-radius: 12px;
}

.peak-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
}

.peak-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.peak-content {
    flex: 1;
}

.peak-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.peak-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* AI Tools Section */
.ai-tools-section {
    padding-top: 1.5rem;
    border-top: 2px solid var(--border-color);
}

.ai-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tool-tag {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 20px;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .conversation-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ai-peak-info {
        grid-template-columns: 1fr;
    }
}

/* Final Message */
.final-message-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border: 2px solid rgba(99, 102, 241, 0.3);
    text-align: center;
}

.final-message {
    font-size: 1.2rem;
    line-height: 2;
    color: var(--text-primary);
    margin: 0;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    padding: 2rem;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 10001;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-content.modal-large {
    max-width: 95vw;
    width: 1200px;
}

.chart-modal-container {
    position: relative;
    height: 500px;
    width: 100%;
    margin: 1.5rem 0;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-right: 3rem;
}

.modal-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.modal-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.modal-images-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.modal-images-grid .modal-image {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .modal-images-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.modal-note {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-style: italic;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .modal-content {
        padding: 1.5rem;
        max-width: 95vw;
        margin: 1rem;
    }
    
    .modal-title {
        font-size: 1.3rem;
        padding-right: 2.5rem;
    }
}

@media (max-width: 768px) {
    .projects-section {
        grid-template-columns: 1fr;
    }
    
    .financial-summary {
        grid-template-columns: 1fr;
    }
    
    .monthly-timeline {
        grid-template-columns: 1fr;
    }
    
    .review-card {
        padding: 1.5rem;
    }
}

/* Financial Section */
.financial {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.financial-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.chart-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.chart-btn.active {
    background: var(--primary-color);
    color: white;
}

.chart-container {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    min-height: 400px;
}

.chart-view {
    display: none;
}

.chart-view.active {
    display: block;
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.summary-card {
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 8px;
}

.summary-card h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background: var(--bg-secondary);
    font-weight: 600;
    color: var(--text-primary);
}

/* Interests */
.interests {
    padding: 80px 0;
}

.interests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.interest-category {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 12px;
}

.interest-category h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.interest-category ul {
    list-style: none;
    padding: 0;
}

.interest-category li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.interest-category li:last-child {
    border-bottom: none;
}

/* Works Section */
.works {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.music-player-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-md);
}

.music-player {
    margin-top: 1.5rem;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.play-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: var(--primary-color);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
}

.play-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: var(--bg-secondary);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
}

.progress {
    height: 100%;
    background: var(--primary-color);
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s;
}

.time {
    font-size: 0.9rem;
    color: var(--text-secondary);
    min-width: 50px;
}

.playlist {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.playlist-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.playlist-item:hover {
    background: var(--border-color);
}

.track-number {
    width: 30px;
    text-align: center;
    color: var(--text-secondary);
}

.track-title {
    flex: 1;
    font-weight: 500;
}

.track-artist {
    color: var(--text-secondary);
    min-width: 100px;
}

.track-duration {
    color: var(--text-secondary);
    min-width: 50px;
}

.download-track-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.work-link {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary);
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
    text-align: center;
}

.work-link:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.work-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.work-link h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.work-link p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.download-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.download-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 8px;
}

.download-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.download-btn {
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.download-btn:hover {
    background: var(--primary-dark);
}

/* Future Section */
.future {
    padding: 80px 0;
}

.future-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.future-item {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 12px;
}

.future-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.footer-quote {
    font-style: italic;
    margin-top: 1rem;
    opacity: 0.8;
}

/* Responsive additions */
@media (max-width: 768px) {
    
    .section-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .hero-avatar img {
        width: 120px;
        height: 120px;
    }
    
    .timeline {
        padding-left: 1.5rem;
    }
    
    .player-controls {
        flex-wrap: wrap;
    }
}

/* Hero background */
.hero--bg {
    position: relative;
    min-height: 78vh;
    display: flex;
    align-items: flex-start;
    background-image: url("images/AuMusicBest.jpg");
    background-size: cover;
    background-position: 35% 35%;
    background-repeat: no-repeat;
    filter: saturate(0.9) contrast(1.05);
}

/* Dark overlay to improve text contrast - cool black gradient */
.hero--bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        rgba(0, 0, 0, 0.65),
        rgba(0, 0, 0, 0.45)
    );
}

/* Ensure hero content sits above overlay */
.hero--bg > * {
    position: relative;
    z-index: 1;
}

/* Optional: improve readability on small screens */
@media (max-width: 768px) {
    .hero--bg {
        min-height: 72vh;
        background-position: 50% 30%;
    }
    
    /* Stronger overlay for mobile */
    .hero--bg::before {
        background: linear-gradient(
            rgba(0, 0, 0, 0.70),
            rgba(0, 0, 0, 0.55)
        );
    }
    
    /* Hide hero-value on mobile (keep hero-metrics visible) */
    .hero-value {
        display: none !important;
    }
    
    /* Hide desktop CTA, show mobile CTA */
    .hero--bg .cta-email {
        display: none;
    }
    
    .hero--bg .cta-email-mobile {
        display: inline-block;
        min-height: 48px;
        padding: 16px 32px;
        font-size: 1.1rem;
        font-weight: 600;
        background: rgba(255, 255, 255, 0.15);
        border: 2px solid rgba(255, 255, 255, 0.5);
        color: rgba(255, 255, 255, 1);
        text-decoration: none;
        border-radius: 8px;
        transition: all 0.2s ease;
        margin-top: 2rem;
    }
    
    .hero--bg .cta-email-mobile:hover,
    .hero--bg .cta-email-mobile:active {
        background: rgba(255, 255, 255, 0.25);
        border-color: rgba(255, 255, 255, 0.7);
        transform: translateY(-1px);
    }
    
    /* Add more padding to hero content on mobile */
    .hero--bg .hero-content {
        padding-left: 6vw;
        padding-right: 6vw;
    }
    
    /* Prevent title word breaking */
    .hero--bg .hero-title {
        word-break: keep-all;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* Hide desktop language toggle, show in hamburger menu */
    .nav-lang-toggle {
        display: none;
    }
    
    /* Style mobile language toggle in dropdown */
    .nav-lang-toggle-mobile {
        display: flex;
        gap: 0.5rem;
        padding: 1rem;
        margin-top: 0.5rem;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .lang-btn-mobile {
        flex: 1;
        padding: 0.5rem 1rem;
        border: 1px solid rgba(0, 0, 0, 0.2);
        background: white;
        border-radius: 6px;
        cursor: pointer;
        font-size: 0.9rem;
        transition: all 0.2s ease;
    }
    
    .lang-btn-mobile.active {
        background: #6a63ff;
        color: white;
        border-color: #6a63ff;
    }
}

/* For very small screens */
@media (max-width: 480px) {
    .hero--bg .hero-title {
        font-size: clamp(28px, 8vw, 36px);
        white-space: normal;
        line-height: 1.3;
    }
    
    .hero--bg .hero-subtitle {
        font-size: clamp(16px, 4vw, 20px);
    }
    
    .hero--bg .hero-content {
        padding-left: 5vw;
        padding-right: 5vw;
    }
}

/* Site title with bilingual display */
.site-title {
    display: flex;
    align-items: baseline;
    gap: 6px;
    white-space: nowrap;
}

.name-en {
    font-size: 32px;
    font-weight: 600;
    color: #6a63ff;
}

/* Header name stays purple, Hero name becomes white */
header .name-en,
.navbar .name-en {
    color: #6a63ff;
}

.hero .name-en,
.hero--bg .name-en {
    color: rgba(255, 255, 255, 0.95);
}

.name-sep {
    font-size: 22px;
    font-weight: 400;
    color: #999;
    margin: 0 2px;
}

.name-zh {
    font-size: 16px;
    font-weight: 400;
    color: #666;
    letter-spacing: 0.08em;
}

/* Hero CTA button styling for background images */
.hero--bg .cta-email {
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 14px 28px;
    transition: all 0.2s ease;
}

.hero--bg .cta-email:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.6);
    color: rgba(255, 255, 255, 1);
}

.hero--bg .hero-description {
    color: rgba(255, 255, 255, 0.75);
}


