:root {
    --accent: #a5d8ff; 
    --accent-dim: rgba(165, 216, 255, 0.1);
    --silver: #e2e8f0;
    --bg-dark: #04060a;
    --card-bg: #0b0f1a;
    --block-bg: rgba(255, 255, 255, 0.02);
    --text-primary: #f8fafc;
    --text-muted: #64748b;
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body {
    background-color: var(--bg-dark);
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-primary);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Убираем возможный скролл */
    overflow: hidden; 
}

.footer-block {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Распределит контент равномерно */
    padding: 20px;
    min-height: 160px; /* Дай блоку немного высоты, чтобы было пространство */
}

.icon-box {
    width: 35px;
    display: flex;
    justify-content: center;
    color: var(--accent);
    font-size: 1.1rem;
    filter: drop-shadow(0 0 8px rgba(165, 216, 255, 0.4));
}

.profile-card {
    display: flex;
    width: 950px;
    height: 580px;
    background-color: var(--card-bg);
    border-radius: 32px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
}

.card-art { 
    flex: 1; 
}

.card-art img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}

.card-content {
    flex: 1.2;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
    height: 100%;
}

.glass-block {
    background: var(--block-bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 25px;
    backdrop-filter: blur(10px);
}

.glass-block:hover {
    border-color: rgba(57, 97, 208, 0.2);
    background: rgba(183, 255, 93, 0.01);
}

.header-block { 
    padding: 12px; 
}

.tech-icons { 
    display: flex; 
    justify-content: space-between;
    gap: 10px;
    width: 100%;
}

.tech-tag {
    flex: 1;
    background: rgba(165, 216, 255, 0.05);
    border: 1px solid var(--accent-dim);
    color: var(--accent);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.65rem;
    text-align: center;
    padding: 8px;
    border-radius: 8px;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 1px;
}

.tech-tag:hover {
    background: rgba(165, 216, 255, 0.1);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.text-box {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-primary);
    padding-left: 5px;
}

.info-block {
    display: flex;
    flex-direction: column;
    gap: 18px;
    border-left: 3px solid var(--gold);
    padding: 25px;
}

.data-row {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.95rem;
    font-weight: 400;
}

.data-row {
    display: flex;
    align-items: center;
}   

.summary-wrapper {
    border-left: 2px solid var(--accent);
    padding-left: 20px;
    background: linear-gradient(to right, rgba(183, 255, 93, 0.05), transparent);
    border-radius: 0 8px 8px 0;
}

.summary {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

.summary-section {
    border-left: 3px solid var(--accent);
    padding-left: 20px;
    background: linear-gradient(to right, rgba(165, 216, 255, 0.03), transparent);
    margin-bottom: 10px;
}

.socials { 
    display: flex; 
    gap: 25px; 
    margin-top: 10px;
}

.social-item {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 1.4rem;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-item:hover {
    color: var(--accent);
    background: rgba(165, 216, 255, 0.05);
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(165, 216, 255, 0.2);
}

.socials i { 
    color: var(--text-muted); 
    font-size: 1.3rem; 
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
}

.socials i:hover { 
    color: var(--accent); 
    transform: translateY(-3px); 
    filter: drop-shadow(0 0 8px var(--accent));
}

.socials-wrapper {
    display: flex;
    justify-content: flex-start;
    gap: 12px;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 10px;
}

.projects-btn-container {
    flex-grow: 1; /* Заставит этот блок занять свободное место */
    display: flex;
    align-items: center; /* Центрирует кнопку по вертикали между текстом и соцсетями */
}

.item {
    background: rgba(255, 255, 255, 0.02); /* Почти прозрачный фон */
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 12px;
    transition: 0.3s ease;
}

.item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}

.item-head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.projects-link {
    width: 100%; /* Чтобы кнопка была на всю ширину */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px;
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    transition: 0.3s ease;
}


.projects-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px); /* Легкий эффект приподнимания */
}

@media (max-width: 850px) {
    body {
        overflow-y: auto;
        align-items: flex-start;
        padding: 20px;
    }

    .profile-card {
        flex-direction: column;
        width: 100%;
        height: auto;
        max-width: 450px;
        border-radius: 24px;
    }

    .card-art {
        width: 100%;
        height: 300px;
    }

    .card-content {
        padding: 25px;
        gap: 20px;
    }

    .glass-block {
        padding: 15px;
    }

    .tech-icons {
        flex-wrap: wrap;
        gap: 8px;
    }

    .tech-tag {
        font-size: 0.6rem;
        padding: 6px;
    }

    .social-item {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .info-block {
        padding: 20px;
    }
}

@media (max-width: 380px) {
    .card-art {
        height: 250px;
    }
    
    .tech-tag {
        flex: none;
        width: calc(50% - 4px);
    }
}