* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}
nav {
    background-color: rgb(26, 6, 177);
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 2rem;
    z-index: 100;
}

nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    justify-content: flex-end;
}nav a {
    text-decoration: none;
    color: white;
    font-weight: bold;
}
nav a:hover {
    color: yellow;
}
/* ...existing code... */

body {
    font-family: Arial, sans-serif;
    background: whitesmoke;
    color: #222;
    padding-top: 70px; /* nav-ийн өндөр */
}

section {
    max-width: 900px;
    margin: 2rem auto;
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

h1, h2 {
    color: rgb(26, 6, 177);
    margin-bottom: 1rem;
}
section h2 {
    margin-top: 2rem;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
    color: #274C8E;
}

#hero {
    text-align: center;
    background: url(https://fastly.picsum.photos/id/11/2500/1667.jpg?hmac=xxjFJtAPgshYkysU_aqx2sZir-kIOjNR9vx0te7GycQ) no-repeat center center/cover;
    position: relative;
    padding: 4rem 2rem;
    color: #fff;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#hero a {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.7rem 2rem;
    background: rgb(26, 6, 177);
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.2s;
}

#hero a:hover {
    background: #1a6bb1;
}
.profile-pic {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}
.about-content img {
    flex-shrink: 0;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
}
.about-content p {
    flex-grow: 1;
    line-height: 1.6;
}
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2rem;
}

.skill-grid {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}
.skill-grid:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.skill-grid h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    color: #274C8E;
}

.skill-grid p {
    color: #666;
    font-size: 0.9rem;
}

.project-grid {
    display: grid;
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

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

.project-grid h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    color: #274C8E;
}

.project-grid p {
    color: #666;
    font-size: 0.9rem;
}
.project-grid img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1rem;
}

#contact form {
    max-width: 600px;
    margin: 0 auto;
    display: grid;
    flex-direction: column;
    gap: 1rem;
}
#contact input,
#contact textarea {
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
}
#contact input:focus,
#contact textarea:focus {
    border-color: rgb(26, 6, 177);
    outline: none;
}
#contact textarea {
    height: 100px;
    resize: vertical;
}
#contact button {
    background: rgb(26, 6, 177);
    color: #fff;
    border: none;
    padding: 0.7rem 2rem;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s ease;
}

#contact button:hover {
    background: #1a6bb1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

footer {
    text-align: center;
    padding: 1rem 0;
    background: rgb(26, 6, 177);
    color: #fff;
    margin-top: 2rem;
    border-radius: 0 0 12px 12px;
}

/* Responsive */
@media (max-width: 600px) {
    nav ul {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-end;
    }
    section {
        padding: 1rem;
        margin: 2rem;
        border-radius: 8px;
        box-shadow: none;
    }
    #hero {
        padding: 2rem 1rem;
        height: auto;
        background-size: cover;
        background-position: center;
        box-shadow: none;
        border-radius: 8px;
        margin-bottom: 1rem;
    }
}