/* ====== GLOBAL STYLES ====== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: #1a1a1a;
    color: #d4d9c0;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Add top padding to avoid fixed navbar overlap */
body {
    padding-top: 80px; /* default desktop */
}

/* ====== LINKS ====== */
a {
    color: #7a966e;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #a1b58d;
    text-decoration: underline;
}

/* ====== HEADER & NAVBAR ====== */
header {
    background: #2a2a2a;
    color: #d4d9c0;
    width: 100%;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #2a2a2a;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    flex-wrap: wrap; /* allows wrapping on small screens */
}

/* Navbar links */
.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    flex-wrap: wrap;
}

.nav-links li a {
    color: #7a966e;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: #a1b58d;
    text-decoration: underline;
}

.nav-links a.active {
    border-bottom: 2px solid #7a966e;
}

/* ====== HERO SECTION ====== */
.hero-text {
    text-align: center;
    padding: 2rem;
}

.hero-text h1 {
    margin: 0;
    font-size: 2.5rem;
    color: #7a966e;
}

/* Inline hero links */
.hero-text p a {
    color: #d4d9c0;
    text-decoration: none;
    font-weight: 500;
    padding-bottom: 2px; /* space for border if active */
    transition: color 0.3s ease;
}

.hero-text p a:hover {
    color: #e0e3c8;
    text-decoration: underline;
}

/* Active link */
.hero-text p a.active {
    border-bottom: 2px solid #d4d9c0;
    font-weight: 600; /* optional for a subtle emphasis */
}

/* ====== MAIN CONTENT ====== */
main {
    max-width: 900px;
    margin: 2rem auto;
    padding: 1rem;
    background: #2a2a2a;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(122, 150, 110, 0.2);
    flex-grow: 1;
}

section {
    margin-bottom: 2rem;
}

h2 {
    color: #a38b5b;
    border-bottom: 2px solid #746a4f;
    padding-bottom: 0.3rem;
}

/* ====== LIST STYLES ====== */
ul {
    list-style-type: square;
    padding-left: 1.5rem;
}

.resume ul {
    margin: 0.3rem 0 1rem 1.5rem;
}

.resume li ul {
    list-style-type: disc;
}

/* ====== ABOUT SECTION ====== */
.about-container {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 2rem;
}

.about-text {
    flex: 1;
    min-width: 250px;
}

.profile-photo {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(163, 139, 91, 0.3);
    margin: 0 auto;
}

.about-photo {
    text-align: center;
    max-width: 300px;
}

.about-photo figcaption {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #a38b5b;
    text-align: center;
    font-style: italic;
}

/* ====== RESUME / COLLAPSIBLES ====== */
.title-line {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0rem;
}

.resume-date {
    color: #d4d9c0;
}

.collapsible-header {
    cursor: pointer;
    user-select: none;
}

.collapsible-content {
    display: block;
    transition: max-height 0.3s ease;
    overflow: hidden;
}

.collapsible-content.hidden {
    display: none;
}

.arrow {
    font-size: 0.7em;
    vertical-align: middle;
}

/* ====== TWO-COLUMN LAYOUT ====== */
.two-column {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap; /* stacks on small screens */
}

.column {
    flex: 1;
    min-width: 250px; /* prevents squishing */
}

/* ====== ACCOLADES ====== */
.accolades-side {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding-right: 2rem;
}

.accolades-side ul {
    flex: 0 0 60%;
    margin: 0;
    padding-left: 1rem;
}

.badge-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 8px rgba(163, 139, 91, 0.3);
    flex-shrink: 0;
}

/* ====== Projects ====== */

/* Main container flex setup */
main.projects {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    margin: 0 auto;
    padding: 1rem;
    height: calc(100vh - 160px); /* approximate navbar + hero + footer height */
}

/* PDF selector styling */
.pdf-selector {
    background: #2a2a2a;
    padding: 0.5rem 1rem;
    text-align: center;
    margin-bottom: 1rem;
    border-radius: 8px;
}

.pdf-selector label,
.pdf-selector select {
    color: #d4d9c0;
    font-size: 1rem;
}

/* PDF iframe fills remaining space */
#pdf-frame {
    flex: 1;
    width: 100%;
    border: 1px solid #ccc;
    min-height: 400px; /* ensure readability */
}

/* Responsive tweaks */
@media (max-width: 768px) {
    main.projects {
        height: calc(100vh - 220px); /* adjust for taller mobile header */
    }

    #pdf-frame {
        min-height: 300px;
    }
}


/* ====== FOOTER ====== */
footer {
    background-color: #2a2a2a;
    color: #d4d9c0;
    text-align: center;
    padding: 1rem 0;
}

footer .fine-print {
    font-size: 0.75rem;
    color: #8a8a8a;
    margin-top: 0.3rem;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
    body {
        padding-top: 160px; /* taller navbar on mobile */
    }

    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 0.5rem;
    }

    .about-container {
        flex-direction: column;
        align-items: center;
    }

    .profile-photo {
        margin-bottom: 1rem;
    }
}

/* ====== CLASSWORK REPO ====== */
#classwork-repo {
    background-color: #2a2a2a;
    border: 1.5px solid #a38b5b;
    padding: 16px;
    border-radius: 8px;
    max-width: 600px;
    color: #d4d9c0;
    list-style-type: none;
}

#classwork-repo li {
    margin-bottom: 8px;
}
