@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
    --bg-primary: #080808;
    --bg-secondary: #121212;
    --text-main: #ffffff;
    --text-muted: #8e8e93;
    --glass-bg: rgba(18, 18, 18, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.15);
    --accent-glow: rgba(255, 255, 255, 0.05);
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    font-family: var(--font-sans);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Background Video */
.bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.bg-video video {
    width: 100%;
    height: 100%;
    object-fit: fill;
    opacity: 0.45; /* Darkened ambient look to ensure text readability */
}

/* Background blob decorations for liquid depth */
.bg-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    overflow: hidden;
    background: radial-gradient(circle at 50% 50%, #161616 0%, #080808 100%);
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: float 20s infinite alternate ease-in-out;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: #ffffff;
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: #3a3a3a;
    animation-delay: -5s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(5%, 10%) scale(1.1);
    }
}

/* Main Container */
.container {
    width: 100%;
    max-width: 460px;
    padding: 24px;
    z-index: 1;
}

/* Glassmorphism Card Style */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(25px) saturate(160%);
    -webkit-backdrop-filter: blur(25px) saturate(160%);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.8), 
                inset 0 1px 1px rgba(255, 255, 255, 0.1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.03), transparent);
    pointer-events: none;
}

/* Profile Section */
.profile {
    margin-bottom: 28px;
    position: relative;
}

.avatar-container {
    width: 120px;
    height: 120px;
    margin: 0 auto 16px;
    position: relative;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, var(--glass-border), var(--glass-highlight));
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background-color: #1a1a1a;
    display: block;
}

.nickname {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
    background: linear-gradient(180deg, #ffffff 0%, #a5a5a5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: nowrap;
}

.status {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 400;
}


/* Stack Section */
.stack-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.stack-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 28px;
}

.stack-grid .stack-card:last-child:nth-child(odd) {
    grid-column: span 2;
}

.stack-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    padding: 16px;
    transition: background 0.3s, border-color 0.3s, box-shadow 0.3s, transform 0.1s ease-out;
    position: relative;
    cursor: default;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    transform-style: preserve-3d;
}

.stack-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), 
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.stack-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.stack-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Action / Telegram Button */
.tg-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #ffffff;
    color: #000000;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    padding: 16px 28px;
    border-radius: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 12px 30px rgba(255, 255, 255, 0.15);
}

.tg-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(255, 255, 255, 0.25);
    background: #f0f0f0;
}

.tg-btn:active {
    transform: translateY(0);
}

.tg-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Tabs Navigation */
.tabs-nav {
    position: relative;
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 3px;
    z-index: 1;
}

.tabs-indicator {
    position: absolute;
    top: 3px;
    left: 3px;
    height: calc(100% - 6px);
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15),
                inset 0 1px 0px rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: -1;
    pointer-events: none;
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 8px 4px;
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 600;
    transition: color 0.3s ease;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.tab-icon {
    width: 12px;
    height: 12px;
    stroke: currentColor;
    fill: none;
    transition: transform 0.2s ease;
}

.tab-btn:hover .tab-icon {
    transform: scale(1.05);
}

.tab-btn.active {
    color: var(--text-main);
}

.tab-btn:hover:not(.active) {
    color: var(--text-main);
}

/* Tab Content Visibility */
.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

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

/* Projects styling */
.projects-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
    margin-bottom: 24px;
}

.project-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 14px;
    transition: all 0.2s ease;
}

.project-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

.project-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-main);
}

.project-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.project-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.external-icon {
    width: 14px;
    height: 14px;
    opacity: 0.5;
    transition: opacity 0.2s ease, transform 0.2s ease;
    color: var(--text-muted);
}

.project-card-link:hover .external-icon {
    opacity: 1;
    transform: translate(1px, -1px);
    color: var(--text-main);
}

/* Language Switcher */
.lang-switcher {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: rgba(18, 18, 18, 0.45);
    backdrop-filter: blur(25px) saturate(140%);
    -webkit-backdrop-filter: blur(25px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 3px;
    display: flex;
    gap: 2px;
    z-index: 100;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 16px;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 2;
}

.lang-btn.active {
    color: var(--text-main);
}

.lang-pill {
    position: absolute;
    top: 3px;
    left: 3px;
    height: calc(100% - 6px);
    width: calc(50% - 4px);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 1;
    pointer-events: none;
}

.lang-switcher.en .lang-pill {
    transform: translateX(calc(100% + 2px));
}

/* AI Credits Footer styling */
.ai-credits {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: left;
}

.credits-title {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 18px;
    text-align: center;
}

.ai-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ai-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 14px;
    padding: 12px 16px;
    transition: all 0.2s ease;
}

.ai-item:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.07);
}

.ai-logo {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: color 0.3s ease, transform 0.3s ease;
}

.ai-item:hover .ai-logo {
    color: var(--text-main);
    transform: scale(1.1);
}

.ai-info {
    text-align: left;
    flex-grow: 1;
}

.ai-info h4 {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1px;
    color: var(--text-main);
}



/* Responsive Optimization */
@media (max-width: 480px) {
    .container {
        padding: 12px;
    }
    
    .glass-card {
        padding: 16px;
        border-radius: 20px;
    }
    
    .avatar-container {
        width: 100px;
        height: 100px;
        margin-bottom: 12px;
    }
    
    .nickname {
        font-size: 1.1rem;
        white-space: normal;
    }
    
    .status {
        font-size: 0.85rem;
    }

    
    /* Responsive Stack Grid: 1 column on small phones */
    .stack-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .stack-card {
        padding: 12px;
    }
    
    .tabs-nav {
        margin-bottom: 18px;
    }
    
    .tab-btn {
        font-size: 0.72rem;
        padding: 8px 2px;
        gap: 3px;
    }
    
    .tab-icon {
        width: 11px;
        height: 11px;
    }
    
    .lang-switcher {
        bottom: 16px;
        right: 16px;
        padding: 2px;
    }
    
    .lang-btn {
        font-size: 0.7rem;
        padding: 4px 8px;
    }
}

/* Tablet adjustments */
@media (min-width: 481px) and (max-width: 768px) {
    .container {
        max-width: 440px;
        padding: 16px;
    }
}


