/* portfolio.css - Styles for the ENGL 4999 sample portfolio
   Updated Fall 2026.
   Colors: Georgia Southern navy (#041e42) and gold (#15454F). */

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

body {
    background-color: #E0F9FF; /* Georgia Southern navy */
    color: #286E82;
    font-family: 'Lexend', 'Times New Roman', serif;
    line-height: 1.6;
}

/* Form controls don't inherit fonts by default, so we tell them to. */
input, select, textarea, button {
    font-family: inherit;
    font-size: 1rem;
}

.container {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ---------- Links ----------
   These come FIRST so that the button styles further down can
   override them. (In last year's version they came last, which made
   button text turn white on a white background when hovered.) */
a {
    color: #286E82;
    text-decoration: underline;
    text-underline-offset: 3px;
}

a:hover {
    color: #723972;
}

/* Visible keyboard focus on everything you can tab to. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
    outline: 3px solid #15454F;
    outline-offset: 3px;
}

/* "Skip to main content" link for keyboard and screen reader users.
   It stays hidden until someone tabs to it. */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 10px;
    background: #15454F;
    color: #041e42;
    padding: 8px 14px;
    font-weight: bold;
    z-index: 100;
}

.skip-link:focus {
    left: 10px;
}

/* ---------- Header ---------- */
header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #1a3559;
    padding-bottom: 20px;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #15454F;
}

header p {
    font-size: 1.1rem;
    color: #286E82;
}

/* ---------- Navigation and buttons ---------- */
.nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}

.nav a,
.btn,
.item-link a,
.submit-btn {
    display: inline-block;
    background-color: #286E82;
    color: #ffff;
    padding: 10px 20px;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.nav a:hover,
.btn:hover,
.item-link a:hover,
.submit-btn:hover {
    background-color: #15454F;
    color: #ffff;
}

.btn:hover,
.item-link a:hover {
    transform: translateY(-2px);
}

/* The page you're currently on is marked in the nav bar. */
.nav a[aria-current="page"] {
    background-color: transparent;
    color: #15454F;
    outline: 2px solid #15454F;
    outline-offset: -2px;
}

/* ---------- Home page profile ---------- */
.profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .profile {
        flex-direction: row;
        align-items: flex-start;
    }
}

.profile-image {
    flex: 0 0 300px;
    max-width: 300px;
}

.profile-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.profile-content {
    flex: 1;
}

.profile-content h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #15454F;
}

.profile-content h3 {
    font-size: 1.1rem;
    margin: 25px 0 5px;
    color: #15454F;
}

.profile-content p {
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
}

.btn {
    padding: 12px 24px;
}

/* ---------- Portfolio page ---------- */
.portfolio-intro {
    max-width: 800px;
    margin: 0 auto 50px auto;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 25px 30px;
    border-radius: 8px;
    border-left: 4px solid #15454F;
}

.portfolio-intro h2 {
    color: #15454F;
    margin-bottom: 15px;
    text-align: center;
}

.portfolio-intro p {
    margin-bottom: 15px;
}

.portfolio-intro p:last-child {
    margin-bottom: 0;
}

.portfolio-items {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.portfolio-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.item-header {
    background-color: rgba(135, 221, 255, 0.428);
    padding: 20px;
    border-bottom: 1px solid rgba(0, 127, 254, 0.112);
}

.item-header h2 {
    color: #15454F;
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.item-meta {
    font-style: italic;
    color: #4373b3;
    font-size: 0.95rem;
}

.item-content {
    padding: 20px;
}

.item-content p {
    margin-bottom: 15px;
}

.item-content h3 {
    color: #15454F;
    font-size: 1.1rem;
    margin: 25px 0 10px;
}

/* The short process and revision note under each artifact */
.process {
    background-color: rgba(255, 255, 255, 0.05);
    border-left: 4px solid #15454F;
    border-radius: 0 6px 6px 0;
    padding: 5px 20px 10px;
    margin: 20px 0;
}

.process h3 {
    margin-top: 15px;
}

.item-link {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 25px;
}

.item-link a {
    padding: 8px 16px;
}

.item-link a::after {
    content: " \2192"; /* right arrow */
}

.highlight {
    background-color: rgba(254, 203, 0, 0.12);
    padding: 2px 5px;
    border-radius: 3px;
}

/* Small rounded labels for skills, roles, and research interests */
.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
    list-style: none;
}

.skill-tag,
.skills-tags li {
    background-color: rgba(0, 102, 218, 0.1);
    color: #286E82;
    padding: 3px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
}

/* A smaller "see also" box at the bottom of the portfolio page */
.also {
    max-width: 800px;
    margin: 40px auto 0;
    text-align: center;
    color: #a3abbd;
}

/* ---------- Resume and CV ---------- */
.resume-section {
    margin-bottom: 35px;
}

.resume-section h2 {
    color: #15454F;
    font-size: 1.6rem;
    margin-bottom: 15px;
    border-bottom: 1px solid #1a3559;
    padding-bottom: 5px;
}

.resume-section > p {
    margin-bottom: 10px;
}

.resume-item {
    margin-bottom: 22px;
}

.resume-item:last-child {
    margin-bottom: 0;
}

.resume-item h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.resume-item .meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0 20px;
    margin-bottom: 10px;
    font-style: italic;
    color: #286E82;
}

