/* =========================================================
   Home page — hero, about, projects, contact
   ========================================================= */

/* ── Hero ─────────────────────────────────────────────── */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem;
    max-width: 700px;
}

.hero-eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.25rem;
    opacity: 0;
}

.hero-name {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 0;
    opacity: 0;
}

.hero-name .name-accent {
    color: var(--accent);
    display: block;
}

.hero-title {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    font-weight: 400;
    color: var(--text-muted);
    margin-top: 1rem;
    margin-bottom: 2rem;
    opacity: 0;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    margin-top: 2.5rem;
}

.hero-cta {
    display: inline-block;
    padding: 0.75em 2em;
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    border-radius: var(--radius-sm);
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.hero-cta:hover {
    background: transparent;
    color: var(--accent);
    opacity: 1;
}

.hero-cta-ghost {
    background: transparent;
    color: var(--accent);
}

.hero-cta-ghost:hover {
    background: var(--accent);
    color: #fff;
    opacity: 1;
}

.hero-cta-ghost i {
    margin-right: 0.35em;
}

.hero-scroll-hint {
    position: absolute;
    bottom: calc(2rem + var(--nav-height));
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-muted);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0;
    animation: bounce-hint 2s ease-in-out infinite;
}

.hero-scroll-hint i {
    font-size: 1rem;
}

@keyframes bounce-hint {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(8px); }
}

/* ── Shared section styles ────────────────────────────── */

.home-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 5rem 3rem;
}

.section-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
    display: block;
}

.section-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 2.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

/* ── About ────────────────────────────────────────────── */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text p {
    color: var(--text-muted);
    line-height: 1.85;
    font-size: 1.05rem;
}

.about-text p + p {
    margin-top: 1.25rem;
}

.about-skills {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skill-group-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
    display: block;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.skill-tag {
    font-size: 0.8rem;
    padding: 0.3em 0.75em;
    border-radius: var(--radius-sm);
    background: var(--bg-2);
    border: 1px solid var(--border);
    color: var(--text);
    font-weight: 500;
}

/* ── Projects ─────────────────────────────────────────── */

.proj-list {
    display: flex;
    flex-direction: column;
    gap: 7rem;
    margin-top: 1rem;
}

.proj-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.proj-item.reverse .proj-image { order: 1; }
.proj-item.reverse .proj-body  { order: 0; }

/* Image */
.proj-image {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    aspect-ratio: 16 / 10;
}

.proj-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.proj-item:hover .proj-image img {
    transform: scale(1.03);
}

/* Body */
.proj-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.proj-number {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    opacity: 0.8;
}

.proj-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.15;
    margin: 0;
    transition: color 0.15s;
}

.proj-item:hover .proj-title {
    color: var(--accent);
}

.proj-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.85;
    margin: 0;
}

.proj-highlights {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.proj-highlights li {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
    padding-left: 1.1rem;
    position: relative;
}

.proj-highlights li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.7;
}

.proj-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.proj-tag {
    font-size: 0.72rem;
    padding: 0.25em 0.65em;
    border-radius: 4px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-weight: 600;
}

.proj-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    margin-top: 0.25rem;
    transition: gap 0.2s;
}

.proj-item:hover .proj-link {
    gap: 0.75rem;
}

/* ── Contact ──────────────────────────────────────────── */

.contact-inner {
    max-width: 560px;
}

.contact-inner p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.contact-links {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65em 1.4em;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: border-color 0.2s, color 0.2s;
}

.contact-link:hover {
    border-color: var(--accent);
    color: var(--accent);
    opacity: 1;
}

.contact-link i {
    font-size: 1.1em;
}

/* ── Divider ──────────────────────────────────────────── */

.home-divider {
    display: none;
}

/* ── Responsive ───────────────────────────────────────── */

@media (max-width: 1000px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .proj-item,
    .proj-item.reverse {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .proj-item.reverse .proj-image,
    .proj-item.reverse .proj-body {
        order: unset;
    }

    .proj-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 640px) {
    .home-section {
        padding: 3.5rem 1.25rem;
    }

    .hero-content {
        padding: 1.25rem;
    }

    .contact-links {
        flex-direction: column;
    }
}
