* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: #f5f5f5;
    --card-bg: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --border-color: #e0e0e0;
    --pink-border: #ff6b9d;
    --green-dot: #4caf50;
    --code-bg: #f8f8f8;
    --social-bg: #f0f0f0;
}

[data-theme="dark"] {
    --bg-color: #1a1a1a;
    --card-bg: #2d2d2d;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --border-color: #404040;
    --code-bg: #1e1e1e;
    --social-bg: #3a3a3a;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, var(--bg-color) 0%, #e8e8e8 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    transition: background 0.3s ease;
    position: relative;
    overflow-x: hidden;
}

/* Video Background */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    pointer-events: none;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

[data-theme="dark"] .video-overlay {
    background: rgba(0, 0, 0, 0.6);
}

/* Animated Background Particles */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 107, 157, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(156, 89, 182, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(39, 174, 96, 0.1) 0%, transparent 50%);
    animation: backgroundMove 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes backgroundMove {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.container {
    position: relative;
    width: 100%;
    max-width: 600px;
    z-index: 1;
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dark-mode-toggle {
    position: absolute;
    top: -60px;
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-primary);
    z-index: 10;
    animation: rotateIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s both;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-90deg) scale(0.8);
    }
    to {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
}

.dark-mode-toggle:hover {
    transform: scale(1.08) rotate(8deg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, var(--card-bg) 0%, var(--border-color) 100%);
}

.dark-mode-toggle:active {
    transform: scale(1.05) rotate(5deg);
}

.music-toggle {
    position: absolute;
    top: -60px;
    right: 60px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-primary);
    z-index: 10;
    animation: rotateIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s both;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.music-toggle:hover {
    transform: scale(1.08) rotate(5deg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, var(--card-bg) 0%, var(--border-color) 100%);
    color: #ff6b9d;
}

.music-toggle:active {
    transform: scale(1.05) rotate(3deg);
}

.music-toggle svg {
    width: 20px;
    height: 20px;
}

.profile-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: cardSlideIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

@keyframes cardSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.profile-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 107, 157, 0.1),
        transparent
    );
    animation: shimmer 3s infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.profile-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
}

.profile-picture {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    border-radius: 50%;
    border: 4px solid var(--pink-border);
    padding: 3px;
    background: var(--card-bg);
    overflow: hidden;
    position: relative;
    animation: profilePicturePop 1s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s both;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes profilePicturePop {
    from {
        opacity: 0;
        transform: scale(0.8) rotate(-10deg);
    }
    50% {
        transform: scale(1.05) rotate(2deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.profile-picture::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ff6b9d, #9b59b6, #3498db, #ff6b9d);
    background-size: 400% 400%;
    animation: borderRotate 3s linear infinite;
    z-index: -1;
}

@keyframes borderRotate {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.profile-picture:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.3);
}

.profile-picture:hover::before {
    animation: borderRotate 1s linear infinite;
}

.profile-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.3s ease;
    animation: imageFadeIn 0.5s ease-out 0.6s both;
}

@keyframes imageFadeIn {
    from {
        opacity: 0;
        filter: blur(10px);
    }
    to {
        opacity: 1;
        filter: blur(0);
    }
}

.profile-picture:hover img {
    transform: scale(1.1);
}

.name {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    animation: nameSlideIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

@keyframes nameSlideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.name::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff6b9d, #9b59b6);
    animation: underlineExpand 1s ease-out 1.2s forwards;
    border-radius: 2px;
}

@keyframes underlineExpand {
    to {
        width: 100%;
    }
}

.username {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    animation: usernameFadeIn 0.9s cubic-bezier(0.4, 0, 0.2, 1) 0.7s both;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes usernameFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.username:hover {
    color: var(--text-primary);
    transform: scale(1.02);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--social-bg);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 12px;
    animation: badgeBounce 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) 0.9s both;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

@keyframes badgeBounce {
    0% {
        opacity: 0;
        transform: scale(0) translateY(-20px);
    }
    50% {
        transform: scale(1.1) translateY(0);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.status-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 3px 10px rgba(76, 175, 80, 0.25);
    background: linear-gradient(135deg, var(--social-bg) 0%, rgba(76, 175, 80, 0.08) 100%);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--green-dot);
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}

.activity {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    color: var(--text-primary);
    font-size: 14px;
    animation: activitySlideIn 0.9s cubic-bezier(0.4, 0, 0.2, 1) 1s both;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes activitySlideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.activity:hover {
    transform: scale(1.03);
    color: #007ACC;
}

.vscode-icon {
    width: 20px;
    height: 20px;
    animation: iconRotate 3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes iconRotate {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-3deg);
    }
    75% {
        transform: rotate(3deg);
    }
}

.activity:hover .vscode-icon {
    animation: iconSpin 0.5s ease-in-out;
}

@keyframes iconSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.bio {
    color: var(--text-primary);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 30px;
    animation: bioFadeIn 0.9s cubic-bezier(0.4, 0, 0.2, 1) 1.1s both;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 10px;
    border-radius: 8px;
}

@keyframes bioFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bio:hover {
    background: var(--social-bg);
    transform: translateX(3px);
    padding-left: 14px;
}

.code-section {
    text-align: left;
    margin-bottom: 30px;
    animation: codeSectionFadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) 1.2s both;
}

