/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: #ffffff;
    --text-color: #1a1a1a;
    --accent-color: #007aff; /* Apple-style blue */
    --gray: #f4f4f4;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-color);
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 10%;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4rem 10%;
    min-height: 80vh;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--text-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: transform 0.2s;
}

.btn:hover {
    transform: translateY(-3px);
}

/* Project Grid */
.project-section {
    padding: 6rem 10%;
    background: var(--gray);
}

.section-header {
    margin-bottom: 3rem;
}

/* Update this section in your style.css */
.project-grid {
    display: grid;
    /* This tells the grid: "Fit as many as possible, but make them at least 300px wide" */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 2rem; /* Reduced gap slightly to help things fit */
}

/* Ensure images within cards maintain a consistent height for a clean row look */
.project-card img {
    width: 100%;
    height: 250px; /* Fixed height makes the row look uniform */
    object-fit: cover; /* Prevents stretching */
}
.project-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: 0.3s;
}
/* Initial state: Hidden and slightly lower */
.project-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

/* State when scrolled into view */
.project-card.show {
    opacity: 1;
    transform: translateY(0);
}
.project-card:hover {
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.project-img-placeholder img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.project-info {
    padding: 1.5rem;
}

.view-link {
    display: inline-block;
    margin-top: 1rem;
    text-decoration: none;
    color: var(--accent-color);
    font-weight: bold;
}
.project-group {
    padding: 4rem 10%;
}

.hs-section {
    background-color: #fafafa; /* Subtle shift in background to show a new 'era' */
    border-top: 1px solid #eee;
}

.subtitle {
    color: #666;
    margin-bottom: 2rem;
    font-style: italic;
}

/* Optional: Make HS projects look 'archived' until hovered */
.hs-section .project-card img {
    filter: grayscale(40%);
    transition: 0.3s;
}
.project-card {
    display: flex;
    flex-direction: column;
    height: 100%; /* Makes all cards in a row the same height */
}
.project-link {
    text-decoration: none;
    color: inherit;
    display: block; /* Makes the whole area clickable */
}
.project-info {
    flex-grow: 1; /* Pushes the content to fill the space */
    display: flex;
    flex-direction: column;
}

.hs-section .project-card:hover img {
    filter: grayscale(0%);
}
.detail-container {
    padding: 2rem 10%;
    max-width: 1200px;
    margin: 0 auto;
}

.detail-hero img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.detail-content {
    margin-top: 3rem;
}

.detail-content h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.tagline {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-bottom: 2rem;
    font-weight: 600;
}

.description h2 {
    margin: 2rem 0 1rem 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

.back-btn {
    display: inline-block;
    margin-top: 4rem;
    text-decoration: none;
    color: #888;
    transition: color 0.3s;
}

.back-btn:hover {
    color: var(--text-color);
}
/* Footer */
footer {
    text-align: center;
    padding: 5rem 0;
}
/* Layout Tweaks for the 'About' Page */
.about-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 6rem 10%;
    align-items: center;
}

.story-text p {
    font-size: 1.2rem;
    color: #444;
    margin-bottom: 1.5rem;
    max-width: 600px;
}

/* Era Header Styling */
.era-section {
    padding: 4rem 10%;
}

.era-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 2px solid #eee;
    margin-bottom: 3rem;
    padding-bottom: 1rem;
}

.era-header h2 {
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.era-header span {
    color: #888;
    font-family: monospace;
}

.hs-era {
    background-color: #fcfcfc;
}

/* Scroll Animation classes from previous step remain the same */

/* Responsive for Mobile */
@media (max-width: 768px) {
    .hero {
        flex-direction: column-reverse;
        text-align: center;
    }
    .hero-content h1 {
        font-size: 2.5rem;
        margin-top: 2rem;
    }
    .project-grid {
        grid-template-columns: 1fr;
    }
}
/* Contact Page Styling */
.contact-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh; /* Centers the content vertically */
    padding: 2rem 10%;
    text-align: center;
}

.contact-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.contact-hero p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto 3rem auto;
}

.email-box {
    background: #f9f9f9;
    padding: 3rem;
    border-radius: 20px;
    display: inline-block;
    border: 1px solid #eee;
}

.email-link {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
    border-bottom: 3px solid var(--accent-color);
    transition: all 0.3s ease;
}

.email-link:hover {
    color: var(--accent-color);
    border-bottom-color: var(--text-color);
}

.hint {
    margin-top: 1rem;
    font-size: 0.9rem !important;
    color: #999 !important;
}