@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --dark-gradient: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    --text-primary: #ffffff;
    --text-secondary: #e2e8f0;
    --text-muted: #94a3b8;
    --surface-glass: rgba(255, 255, 255, 0.1);
    --surface-dark: rgba(0, 0, 0, 0.2);
    --border-glass: rgba(255, 255, 255, 0.2);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --shadow-glow: 0 0 40px rgba(102, 126, 234, 0.4);
    --shadow-card: 0 20px 40px rgba(0, 0, 0, 0.1);
    --delay: .5s;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: var(--font);
    background: var(--dark-gradient);
    position: relative;
    overflow-x: hidden;
    opacity: 0;
    animation: 1.5s cubic-bezier(0.4, 0, 0.2, 1) var(--delay) 1 fadeInUp;
    animation-fill-mode: forwards;
}

/* Removed body::before gradient overlay for cleaner look */

#profilePicture {
    position: relative;
    width: 140px;
    height: 140px;
    display: block;
    margin: 60px auto 30px;
    border-radius: 50%;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--primary-gradient);
    padding: 4px;
    box-shadow: var(--shadow-glow);
    animation: 
        2s ease-in-out infinite alternate pulseGlow,
        6s ease-in-out infinite liquidMorph,
        4s ease-in-out infinite breathe;
}

#profilePicture::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: conic-gradient(from 0deg, #667eea, #764ba2, #f093fb, #f5576c, #4facfe, #00f2fe, #667eea);
    border-radius: 50%;
    z-index: -1;
    animation: 3s linear infinite spin;
    opacity: 0.7;
}

#profilePicture::after {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    background: conic-gradient(from 180deg, #667eea, #764ba2, #f093fb, #f5576c, #4facfe, #00f2fe, #667eea);
    border-radius: 50%;
    z-index: -2;
    animation: 4s linear infinite reverse spin;
    opacity: 0.3;
}

#profilePicture:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 30px 60px rgba(102, 126, 234, 0.6);
}

#profilePicture img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    transition: all 0.4s ease;
}

#userName {
    color: var(--text-primary);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    display: block;
    font-family: var(--font);
    width: 100%;
    text-align: center;
    text-decoration: none;
    margin-bottom: 10px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: 
        2s ease-in-out infinite alternate shimmer,
        3s ease-in-out infinite textGlow;
    letter-spacing: -0.02em;
    position: relative;
}

#userName::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #ff6b9d, #c471f5, #12c2e9, #c471ed, #ff6b9d);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: rainbowText 4s ease-in-out infinite;
    z-index: -1;
    opacity: 0.3;
}

#links {
    max-width: 480px;
    width: 90%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 40px auto;
    padding: 0 20px;
}

.link {
    position: relative;
    background: var(--surface-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    border-radius: 24px;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px 24px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-tap-highlight-color: transparent;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    letter-spacing: -0.01em;
    animation: breathe 6s ease-in-out infinite;
}

.link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.link::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(102, 126, 234, 0.15), transparent);
    animation: 6s linear infinite spin;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -2;
}

.link:hover::after {
    opacity: 1;
}

.link:hover::before {
    left: 0;
}

.link:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(102, 126, 234, 0.25);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Enhanced individual link hover effects with soft shadows */
.link:nth-child(1):hover { 
    box-shadow: 0 25px 50px rgba(74, 74, 74, 0.3);
}
.link:nth-child(2):hover { 
    box-shadow: 0 25px 50px rgba(90, 127, 184, 0.3);
}
.link:nth-child(3):hover { 
    box-shadow: 0 25px 50px rgba(123, 156, 232, 0.3);
}
.link:nth-child(4):hover { 
    box-shadow: 0 25px 50px rgba(232, 164, 200, 0.3);
}
.link:nth-child(5):hover { 
    box-shadow: 0 25px 50px rgba(123, 179, 240, 0.3);
}
.link:nth-child(6):hover { 
    box-shadow: 0 25px 50px rgba(126, 184, 146, 0.3);
}
.link:nth-child(7):hover { 
    box-shadow: 0 25px 50px rgba(133, 212, 166, 0.3);
}

