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

:root {
    --color-primary: #4F46E5;
    --color-secondary: #A855F7;
    --color-tertiary: #EC4899;
    --color-bg: #000000;
    --color-text-primary: #FFFFFF;
    --color-text-secondary: rgba(255, 255, 255, 0.7);
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
    --blur-amount: 12px;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--color-bg);
    color: var(--color-text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Aurora background */
.aurora-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.7;
    will-change: transform;
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

.blob-1 {
    width: 300px;
    height: 300px;
    background: var(--color-primary);
    top: 20%;
    left: 10%;
    animation: float1 12s ease-in-out infinite;
}

.blob-2 {
    width: 250px;
    height: 250px;
    background: var(--color-secondary);
    top: 60%;
    right: 20%;
    animation: float2 15s ease-in-out infinite reverse, pulse 6s ease-in-out infinite;
    transform: translate(var(--dynamic-x, 0px), var(--dynamic-y, 0px));
}

.blob-3 {
    width: 200px;
    height: 200px;
    background: var(--color-tertiary);
    bottom: 10%;
    left: 30%;
    animation: float3 18s ease-in-out infinite;
}

.blob-4 {
    width: 180px;
    height: 180px;
    background: var(--color-primary);
    top: 10%;
    right: 10%;
    animation: float4 14s ease-in-out infinite reverse;
    transform: translate(var(--dynamic-x, 0px), var(--dynamic-y, 0px));
}

.blob-5 {
    width: 220px;
    height: 220px;
    background: var(--color-secondary);
    bottom: 30%;
    right: 40%;
    animation: float5 16s ease-in-out infinite, pulse 8s ease-in-out infinite 2s;
}

.blob-6 {
    width: 160px;
    height: 160px;
    background: linear-gradient(45deg, var(--color-primary), var(--color-tertiary));
    top: 50%;
    left: 5%;
    animation: float6 20s ease-in-out infinite reverse;
}

.blob-7 {
    width: 190px;
    height: 190px;
    background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
    bottom: 15%;
    right: 10%;
    animation: float7 17s ease-in-out infinite, pulse 7s ease-in-out infinite 4s;
}

.blob-8 {
    width: 140px;
    height: 140px;
    background: var(--color-tertiary);
    top: 30%;
    right: 50%;
    animation: float8 19s ease-in-out infinite reverse;
    transform: translate(var(--dynamic-x, 0px), var(--dynamic-y, 0px));
}

/* Aurora animations */
@keyframes float1 {
    0%, 100% { 
        transform: translate3d(0px, 0px, 0) rotate(0deg) scale(1);
        opacity: 0.7;
    }
    25% { 
        transform: translate3d(60px, -40px, 0) rotate(90deg) scale(1.1);
        opacity: 0.5;
    }
    50% { 
        transform: translate3d(-30px, 50px, 0) rotate(180deg) scale(0.9);
        opacity: 0.8;
    }
    75% { 
        transform: translate3d(40px, 20px, 0) rotate(270deg) scale(1.05);
        opacity: 0.6;
    }
}

@keyframes float2 {
    0%, 100% { 
        transform: translate(0px, 0px) rotate(0deg) scale(1);
        opacity: 0.6;
    }
    33% { 
        transform: translate(-70px, -60px) rotate(120deg) scale(1.2);
        opacity: 0.4;
    }
    66% { 
        transform: translate(30px, 40px) rotate(240deg) scale(0.8);
        opacity: 0.7;
    }
}

@keyframes float3 {
    0%, 100% { 
        transform: translate(0px, 0px) rotate(0deg) scale(1);
        opacity: 0.8;
    }
    20% { 
        transform: translate(50px, -60px) rotate(72deg) scale(0.8);
        opacity: 0.6;
    }
    40% { 
        transform: translate(-30px, 30px) rotate(144deg) scale(1.1);
        opacity: 0.7;
    }
    60% { 
        transform: translate(40px, 50px) rotate(216deg) scale(0.9);
        opacity: 0.5;
    }
    80% { 
        transform: translate(-50px, -20px) rotate(288deg) scale(1.05);
        opacity: 0.8;
    }
}

@keyframes float4 {
    0%, 100% { 
        transform: translate(0px, 0px) rotate(0deg) scale(1);
        opacity: 0.5;
    }
    25% { 
        transform: translate(60px, 80px) rotate(90deg) scale(0.9);
        opacity: 0.8;
    }
    50% { 
        transform: translate(-40px, 30px) rotate(180deg) scale(1.1);
        opacity: 0.6;
    }
    75% { 
        transform: translate(30px, -50px) rotate(270deg) scale(0.85);
        opacity: 0.7;
    }
}

@keyframes float5 {
    0%, 100% { 
        transform: translate(0px, 0px) rotate(0deg) scale(1);
        opacity: 0.7;
    }
    40% { 
        transform: translate(-50px, -30px) rotate(144deg) scale(1.1);
        opacity: 0.5;
    }
    80% { 
        transform: translate(30px, 50px) rotate(288deg) scale(0.8);
        opacity: 0.9;
    }
}

@keyframes float6 {
    0%, 100% { 
        transform: translate(0px, 0px) rotate(0deg) scale(1);
        opacity: 0.6;
    }
    20% { 
        transform: translate(80px, -60px) rotate(72deg) scale(1.1);
        opacity: 0.4;
    }
    40% { 
        transform: translate(-50px, 70px) rotate(144deg) scale(0.9);
        opacity: 0.8;
    }
    60% { 
        transform: translate(60px, 30px) rotate(216deg) scale(1.2);
        opacity: 0.5;
    }
    80% { 
        transform: translate(-30px, -40px) rotate(288deg) scale(1.05);
        opacity: 0.7;
    }
}

@keyframes float7 {
    0%, 100% { 
        transform: translate(0px, 0px) rotate(0deg) scale(1);
        opacity: 0.7;
    }
    30% { 
        transform: translate(-70px, -50px) rotate(108deg) scale(1.1);
        opacity: 0.4;
    }
    60% { 
        transform: translate(55px, 60px) rotate(216deg) scale(0.85);
        opacity: 0.6;
    }
    90% { 
        transform: translate(20px, -30px) rotate(324deg) scale(1.05);
        opacity: 0.8;
    }
}

@keyframes float8 {
    0%, 100% { 
        transform: translate(0px, 0px) rotate(0deg) scale(1);
        opacity: 0.5;
    }
    25% { 
        transform: translate(65px, 45px) rotate(90deg) scale(1.3);
        opacity: 0.7;
    }
    50% { 
        transform: translate(-45px, -55px) rotate(180deg) scale(0.9);
        opacity: 0.4;
    }
    75% { 
        transform: translate(35px, 25px) rotate(270deg) scale(1.1);
        opacity: 0.6;
    }
}

/* Floating particles */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    backdrop-filter: blur(2px);
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.particle-1 {
    width: 4px;
    height: 4px;
    top: 10%;
    left: 20%;
    animation: particleFloat1 10s infinite;
}

.particle-2 {
    width: 6px;
    height: 6px;
    top: 70%;
    left: 80%;
    animation: particleFloat2 12s infinite reverse;
}

.particle-3 {
    width: 3px;
    height: 3px;
    top: 30%;
    left: 60%;
    animation: particleFloat3 14s infinite;
}

.particle-4 {
    width: 5px;
    height: 5px;
    top: 80%;
    left: 15%;
    animation: particleFloat4 11s infinite reverse;
}

.particle-5 {
    width: 4px;
    height: 4px;
    top: 50%;
    left: 90%;
    animation: particleFloat5 13s infinite;
}

.particle-6 {
    width: 7px;
    height: 7px;
    top: 15%;
    left: 45%;
    animation: particleFloat6 9s infinite reverse;
}

@keyframes particleFloat1 {
    0% { transform: translate(0, 0) scale(1); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translate(-100px, -200px) scale(0.5); opacity: 0; }
}

@keyframes particleFloat2 {
    0% { transform: translate(0, 0) scale(1); opacity: 0; }
    15% { opacity: 1; }
    85% { opacity: 1; }
    100% { transform: translate(150px, -180px) scale(0.3); opacity: 0; }
}

@keyframes particleFloat3 {
    0% { transform: translate(0, 0) scale(1); opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { transform: translate(-80px, -250px) scale(0.7); opacity: 0; }
}

@keyframes particleFloat4 {
    0% { transform: translate(0, 0) scale(1); opacity: 0; }
    12% { opacity: 1; }
    88% { opacity: 1; }
    100% { transform: translate(120px, -160px) scale(0.4); opacity: 0; }
}

@keyframes particleFloat5 {
    0% { transform: translate(0, 0) scale(1); opacity: 0; }
    18% { opacity: 1; }
    82% { opacity: 1; }
    100% { transform: translate(-140px, -190px) scale(0.6); opacity: 0; }
}

@keyframes particleFloat6 {
    0% { transform: translate(0, 0) scale(1); opacity: 0; }
    8% { opacity: 1; }
    92% { opacity: 1; }
    100% { transform: translate(90px, -220px) scale(0.2); opacity: 0; }
}

/* Pulse animation for dynamic blobs */
@keyframes pulse {
    0%, 100% { 
        filter: blur(120px) brightness(1);
        opacity: 0.7;
    }
    25% { 
        filter: blur(110px) brightness(1.1);
        opacity: 0.8;
    }
    50% { 
        filter: blur(100px) brightness(1.2);
        opacity: 0.9;
    }
    75% { 
        filter: blur(115px) brightness(1.05);
        opacity: 0.75;
    }
}

/* Cursor glow effect */
.cursor-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.15) 0%, rgba(168, 85, 247, 0.1) 30%, transparent 70%);
    pointer-events: none;
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
    will-change: transform;
    backface-visibility: hidden;
}

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

