#space-sunrise-wp-root {
    --bg-color: rgb(0, 0, 0);
    --glow-color: rgba(200, 220, 255, 0.5);
    --horizon-color: rgba(180, 200, 255, 0.3);
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100svh;
    /* Adjust height as needed */
    min-height: 400px;
    overflow: hidden;
    background-color: var(--bg-color);
    color: white;
    font-family: var(--primary-font);
    z-index: 1;
}

#space-sunrise-wp-root .scene-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

#space-sunrise-wp-root #wp-star-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0;
    animation: starsFadeIn 2s ease-out 0.3s forwards;
}

#space-sunrise-wp-root .horizon-glow {
    position: absolute;
    bottom: -30%;
    left: 50%;
    transform: translateX(-50%);
    width: 160%;
    height: 85%;
    /* Không dùng filter: blur() (tốn GPU mỗi frame). Gradient được tính để về
       trong suốt TRƯỚC khi chạm mép hộp + mask-image làm mờ mép → không thấy khối */
    background: radial-gradient(ellipse 50% 46% at 50% 46%,
            rgba(210, 228, 255, 0.7) 0%,
            rgba(160, 195, 250, 0.46) 20%,
            rgba(100, 150, 230, 0.26) 40%,
            rgba(60, 100, 190, 0.12) 60%,
            rgba(50, 90, 180, 0.04) 78%,
            transparent 92%);
    -webkit-mask-image: radial-gradient(ellipse 50% 48% at 50% 46%, #000 30%, rgba(0, 0, 0, 0.6) 60%, transparent 97%);
    mask-image: radial-gradient(ellipse 50% 48% at 50% 46%, #000 30%, rgba(0, 0, 0, 0.6) 60%, transparent 97%);
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    animation: glowFadeIn 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.6s forwards;
}

#space-sunrise-wp-root .soft-glow {
    position: absolute;
    bottom: 14%;
    left: 50%;
    transform: translateX(-50%);
    width: 55%;
    height: 16%;
    background: radial-gradient(ellipse 50% 100% at 50% 100%,
            rgba(225, 238, 255, 0.5) 0%,
            rgba(190, 215, 255, 0.26) 30%,
            rgba(140, 180, 240, 0.1) 55%,
            rgba(140, 180, 240, 0.02) 78%,
            transparent 95%);
    -webkit-mask-image: radial-gradient(ellipse 50% 100% at 50% 100%, #000 30%, rgba(0, 0, 0, 0.5) 65%, transparent 98%);
    mask-image: radial-gradient(ellipse 50% 100% at 50% 100%, #000 30%, rgba(0, 0, 0, 0.5) 65%, transparent 98%);
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    animation: glowFadeIn 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.7s forwards;
}

#space-sunrise-wp-root .center-glow {
    position: absolute;
    bottom: 16%;
    left: 50%;
    transform: translateX(-50%);
    width: 24%;
    height: 30%;
    background: radial-gradient(ellipse 50% 100% at 50% 100%,
            rgba(235, 245, 255, 0.6) 0%,
            rgba(210, 230, 255, 0.32) 28%,
            rgba(170, 205, 255, 0.14) 52%,
            rgba(130, 175, 245, 0.05) 74%,
            rgba(130, 175, 245, 0.015) 86%,
            transparent 96%);
    -webkit-mask-image: radial-gradient(ellipse 50% 100% at 50% 100%, #000 30%, rgba(0, 0, 0, 0.5) 65%, transparent 98%);
    mask-image: radial-gradient(ellipse 50% 100% at 50% 100%, #000 30%, rgba(0, 0, 0, 0.5) 65%, transparent 98%);
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    animation:
        centerGlowAppear 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.8s forwards,
        centerBreathing 5s ease-in-out 2.8s infinite;
}

#space-sunrise-wp-root .atmosphere {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            transparent 60%,
            rgba(20, 40, 80, 0.25) 100%);
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    animation: glowFadeIn 2s ease-out 0.8s forwards;
}

#space-sunrise-wp-root .planet-wrapper {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
    transform: translateY(200px) scale(1.3);
    animation: planetRiseZoom 2.5s cubic-bezier(0.22, 0.61, 0.36, 1) 0.1s forwards;
}

#space-sunrise-wp-root .planet-surface {
    position: absolute;
    bottom: -60%;
    left: 50%;
    transform: translateX(-50%);
    width: 180%;
    height: 80%;
    background: linear-gradient(to bottom, rgb(10, 10, 10) 0%, rgb(0, 0, 0) 30%);
    border-radius: 50%;
    pointer-events: none;
    box-shadow:
        inset 0 40px 60px -20px rgba(160, 190, 240, 0.08),
        inset 0 15px 30px -10px rgba(180, 210, 255, 0.06);
}

