/* Global */
body {
    font-family: system-ui, sans-serif;
    margin: 0;
    padding: 0;
    background: #fafafa;
    color: #333;
    line-height: 1.6;
}

a {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
}

a:hover {
    text-decoration: underline;
}

/* Container: keeps content centered */
.container {
    width: 90%;
    max-width: 900px;
    margin: 0 auto;
}

/* Navigation */
nav {
    background: #222;
}

nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.2rem;
    padding: 1rem 0.5rem;
}

nav .brand {
    /* larger than links */
    font-size: 1.25rem;
    font-weight: bold;
    text-decoration: none;
    color: #fff;
    margin-right: 1rem;
}

nav .nav-links {
    margin-left: 1rem;
}

nav .nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    /* was 1rem */
    padding: 0.6rem 1rem;
    border-radius: 4px;
    transition: background 0.2s ease;
}

nav .nav-links a.active {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

nav .nav-links a:hover {
    background: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

/* On small screens, bump it further */
@media (max-width: 600px) {
    nav .nav-links a {
        font-size: 1.25rem;
        /* make bigger on phones */
        padding: 0.8rem 1rem;
    }
}


/* Project page */
.project {
    margin-top: 2rem;
}

.project h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.project img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.project p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    margin: 1.5rem 0;
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    /* optional: rounded corners */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    /* optional: nice shadow */
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Image rows for side-by-side images */
.image-row {
    display: flex;
    gap: 1rem;
    margin: 0 0 1.5rem 0;
    justify-content: center;
    flex-wrap: wrap;
}

.image-row img {
    max-width: 45%;
    height: auto;
    width: auto;
}

/* Section spacing */
main {
    padding: 2rem 0;
}

/* About page */
.about h1 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.about p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* Works grid */
.works h1 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

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

.card {
    display: block;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card h2 {
    font-size: 1.2rem;
    padding: 1rem;
    margin: 0;
    margin-block-end: 0.5rem;
}