:root {
    --bg: #09090b; 
    --text-main: #fafafa;
    --text-muted: #a1a1aa;
    --border: rgba(255, 255, 255, 0.1); /* Сделали границы чуть ярче */
    --card-bg: rgba(255, 255, 255, 0.04); /* Усилили видимость карточек */
    --hover-bg: rgba(255, 255, 255, 0.07);
    --accent: #ffffff;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg);
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Текстура шума */
.noise-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    pointer-events: none;
    z-index: 50;
    opacity: 0.03; 
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' 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)'/%3E%3C/svg%3E");
}

/* Расширенный контейнер */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 32px 64px 32px;
}

/* Hero Section */
.hero {
    min-height: auto; 
    padding-top: 60px;   
    padding-bottom: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.badge {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: monospace;
    letter-spacing: 0.05em;
}

.name {
    font-size: 3.5rem; 
    font-weight: 500;
    letter-spacing: -0.03em;
    margin: 16px 0 8px 0;
}

.tagline {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin: 0 0 24px 0;
    max-width: 85%;
}

.tech-stack-mini {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.tech-stack-mini .dot { margin: 0 10px; opacity: 0.5; }

/* Кнопки */
.hero-actions { display: flex; gap: 16px; }

.btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg);
}

.btn-primary:hover { opacity: 0.9; }

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border);
}

.btn-secondary:hover { background: var(--hover-bg); }

/* Контентные секции */
.section-block { margin-bottom:24px; }

.section-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 20px;
    font-weight: 600;
}

.section-text {
    font-size: 1.05rem;
    color: var(--text-main);
    margin: 0;
    max-width: 95%; 
}

/* Карточки */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px; 
    transition: background 0.2s ease, border-color 0.2s ease;
}

.card:hover {
    background: var(--hover-bg);
    border-color: rgba(255, 255, 255, 0.2);
}

.card:hover {
    background: var(--hover-bg);
    border-color: rgba(255, 255, 255, 0.2);
}

.project-header h3 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    font-weight: 500;
}

.project-desc {
    color: var(--text-muted);
    font-size: 1rem;
    margin: 0 0 20px 0;
}

.highlights {
    margin: 0 0 24px 0;
    padding-left: 20px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.highlights li { margin-bottom: 8px; }

/* Чипы (Badges) */
.tech-chips { display: flex; flex-wrap: wrap; gap: 10px; }

.chip {
    font-size: 0.8rem;
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text-muted);
}

/* Bento Grid для Контактов и Навыков */
.bento-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 16px;
}

.card-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0 0 16px 0;
}

.contact-link {
    display: block;
    color: var(--text-main);
    text-decoration: none;
    font-size: 1rem;
    margin-bottom: 14px;
    transition: color 0.2s;
}

/* Верхняя панель (язык) */
.top-bar {
    display: flex;
    justify-content: flex-end;
    padding-top: 32px; 
    margin-bottom: -32px; 
    position: relative;
    z-index: 10;
}

.lang-switch {
    font-size: 0.85rem;
    font-family: monospace;
    display: flex;
    gap: 12px;
    align-items: center;
}

.lang-switch a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.lang-switch a.active, 
.lang-switch a:hover {
    color: var(--text-main);
}

.lang-switch .divider {
    color: var(--border);
    user-select: none;
}

@media (max-width: 600px) {
    .container { padding: 0 20px 48px 20px; }
    .bento-grid { grid-template-columns: 1fr; gap: 16px; }
    .name { font-size: 2.8rem; }
    .card { padding: 24px; }
    .top-bar { padding-top: 24px; }
}

.project-footer {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05); 
    display: flex;
    justify-content: flex-start;
}

.project-action-link {
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    color: #fff; 
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s ease, transform 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.project-action-link:hover {
    opacity: 1;
    transform: translateX(2px); 
}
