/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: #0f0f23;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Cursor Glow Effect */
.cursor-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: 9998;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translate(-50%, -50%);
}

/* Background Animation */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(1px);
    animation: float 20s infinite linear;
}

.shape-1 {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1), transparent);
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.08), transparent);
    top: 60%;
    right: 20%;
    animation-delay: -5s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.06), transparent);
    bottom: 30%;
    left: 15%;
    animation-delay: -10s;
}

.shape-4 {
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1), transparent);
    top: 40%;
    right: 10%;
    animation-delay: -15s;
}

.shape-5 {
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.05), transparent);
    bottom: 10%;
    right: 30%;
    animation-delay: -7s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-30px) rotate(120deg); }
    66% { transform: translateY(15px) rotate(240deg); }
}

/* Container principal */
.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 2rem 1rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
}

/* Section Profil */
.profile-section {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out;
}

.profile-image {
    position: relative;
    margin: 0 auto 1.5rem;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-glow {
    position: absolute;
    inset: -10px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 50%;
    animation: pulse 2s infinite;
    filter: blur(15px);
    opacity: 0.7;
}

.profile-avatar {
    position: relative;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: white;
    border: 3px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    z-index: 2;
    transition: all 0.3s ease;
}

.profile-name {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.profile-title {
    font-size: 1.1rem;
    color: #a1a1aa;
    margin-bottom: 1rem;
    font-weight: 500;
}

.profile-date {
    font-size: 0.9rem;
    color: #71717a;
    font-style: italic;
    opacity: 0.8;
}

/* Container des liens */
.links-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
}

/* Styles des liens */
.link-item {
    display: flex;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: rgba(26, 26, 46, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

.link-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.link-item:hover::before {
    left: 100%;
}

.link-item:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 0 20px rgba(99, 102, 241, 0.3);
}

.link-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.link-content {
    flex: 1;
}

.link-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #ffffff;
}

.link-subtitle {
    font-size: 0.9rem;
    color: #a1a1aa;
    font-weight: 400;
}

.link-arrow {
    font-size: 1.2rem;
    color: #71717a;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: 1rem;
}

.link-item:hover .link-arrow {
    transform: translateX(5px);
    color: #a1a1aa;
}

/* Styles spécifiques pour chaque lien */
.primary-link:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(26, 26, 46, 0.8));
    border-color: #6366f1;
}

.contact-link:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(26, 26, 46, 0.8));
    border-color: #10b981;
}

.github-link:hover {
    background: linear-gradient(135deg, rgba(107, 114, 128, 0.1), rgba(26, 26, 46, 0.8));
    border-color: #6b7280;
}

.linkedin-link:hover {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(26, 26, 46, 0.8));
    border-color: #06b6d4;
}

.blog-link:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(26, 26, 46, 0.8));
    border-color: #8b5cf6;
}

.cv-link:hover {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(26, 26, 46, 0.8));
    border-color: #f59e0b;
}

.consulting-link:hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(26, 26, 46, 0.8));
    border-color: #ef4444;
}

.youtube-link:hover {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.1), rgba(26, 26, 46, 0.8));
    border-color: #dc2626;
}

/* Section sociale */
.social-section {
    text-align: center;
    margin-bottom: 2rem;
}

.social-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #a1a1aa;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(26, 26, 46, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.social-link:hover {
    transform: translateY(-3px) scale(1.1);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.social-icon {
    font-size: 1.2rem;
}

.twitter:hover {
    background: linear-gradient(135deg, rgba(29, 161, 242, 0.2), rgba(26, 26, 46, 0.8));
    border-color: #1da1f2;
}

.instagram:hover {
    background: linear-gradient(135deg, rgba(225, 48, 108, 0.2), rgba(26, 26, 46, 0.8));
    border-color: #e1306c;
}

.discord:hover {
    background: linear-gradient(135deg, rgba(114, 137, 218, 0.2), rgba(26, 26, 46, 0.8));
    border-color: #7289da;
}

.telegram:hover {
    background: linear-gradient(135deg, rgba(0, 136, 204, 0.2), rgba(26, 26, 46, 0.8));
    border-color: #0088cc;
}

/* Footer */
.footer-text {
    text-align: center;
    font-size: 0.9rem;
    color: #71717a;
    opacity: 0.8;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.7;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

/* Animation échelonnée pour les liens */
.link-item:nth-child(1) { animation-delay: 0.1s; }
.link-item:nth-child(2) { animation-delay: 0.2s; }
.link-item:nth-child(3) { animation-delay: 0.3s; }
.link-item:nth-child(4) { animation-delay: 0.4s; }
.link-item:nth-child(5) { animation-delay: 0.5s; }
.link-item:nth-child(6) { animation-delay: 0.6s; }
.link-item:nth-child(7) { animation-delay: 0.7s; }
.link-item:nth-child(8) { animation-delay: 0.8s; }

/* Responsive Design */
@media (max-width: 640px) {
    .container {
        padding: 1.5rem 1rem;
    }
    
    .profile-name {
        font-size: 1.75rem;
    }
    
    .link-item {
        padding: 1rem 1.25rem;
    }
    
    .link-icon {
        font-size: 1.3rem;
        margin-right: 0.75rem;
        min-width: 35px;
    }
    
    .link-title {
        font-size: 1rem;
    }
    
    .link-subtitle {
        font-size: 0.85rem;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
    }
    
    .social-icon {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1rem 0.75rem;
    }
    
    .profile-image {
        width: 100px;
        height: 100px;
    }
    
    .profile-avatar {
        width: 80px;
        height: 80px;
        font-size: 1.75rem;
    }
    
    .profile-name {
        font-size: 1.5rem;
    }
    
    .link-item {
        padding: 0.875rem 1rem;
        gap: 0.75rem;
    }
    
    .links-container {
        gap: 0.75rem;
    }
}