/* Variables for Purdue Theme */
:root {
    --bg-black: #1a1a1a;
    --text-white: #c3c7c7;
    --purdue-gold: #bba53d;
    --muted-gray: #888888;
}

body {
    background-color: var(--bg-black);
    color: var(--text-white);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    font-size: 16px;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("texture_sq_smal.png");
    background-repeat: repeat;
    background-size: 60px 60px;
    opacity: 0.25;
    mix-blend-mode: screen;
    pointer-events: none;
    z-index: -1;
}

h1, h2, h3, h4, strong, b {
    color: var(--purdue-gold);
    font-weight: 600;
}

.main-name {
    text-align: left;
    font-size: 2rem;
    margin-top: 0;
    margin-bottom: 0.6rem;
    color: var(--purdue-gold);
    border-bottom: none;
}

.heading-accent {
    width: 46px;
    height: 3px;
    background-color: var(--purdue-gold);
    border: none;
    margin: 0 0 1.8rem 0;
}

a {
    color: var(--purdue-gold);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

a:hover {
    color: #ffffff;
}

/* Center the Entire Page Layout */
.page-wrapper {
    display: flex;
    max-width: 1120px; /* 320px for sidebar + 800px for content */
    margin: 0 auto; /* This is the magic rule that centers everything on large screens */
    position: relative;
}

/* Sticky Left Sidebar */
.sidebar {
    position: sticky;
    top: 2rem;
    width: 300px;
    max-height: calc(100vh - 4rem);
    margin: 2rem 0 2rem 0;
    padding: 2.5rem 1.8rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex-shrink: 0;
    background-color: #212121;
    border: 1px solid #333;
    border-radius: 16px;
}

.profile-img {
    width: 140px;
    height: 140px;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 1.2rem;
    border: 2px solid var(--purdue-gold);
}

.sidebar-name {
    font-size: 1.4rem;
    margin: 0 0 0.6rem 0;
}

.sidebar-badge {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--purdue-gold);
    border: 1px solid var(--purdue-gold);
    border-radius: 20px;
    padding: 0.3rem 0.9rem;
    margin-bottom: 1.8rem;
}

.sidebar hr {
    width: 100%;
    border: none;
    border-top: 1px solid #333;
    margin: 0 0 1.5rem 0;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    width: 100%;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.55rem 0.7rem;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid #333;
    border-radius: 8px;
    text-align: left;
    transition: border-color 0.2s ease-in-out, background-color 0.2s ease-in-out;
}

.contact-item:hover {
    border-color: var(--purdue-gold);
    background-color: rgba(207, 185, 145, 0.06);
}

.contact-icon {
    flex: 0 0 34px;
    height: 34px;
    border: 1.5px solid var(--purdue-gold);
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--purdue-gold);
    font-size: 0.9rem;
}

.contact-text {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.contact-label {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--muted-gray);
}

.contact-value {
    font-size: 0.82rem;
    color: var(--text-white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contact-item:hover .contact-value {
    color: var(--purdue-gold);
}

/* Right Scrolling Content */
#about p {
    text-align: justify;
}
.content {
    flex-grow: 1;
    max-width: 800px;
    padding: 4rem 3rem;
    box-sizing: border-box;
}

section {
    margin-bottom: 2.5rem;
    background-color: #212121;
    border: 1px solid #333;
    border-radius: 16px;
    padding: 2rem 2.2rem;
    box-sizing: border-box;
}

section h2 {
    font-size: 1.5rem;
    border-bottom: 1px solid #333;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.subsection-title {
    margin-top: 2.5rem;
    font-size: 1.2rem;
}

/* Experience Styling */
.exp-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.exp-logo {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.exp-body {
    flex: 1;
    min-width: 0;
}

.exp-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.2rem 1rem;
    margin-bottom: 0.5rem;
}

.exp-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.exp-date {
    font-size: 0.9rem;
    color: var(--muted-gray);
}

.exp-item p {
    margin: 0;
    font-size: 0.95rem;
}

/* Publication Styling - With Images/GIFs */
.pub-item {
    display: flex;
    flex-direction: row;
    gap: 1.5rem; /* Space between the image and the text */
    margin-bottom: 2rem;
    align-items: flex-start;
}

.pub-image {
    flex: 0 0 180px; /* Forces the image box to be exactly 180px wide */
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--muted-gray);
    background-color: #000; /* Dark background if image doesn't fill completely */
}

.pub-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.pub-image-multi {
    flex: 0 0 380px;
    display: flex;
    gap: 2px;
    border: none;
    background: none;
    border-radius: 0;
    overflow: visible;
}

.pub-image-multi img {
    width: 33.33%;
    border-radius: 6px;
    border: 1px solid var(--muted-gray);
    background-color: #000;
}

/* Publication Styling - With Images/GIFs */
.pub-item {
    display: flex;
    flex-direction: row;
    gap: 1.5rem; /* Space between the image and the text */
    margin-bottom: 2rem;
    align-items: flex-start;
}

