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

:root {
    --color-background: #f9f9f9;
    --color-text-primary: #111111;
    --color-text-secondary: #636363;
    --font-body: 'Lato', sans-serif;
    --font-heading: 'Lato', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--color-text-primary);
    background-color: var(--color-background);
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: url('images/background.png');
    background-repeat: repeat-x;
    background-size: auto 100%;
    background-position: center center;
    animation: slideBackground 600s linear infinite;
}

@keyframes slideBackground {
    from {
        background-position: 0 center;
    }
    to {
        background-position: 10000px center;
    }
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 5rem 2rem 6rem 2rem;
}

/* Hero Section */
.hero {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    min-height: 85vh;
}

.profile-image {
    width: 180px;
    height: 180px;
    border-radius: 0 30px 0 30px;
    object-fit: cover;
    flex-shrink: 0;
    border: 5px solid #111111;
}

.hero-text {
    display: flex;
    flex-direction: column;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 900;
    color: var(--color-text-primary);
    line-height: 1;
    margin-bottom: 2rem;
}

.intro {
    color: var(--color-text-primary);
    margin-bottom: 0;
    line-height: 1.5;
}

/* Section Titles */
h2 {
    font-family: var(--font-heading);
    font-size: 1.7rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: var(--color-text-primary);
}

/* About Section */
.about {
    margin-bottom: 3rem;
}

.about h2 {
    margin-bottom: 0.5rem;
}

.about p {
    margin-bottom: 1rem;
    color: var(--color-text-primary);
    line-height: 1.5;
}

.about p:last-child {
    margin-bottom: 0;
}

/* Experience Section */
.experience {
    margin-bottom: 3rem;
}

.experience h2 {
    margin-bottom: 0.7rem;
}

.experience-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.experience-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}

.experience-logo {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid #111111;
}

.experience-details {
    display: flex;
    flex-direction: column;
}

.experience-details .date {
    font-size: 0.7rem;
    color: var(--color-text-primary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1.2;
}

.experience-details h3 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-primary);
    line-height: 1.7;
}

.experience-details .company {
    font-size: 0.9rem;
    color: var(--color-text-primary);
    line-height: 1.2;
}

/* Contacts Section */
.contacts {
    margin-bottom: 2rem;
}

.contacts h2 {
    margin-bottom: 0.5rem;
}

.contacts > p {
    color: var(--color-text-primary);
    margin-bottom: 1.5rem;
}

.contacts > p a {
    color: #0066cc;
    text-decoration: none;
    font-weight: 700;
}

.contacts > p a:hover {
    color: #b84f2e;
}

/* Social Links */
.social {
    display: flex;
    gap: 1.5rem;
}

.social a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 1rem;
}

.social a:hover {
    color: var(--color-text-primary);
}

/* Footer */
.footer {
    position: relative;
    padding: 1.2rem 6rem;
    background: rgba(255, 255, 255, 0.3);
    border-top: 1px solid #111111;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left {
    font-size: 1rem;
    color: var(--color-text-primary);
    font-weight: 400;
}

.footer-right {
    display: flex;
    gap: 1rem;
}

.footer-right a {
    color: #111111;
    display: flex;
    align-items: center;
}

.footer-right a:hover {
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 600px) {
    .hero {
        flex-direction: column-reverse;
    }

    .container {
        padding: 3rem 1.25rem;
    }

    .profile-image {
        width: 140px;
        height: 140px;
    }

    .hero h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .experience-logo {
        width: 40px;
        height: 40px;
    }

    .footer {
        padding: 1.2rem 1.25rem;
    }
}
