body {
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    background-color: #f7f8fa;
    color: #222;
    min-height: 100vh;
    box-sizing: border-box;
}

nav {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    padding: 0.5em 1.5em;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 2em;
}

nav ul li a {
    text-decoration: none;
    color: #444;
    padding: 0.5em 0.8em;
    border-radius: 2px;
    transition: background 0.2s, color 0.2s;
}

nav ul li a.active,
nav ul li a:hover {
    background: #2962ff;
    color: #fff;
}

section.hero {
    background: #2962ff;
    color: #fff;
    text-align: center;
    padding: 5em 2em 4em 2em;
}

.hero-buttons .button {
    margin: 1em 0.5em;
    padding: 0.7em 2em;
    border: none;
    background: #fff;
    color: #2962ff;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    font-size: 1em;
    transition: background 0.2s, color 0.2s;
}

.hero-buttons .button:hover {
    background: #2962ff;
    color: #fff;
    border: 1px solid #fff;
}

section.about, section.projects, section.contact {
    padding: 4em 2em 2em 2em;
    text-align: center;
}

.avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 1em;
}

.skills {
    margin-top: 2em;
}

.skills span {
    background: #2962ff;
    color: #fff;
    display: inline-block;
    padding: 0.5em 1.2em;
    margin: 0.4em;
    border-radius: 18px;
    font-size: 1em;
}

.project-list {
    display: flex;
    justify-content: center;
    gap: 2em;
    flex-wrap: wrap;
    margin-top: 3em;
}

.project-item {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    padding: 2em 1em;
    width: 250px;
    text-align: center;
}

.project-item img {
    width: 100%;
    border-radius: 6px;
    max-height: 130px;
    object-fit: cover;
}

.project-link {
    display: inline-block;
    margin-top: 1em;
    color: #2962ff;
    text-decoration: underline;
    font-weight: bold;
}

section.contact form {
    display: flex;
    flex-direction: column;
    max-width: 370px;
    margin: 0 auto;
    gap: 1.2em;
}

section.contact input, section.contact textarea {
    padding: 1em;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 3px;
}

section.contact button {
    padding: 0.8em;
    background: #2962ff;
    color: #fff;
    border: none;
    border-radius: 3px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

section.contact button:hover {
    background: #0039cb;
}

footer {
    text-align: center;
    margin-top: 4em;
    padding: 1em;
    color: #444;
    font-size: 1em;
    background: #f7f8fa;
    border-top: 1px solid #e0e0e0;
}