body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 0;
    background-color: #f9fafb;
    color: #1f2937;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 15px 20px;
    position: sticky;
    top: 0;
}

.nav-left a {
    margin-right: 20px;
    text-decoration: none;
    color: #374151;
    font-weight: 500;
}

.nav-left a:hover {
    color: #111827;
}

.nav-name {
    font-weight: 600;
    color: #111827;
    letter-spacing: 0.3px;
}

.nav-name a {
    text-decoration: none;
    color: inherit;
}

/* Layout */
.container {
    max-width: 900px;
    margin: auto;
    padding: 40px 20px;
}

/* Cards */
.card, .project {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Profile section */
.profile {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
    align-items: start;
}

.profile-left img {
    width: 100%;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.profile-right h1 {
    margin-top: 0;
    margin-bottom: 10px;
}

.title {
    color: #6b7280;
    margin-bottom: 15px;
}

/* Images & videos */
.project img,
.project video {
    width: 100%;
    border-radius: 10px;
    margin-top: 10px;
}

/* Multi-image rows */
.image-row {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    align-items: flex-start;
}

.image-row img {
    width: 100%;
    height: 240px;   /* increase from auto */
    object-fit: contain;
    border-radius: 10px;
    flex: 1;
}

/* Buttons */
a.button {
    display: inline-block;
    padding: 12px 16px;
    background: #2563eb;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    margin-top: 20px;
}

a.button:hover {
    background: #1d4ed8;
}

/* Email link */
a.email {
    color: #2563eb;
    text-decoration: none;
}

a.email:hover {
    text-decoration: underline;
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
}

.lightbox img {
    max-width: 100%;
    max-height: 85vh;
    display: block;
    border-radius: 6px;
}

.lightbox-content {
    background: white;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.project img {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.project img:hover {
    transform: scale(1.02);
}

.project-side {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 25px;
    align-items: center;
}

.project-side img {
    width: 100%;
    border-radius: 10px;
}

/* Mobile */
@media (max-width: 600px) {
    .profile {
        grid-template-columns: 1fr;
    }

    .profile-left {
        text-align: center;
    }

    .profile-left img {
        width: 180px;
    }

    .image-row {
        flex-direction: column;
    }

    nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .nav-right {
        align-self: flex-end;
    }
    .project-side {
        grid-template-columns: 1fr;
    }
}
