:root {
    --bg-main: #e6dace;
    --bg-card: #f4ece6;      
    --primary: #2c3e50;
    --text: #333333;
    --white: #ffffff;
    --accent: #34495e;
    
    /* 統一的次級標題專屬顏色 (極具專業感與穩重度的深炭棕色) */
    --cat-unified: #4a403a;
}

body.dark-theme {
    --bg-main: #121212;
    --bg-card: #1c1c1c; 
    --white: #262626;   
    --primary: #e0e0e0;
    --text: #b3b3b3;
    --accent: #ffffff;
    
    /* 深色模式對應的高亮統一色 */
    --cat-unified: #bcaaa4;
}

/* =========================================
   🌟 核心語言控制邏輯 (徹底解決 FOUL 閃爍)
========================================= */
html[data-lang="zh"] .lang-content:not(.zh),
html[data-lang="jp"] .lang-content:not(.jp),
html[data-lang="en"] .lang-content:not(.en) {
    display: none !important;
}

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

::selection {
    background-color: var(--primary); 
    color: var(--bg-card); 
}
::-moz-selection { 
    background-color: var(--primary);
    color: var(--bg-card);
}

html { 
    scroll-behavior: smooth; 
    scroll-padding-top: 100px; 
}

@font-face {
    font-family:'Noto Serif TC';
    src:local('Noto Serif TC'),local('Noto Serif TC'),
        url('./public/fonts/Noto Serif TC.woff2') format('woff2');
}

body {
    font-family: 'Inter', 'Hina Mincho', 'Noto Serif TC', 'PingFang TC', 'Microsoft JhengHei', sans-serif;
    background-color: var(--bg-main);
    color: var(--text);
    line-height: 1.6;
    position: relative;
    transition: background-color 0.3s, color 0.3s;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    background-color: var(--bg-main); 
}

html:has(body.dark-theme) {
    background-color: #121212;
}

.lang-content.zh { font-family: 'Noto Serif TC', 'Inter', sans-serif; }
.lang-content.jp { font-family: 'Hina Mincho', 'Noto Sans JP', 'Inter', sans-serif; }
.lang-content.en { font-family: 'Inter', sans-serif; }

.hero-container .lang-content.en, 
.section-card .lang-content.en {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.05em; 
}

.hero-container .lang-content.zh, 
.section-card .lang-content.zh {
    font-family: 'Noto Serif TC', serif; 
}

.hero-container .lang-content.jp, 
.section-card .lang-content.jp {
    font-family: 'Zen Old Mincho', serif; 
}

h4.lang-content.en { font-size: 1.15em; }

/* 🌟 全域內文排版優化 */
.bio-text { 
    font-size: 1.1rem; 
    color: var(--text); 
    margin-bottom: 2.5rem; 
    max-width: 650px; 
    line-height: 1.8; 
    letter-spacing: 0.5px;
    text-align: justify;
    text-justify: inter-ideograph; 
    text-wrap: pretty; /* 現代 CSS 魔法：避免最後一行出現孤立單字 */
}

/* 🌟 修正：英文專屬頂級排版 (靠左對齊、防孤字、微調字元/單字間距) */
.bio-text.lang-content.en { 
    font-size: 1.2rem; /* 微調字體大小以優化折行寬度 */
    line-height: 1.65; 
    text-align: left; /* 強制靠左，符合英文閱讀人體工學 */
    hyphens: none; /* 徹底關閉斷字功能，保持單字完整 */
    letter-spacing: -0.01em; /* 微幅收緊字母間距，讓單字更緊湊 */
    word-spacing: 0.02em; /* 微幅增加單字之間的距離，提升辨識度 */
    max-width: 680px; /* 透過精準的容器寬度限制，強迫文字達到最平順的換行狀態 */
}

.item-detail p.lang-content.en, 
.item-detail .job-title.lang-content.en { font-size: 1.05rem; }
.blog-content .lang-content.en { font-size: 1.1rem; }

body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('./public/noise.svg');
    opacity: 0.04;
    pointer-events: none;
    z-index: 9999;
}

