/* === GLOBAL RESET & VARIABLES === */
:root {
    --bg-color: #0a0a0a;
    --card-bg: rgba(20, 20, 20, 0.6);
    --text-color: #e0e0e0;
    --accent-color: #ffffff;
    --border-color: rgba(255, 255, 255, 0.1);
    --hover-bg: rgba(255, 255, 255, 0.05);
    --font-main: 'Inter', sans-serif;
    --font-mono: 'Space Grotesk', monospace;
    --grid-color: rgba(255, 255, 255, 0.03);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center; /* Центрирование по вертикали на больших экранах */
    perspective: 1000px;
}

/* === BACKGROUND === */
#stars, #stars2, #stars3 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: transparent;
}

/* Grid Animation */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background-image: 
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 40px 40px;
    transform: perspective(500px) rotateX(60deg) translateY(-100px) translateZ(-200px);
    animation: gridMove 20s linear infinite;
    z-index: -1;
    pointer-events: none;
}

@keyframes gridMove {
    0% { transform: perspective(500px) rotateX(60deg) translateY(0) translateZ(-200px); }
    100% { transform: perspective(500px) rotateX(60deg) translateY(40px) translateZ(-200px); }
}

/* === CONTAINER === */
.container {
    width: 100%;
    max-width: 680px; /* Немного шире для карточек */
    padding: 2rem 1.5rem;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* === CARDS (Glassmorphism) === */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

/* === HEADER === */
.profile-card {
    text-align: center;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1rem;
    position: relative;
}

.avatar-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.avatar:hover {
    transform: scale(1.05);
    border-color: var(--accent-color);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

.status-indicator {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 3px solid var(--bg-color);
    z-index: 2;
}

.status-indicator.online { background-color: #43b581; box-shadow: 0 0 10px #43b581; }
.status-indicator.idle { background-color: #faa61a; box-shadow: 0 0 10px #faa61a; }
.status-indicator.dnd { background-color: #f04747; box-shadow: 0 0 10px #f04747; }
.status-indicator.offline { background-color: #747f8d; }

.username {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
    font-family: var(--font-mono);
    cursor: default;
}

.tagline {
    font-size: 1rem;
    color: #888;
    font-family: var(--font-mono);
    margin-bottom: 1.5rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.05);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    font-size: 0.85rem;
    font-family: var(--font-mono);
    color: #bbb;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}
.status-dot.online { background-color: #43b581; }
.status-dot.idle { background-color: #faa61a; }
.status-dot.dnd { background-color: #f04747; }
.status-dot.offline { background-color: #747f8d; }

/* === TYPOGRAPHY === */
.section-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.title-icon {
    color: #666;
    font-size: 0.8em;
}

.title-emoji {
    width: 24px;
    height: 24px;
    vertical-align: middle;
}

/* === ABOUT === */
.about-section p {
    margin-bottom: 1rem;
    color: #ccc;
    font-size: 0.95rem;
}
.about-section .note {
    font-size: 0.8rem;
    color: #666;
    font-style: italic;
    border-left: 2px solid #333;
    padding-left: 10px;
    margin-top: 15px;
}

/* === TIPS SECTION === */
.tips-section {
    cursor: pointer;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(20, 20, 20, 0.6) 100%);
    border: 1px solid rgba(255, 215, 0, 0.2);
}
.tips-section:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(20, 20, 20, 0.7) 100%);
    border-color: rgba(255, 215, 0, 0.4);
}
.tips-content {
    display: flex;
    align-items: center;
    gap: 15px;
}
.tips-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tips-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 2px;
}
.tips-info p {
    font-size: 0.85rem;
    color: #aaa;
}
.tips-arrow {
    margin-left: auto;
    font-size: 1.5rem;
    color: #666;
    transition: transform 0.2s;
}
.tips-section:hover .tips-arrow {
    transform: translateX(5px);
    color: #ffd700;
}

/* === PROJECTS === */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.project-item {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.2rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.project-item:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.project-logo {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    object-fit: contain;
    border-radius: 8px; /* Slight rounding for logos */
}
.emoji-icon {
    width: 42px;
    height: 42px;
}

.project-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: #fff;
    font-family: var(--font-mono);
}

.project-item p {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 2rem; /* Space for status */
    flex-grow: 1;
}

.project-status {
    position: absolute;
    bottom: 1.2rem;
    right: 1.2rem;
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.project-status.active {
    background: rgba(67, 181, 129, 0.15);
    color: #43b581;
    border: 1px solid rgba(67, 181, 129, 0.3);
}

.project-status.wip {
    background: rgba(250, 166, 26, 0.15);
    color: #faa61a;
    border: 1px solid rgba(250, 166, 26, 0.3);
}

/* On-Hold Projects List */
.projects-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.project-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1rem;
    background: rgba(255,255,255,0.02);
    border-radius: 8px;
    text-decoration: none;
    color: #888;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.project-row:hover {
    background: rgba(255,255,255,0.05);
    color: #ccc;
}

.project-name {
    font-family: var(--font-mono);
    font-weight: 600;
}

.project-desc {
    font-size: 0.8rem;
    color: #555;
    margin-left: auto;
    margin-right: 10px;
    display: none; /* Hide on mobile */
}

@media (min-width: 500px) {
    .project-desc { display: block; }
}

.status-emoji {
    width: 16px;
    height: 16px;
    opacity: 0.6;
}

/* === MUSIC === */
.music-player {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(0,0,0,0.3);
    padding: 1rem;
    border-radius: 12px;
}

.album-art {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    background: #333;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

@keyframes spin { 100% { transform: rotate(360deg); } }

.track-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.track-name {
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.95rem;
}

.artist-name {
    font-size: 0.85rem;
    color: #888;
}

/* === SOCIALS === */
.socials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 1rem;
    border-radius: 12px; /* Less rounded, more boxy */
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s, opacity 0.2s;
    color: #fff;
    font-family: var(--font-mono);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.social-link:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.social-link svg {
    width: 24px;
    height: 24px;
}

.telegram { background: #229ED9; }
.discord { background: #5865F2; }

/* === FOOTER & COUNTER === */
.site-footer {
    text-align: center;
    padding: 2rem 0;
    color: #555;
    font-size: 0.8rem;
    font-family: var(--font-mono);
}

.visitor-count {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1rem;
    background: rgba(0,0,0,0.3);
    padding: 10px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
}

.moe-counter {
    display: flex;
    height: 30px;
    gap: 0; /* Цифры слитно */
}

.moe-digit {
    height: 100%;
    width: auto;
}

.visitor-label {
    margin-top: 5px;
    font-size: 0.7rem;
    letter-spacing: 2px;
    opacity: 0.5;
    text-transform: uppercase;
}

/* === RESPONSIVE === */
@media (max-width: 600px) {
    .container { padding: 1rem; }
    .projects-grid { grid-template-columns: 1fr; }
    .username { font-size: 2rem; }
}

/* === PRICELIST === */
.pricelist-section { background: rgba(255,255,255,0.02); }
.pricelist-wrapper { width: 100%; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,0.1); }
.pricelist-img { width: 100%; height: auto; display: block; transition: transform 0.3s ease; }
.pricelist-wrapper:hover .pricelist-img { transform: scale(1.02); }
