:root {
    --navbar-height: 0px;
    --min-section-height: calc(100vh - var(--navbar-height));
}

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

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding: 0 0px;
    background-color: #f5f5f5;
}

nav {
    position: sticky;
    top: 0;
    background: #333;
    color: white;
    padding: 20px 0;
    text-align: center;
    width: 100%;
    z-index: 999;
}

nav div a {
    color: white;
    margin: 0 10px;
    text-decoration: none;
}

section {
    width: 100%;
    min-height: var(--min-section-height);
    margin: 0;
    padding: 0;
}

#welcome {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.welcome-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    box-sizing: border-box;
    margin: auto;
    height: auto;
    max-width: 900px;
    width: 90%;
    gap: 2.5rem;
    padding: 3rem 2rem;
    box-shadow: 0 4px 24px rgba(60, 60, 60, 0.08);
    border-radius: 18px;
}

.welcome-content {
    max-width: 540px;
}

#welcome h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #111;
    font-weight: 700;
    letter-spacing: 1.2px;
}

#welcome p {
    font-size: 1.3rem;
    color: #444;
    line-height: 1.8;
    margin-bottom: 1.2rem;
}

#welcome a {
    color: #222;
    text-decoration: underline;
    font-weight: 500;
}

.welcome-img {
    max-width: 220px;
    border-radius: 18px;
    box-shadow: 0 2px 16px rgba(60, 60, 60, 0.12);
    background: #f5f5f5;
    padding: 0.5rem;
}

#about {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    flex-direction: column;
    scroll-margin-top: var(--navbar-height);
}

#about h2 {
    font-size: 2.2rem;
    color: #1a237e;
    letter-spacing: 1.2px;
    font-weight: 800;
    margin: 2.2rem 0 1rem 0;
}

#about .about-blocks {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.6rem;
    width: 90%;
    max-width: 1100px;
    padding: 2rem 2.25rem 2.5rem 2.25rem;
    box-sizing: border-box;
    margin-bottom: 3rem;
}

/* Generic card style for each about block */
#about .about-blocks > div {
    background: #fff;
    border-radius: 14px;
    padding: 1.2rem 1.4rem;
    box-shadow: 0 6px 20px rgba(25, 37, 84, 0.06);
    border: 1px solid #eef3fb;
    transition: transform 0.18s, box-shadow 0.18s;
    min-height: 130px;
}
#about .about-blocks > div:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 34px rgba(25, 37, 84, 0.10);
}

/* Quick Facts list */
.about-summary ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}
.about-summary li {
    font-size: 0.98rem;
    color: #2d3a4a;
    display: flex;
    gap: 8px;
    align-items: baseline;
}
.about-summary li strong {
    color: #0f172a;
    min-width: 90px;
    font-weight: 700;
}

/* Core Skills - make lists feel like badges */
.about-skills p {
    margin-bottom: 0.6rem;
    color: #394b63;
}
.about-skills ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.about-skills li {
    background: #f1f6ff;
    color: #08306b;
    padding: 8px 12px;
    border-radius: 12px;
    display: inline-block;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid rgba(3, 56, 122, 0.06);
}

/* Experience highlights */
.about-experience ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 6px;
}
.about-experience li {
    padding-left: 12px;
    border-left: 3px solid #b5d0f7;
    color: #2f3b4f;
    font-size: 0.98rem;
}

/* Goals block - call to action style for contact link */
.about-goals p {
    color: #344155;
    margin-bottom: 0.85rem;
    line-height: 1.5;
}
.about-goals a {
    color: #0078d7;
    font-weight: 700;
    text-decoration: none;
}
.about-goals a:hover {
    text-decoration: underline;
}

/* Responsive: single column on small screens */
@media (max-width: 900px) {
    #about .about-blocks {
        grid-template-columns: 1fr;
        padding: 1.2rem;
        gap: 1rem;
        width: 95%;
    }
    #about h2 {
        margin-top: 1.2rem;
    }
}