.navbar {
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    padding: 0.8rem 2rem; 
    border-radius: 50px;
    position: fixed;
    top: 20px; 
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    margin: 0; 
    background: rgba(255, 255, 255, 0.75); 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    z-index: 1000;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.shrunk {
    width: 130px !important; 
    max-width: 130px !important; 
    padding: 0.6rem 0 !important; 
    left: calc(100% - 20px);
    transform: translateX(-100%);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    justify-content: center !important; 
}

.navbar .logo { 
    font-family: 'Nabla', system-ui;
    font-weight: 400; 
    font-size: 1.4rem; 
    letter-spacing: 2px; 
    text-transform: uppercase;
    max-width: 200px;
    opacity: 1;
    overflow: hidden;
    white-space: nowrap;
    color: #e69c00; 
    text-shadow: 0px 1px 4px rgba(0, 0, 0, 0.3); 
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.shrunk .logo {
    display: none !important;
}

.navbar.shrunk .nav-links {
    margin: 0 !important; 
    width: 100% !important;
    justify-content: center !important;
}

.navbar.shrunk .nav-controls {
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
    display: flex !important;
    justify-content: center !important;
    gap: 0.8rem !important; 
}

body.dark-theme .navbar {
    background: rgba(40, 40, 40, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
body.dark-theme .navbar.shrunk {
    background: rgba(30, 30, 30, 0.95);
}
body.dark-theme .navbar .logo {
    text-shadow: none; 
    filter: drop-shadow(0px 2px 4px rgba(255, 255, 255, 0.5)); 
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-left: auto;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lang-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.dropdown-btn {
    font-family: 'Noto Sans TC', 'Noto Sans JP', sans-serif;
    background: transparent;
    border: 1px solid var(--primary); 
    padding: 6px 16px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 140px;
    font-weight: 600;
    color: var(--primary);
    font-size: 13px;
    transition: all 0.3s ease;
    white-space: nowrap; 
    overflow: hidden;    
}

.dropdown-btn > span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.flag-icon { 
    width: 18px; 
    height: auto; 
    object-fit: contain; 
    flex-shrink: 0; 
    display: block;
}

.dropdown-btn:hover {
    background: var(--primary);
    color: var(--bg-card);
}

.navbar.shrunk .dropdown-btn #current-lang-text,
.navbar.shrunk .dropdown-btn .fa-caret-down {
    display: none !important;
}

.navbar.shrunk .dropdown-btn {
    padding: 6px !important;
    width: 36px !important;
    min-width: 36px !important; 
    justify-content: center !important;
}

.dropdown-content {
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    position: absolute;
    top: 100%; 
    right: 0;
    background-color: var(--white);
    min-width: 140px;
    box-shadow: 0px 8px 20px rgba(0,0,0,0.1);
    border-radius: 12px;
    overflow: hidden;
    z-index: 100;
    margin-top: 12px;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.3, 1); 
}

body.dark-theme .dropdown-content {
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0px 8px 20px rgba(0,0,0,0.3);
}

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

.dropdown-content a {
    font-family: 'Noto Sans TC', 'Noto Sans JP', sans-serif;
    color: var(--text);
    padding: 12px 16px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    white-space: nowrap;
    transition: background 0.2s;
}

.dropdown-content a:hover {
    background-color: var(--bg-main);
}

.theme-btn {
    background: transparent;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--primary);
    transition: transform 0.3s, color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-btn:hover { transform: scale(1.1); color: var(--accent); }

body.dark-theme .dropdown-btn { border-color: var(--primary); color: var(--primary); }
body.dark-theme .dropdown-btn:hover { background: var(--primary); color: var(--bg-card); }

.dot-nav {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 1000;
}

.dot-nav-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    text-decoration: none;
    height: 30px; 
}

.dot {
    width: 10px;
    height: 10px;
    background-color: var(--primary);
    border-radius: 50%;
    opacity: 0.5;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.3, 1);
}

.dot-label {
    position: absolute;
    right: 25px; 
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--primary);
    opacity: 0;
    visibility: hidden; 
    transform: translateX(10px); 
    transition: all 0.3s cubic-bezier(0.25, 1, 0.3, 1);
    white-space: nowrap;
}

.dot-nav-item:hover .dot,
.dot-nav-item.active .dot {
    opacity: 1;
    transform: scale(1.5); 
}

.dot-nav-item:hover .dot-label,
.dot-nav-item.active .dot-label {
    opacity: 1;
    visibility: visible;
    transform: translateX(0); 
}

.hero-container {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: flex-start;
    padding: 120px 5% 4rem 2%; 
    gap: 10rem; 
    max-width: 1300px; 
    margin: 0 auto;
}

.profile-card {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 24px;
    text-align: center;
    flex: 0 0 380px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.04);
    transform: translateY(0);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.3, 1), box-shadow 0.4s ease, background-color 0.3s;
}

