/* ============================================================
   HERO SECTION — sci-fi holographic showcase
   ============================================================ */

.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero__sphere {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero__particles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 245, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 245, 255, 0.07) 1px, transparent 1px);
    background-size: 52px 52px;
    transform: perspective(600px) rotateX(62deg) scale(1.6);
    transform-origin: 50% 120%;
    mask-image: linear-gradient(180deg, transparent 5%, black 60%, transparent 95%);
    animation: gridMove 16s linear infinite;
}

@keyframes gridMove {
    0% { background-position: 0 0; }
    100% { background-position: 0 52px; }
}

.hero__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.5;
    pointer-events: none;
}

.hero__glow--1 {
    width: 520px; height: 520px;
    left: -10%; top: -12%;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.45), transparent 65%);
    animation: glowFloat 12s ease-in-out infinite;
}

.hero__glow--2 {
    width: 480px; height: 480px;
    right: -8%; bottom: -15%;
    background: radial-gradient(circle, rgba(0, 245, 255, 0.4), transparent 65%);
    animation: glowFloat 14s ease-in-out infinite reverse;
}

@keyframes glowFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.12); }
    66% { transform: translate(-25px, 25px) scale(0.95); }
}

/* HUD corners */
.hero__hud {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-code);
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    color: rgba(0, 245, 255, 0.65);
    text-shadow: 0 0 12px rgba(0, 245, 255, 0.5);
    opacity: 0;
    animation: hudIn 1s var(--ease) forwards;
}

.hero__hud i { font-size: 0.7rem; }

.hero__hud--tl { top: 110px; left: 3%; animation-delay: 0.9s; }
.hero__hud--tr { top: 110px; right: 3%; animation-delay: 1.2s; }
.hero__hud--bl { bottom: 90px; left: 3%; animation-delay: 1.5s; }
.hero__hud--br { bottom: 90px; right: 3%; animation-delay: 1.8s; }

@keyframes hudIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.hud__dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 10px var(--green);
    animation: hudBlink 1.6s ease infinite;
}

.hud__dot--green { background: var(--green); box-shadow: 0 0 10px var(--green); }

@keyframes hudBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

/* Floating code snippets */
.float-code {
    position: absolute;
    font-family: var(--font-code);
    font-size: 0.68rem;
    color: rgba(0, 245, 255, 0.4);
    background: rgba(8, 12, 30, 0.55);
    border: 1px solid rgba(0, 245, 255, 0.12);
    border-radius: 8px;
    padding: 0.45rem 0.75rem;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.08);
}

.hero__code { animation: codeFloat 7s ease-in-out infinite; }

@keyframes codeFloat {
    0%, 100% { transform: translateY(0) rotate(0.5deg); }
    50% { transform: translateY(-18px) rotate(-0.5deg); }
}

/* Content */
.hero__content {
    width: min(1240px, 92%);
    margin-inline: auto;
    padding: 9rem 0 8rem;
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: clamp(2rem, 5vw, 4.5rem);
}

.hero__main { min-width: 0; }

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1.1rem;
    border-radius: 60px;
    background: var(--surface);
    border: 1px solid rgba(0, 245, 255, 0.22);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-family: var(--font-code);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    color: var(--muted);
    box-shadow: 0 0 24px rgba(0, 245, 255, 0.1);
    margin-bottom: 2rem;
}

.hero__badge-dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 12px var(--green);
    animation: hudBlink 1.8s ease infinite;
}

.hero__badge-text { color: rgba(0, 245, 255, 0.85); }

.hero__title {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.03em;
    margin-bottom: 1.6rem;
}

.hero__line--small {
    display: block;
    font-size: clamp(1.1rem, 3vw, 1.6rem);
    font-weight: 500;
    color: var(--muted);
    letter-spacing: 0.04em;
    margin-bottom: 0.4rem;
}

.hero__name {
    display: block;
    font-size: clamp(2.6rem, 8.5vw, 6.4rem);
    background: linear-gradient(115deg, #fff 0%, var(--cyan) 45%, var(--purple) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 40px rgba(0, 245, 255, 0.25));
}

.hero__role {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-family: var(--font-head);
    font-size: clamp(1.1rem, 3.4vw, 1.9rem);
    font-weight: 600;
    color: var(--white);
    margin-bottom: 1.2rem;
    min-height: 2.4em;
}

.hero__role-label { color: var(--green); text-shadow: 0 0 14px rgba(0, 255, 153, 0.6); }

.hero__typewriter { color: var(--cyan); text-shadow: 0 0 20px rgba(0, 245, 255, 0.5); }

.hero__caret {
    width: 3px; height: 1.15em;
    background: var(--cyan);
    box-shadow: 0 0 12px var(--cyan);
    animation: caretBlink 0.9s steps(2) infinite;
}

@keyframes caretBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.hero__tagline {
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    color: var(--muted);
    max-width: 540px;
    margin-bottom: 2.4rem;
    font-family: var(--font-head);
    font-weight: 300;
    letter-spacing: 0.02em;
}

.hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.1rem;
    margin-bottom: 3rem;
}

.hero__socials {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hero__socials-line {
    width: 64px; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 245, 255, 0.5));
}

.social-ico {
    width: 46px; height: 46px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: var(--surface);
    display: grid;
    place-items: center;
    color: var(--muted);
    font-size: 1.05rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: color 0.3s, border-color 0.3s, box-shadow 0.3s, background 0.3s, transform 0.3s;
    position: relative;
    overflow: hidden;
}

