/* ---------- Hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    padding: 6.5rem 1.5rem 5.5rem;
    display: flex;
    justify-content: center;
    isolation: isolate;
}

.aurora {
    position: absolute;
    inset: -20% -10%;
    z-index: -1;
    filter: blur(60px);
    opacity: 0.55;
}

:root[data-theme="dark"] .aurora { opacity: 0.4; }

.blob {
    position: absolute;
    width: 40vw;
    height: 40vw;
    max-width: 520px;
    max-height: 520px;
    border-radius: 50%;
    animation: drift 22s ease-in-out infinite alternate;
}

.blob-a {
    top: -10%;
    left: -5%;
    background: var(--accent);
    animation-duration: 26s;
}

.blob-b {
    top: 10%;
    right: -10%;
    background: var(--accent-2);
    animation-duration: 30s;
    animation-delay: -6s;
}

.blob-c {
    bottom: -20%;
    left: 25%;
    background: var(--accent-3);
    animation-duration: 24s;
    animation-delay: -12s;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(4%, 6%) scale(1.08); }
    100% { transform: translate(-5%, -3%) scale(0.96); }
}

.hero-inner {
    max-width: 680px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-title {
    font-size: clamp(2.4rem, 6vw, 3.6rem);
    font-weight: 700;
    background: linear-gradient(120deg, var(--text) 30%, var(--accent) 70%, var(--accent-3));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-role {
    margin-top: 0.6rem;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(1.05rem, 2.4vw, 1.3rem);
    color: var(--text);
}

.hero-tagline {
    margin-top: 1.1rem;
    font-size: 1.05rem;
    max-width: 560px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2.1rem;
}

.hero-social {
    display: flex;
    gap: 1.3rem;
    margin-top: 2.2rem;
    font-size: 1.3rem;
}

.hero-social a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.hero-social a:hover { color: var(--accent); transform: translateY(-3px); }

/* ---------- Projects ---------- */
.projects {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem 1.5rem 5rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 1.25rem;
}

.project-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.5rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.project-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.project-card-top h3 {
    font-size: 1.08rem;
    font-weight: 700;
    word-break: break-word;
}

.project-card-top i {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 0.3rem;
    flex-shrink: 0;
    transition: transform 0.2s ease, color 0.2s ease;
}

.project-card:hover .project-card-top i {
    color: var(--accent);
    transform: translate(2px, -2px);
}

.project-desc {
    font-size: 0.92rem;
    flex-grow: 1;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.9rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.project-meta .lang {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.lang-dot {
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    display: inline-block;
}

.project-meta .stars {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.project-updated {
    font-size: 0.78rem;
    color: var(--text-muted);
    opacity: 0.8;
}

.projects-empty {
    text-align: center;
    padding: 3rem 1.5rem;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}

.projects-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 2.75rem;
}

.projects-footer a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.projects-footer a:hover { color: var(--accent); }
