/* MORPH ANIMATION STYLES (DARK THEME) */

.hero-morph {
    position: relative;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-primary);
    overflow: hidden;
}

.hero-morph__container {
    display: flex;
    height: 100%;
    width: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
}

/* Intro Text */
.hero-morph__intro-text {
    position: absolute;
    z-index: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    pointer-events: none;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
    /* Will be animated by GSAP */
}

.hero-morph__title {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--text-primary);
    font-family: 'Syne', sans-serif;
}

@media (min-width: 768px) {
    .hero-morph__title {
        font-size: 3rem;
    }
}

.hero-morph__subtitle {
    margin-top: 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--accent-primary);
    text-transform: uppercase;
}

/* Arc Text */
.hero-morph__arc-text {
    position: absolute;
    top: 13%;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    pointer-events: none;
    padding: 0 1rem;
    opacity: 0;
    /* Hidden initially, shown by GSAP */
    transform: translateY(20px);
}

.hero-morph__arc-title {
    font-size: 1.875rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.025em;
    margin-bottom: 1rem;
    font-family: 'Syne', sans-serif;
}

@media (min-width: 768px) {
    .hero-morph__arc-title {
        font-size: 2.5rem;
    }
}

.hero-morph__arc-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    max-width: 38rem;
    line-height: 1.625;
}

@media (min-width: 768px) {
    .hero-morph__arc-desc {
        font-size: 1rem;
    }
}

.hidden-md {
    display: block;
}

@media (min-width: 768px) {
    .hidden-md {
        display: none;
    }
}

/* Cards Container */
.hero-morph__cards-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

/* Individual Card */
.morph-card {
    position: absolute;
    width: 60px;
    height: 85px;
    transform-style: preserve-3d;
    cursor: pointer;
    perspective: 1000px;
    opacity: 0;
}

.morph-card__inner {
    position: relative;
    height: 100%;
    width: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.morph-card:hover .morph-card__inner {
    transform: rotateY(180deg);
}

.morph-card__front,
.morph-card__back {
    position: absolute;
    inset: 0;
    height: 100%;
    width: 100%;
    overflow: hidden;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.morph-card__front {
    background-color: var(--bg-tertiary);
}

.morph-card__front img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.morph-card__front::after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(8, 8, 16, 0.4);
    transition: background-color 0.3s ease;
}

.morph-card:hover .morph-card__front::after {
    background-color: transparent;
}

.morph-card__back {
    background-color: var(--bg-tertiary);
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border: 1px solid var(--border-accent);
}

.morph-card__back-view {
    font-size: 8px;
    font-weight: 700;
    color: var(--accent-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.25rem;
}

.morph-card__back-detail {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-primary);
}