* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}

body {
    background: #f0f2f5;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    padding: 20px;
}

body.dark-mode {
    background: #0d0d0d;
}

body.dark-mode .card {
    background: #1a1a1a;
    border-color: #2a2a2a;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

body.dark-mode h1 {
    color: #ffffff;
}

body.dark-mode .role {
    color: #8888aa;
}

body.dark-mode .info span:first-child,
body.dark-mode .info span:last-child {
    background: #2a2a3a;
    color: #aaaacc;
    border-color: #3a3a4a;
}

body.dark-mode .about {
    background: #222233;
    border-left-color: #667eea;
}

body.dark-mode .about p {
    color: #ccd;
}

body.dark-mode .stack span {
    background: #2a2a3a;
    color: #aaaacc;
    border-color: #3a3a4a;
}

body.dark-mode .email-btn {
    background: #667eea;
}

body.dark-mode .email-btn:hover {
    background: #5566cc;
}

body.dark-mode .socials a {
    background: #2a2a3a;
    color: #aaaacc;
}

body.dark-mode .socials a:hover {
    background: #3a3a4a;
}

body.dark-mode .credit {
    color: #555577;
}

body.dark-mode .theme-btn {
    background: #2a2a3a;
    color: #ffdd44;
}

body.dark-mode .music-btn {
    background: #2a2a3a;
    color: #66ff66;
}

.container {
    width: 100%;
    max-width: 420px;
}

.card {
    background: #ffffff;
    border-radius: 24px;
    padding: 40px 32px;
    text-align: center;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeUp 0.6s ease-out;
}

@keyframes fadeUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
}

.profile-wrapper {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.profile-wrapper img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ffffff;
}

body.dark-mode .profile-wrapper img {
    border-color: #1a1a1a;
}

h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.role {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 16px;
    font-weight: 400;
}

.info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 16px;
}

.info span:first-child,
.info span:last-child {
    background: #f0f2f5;
    padding: 4px 14px;
    border-radius: 12px;
    color: #555;
}

.about {
    margin-bottom: 16px;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 3px solid #667eea;
}

.about p {
    font-size: 0.85rem;
    color: #444;
    line-height: 1.5;
    font-weight: 400;
}

.stack {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.stack span {
    background: #eef0f5;
    color: #333;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    border: 1px solid #e0e2e8;
}

.email-btn {
    display: inline-block;
    padding: 10px 32px;
    background: #1a1a2e;
    color: #ffffff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    margin-bottom: 24px;
}

.email-btn:hover {
    background: #2d2d44;
    transform: scale(1.03);
}

.socials {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.socials a {
    padding: 8px 20px;
    background: #f0f2f5;
    color: #333;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.socials a:hover {
    background: #e4e6ea;
    transform: translateY(-2px);
}

.credit {
    font-size: 0.6rem;
    color: #aaa;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.credit span {
    opacity: 0.7;
}

.theme-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: #ffffff;
    color: #1a1a2e;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 100;
}

.theme-btn:hover {
    transform: scale(1.1);
}

.music-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: #ffffff;
    color: #1a1a2e;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 100;
}

.music-btn:hover {
    transform: scale(1.1);
}

.music-btn.playing {
    background: #667eea;
    color: #ffffff;
}

body.dark-mode .music-btn.playing {
    background: #667eea;
    color: #ffffff;
}

@media (max-width: 480px) {
    .card {
        padding: 30px 20px;
    }
    h1 {
        font-size: 1.2rem;
    }
    .socials a {
        padding: 6px 14px;
        font-size: 0.7rem;
    }
    .stack span {
        font-size: 0.65rem;
        padding: 4px 10px;
    }
    .theme-btn,
    .music-btn {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }
    .theme-btn {
        top: 12px;
        right: 12px;
    }
    .music-btn {
        bottom: 12px;
        right: 12px;
    }
}