/* ===============================
   Minnesota State University Theme
   =============================== */

:root {
    --msu-purple: #4B2E83;
    --msu-gold: #FFC72C;
    --dark-text: #2B2B2B;
    --light-bg: #F5F5F7;
    --white: #FFFFFF;
}

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

body {
    font-family: "Segoe UI", Arial, sans-serif;
    color: var(--dark-text);
    background: var(--light-bg);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    width: 90%;
    margin: auto;
}

/* Header */
.site-header {
    background: var(--msu-purple);
    color: var(--white);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
}

nav a {
    color: var(--white);
    margin-left: 1.2rem;
    text-decoration: none;
    font-weight: 600;
}

nav a:hover {
    color: var(--msu-gold);
}

/* Hero */
.hero {
    background: linear-gradient(
        rgba(75, 46, 131, 0.85),
        rgba(75, 46, 131, 0.85)
    );
    color: var(--white);
    text-align: center;
    padding: 4rem 0;
}

.hero h2 {
    font-size: 2.4rem;
    margin-bottom: 1rem;
}

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

/* Sections */
.section {
    padding: 3rem 0;
    background: var(--white);
}

.section-alt {
    background: var(--light-bg);
}

.section h2 {
    color: var(--msu-purple);
    margin-bottom: 1rem;
}

.section h3 {
    color: var(--msu-purple);
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.section p {
    max-width: 800px;
}

/* Lists */
ul {
    margin-top: 1rem;
    margin-left: 1.2rem;
}

/* Button */
button {
    background: var(--msu-purple);
    color: var(--white);
    border: none;
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
    margin-top: 1rem;
    cursor: pointer;
    border-radius: 4px;
}

button:hover {
    background: var(--msu-gold);
    color: var(--dark-text);
}

/* Footer */
.site-footer {
    background: var(--msu-purple);
    color: var(--white);
    text-align: center;
    padding: 1.2rem 0;
    margin-top: 2rem;
}

/* Logo container */
.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.lab-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    background: #ffffff;
    padding: 4px;
}

.logo-text {
    font-size: 1.6rem;
    font-weight: bold;
}

/* Image collage layout */
.image-collage {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1.5rem;
    justify-content: center;
}

.image-collage img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--msu-purple);
    transition: transform 0.3s ease;
}

.image-collage img:hover {
    transform: scale(1.05);
}

/* People grid */
.people-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Person card */
.person-card {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    background: #ffffff;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* Profile image */
.person-card img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--msu-gold);
}

/* Text beside image */
.person-card h3 {
    margin: 0;
    color: var(--msu-purple);
    font-size: 1.1rem;
}

.person-card p {
    margin: 0.2rem 0 0;
    font-size: 0.95rem;
    color: #555;
}

/* ===============================
   Full-Width Activity Slideshow
   =============================== */

.activity-section {
    width: 100%;
    margin-top: 2rem;
}

.activity-slideshow {
    position: relative;
    width: 100%;
    height: 420px;
    overflow: hidden;
}

/* Image fills entire section */
.activity-slideshow img {
    width: 100%;
    height: 100%;
    object-fit: cover;   /* ensures no distortion */
    opacity: 1;
    transition: opacity 1s ease-in-out;
}

/* Fade-out state */
.activity-slideshow img.fade-out {
    opacity: 0;
}

/* Optional overlay title */
.activity-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        rgba(75, 46, 131, 0.4),
        rgba(75, 46, 131, 0.4)
    );
}

.activity-overlay h2 {
    color: #ffffff;
    font-size: 2.2rem;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .activity-slideshow {
        height: 260px;
    }

    .activity-overlay h2 {
        font-size: 1.6rem;
    }
}

/* ===============================
   Scrolling Highlights
   =============================== */

.highlights-wrapper {
    height: 160px;              /* Visible window */
    overflow: hidden;
    position: relative;
    border-left: 4px solid var(--msu-purple);
    padding-left: 1rem;
}

.highlights-scroll {
    list-style: none;
    padding: 0;
    margin: 0;
    animation: scrollHighlights 18s linear infinite;
}

.highlights-scroll li {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: #333;
}

/* Smooth constant upward scroll */
@keyframes scrollHighlights {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-50%);
    }
}


/* ===============================
   Project Cards
   =============================== */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(0,0,0,0.12);
}

/* Project image */
.project-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

/* Project content */
.project-content {
    padding: 1rem;
}

.project-content h3 {
    margin: 0;
    color: var(--msu-purple);
    font-size: 1.1rem;
}

.project-content p {
    margin-top: 0.5rem;
    font-size: 0.95rem;
    color: #555;
}

/* ===============================
   GitHub Project Link
   =============================== */

.github-link {
    display: inline-flex;
    align-items: center;
    margin-top: 0.75rem;
    color: var(--msu-purple);
    text-decoration: none;
}

.github-icon {
    width: 22px;
    height: 22px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.github-link:hover .github-icon {
    color: var(--msu-gold);
    transform: scale(1.1);
}
