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

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #fff;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

/* Profile Section */
.profile {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeInDown 0.8s ease-out;
}

.avatar {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.avatar i {
    font-size: 40px;
    color: #fff;
}

.profile h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
    letter-spacing: 1px;
}

/* Links Section */
.links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 40px;
}

.link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    border-radius: 16px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.6s ease-out backwards;
}

.link:nth-child(1) { animation-delay: 0.05s; }
.link:nth-child(2) { animation-delay: 0.1s; }
.link:nth-child(3) { animation-delay: 0.15s; }
.link:nth-child(4) { animation-delay: 0.2s; }
.link:nth-child(5) { animation-delay: 0.25s; }
.link:nth-child(6) { animation-delay: 0.3s; }
.link:nth-child(7) { animation-delay: 0.35s; }
.link:nth-child(8) { animation-delay: 0.4s; }
.link:nth-child(9) { animation-delay: 0.45s; }
.link:nth-child(10) { animation-delay: 0.5s; }
.link:nth-child(11) { animation-delay: 0.55s; }
.link:nth-child(12) { animation-delay: 0.6s; }
.link:nth-child(13) { animation-delay: 0.65s; }
.link:nth-child(14) { animation-delay: 0.7s; }
.link:nth-child(15) { animation-delay: 0.75s; }

.link:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.25);
}

.link i:first-child {
    font-size: 1.3rem;
    width: 24px;
    text-align: center;
}

.link span {
    flex: 1;
}

.external {
    font-size: 0.85rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.link:hover .external {
    opacity: 1;
}

/* Platform-specific colors on hover */
.link.portfolio:hover { background: rgba(0, 0, 0, 0.8); }
.link.linkedin:hover { background: rgba(10, 102, 194, 0.9); }
.link.github:hover { background: rgba(51, 51, 51, 0.9); }
.link.youtube:hover { background: rgba(255, 0, 0, 0.9); }
.link.kaggle:hover { background: rgba(30, 112, 152, 0.9); }
.link.credly:hover { background: rgba(255, 106, 0, 0.9); }
.link.behance:hover { background: rgba(23, 105, 255, 0.9); }
.link.hackerrank:hover { background: rgba(36, 115, 36, 0.9); }
.link.codewars:hover { background: rgba(178, 117, 5, 0.9); }
.link.gmail:hover { background: rgba(66, 133, 244, 0.9); }
.link.whatsapp:hover { background: rgba(7, 94, 84, 0.9); }
.link.dev:hover { background: rgba(10, 10, 10, 0.9); }
.link.solo:hover { background: rgba(0, 86, 112, 0.9); }
.link.duo:hover { background: rgba(142, 224, 0, 0.9); color: #1a1a1a; }
.link.studocu:hover { background: rgba(32, 9, 9, 0.9); }

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    opacity: 0.8;
    animation: fadeIn 1s ease-out 0.8s backwards;
}

footer p {
    font-size: 0.9rem;
    font-weight: 300;
}

footer i {
    color: #ff6b6b;
    animation: heartbeat 1.5s ease-in-out infinite;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 0.8; }
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Responsive Design */
@media (max-width: 600px) {
    body {
        padding: 15px;
    }

    .container {
        padding: 10px;
    }

    .profile h1 {
        font-size: 1.6rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .avatar {
        width: 80px;
        height: 80px;
    }

    .avatar i {
        font-size: 32px;
    }

    .link {
        padding: 14px 16px;
        font-size: 0.95rem;
    }

    .link i:first-child {
        font-size: 1.1rem;
    }
}

@media (max-width: 400px) {
    .profile h1 {
        font-size: 1.4rem;
    }

    .link {
        padding: 12px 14px;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}