/* ============================================================
   HERO.CSS — Hero / Landing Section
   Benjamin Yew's Portfolio
   ============================================================ */

#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-primary);
    position: relative;
    overflow: hidden;
    padding: 80px 24px;
}

/* Subtle background glow */
#hero::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.06) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 680px;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* ── Photo ── */
.hero-photo-wrapper {
    margin-bottom: 32px;
    position: relative;
}

.hero-photo-wrapper::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    opacity: 0.5;
    animation: pulse-ring 3s ease-in-out infinite;
}

@keyframes pulse-ring {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50%       { opacity: 0.6; transform: scale(1.04); }
}

.hero-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
    display: block;
}

/* ── Greeting ── */
.hero-greeting {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: var(--accent);
    letter-spacing: 2px;
    margin-bottom: 12px;
}

/* ── Name ── */
.hero-name {
    font-size: clamp(2.4rem, 6vw, 3.8rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.1;
}

/* ── Role ── */
.hero-role {
    font-size: 1.05rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 24px;
}

/* ── Divider ── */
.hero-divider {
    width: 48px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    margin: 0 auto 28px;
}

/* ── Quote ── */
.hero-quote {
    font-size: 0.97rem;
    color: var(--text-secondary);
    font-style: italic;
    line-height: 1.85;
    max-width: 560px;
    margin: 0 auto 36px;
    padding: 20px 28px;
    border-left: 2px solid var(--accent);
    background: rgba(56, 189, 248, 0.04);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    text-align: left;
}

.hero-quote cite {
    display: block;
    font-size: 0.82rem;
    color: var(--accent);
    font-style: normal;
    margin-top: 10px;
    font-family: var(--font-mono);
    letter-spacing: 0.3px;
}

/* ── Social Links ── */
.hero-socials {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-bottom: 52px;
}

.hero-social-link {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    transition: var(--transition);
    text-decoration: none;
}

.hero-social-link:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(56, 189, 248, 0.06);
    transform: translateY(-2px);
}

/* ── Location ── */
.hero-location {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.hero-location i {
    color: var(--accent);
    font-size: 0.9rem;
}

/* ── Tech Stack Pills ── */
.hero-stack {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 28px;
    max-width: 480px;
}

.stack-pill {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--accent);
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.2);
    padding: 5px 14px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    cursor: default;
}

.stack-pill:hover {
    background: rgba(56, 189, 248, 0.15);
    border-color: var(--accent);
}

/* ── Scroll Indicator ── */
.hero-scroll {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.hero-scroll-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 3px;
    text-transform: uppercase;
    font-family: var(--font-mono);
}

.hero-scroll-line {
    width: 1px;
    height: 28px;
    background: var(--border);
}

.hero-scroll-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    animation: bounce-dot 1.8s ease-in-out infinite;
}

@keyframes bounce-dot {
    0%, 100% { transform: translateY(0); opacity: 0.5; }
    50%       { transform: translateY(4px); opacity: 1; }
}

/* ── Responsive ── */
@media (max-width: 480px) {
    .hero-photo { width: 110px; height: 110px; }
    .hero-quote { padding: 16px 18px; font-size: 0.9rem; }
}

#hero {
    min-height: calc(100vh - 70px); /* accounts for navbar height */
}