.link:active {
    transform: translateY(-4px) scale(1.01);
}

.link i {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.link:hover i {
    transform: scale(1.2) rotate(5deg);
}

/* Individual link colors - Soft & Beautiful */
.link:nth-child(1):hover::before { 
    background: linear-gradient(135deg, #4a4a4a 0%, #2d2d2d 100%); 
}
.link:nth-child(2):hover::before { 
    background: linear-gradient(135deg, #5a7fb8 0%, #4a6b9a 100%); 
}
.link:nth-child(3):hover::before { 
    background: linear-gradient(135deg, #7b9ce8 0%, #6a8bd6 100%); 
}
.link:nth-child(4):hover::before { 
    background: linear-gradient(135deg, #e8a4c8 0%, #d896b8 100%); 
}
.link:nth-child(5):hover::before { 
    background: linear-gradient(135deg, #7bb3f0 0%, #69a4e0 100%); 
}
.link:nth-child(6):hover::before { 
    background: linear-gradient(135deg, #7eb892 0%, #6ca680 100%); 
}
.link:nth-child(7):hover::before { 
    background: linear-gradient(135deg, #85d4a6 0%, #73c294 100%); 
}

#hashtag {
    position: relative;
    padding: 40px 0 60px;
    color: var(--text-secondary);
    font-size: 1.2rem;
    font-weight: 500;
    display: block;
    font-family: var(--font);
    width: 100%;
    text-align: center;
    background: var(--accent-gradient);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: 3s ease-in-out infinite gradientShift;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/*-------------------------Modern Animations-----------------------*/
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(60px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 30px rgba(102, 126, 234, 0.4);
    }
    100% {
        box-shadow: 0 0 60px rgba(102, 126, 234, 0.8);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes floatingShapes {
    0%, 100% {
        transform: translateY(0px) rotate(0deg) scale(1);
        opacity: 0.1;
    }
    25% {
        transform: translateY(-100px) rotate(90deg) scale(1.1);
        opacity: 0.2;
    }
    50% {
        transform: translateY(-150px) rotate(180deg) scale(0.9);
        opacity: 0.15;
    }
    75% {
        transform: translateY(-80px) rotate(270deg) scale(1.2);
        opacity: 0.25;
    }
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) translateX(0px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(100px) rotate(360deg);
        opacity: 0;
    }
}

@keyframes wavyBorder {
    0%, 100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
        transform: rotate(0deg);
    }
    25% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
        transform: rotate(90deg);
    }
    50% {
        border-radius: 70% 30% 40% 60% / 30% 70% 60% 40%;
        transform: rotate(180deg);
    }
    75% {
        border-radius: 40% 70% 60% 30% / 70% 40% 50% 30%;
        transform: rotate(270deg);
    }
}

@keyframes glowPulse {
    0%, 100% {
        box-shadow: 
            0 0 20px rgba(102, 126, 234, 0.2),
            0 0 40px rgba(102, 126, 234, 0.1),
            0 0 60px rgba(102, 126, 234, 0.05);
    }
    50% {
        box-shadow: 
            0 0 30px rgba(102, 126, 234, 0.4),
            0 0 60px rgba(102, 126, 234, 0.2),
            0 0 90px rgba(102, 126, 234, 0.1);
    }
}

@keyframes textGlow {
    0%, 100% {
        text-shadow: 
            0 0 10px rgba(102, 126, 234, 0.5),
            0 0 20px rgba(102, 126, 234, 0.3),
            0 0 30px rgba(102, 126, 234, 0.1);
    }
    50% {
        text-shadow: 
            0 0 20px rgba(102, 126, 234, 0.8),
            0 0 40px rgba(102, 126, 234, 0.5),
            0 0 60px rgba(102, 126, 234, 0.3);
    }
}

@keyframes breathe {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(1.05) rotate(2deg);
    }
}

@keyframes liquidMorph {
    0%, 100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
    20% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }
    40% {
        border-radius: 70% 30% 40% 60% / 30% 70% 60% 40%;
    }
    60% {
        border-radius: 40% 70% 60% 30% / 70% 40% 50% 30%;
    }
    80% {
        border-radius: 50% 50% 80% 20% / 80% 20% 50% 50%;
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes rainbowText {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes magicSparkle {
    0% {
        opacity: 0;
        transform: scale(0) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1) rotate(180deg);
    }
    100% {
        opacity: 0;
        transform: scale(0) rotate(360deg);
    }
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

@keyframes animStar {
    from {
        transform: translateY(0px);
    }
    to {
        transform: translateY(-2000px);
    }
}

/*-------------------------Enhanced Modern Popup------------------------*/
.overlay {
    display: none;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 1000;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeIn 0.4s ease-out forwards;
}

.popup-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.popup {
    position: relative;
    display: flex;
    flex-direction: column;
    max-width: 600px;
    width: 95%;
    max-height: 90vh;
    margin: 20px;
    background: var(--surface-glass);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 
        0 40px 100px rgba(0, 0, 0, 0.4),
        0 0 50px rgba(102, 126, 234, 0.2);
    transform: scale(0.8) translateY(50px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: popupSlideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.popup-photo {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: 24px 24px 0 0;
    background: linear-gradient(45deg, var(--primary-gradient));
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(1.05) contrast(1.1);
}

.popup-photo:hover img {
    transform: scale(1.08);
}

.popup-content {
    padding: 32px;
    overflow-y: auto;
}

.popup-title {
    color: var(--text-primary);
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 20px 0;
    text-align: center;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s ease-in-out infinite;
}

.popup-quote {
    font-family: var(--font);
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-secondary);
    text-align: justify;
    font-size: 1rem;
    margin-bottom: 24px;
    letter-spacing: 0.3px;
}

.popup-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
}

.skill-tag {
    background: var(--surface-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out forwards;
}

.skill-tag:hover {
    background: var(--primary-gradient);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.popup-close {
    position: absolute;
    right: 16px;
    top: 16px;
    width: 40px;
    height: 40px;
    font-size: 24px;
    font-weight: 300;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    z-index: 1001;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: all 0.3s ease;
    line-height: 1;
}

.popup-close:hover {
    background: rgba(255, 50, 50, 0.8);
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 5px 15px rgba(255, 50, 50, 0.4);
}

/* Animation keyframes for popup */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes popupSlideIn {
    0% {
        transform: scale(0.8) translateY(50px);
        opacity: 0;
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/*-----------------------Enhanced Stellar Background-----------------------*/
.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

/* Floating geometric shapes */
.geometric-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.shape {
    position: absolute;
    opacity: 0.1;
    animation: floatingShapes 20s ease-in-out infinite;
}

.shape:nth-child(1) {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 50%;
    top: 10%;
    left: 10%;
    animation-delay: -2s;
}

.shape:nth-child(2) {
    width: 120px;
    height: 120px;
    background: linear-gradient(45deg, #f093fb, #f5576c);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    top: 60%;
    right: 10%;
    animation-delay: -8s;
}

.shape:nth-child(3) {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #4facfe, #00f2fe);
    transform: rotate(45deg);
    bottom: 20%;
    left: 20%;
    animation-delay: -14s;
}

.shape:nth-child(4) {
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    top: 30%;
    right: 30%;
    animation-delay: -5s;
}

.shape:nth-child(5) {
    width: 90px;
    height: 90px;
    background: linear-gradient(45deg, #f093fb, #f5576c);
    border-radius: 50%;
    bottom: 40%;
    right: 20%;
    animation-delay: -11s;
}

/* Particle system */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, #667eea 0%, transparent 70%);
    border-radius: 50%;
    animation: particleFloat 15s linear infinite;
}

.particle:nth-child(odd) {
    background: radial-gradient(circle, #f093fb 0%, transparent 70%);
    animation-duration: 20s;
}

.particle:nth-child(3n) {
    background: radial-gradient(circle, #4facfe 0%, transparent 70%);
    animation-duration: 25s;
}

#stars1, #stars2, #stars3 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#stars1 {
    background: transparent;
    animation: 
        animStar 150s linear infinite,
        twinkle 4s ease-in-out infinite;
}

/* Enhanced stellar animations */
#stars1:before {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: #fff;
    animation: twinkle 2s ease-in-out infinite;
    box-shadow: 
        25px 25px 0 0 rgba(255,255,255,0.9), 50px 75px 0 0 rgba(255,255,255,0.7),
        75px 25px 0 0 rgba(255,255,255,0.8), 100px 125px 0 0 rgba(255,255,255,0.6),
        125px 25px 0 0 rgba(255,255,255,1), 150px 175px 0 0 rgba(255,255,255,0.5),
        175px 75px 0 0 rgba(255,255,255,0.9), 200px 25px 0 0 rgba(255,255,255,0.7),
        225px 225px 0 0 rgba(255,255,255,0.4), 250px 125px 0 0 rgba(255,255,255,0.8),
        275px 75px 0 0 rgba(255,255,255,0.6), 300px 275px 0 0 rgba(255,255,255,0.9),
        325px 175px 0 0 rgba(255,255,255,0.5), 350px 25px 0 0 rgba(255,255,255,1),
        375px 325px 0 0 rgba(255,255,255,0.4), 400px 225px 0 0 rgba(255,255,255,0.7),
        450px 125px 0 0 rgba(255,255,255,0.8), 500px 375px 0 0 rgba(255,255,255,0.3),
        550px 275px 0 0 rgba(255,255,255,0.6), 600px 175px 0 0 rgba(255,255,255,0.9),
        650px 75px 0 0 rgba(255,255,255,0.5), 700px 325px 0 0 rgba(255,255,255,0.8),
        750px 225px 0 0 rgba(255,255,255,0.4), 800px 125px 0 0 rgba(255,255,255,0.7),
        850px 375px 0 0 rgba(255,255,255,0.6), 900px 275px 0 0 rgba(255,255,255,0.3),
        950px 175px 0 0 rgba(255,255,255,0.9), 1000px 75px 0 0 rgba(255,255,255,0.5);
}

#stars2 {
    background: transparent;
    animation: 
        animStar 200s linear infinite,
        twinkle 3s ease-in-out infinite;
    animation-delay: -50s, -1s;
}

#stars2:before {
    content: '';
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.8);
    box-shadow: 
        75px 50px 0 0 rgba(240, 147, 251, 0.7), 150px 100px 0 0 rgba(79, 172, 254, 0.6),
        225px 150px 0 0 rgba(102, 126, 234, 0.5), 300px 200px 0 0 rgba(240, 147, 251, 0.8),
        375px 250px 0 0 rgba(79, 172, 254, 0.4), 450px 300px 0 0 rgba(102, 126, 234, 0.7),
        525px 350px 0 0 rgba(240, 147, 251, 0.3), 600px 400px 0 0 rgba(79, 172, 254, 0.9);
}

#stars3 {
    background: transparent;
    animation: 
        animStar 250s linear infinite,
        twinkle 5s ease-in-out infinite;
    animation-delay: -100s, -2s;
}

#stars3:before {
    content: '';
    position: absolute;
    width: 1px;
    height: 1px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 
        100px 100px 0 0 rgba(255,255,255,0.3), 200px 200px 0 0 rgba(255,255,255,0.4),
        300px 300px 0 0 rgba(255,255,255,0.2), 400px 400px 0 0 rgba(255,255,255,0.5),
        500px 100px 0 0 rgba(255,255,255,0.3), 600px 200px 0 0 rgba(255,255,255,0.4),
        700px 300px 0 0 rgba(255,255,255,0.2), 800px 400px 0 0 rgba(255,255,255,0.3);
}

/*-----------------------Responsive Design-----------------------*/
@media (max-width: 768px) {
    #profilePicture {
        width: 120px;
        height: 120px;
        margin: 40px auto 20px;
    }

    #userName {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    #links {
        max-width: 100%;
        width: 95%;
        gap: 16px;
        margin: 30px auto;
        padding: 0 16px;
    }

    .link {
        padding: 18px 20px;
        font-size: 1rem;
        border-radius: 20px;
    }

    .link i {
        font-size: 1.2rem;
    }

    #hashtag {
        font-size: 1rem;
        padding: 30px 0 40px;
        letter-spacing: 1px;
    }

    /* Enhanced popup responsive */
    .popup {
        width: 98%;
        margin: 10px;
        max-height: 95vh;
        border-radius: 20px;
    }

    .popup-photo {
        height: 200px;
        border-radius: 20px 20px 0 0;
    }

    .popup-content {
        padding: 24px 20px;
    }

    .popup-title {
        font-size: 1.5rem;
        margin-bottom: 16px;
    }

    .popup-quote {
        font-size: 0.95rem;
        line-height: 1.6;
        text-align: left;
        margin-bottom: 20px;
    }

    .skill-tag {
        font-size: 0.85rem;
        padding: 6px 12px;
    }

    .popup-close {
        width: 36px;
        height: 36px;
        font-size: 20px;
        right: 12px;
        top: 12px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 0 10px;
    }

    #profilePicture {
        width: 100px;
        height: 100px;
        margin: 30px auto 15px;
    }

    #userName {
        font-size: 1.3rem;
    }

    #links {
        gap: 14px;
        margin: 25px auto;
    }

    .link {
        padding: 16px 18px;
        font-size: 0.95rem;
    }

    #hashtag {
        font-size: 0.9rem;
    }

    /* Ultra responsive popup */
    .popup {
        width: 100%;
        height: 100%;
        margin: 0;
        border-radius: 0;
        max-height: 100vh;
    }

    .popup-photo {
        height: 180px;
        border-radius: 0;
    }

    .popup-content {
        padding: 20px 16px;
        flex: 1;
        overflow-y: auto;
    }

    .popup-title {
        font-size: 1.3rem;
        margin-bottom: 14px;
    }

    .popup-quote {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 18px;
    }

    .skill-tag {
        font-size: 0.8rem;
        padding: 5px 10px;
    }

    .popup-close {
        width: 32px;
        height: 32px;
        font-size: 18px;
        right: 10px;
        top: 10px;
    }
}