/* Profile section */
.profile-section {
    text-align: center;
    margin-bottom: 32px;
}

.profile-image {
    margin-bottom: 16px;
}

.profile-image img {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    border: 2px solid var(--glass-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.username {
    font-size: 24px;
    font-weight: 600;
    color: var(--color-text-secondary);
    margin: 0;
}

/* Bio section */
.bio-section {
    text-align: center;
    margin-bottom: 32px;
}

.bio-line-1 {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 8px;
}

.bio-line-2 {
    font-size: 16px;
    font-weight: 400;
    color: var(--color-text-secondary);
    margin: 0;
}

/* Glass morphism base styles */
.glass-element {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

/* Main CTA button */
.main-cta-section {
    margin-bottom: 40px;
}

.main-cta-button {
    display: block;
    width: 100%;
    padding: 20px 24px;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border: 2px solid transparent;
    border-radius: 16px;
    color: var(--color-text-primary);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.2);
}

.main-cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--color-primary), var(--color-secondary), var(--color-tertiary), var(--color-primary));
    background-size: 400% 400%;
    border-radius: 16px;
    z-index: -1;
    animation: gradientShift 3s ease infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.main-cta-button::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: var(--color-bg);
    border-radius: 14px;
    z-index: -1;
}

.main-cta-button:hover::before {
    opacity: 1;
}