.social-ico::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--grad-primary);
    opacity: 0;
    transition: opacity 0.35s;
    z-index: -1;
}

.social-ico:hover {
    color: #fff;
    border-color: transparent;
    box-shadow: 0 0 26px rgba(0, 245, 255, 0.45);
}

.social-ico:hover::before { opacity: 1; }

/* Hero footer */
.hero__footer {
    position: absolute;
    left: 0; right: 0;
    bottom: 26px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: min(1240px, 92%);
    margin-inline: auto;
    z-index: 5;
    pointer-events: none;
}

.hero__scroll {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
    font-family: var(--font-code);
    font-size: 0.6rem;
    letter-spacing: 0.3em;
    color: var(--muted);
    pointer-events: auto;
}

.hero__mouse {
    width: 24px; height: 38px;
    border: 2px solid rgba(0, 245, 255, 0.4);
    border-radius: 14px;
    position: relative;
}

.hero__mouse i {
    position: absolute;
    left: 50%; top: 7px;
    width: 3px; height: 8px;
    border-radius: 3px;
    background: var(--cyan);
    transform: translateX(-50%);
    animation: scrollWheel 1.6s ease infinite;
    box-shadow: 0 0 8px var(--cyan);
}

@keyframes scrollWheel {
    0% { transform: translate(-50%, 0); opacity: 1; }
    70% { transform: translate(-50%, 14px); opacity: 0; }
    100% { transform: translate(-50%, 0); opacity: 0; }
}

.hero__coords {
    font-family: var(--font-code);
    font-size: 0.6rem;
    letter-spacing: 0.22em;
    color: rgba(255, 255, 255, 0.3);
}

/* ============================================================
   HERO PORTRAIT — holographic avatar frame
   ============================================================ */

.hero__portrait {
    position: relative;
    width: min(340px, 100%);
    justify-self: center;
    margin-inline: auto;
}

.hero__portrait-glow {
    position: absolute;
    inset: -16%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 245, 255, 0.38), rgba(108, 99, 255, 0.2) 45%, transparent 72%);
    filter: blur(48px);
    animation: portraitPulse 5s ease-in-out infinite;
    z-index: -1;
}

@keyframes portraitPulse {
    0%, 100% { transform: scale(1); opacity: 0.85; }
    50% { transform: scale(1.12); opacity: 1; }
}

.hero__portrait-orbit {
    position: absolute;
    inset: -24px;
    border: 1px dashed rgba(0, 245, 255, 0.28);
    border-radius: 50%;
    animation: portraitSpin 28s linear infinite;
    pointer-events: none;
}

.hero__portrait-orbit i {
    position: absolute;
    top: -4px; left: 50%;
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 12px var(--cyan);
}

@keyframes portraitSpin { to { transform: rotate(360deg); } }

.hero__portrait-frame {
    position: relative;
    padding: 7px;
    border-radius: 26px;
    background: var(--grad-primary);
    box-shadow: 0 20px 60px rgba(0, 245, 255, 0.18), 0 0 44px rgba(108, 99, 255, 0.22);
    overflow: hidden;
}

.hero__portrait-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 20px;
    object-fit: cover;
    filter: saturate(1.06) contrast(1.03);
}

.hero__portrait-scan {
    position: absolute;
    left: 9px; right: 9px;
    top: 8%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--cyan), transparent);
    box-shadow: 0 0 14px rgba(0, 245, 255, 0.9);
    opacity: 0;
    animation: portraitScan 3.4s ease-in-out infinite;
}

@keyframes portraitScan {
    0% { top: 8%; opacity: 0; }
    12% { opacity: 0.95; }
    88% { opacity: 0.95; }
    100% { top: 90%; opacity: 0; }
}

.hero__corner {
    position: absolute;
    width: 26px; height: 26px;
    border: 2px solid var(--cyan);
    filter: drop-shadow(0 0 6px rgba(0, 245, 255, 0.85));
    opacity: 0.9;
}

.hero__corner--tl { top: -2px; left: -2px; border-right: none; border-bottom: none; border-top-left-radius: 24px; }
.hero__corner--tr { top: -2px; right: -2px; border-left: none; border-bottom: none; border-top-right-radius: 24px; }
.hero__corner--bl { bottom: -2px; left: -2px; border-right: none; border-top: none; border-bottom-left-radius: 24px; }
.hero__corner--br { bottom: -2px; right: -2px; border-left: none; border-top: none; border-bottom-right-radius: 24px; }

.hero__portrait-chip {
    position: absolute;
    left: 0;
    right: 0;
    margin-inline: auto;
    width: max-content;
    bottom: -26px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.7rem 1.15rem;
    border-radius: 16px;
    background: rgba(9, 11, 18, 0.85);
    border: 1px solid rgba(0, 245, 255, 0.32);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 245, 255, 0.12);
    white-space: nowrap;
    z-index: 2;
}

.hero__portrait-chip-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 12px var(--green);
    animation: hudBlink 1.6s ease infinite;
}

.hero__portrait-chip-text { display: flex; flex-direction: column; line-height: 1.18; }

.hero__portrait-chip-text strong {
    font-family: var(--font-head);
    font-size: 0.95rem;
    color: var(--white);
    letter-spacing: 0.01em;
}

.hero__portrait-chip-text small {
    font-family: var(--font-code);
    font-size: 0.62rem;
    letter-spacing: 0.16em;
    color: var(--cyan);
    text-transform: uppercase;
}