.resume-item ul {
    padding-left: 20px;
}

.resume-item ul li {
    margin-bottom: 5px;
}

/* CV citations use a hanging indent, as in MLA works cited */
.citation {
    padding-left: 2em;
    text-indent: -2em;
    margin-bottom: 12px;
}

.skills-group {
    margin-bottom: 15px;
}

.skills-group h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style-type: none;
}

.skills-list li {
    background-color: rgba(0, 102, 218, 0.1);
    padding: 5px 12px;
    border-radius: 3px;
    font-size: 0.9rem;
}

/* ---------- Contact form ---------- */
.contact-section {
    margin-bottom: 40px;
}

.contact-section h2 {
    color: #15454F;
    font-size: 1.6rem;
    margin-bottom: 10px;
    text-align: center;
}

.contact-section > p {
    text-align: center;
    margin-bottom: 25px;
}

.contact-form {
    background-color: rgba(0, 102, 218, 0.1);
    padding: 30px;
    border-radius: 5px;
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 2px solid #1a3559;
    border-radius: 4px;
    background-color: #fff;
    color: #222;
}

.form-group textarea {
    height: 180px;
    resize: vertical;
}

/* Spam trap field. Humans never see it. Bots fill it in. */
.hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.message {
    max-width: 600px;
    padding: 15px;
    margin: 0 auto 20px;
    border-radius: 5px;
}

.message ul {
    padding-left: 20px;
}

.success {
    background-color: rgba(40, 167, 69, 0.2);
    border: 1px solid rgba(40, 167, 69, 0.6);
    color: #d4edda;
    text-align: center;
}

.error {
    background-color: rgba(220, 53, 69, 0.2);
    border: 1px solid rgba(220, 53, 69, 0.6);
    color: #f8d7da;
}

/* ---------- Video essay page ---------- */
.video-intro {
    max-width: 800px;
    margin: 0 auto;
}

.video-intro p {
    margin-bottom: 15px;
}

.video-container {
    width: 100%;
    max-width: 1100px;
    margin: 30px auto;
}

.video-container video {
    width: 100%;
    height: auto;
    max-height: 80vh;
    display: block;
    background: #000;
}

.transcript {
    max-width: 800px;
    margin: 30px auto 0;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 20px 25px;
}

.transcript summary {
    cursor: pointer;
    font-weight: bold;
    color: #15454F;
    font-size: 1.1rem;
}

.transcript p {
    margin-top: 15px;
}

.attribution {
    max-width: 800px;
    text-align: center;
    margin: 25px auto 0;
    color: #a3abbd;
    font-size: 0.9rem;
}

/* ---------- Footer ---------- */
footer {
    text-align: center;
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid #1a3559;
    color: #a3abbd;
    font-size: 0.9rem;
}

/* The notice that this is a sample. Students: delete it from your own site. */
.sample-note {
    margin-top: 8px;
    font-size: 0.85rem;
}

/* ---------- Accessibility: reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
    }
    .btn:hover,
    .item-link a:hover {
        transform: none;
    }
}

/* ---------- Printing ----------
   Makes the resume or CV print as clean black-on-white pages. */
@media print {
    body {
        background: #fff;
        color: #000;
        font-size: 11pt;
    }
    .container {
        padding: 0;
    }
    .nav,
    .skip-link,
    .buttons,
    .item-link,
    .sample-note {
        display: none;
    }
    header h1,
    .resume-section h2,
    .item-header h2,
    .item-content h3 {
        color: #000;
    }
    header p,
    .resume-item .meta,
    .item-meta,
    footer {
        color: #333;
    }
    .skills-list li,
    .skills-tags li,
    .skill-tag {
        background: none;
        border: 1px solid #999;
        color: #000;
    }
    a {
        color: #000;
    }
    .resume-item {
        break-inside: avoid;
    }
}

/* Simple bulleted list inside a resume or CV section */
.plain-list {
    padding-left: 20px;
}