.main-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 40px rgba(79, 70, 229, 0.4);
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Section separator */
.section-separator {
    text-align: center;
    margin: 48px 0 32px;
}

.section-separator h2 {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Apps section */
.apps-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

.app-button {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--color-text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.app-logo {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.app-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.app-content {
    flex: 1;
    min-width: 0;
}

.app-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text-primary);
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.app-description {
    font-size: 13px;
    font-weight: 400;
    color: var(--color-text-secondary);
    margin: 0;
    line-height: 1.4;
}

.app-button:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.15);
}

/* Social media section */
.social-section {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 40px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--color-text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.social-link:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.3);
    filter: drop-shadow(0 0 10px rgba(79, 70, 229, 0.5));
}

/* Animation states */
.animate-element {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-element.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .container {
        padding: 20px 16px;
    }
    
    .profile-image img {
        width: 100px;
        height: 100px;
    }
    
    .username {
        font-size: 20px;
    }
    
    .bio-line-1 {
        font-size: 18px;
    }
    
    .bio-line-2 {
        font-size: 14px;
    }
    
    .main-cta-button {
        padding: 16px 20px;
        font-size: 15px;
    }
    
    .app-button {
        padding: 16px 18px;
        gap: 12px;
    }
    
    .app-logo {
        width: 40px;
        height: 40px;
    }
    
    .app-name {
        font-size: 15px;
    }
    
    .app-description {
        font-size: 12px;
    }
    
    /* Optimize performance on mobile */
    .cursor-glow {
        display: none;
    }
    
    .blob {
        filter: blur(60px);
    }
    
    .blob-1, .blob-2, .blob-3, .blob-4, .blob-5, .blob-6, .blob-7, .blob-8 {
        animation-duration: 25s;
    }
    
    /* Reduce particles on mobile */
    .particle-3, .particle-5, .particle-6 {
        display: none;
    }
    
    .particle {
        animation-duration: 18s !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 16px 12px;
    }
    
    .app-button {
        padding: 14px 16px;
        gap: 10px;
    }
    
    .app-logo {
        width: 36px;
        height: 36px;
    }
    
    .app-name {
        font-size: 14px;
    }
    
    .app-description {
        font-size: 11px;
    }
    
    .social-section {
        gap: 20px;
    }
    
    .social-link {
        width: 44px;
        height: 44px;
    }
    
    /* Further optimize on very small screens */
    .blob-6, .blob-7, .blob-8 {
        display: none;
    }
    
    .particles-container {
        display: none;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .animate-element {
        transition: opacity 0.3s ease;
        transform: none !important;
        opacity: 1 !important;
    }
    
    .blob-1, .blob-2, .blob-3, .blob-4, .blob-5, .blob-6, .blob-7, .blob-8 {
        animation: none !important;
        transform: none !important;
        opacity: 0.3;
    }
    
    .particles-container {
        display: none;
    }
    
    .cursor-glow {
        display: none;
    }
    
    .main-cta-button::before {
        animation: none;
    }
}

/* Language Selector */
.language-selector {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
    display: flex;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 4px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--color-text-secondary);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    min-width: 32px;
}

.lang-btn:hover {
    color: var(--color-text-primary);
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.05);
}

.lang-btn.active {
    color: var(--color-text-primary);
    background: rgba(79, 70, 229, 0.2);
    box-shadow: 
        0 0 15px rgba(79, 70, 229, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.lang-btn.active::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(168, 85, 247, 0.1));
    z-index: -1;
}

/* Mobile adjustments for language selector */
@media (max-width: 768px) {
    .language-selector {
        top: 16px;
        right: 16px;
        scale: 0.9;
    }
    
    .lang-btn {
        padding: 6px 10px;
        font-size: 11px;
        min-width: 28px;
    }
}
