/* --- Reset / General --- */
html {
    scroll-behavior: smooth;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", sans-serif;
}
body {
    background: #0d1117;
    color: #e6edf3;
    line-height: 1.6;
}

/* --- Header / Navigation --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #161b22;
    padding: 1rem 2rem;
}
header h1 {
    font-size: 1.5rem;
    color: #58a6ff;
}
nav a {
    color: #e6edf3;
    text-decoration: none;
    margin-left: 1.5rem;
    transition: 0.3s;
}
nav a:hover {
    color: #58a6ff;
    transform: translateY(-3px);
}

/* --- Hero Sections --- */
.hero {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(to bottom right, #0d1117, #161b22);
}
.hero-content {
    max-width: 900px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}
.hero-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}
.hero-text {
    max-width: 500px;
    text-align: center;
}
.profile-pic {
    width: 150px;
    border-radius: 50%;
    border: 3px solid #58a6ff;
}
.highlight {
    color: #58a6ff;
    font-weight: bold;
}

/* --- Cards / Grids / Highlights --- */
.cards,
.project-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 2rem;
    width: 100%;
    margin-top: 2rem;
}
.card,
.project-card {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    color: #e6edf3;
    flex: 1 1 220px;
    max-width: 250px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    transition: 0.2s;
}
.card:hover,
.project-card:hover {
    transform: translateY(-4px);
    background: #1c2128;
}
.card h3,
.project-card h3 {
    color: #58a6ff;
    margin-bottom: 0.5rem;
}
.card p,
.project-card p {
    font-size: 0.9rem;
}
.card button,
.project-card button {
    margin-top: 0.8rem;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    background: #0d1117;
    color: #e6edf3;
    cursor: pointer;
    transition: 0.2s;
}
.card button:hover,
.project-card button:hover {
    background: #161b22;
    transform: translateY(-2px);
}

/* --- Education / Courses --- */
.course-header,
.course-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid #30363d;
    text-align: center;
}
.course-header {
    font-weight: bold;
    background: #0d1117;
    color: #58a6ff;
}
.course-row:nth-of-type(odd) {
    background: #0d1117;
}
.course-row:nth-of-type(even) {
    background: #161b22;
}
.course-name {
    text-align: left;
}

/* --- Education Info Cards (GPA, ACT, etc.) --- */
.education-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.education-card {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    color: #e6edf3;
    flex: 1 1 300px;
    max-width: 400px;
}

.education-card h3 {
    color: #58a6ff;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.education-card p {
    font-size: 1rem;
    color: #c9d1d9;
}


/* --- Accordion --- */
.accordion-section {
    margin: 2rem 0;
    border: 1px solid #30363d;
    border-radius: 10px;
    background: #161b22;
}
.accordion-header {
    cursor: pointer;
    background: #0d1117;
    color: #58a6ff;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #30363d;
    transition: 0.3s;
    border-radius: 10px 10px 0 0;
}
.accordion-header:hover {
    background: #58a6ff;
    color: #0d1117;
}
.accordion-content {
    display: none;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 1rem 1.5rem;
}

/* --- Modals --- */
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 17, 23, 0.9);
}
.modal-content {
    background: #161b22;
    margin: 5% auto;
    padding: 1rem;
    border: 1px solid #30363d;
    width: 80%;
    max-width: 900px;
    border-radius: 10px;
    text-align: center;
}
.modal iframe {
    border: none;
    border-radius: 5px;
}
.modal .close {
    float: right;
    font-size: 1.2rem;
    cursor: pointer;
    color: #e6edf3;
    padding: 0 0.5rem;
}

/* --- Community Images --- */
.community-img {
    width: 100%;
    max-width: 500px;
    margin: 1rem 0;
}
#catalyst > div {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

/* --- Section Containers --- */
.hero,
.about,
.highlights,
.education-container {
    padding: 3rem 2rem;
    max-width: 900px;
    margin: auto;
    text-align: center;
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 2rem;
    color: #8b949e;
    margin-top: 2rem;
}
