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

body {
    font-family: 'Inter', sans-serif;
    background-image: url('image1.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    color: #333;
    overflow-x: hidden;
}

.container {
    min-height: 92vh;
    position: relative;
    padding: 40px;
    display: flex;
    flex-direction: column;
}

/* Top controls */
.top-controls {
    position: absolute;
    top: 40px;
    right: 40px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 10;
}

.language-buttons {
    display: flex;
    gap: 8px;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 400;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-1px);
}

.lang-btn.active {
    background: #333;
    color: white;
}

.download-btn {
    background: rgba(53, 43, 43, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 400;
    text-align: center;
    color: #dde6e7;
    text-decoration: none;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
    display: inline-block;
}

.download-btn:hover {
    color: #dde6e7;
    background: rgb(53, 43, 43);
    transform: translateY(-1px);
}

/* Background text */
.background-text {
    position: absolute;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 48px;
    font-weight: 300;
    color: rgba(0, 0, 0, 0.8);
    line-height: 1.1;
    letter-spacing: -1px;
    z-index: 1;
}

/* Main content */
.main-content {
    flex: 1;

    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 5;
    position: relative;
}

.art-by {
    margin-top: 300px;
    opacity: 0; /* Сначала невидим */
    animation: slideDown 1.5s ease-out forwards;
    margin-left: 50%;
    display: flex;
    font-size: 24px;
    font-weight: 300;
    color: rgba(0, 0, 0, 0.7);
    margin-bottom: 10px;
    letter-spacing: 1px;
}

@keyframes slideDown {
      0% {
        transform: translateY(-100%); /* Начало сверху */
        opacity: 0;
      }
      100% {
        transform: translateY(0); /* Конечная позиция */
        opacity: 1;
      }
    }

.name {
    opacity: 0;
    animation: slideDown 1.5s ease-out forwards;
    margin-left: 40%;
    font-size: 64px;
    font-weight: 600;
    color: #000;
    margin-bottom: 500px;
    letter-spacing: -2px;
    line-height: 1.1;
}

/* Navigation */
.nav-menu {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 400;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
    display: inline-block;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px 0;
    z-index: 5;
    animation: fadeIn 1s ease-out 2s both;
}

.footer p {
    background-color: rgb(53, 43, 43, 0.9);
    margin: 0;
    color: #b0b0b0;
    font-size: 0.9em;
    padding: inherit;
}

@media (max-width: 1200px) {
    .skills-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .page-title h1 {
        margin-top: 125px;
        font-size: 36px;
        letter-spacing: 4px;
    }
    
    .background-text {
        font-size: 36px;
    }
}

@media (max-width: 1024px) {
    .nav-menu {
        width: 250px;
        flex-direction: column;
        gap: 10px;
    }
    
    .certificates-grid {
        grid-template-columns: 1fr;
    }

    .art-by {
        margin-left: 420px;
        font-size: 20px;
    }

    .name {
        margin-left: 290px;
        font-size: 48px;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    .top-controls {
        position: absolute;
        top: 40px;
        right: 40px;
        display: flex;
        flex-direction: column;
        gap: 15px;
        z-index: 10;
    }

    .language-buttons {
        flex-direction: column;
        gap: 5px;
    }

    .background-text {
        left: 20px;
        font-size: 32px; /* базовый размер для планшетов */
    }

    .name {
        font-size: 40px;
        margin-bottom: 40px;
    }

    .main-content {
        flex: 0;
    }

    .nav-menu {
        flex-direction: column;
        width: 180px;
        max-width: 300px;
        top: 20px;
        left: 20px;
        gap: 5px;
    }

    .nav-btn {
        width: 100%;
        text-align: center;
    }

    .page-title h1 {
        font-size: 28px;
        letter-spacing: 2px;
    }

    .skills-section,
    .languages-section,
    .certificates-section {
        padding: 30px 20px;
    }

    .skill-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .skill-name {
        min-width: auto;
    }

    .skill-bar {
        width: 100%;
    }
}

/* ---------- 480px и меньше ---------- */
@media (max-width: 480px) {
    .background-text {
        font-size: 20px; /* уменьшение для телефонов */
    }

    .name {
        font-size: 32px;
        margin-left: 75px;
    }

    .art-by {
        margin-left: 160px;
        margin-top: 150px;
        font-size: 14px;
    }

    .page-title h1 {
        margin-top: 125px;
        font-size: 24px;
        letter-spacing: 1px;
    }

    .skills-section,
    .languages-section,
    .certificates-section {
        padding: 20px 15px;
    }

    .certificate-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .nav-menu {
        width: 150px; /*
        max-width: 250px; /* под телефон */
        gap: 10px;
    }

    .top-controls {
        top: 20px;
        right: 20px;
        gap: 10px;
    }
}
