.hero-home {
    background-color: var(--color-primary);
    width: 100vw;
    min-height: 100vh;
    min-height: 100dvh;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.hero-home h1, .hero-home h2 {
    margin-top: 0;
    margin-bottom: 0;
}

.hero-home-inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 24px 120px;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-nodes-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: auto;
    /* Subtle radial mask so the nodes fade near the edges and don't fight the content */
    mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 50%, rgba(0,0,0,0.6) 80%, rgba(0,0,0,0.2) 100%);
    -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 50%, rgba(0,0,0,0.6) 80%, rgba(0,0,0,0.2) 100%);
}

.hero-home .profile_card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    position: relative;
    z-index: 1;
}

.hero-home .profile_pic {
    width: 280px;
    height: 280px;
    background-color: #D9D9D9;
    position: relative;
    border-radius: 50%;
    flex-shrink: 0;
    animation: ct-float-pic 6s ease-in-out infinite;
    will-change: transform;
}

.hero-home .profile_pic::after {
    content: '';
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #B80C09;
    position: absolute;
    right: 8px;
    top: 6px;
    z-index: -1;
}

.hero-home .profile_pic .img_pic {
    overflow: hidden;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.hero-home .profile_pic .img_pic img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    display: block;
}

.hero-home .bio_and_social {
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: ct-float-text 7s ease-in-out infinite;
    animation-delay: -2s;
    will-change: transform;
}

.hero-home .bio_and_social p {
    font-family: var(--base-font);
    font-size: 22px;
    line-height: 1.45;
    color: #F2F4F3;
    margin: 0;
    text-align: center;
}

.hero-home .social-icons {
    display: flex;
    gap: 18px;
    margin-top: 28px;
    justify-content: center;
}

.hero-home .social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.hero-home .social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border-color: transparent;
}

.hero-home .social-icon svg {
    width: 22px;
    height: 22px;
    display: block;
}

/* SVGs ship with hard-coded fill="white"; keep them as-is so they show on navy bg */
.hero-home .social-icon svg path {
    transition: fill 0.3s ease;
}

.hero-home .social-icon.linkedin:hover {
    background-color: #0077B5;
    border-color: #0077B5;
}

.hero-home .social-icon.x:hover {
    background-color: #000000;
    border-color: #000000;
}

.hero-home .social-icon.instagram:hover {
    background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
}

.hero-home .social-icon.tiktok:hover {
    background: linear-gradient(45deg, #000000, #EE1D52, #69C9D0);
}

/* === Scroll indicator === */
/* `bottom` is bumped well above macOS dock magnification height. */
.hero-scroll-indicator {
    position: absolute;
    bottom: clamp(80px, 12vh, 130px);
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--base-font);
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 200ms ease, transform 200ms ease;
}

.hero-scroll-indicator:hover,
.hero-scroll-indicator:focus-visible {
    color: var(--color-secondary);
    outline: none;
}

.hero-scroll-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: ct-scroll-bounce 2s ease-in-out infinite;
}

.hero-scroll-indicator:hover .hero-scroll-arrow {
    border-color: var(--color-secondary);
    background-color: rgba(255, 255, 255, 0.08);
}

.hero-scroll-arrow svg {
    width: 18px;
    height: 18px;
}

@keyframes ct-scroll-bounce {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(8px); }
}

@keyframes ct-float-pic {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-14px); }
}

@keyframes ct-float-text {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-7px); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-scroll-arrow,
    .hero-home .profile_pic,
    .hero-home .bio_and_social {
        animation: none;
    }
}

@media (max-width: 1024px) {
    .hero-home .profile_pic {
        width: 220px;
        height: 220px;
    }

    .hero-home .bio_and_social p {
        font-size: 18px;
    }
}

@media (max-width: 600px) {
    .hero-home-inner {
        padding: 60px 20px 100px;
    }

    .hero-home .profile_card {
        gap: 24px;
    }

    .hero-home .profile_pic {
        width: 180px;
        height: 180px;
    }

    .hero-home .bio_and_social p {
        font-size: 16px;
    }

    .hero-scroll-indicator {
        bottom: 28px;
    }

    .hero-scroll-arrow {
        width: 32px;
        height: 32px;
    }
}