#projects-title {
    display: flex;
    width: 100%;
    justify-content: center;
    font-size: 2.2rem;
    color: #1a237e;
    letter-spacing: 1.5px;
    font-weight: 800;
    margin-top: 60px;
    scroll-margin-top: calc(var(--navbar-height) + 60px);
}

#projects-section {
    display: flex;
    align-items: flex-start;
    gap: 2.5rem;
    width: 100%;
    margin: 0 auto;
    max-width: 1400px;
    box-sizing: border-box;
}
#filters-box {
    background: #fff;
    box-shadow: 0 4px 24px rgba(60, 60, 60, 0.08);
    border-radius: 18px;
    padding: 2.5rem 2rem 2rem 2rem;
    min-width: 280px;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 3.9rem;
    margin-bottom: 2rem;
    height: fit-content;
}
#filters-box h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a237e;
    margin-bottom: 1.2rem;
    text-align: left;
    letter-spacing: 1px;
}
.filter-category h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 0.7rem;
    margin-top: 0;
}
.filter-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 0;
}
.filter-group label {
    font-size: 1rem;
    font-weight: 500;
    color: #222;
    background: #e3e8ee;
    border-radius: 16px;
    padding: 6px 14px;
    cursor: pointer;
    user-select: none;
    transition: background 0.18s;
    margin-bottom: 0;
    display: flex;
    align-items: center;
}
.filter-group label:hover {
    background: #d0e2fa;
}
.filter-group input[type="checkbox"] {
    margin-right: 10px;
    accent-color: #0078d7;
    transform: scale(1.15);
    vertical-align: middle;
}
#clear-filters {
    margin-top: 10px;
    padding: 8px 18px;
    border: none;
    background: #333;
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.18s;
    align-self: flex-start;
}
#clear-filters:hover {
    background: #0078d7;
}

/* Responsive: stack filters above projects on small screens */
@media (max-width: 900px) {
    #projects-section {
        flex-direction: column;
        gap: 1.5rem;
        padding-top: 1rem;
    }
    #filters-box {
        max-width: 100%;
        width: 100%;
        position: static;
        margin-bottom: 1.5rem;
        margin-top: 0rem;
    }
}

#projects {
    width: 100%;
    padding: 60px 0 40px 0;
    box-sizing: border-box;
    scroll-margin-top: var(--navbar-height);
}
#projects h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
    color: #222;
    letter-spacing: 1.5px;
    font-weight: 800;
}
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    padding: 0 32px;
    max-width: 1200px;
    margin: 0 auto;
}
.project-card {
    background: #fff;
    padding: 32px 24px 24px 24px;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(60,60,60,0.10);
    transition: transform 0.18s, box-shadow 0.18s;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border: 1.5px solid #e3e8ee;
}
.project-card:hover {
    transform: translateY(-8px) scale(1.025);
    box-shadow: 0 8px 32px rgba(60,60,60,0.16);
    border-color: #b5d0f7;
}
.project-card h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
    color: #1a237e;
    font-weight: 700;
}
.project-card p {
    color: #444;
    margin-bottom: 18px;
    font-size: 1.05rem;
}
.project-card .tags {
    margin-bottom: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.project-card .tags span {
    background: #e3e8ee;
    color: #2d3a4a;
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 0.92em;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-right: 0;
    margin-bottom: 0;
    transition: background 0.2s;
}
.project-card a {
    margin-top: auto;
    align-self: flex-end;
    background: #0078d7;
    color: #fff;
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1em;
    transition: background 0.18s, box-shadow 0.18s;
    box-shadow: 0 2px 8px rgba(0,120,215,0.08);
}
.project-card a:hover {
    background: #005fa3;
    box-shadow: 0 4px 16px rgba(0,120,215,0.13);
}

footer {
    background: #222;
    color: white;
    padding: 20px;
    text-align: center;
}
footer a {
    color: #ddd;
    text-decoration: none;
}
footer a:hover {
    text-decoration: underline;
}
