* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #2d3748;
    background: #f8f7f4;
}

/* Hero */
.hero {
    position: relative;
    height: 45vh;
    min-height: 300px;
    overflow: hidden;
}

.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-text {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    color: #fff;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.hero p {
    font-size: 1rem;
    opacity: 0.9;
}

/* Main */
main {
    max-width: 780px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

/* About */
.about {
    margin-bottom: 3rem;
}

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

.about a {
    color: #2b6cb0;
    text-decoration: none;
    border-bottom: 1px solid #bee3f8;
}

.about a:hover {
    border-bottom-color: #2b6cb0;
}

/* Projects */
.projects {
    margin-bottom: 3rem;
}

/* Big clickable image with optional code link */
.project-images {
    position: relative;
    margin-bottom: 2rem;
}

.project-image {
    display: block;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    transition: transform 0.2s;
}

.project-image:hover {
    transform: scale(1.01);
}

.project-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.project-image span {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
    font-weight: 500;
}

.project-image-code {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(255,255,255,0.9);
    color: #4a5568;
    font-size: 0.8rem;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.15s;
}

.project-image-code:hover {
    background: #fff;
    color: #2b6cb0;
}

/* Thumbnail + text row */
.project-row {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.project-thumb {
    flex-shrink: 0;
}

.project-thumb img,
.project-thumb video {
    width: 160px;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
    transition: opacity 0.2s;
}

.project-thumb:hover img,
.project-thumb:hover video {
    opacity: 0.85;
}

.project-thumb img[src*="frog"] {
    filter: brightness(1.3);
}

.project-thumb.large img,
.project-thumb.large video {
    width: 480px;
    height: 360px;
}

.project-row p {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.project-row strong {
    color: #1a202c;
}

.project-links {
    font-size: 0.9rem;
}

.project-links a {
    color: #2b6cb0;
    text-decoration: none;
}

.project-links a:hover {
    text-decoration: underline;
}

/* Other stuff section */
.other {
    margin-bottom: 3rem;
}

.other h2 {
    margin-bottom: 1.5rem;
}

/* Footer */
footer {
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 2rem;
}

footer a {
    color: #718096;
    text-decoration: none;
    font-size: 0.9rem;
}

footer a:hover {
    color: #2b6cb0;
}

/* Mobile */
@media (max-width: 600px) {
    .hero {
        height: 35vh;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-text {
        left: 1rem;
        bottom: 1rem;
    }

    main {
        padding: 2rem 1rem;
    }

    .project-row {
        flex-direction: column;
        gap: 0.75rem;
    }

    .project-thumb img,
    .project-thumb video {
        width: 100%;
        height: auto;
        max-height: 180px;
    }

    .project-thumb.large img,
    .project-thumb.large video {
        width: 100%;
        height: auto;
        max-height: 300px;
    }
}
