/* ============================================
   PROJECT 2 - SUBARU WRX GC8 RESTORATION STYLES
   ============================================ */
/* Mirrors project1.css's structure (see that file's comments for the fuller
   rationale on each pattern) — trimmed to just what this page actually
   uses, since there's no bespoke interactive display here the way the
   split-flap clock has one. */

/* ============================================
   PROJECT HERO SECTION
   ============================================ */

.project-hero {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 80px 2rem 3rem;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.project-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: slideInDown 0.8s ease;
}

.hero-concept-image {
    width: 100%;
    max-width: 720px;
    border-radius: 14px;
    margin: 0.75rem auto 1.75rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    animation: fadeInUp 0.8s ease 0.1s both;
    cursor: zoom-in;
}

.project-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    max-width: 700px;
    /* max-width alone only caps the box's width — without this it sits
       flush left inside .hero-content whenever that's wider than 700px
       (e.g. because the title above it is wider), so the text reads as
       centered within its own box while the box itself sits off-centre. */
    margin: 0 auto;
    animation: slideInUp 0.8s ease 0.2s both;
}

.logbook-button {
    margin-top: 2rem;
    animation: slideInUp 0.8s ease 0.4s both;
}

/* ============================================
   PROJECT SECTIONS
   ============================================ */

.project-section {
    padding: 5rem 0;
    position: relative;
    border-bottom: 1px solid rgba(51, 51, 51, 0.5);
}

.project-section:last-of-type {
    border-bottom: none;
}

.section-content {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.text-content {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.1rem;
}

.text-content p {
    margin-bottom: 1.5rem;
}

.text-content strong {
    color: var(--text-primary);
}

/* Overview specifically reads better centered, sitting directly under the
   centered hero image/title above it — the other text-content blocks on
   this page (The Plan intro, Follow Along intro) stay left-aligned. */
#overview .text-content {
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
}

.text-content a {
    color: var(--accent-light);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.text-content a:hover {
    color: var(--accent);
}

/* ============================================
   FEATURE CARDS (restoration areas / follow-along links)
   ============================================ */

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

.feature-card {
    background: rgba(37, 37, 37, 0.6);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }

.feature-card:hover {
    background: rgba(37, 37, 37, 0.9);
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.15);
}

.feature-card h3 {
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Follow-along cards are actual links (Instagram / Joel's site) rather than
   static info cards — strip the anchor's default styling so it still reads
   as a feature-card, not a link. */
.follow-along-card {
    text-decoration: none;
    display: block;
    cursor: pointer;
}

.follow-along-card h3 {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.follow-along-card h3::after {
    content: '↗';
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ============================================
   BACK LINK
   ============================================ */

.back-link-section {
    text-align: center;
    padding: 3rem 0;
}

.back-link {
    color: var(--accent);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.back-link:hover {
    color: var(--accent-light);
    transform: translateX(-5px);
}

/* ============================================
   ANIMATIONS
   ============================================ */

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

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .project-title {
        font-size: 2.5rem;
    }

    .project-subtitle {
        font-size: 1.1rem;
    }

    .text-content {
        padding: 0 0.5rem;
    }
}

@media (max-width: 480px) {
    .project-title {
        font-size: 2rem;
    }

    .project-subtitle {
        font-size: 1rem;
    }
}