.pub-image {
    flex: 0 0 180px; /* Forces the image box to be exactly 180px wide */
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--muted-gray);
    background-color: #000; /* Dark background if image doesn't fill completely */
}

.pub-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.pub-info {
    flex: 1; /* Allows the text box to take up the remaining space */
}

.pub-title {
    font-weight: bold;
    color: var(--purdue-gold);
    font-size: 1.05rem;
    margin-bottom: 0.2rem;
    line-height: 1.3;
}

.pub-authors {
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.pub-venue {
    font-size: 0.9rem;
    font-style: italic;
    color: var(--muted-gray);
    margin-bottom: 0.4rem;
}

.pub-desc {
    font-size: 0.9rem;
    color: var(--text-white);
    margin-top: 0.3rem;
    line-height: 1.5;
}

.pub-links {
    font-size: 0.85rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.6rem;
}

.pub-links a {
    color: var(--purdue-gold);
    font-weight: 600;
    border: 1.5px solid var(--purdue-gold);
    border-radius: 4px;
    padding: 0.35rem 0.9rem;
    background-color: transparent;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.pub-links a:hover {
    color: var(--bg-black);
    background-color: var(--purdue-gold);
}

.culinary-banner {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    margin: 1rem 0 1.5rem 0;
    border: 1px solid var(--muted-gray);
}

.culinary-banner img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    filter: brightness(0.5);
}

.culinary-banner-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 1rem;
}

.culinary-banner-text .script {
    font-family: "Brush Script MT", "Segoe Script", cursive;
    font-size: 1.7rem;
    color: var(--purdue-gold);
    margin-bottom: 0.3rem;
}

.culinary-banner-text h3 {
    margin: 0 0 0.3rem 0;
    font-size: 1.9rem;
    color: #fff;
    font-weight: 700;
}

.culinary-banner-text p {
    margin: 0;
    font-size: 0.95rem;
    color: #eee;
    font-style: italic;
}

.hobby-gallery {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hobby-gallery img {
    width: 220px;
    height: 160px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--muted-gray);
    box-sizing: border-box;
}

.hobby-gallery img.trophy-img {
    object-fit: contain;
    background-color: #000;
}

.hobby-gallery img.full-ar {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
    background-color: #000;
}

/* Testimonial grid for mentoring feedback */
.testimonial-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.testimonial {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid #333;
    border-left: 3px solid var(--purdue-gold);
    border-radius: 4px;
    padding: 1rem 1.2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial p {
    margin: 0 0 0.8rem 0;
    font-size: 0.9rem;
    font-style: italic;
    color: var(--text-white);
}

.testimonial-sign-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.testimonial cite {
    font-size: 0.85rem;
    font-style: normal;
    color: var(--purdue-gold);
    font-weight: 600;
}

.testimonial-signature {
    background-color: #fff;
    border-radius: 4px;
    padding: 0.2rem 0.6rem;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.testimonial-signature img {
    height: 32px;
    width: auto;
    display: block;
}

.back-link {
    display: inline-block;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

/* Jump navigation */
.jump-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    padding: 0.7rem;
    margin-bottom: 2.5rem;
    background-color: #212121;
    border: 1px solid #333;
    border-radius: 12px;
    position: sticky;
    top: 1rem;
    z-index: 10;
}

.jump-nav a {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--muted-gray);
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    border-bottom: 2px solid transparent;
}

.jump-nav a:hover {
    color: var(--text-white);
}

.jump-nav a.active {
    color: var(--purdue-gold);
    border-bottom: 2px solid var(--purdue-gold);
}

/* Tablet and below: stack the sidebar above the content */
@media (max-width: 900px) {
    body {
        font-size: 15px;
    }

    .page-wrapper {
        flex-direction: column;
        max-width: 100%;
        padding: 0 1rem;
        box-sizing: border-box;
    }

    .sidebar {
        position: static;
        width: 100%;
        max-height: none;
        margin: 1.5rem 0 0 0;
    }

    .content {
        max-width: 100%;
        padding: 1.5rem 0 3rem 0;
    }

    .jump-nav {
        top: 0.5rem;
    }
}

@media (max-width: 600px) {
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
}

/* Ensure mobile screens stack the image above the text */
@media (max-width: 600px) {
    .pub-item {
        flex-direction: column;
        gap: 1rem;
    }
    .pub-image {
        flex: 0 0 auto;
        width: 100%;
        max-width: 300px;
    }
    .pub-image-multi {
        flex: 0 0 auto;
        width: 100%;
        max-width: 300px;
    }
    section {
        padding: 1.5rem 1.2rem;
    }
    .jump-nav {
        gap: 0.2rem;
        padding: 0.5rem;
    }
    .jump-nav a {
        font-size: 0.7rem;
        padding: 0.4rem 0.6rem;
    }
    #about p {
        text-align: left;
    }
    .hobby-gallery img {
        width: calc(50% - 0.5rem);
        height: 110px;
    }
    .culinary-banner img {
        height: 160px;
    }
    .culinary-banner-text h3 {
        font-size: 1.4rem;
    }
}
