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

body {
    font-family: 'Source Sans 3', 'Source Sans Pro', Helvetica, sans-serif;
    font-weight: 300;
    background: url('bg.jpg') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    color: #414f57;
    letter-spacing: 0.05em;
    line-height: 1.6;
}

#wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2em;
    width: 100%;
}

#main {
    background: rgba(255, 255, 255, 0.82);
    border-radius: 8px;
    padding: 3.5em 3em 2.5em;
    max-width: 480px;
    width: 100%;
    text-align: center;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeInUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.5em;
    box-shadow: 0 0 0 5px #fff, 0 0 0 7px rgba(102, 126, 234, 0.25);
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

h1 {
    font-size: 1.65em;
    font-weight: 400;
    color: #1a202c;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.2em;
}

h2 {
    font-size: 0.95em;
    font-weight: 300;
    color: #1a202c;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 1.2em;
}

p {
    line-height: 1.8;
    margin-bottom: 1em;
    color: #1a202c;
    font-size: 1.05em;
}

hr {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 1.2em 2em 1.5em;
}

.icons {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 0.75em;
    padding: 0;
}

.icons li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #f0f4f8;
    color: #4a5568;
    font-size: 1.15em;
    text-decoration: none;
    transition: all 0.25s ease;
}

.icons li a:hover {
    background: #667eea;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

footer {
    margin-top: 2.5em;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.8em;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

@media (max-width: 520px) {
    #wrapper {
        padding: 1em;
    }

    #main {
        padding: 2.5em 1.5em 2em;
    }

    .avatar {
        width: 110px;
        height: 110px;
        font-size: 1.8em;
    }

    h1 {
        font-size: 1.3em;
    }

    .icons li a {
        width: 42px;
        height: 42px;
        font-size: 1em;
    }
}

@media (max-width: 360px) {
    #wrapper {
        padding: 0.75em;
    }

    h1 {
        font-size: 1.15em;
        letter-spacing: 0.08em;
    }

    h2 {
        letter-spacing: 0.12em;
    }
}