/* Sparkles container */
.sparkles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.sparkle {
    position: absolute;
    animation: twinkle 3s ease-in-out infinite;
}

/* Ripple effect */
@keyframes ripple {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(4);
        opacity: 0;
    }
}

/* Enhanced glow effect */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(102, 126, 234, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
    transition: all 0.3s ease;
}

/* Magic cursor trail */
.cursor-trail {
    position: fixed;
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, #667eea 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1000;
    animation: magicSparkle 1s ease-out forwards;
}

/* Enhanced profile picture hover */
#profilePicture:hover {
    transform: translateY(-15px) scale(1.08);
    box-shadow: 
        0 35px 70px rgba(102, 126, 234, 0.6),
        0 0 100px rgba(102, 126, 234, 0.4),
        inset 0 0 30px rgba(255, 255, 255, 0.2);
    filter: brightness(1.1) saturate(1.2);
}

/* Animated border for links - Softer version */
.link {
    border: 1px solid rgba(255, 255, 255, 0.15);
    background-image: 
        linear-gradient(var(--surface-glass), var(--surface-glass)),
        linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.3), rgba(240, 147, 251, 0.3), rgba(245, 87, 108, 0.3));
    background-origin: border-box;
    background-clip: padding-box, border-box;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.link:hover {
    animation: 
        breathe 6s ease-in-out infinite,
        glowPulse 3s ease-in-out infinite;
    border: 1px solid rgba(255, 255, 255, 0.25);
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .link {
        border: 2px solid var(--text-primary);
    }
    
    .popup {
        border: 2px solid var(--text-primary);
    }
}
