html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
    font-family: 'Inter', Arial, sans-serif;
    background: #f7f7f7;
    color: #333;
}
*,
*::before,
*::after {
    box-sizing: inherit;
}

.container {
    width: 100%;
    max-width: 1100px;
    padding: 0 40px;
    margin: 0 auto;
}

header {
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 10;
    width: 100%;
    left: 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
}

.logo {
    font-weight: 700;
    font-size: 20px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: 0.3s;
}

nav a:hover {
    color: #ff6363;
}

.burger {
    display: none;
    width: 28px;
    height: 20px;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.burger span {
    display: block;
    height: 3px;
    background: #333;
    border-radius: 3px;
    transition: 0.3s;
}

.burger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

nav {
    transition: 0.3s;
    max-height: none;
    overflow: visible;
}

nav.open {
    max-height: 300px;
    opacity: 1;
}

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 60px 0;
    gap: 40px;
}

.hero-text {
    flex: 1;
    min-width: 280px;
}

.hero-text h1 {
    font-size: 36px;
    margin-bottom: 15px;
}

.hero-text p {
    color: #555;
    margin-bottom: 25px;
    max-width: 450px;
}

.btn-resume {
    background: #ff6363;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: 0.3s;
}

.btn-resume:hover {
    background: #ff4a4a;
}

.hero-image img {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    max-width: 100%;
    height: auto;
    display: block;
}

.recent-posts {
    margin-top: 40px;
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.card {
    background: #fafafa;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: inherit;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.card h3 {
    margin: 0 0 10px;
}

.card a {
    color: #333;
    text-decoration: none;
}

.card a:hover {
    color: #ff6363;
}

.card p {
    color: #555;
    margin-bottom: 8px;
}

.card span {
    font-size: 13px;
    color: #999;
}

.featured-works {
    margin-top: 60px;
}

.featured-works h2 {
    margin-bottom: 25px;
}

.works {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.work {
    display: flex;
    gap: 20px;
    align-items: center;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.work img {
    width: 140px;
    height: 100px;
    border-radius: 10px;
    object-fit: cover;
    max-width: 100%;
    height: auto;
    display: block;
}

footer {
    text-align: center;
    padding: 20px;
    background: #333;
    color: white;
    margin-top: 80px;
    width: 100%;
    left: 0;
}

footer a {
    color: #ff6363;
}

@media (max-width: 820px) {
    .container {
        padding: 0 20px;
    }

    .burger {
        display: flex;
    }

    nav {
        position: absolute;
        top: 70px;
        right: 0;
        background: white;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    }

    nav ul {
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }

    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-image img {
        width: 200px;
        height: 200px;
        max-width: 100%;
        height: auto;
    }

    .hero-text h1 {
        font-size: 28px;
    }

    .recent-posts {
        padding: 25px;
    }

    .work {
        flex-direction: column;
        text-align: center;
    }

    .work img {
        width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 24px;
    }

    .btn-resume {
        width: 100%;
    }

    .recent-posts {
        padding: 20px;
    }

    .work {
        padding: 15px;
    }
}
