/*
Student Name: Conrad Mercer
Course Number: 340
Date: 12/15/2025
Purpose: Make website look better
*/
@import url('https://fonts.googleapis.com/css2?family=Courier+Prime:ital,wght@0,400;0,700;1,400;1,700&display=swap');

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

article, section, aside, figure, figcaption {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #000000 0%, #001a33 50%, #003366 100%);
    background-attachment: fixed;
    color: #f0f0f0;
    font-family: 'Courier Prime', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
}

header {
    text-align: center;
    padding: 1.5rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 2px solid #003366;
}

header h1 {
    color: #ffffff;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

header h2 {
    color: #b8d4e8;
    font-size: 1.2rem;
}

header figure {
    display: inline-block;
    margin: 1rem 0;
}

header figcaption {
    color: #b8d4e8;
    font-size: 1rem;
    margin-top: 0.8rem;
    text-align: center;
}

header img {
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border: 3px solid #003366;
    max-width: 100%;
    height: auto;
}

nav {
    background: rgba(0, 26, 51, 0.5);
    padding: 1rem 0.5rem;
    text-align: center;
    border-bottom: 1px solid #003366;
}

nav p {
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(6, auto);
    gap: 0.8rem;
}

nav p::before {
    content: none;
}

nav a,
nav span {
    color: #b8d4e8;
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 0.8rem 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 44px;
    line-height: 1.4;
}

nav a:hover,
nav a:active,
nav span:hover {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(184, 212, 232, 0.5);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

/* Icon styles - ADD THIS NEW SECTION */
nav a svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

nav a:hover svg {
    transform: scale(1.1);
}

/* Hamburger Menu Icon Styles */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    background: transparent;
    border: none;
    z-index: 1000;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background-color: #b8d4e8;
    margin: 4px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    border-radius: 2px;
}

/* Hamburger animation when active */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

main {
    max-width: 1200px;
    margin: 1rem auto;
    padding: 1.5rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    min-height: 60vh;
}

section {
    padding: 1rem 0;
    margin-bottom: 1.5rem;
}

.section-title {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
}

article {
    background: rgba(0, 51, 102, 0.2);
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 6px;
    border-left: 3px solid #003366;
}

article h3 {
    color: #b8d4e8;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

article p {
    color: #e0e0e0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.project-figure {
    margin: 1rem 0;
}

.project-figure img {
    width: 100%;
    max-width: 500px;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border: 3px solid #003366;
}

.project-figure figcaption {
    color: #b8d4e8;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    text-align: center;
}

aside {
    background: rgba(0, 26, 51, 0.3);
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid #003366;
    margin-top: 1.5rem;
}

aside h3 {
    color: #b8d4e8;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

aside p {
    color: #e0e0e0;
    font-size: 0.9rem;
}

.content-section {
    padding: 1rem 0;
}

.content-section p {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
}

main p {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
}

main ul {
    list-style-position: inside;
    padding-left: 0.5rem;
}

main li {
    color: #e0e0e0;
    margin-bottom: 0.8rem;
    font-size: 1rem;
    line-height: 1.6;
}

main img {
    display: block;
    margin: 2rem auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border: 3px solid #003366;
    max-width: 100%;
    height: auto;
}

footer {
    background: rgba(0, 0, 0, 0.4);
    padding: 1.5rem;
    text-align: center;
    margin-top: 2rem;
    border-top: 2px solid #003366;
}

footer p {
    color: #b8d4e8;
    margin: 0.3rem 0;
}

/* Experience Table Styles */
.experience-section {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.experience-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background: rgba(0, 51, 102, 0.15);
    border-radius: 6px;
    overflow: hidden;
}

.experience-table thead {
    background: rgba(0, 51, 102, 0.4);
}

.experience-table th {
    color: #ffffff;
    padding: 1rem;
    text-align: left;
    font-size: 1.1rem;
    border-bottom: 2px solid #003366;
}

.experience-table td {
    padding: 1.2rem;
    color: #e0e0e0;
    vertical-align: top;
    border-bottom: 1px solid rgba(0, 51, 102, 0.3);
}

.experience-table tbody tr {
    transition: background 0.3s ease;
}

.experience-table tbody tr:hover {
    background: rgba(0, 51, 102, 0.25);
}

.experience-table tbody tr:last-child td {
    border-bottom: none;
}

.experience-table td strong {
    color: #b8d4e8;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.3rem;
}

.experience-table td em {
    color: #b8d4e8;
    font-size: 0.9rem;
    display: block;
    margin-top: 0.3rem;
}

.experience-table td ul {
    margin-top: 0.8rem;
    padding-left: 1.2rem;
    list-style-type: disc;
}

.experience-table td li {
    color: #e0e0e0;
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.hero-section {
    margin-bottom: 3rem;
}

.hero-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.hero-image {
    flex: 0 0 auto;
}

.hero-image img {
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border: 3px solid #003366;
    max-width: 100%;
    height: auto;
}

.hero-image figcaption {
    color: #b8d4e8;
    font-size: 1rem;
    margin-top: 1rem;
    text-align: center;
}

.hero-text {
    flex: 1;
}

.hero-text h2 {
    color: #ffffff;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-text p {
    color: #e0e0e0;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.contact-section {
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(0, 51, 102, 0.2);
    border-radius: 8px;
    border: 2px solid #003366;
}

.contact-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: #b8d4e8;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    background: rgba(0, 26, 51, 0.5);
    border: 2px solid #003366;
    border-radius: 4px;
    color: #ffffff;
    font-family: 'Courier Prime', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #b8d4e8;
    background: rgba(0, 26, 51, 0.7);
    box-shadow: 0 0 10px rgba(184, 212, 232, 0.3);
}

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

.submit-btn {
    background: rgba(0, 51, 102, 0.6);
    color: #ffffff;
    padding: 1rem 2rem;
    border: 2px solid #003366;
    border-radius: 4px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Courier Prime', Tahoma, Geneva, Verdana, sans-serif;
    display: block;
    margin: 2rem auto 0;
    min-width: 200px;
}

.submit-btn:hover {
    background: rgba(0, 51, 102, 0.8);
    border-color: #b8d4e8;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(184, 212, 232, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Resume Page Styles */
.resume-section {
    padding: 2rem 0;
}

.resume-actions {
    text-align: center;
    margin-bottom: 2rem;
}

.download-btn {
    display: inline-block;
    background: rgba(0, 51, 102, 0.6);
    color: #ffffff;
    padding: 1rem 2rem;
    border: 2px solid #003366;
    border-radius: 4px;
    font-size: 1.1rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Courier Prime', Tahoma, Geneva, Verdana, sans-serif;
    min-width: 250px;
}

.download-btn:hover {
    background: rgba(0, 51, 102, 0.8);
    border-color: #b8d4e8;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(184, 212, 232, 0.3);
    color: #ffffff;
    text-shadow: 0 0 10px rgba(184, 212, 232, 0.5);
}

.download-btn:active {
    transform: translateY(0);
}

.resume-viewer {
    background: rgba(0, 51, 102, 0.2);
    padding: 1rem;
    border-radius: 8px;
    border: 2px solid #003366;
}

.resume-viewer iframe {
    display: block;
    border: none;
    border-radius: 4px;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.resume-fallback {
    text-align: center;
    margin-top: 1rem;
    color: #b8d4e8;
    font-size: 0.95rem;
}

.resume-fallback a {
    color: #ffffff;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.resume-fallback a:hover {
    color: #b8d4e8;
    text-shadow: 0 0 10px rgba(184, 212, 232, 0.5);
}

.tablet-content, .desktop-content {
    display:none;
}

.mobile-content {
    display: block;
}

/* Mobile Navigation with Hamburger Menu */
@media only screen and (max-width: 768px) {
    nav {
        position: relative;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem;
    }

    .hamburger {
        display: flex;
        margin-left: auto;
    }

    #menu-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(0, 26, 51, 0.95);
        grid-template-columns: 1fr;
        grid-template-rows: repeat(6, auto);
        gap: 0;
        padding: 1rem 0;
        border-top: 2px solid #003366;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
        z-index: 999;
        animation: slideDown 0.3s ease;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    #menu-links a,
    #menu-links span {
        padding: 1rem 1.5rem;
        border-bottom: 1px solid rgba(0, 51, 102, 0.5);
        text-align: left;
        justify-content: flex-start; /* ADD THIS LINE */
        transition: all 0.3s ease;
    }

    #menu-links a:hover,
    #menu-links span:hover {
        background: rgba(255, 255, 255, 0.1);
        padding-left: 2rem;
        transform: translateX(5px);
    }

    #menu-links a:last-child,
    #menu-links span:last-child {
        border-bottom: none;
    }

    /* Mobile Resume Styles */
    .resume-viewer iframe {
        height: 300px;
        width: 100%;
    }

    .download-btn {
        min-width: 180px;
        font-size: 0.95rem;
        padding: 0.8rem 1.2rem;
    }

    .resume-viewer {
        padding: 0.5rem;
    }

    /* Mobile Experience Table - Stack Vertically */
    .experience-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .experience-table thead,
    .experience-table tbody,
    .experience-table tr,
    .experience-table th,
    .experience-table td {
        display: block;
    }

    .experience-table thead {
        display: none;
    }

    .experience-table tr {
        margin-bottom: 2rem;
        border: 2px solid #003366;
        border-radius: 8px;
        padding: 1rem;
        background: rgba(0, 51, 102, 0.2);
    }

    .experience-table td {
        border: none;
        padding: 0.8rem 0;
        white-space: normal;
    }

    .experience-table td:first-child {
        border-bottom: 2px solid #003366;
        padding-bottom: 1rem;
        margin-bottom: 1rem;
    }

    .experience-table td ul {
        padding-left: 1.5rem;
    }
}

@media only screen and (min-width: 551px) and (max-width: 768px) {
    .mobile-content {
        display: none;
    }

    .tablet-content {
        display: block;
    }

    header h1 {
        font-size: 3rem;
    }

    header h2 {
        font-size: 1.4rem;
    }

    header figcaption {
        font-size: 1.2rem;
        margin-top: 1rem;
    }

    header img {
        max-width: 90%;
    }

    main {
        padding: 3rem;
        margin: 3rem auto;
    }

    section {
        padding: 1.5rem 0;
        margin-bottom: 2rem;
    }

    .section-title {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
    }

    article {
        padding: 1.2rem;
        margin-bottom: 1.3rem;
        background: rgba(0, 51, 102, 0.25);
        transition: background 0.3s ease;
    }

    article:hover {
        background: rgba(0, 51, 102, 0.35);
    }

    article h3 {
        font-size: 1.15rem;
        margin-bottom: 0.7rem;
    }

    article p {
        font-size: 1rem;
    }

    aside {
        padding: 1.2rem;
        margin-top: 2rem;
        background: rgba(0, 26, 51, 0.35);
    }

    aside h3 {
        font-size: 1.1rem;
    }

    aside p {
        font-size: 0.95rem;
    }

    main p {
        font-size: 1.4rem;
    }

    main li {
        font-size: 1.15rem;
        margin-bottom: 1rem;
    }

    main img {
        max-width: 80%;
    }

    .experience-table th {
        font-size: 1.2rem;
        padding: 1.2rem;
    }

    .experience-table td {
        padding: 1.5rem;
        font-size: 1rem;
    }

    .experience-table td strong {
        font-size: 1.2rem;
    }

    .experience-table td li {
        font-size: 1.05rem;
        margin-bottom: 0.8rem;
    }

    .hero-text h2 {
        font-size: 2rem;
    }

    .hero-text p {
        font-size: 1.1rem;
    }

    .contact-section {
        padding: 2.5rem;
    }

    .form-group label {
        font-size: 1.1rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 1.05rem;
        padding: 1rem;
    }

    .submit-btn {
        font-size: 1.2rem;
        padding: 1.2rem 2.5rem;
    }

    /* Tablet Resume Styles */
    .resume-viewer iframe {
        height: 650px;
        width: 100%;
    }

    .download-btn {
        font-size: 1.1rem;
        padding: 1rem 2rem;
        min-width: 220px;
    }

    .resume-viewer {
        padding: 0.8rem;
    }

    .resume-section {
        padding: 1.5rem 0;
    }

    /* Tablet Experience Table - Stack Vertically */
    .experience-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .experience-table thead,
    .experience-table tbody,
    .experience-table tr,
    .experience-table th,
    .experience-table td {
        display: block;
    }

    .experience-table thead {
        display: none;
    }

    .experience-table tr {
        margin-bottom: 2rem;
        border: 2px solid #003366;
        border-radius: 8px;
        padding: 1.5rem;
        background: rgba(0, 51, 102, 0.2);
    }

    .experience-table td {
        border: none;
        padding: 1rem 0;
        white-space: normal;
    }

    .experience-table td:first-child {
        border-bottom: 2px solid #003366;
        padding-bottom: 1rem;
        margin-bottom: 1rem;
    }

    .experience-table td ul {
        padding-left: 1.5rem;
    }
}

@media screen and (min-width: 769px) {

    .mobile-content,
    .tablet-content {
        display: none;
    }

    .desktop-content {
        display: block;
    }

    .hamburger {
        display: none !important;
    }

    #menu-links {
        display: grid !important;
    }

    nav p {
        grid-template-columns: repeat(7, 1fr);
        grid-template-rows: 1fr;
        gap: 0.5rem;
    }

    header {
        padding: 3rem 2rem;
    }

    header h1 {
        font-size: 3.5rem;
        letter-spacing: 2px;
    }

    header h2 {
        font-size: 1.6rem;
    }

    header figcaption {
        font-size: 1.3rem;
        margin-top: 1.2rem;
    }

    header img {
        max-width: 500px;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    header img:hover {
        transform: scale(1.02);
        box-shadow: 0 8px 30px rgba(184, 212, 232, 0.4);
    }

    nav {
        padding: 1.5rem 2rem;
    }

    nav a {
        padding: 0.5rem 1rem;
        margin: 0 0.5rem;
        border-radius: 4px;
        transition: all 0.3s ease;
    }

    nav a:hover {
        color: #ffffff;
        background: rgba(184, 212, 232, 0.2);
        text-shadow: 0 0 15px rgba(184, 212, 232, 0.7);
        transform: translateY(-2px);
    }

    nav a:active {
        transform: translateY(0);
        background: rgba(184, 212, 232, 0.3);
    }

    main {
        padding: 4rem;
        margin: 4rem auto;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    }

    section {
        padding: 2rem 0;
        margin-bottom: 0;
        grid-column: 1;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
        border-bottom: 2px solid #003366;
        padding-bottom: 0.5rem;
    }

    article {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
        background: rgba(0, 51, 102, 0.3);
        transition: all 0.3s ease;
        border-left: 4px solid #003366;
    }

    article:hover {
        background: rgba(0, 51, 102, 0.45);
        transform: translateX(5px);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }

    article h3 {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
        color: #ffffff;
    }

    article p {
        font-size: 1.05rem;
    }

    aside {
        grid-column: 2;
        padding: 1.5rem;
        background: rgba(0, 26, 51, 0.4);
        border-radius: 8px;
        border: 2px solid #003366;
        height: fit-content;
        position: sticky;
        top: 2rem;
    }

    aside h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
        color: #ffffff;
        border-bottom: 1px solid #003366;
        padding-bottom: 0.5rem;
    }

    aside p {
        font-size: 1rem;
        line-height: 1.7;
    }

    main:not(:has(aside)) {
        grid-template-columns: 1fr;
    }

    main p {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

    main li {
        font-size: 1.2rem;
        margin-bottom: 1.2rem;
        transition: color 0.2s ease;
    }

    main li:hover {
        color: #ffffff;
        padding-left: 0.5rem;
    }

    main img {
        max-width: 70%;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    main img:hover {
        transform: scale(1.05);
        box-shadow: 0 8px 30px rgba(184, 212, 232, 0.4);
    }

    footer {
        padding: 2rem;
    }

    footer p {
        font-size: 1.1rem;
    }

    .experience-table {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }

    .experience-table th {
        font-size: 1.3rem;
        padding: 1.5rem;
    }

    .experience-table td {
        padding: 2rem;
        font-size: 1.05rem;
    }

    .experience-table td:first-child {
        width: 30%;
    }

    .experience-table td:last-child {
        width: 70%;
    }

    .experience-table td strong {
        font-size: 1.25rem;
    }

    .experience-table td li {
        font-size: 1.05rem;
        margin-bottom: 0.8rem;
        transition: color 0.2s ease, padding-left 0.2s ease;
    }

    .experience-table td li:hover {
        color: #ffffff;
        padding-left: 0.5rem;
    }

    .experience-table tbody tr:hover {
        background: rgba(0, 51, 102, 0.35);
    }

    .hero-container {
        flex-direction: row;
        align-items: flex-start;
    }
}