/* Reset a few defaults */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Body & typography */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fdfdfd;
    text-align: center;
    padding: 0 1rem;
}

/* Hero section */
.hero {
    padding: 3rem 0 2rem;
    background: linear-gradient(135deg, #4a90e2, #007aff);
    color: white;
}

.avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, .3);
    margin-bottom: 1rem;
}

.tagline {
    font-size: 1.1rem;
    opacity: .9;
}

/* Content sections */
section {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

section h2 {
    margin-bottom: .6rem;
    font-size: 1.8rem;
    color: #222;
}

/* ---------- Projects Section ---------- */
.projects {
    margin: 3rem auto;
    max-width: 1000px;
    padding: 0 1rem;
}

.projects h2 {
    margin-bottom: 1.5rem;
    font-size: 2rem;
    color: #222;
}

/* Grid that adapts to screen size */
.project-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* Individual project card */
.project-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.2rem;
    text-align: left;
    transition: transform .15s ease, box-shadow .15s ease;
}

.project-card h3 {
    margin-top: 0;
    margin-bottom: .5rem;
    font-size: 1.25rem;
    color: #0066cc;
}

.project-card p {
    margin: 0 0 .8rem;
    font-size: .95rem;
    color: #555;
}

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

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

/* Hover lift effect */
.project-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
}

/* Small tweak for very narrow screens */
@media (max-width: 480px) {
    .project-card {
        padding: 1rem;
    }
}

/* Links list */
.links ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: .5rem;
}

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

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

/* Footer */
footer {
    margin-top: 3rem;
    padding: 1rem 0;
    font-size: .9rem;
    color: #777;
}

/* Responsive tweaks */
@media (max-width: 600px) {
    .hero {
        padding: 2rem 0 1.5rem;
    }

    .avatar {
        width: 120px;
        height: 120px;
    }
}