@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&display=swap');
@import url('assets/base.css');

/* --- Hero --- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 90px;
}
.hero .eyebrow { animation: fadeUp 0.6s ease-out both; }
.hero h1 {
    font-size: clamp(2.6rem, 7vw, 4.2rem);
    font-weight: 700;
    color: var(--text-bright);
    line-height: 1.05;
    animation: fadeUp 0.6s ease-out 0.1s both;
}
.hero h1 .accent { color: var(--accent); }
.hero .role-line {
    font-family: var(--mono);
    font-size: clamp(1.05rem, 2.6vw, 1.35rem);
    color: var(--accent-teal);
    margin-top: 18px;
    min-height: 1.6rem;
    animation: fadeUp 0.6s ease-out 0.2s both;
}
.typed-cursor { color: var(--accent-teal); }
.hero p.lede {
    max-width: 600px;
    margin-top: 22px;
    color: var(--text-dim);
    font-size: 1.05rem;
    animation: fadeUp 0.6s ease-out 0.3s both;
}
.hero .hero-actions {
    display: flex;
    gap: 16px;
    margin-top: 34px;
    flex-wrap: wrap;
    animation: fadeUp 0.6s ease-out 0.4s both;
}
.scroll-hint {
    margin-top: 70px;
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 8px;
}
.scroll-hint .bar { width: 1px; height: 24px; background: var(--border-strong); animation: pulse 2s infinite; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%,100% { opacity: 0.3; } 50% { opacity: 1; } }

section { padding: 90px 0; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease-out, transform 0.7s ease-out; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* --- About --- */
.about-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 40px;
    align-items: start;
}
.about-grid p { color: var(--text); margin-bottom: 16px; }
.about-grid p.aside-note {
    font-size: 0.9rem;
    color: var(--text-dim);
    border-left: 2px solid var(--accent);
    padding-left: 14px;
    margin-top: 24px;
}
.about-grid p.aside-note a { font-weight: 600; }

.stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 18px 16px;
}
a.stat-card { display: block; transition: border-color 0.2s, background 0.2s; }
a.stat-card:hover { border-color: var(--accent); background: var(--bg-card-hover); }
.stat-card .num { font-family: var(--mono); font-size: 1.3rem; color: var(--accent-teal); font-weight: 700; }
.stat-card .label { font-size: 0.82rem; color: var(--text-dim); margin-top: 6px; }

@media (max-width: 800px) {
    .about-grid { grid-template-columns: 1fr; }
}

/* --- Skills --- */
.skills-groups { display: flex; flex-direction: column; gap: 26px; }
.skills-group .group-label {
    font-family: var(--sans);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--accent);
    margin-bottom: 12px;
}
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* --- Projects preview --- */
.projects-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}
.proj-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    transition: border-color 0.2s, background 0.2s, transform 0.2s;
    display: flex;
    flex-direction: column;
}
.proj-card:hover { border-color: var(--accent); background: var(--bg-card-hover); transform: translateY(-3px); }
.proj-card h3 { color: var(--text-bright); font-size: 1.05rem; margin-bottom: 10px; }
.proj-card p { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 14px; flex-grow: 1; }
.proj-card .tag-row { margin-top: auto; }

a.proj-card { text-decoration: none; }
.proj-card-featured, .proj-card-featured:hover {
    border-color: var(--accent);
    background: linear-gradient(160deg, rgba(140,124,255,0.12), rgba(79,216,176,0.05));
}
.proj-badge {
    display: inline-block;
    width: fit-content;
    font-family: var(--mono);
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(140,124,255,0.14);
    border: 1px solid rgba(140,124,255,0.4);
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 12px;
}
.proj-cta {
    font-family: var(--mono);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent);
    margin-top: 14px;
}
.proj-card-featured:hover .proj-cta { color: var(--text-bright); }
.view-all { margin-top: 30px; text-align: center; }
.view-all a { font-family: var(--mono); font-size: 0.9rem; }

/* --- Videos --- */
.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.video-embed {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-card);
}
.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}
.video-embed .video-caption {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 16px;
    background: linear-gradient(to top, rgba(0,0,0,0.88), rgba(0,0,0,0) 65%);
    color: var(--text);
    font-size: 0.85rem;
    line-height: 1.4;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}
.video-embed:hover .video-caption { opacity: 1; }

@media (max-width: 700px) {
    .video-grid { grid-template-columns: 1fr; }
}

/* --- Contact --- */
.contact-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 44px;
    text-align: center;
}
.contact-box p.lede { max-width: 480px; margin: 0 auto 28px; color: var(--text-dim); }
.contact-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.contact-loc { margin-top: 24px; font-family: var(--mono); font-size: 0.82rem; color: var(--text-dim); }

@media (max-width: 640px) {
    .contact-box { padding: 30px 20px; }
}
