* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: #f5f5f7;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
    color: #1d1d1f;
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: -0.022em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@font-face {
    font-family: 'Againts';
    src: url('../asserts/againts.woff') format('woff');
}

#main-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 120px 40px 80px;
    text-align: center;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.avatar-wrapper {
    margin-bottom: 60px;
    animation: fadeIn 1s ease-out 0.2s both;
}

.avatar-wrapper img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.avatar-wrapper img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.site-title {
    font-family: 'Againts', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 72px;
    font-weight: 80;
    color: #1d1d1f;
    margin-bottom: 80px;
    letter-spacing: -0.01em;
    line-height: 1.05;
    animation: fadeIn 1s ease-out 0.4s both;
}

.navigation-wrapper {
    margin: 80px 0;
    animation: fadeIn 1s ease-out 0.6s both;
}

.navigation-list {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    padding: 0;
}

.navigation-item {
    margin: 0;
}

.navigation-link {
    color: #1d1d1f;
    text-decoration: none;
    font-size: 19px;
    font-weight: 400;
    letter-spacing: 0.01em;
    position: relative;
    transition: color 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 8px 0;
}

.navigation-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #1d1d1f;
    transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.navigation-link:hover {
    color: #1d1d1f;
}

.navigation-link:hover::after {
    width: 100%;
}

.page-footer {
    margin-top: 120px;
    padding-top: 40px;
    border-top: 1px solid #d2d2d7;
    animation: fadeIn 1s ease-out 0.8s both;
}

.footer-content {
    color: #86868b;
    font-size: 12px;
    line-height: 1.33337;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.footer-link {
    color: #86868b;
    text-decoration: none;
    transition: color 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.footer-link:hover {
    color: #1d1d1f;
    text-decoration: none;
}

.footer-copyright {
    margin-top: 12px;
}

@media (max-width: 1068px) {
    #main-container {
        padding: 100px 30px 60px;
    }

    .site-title {
        font-size: 56px;
    }

    .navigation-list {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    #main-container {
        padding: 80px 20px 40px;
    }

    .avatar-wrapper {
        margin-bottom: 40px;
    }

    .avatar-wrapper img {
        width: 160px;
        height: 160px;
    }

    .site-title {
        font-size: 48px;
        margin-bottom: 60px;
    }

    .navigation-wrapper {
        margin: 60px 0;
    }

    .navigation-list {
        flex-direction: column;
        gap: 24px;
    }

    .navigation-link {
        font-size: 17px;
    }

    .page-footer {
        margin-top: 80px;
        padding-top: 30px;
    }
}

@media (max-width: 480px) {
    #main-container {
        padding: 60px 16px 30px;
    }

    .avatar-wrapper img {
        width: 140px;
        height: 140px;
    }

    .site-title {
        font-size: 36px;
        margin-bottom: 50px;
    }

    .navigation-wrapper {
        margin: 50px 0;
    }

    .navigation-list {
        gap: 20px;
    }
}

@media (prefers-color-scheme: dark) {
    body {
        background: #000;
        color: #f5f5f7;
    }

    .site-title {
        color: #f5f5f7;
    }

    .navigation-link {
        color: #f5f5f7;
    }

    .navigation-link::after {
        background: #f5f5f7;
    }

    .navigation-link:hover {
        color: #f5f5f7;
    }

    .page-footer {
        border-top-color: #424245;
    }

    .footer-content {
        color: #86868b;
    }

    .footer-link {
        color: #86868b;
    }

    .footer-link:hover {
        color: #f5f5f7;
    }
}
