:root {
    --bg-color: #f4f7f9;
    --card-bg: #ffffff;
    --text-main: #222222;
    --text-sub: #777777;
    --company-color: #555555;
    --lanyard-color: #0056b3;
    --shadow: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --text-main: #e0e0e0;
    --text-sub: #999999;
    --company-color: #bbbbbb;
    --shadow: rgba(0, 0, 0, 0.4);
}

body {
    background-color: var(--bg-color);
    margin: 0;
    display: flex;
    justify-content: center;
    height: 100vh;
    overflow: hidden;
    transition: background-color 0.5s ease;
}

.container { padding-top: 50px; }

.pendulum-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    transform-origin: center -400px; 
    position: relative;
    will-change: transform;
}

.lanyard {
    width: 6px;
    height: 1000px;
    background: linear-gradient(to top, #003d80, var(--lanyard-color));
    position: absolute;
    bottom: 100%;
}

.id-card {
    width: 280px;
    height: 420px;
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 15px 35px var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(0,0,0,0.05);
}

.profile-img { 
    width: 130px; 
    height: 130px; 
    background: #fff; 
    border-radius: 50%; 
    margin: 25px 0; 
    overflow: hidden; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    border: 4px solid var(--lanyard-color); 
}

.profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.info {
    text-align: center;
    width: 100%;
}

.name { color: var(--text-main); font-size: 26px; margin: 0; }
.position { color: var(--lanyard-color); font-weight: 600; margin-top: 5px; }
.company { color: var(--company-color); margin: 5px 0; font-size: 16px; }

.hole { width: 35px; height: 8px; background: #333; border-radius: 4px; margin-top: 15px; }
.social-links { margin-top: auto; margin-bottom: 35px; display: flex; gap: 20px; }
.icon-link { font-size: 22px; color: var(--text-sub); }

.theme-btn {
    position: absolute; top: 20px; right: 20px;
    width: 45px; height: 45px; border-radius: 50%; border: none;
    cursor: pointer; background: var(--card-bg); color: var(--text-main);
    box-shadow: 0 4px 12px var(--shadow); z-index: 10;
}