/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #8b5cf6;
    --bg-gradient-start: #0f172a;
    --bg-gradient-end: #1e293b;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-hover: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ===== BACKGROUND ANIMATION ===== */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
    animation: rotate 30s linear infinite;
    z-index: -1;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== CONTAINER ===== */
.container {
    max-width: 680px;
    margin: 0 auto;
    padding: 60px 20px;
    position: relative;
    z-index: 1;
}

/* ===== PROFILE SECTION ===== */
.profile-section {
    text-align: center;
    margin-bottom: 48px;
    animation: fadeInDown 0.8s ease-out;
}

.profile-image-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 24px;
}

.profile-image {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 4px solid var(--primary-color);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2), var(--shadow-lg);
    object-fit: cover;
    transition: var(--transition);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.4), var(--shadow-lg);
}

.status-indicator {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    background: #10b981;
    border-radius: 50%;
    border: 3px solid var(--bg-gradient-start);
    animation: pulse 2s ease-in-out infinite;
}

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

.profile-name {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.profile-title {
    font-size: 1.125rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 12px;
}

.profile-bio {
    font-size: 0.95rem;
    color: var(--text-muted);
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===== LINKS CONTAINER ===== */
.links-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* ===== LINK CARD ===== */
.link-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.link-card::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: left 0.5s ease;
}

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

.link-card:hover {
    background: var(--card-hover);
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.2);
}

.link-card:active {
    transform: translateY(-2px);
}

/* ===== LINK ICON ===== */
.link-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 14px;
    font-size: 24px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.link-card:hover .link-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-md);
}

/* Icon Colors */
.link-icon.linkedin { background: linear-gradient(135deg, #0077b5, #005582); }
.link-icon.twitter { background: linear-gradient(135deg, #000000, #333333); }
.link-icon.instagram { background: linear-gradient(135deg, #e1306c, #c13584, #833ab4); }
.link-icon.portfolio { background: linear-gradient(135deg, #10b981, #059669); }
.link-icon.youtube { background: linear-gradient(135deg, #ff0000, #cc0000); }
.link-icon.email { background: linear-gradient(135deg, #ea4335, #c5221f); }
.link-icon.discord { background: linear-gradient(135deg, #5865f2, #4752c4); }

/* ===== LINK CONTENT ===== */
.link-content {
    flex: 1;
}

.link-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.link-subtitle {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* ===== LINK ARROW ===== */
.link-arrow {
    font-size: 20px;
    color: var(--text-muted);
    transition: var(--transition);
}

.link-card:hover .link-arrow {
    color: var(--primary-light);
    transform: translateX(4px);
}

/* ===== FOOTER ===== */
.footer {
    text-align: center;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
    animation: fadeIn 0.8s ease-out 0.4s both;
}

.footer p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.footer-subtitle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.footer i.fa-heart {
    color: #ef4444;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    10%, 30% { transform: scale(1.1); }
    20%, 40% { transform: scale(1); }
}

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

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

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

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .container {
        padding: 40px 16px;
    }

    .profile-name {
        font-size: 2rem;
    }

    .profile-image {
        width: 120px;
        height: 120px;
    }

    .link-card {
        padding: 16px 20px;
    }

    .link-icon {
        width: 48px;
        height: 48px;
        min-width: 48px;
        font-size: 20px;
    }

    .link-title {
        font-size: 1rem;
    }

    .link-subtitle {
        font-size: 0.8125rem;
    }
}

@media (max-width: 480px) {
    .profile-name {
        font-size: 1.75rem;
    }

    .profile-title {
        font-size: 1rem;
    }

    .profile-bio {
        font-size: 0.875rem;
    }

    .link-card {
        gap: 16px;
    }
}

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

/* ===== FOCUS STYLES ===== */
.link-card:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.link-card:focus:not(:focus-visible) {
    outline: none;
}

/* ===== SELECTION ===== */
::selection {
    background: var(--primary-color);
    color: var(--text-primary);
}

::-moz-selection {
    background: var(--primary-color);
    color: var(--text-primary);
}
