/* Base Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    line-height: 1.6;
    background-color: #F7D147; /* UMich Maize */
    color: #102F58; /* UMich Blue */
    font-size: 16px;
}

/* General Header & Navigation */
header {
    background: #102F58; /* UMich Blue */
    color: #F7D147; /* UMich Maize */
    padding: 10px 20px;
    text-align: center;
}

nav a {
    color: #F7D147; /* UMich Maize */
    margin: 0 10px;
    text-decoration: none;
}

nav a:hover {
    text-decoration: underline;
}

/* Main Content */
main {
    max-width: 1000px;
    margin: 20px auto;
    background: white;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Index Page: Profile Layout */
.content-container {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.profile-figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 1em 0 0;
}

.profile-image {
    width: 220px;            /* Or your preferred size */
    height: auto;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 0.5em;
}

.profile-caption {
    font-size: 0.98em;
    color: #555;
    text-align: center;
    margin-top: 0;
    margin-bottom: 0.5em;
    max-width: 190px;
}

.involvement-section {
    margin: 2em 0 2em 0;
    padding: 1em;
    background: #f3f6fa;
    border-radius: 6px;
}

.involvement-list {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
}

.involvement-list li {
    margin: 0.5em 0;
    font-size: 1.05em;
}

.involvement-list a {
    text-decoration: none;
    color: #1353a3;
    font-weight: 500;
}
.involvement-list a:hover {
    text-decoration: underline;
}

.text-content {
    flex: 1;
}

/* Resume Page Styling */
.resume-container {
    font-size: 18px;
}

.resume-container h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.resume-container h3 {
    font-size: 24px;
    margin-top: 20px;
    margin-bottom: 10px;
    border-bottom: 2px solid #102F58;
}

.resume-container p {
    margin: 5px 0;
}

.resume-container ul {
    margin: 10px 0;
    padding-left: 20px;
}

.resume-container a {
    color: #102F58;
    text-decoration: underline;
}

.resume-container a:hover {
    color: #F7D147;
    background: #102F58;
}

/* Blog Page Styling */
.blog-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.blog-post {
    background: white;
    padding: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.blog-post h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #102F58;
}

.blog-date {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.blog-image {
    display: block;
    width: 100%;              /* Always fill container width */
    max-width: 100%;          /* Don't exceed container */
    height: auto;             /* Maintain aspect ratio */
    object-fit: contain;      /* Fit entire image within bounds */
    max-height: 500px;        /* Prevent extremely tall images */
    margin: 1em auto;         /* Centered with vertical space */
    border-radius: 8px;       /* Rounded corners */
    box-shadow: 0 2px 8px rgba(0,0,0,0.07); /* Subtle shadow */
}

/* Footer */
footer {
    text-align: center;
    margin-top: 20px;
    color: #102F58;
}

.footer-bar {
    background: #102F58;
    padding: 10px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-bar a {
    color: #F7D147;
    text-decoration: none;
}

.footer-bar a:hover {
    text-decoration: underline;
}

/* Headings */
h1 {
    color: #F7D147;
}

h2 {
    color: #102F58;
}

/* Responsive Design */
@media (max-width: 600px) {
    .content-container {
        flex-direction: column;
        align-items: center;
    }

    .profile-image {
        width: 100%;
        max-width: 300px;
    }

    .footer-bar {
        flex-direction: column;
        gap: 10px;
    }

    .resume-container {
        font-size: 16px;
    }

    .resume-container h2 {
        font-size: 28px;
    }

    .resume-container h3 {
        font-size: 20px;
    }

    .blog-post {
        padding: 15px;
    }

    .blog-image {
        max-width: 100%;
    }
}

/* =============================== */
/* Special Styles for Asteroid Game Page */
/* =============================== */

/* Override body for asteroid.html only */
body.asteroid-page {
    background-color: #102F58; /* Michigan Blue */
    color: #F7D147; /* Maize */
    font-family: 'Courier New', monospace;
    padding: 0;
    margin: 0;
}

.asteroid-page main {
    background-color: transparent;
    box-shadow: none;
    padding: 20px;
    color: #F7D147;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.asteroid-page h1,
.asteroid-page h2,
.asteroid-page header nav a {
    color: #F7D147 !important;
}

.asteroid-page .footer-bar {
    background-color: #F7D147 !important;
}

.asteroid-page .footer-bar a {
    color: #102F58 !important;
}

.asteroid-page canvas {
    border: 2px solid #F7D147;
    margin-top: 20px;
    background-color: #102F58; /* UMich Blue */
    display: block;
}

.asteroid-page p {
    max-width: 600px;
}

.project {
    margin-bottom: 2em;
    padding: 1em;
    border-radius: 6px;
    background: #f8f8f8;
}

.project-content {
    display: flex;
    align-items: flex-start;
}

.project-img {
    width: 200px;
    height: auto;
    margin-right: 1em;
    border-radius: 4px;
}
@media (max-width: 700px) {
    .project-content {flex-direction: column;}
    .project-img {margin-bottom: 1em; margin-right: 0;}
}

.skills-section, .useful-info-section, .fun-facts-section {
    margin: 2em 0;
    background: #f9f9f9;
    padding: 1em;
    border-radius: 6px;
}
.skills-section h2, .useful-info-section, .fun-facts-section h2 {
    margin-top: 0;
}

.skills-list {
    list-style-type: disc;
    margin-left: 1.5em;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Always 2 columns */
    gap: 1em;
    justify-items: center;
    margin-top: 1em;
}

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

.project-media {
    width: 100%;
    max-width: 280px;
    border-radius: 4px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.media-grid-description {
    margin-top: 1em;
    text-align: center;
}

.timeline-section {
    margin: 2em 0;
    background: #f3f6fa;
    border-radius: 6px;
    padding: 1em 0.5em;
}
.gpa-banner {
    font-size: 1.15em;
    font-weight: bold;
    color: #1353a3;
    padding: 0.4em;
    text-align: left;
    margin-bottom: 0.5em;
}
.course-timeline {
    display: flex;
    gap: 3em;
    flex-wrap: wrap;
    margin-bottom: 1em;
}
.semester {
    min-width: 220px;
}
@media (max-width:700px) {
    .course-timeline {
        flex-direction: column;
        gap: 1.5em;
    }
}
.resume-container h2, .resume-container h3 {
    color: #102F58;
    margin-top: 1em;
    margin-bottom: 0.5em;
}
.resume-container ul {
    margin-left: 1em;
    margin-bottom: 1em;
}
.resume-container p {
    margin-bottom: 0.4em;
}


/* =============================== */
/* Showcase Page Styles */
/* =============================== */

/* Add these styles to the end of your existing styles.css file */

.showcase-intro {
    text-align: center;
    margin: 2em 0;
    padding: 1.5em;
    background: #f3f6fa;
    border-radius: 6px;
}

.showcase-intro h2 {
    color: #102F58; /* UMich Blue */
    margin-top: 0;
    font-size: 2em;
}

.showcase-intro p {
    color: #102F58;
    font-size: 1.1em;
    margin-bottom: 0;
}

/* Project card styling */
.project {
    margin-bottom: 3em;
    padding: 1.5em;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: box-shadow 0.3s ease;
}

.project:hover {
    box-shadow: 0 4px 20px rgba(16, 47, 88, 0.15);
}

.project-content {
    display: flex;
    align-items: flex-start;
    gap: 2em;
}

.project-img {
    width: 300px;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.project-info {
    flex: 1;
}

.project-info h3 {
    color: #102F58; /* UMich Blue */
    font-size: 1.8em;
    margin-top: 0;
    margin-bottom: 0.5em;
}

.project-info p {
    color: #333;
    line-height: 1.7;
    margin-bottom: 1.5em;
}

.project-links {
    display: flex;
    gap: 1em;
    align-items: center;
    flex-wrap: wrap;
}

.project-button {
    display: inline-block;
    background: #102F58; /* UMich Blue */
    color: #F7D147; /* UMich Maize */
    padding: 0.8em 2em;
    font-size: 1.1em;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    border: 2px solid #102F58;
    transition: all 0.3s ease;
}

.project-button:hover {
    background: #F7D147;
    color: #102F58;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 47, 88, 0.2);
}

.project-link-secondary {
    color: #102F58;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.project-link-secondary:hover {
    border-bottom-color: #102F58;
}

/* Responsive design for showcase */
@media (max-width: 768px) {
    .project-content {
        flex-direction: column;
        gap: 1em;
    }
    
    .project-img {
        width: 100%;
        max-width: 100%;
    }
    
    .project {
        padding: 1em;
        margin-bottom: 2em;
    }
    
    .project-info h3 {
        font-size: 1.5em;
    }
    
    .project-button {
        width: 100%;
        text-align: center;
        padding: 1em;
    }
    
    .project-links {
        flex-direction: column;
        gap: 0.5em;
    }
    
    .project-link-secondary {
        width: 100%;
        text-align: center;
        display: block;
        padding: 0.5em;
    }
}

/* Optional: Featured project highlight */
.project.featured {
    border: 3px solid #F7D147; /* UMich Maize */
    background: linear-gradient(to bottom, #fff 0%, #fffef5 100%);
}

.project.featured::before {
    content: "⭐ Featured";
    display: inline-block;
    background: #F7D147;
    color: #102F58;
    padding: 0.3em 1em;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9em;
    margin-bottom: 1em;
}

/* Optional: Project tags */
.project-tags {
    display: flex;
    gap: 0.5em;
    flex-wrap: wrap;
    margin-top: 1em;
}

.tag {
    background: #f3f6fa;
    color: #102F58;
    padding: 0.3em 0.8em;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: 500;
}

.carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1em 0;
}

.carousel-image {
    display: none;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.carousel-image.active {
    display: block;
}

.carousel-btn {
    position: absolute;
    background: rgba(16, 47, 88, 0.7);
    color: #F7D147;
    border: none;
    font-size: 24px;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background: rgba(16, 47, 88, 0.9);
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

@media (max-width: 768px) {
    .carousel-btn {
        font-size: 18px;
        padding: 8px 12px;
    }
}