/* ==========================================================================
   Personal overrides — legacy hero layout glue
   --------------------------------------------------------------------------
   Loaded after the base sheets. Supplies the rules the classic Hari.is-a.dev
   markup expects that the rewritten base stylesheet no longer provides.
   Additive only; edit here rather than in css/styles.css.
   ========================================================================== */

/* Hero: two-column layout — text left, profile card pinned top-right.
   Card top lines up with the "BUILDING…" headline (clearing the tag line),
   sitting directly beneath the nav's Contact corner. */

.hero-content {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr);
    align-items: start;
    gap: clamp(1.5rem, 3vw, 3rem);
    width: min(var(--container), 92%);
    margin-inline: auto;
}

.hero-left {
    min-width: 0;
}

.tag {
    margin-bottom: 1rem;
    color: var(--accent-light);
    font-weight: 700;
}

.hero h1 {
    font-size: clamp(3rem, 7vw, 5.5rem);
    line-height: 1;
}

.hero h1 span {
    display: block;
    margin-top: .5rem;
    color: var(--accent-light);
}

.hero h2 {
    margin-bottom: 1.25rem;
    font-size: var(--step-2);
    color: var(--text-muted);
}

.hero-description {
    max-width: 640px;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Currently building — chip cards */

.currently-building {
    margin-top: 2rem;
}

.currently-building h3 {
    margin-bottom: 1rem;
    font-size: var(--step-0);
}

.currently-building ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.currently-building li {
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    font-size: var(--step--1);
    text-align: center;
    transition: border-color var(--transition), transform var(--transition);
}

.currently-building li:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

/* Profile card — proportions from the original design */

.hero-profile-card {
    justify-self: end;
    width: min(432px, 100%);
    margin-top: 2.5rem; /* clears the "Welcome to" tag so the tile top meets the headline */
    padding: clamp(2rem, 3.4vw, 2.6rem);
    border-radius: 26px;
    background: rgba(18, 27, 45, .95);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .35);
}

.hero-profile-card h3 {
    margin-bottom: 8px;
    font-size: 1.9rem;
}

.hero-profile-card .hero-profile-image {
    width: 184px;
    height: 184px;
}

@media (max-width: 640px) {

    .hero-profile-card .hero-profile-image {
        width: 140px;
        height: 140px;
    }

    .hero h1 {
        font-size: clamp(2rem, 9vw, 3rem);
    }

    .hero-description {
        font-size: 1rem;
    }
}

/* The base sheet styles .hero-role as a large gradient headline for the
   new hero; inside this card restore the original small accent line. */

.hero-profile-card .hero-role {
    margin-bottom: 10px;
    background: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    -webkit-text-fill-color: var(--accent-light);
    color: var(--accent-light);
    font-size: var(--step-0);
    letter-spacing: 0;
}

.hero-speciality {
    margin-bottom: 26px;
    color: var(--text-secondary);
    font-size: var(--step--1);
    line-height: 1.6;
}

/* Certifications & education strip */

.cert-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .75rem;
}

.cert-list li {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    padding: .9rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    transition: border-color var(--transition), transform var(--transition);
}

.cert-list li:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.cert-name {
    font-size: var(--step--1);
    font-weight: 600;
}

.cert-meta {
    color: var(--text-muted);
    font-size: .78rem;
    letter-spacing: .03em;
}

.education-line {
    margin-top: 1.5rem;
    color: var(--text-muted);
    font-size: var(--step--1);
    text-align: center;
}

/* Timeline project disclosures */

.timeline-projects {
    margin-top: .75rem;
    padding-top: 1.25rem;
    border-top: 1px dashed var(--border-strong);
}

.timeline-project {
    margin-bottom: .75rem;
    padding: .9rem 1.1rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255, 255, 255, .03);
}

.timeline-project:last-child {
    margin-bottom: 0;
}

.timeline-project h4 {
    margin-bottom: .5rem;
    font-size: var(--step--1);
    color: var(--accent-light);
}

.timeline-project ul {
    margin: 0;
    padding-left: 1.15rem;
    list-style: disc;
}

.timeline-project li {
    margin-bottom: .35rem;
    color: var(--text-secondary);
    font-size: var(--step--1);
    line-height: 1.55;
}

.project-button-icon {
    display: inline-block;
    transition: transform var(--transition);
}

.project-button[aria-expanded="true"] .project-button-icon {
    transform: rotate(90deg);
}

/* Fetch failure states (renderError) */

.timeline-error {
    padding: 2rem 0;
    color: #f87171;
    font-size: var(--step--1);
}

/* Responsive collapse */

@media (max-width: 900px) {

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-profile-card {
        justify-self: center;
        margin-top: 0;
    }

    .hero-description {
        margin-inline: auto;
    }

    .hero-buttons {
        justify-content: center;
    }
}

@media (max-width: 640px) {

    .currently-building ul {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
    }
}
