/* 
========================================
CORE VARIABLES & RESET
========================================
*/
:root {
    --c-midnight: #0a0f1d;
    --c-deep-blue: #1422cc;
    --c-electric-blue: #3b5bdb;
    --c-volt: #ccff00;
    --c-stark: #f8f9fa;
    --c-smoke: #ffffff1a;

    --f-display: 'Syne', sans-serif;
    --f-body: 'Space Grotesk', sans-serif;

    --easing: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--c-midnight);
    color: var(--c-stark);
    cursor: none;
    overflow-x: hidden;
}

body {
    font-family: var(--f-body);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Noise Overlay */
.noise-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 250 250' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 999;
}

h1, h2, h3 { 
    font-family: var(--f-display); 
    font-weight: 800; 
    text-transform: uppercase; 
    letter-spacing: -0.04em; 
}

a { text-decoration: none; color: inherit; cursor: none; }

/* Custom Cursor */
.cursor-dot, .cursor-outline {
    position: fixed;
    top: 0; left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}
.cursor-dot { 
    width: 8px; 
    height: 8px; 
    background-color: var(--c-volt); 
}
.cursor-outline { 
    width: 40px; 
    height: 40px; 
    border: 1px solid var(--c-stark); 
    transition: all 0.2s var(--easing); 
    mix-blend-mode: difference;
}
.cursor-hover { 
    transform: translate(-50%, -50%) scale(2.5); 
    background: var(--c-stark); 
    border: none; 
    mix-blend-mode: difference; 
}

/* Loading Screen */
.loader {
    position: fixed; 
    inset: 0; 
    background: var(--c-midnight); 
    z-index: 10000;
    display: flex; 
    justify-content: center; 
    align-items: center;
    transition: transform 0.8s var(--easing);
}
.loader.hidden { transform: translateY(-100%); }
.loader-text { 
    font-family: var(--f-display); 
    font-size: 2rem; 
    color: var(--c-volt); 
    animation: pulse 1s infinite alternate;
}

@keyframes pulse { 
    from { opacity: 0.3; } 
    to { opacity: 1; } 
}

/* Animated Mesh Background */
.hero-bg {
    position: fixed; 
    inset: -50%;
    background: radial-gradient(circle at 50% 50%, var(--c-deep-blue), transparent 60%),
                radial-gradient(circle at 20% 80%, var(--c-electric-blue), transparent 50%),
                radial-gradient(circle at 80% 20%, #4b0082, transparent 50%);
    filter: blur(80px);
    opacity: 0.6;
    animation: meshMove 20s infinite alternate ease-in-out;
    z-index: -1;
}

@keyframes meshMove {
    0% { transform: translate(0,0) rotate(0deg); }
    100% { transform: translate(-10%, -10%) rotate(5deg); }
}

/* Container */
.container {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem;
}

.content {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 4rem 6rem;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 2px rgba(255, 255, 255, 0.1),
        0 0 100px rgba(102, 126, 234, 0.1);
    border: 1px solid var(--c-smoke);
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.5s var(--easing);
    opacity: 0;
    transform: translateY(50px);
}

/* Avatar */
.avatar-container {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--c-electric-blue), var(--c-deep-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--f-display);
    font-size: 3rem;
    font-weight: 800;
    color: var(--c-stark);
    box-shadow: 
        0 10px 30px rgba(59, 91, 219, 0.4),
        inset 0 -5px 20px rgba(0, 0, 0, 0.2);
    animation: avatarFloat 3s ease-in-out infinite;
    position: relative;
    z-index: 2;
    transition: transform 0.3s var(--easing);
}

.avatar:hover {
    transform: scale(1.1) rotate(5deg);
}

.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 2px solid var(--c-electric-blue);
    animation: pulse-ring 2s ease-out infinite;
    z-index: 1;
}

@keyframes pulse-ring {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.8);
        opacity: 0;
    }
}

@keyframes avatarFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Typography */
.main-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    from {
        filter: drop-shadow(0 0 15px rgba(204, 255, 0, 0.3));
    }
    to {
        filter: drop-shadow(0 0 30px rgba(204, 255, 0, 0.6));
    }
}

.subtitle {
    font-size: clamp(1.3rem, 3vw, 2rem);
    color: rgba(248, 249, 250, 0.7);
    font-weight: 300;
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
    font-family: var(--f-body);
    text-transform: none;
}

.description {
    margin: 2rem 0;
    color: rgba(248, 249, 250, 0.6);
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin: 2rem 0;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--c-smoke);
    border-radius: 100px;
    color: var(--c-stark);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s var(--easing);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

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

.social-link:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 
        0 15px 40px rgba(42, 171, 238, 0.5),
        inset 0 0 20px rgba(42, 171, 238, 0.1);
    border-color: var(--c-volt);
    background: rgba(204, 255, 0, 0.1);
}

.social-link svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s var(--easing);
}

.social-link:hover svg {
    transform: scale(1.2) rotate(5deg);
}

.telegram {
    border-color: rgba(42, 171, 238, 0.4);
}

.telegram:hover {
    border-color: var(--c-volt);
}

/* Reveal Animation */
.reveal-active {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: opacity 1s var(--easing), transform 1s var(--easing);
}

/* Responsive */
@media (max-width: 768px) {
    html { cursor: default; }
    .cursor-dot, .cursor-outline { display: none; }
    
    .content {
        padding: 3rem 2rem;
    }
    
    .avatar {
        width: 90px;
        height: 90px;
        font-size: 2.2rem;
    }
    
    .pulse-ring {
        width: 90px;
        height: 90px;
    }
    
    .main-title {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.3rem;
    }
    
    .description {
        font-size: 1rem;
    }
    
    .social-link {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .social-link svg {
        width: 20px;
        height: 20px;
    }
}