@keyframes codeSectionFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-title {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 12px;
    text-transform: lowercase;
    animation: titleGlow 2s ease-in-out infinite;
    transition: all 0.3s ease;
}

@keyframes titleGlow {
    0%, 100% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
}

.section-title:hover {
    color: var(--text-primary);
    transform: translateX(5px);
}

.code-block {
    background: var(--code-bg);
    border-radius: 8px;
    padding: 16px;
    overflow-x: auto;
    border: 1px solid var(--border-color);
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.code-block:hover {
    border-color: var(--pink-border);
    box-shadow: 0 3px 12px rgba(255, 107, 157, 0.15);
    transform: translateY(-1px);
}

.code-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #ff6b9d, #9b59b6);
    border-radius: 8px 0 0 8px;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.code-block:hover::before {
    opacity: 1;
}

.code-block pre {
    margin: 0;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    position: relative;
}

.code-block code {
    color: var(--text-primary);
    white-space: pre;
}

.code-block .keyword {
    color: #9b59b6;
    font-weight: 600;
}

.code-block .variable {
    color: var(--text-primary);
    font-weight: 500;
}

.code-block .property {
    color: var(--text-primary);
}

.code-block .string {
    color: #27ae60;
}

.code-block .cursor {
    color: var(--text-primary);
    animation: blink 1s infinite;
    font-weight: bold;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 30px;
    animation: socialIconsFadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) 1.3s both;
}

@keyframes socialIconsFadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.social-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--social-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 107, 157, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.social-icon:hover::before {
    width: 100%;
    height: 100%;
}

.social-icon:hover {
    transform: translateY(-3px) scale(1.06) rotate(3deg);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    color: var(--text-primary);
    border-color: var(--pink-border);
    background: linear-gradient(135deg, var(--social-bg) 0%, rgba(255, 107, 157, 0.08) 100%);
}

.social-icon:active {
    transform: translateY(-2px) scale(1.05);
}

.social-icon svg {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.social-icon:hover svg {
    transform: scale(1.2) rotate(-5deg);
}

/* Stagger animation for social icons */
.social-icon:nth-child(1) {
    animation-delay: 1.3s;
}

.social-icon:nth-child(2) {
    animation-delay: 1.4s;
}

.social-icon:nth-child(3) {
    animation-delay: 1.5s;
}

@media (max-width: 600px) {
    .profile-card {
        padding: 30px 20px;
    }
    
    .name {
        font-size: 24px;
    }
    
    .profile-picture {
        width: 120px;
        height: 120px;
    }
}