/* ======================================
   Hero Globe Animation Styles
   ====================================== */

/* Scroll container - provides scroll space for pinned animation */
#globe-scroll-container {
    position: relative;
    width: 100%;
    height: 400vh;
    background: #000;
    z-index: 1;
}

/* The pinned hero section during scroll sequence */
.pp-hero-area.globe-hero {
    position: relative;
    width: 100%;
    height: 100vh !important;
    min-height: 100vh;
    overflow: hidden;
    background: #000 !important;
}

/* Mobile Gradient Overlay for better text readability */
.pp-hero-area.globe-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    /* Above globe, below text */
    pointer-events: none;
}

/* Layer 1: Space Background Canvas */
#space-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    display: block;
}

/* Layer 2: Three.js Globe Canvas */
#globe-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: block;
}

/* Hero content layer (text, buttons) */
.pp-hero-content-layer {
    position: relative;
    z-index: 5;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Move text to the middle instead of bottom */
    pointer-events: none;
}

.pp-hero-content-layer * {
    pointer-events: auto;
}

/* Ensure text remains highly visible without messy shadows by using an overlay instead */

/* SC Logo Overlay */
#sc-logo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
}

#sc-logo-overlay .sc-logo-inner {
    width: 200px;
    height: 200px;
    transform: scale(0.5);
}

#sc-logo-overlay .sc-logo-inner svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 30px rgba(255, 246, 105, 0.3));
}

/* Glow ring */
#sc-logo-overlay .sc-logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 280px;
    height: 280px;
    transform: translate(-50%, -50%) scale(0.5);
    border-radius: 50%;
    border: 1px solid rgba(255, 246, 105, 0.12);
    box-shadow:
        0 0 60px rgba(255, 246, 105, 0.06),
        0 0 120px rgba(255, 246, 105, 0.03),
        inset 0 0 60px rgba(255, 246, 105, 0.03);
    opacity: 0;
}

/* Jakarta marker */
.jakarta-marker {
    position: absolute;
    /* Positioned from viewport center using vh so it scales with the globe */
    top: calc(50% + 30vh);
    left: calc(50% + 12vh);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #FFF669;
    box-shadow:
        0 0 8px rgba(255, 246, 105, 0.6),
        0 0 25px rgba(255, 246, 105, 0.3),
        0 0 50px rgba(255, 246, 105, 0.15);
    z-index: 8;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
    pointer-events: none;
}

.jakarta-marker::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(255, 246, 105, 0.4);
    transform: translate(-50%, -50%);
    animation: markerPulse 2s ease-out infinite;
}

@keyframes markerPulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(2.5);
        opacity: 0;
    }
}

/* Jakarta label */
.jakarta-label {
    position: absolute;
    top: calc(50% + 30vh);
    left: calc(50% + 12vh);
    z-index: 8;
    opacity: 0;
    pointer-events: none;
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #FFF669;
    white-space: nowrap;
    transform: translate(15px, -50%);
    text-shadow: 0 0 10px rgba(255, 246, 105, 0.5);
}

/* Scroll hint */
.globe-scroll-hint {
    position: absolute;
    bottom: 2px;
    /* Lebih kebawah lagi, nyaris nempel dasar layar */
    left: 50%;
    transform: translateX(-50%);
    z-index: 6;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0;
    animation: fadeInHint 1s ease 2.5s forwards;
}

.globe-scroll-hint span {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: 13px;
    /* Kurang gede */
    letter-spacing: 4px;
    font-weight: 500;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    /* Kurang jelas (opacity dinaikkan) */
}

.globe-scroll-hint .scroll-line {
    width: 1.5px;
    /* Sedikit lebih tebal */
    height: 50px;
    /* Lebih panjang biar jelas */
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), transparent);
    animation: scrollLineAnim 2s ease-in-out infinite;
}

@keyframes fadeInHint {
    to {
        opacity: 1;
    }
}

@keyframes scrollLineAnim {

    0%,
    100% {
        transform: scaleY(1);
        opacity: 0.4;
    }

    50% {
        transform: scaleY(0.5);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 991px) {
    .pp-hero-area.globe-hero::before {
        background: linear-gradient(to right, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 66%);
    }

    #sc-logo-overlay .sc-logo-inner {
        width: 140px;
        height: 140px;
    }

    #sc-logo-overlay .sc-logo-glow {
        width: 190px;
        height: 190px;
    }

    #globe-scroll-container {
        height: 350vh;
    }
}

@media (max-width: 575px) {
    #sc-logo-overlay .sc-logo-inner {
        width: 100px;
        height: 100px;
    }

    #sc-logo-overlay .sc-logo-glow {
        width: 140px;
        height: 140px;
    }

    #globe-scroll-container {
        height: 300vh;
    }
}

/* ======================================
   3D "STEVEN C" Text Styling
   ====================================== */
.pp-hero-heading {
    perspective: 1200px;
    perspective-origin: center bottom;
    transform-style: preserve-3d;
}

.pp-hero-title {
    /* 3D Perspective to lean it back into the scene */
    transform: rotateX(15deg) scaleY(1.05) translateZ(0);
    transform-origin: center bottom;

    /* Solid bright color for the face */
    color: #f4de64 !important;
    -webkit-text-stroke: 1px rgba(0, 0, 0, 0.3);

    /* MASSIVE 3D Extrusion to give it real depth */
    text-shadow:
        0px 1px 0px #c5b703,
        0px 2px 0px #bca83f,
        0px 3px 0px #b3a000,
        0px 4px 0px #a99600,
        0px 5px 0px #9f8d00,
        0px 6px 0px #958400,
        0px 7px 0px #8b7b00,
        0px 8px 0px #817200,
        0px 9px 0px #776900,
        0px 10px 0px #6d6000,
        0px 11px 0px #635700,
        0px 12px 0px #594e00,
        0px 13px 0px #4f4500,
        0px 14px 0px #453c00,
        0px 15px 0px #3b3300,
        0px 16px 0px #312a00,
        0px 17px 0px #272100,
        0px 18px 0px #1d1800,
        0px 20px 25px rgba(0, 0, 0, 0.9),
        0px 30px 40px rgba(0, 0, 0, 0.7) !important;

    /* Holographic / Decal effect to make it feel 'glued' to the display */
    mix-blend-mode: normal;
    /* Normal looks most solid, overlay was too weak */

    /* Animation transition */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.pp-hero-title:hover {
    transform: rotateX(5deg) scaleY(1.02) translateZ(30px) translateY(-10px);
    text-shadow:
        0px 1px 0px #c5b703,
        0px 2px 0px #bca83f,
        0px 3px 0px #b3a000,
        0px 4px 0px #a99600,
        0px 5px 0px #9f8d00,
        0px 6px 0px #958400,
        0px 7px 0px #8b7b00,
        0px 8px 0px #817200,
        0px 9px 0px #776900,
        0px 10px 0px #6d6000,
        0px 20px 30px rgba(0, 0, 0, 0.9),
        0px 40px 60px rgba(244, 222, 100, 0.3) !important;
}