#space-sunrise-wp-root .horizon-line {
    position: absolute;
    bottom: -60%;
    left: 50%;
    transform: translateX(-50%);
    width: 180%;
    height: 80%;
    border-radius: 50%;
    pointer-events: none;
    border-top: 1px solid rgba(240, 248, 255, 0.85);
    box-shadow:
        0 0 4px 1px rgba(235, 245, 255, 0.6),
        0 0 10px 2px rgba(210, 228, 255, 0.3);
    -webkit-mask-image: linear-gradient(to right, transparent 10%, rgba(255, 255, 255, 0.25) 25%, white 45%, white 55%, rgba(255, 255, 255, 0.25) 75%, transparent 90%);
    mask-image: linear-gradient(to right, transparent 10%, rgba(255, 255, 255, 0.25) 25%, white 45%, white 55%, rgba(255, 255, 255, 0.25) 75%, transparent 90%);
    opacity: 0;
    animation: horizonLineFadeIn 1s ease-out 0.8s forwards;
}

#space-sunrise-wp-root .horizon-atmosphere {
    position: absolute;
    bottom: -60%;
    left: 50%;
    transform: translateX(-50%);
    width: 180%;
    height: 80%;
    border-radius: 50%;
    pointer-events: none;
    box-shadow:
        0 -8px 20px 2px rgba(220, 235, 255, 0.4),
        0 -20px 50px 5px rgba(190, 215, 255, 0.25),
        0 -40px 90px 10px rgba(160, 195, 245, 0.15),
        0 -70px 140px 15px rgba(130, 170, 230, 0.08),
        0 -100px 200px 20px rgba(100, 145, 210, 0.03);
    -webkit-mask-image: linear-gradient(to right, transparent 12%, rgba(255, 255, 255, 0.2) 25%, white 42%, white 58%, rgba(255, 255, 255, 0.2) 75%, transparent 88%);
    mask-image: linear-gradient(to right, transparent 12%, rgba(255, 255, 255, 0.2) 25%, white 42%, white 58%, rgba(255, 255, 255, 0.2) 75%, transparent 88%);
    opacity: 0;
    animation: horizonLineFadeIn 1.5s ease-out 0.8s forwards;
}

#space-sunrise-wp-root .content {
    position: relative;
    z-index: 10;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-width: 600px;
    padding: 20px;
}

/* Avatar */
#space-sunrise-wp-root .avatar-container {
    width: clamp(100px, 30vw, 150px);
    height: clamp(100px, 30vw, 150px);
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    opacity: 0.3;
    animation: contentZoomEntranceLcp 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}

#space-sunrise-wp-root .avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Social Links */
#space-sunrise-wp-root .social-links {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
    opacity: 0;
    animation: contentZoomEntrance 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.35s forwards;
}

#space-sunrise-wp-root .social-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

#space-sunrise-wp-root .social-badge:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

#space-sunrise-wp-root .social-badge.facebook {
    color: #1877F2;
}

#space-sunrise-wp-root .social-badge.facebook span {
    color: white;
}

#space-sunrise-wp-root .social-badge.linkedin {
    color: #0A66C2;
}

#space-sunrise-wp-root .social-badge.linkedin span {
    color: white;
}

/* Headline - LE VAN QUOC HIEP */
#space-sunrise-wp-root .headline {
    font-size: clamp(18px, 6.8vw, 48px);
    font-weight: 800;
    color: #ffffff !important;
    margin: 0;
    letter-spacing: 0.05em;
    line-height: 1.1;
    text-transform: uppercase;
    white-space: nowrap;
    opacity: 0.3;
    animation: contentZoomEntranceLcp 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}

/* Roles */
#space-sunrise-wp-root .roles {
    font-size: clamp(12px, 3.5vw, 18px);
    font-weight: 600;
    color: #ffffff !important;
    margin: 0;
    letter-spacing: 0.02em;
    opacity: 0;
    animation: contentZoomEntrance 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.65s forwards;
}

/* Quote */
#space-sunrise-wp-root .quote {
    font-size: clamp(14px, 4.5vw, 20px);
    font-style: italic;
    font-family: Georgia, serif;
    color: rgba(255, 255, 255, 0.8) !important;
    margin: 10px 0 0 0;
    letter-spacing: 0.01em;
    opacity: 0;
    animation: contentZoomEntrance 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.8s forwards;
}

/* Animations */
/* Lưu ý LCP: avatar + headline là phần tử LCP. Nếu chúng bắt đầu ở opacity:0 và
   fade-in bằng compositor, Chrome sẽ KHÔNG ghi nhận LCP (Lighthouse báo lỗi).
   Vì vậy 2 phần tử này dùng contentZoomEntranceLcp (bắt đầu từ 30% opacity). */
@keyframes contentZoomEntranceLcp {
    0% {
        opacity: 0.3;
        transform: scale(1.12) translateY(24px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes contentZoomEntrance {
    0% {
        opacity: 0;
        transform: scale(1.12) translateY(24px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes starsFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 0.8;
    }
}

@keyframes planetRiseZoom {
    0% {
        transform: translateY(200px) scale(1.3);
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes horizonLineFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes glowFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes centerGlowAppear {
    0% {
        opacity: 0;
        transform: translateX(-50%) scaleY(0.3);
    }

    100% {
        opacity: 1;
        transform: translateX(-50%) scaleY(1);
    }
}

@keyframes centerBreathing {

    0%,
    100% {
        opacity: 1;
        transform: translateX(-50%) scaleY(1);
    }

    50% {
        opacity: 0.7;
        transform: translateX(-50%) scaleY(1.12);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
    