.profile-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 50px rgba(0,0,0,0.12), 0 5px 15px rgba(0,0,0,0.06);
}

.profile-img { 
    width: 180px; 
    height: 180px; 
    border-radius: 50%; 
    object-fit: cover; 
    border: 5px solid var(--white); 
    margin-bottom: 1.5rem; 
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.3, 1), border-color 0.3s; 
}

.profile-card:hover .profile-img {
    transform: scale(1.08) rotate(3deg); 
}

.profile-name { 
    font-family: 'Sassy Frass', cursive; 
    font-size: 4.5rem; 
    font-weight: 400; 
    margin-bottom: 0.5rem; 
    color: var(--primary); 
    line-height: 1;
}

.content-area { 
    flex: 0 1 650px; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; 
}

.main-headline { 
    font-family: 'Playfair Display', serif; 
    font-size: 4.5rem; 
    line-height: 1.15; 
    color: var(--primary); 
    margin-bottom: 2rem; 
    width: 100%;
    display: block;
}

.main-headline div {
    width: 100%;
    display: block;
}

.main-headline span[class^="line-"] {
    display: block !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    line-height: 1.1 !important; 
}

.main-headline .line-1 { text-align: left; padding-left: 5%; }
.main-headline .line-2 { text-align: center; }
.main-headline .line-3 { text-align: right; padding-right: 5%; }

.main-headline .lang-content.zh {
    margin-top: -15px; 
}

.main-headline .lang-content.jp {
    margin-top: 10px; 
}

.main-headline .lang-content.en {
    margin-top: 20px; 
}

.cta-group { 
    display: flex; 
    gap: 1.5rem; 
    justify-content: center; 
    width: 100%;             
}

.btn { 
    padding: 2px 0 0 0; 
    width: 210px; 
    height: 50px; 
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none; 
    border-radius: 24px; 
    font-weight: 700; 
    font-size: 1.05rem; 
    letter-spacing: 1.5px; 
    transition: 0.3s; 
    box-sizing: border-box;
    white-space: nowrap;
}

.btn-primary { background: var(--primary); color: var(--bg-card); border: 2px solid var(--primary); }
.btn-primary:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.2); }
.btn-secondary { border: 2px solid var(--primary); color: var(--primary); }
.btn-secondary:hover { transform: translateY(-5px); background: rgba(0,0,0,0.04); }
body.dark-theme .btn-secondary:hover { background: rgba(255,255,255,0.05); }

.social-icons { display: flex; justify-content: center; gap: 1.5rem; margin-top: 1rem; }
.icon-link { color: var(--primary); font-size: 1.8rem; transition: 0.3s; }
.icon-link:hover { transform: translateY(-3px); color: var(--accent); }

.section-card {
    background: var(--bg-card);
    border-radius: 24px;
    width: 95%; 
    max-width: 1300px; 
    margin: 0 auto 4rem auto;
    padding: 4rem 10%;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.04);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.3, 1), box-shadow 0.4s ease, background-color 0.3s;
}

.section-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 50px rgba(0,0,0,0.12), 0 5px 15px rgba(0,0,0,0.06);
}

body.dark-theme .section-card {
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.2);
}

body.dark-theme .section-card:hover {
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.4), 0 5px 15px rgba(0, 0, 0, 0.3);
}

#credits.section-card { margin-bottom: 2rem; }

.resume-item { margin-bottom: 3rem; }
.resume-item:last-child { margin-bottom: 0; }
.item-detail { margin-bottom: 1.8rem; }
.item-detail:last-child { margin-bottom: 0; }

