/* Hero section styles - loaded via hero_section.jsp */

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #050a15;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.12) 0%, transparent 60%),
        radial-gradient(circle at 80% 20%, rgba(242, 140, 40, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 60% 80%, rgba(37, 99, 235, 0.08) 0%, transparent 50%);
    z-index: 1;
}

.hero__ambient {
    position: absolute;
    left: 54%;
    top: 52%;
    width: 52vw;
    height: 52vw;
    min-width: 620px;
    min-height: 620px;
    z-index: -1;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle, rgba(30, 83, 171, 0.15), rgba(6, 27, 66, 0.08) 43%, transparent 70%);
    filter: blur(14px);
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: particleFloat linear infinite;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-10vh) rotate(720deg);
        opacity: 0;
    }
}

#hero-canvas {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: block;
    width: 100%;
    height: 100%;
    outline: none;
    cursor: grab;
    transition: transform 0.52s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease-out;
    transition-delay: 0s;
    opacity: 0;
}

#hero-canvas.ready {
    opacity: 1;
}

/* Face Hover State: Move Cube to the Left */
.hero.cube-face-hover #hero-canvas {
    transform: translateX(0);
    transition-delay: 0s;
}

.hero:active #hero-canvas {
    cursor: grabbing;
}

/* Dynamic Callout Label */
#cube-callout {
    position: absolute;
    pointer-events: none;
    z-index: 100;
    display: flex;
    align-items: center;
    opacity: 0;
    left: -1000px;
    /* Start off-screen to avoid initial glitch */
    transition: opacity 0.8s ease;
}

.callout-dot {
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 15px #fff;
}

.callout-line {
    width: 120px;
    height: 1px;
    background: linear-gradient(to right, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
    transform: rotate(0deg);
    transform-origin: left center;
}

.callout-badge {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 18px;
    border-radius: 50px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    margin-left: -5px;
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 1024px) {
    #cube-callout {
        display: none;
    }
}


.hero-body {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
    pointer-events: none;
    display: flex;
    justify-content: center;
    /* Center initially */
    align-items: center;
    min-height: 100vh;
}

.hero-content {
    width: 100%;
    max-width: 800px;
    text-align: left;
    pointer-events: none;
    opacity: 0;
    /* Hidden initially */
    transform: translateY(15px);
    transition: opacity 0.95s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 11;
}

.hero-content::before {
    content: '';
    position: absolute;
    top: -80px;
    bottom: -80px;
    left: -150px;
    right: -60px;
    z-index: -1;
}

/* Face Hover State: Show Text in the Center */
.hero.cube-face-hover .hero-content {
    opacity: 1;
    transform: translateY(-25px) translateX(30%);
    pointer-events: auto;
}

/* ===== Hero Content Tag Badge ===== */
.hero-tag {
    display: block;
    margin-bottom: 28px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.6s ease 0.1s, transform 0.6s ease 0.1s;
}

.hero.cube-face-hover .hero-content .hero-tag {
    opacity: 1;
    transform: translateY(0);
}

.hero-tag-text {
    font-family: var(--en);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

/* ===== Hero H1 ===== */
.hero h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 28px;
    word-break: keep-all;
    line-height: 1.22;
    letter-spacing: -0.045em;
    text-shadow: 0px 4px 24px rgba(0, 0, 0, 0.35);
}

