/* ============================================
   DESIGN SYSTEM & CSS VARIABLES
   ============================================ */
:root {
    /* Color Palette - Premium Gradient Theme */
    --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%);
    --success-gradient: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);

    /* Neutral Colors */
    --bg-dark: #0a0a0f;
    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --border-color: rgba(255, 255, 255, 0.1);

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 0.75rem;
    --spacing-lg: 1rem;
    --spacing-xl: 1.5rem;

    /* Border Radius */
    --radius-sm: 50%;
    --radius-md: 50%;
    --radius-lg: 50%;
    --radius-full: 50%;

    /* Shadows */
    --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);
    --shadow-glow: 0 0 40px rgba(102, 126, 234, 0.3);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

body {
    font-family: 'Alexandria', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ============================================
   LANGUAGE TOGGLE BUTTON
   ============================================ */
.language-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
    animation: slideInRight 0.6s ease;
    overflow: hidden;
    cursor: pointer;
}

.language-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: 0;
}

.language-toggle:hover::before {
    opacity: 0.15;
}

.language-toggle:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-lg);
    border-color: rgba(102, 126, 234, 0.5);
}

.language-toggle:active {
    transform: translateY(0) scale(1);
}

.language-toggle i {
    font-size: 1.2rem;
    position: relative;
    z-index: 1;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: transform var(--transition-normal);
}

.language-toggle:hover i {
    transform: scale(1.1) rotate(5deg);
}

.lang-text {
    position: relative;
    z-index: 1;
    letter-spacing: 0.5px;
    font-weight: 700;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============================================
   ANIMATED BACKGROUND
   ============================================ */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.gradient-orb {
    position: absolute;
    border-radius: var(--radius-full);
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    top: -10%;
    right: -10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    bottom: -10%;
    left: -10%;
    animation-delay: 7s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 14s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(50px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-50px, 50px) scale(0.9);
    }
}

/* ============================================
   CONTAINER & LAYOUT
   ============================================ */
.container {
    position: relative;
    z-index: 1;
    max-width: 680px;
    margin: 0 auto;
    padding: var(--spacing-lg) var(--spacing-sm);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ============================================
   PROFILE SECTION
   ============================================ */
.profile-section {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    animation: fadeInDown 0.8s ease;
}

.profile-image-wrapper {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto var(--spacing-sm);
}

.profile-image {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 4px solid var(--bg-dark);
    box-shadow: var(--shadow-glow);
    position: relative;
    z-index: 2;
    transition: transform var(--transition-normal);
}

.profile-image:hover {
    transform: scale(1.05);
}

.profile-ring {
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border-radius: var(--radius-full);
    background: var(--primary-gradient);
    z-index: 1;
    animation: rotate 8s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.profile-name {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-xs);
    letter-spacing: 1px;
}

.profile-bio {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* ============================================
   LINKS SECTION
   ============================================ */
.links {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.link {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.6s ease backwards;
}

.link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: 0;
}

.link:hover::before {
    opacity: 0.1;
}

.link:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(102, 126, 234, 0.5);
}

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

.link-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--primary-gradient);
    font-size: 1.25rem;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    transition: transform var(--transition-normal);
}

.link:hover .link-icon {
    transform: scale(1.1) rotate(5deg);
}

.link-text {
    flex: 1;
    text-align: right;
    position: relative;
    z-index: 1;
}

.link-arrow {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    transition: all var(--transition-normal);
}

.link:hover .link-arrow {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-4px);
}

/* Individual Link Colors */
#telegram-link .link-icon {
    background: linear-gradient(135deg, #0088cc 0%, #00a0e9 100%);
}

#whatsapp-link .link-icon {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
}

#website-link .link-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

#tiktok-link .link-icon {
    background: linear-gradient(135deg, #000000 0%, #ee1d52 100%);
}

#instagram-link .link-icon {
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

#facebook-link .link-icon {
    background: linear-gradient(135deg, #1877f2 0%, #0d5dbf 100%);
}

#linkedin-link .link-icon {
    background: linear-gradient(135deg, #0077b5 0%, #00a0dc 100%);
}

#github-link .link-icon {
    background: linear-gradient(135deg, #333333 0%, #6e5494 100%);
}

#email-link .link-icon {
    background: linear-gradient(135deg, #ea4335 0%, #fbbc04 100%);
}

/* Staggered Animation Delays */
.link:nth-child(1) {
    animation-delay: 0.1s;
}

.link:nth-child(2) {
    animation-delay: 0.2s;
}

.link:nth-child(3) {
    animation-delay: 0.3s;
}

.link:nth-child(4) {
    animation-delay: 0.4s;
}

.link:nth-child(5) {
    animation-delay: 0.5s;
}

.link:nth-child(6) {
    animation-delay: 0.6s;
}

.link:nth-child(7) {
    animation-delay: 0.7s;
}

.link:nth-child(8) {
    animation-delay: 0.8s;
}

.link:nth-child(9) {
    animation-delay: 0.9s;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    margin-top: auto;
    padding-top: var(--spacing-sm);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    animation: fadeIn 1s ease 0.8s backwards;
}

/* ============================================
   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: var(--spacing-sm) var(--spacing-sm);
    }

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

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

    .link {
        padding: 0.4rem 0.75rem;
        font-size: 1rem;
    }

    .link-icon {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }

    .gradient-orb {
        filter: blur(60px);
    }

    .language-toggle {
        top: 15px;
        right: 15px;
        padding: 10px 16px;
        font-size: 0.9rem;
    }

    .language-toggle i {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .profile-image-wrapper {
        width: 120px;
        height: 120px;
    }

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

    .link {
        gap: var(--spacing-sm);
    }
}