/* ============================= */
/* === 4. HERO =============== */
/* ============================= */

.hero {
    margin: var(--space-lg) 0;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.2em;
}

.hero h2 {
    font-size: 1.2rem;
    font-weight: normal;
    color: var(--color-muted);
    margin-top: 0;
}

.hero h2:first-of-type {
    font-size: 1.4rem;
    font-weight: 500;
    max-width: 40ch;
}

.hero p {
    margin-bottom: 1.2em;
    color: var(--color-text);
}

.subtitle {
    font-size: 1rem;
    color: var(--color-muted);
    margin-top: -0.5em;
}

.meta-line {
    margin-top: 0.5em;
    margin-bottom: 1em;
    font-size: 0.95rem;
    color: var(--color-muted);
}

/* ============================= */
/* === CTA ==== */
/* ============================= */

.cta-button {
    display: inline-block;
    padding: 0.5em 1em;
    border-radius: 8px;
    background: var(--color-primary);
    color: white;
    font-weight: 500;
    transition: 0.2s;
}

.cta-button:hover {
    background: var(--color-primary-hover);
}

/* ============================= */
/* === 5. SECTIONS & CARDS ==== */
/* ============================= */

section {
    margin-top: var(--space-lg);
}

.hero,
section {
    background: var(--color-surface);
    padding: var(--space-md);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero:hover,
section:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-strong);
}

/* ============================= */
/* === 6. PROJECT GRID ======== */
/* ============================= */

.projects {
    display: grid;
    gap: 1.5em;
    grid-template-columns: 1fr;
}

.card {
    background: var(--color-surface);
    padding: var(--space-md);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    display: block;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border 0.18s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--color-primary);
    opacity: 0.8;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-strong);
}

.card:hover::before {
    opacity: 1;
}

.card h3 {
    margin: 0 0 0.3em;
    transition: transform 0.15s ease;
}

.card:hover h3 {
    transform: translateX(3px);
}

.meta {
    font-size: 0.9em;
    color: var(--color-muted);
    margin-bottom: 0.5em;
}

.result {
    margin-top: 0.8em;
    font-weight: 500;
    color: var(--color-primary);
}

.featured-click {
    display: grid;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.featured-click:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-strong);
}

.featured-click:hover h3 {
    transform: translateX(3px);
    transition: 0.15s;
}

/* ============================= */
/* === 7. FEATURED PROJECT ==== */
/* ============================= */

.featured-card {
    display: grid;
    gap: 2em;
    align-items: center;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.featured-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-strong);
}

.featured-text h3 {
    margin-top: 0;
    font-size: 1.4rem;
}

.featured-image img {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.pipeline {
    margin-top: 1em;
    margin-bottom: 1.5em;
    overflow-x: auto;
    max-width: 100%;
    height: auto;
}

.highlight+.text {
    font-weight: 500;
}

/* ============================= */
/* === 9. RESPONSIVE ========= */
/* ============================= */

@media (min-width: 700px) {
    .projects {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 800px) {
    .featured-card {
        grid-template-columns: 1.2fr 1fr;
    }
}

@media (max-width: 700px) {
    .right {
        float: none;
        display: block;
        margin: 0 auto 1.5em auto;
        max-width: 220px;
    }

    .hero {
        text-align: center;
    }
}

@media (hover: none) {
    .card:hover {
        transform: none;
        box-shadow: var(--shadow-soft);
    }
}


/* ============================= */
/* === 10. DARK MODE ========= */
/* ============================= */

@media (prefers-color-scheme: dark) {
    .hero p {
        color: var(--color-text-dark);
    }

    .hero,
    section {
        background: var(--color-surface-dark);
    }

    .card {
        background: var(--color-surface-elevated-dark);
    }

    .hero h2,
    .subtitle {
        color: var(--color-muted-dark);
    }

    .meta {
        color: var(--color-muted-dark);
    }

    .result {
        color: var(--color-primary-dark);
    }
}