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

:root {
    --primary-color: #0cebeb;
    --secondary-color: #20e3b2;
    --accent-color: #29ffc6;
    --dark-bg: #121212;
    --card-bg: rgba(30, 30, 30, 0.9);
    --text-color: #ffffff;
    --profile-text-color: #000000;
}

body {
    font-family: 'Montserrat', 'Noto Sans TC', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.tech-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.circuit-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, rgba(12, 235, 235, 0.1) 1px, transparent 1px) 0 0,
        linear-gradient(rgba(12, 235, 235, 0.1) 1px, transparent 1px) 0 0;
    background-size: 40px 40px;
}

.tech-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.tech-particles::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(var(--primary-color) 1px, transparent 1px),
        radial-gradient(var(--secondary-color) 1px, transparent 1px);
    background-size: 60px 60px;
    background-position: 0 0, 30px 30px;
    opacity: 0.3;
    animation: particleFloat 20s infinite linear;
}

@keyframes particleFloat {
    0% {
        background-position: 0 0, 30px 30px;
    }
    100% {
        background-position: 60px 60px, 90px 90px;
    }
}

.vcard-container {
    background-color: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5),
                0 0 20px rgba(12, 235, 235, 0.3);
    width: 100%;
    max-width: 400px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(12, 235, 235, 0.2);
    animation: glowPulse 4s infinite alternate;
    position: relative;
}

@keyframes glowPulse {
    0% {
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5),
                    0 0 20px rgba(12, 235, 235, 0.3);
    }
    100% {
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5),
                    0 0 30px rgba(41, 255, 198, 0.5);
    }
}

.profile-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--profile-text-color);
    text-align: center;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}

.profile-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        repeating-linear-gradient(
            transparent 0px,
            transparent 10px,
            rgba(255, 255, 255, 0.03) 10px,
            rgba(255, 255, 255, 0.03) 11px
        );
    transform: rotate(45deg);
    animation: scanline 10s linear infinite;
}

@keyframes scanline {
    0% {
        transform: translateY(-50%) rotate(45deg);
    }
    100% {
        transform: translateY(50%) rotate(45deg);
    }
}

.tech-icon {
    font-size: 40px;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    color: var(--profile-text-color);
}

.tech-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    border: 2px solid rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

.name {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    color: var(--profile-text-color);
}

.title {
    font-size: 16px;
    font-weight: 400;
    opacity: 0.9;
    margin-bottom: 5px;
    color: var(--profile-text-color);
}

.company {
    font-size: 14px;
    opacity: 0.8;
    color: var(--profile-text-color);
}

.contact-section {
    padding: 20px;
    background: rgba(20, 20, 20, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.contact-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 250px;
}

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

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: inherit;
}

.contact-info {
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-item i {
    font-size: 18px;
    width: 30px;
    color: var(--primary-color);
}

.contact-item p {
    margin-left: 10px;
}

.contact-actions {
    display: flex;
    margin-top: 10px;
    padding: 10px;
    background-color: rgba(30, 30, 30, 0.8);
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid rgba(12, 235, 235, 0.2);
    width: 100%;
}

.hidden {
    display: none;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color);
    flex: 1;
    transition: all 0.2s ease;
}

.action-btn:hover {
    background-color: rgba(12, 235, 235, 0.2);
}

.call-btn i {
    color: var(--primary-color);
}

.whatsapp-btn i {
    color: var(--accent-color);
}

.action-btn span {
    font-size: 12px;
    margin-top: 5px;
}

.action-section {
    display: flex;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(20, 20, 20, 0.7);
}

.action-button {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--profile-text-color);
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 5px;
    position: relative;
    overflow: hidden;
}

.action-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.action-button:hover::before {
    left: 100%;
}

.action-button:hover {
    box-shadow: 0 0 15px rgba(12, 235, 235, 0.7);
    transform: translateY(-2px);
}

.success-animation {
    animation: successPulse 1s;
}

@keyframes successPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
        background: linear-gradient(135deg, #20e3b2, #29ffc6);
    }
    100% {
        transform: scale(1);
    }
}

.action-button i {
    margin-right: 8px;
    color: var(--profile-text-color);
}

.tech-footer {
    padding: 15px;
    text-align: center;
    background: rgba(15, 15, 15, 0.9);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.typing-effect {
    display: inline-block;
    font-family: monospace;
    font-size: 14px;
    color: var(--primary-color);
}

.typed-text {
    display: inline-block;
}

.cursor {
    display: inline-block;
    width: 3px;
    background-color: var(--primary-color);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@media (max-width: 480px) {
    .vcard-container {
        max-width: 100%;
    }
    
    .profile-section {
        padding: 35px 15px;
    }
    
    .name {
        font-size: 26px;
    }
    
    .action-button {
        padding: 10px;
    }
}

/* Language Switcher Styles */
.language-switcher {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    display: flex;
    gap: 5px;
}

.lang-btn {
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-color);
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    padding: 3px 8px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background-color: rgba(12, 235, 235, 0.2);
}

.lang-btn.active {
    background-color: var(--primary-color);
    color: var(--profile-text-color);
    font-weight: 600;
} 