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

.hero {
    position: relative;
    width: 100%;
    height: 95vh;
    overflow: hidden;
    background: linear-gradient(to bottom, #000000 0%, #041e2e 75%, #073d52 88%, #0a6070 95%, rgb(1, 90, 105) 100%);
    border-bottom-left-radius: 50%;
    border-bottom-right-radius: 60%;
}

/* Canvas fills the section */
.hero__canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

/* Centered content stack */
.hero__content {
    position: absolute;
    top: 46%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
    z-index: 1;
    overflow: visible;
}

/* ── Name + Smiley row ───────────────────────────────────────────────────── */

.hero__heading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* SVG name: stroke-draw animation */
.hero__name text {
    font-size: 52px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    fill: transparent;
    stroke: white;
    stroke-width: 1;
    stroke-dasharray: 0 50%;
    stroke-dashoffset: 25%;
    animation: name-draw 3s ease forwards;
}

@keyframes name-draw {
    0%   { stroke-dasharray: 0 50%;  stroke-dashoffset: 25%;  fill: transparent; stroke-width: 1; }
    50%  { fill: transparent; }
    75%  { stroke: white; }
    80%  { stroke-width: 1; }
    100% { stroke-dasharray: 50% 0; stroke-dashoffset: -25%; fill: white; stroke-width: 0; }
}

/* SVG smiley */
.hero__smiley {
    stroke: white;
    overflow: visible;
    opacity: 0;
    animation: fade-in 1.5s 1s ease forwards;
}

/* ── Bio / roles ─────────────────────────────────────────────────────────── */

.hero__bio {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 28px 0;
    color: rgb(230, 230, 230);
    opacity: 0;
    animation: fade-in 0.6s 2s ease forwards;
}

.bio-item {
    overflow: hidden;
}

.bio-role {
    padding: 16px 20px;
    font-size: 14px;
    letter-spacing: 1px;
}

.hero__bio .bio-item:nth-child(1) .bio-role {
    transform: translateX(120%);
    animation: slide-from-right 0.5s 3s ease forwards;
}

.hero__bio .bio-item:nth-child(3) .bio-role {
    opacity: 0;
    animation: fade-in 0.5s 3s ease forwards;
}

.hero__bio .bio-item:nth-child(5) .bio-role {
    transform: translateX(-120%);
    animation: slide-from-left 0.5s 3s ease forwards;
}

@keyframes slide-from-right { to { transform: translateX(0); } }
@keyframes slide-from-left  { to { transform: translateX(0); } }

/* Dividers */
.bio-divider {
    position: relative;
    display: block;
    width: 3px;
    height: 40px;
    background-color: white;
    transform: rotate(-90deg) scaleY(0);
    animation: divider-spin 1s 2s ease-in-out forwards;
}

/* Wing containers — no background themselves, wings come from ::before / ::after */
.bio-divider__top,
.bio-divider__bottom {
    position: absolute;
    display: block;
}

.bio-divider__top    { top: 0; }
.bio-divider__bottom { bottom: 0; }

/* Both pseudo-elements share the same base */
.bio-divider__top::before,  .bio-divider__top::after,
.bio-divider__bottom::before, .bio-divider__bottom::after {
    content: '';
    position: absolute;
    top: 0;
    display: block;
    height: 3px;
    background-color: white;
    transform: scaleX(0);
    animation: wing-scale 1s 3s ease-in forwards;
}

/* ::before = right wing (scales leftward from the divider) */
.bio-divider__top::before,
.bio-divider__bottom::before { right: 0; transform-origin: right; }

/* ::after = left wing (scales rightward from the divider) */
.bio-divider__top::after,
.bio-divider__bottom::after  { left: 0; transform-origin: left; }

/* First divider */
.hero__bio .bio-divider:nth-of-type(1) .bio-divider__top::before    { width: 30px; }
.hero__bio .bio-divider:nth-of-type(1) .bio-divider__top::after     { width: 50px; }
.hero__bio .bio-divider:nth-of-type(1) .bio-divider__bottom::before { width: 80px; }
.hero__bio .bio-divider:nth-of-type(1) .bio-divider__bottom::after  { width: 120px; }

/* Second divider */
.hero__bio .bio-divider:nth-of-type(2) .bio-divider__top::before    { width: 80px; }
.hero__bio .bio-divider:nth-of-type(2) .bio-divider__top::after     { width: 80px; }
.hero__bio .bio-divider:nth-of-type(2) .bio-divider__bottom::before { width: 20px; }
.hero__bio .bio-divider:nth-of-type(2) .bio-divider__bottom::after  { width: 40px; }

@keyframes divider-spin {
    0%   { transform: rotate(-90deg) scaleY(0); }
    50%  { transform: rotate(-90deg) scaleY(1); }
    100% { transform: rotate(360deg); }
}

@keyframes wing-scale { to { transform: scaleX(1); } }

/* ── Social links ────────────────────────────────────────────────────────── */

.hero__links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 60px;
}

.hero__links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid rgba(200, 200, 200, 0.5);
    color: white;
    font-size: 22px;
    text-decoration: none;
    position: relative;
    z-index: 1;
    overflow: hidden;
    opacity: 0;
    animation: link-bounce 0.6s ease forwards;
}

.hero__links a:nth-child(1) { animation-delay: 4s; }
.hero__links a:nth-child(2) { animation-delay: 4.25s; }
.hero__links a:nth-child(3) { animation-delay: 4.5s; }

.hero__links a::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(230, 230, 230, 0.9);
    transform: translateY(-100%);
    transition: transform 120ms ease;
}

.hero__links a:hover { color: rgb(2, 150, 169); border-color: rgb(2, 150, 169); }
.hero__links a:hover::after { transform: translateY(0); }

@keyframes link-bounce {
    0%   { opacity: 0; transform: translateY(120px); }
    55%  { opacity: 1; transform: translateY(-62px); }
    75%  { transform: translateY(16px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ── Planet surface arcs ─────────────────────────────────────────────────── */

.hero::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -20px;
    display: block;
    width: 80%;
    height: 120px;
    background-color: aliceblue;
    opacity: 0.32;
    border-radius: 100%;
}

.hero::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: -50px;
    display: block;
    width: 80%;
    height: 150px;
    background-color: aliceblue;
    opacity: 0.5;
    border-radius: 100%;
    transform: rotate(-15deg);
}

/* ── Shared keyframes ────────────────────────────────────────────────────── */

@keyframes fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ── Mobile ──────────────────────────────────────────────────────────────── */

@media (max-width: 500px) {
    .hero {
        border-bottom-left-radius: 40%;
        border-bottom-right-radius: 70%;
    }

    .hero__name { width: 280px; }
    .hero__name text { font-size: 36px; }
    .hero__smiley { width: 60px; height: 60px; }

    .bio-role {
        font-size: 12px;
        padding: 12px 10px;
    }
}