.item-detail .date { 
    display: inline-block; 
    font-size: 0.9rem; 
    font-weight: 700; 
    color: var(--primary); 
    opacity: 0.7; 
    margin-bottom: 0.4rem; 
    letter-spacing: 0.5px;
}
.item-detail h4 { 
    font-size: 1.25rem; 
    color: var(--primary); 
    margin-bottom: 0.2rem; 
}
.item-detail .job-title, .item-detail p { 
    font-size: 0.95rem; 
    font-weight: 600; 
    color: var(--text); 
    margin-bottom: 0.5rem; 
    opacity: 0.9; 
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 16px;
    margin-top: 1.5rem;
}

.skill-item {
    background-color: var(--bg-main);
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 10px 22px; 
    border-radius: 30px; 
    font-size: 0.95rem;
    font-weight: 600;
    cursor: default;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.3, 1);
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.4;
}

.skill-item:hover {
    transform: translateY(-4px) scale(1.03);
    background-color: var(--primary);
    color: var(--bg-card);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

body.dark-theme .skill-item {
    background-color: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--primary);
}

body.dark-theme .skill-item:hover {
    background-color: var(--primary);
    color: var(--bg-card);
    border-color: var(--primary);
}

.blog-content { max-width: 800px; margin: 0 auto; text-align: center; color: var(--text); }
.section-title { text-align: center; font-size: 2.5rem; color: var(--primary); }
.underline { width: 50px; height: 3px; background: var(--primary); margin: 1rem auto 4rem; }

.credits-content { max-width: 600px; margin: 0 auto; text-align: center; }
.credits-list { list-style: none; padding: 0; color: var(--text); font-family: 'Inter', sans-serif; }
.credits-list li { margin-bottom: 1rem; font-size: 0.95rem; }
.credits-list a { color: var(--primary); text-decoration: none; font-weight: 600; transition: color 0.3s; }
.credits-list a:hover { color: var(--accent); text-decoration: underline; }
.footer { padding: 4rem; text-align: center; color: var(--text); font-size: 0.8rem; transition: background-color 0.3s; }

.main-headline .lang-content.zh, .section-title .lang-content.zh { font-family: 'Noto Serif TC', serif; }
.main-headline .lang-content.jp, .section-title .lang-content.jp { font-family: 'Hina Mincho', serif; }
.main-headline .lang-content.en, .section-title .lang-content.en { font-family: 'Limelight', cursive; font-weight: 400; }

.category-title { 
    color: var(--cat-unified); 
    margin-bottom: 1.5rem; 
    font-size: 1.4rem;
    font-family: 'Inter', 'Noto Sans TC', 'Noto Sans JP', sans-serif !important;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid rgba(74, 64, 58, 0.15); 
}

body.dark-theme .category-title {
    border-bottom: 2px solid rgba(188, 170, 164, 0.15);
}

.btn .lang-content.zh { font-family: 'Noto Sans TC', 'Inter', sans-serif; font-weight: 700; }
.btn .lang-content.jp { font-family: 'Noto Sans JP', 'Inter', sans-serif; font-weight: 700; }
.btn .lang-content.en { font-family: 'Inter', sans-serif; font-weight: 700; }

.icon-link {
    display: inline-block; 
    transition: all 0.3s ease !important;
}

.icon-link svg path {
    transition: fill 0.3s ease !important;
}

.icon-link:hover {
    color: #e69c00 !important; 
    transform: translateY(-4px) !important; 
}

.icon-link:hover svg path {
    fill: #e69c00 !important; 
}

.contact-wrapper {
    display: flex;
    align-items: center;
    justify-content: center; 
    gap: 0.8rem;             
    margin-top: 1.5rem;      
}

.contact-label {
    font-size: 1.15rem !important;
    font-weight: 600 !important;
    color: #2c3e50 !important;
    letter-spacing: 1px !important;
    line-height: 1 !important;
    margin: 0 !important;
    transform: translateY(7px) !important; 
}

.social-icons {
    display: flex;
    align-items: center;     
    gap: 1.2rem;             
}

.social-icons .icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1 !important;
    text-decoration: none;
}

