@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&family=Lato:wght@400;700&display=swap');
body {
    font-family: 'Inter', 'Lato', Arial, sans-serif;
    background: #fff;
    margin: 0; padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
}
@keyframes bgMove {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}
.container {
    max-width: 800px;
    margin: 60px auto;
    background: #fff;
    padding: 55px 60px;
    border-radius: 24px;
    box-shadow: 0 12px 48px rgba(0,0,0,0.12);
    position: relative;
    overflow: hidden;
    border: 2px solid #111;
    animation: fadeIn 1.2s cubic-bezier(.42,0,.58,1);
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}
.container:before, .container:after {
    display: none;
}
h1 {
    color: #111;
    margin-bottom: 10px;
    font-size: 2.7em;
    letter-spacing: 2px;
    font-weight: 800;
    animation: popIn 1.1s cubic-bezier(.42,0,.58,1);
}
@keyframes popIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}
h2 {
    color: #111;
    margin-top: 36px;
    margin-bottom: 14px;
    font-size: 1.35em;
    border-bottom: 2px solid #111;
    display: inline-block;
    padding-bottom: 2px;
    font-weight: 700;
}
.profile {
    display: flex;
    align-items: center;
    margin-bottom: 38px;
    z-index: 1;
    position: relative;
    animation: slideIn 1.2s cubic-bezier(.42,0,.58,1);
}
@keyframes slideIn {
    from { opacity: 0; transform: translateX(-60px); }
    to { opacity: 1; transform: translateX(0); }
}
.avatar {
    width: 110px; height: 110px;
    border-radius: 50%;
    margin-right: 34px;
    background: #fff;
    object-fit: cover;
    border: 5px solid #111;
    box-shadow: 0 2px 18px #1112;
    transition: transform 0.3s, box-shadow 0.3s;
}
.avatar:hover {
    transform: scale(1.12) rotate(-4deg);
    box-shadow: 0 8px 32px #1118;
}
.info {
    z-index: 1;
}
.tab-bar {
    width: 100%;
    background: #111;
    box-shadow: 0 2px 12px #1112;
    border-radius: 18px 18px 0 0;
    margin-bottom: 0;
    position: relative;
    z-index: 2;
}
@keyframes barMove {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}
.tab-btn[data-tab="professional"] {
    --tab-color: #111;
}
.tab-btn[data-tab="hobbies"] {
    --tab-color: #111;
}
.tab-btn[data-tab="about"] {
    --tab-color: #111;
    color: #fff;
}
.tab-btn.active {
    color: #fff;
    background: #111;
    box-shadow: 0 2px 12px #1118;
    font-weight: 700;
    letter-spacing: 1px;
}
.tab-btn[data-tab="about"].active {
    color: #fff;
}
.tab-btn:hover {
    color: #fff;
    background: #333;
}
.tabs {
    display: flex;
    justify-content: center;
    gap: 0;
    position: relative;
    background: none;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    width: 100%;
    margin: 0;
}
.tab-btn {
    background: none;
    color: #bfc9d1;
    border: none;
    border-radius: 0;
    padding: 18px 38px 14px 38px;
    font-size: 1.12em;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
    outline: none;
    position: relative;
    z-index: 1;
}
.tab-btn.active {
    color: #fff;
}
.tab-btn:hover {
    color: #6dd5fa;
    background: linear-gradient(90deg, #2980b9 0%, #6dd5fa 100%);
}
.tab-bar::after {
    content: '';
    position: absolute;
    left: calc(var(--active-index, 0) * 33.3333%);
    bottom: 0;
    width: 33.3333%;
    height: 5px;
    background: #fff;
    border-radius: 3px 3px 0 0;
    transition: left 0.3s cubic-bezier(.42,0,.58,1);
    z-index: 1;
}
.tab-btn i {
    margin-right: 8px;
}
.tab-content {
    animation: fadeTab 0.7s cubic-bezier(.42,0,.58,1);
    background: #fff;
    border-radius: 0 0 18px 18px;
    margin-bottom: 0;
    margin-top: 0;
    padding: 32px 0 0 0;
    color: #111;
}
#professional h2, #hobbies h2, #about h2 {
    border-bottom: 2px solid #111;
}
@keyframes fadeTab {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
ul {
    padding-left: 22px;
    margin-top: 0;
}
li {
    margin-bottom: 10px;
    line-height: 1.7;
    font-size: 1.08em;
}
.contact {
    margin-top: 38px;
}
.contact a {
    color: #2980b9;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s;
}
.contact a:hover {
    color: #232526;
}
@media (max-width: 700px) {
    .container { padding: 20px 8px; }
    .profile { flex-direction: column; align-items: flex-start; }
    .avatar { margin-right: 0; margin-bottom: 12px; }
    .tab-bar { border-radius: 12px 12px 0 0; }
    .tabs { flex-direction: column; width: 100%; border-radius: 0; }
    .tab-btn { width: 100%; padding: 14px 0; }
    .tab-bar::after { display: none; }
}
