/* ========================= Home Text Content ========================= */
#home_content {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 90vh;
    width: 100%;
    text-align: center;
    padding: 0 20px;
    gap: 20px;
    pointer-events: none;
    user-select: none;
}

#home_content h1 {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 5px;
}

.home-div {
    z-index: 10;
    background: rgba(0, 0, 0, 0.6); /* or 0.2 for slightly stronger white */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* Safari support */
    padding: 2rem 3rem;
    border-radius: 16px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2); /* optional: glassy border */
    pointer-events: auto;
}

#home_content h2 {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 5px;
}

#home_content p {
    font-size: 16px;
    margin-bottom: 20px;
}

/* ========================= Typed Text ========================= */
.intro-container {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    color: var(--white-color);
    font-family: 'Courier New', monospace;
}

.intro-text {
    font-size: 2.5rem;
}

.cursor {
    display: inline-block;
    margin-left: 2px;
    animation: blink 0.9s infinite;
    color: var(--primary-accent-color, #0ff);
}

.cursor.typing {
    animation: none;
    opacity: 1;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ========================= Splash Screen ========================= */
.splash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: -5;
    user-select: none;
}

.splash-content {
    transform: rotate(45deg);
    display: flex;
    flex-direction: row;
    gap: 2rem;
    height: 50vh;
}


.splash-grid {
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

.column {
    opacity: 0;
    animation-duration: 0.8s;
    animation-fill-mode: forwards;
    display: flex;
    flex-direction: column;
}

.column-inner {
    display: flex;
    flex-direction: column;
    transform-origin: top center;
    gap: 1rem;
    line-height: 0;
}

.square-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    transform: scale(1.4142) rotate(-45deg);
}

.diamond {
    width: var(--square-size);
    height: var(--square-size);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    box-shadow: 0 15px 10px rgba(0, 0, 0, 0.8);
    transition: box-shadow 0.3s ease, filter 0.3s ease;
    filter: brightness(80%);
}

.diamond-link {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
    text-decoration: none;
}

.diamond:hover {
    box-shadow: 0 0 20px 5px rgba(var(--primary-accent-color-rgb), 0.6);
    filter: brightness(100%);
}

.slide-in-top-right {
    opacity: 0;
    transform: translate(0, -50%);
    animation: fade-slide-in 2s ease-out forwards;
}

.slide-in-bottom-left {
    opacity: 0;
    transform: translate(0, 50%);
    animation: fade-slide-in 2s ease-out forwards;
}

@keyframes fade-slide-in {
    to { 
        opacity: 1;
        transform: translate(0, 0);
    }
}

@keyframes scroll-top-down {
    from { transform: translateY(var(--splash-offset)); }
    to   { transform: translateY(calc(var(--scroll-distance) + var(--splash-offset))); }
}

@keyframes scroll-bottom-up {
    from { transform: translateY(var(--splash-offset)); }
    to   { transform: translateY(calc(-1 * var(--scroll-distance) + var(--splash-offset))); }
}