/* Import modern fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Reset และ Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #000;
    color: #ffffff;
    overflow-x: hidden;
    height: 100vh;
}

/* Video Background */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

/* Container หลัก */
.container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    z-index: 2;
}


.profile-card {
    background: rgba(255, 255, 255, 0.05); 
    -webkit-backdrop-filter: blur(20px);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    text-align: center;
    max-width: 420px;
    width: 100%;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.37),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.08) 0%, 
        rgba(255, 255, 255, 0.03) 50%, 
        rgba(255, 255, 255, 0.01) 100%);
    border-radius: 30px;
    z-index: -1;
}

.profile-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 16px 64px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.1); 
}


.music-toggle {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(5px);
}
.music-toggle:hover {
    background: rgba(0, 255, 153, 0.15);
    transform: scale(1.1);
    border-color: rgba(0, 255, 153, 0.3);
}


.avatar-container {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid rgba(0, 255, 153, 0.6);
    background-image: url("source/avatar.png"); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 
        0 0 30px rgba(0, 255, 153, 0.4),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.avatar:hover {
    transform: scale(1.05);
    box-shadow: 
        0 0 40px rgba(0, 255, 153, 0.6),
        inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    border-color: rgba(0, 255, 153, 0.8);
}


.status-indicator {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: #00ff99;
    border-radius: 50%;
    border: 3px solid rgba(0, 0, 0, 0.5);
    animation: pulse 2s infinite;
    box-shadow: 0 0 15px rgba(0, 255, 153, 0.6);
}

@keyframes pulse {
    0% { 
        box-shadow: 0 0 15px rgba(0, 255, 153, 0.6), 0 0 0 0 rgba(0, 255, 153, 0.7); 
    }
    70% { 
        box-shadow: 0 0 15px rgba(0, 255, 153, 0.6), 0 0 0 10px rgba(0, 255, 153, 0); 
    }
    100% { 
        box-shadow: 0 0 15px rgba(0, 255, 153, 0.6), 0 0 0 0 rgba(0, 255, 153, 0); 
    }
}


.username {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #00ff99, #c084fc, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
    text-shadow: 0 0 30px rgba(0, 255, 153, 0.3);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}


.status-text {
    color: #00ff99;
    font-size: 1.1rem;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #00ff99;
    border-radius: 50%;
    animation: blink 1.5s infinite;
    box-shadow: 0 0 8px rgba(0, 255, 153, 0.6);
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

/* Social Icons */
.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 100%);
    border-radius: 15px;
    z-index: -1;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 255, 153, 0.3);
    background: rgba(0, 255, 153, 0.15);
    border-color: rgba(0, 255, 153, 0.3);
}

.social-link.discord:hover {
    box-shadow: 0 10px 25px rgba(114, 137, 218, 0.4);
    background: rgba(114, 137, 218, 0.15);
    border-color: rgba(114, 137, 218, 0.3);
}

.social-link.github:hover {
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.448);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.social-link.instagram:hover {
    box-shadow: 0 10px 25px rgba(240, 50, 113, 0.4);
    background: rgba(225, 48, 108, 0.15);
    border-color: rgba(225, 48, 108, 0.3);
}

.social-link.itch:hover {
    box-shadow: 0 10px 25px rgba(249, 0, 83, 0.4);
    background: rgba(225, 48, 108, 0.15);
    border-color: rgba(225, 48, 108, 0.3);
}


.skills-section {
    margin-bottom: 20px;
}

.skills-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #00ff99;
    margin-bottom: 15px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.skill-tag {
    background: rgba(0, 255, 153, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 153, 0.3);
    color: #00ff99;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.skill-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(0, 255, 153, 0.05) 0%, 
        rgba(0, 255, 153, 0.02) 100%);
    border-radius: 20px;
    z-index: -1;
}

.skill-tag:hover {
    background: rgba(0, 255, 153, 0.2);
    border-color: rgba(0, 255, 153, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 255, 153, 0.3);
}


.stats-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 20px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 15px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.05) 0%, 
        rgba(255, 255, 255, 0.02) 100%);
    border-radius: 15px;
    z-index: -1;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.25);
}

.stat-value {
    font-size: 1.2rem;
    font-weight: 600;
    color: #00ff99;
    margin-bottom: 5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile-card {
        padding: 30px 20px;
        margin: 10px;
    }
    
    .username {
        font-size: 2rem;
    }
    
    .avatar {
        width: 100px;
        height: 100px;
    }
    
    .social-links {
        gap: 15px;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .username {
        font-size: 1.8rem;
    }
    
    .skills-container {
        justify-content: center;
    }
    
    .skill-tag {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}

/* Floating Animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.profile-card {
    animation: float 6s ease-in-out infinite;
}

/* Loading Animation */
.loading {
    opacity: 0;
    transform: translateY(50px);
}

.loaded {
    opacity: 1;
    transform: translateY(0);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Keyframes for ripple and pulse animations */
@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}