.hero h1 em {
    font-style: normal;
    font-weight: 400;
    background: linear-gradient(90deg, #F28C28 0%, #FFB86C 60%, #F28C28 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmerText 3.5s linear infinite;
    text-shadow: none;
}

@keyframes shimmerText {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

/* ===== Hero Desc ===== */
.hero-desc {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.72);
    font-weight: 300;
    margin-bottom: 44px;
    max-width: 560px;
    line-height: 1.85;
    letter-spacing: -0.01em;
    word-break: keep-all;
    border-left: 2px solid rgba(242, 140, 40, 0.45);
    padding-left: 18px;
}

/* ===== Hero Buttons ===== */
.hero-btns {
    display: flex;
    gap: 16px;
    align-items: center;
}

.btn-fill {
    position: relative;
    padding: 17px 40px;
    background: linear-gradient(135deg, #F28C28 0%, #E07B1A 100%);
    color: #fff;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
    text-decoration: none !important;
    transition: var(--transition);
    box-shadow: 0 8px 24px rgba(242, 140, 40, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.btn-fill::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, transparent 60%);
    border-radius: inherit;
    pointer-events: none;
}

.btn-fill:hover,
.btn-fill:focus,
.btn-fill:active {
    color: #fff !important;
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(242, 140, 40, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-decoration: none !important;
    outline: none !important;
}

.btn-ghost {
    padding: 16px 36px;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.75);
    border-radius: 100px;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
    text-decoration: none !important;
    transition: var(--transition);
    backdrop-filter: blur(6px);
    background: rgba(255, 255, 255, 0.04);
}

.btn-ghost:hover,
.btn-ghost:focus,
.btn-ghost:active {
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
    background: rgba(255, 255, 255, 0.09);
    transform: translateY(-2px);
    text-decoration: none !important;
    outline: none !important;
}

.scroll-tag {
    position: absolute;
    bottom: 48px;
    right: 40px;
    z-index: 20;
    writing-mode: vertical-rl;
    font-family: var(--en);
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
}

.scroll-tag::after {
    content: '';
    display: block;
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    margin: 12px auto 0;
    animation: ticker 2s ease-in-out infinite;
}

@keyframes ticker {
    0% {
        transform: scaleY(0);
        transform-origin: top;
    }

    45% {
        transform: scaleY(1);
        transform-origin: top;
    }

    55% {
        transform: scaleY(1);
        transform-origin: bottom;
    }

    100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

/* ===== Hero Section Mobile Tuning ===== */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        justify-content: flex-start;
        min-height: auto;
        padding-top: 68px;
        padding-bottom: 0;
    }

    #hero-canvas {
        position: relative;
        width: 100% !important;
        height: 42vh !important;
        min-height: 280px;
        transform: none !important;
    }

    .hero-body {
        display: none !important;
    }

    .hero-content {
        display: none !important;
    }

    .hero.cube-face-hover .hero-content {
        transform: none !important;
    }

    .hero-tag {
        margin-bottom: 12px;
        opacity: 1 !important;
        transform: none !important;
    }

    .hero h1 {
        font-size: 1.8rem;
        margin-bottom: 16px;
        line-height: 1.35;
        text-align: center;
    }

    .hero-desc {
        font-size: 0.95rem;
        margin: 0 auto 30px;
        max-width: 100%;
        border-left: none;
        padding-left: 0;
        text-align: center;
        line-height: 1.75;
    }

    .hero-btns {
        display: none !important;
    }

    .scroll-tag {
        display: none;
    }

    .hero-close-btn {
        right: 12px;
        top: -12px;
    }
}

@media (max-width: 768px) {
    #hero-canvas {
        height: 38vh !important;
        min-height: 260px;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero-desc {
        font-size: 0.9rem;
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    #hero-canvas {
        height: 34vh !important;
        min-height: 220px;
    }

    .hero h1 {
        font-size: 1.3rem;
    }
}

/* ===== 돌아가기 버튼 ===== */
.hero-close-btn {
    display: none !important;
}





.hero-back-wrapper {
    margin-bottom: 22px;
    display: flex;
    justify-content: flex-start;
}

.btn-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none !important;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease, color 0.3s ease;
    transform: translateX(15px);
    background: none;
    border: none;
    padding: 0;
    outline: none;
}

.btn-back-link svg {
    transition: transform 0.3s ease;
}

.btn-back-link:hover {
    color: #F28C28;
}

.btn-back-link:hover svg {
    transform: translateX(-4px);
}

.hero.cube-face-hover .btn-back-link {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
    transition-delay: 0.35s;
}

@media (max-width: 1024px) {
    .hero-back-wrapper {
        justify-content: center;
        margin-top: 0;
        margin-bottom: 16px;
    }
}