@media (max-width: 992px) {
    .navbar { padding: 1rem 5%; }
    
    .hero-container { 
        flex-direction: column; 
        text-align: center; 
        gap: 3rem; 
        padding-top: 120px; 
        padding-left: 5%; 
        padding-right: 5%; 
    }
    
    .main-headline { 
        font-size: 2.2rem !important; 
        width: 100% !important;
        max-width: 340px !important; 
        margin: 0 auto 1.5rem !important;
        display: flex !important; 
        flex-direction: column !important; 
        gap: 0px !important; 
    }
    
    .main-headline br { display: none !important; }

    .main-headline span[class^="line-"] {
        display: block !important;
        line-height: 1.1 !important; 
        margin: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        width: 100% !important;
    }

    .main-headline .line-1 { padding-left: 15px !important; }
    .main-headline .line-2 { text-align: center !important; }
    .main-headline .line-3 { padding-right: 15px !important; }

    .main-headline .lang-content.zh {
        transform: translateY(-35px) !important; 
        margin-top: 0 !important; 
    }
    
    .main-headline .lang-content.jp {
        transform: translateY(-20px) !important; 
        margin-top: 0 !important;
    }
    
    .main-headline .lang-content.en {
        transform: translateY(-10px) !important; 
        margin-top: 0 !important;
    }
    
    .cta-group { flex-direction: column; align-items: center; width: 100%; gap: 1rem; }
    .btn { width: 100%; max-width: 280px; }
    .dot-nav { display: none; }
    .section-card { padding: 3rem 5%; margin-bottom: 2rem; }
    .icon-link:hover { transform: none !important; } 
    
    .profile-card {
        flex: 1 1 auto;
        width: 100%;
        max-width: 350px; 
        margin: 0 auto;   
        padding: 2.5rem 1.5rem; 
    }
}

@media (max-width: 480px) {
    .navbar { padding: 0.6rem 4%; }
    .navbar .logo { font-size: 1.1rem; letter-spacing: 0px; max-width: 120px; }
    .nav-controls { gap: 16px; } 
    .dropdown-btn { width: 115px; padding: 5px 8px; font-size: 12px; }
    
    .main-headline { font-size: 2.4rem; line-height: 1.3; margin-bottom: 1.5rem; }
    .main-headline .lang-content.en { font-size: 2.1rem; line-height: 1.2; }
    
    #credits.section-card { margin-bottom: 1rem; }
    .footer { padding: 1.5rem 1rem 2rem; }
    .footer p { margin: 0; }
}

.dot-nav {
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.dot-nav.idle-hidden {
    opacity: 0 !important;
    visibility: hidden;
    pointer-events: none; 
}

body.dark-theme .contact-label {
    color: var(--primary) !important; 
}

body.dark-theme .social-icons .icon-link {
    color: var(--accent) !important; 
}

body.dark-theme .social-icons .icon-link:hover {
    color: #e69c00 !important; 
}

.square-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px !important; 
    height: 28px !important; 
    background-color: var(--primary); 
    color: var(--bg-card) !important; 
    border-radius: 6px; 
    font-size: 1.25rem !important; 
    text-decoration: none;
    transition: all 0.3s ease !important;
}

.square-btn:hover {
    background-color: #e69c00 !important;
    color: #ffffff !important;
    transform: translateY(-4px) !important;
}

body.dark-theme .square-btn {
    background-color: var(--accent); 
    color: var(--bg-card) !important;
}
body.dark-theme .square-btn:hover {
    background-color: #e69c00 !important;
    color: #ffffff !important;
}

*:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
    border-radius: 4px;
}

.reveal-element {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.3, 1);
}
.reveal-element.visible {
    opacity: 1;
    transform: translateY(0);
}

@media print {
    .navbar, .dot-nav, .cta-group, body::before { display: none !important; }
    body, html { background: #ffffff !important; color: #000000 !important; }
    .profile-card, .section-card { 
        background: #ffffff !important; 
        box-shadow: none !important; 
        border: none !important; 
        transform: none !important; 
        padding: 0 !important; 
        margin-bottom: 2rem !important;
        page-break-inside: avoid; 
    }
    * { color: #000000 !important; }
    .main-headline .lang-content { margin-top: 0 !important; transform: none !important; }
}

@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal-element {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}
