:root {
    --bg-dark: #0f0f0f;
    --bg-medium: #1a1a1a;
    --bg-light: #2a2a2a;
    --accent: #eaeaea;
    --text: #eaeaea;
    --text-dim: #999;
    --radius: 14px;
}

/* Базовые стили */
body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: #121212;
    color: #e0e0e0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

.navbar {
    position: sticky;
    top: 20px;
    margin: 0 auto;
    width: 90%;
    max-width: 1100px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 14px 24px;
    background: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(12px);

    border-radius: var(--radius);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.4);
}

.nav-logo {
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    padding: 6px 14px;
    border-radius: var(--radius);
    transition: 0.2s;
}

.nav-links a:hover {
    background: var(--bg-light);
}

.nav-links .active {
    background: var(--bg-light);
}

.intro-card {
    background-color: #1a1a1a;
    margin: 3rem auto;
    max-width: 1000px;
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.intro-photo img {
    width: 220px;
    height: 220px;
    border-radius: 16px;
    object-fit: cover;
    border: 2px solid #333;
}

.intro-text {
    flex: 1;
    min-width: 300px;
}

.intro-text h1 {
    margin: 0 0 1rem 0;
    font-size: 2rem;
    font-weight: 700;
}

.intro-text p {
    line-height: 1.6;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.tech-title {
    text-align: center;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-size: 1.5rem;
}

.tech-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.tech-card {
    background-color: #2a2a2a;
    width: 120px;
    height: 120px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-align: center;
    transition: transform 0.2s, background 0.2s;
    cursor: default;
}

.tech-card svg {
    width: 40px;
    height: 40px;
    fill: black;
}

.tech-card:hover .django {
    fill: #092E20;
}

.tech-card:hover .python {
    fill: #3776AB;
}

.tech-card:hover .fastapi {
    fill: #009688;
}

.tech-card:hover .pandas {
    fill: #150458;
}

.tech-card:hover .flask {
    fill: #3BABC3;
}

.tech-card:hover .numpy {
    fill: #013243;
}

.tech-card:hover .git {
    fill: #F05032;
}

.tech-card:hover {
    transform: translateY(-5px);
    background-color: #3a3a3a;
}

.data-card:hover .data-gmail{
    fill: #EA4335;
}

.data-card:hover .data-telegram{
    fill: #26A5E4;
}

.data-card:hover .data-github{
    fill: #181717;
}

.data-card:hover .data-phone path{
    stroke: #e0e0e0;
}

.data-card:hover .data-location path{
    stroke: #e0e0e0;
}

.data-card:hover .data-linkedin{
    fill: #2088FF;
}

footer {
    background-color: #121212;
    padding: 1rem 2rem;
    text-align: center;
    font-size: 0.9rem;
    margin-top: auto;
}

.data-title {
    text-align: center;
    margin-top: 3rem;
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 1.4rem;
}

.data-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto 3rem auto;
}

.data-card {
    background-color: #2a2a2a;
    border-radius: 12px;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: transform 0.2s, background 0.2s;
    height: 50px;
    text-decoration: none;
    color: inherit;
}

.data-card:hover {
    transform: translateY(-2px);
    background-color: #3a3a3a;
    cursor: pointer;
}

.data-card svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.data-card span {
    font-size: 0.88rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 700px) {
    .data-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .data-cards {
        grid-template-columns: 1fr;
    }
}


.cv-area {
    max-width: 900px;
    margin: 40px auto;
}

.cv-frame {
    background: #1c1c1c;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.45);

    min-height: 794px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cv-iframe {
    width: 100%;
    border: none;
    border-radius: 12px;
    overflow-y: scroll;
    background: #fff;
    min-height: 794px;
}

