:root {
    --bg-color: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.6);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-1: #3b82f6;
    --accent-2: #8b5cf6;
    --accent-3: #10b981;
    --btn-bg: rgba(255, 255, 255, 0.03);
    --btn-hover: rgba(255, 255, 255, 0.08);
    --btn-border: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column-reverse; /* Решает порядок на узких экранах (карточка сверху) */
    justify-content: center;
    align-items: center;
    gap: 3rem;
    overflow-x: hidden;
    position: relative;
    padding: 2rem 1rem;
}

.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.5;
    animation: float 20s infinite ease-in-out alternate;
}

.glow-1 {
    width: 500px;
    height: 500px;
    background: var(--accent-1);
    top: -150px;
    left: -150px;
    animation-delay: 0s;
}

.glow-2 {
    width: 600px;
    height: 600px;
    background: var(--accent-2);
    bottom: -200px;
    right: -150px;
    animation-delay: -5s;
}

.glow-3 {
    width: 400px;
    height: 400px;
    background: rgba(16, 185, 129, 0.3);
    bottom: 20%;
    left: 10%;
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(80px, 80px) scale(1.1); }
}

.container {
    width: 100%;
    max-width: 480px;
    padding: 2.5rem;
    background: var(--card-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 28px;
    border: 1px solid var(--btn-border);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255,255,255,0.1);
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
}

.profile {
    text-align: center;
    margin-bottom: 2rem;
    transform: translateZ(30px);
}

.avatar {
    width: 96px;
    height: 96px;
    border-radius: 30%;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    margin: 0 auto 1.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    color: white;
    box-shadow: 0 15px 30px rgba(139, 92, 246, 0.3);
    position: relative;
    transform: rotate(10deg);
    transition: transform 0.3s ease;
}

.container:hover .avatar {
    transform: rotate(0deg) scale(1.05);
}

.avatar::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 30%;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    z-index: -1;
    filter: blur(15px);
    opacity: 0.6;
}

h1 {
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.bio {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    transform: translateZ(20px);
}

.section-title {
    margin: 1rem 0 0.2rem;
    text-align: left;
    padding-left: 0.5rem;
}

.section-title h2 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #64748b;
    font-weight: 600;
}

.link-btn {
    display: flex;
    align-items: center;
    padding: 1.2rem;
    background: var(--btn-bg);
    border: 1px solid var(--btn-border);
    border-radius: 20px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.link-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.link-btn:hover::before {
    transform: translateX(100%);
}

.link-btn:hover {
    background: var(--btn-hover);
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.15);
}

.link-btn i {
    font-size: 1.6rem;
    margin-right: 1.2rem;
    width: 32px;
    text-align: center;
}

.vpn-btn {
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.2);
    margin-bottom: 0.5rem;
}

.vpn-btn i {
    color: var(--accent-3);
    animation: pulse 2s infinite;
}

.vpn-btn:hover {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.15);
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

.btn-text {
    display: flex;
    flex-direction: column;
}

.btn-title {
    font-weight: 600;
    font-size: 1.05rem;
}

.btn-subtitle {
    font-size: 0.8rem;
    color: var(--accent-3);
    margin-top: 0.1rem;
}

.repo-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.repo-name {
    font-weight: 600;
    font-size: 1.05rem;
    color: #e2e8f0;
}

.repo-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Стили для баннера */
.banner-container {
    position: absolute;
    right: 50%;
    margin-right: 280px; /* Половина макс-ширины карточки (240px) + отступ 40px */
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    max-width: 320px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

@media (max-width: 1150px) {
    .banner-container {
        position: static;
        right: auto;
        margin-right: 0;
        top: auto;
        transform: none;
    }
}

.aeza-banner {
    display: block;
    width: 100%;
    max-width: 320px;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--btn-border);
}

.aeza-banner:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.aeza-banner img {
    width: 100%;
    height: auto;
    display: block;
}

footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--btn-border);
    display: flex;
    justify-content: center;
    transform: translateZ(10px);
}

.socials {
    display: flex;
    gap: 1.5rem;
}

.social-icon {
    color: var(--text-secondary);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    color: var(--text-primary);
    transform: translateY(-3px) scale(1.1);
}

@media (max-width: 480px) {
    .container {
        padding: 2rem 1.25rem;
        border-radius: 24px;
    }
    
    .avatar {
        width: 84px;
        height: 84px;
        font-size: 2rem;
    }
    
    h1 {
        font-size: 1.5rem;
    }
}